* clear out some warnings by gcc 9.3.1.
[alpine.git] / configure
blobd1b076dfc893ac71dc165201d9efccafc7f9fb59
1 #! /bin/sh
2 # From configure.ac Rev:29 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.23.2.
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.23.2'
595 PACKAGE_STRING='alpine 2.23.2'
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 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
690 LIBTOOL_DEPS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
702 DLLTOOL
703 OBJDUMP
705 ac_ct_DUMPBIN
706 DUMPBIN
708 FGREP
709 EGREP
710 GREP
712 LIBTOOL
713 LN_S
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_nls
822 enable_rpath
823 with_libiconv_prefix
824 with_libintl_prefix
825 enable_dmalloc
826 with_dmalloc_dir
827 with_date_stamp
828 with_host_stamp
829 with_localedir
830 enable_osx_universal_binaries
831 with_include_path
832 with_lib_path
833 with_pubcookie
834 with_web_bin
835 enable_debug
836 enable_optimization
837 enable_mouse
838 enable_quotas
839 enable_from_changing
840 enable_background_post
841 enable_keyboard_lock
842 enable_from_encoding
843 with_smtp_msa
844 with_smtp_msa_flags
845 with_npa
846 with_npa_flags
847 with_password_prog
848 with_simple_spellcheck
849 with_interactive_spellcheck
850 with_system_pinerc
851 with_system_fixed_pinerc
852 with_local_support_info
853 with_mailcheck_interval
854 with_checkpoint_interval
855 with_checkpoint_frequency
856 with_display_rows
857 with_display_columns
858 with_max_display_rows
859 with_max_display_columns
860 with_fill_column
861 with_max_fill_column
862 with_debug_level
863 with_debug_files
864 with_debug_file
865 with_forwarded_keyword
866 with_display_overlap
867 with_display_margin
868 with_default_fcc
869 with_default_save_folder
870 with_default_legacy_postponed_folder
871 with_default_postponed_folder
872 with_default_trash_folder
873 with_default_interrupted_mail
874 with_default_dead_letter_folder
875 with_default_mail_directory
876 with_default_inbox_name
877 with_default_signature_file
878 with_default_elm_style_save
879 with_default_header_in_reply
880 with_default_old_style_reply
881 with_default_use_only_domain_name
882 with_default_save_by_sender
883 with_default_sort_key
884 with_default_addressbook_sort_rule
885 with_default_folder_sort_rule
886 with_default_saved_message_name_rule
887 with_default_fcc_rule
888 with_default_standard_printer
889 with_default_ansi_printer
890 with_default_addressbook
891 with_default_local_fullname
892 with_default_local_address
893 with_default_keyboard_lock_count
894 with_default_remote_addressbook_history
895 with_default_html_directory
896 with_smime_public_cert_directory
897 with_smime_private_key_directory
898 with_smime_cacert_directory
899 with_default_printer
900 with_passfile
901 with_local_password_cache
902 with_local_password_cache_method
903 with_default_sshpath
904 with_default_sshcmd
905 with_ssl
906 with_ssl_dir
907 with_ssl_certs_dir
908 with_ssl_include_dir
909 with_ssl_lib_dir
910 with_encryption_minimum_version
911 with_encryption_maximum_version
912 with_encryption_range
913 with_krb5
914 with_krb5_dir
915 with_krb5_include_dir
916 with_krb5_lib_dir
917 with_ldap
918 with_ldap_dir
919 with_ldap_include_dir
920 with_ldap_lib_dir
921 with_smime
922 with_tcl
923 with_tcl_lib_dir
924 with_tcl_lib
925 with_tcl_include
926 with_supplied_regex
927 with_pthread
928 with_system_mail_directory
929 with_c_client_target
930 with_bundled_tools
931 with_ipv6
932 with_ntlm
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 LT_SYS_LIBRARY_PATH
943 CPP'
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
994 ac_prev=
995 ac_dashdash=
996 for ac_option
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1005 case $ac_option in
1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *=) ac_optarg= ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information"
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error $? "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error $? "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error $? "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures alpine 2.23.2 to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking ...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of alpine 2.23.2:";;
1555 esac
1556 cat <<\_ACEOF
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-silent-rules less verbose build output (undo: "make V=1")
1563 --disable-silent-rules verbose build output (undo: "make V=0")
1564 --enable-maintainer-mode
1565 enable make rules and dependencies not useful (and
1566 sometimes confusing) to the casual installer
1567 --enable-dependency-tracking
1568 do not reject slow dependency extractors
1569 --disable-dependency-tracking
1570 speeds up one-time build
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-nls do not use Native Language Support
1577 --disable-rpath do not hardcode runtime library paths
1578 --enable-dmalloc Enable dmalloc debugging
1579 --enable-osx-universal-binaries
1580 Produce universal binaries under OS X [[default=no]]
1581 --disable-debug Exclude debug from the binary
1582 --disable-optimization Exclude optimizing compiler flags
1583 --disable-mouse Disable mouse support
1584 --enable-quotas Enable disk quota checking on startup
1585 --disable-from-changing Disallow users changing From address
1586 --disable-background-post
1587 Disable background posting
1588 --disable-keyboard-lock Disable keyboard locking
1589 --enable-from-encoding Enable From encoding in sent messages
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1595 both]
1596 --with-aix-soname=aix|svr4|both
1597 shared library versioning (aka "SONAME") variant to
1598 provide on AIX, [default=aix].
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1601 compiler's sysroot if not specified).
1602 --with-gnu-ld assume the C compiler uses GNU ld default=no
1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1605 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1606 --without-libintl-prefix don't search for libintl in includedir and libdir
1607 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1608 --with-date-stamp=DATE Set this as the date this program was built.
1609 Default: output of `date`
1610 --with-host-stamp=HOST Set name of computer for compilation. Default:
1611 output of `hostname`
1612 --with-localedir=DIR Name of gettext locale directory
1613 --with-include-path=PATHS
1614 Colon-separated list of directories used for include
1615 file search
1616 --with-lib-path=PATHS Colon-separated list of directories used for library
1617 search
1618 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1619 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1620 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1621 --with-smtp-msa-flags=FLAGS
1622 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1623 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1624 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1625 --with-password-prog=PATH
1626 Password change program (/bin/passwd)
1627 --with-simple-spellcheck=PROG
1628 Spellcheck program reads stdin, emits misspellings
1629 on stdout
1630 --with-interactive-spellcheck=PROG
1631 Interactive, filewise spell checker
1632 --with-system-pinerc=VALUE
1633 System pinerc (/usr/local/lib/pine.conf)
1634 --with-system-fixed-pinerc=VALUE
1635 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1636 --with-local-support-info=VALUE
1637 Local Support Info File (/usr/local/lib/pine.info)
1638 --with-mailcheck-interval=VALUE
1639 Specify default mail-check-interval (150)
1640 --with-checkpoint-interval=VALUE
1641 Specify default checkpoint-interval (420)
1642 --with-checkpoint-frequency=VALUE
1643 State change count before checkpoint (12)
1644 --with-display-rows=VALUE
1645 Initial rows on display (24)
1646 --with-display-columns=VALUE
1647 Initial columns on display (80)
1648 --with-max-display-rows=VALUE
1649 Maximum display rows (200)
1650 --with-max-display-columns=VALUE
1651 Maximum display columns (500)
1652 --with-fill-column=VALUE
1653 Default fill column (74)
1654 --with-max_fill-column=VALUE
1655 Maximum fill column (80)
1656 --with-debug-level=VALUE
1657 Specify default debug verbosity level (2)
1658 --with-debug-files=VALUE
1659 Specify number of debug files (4)
1660 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1661 --with-forwarded-keyword=VALUE
1662 IMAP (c-client) keyword to store forwarded status
1663 ("\$Forwarded")
1664 --with-display-overlap=VALUE
1665 Lines preserved while paging (2)
1666 --with-display-margin=VALUE
1667 Lines visible while scrolling (0)
1668 --with-default-fcc=VALUE
1669 Default sent mail folder (sent-mail)
1670 --with-default-save-folder=VALUE
1671 Default save folder (saved-messages)
1672 --with-default-legacy-postponed-folder=VALUE
1673 Pre Pine 3.90 postponed folder (postponed-mail)
1674 --with-default-postponed-folder=VALUE
1675 Default postponed folder (postponed-msgs)
1676 --with-default-trash-folder=VALUE
1677 Default Trash folder for Web Alpine (Trash)
1678 --with-default-interrupted-mail=VALUE
1679 Default folder for interrupted mail
1680 (.pine-interrupted-mail)
1681 --with-default-dead-letter-folder=VALUE
1682 Default dead letter folder (dead.letter)
1683 --with-default-mail-directory=VALUE
1684 Default mail directory (mail)
1685 --with-default-inbox-name=VALUE
1686 Default inbox name (INBOX)
1687 --with-default-signature-file=VALUE
1688 Default signature file (.signature)
1689 --with-default-elm-style-save=VALUE
1690 Default to Elm style save (no)
1691 --with-default-header-in-reply=VALUE
1692 Include header in reply (no)
1693 --with-default-old-style-reply=VALUE
1694 Default to old style reply (no)
1695 --with-default-use-only-domain-name=VALUE
1696 Default to using only the domain name (no)
1697 --with-default-save-by-sender=VALUE
1698 Default to save by sender (no)
1699 --with-default-sort-key=VALUE
1700 Default sort key (arrival)
1701 --with-default-addressbook-sort-rule=VALUE
1702 Default addressbook sort rule
1703 (fullname-with-lists-last)
1704 --with-default-folder-sort-rule=VALUE
1705 Default folder sort rule (alphabetical)
1706 --with-default-saved-message-name-rule=VALUE
1707 Default saved message name rule (default-folder)
1708 --with-default-fcc-rule=VALUE
1709 Default fcc rule (default-fcc)
1710 --with-default-standard-printer=VALUE
1711 Default standard printern (lpr)
1712 --with-default-ansi-printer=VALUE
1713 ANSI printer definition (attached-to-ansi)
1714 --with-default-addressbook=VALUE
1715 Default addressbook name (.addressbook)
1716 --with-default-local-fullname=VALUE
1717 Default local support fullname ("Local Support")
1718 --with-default-local-address=VALUE
1719 Default local support address (postmaster)
1720 --with-default-keyboard-lock-count=VALUE
1721 Default keyboard lock count (1)
1722 --with-default-remote-addressbook-history=VALUE
1723 Default address book history count (3)
1724 --with-default-html-directory=VALUE
1725 Default Directory to Temporarily Save HTML Messages
1726 (.alpine-html)
1727 --with-smime-public-cert-directory=VALUE
1728 Default Public Cert Directory (.alpine-smime/public)
1729 --with-smime-private-key-directory=VALUE
1730 Default Private Key Directory
1731 (.alpine-smime/private)
1732 --with-smime-cacert-directory=VALUE
1733 Default Cert Authority Directory (.alpine-smime/ca)
1734 --with-default-printer=VALUE
1735 Default printer (ANSI_PRINTER)
1736 --with-passfile=FILENAME
1737 Password cache file (recommended when S/MIME is
1738 enabled and configured)
1739 --without-local-password-cache
1740 Disable OS-specific password cache, if supported
1741 --with-local-password-cache-method
1742 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1743 Windows=WINCRED)
1744 --with-default-sshpath=FILENAME
1745 set default value of ssh command path (defining
1746 should cause ssh to be preferred to rsh)
1747 --with-default-sshcmd=PERCENT_S_STRING
1748 set default value of ssh command string (usually "%s
1749 %s -l %s exec /etc/r%sd")
1750 --without-ssl Disable SSL support (OpenSSL)
1751 --with-ssl-dir=DIR Root of SSL lib/include path
1752 --with-ssl-certs-dir=DIR
1753 Path to SSL certificate directory
1754 --with-ssl-include-dir=DIR
1755 SSL include file path
1756 --with-ssl-lib-dir=DIR SSL library path
1757 --encryption-minimum-version=VERSION
1758 Minimum SSL encryption version. Default: no_min
1759 --encryption-maximum-version=VERSION
1760 Maximum SSL encryption version. Default: no_max
1761 --with-encryption-range=VALUE
1762 Default Encryption Range ($alpine_RANGE )
1763 --without-krb5 Disable Kerberos support
1764 --with-krb5-dir=DIR Root of Kerberos lib/include path
1765 --with-krb5-include-dir=DIR
1766 Kerberos include file path
1767 --with-krb5-lib-dir=DIR Kerberos library path
1768 --without-ldap Disable LDAP query support
1769 --with-ldap-dir=DIR Root of LDAP lib/include path
1770 --with-ldap-include-dir=DIR
1771 Directory containing LDAP include files
1772 --with-ldap-lib-dir=DIR LDAP library path
1773 --without-smime Disable S/MIME
1774 --without-tcl Disable TCL, thus Web Alpine support
1775 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1776 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1777 --with-tcl-include=DIR Directory containing TCL include files
1778 --with-supplied-regex Use regex library supplied with alpine
1779 --without-pthread Do NOT test for nor build with POSIX thread support
1780 --with-system-mail-directory=DIR
1781 Directory where local mail is delivered
1782 --with-c-client-target=TARGET
1783 IMAP build target (see imap/Makefile)
1784 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1785 --with-bundled-tools=no
1786 --without-ipv6 Disable IPv6, primarily to work around resolver
1787 problems
1788 --without-ntlm Disable NTLM client support
1790 Some influential environment variables:
1791 CC C compiler command
1792 CFLAGS C compiler flags
1793 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1794 nonstandard directory <lib dir>
1795 LIBS libraries to pass to the linker, e.g. -l<library>
1796 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1797 you have headers in a nonstandard directory <include dir>
1798 LT_SYS_LIBRARY_PATH
1799 User-defined run-time library search path.
1800 CPP C preprocessor
1802 Use these variables to override the choices made by `configure' or to help
1803 it to find libraries and programs with nonstandard names/locations.
1805 Report bugs to <chappa@washington.edu>.
1806 _ACEOF
1807 ac_status=$?
1810 if test "$ac_init_help" = "recursive"; then
1811 # If there are subdirs, report their specific --help.
1812 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1813 test -d "$ac_dir" ||
1814 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1815 continue
1816 ac_builddir=.
1818 case "$ac_dir" in
1819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1821 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1822 # A ".." for each directory in $ac_dir_suffix.
1823 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1824 case $ac_top_builddir_sub in
1825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1827 esac ;;
1828 esac
1829 ac_abs_top_builddir=$ac_pwd
1830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1831 # for backward compatibility:
1832 ac_top_builddir=$ac_top_build_prefix
1834 case $srcdir in
1835 .) # We are building in place.
1836 ac_srcdir=.
1837 ac_top_srcdir=$ac_top_builddir_sub
1838 ac_abs_top_srcdir=$ac_pwd ;;
1839 [\\/]* | ?:[\\/]* ) # Absolute name.
1840 ac_srcdir=$srcdir$ac_dir_suffix;
1841 ac_top_srcdir=$srcdir
1842 ac_abs_top_srcdir=$srcdir ;;
1843 *) # Relative name.
1844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1845 ac_top_srcdir=$ac_top_build_prefix$srcdir
1846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1847 esac
1848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1850 cd "$ac_dir" || { ac_status=$?; continue; }
1851 # Check for guested configure.
1852 if test -f "$ac_srcdir/configure.gnu"; then
1853 echo &&
1854 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1855 elif test -f "$ac_srcdir/configure"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure" --help=recursive
1858 else
1859 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1860 fi || ac_status=$?
1861 cd "$ac_pwd" || { ac_status=$?; break; }
1862 done
1865 test -n "$ac_init_help" && exit $ac_status
1866 if $ac_init_version; then
1867 cat <<\_ACEOF
1868 alpine configure 2.23.2
1869 generated by GNU Autoconf 2.69
1871 Copyright (C) 2012 Free Software Foundation, Inc.
1872 This configure script is free software; the Free Software Foundation
1873 gives unlimited permission to copy, distribute and modify it.
1874 _ACEOF
1875 exit
1878 ## ------------------------ ##
1879 ## Autoconf initialization. ##
1880 ## ------------------------ ##
1882 # ac_fn_c_try_compile LINENO
1883 # --------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_compile
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_c_try_link
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_header_compile
1997 # ac_fn_c_try_cpp LINENO
1998 # ----------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_c_try_cpp ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2004 case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } > conftest.i && {
2019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2020 test ! -s conftest.err
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=1
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_c_try_cpp
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_run
2076 # ac_fn_c_check_func LINENO FUNC VAR
2077 # ----------------------------------
2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2079 ac_fn_c_check_func ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2091 #define $2 innocuous_$2
2093 /* System header to define __stub macros and hopefully few prototypes,
2094 which can conflict with char $2 (); below.
2095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096 <limits.h> exists even on freestanding compilers. */
2098 #ifdef __STDC__
2099 # include <limits.h>
2100 #else
2101 # include <assert.h>
2102 #endif
2104 #undef $2
2106 /* Override any GCC internal prototype to avoid an error.
2107 Use char because int might match the return type of a GCC
2108 builtin and then its argument prototype would still apply. */
2109 #ifdef __cplusplus
2110 extern "C"
2111 #endif
2112 char $2 ();
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined __stub_$2 || defined __stub___$2
2117 choke me
2118 #endif
2121 main ()
2123 return $2 ();
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_link "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2133 rm -f core conftest.err conftest.$ac_objext \
2134 conftest$ac_exeext conftest.$ac_ext
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_func
2143 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2144 # -------------------------------------------------------
2145 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2146 # the include files in INCLUDES and setting the cache variable VAR
2147 # accordingly.
2148 ac_fn_c_check_header_mongrel ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if eval \${$3+:} false; then :
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2157 eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 else
2161 # Is the header compilable?
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2163 $as_echo_n "checking $2 usability... " >&6; }
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_header_compiler=yes
2171 else
2172 ac_header_compiler=no
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2176 $as_echo "$ac_header_compiler" >&6; }
2178 # Is the header present?
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2180 $as_echo_n "checking $2 presence... " >&6; }
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 #include <$2>
2184 _ACEOF
2185 if ac_fn_c_try_cpp "$LINENO"; then :
2186 ac_header_preproc=yes
2187 else
2188 ac_header_preproc=no
2190 rm -f conftest.err conftest.i conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2192 $as_echo "$ac_header_preproc" >&6; }
2194 # So? What about this header?
2195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2196 yes:no: )
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2198 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2200 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2202 no:yes:* )
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2204 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2206 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2208 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2210 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 ( $as_echo "## ------------------------------------ ##
2214 ## Report this to chappa@washington.edu ##
2215 ## ------------------------------------ ##"
2216 ) | sed "s/^/$as_me: WARNING: /" >&2
2218 esac
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 eval "$3=\$ac_header_compiler"
2226 eval ac_res=\$$3
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_header_mongrel
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 if (sizeof ($2))
2254 return 0;
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 if (sizeof (($2)))
2267 return 0;
2269 return 0;
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2274 else
2275 eval "$3=yes"
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2289 # --------------------------------------------
2290 # Tries to find the compile-time value of EXPR in a program that includes
2291 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2292 # computed
2293 ac_fn_c_compute_int ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if test "$cross_compiling" = yes; then
2297 # Depending upon the size, compute the lo and hi bounds.
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 static int test_array [1 - 2 * !(($2) >= 0)];
2305 test_array [0] = 0;
2306 return test_array [0];
2309 return 0;
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 ac_lo=0 ac_mid=0
2314 while :; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 main ()
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 test_array [0] = 0;
2323 return test_array [0];
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_hi=$ac_mid; break
2331 else
2332 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2333 if test $ac_lo -le $ac_mid; then
2334 ac_lo= ac_hi=
2335 break
2337 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2346 main ()
2348 static int test_array [1 - 2 * !(($2) < 0)];
2349 test_array [0] = 0;
2350 return test_array [0];
2353 return 0;
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 ac_hi=-1 ac_mid=-1
2358 while :; do
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 ac_lo=$ac_mid; break
2375 else
2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2377 if test $ac_mid -le $ac_hi; then
2378 ac_lo= ac_hi=
2379 break
2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 done
2385 else
2386 ac_lo= ac_hi=
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 # Binary search between lo and hi bounds.
2392 while test "x$ac_lo" != "x$ac_hi"; do
2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2398 main ()
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 test_array [0] = 0;
2402 return test_array [0];
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid
2410 else
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 case $ac_lo in #((
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 '') ac_retval=1 ;;
2418 esac
2419 else
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2425 #include <stdio.h>
2426 #include <stdlib.h>
2428 main ()
2431 FILE *f = fopen ("conftest.val", "w");
2432 if (! f)
2433 return 1;
2434 if (($2) < 0)
2436 long int i = longval ();
2437 if (i != ($2))
2438 return 1;
2439 fprintf (f, "%ld", i);
2441 else
2443 unsigned long int i = ulongval ();
2444 if (i != ($2))
2445 return 1;
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2453 return 0;
2455 _ACEOF
2456 if ac_fn_c_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 else
2459 ac_retval=1
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 rm -f conftest.val
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_c_compute_int
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2474 It was created by alpine $as_me 2.23.2, which was
2475 generated by GNU Autoconf 2.69. Invocation command line was
2477 $ $0 $@
2479 _ACEOF
2480 exec 5>>config.log
2482 cat <<_ASUNAME
2483 ## --------- ##
2484 ## Platform. ##
2485 ## --------- ##
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2496 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2500 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2501 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2502 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2504 _ASUNAME
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 $as_echo "PATH: $as_dir"
2512 done
2513 IFS=$as_save_IFS
2515 } >&5
2517 cat >&5 <<_ACEOF
2520 ## ----------- ##
2521 ## Core tests. ##
2522 ## ----------- ##
2524 _ACEOF
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2532 ac_configure_args=
2533 ac_configure_args0=
2534 ac_configure_args1=
2535 ac_must_keep_next=false
2536 for ac_pass in 1 2
2538 for ac_arg
2540 case $ac_arg in
2541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543 | -silent | --silent | --silen | --sile | --sil)
2544 continue ;;
2545 *\'*)
2546 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 esac
2548 case $ac_pass in
2549 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 as_fn_append ac_configure_args1 " '$ac_arg'"
2552 if test $ac_must_keep_next = true; then
2553 ac_must_keep_next=false # Got value, back to normal.
2554 else
2555 case $ac_arg in
2556 *=* | --config-cache | -C | -disable-* | --disable-* \
2557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559 | -with-* | --with-* | -without-* | --without-* | --x)
2560 case "$ac_configure_args0 " in
2561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2562 esac
2564 -* ) ac_must_keep_next=true ;;
2565 esac
2567 as_fn_append ac_configure_args " '$ac_arg'"
2569 esac
2570 done
2571 done
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log. We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581 # Save into config.log some information that might help in debugging.
2583 echo
2585 $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2588 echo
2589 # The following way of writing the cache mishandles newlines in values,
2591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592 eval ac_val=\$$ac_var
2593 case $ac_val in #(
2594 *${as_nl}*)
2595 case $ac_var in #(
2596 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2598 esac
2599 case $ac_var in #(
2600 _ | IFS | as_nl) ;; #(
2601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602 *) { eval $ac_var=; unset $ac_var;} ;;
2603 esac ;;
2604 esac
2605 done
2606 (set) 2>&1 |
2607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608 *${as_nl}ac_space=\ *)
2609 sed -n \
2610 "s/'\''/'\''\\\\'\'''\''/g;
2611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2612 ;; #(
2614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2616 esac |
2617 sort
2619 echo
2621 $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2624 echo
2625 for ac_var in $ac_subst_vars
2627 eval ac_val=\$$ac_var
2628 case $ac_val in
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630 esac
2631 $as_echo "$ac_var='\''$ac_val'\''"
2632 done | sort
2633 echo
2635 if test -n "$ac_subst_files"; then
2636 $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2639 echo
2640 for ac_var in $ac_subst_files
2642 eval ac_val=\$$ac_var
2643 case $ac_val in
2644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645 esac
2646 $as_echo "$ac_var='\''$ac_val'\''"
2647 done | sort
2648 echo
2651 if test -s confdefs.h; then
2652 $as_echo "## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##"
2655 echo
2656 cat confdefs.h
2657 echo
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2662 } >&5
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665 exit $exit_status
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2675 $as_echo "/* confdefs.h */" > confdefs.h
2677 # Predefined preprocessor variables.
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2685 _ACEOF
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2689 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2697 _ACEOF
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2701 _ACEOF
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2706 ac_site_file1=NONE
2707 ac_site_file2=NONE
2708 if test -n "$CONFIG_SITE"; then
2709 # We do not want a PATH search for config.site.
2710 case $CONFIG_SITE in #((
2711 -*) ac_site_file1=./$CONFIG_SITE;;
2712 */*) ac_site_file1=$CONFIG_SITE;;
2713 *) ac_site_file1=./$CONFIG_SITE;;
2714 esac
2715 elif test "x$prefix" != xNONE; then
2716 ac_site_file1=$prefix/share/config.site
2717 ac_site_file2=$prefix/etc/config.site
2718 else
2719 ac_site_file1=$ac_default_prefix/share/config.site
2720 ac_site_file2=$ac_default_prefix/etc/config.site
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2724 test "x$ac_site_file" = xNONE && continue
2725 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728 sed 's/^/| /' "$ac_site_file" >&5
2729 . "$ac_site_file" \
2730 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2735 done
2737 if test -r "$cache_file"; then
2738 # Some versions of bash will fail to source /dev/null (special files
2739 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2740 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743 case $cache_file in
2744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745 *) . "./$cache_file";;
2746 esac
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2751 >$cache_file
2754 gt_needs="$gt_needs "
2755 # Check that the precious variables saved in the cache have kept the same
2756 # value.
2757 ac_cache_corrupted=false
2758 for ac_var in $ac_precious_vars; do
2759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2760 eval ac_new_set=\$ac_env_${ac_var}_set
2761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2762 eval ac_new_val=\$ac_env_${ac_var}_value
2763 case $ac_old_set,$ac_new_set in
2764 set,)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2766 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2767 ac_cache_corrupted=: ;;
2768 ,set)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2770 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2771 ac_cache_corrupted=: ;;
2772 ,);;
2774 if test "x$ac_old_val" != "x$ac_new_val"; then
2775 # differences in whitespace do not lead to failure.
2776 ac_old_val_w=`echo x $ac_old_val`
2777 ac_new_val_w=`echo x $ac_new_val`
2778 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2780 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2781 ac_cache_corrupted=:
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2784 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2785 eval $ac_var=\$ac_old_val
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2788 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2790 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2791 fi;;
2792 esac
2793 # Pass precious variables to config.status.
2794 if test "$ac_new_set" = set; then
2795 case $ac_new_val in
2796 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2797 *) ac_arg=$ac_var=$ac_new_val ;;
2798 esac
2799 case " $ac_configure_args " in
2800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2801 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2802 esac
2804 done
2805 if $ac_cache_corrupted; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2809 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2810 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2812 ## -------------------- ##
2813 ## Main body of script. ##
2814 ## -------------------- ##
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 ac_config_headers="$ac_config_headers include/config.h"
2828 am__api_version='1.15'
2830 ac_aux_dir=
2831 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2832 if test -f "$ac_dir/install-sh"; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install-sh -c"
2835 break
2836 elif test -f "$ac_dir/install.sh"; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/install.sh -c"
2839 break
2840 elif test -f "$ac_dir/shtool"; then
2841 ac_aux_dir=$ac_dir
2842 ac_install_sh="$ac_aux_dir/shtool install -c"
2843 break
2845 done
2846 if test -z "$ac_aux_dir"; then
2847 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2850 # These three variables are undocumented and unsupported,
2851 # and are intended to be withdrawn in a future Autoconf release.
2852 # They can cause serious problems if a builder's source tree is in a directory
2853 # whose full name contains unusual characters.
2854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2859 # Find a good install program. We prefer a C program (faster),
2860 # so one script is as good as another. But avoid the broken or
2861 # incompatible versions:
2862 # SysV /etc/install, /usr/sbin/install
2863 # SunOS /usr/etc/install
2864 # IRIX /sbin/install
2865 # AIX /bin/install
2866 # AmigaOS /C/install, which installs bootblocks on floppy discs
2867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2870 # OS/2's system install, which has a completely different semantic
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 # Reject install programs that cannot install multiple files.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2874 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2875 if test -z "$INSTALL"; then
2876 if ${ac_cv_path_install+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 # Account for people who put trailing slashes in PATH elements.
2885 case $as_dir/ in #((
2886 ./ | .// | /[cC]/* | \
2887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2889 /usr/ucb/* ) ;;
2891 # OSF1 and SCO ODT 3.0 have their own names for install.
2892 # Don't use installbsd from OSF since it installs stuff as root
2893 # by default.
2894 for ac_prog in ginstall scoinst install; do
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2897 if test $ac_prog = install &&
2898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2901 elif test $ac_prog = install &&
2902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # program-specific install script used by HP pwplus--don't use.
2905 else
2906 rm -rf conftest.one conftest.two conftest.dir
2907 echo one > conftest.one
2908 echo two > conftest.two
2909 mkdir conftest.dir
2910 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2911 test -s conftest.one && test -s conftest.two &&
2912 test -s conftest.dir/conftest.one &&
2913 test -s conftest.dir/conftest.two
2914 then
2915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916 break 3
2920 done
2921 done
2923 esac
2925 done
2926 IFS=$as_save_IFS
2928 rm -rf conftest.one conftest.two conftest.dir
2931 if test "${ac_cv_path_install+set}" = set; then
2932 INSTALL=$ac_cv_path_install
2933 else
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for INSTALL within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 INSTALL=$ac_install_sh
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2942 $as_echo "$INSTALL" >&6; }
2944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2945 # It thinks the first close brace ends the variable substitution.
2946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2953 $as_echo_n "checking whether build environment is sane... " >&6; }
2954 # Reject unsafe characters in $srcdir or the absolute working directory
2955 # name. Accept space and tab only in the latter.
2956 am_lf='
2958 case `pwd` in
2959 *[\\\"\#\$\&\'\`$am_lf]*)
2960 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2961 esac
2962 case $srcdir in
2963 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2964 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2965 esac
2967 # Do 'set' in a subshell so we don't clobber the current shell's
2968 # arguments. Must try -L first in case configure is actually a
2969 # symlink; some systems play weird games with the mod time of symlinks
2970 # (eg FreeBSD returns the mod time of the symlink's containing
2971 # directory).
2972 if (
2973 am_has_slept=no
2974 for am_try in 1 2; do
2975 echo "timestamp, slept: $am_has_slept" > conftest.file
2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977 if test "$*" = "X"; then
2978 # -L didn't work.
2979 set X `ls -t "$srcdir/configure" conftest.file`
2981 if test "$*" != "X $srcdir/configure conftest.file" \
2982 && test "$*" != "X conftest.file $srcdir/configure"; then
2984 # If neither matched, then we have a broken ls. This can happen
2985 # if, for instance, CONFIG_SHELL is bash and it inherits a
2986 # broken ls alias from the environment. This has actually
2987 # happened. Such a system could not be considered "sane".
2988 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2989 alias in your environment" "$LINENO" 5
2991 if test "$2" = conftest.file || test $am_try -eq 2; then
2992 break
2994 # Just in case.
2995 sleep 1
2996 am_has_slept=yes
2997 done
2998 test "$2" = conftest.file
3000 then
3001 # Ok.
3003 else
3004 as_fn_error $? "newly created file is older than distributed files!
3005 Check your system clock" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009 # If we didn't sleep, we still need to ensure time stamps of config.status and
3010 # generated files are strictly newer.
3011 am_sleep_pid=
3012 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3013 ( sleep 1 ) &
3014 am_sleep_pid=$!
3017 rm -f conftest.file
3019 test "$program_prefix" != NONE &&
3020 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3021 # Use a double $ so make ignores it.
3022 test "$program_suffix" != NONE &&
3023 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3024 # Double any \ or $.
3025 # By default was `s,x,x', remove it if useless.
3026 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3027 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3029 # Expand $ac_aux_dir to an absolute path.
3030 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3032 if test x"${MISSING+set}" != xset; then
3033 case $am_aux_dir in
3034 *\ * | *\ *)
3035 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3037 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3038 esac
3040 # Use eval to expand $SHELL
3041 if eval "$MISSING --is-lightweight"; then
3042 am_missing_run="$MISSING "
3043 else
3044 am_missing_run=
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3046 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3049 if test x"${install_sh+set}" != xset; then
3050 case $am_aux_dir in
3051 *\ * | *\ *)
3052 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3054 install_sh="\${SHELL} $am_aux_dir/install-sh"
3055 esac
3058 # Installed binaries are usually stripped using 'strip' when the user
3059 # run "make install-strip". However 'strip' might not be the right
3060 # tool to use in cross-compilation environments, therefore Automake
3061 # will honor the 'STRIP' environment variable to overrule this program.
3062 if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}strip; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_STRIP+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3087 IFS=$as_save_IFS
3091 STRIP=$ac_cv_prog_STRIP
3092 if test -n "$STRIP"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3094 $as_echo "$STRIP" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3102 if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3125 done
3126 done
3127 IFS=$as_save_IFS
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3134 $as_echo "$ac_ct_STRIP" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3140 if test "x$ac_ct_STRIP" = x; then
3141 STRIP=":"
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 STRIP=$ac_ct_STRIP
3151 else
3152 STRIP="$ac_cv_prog_STRIP"
3156 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3159 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3160 if test -z "$MKDIR_P"; then
3161 if ${ac_cv_path_mkdir+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_prog in mkdir gmkdir; do
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3173 'mkdir (GNU coreutils) '* | \
3174 'mkdir (coreutils) '* | \
3175 'mkdir (fileutils) '4.1*)
3176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3177 break 3;;
3178 esac
3179 done
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 test -d ./--version && rmdir ./--version
3187 if test "${ac_cv_path_mkdir+set}" = set; then
3188 MKDIR_P="$ac_cv_path_mkdir -p"
3189 else
3190 # As a last resort, use the slow shell script. Don't cache a
3191 # value for MKDIR_P within a source directory, because that will
3192 # break other packages using the cache if that directory is
3193 # removed, or if the value is a relative name.
3194 MKDIR_P="$ac_install_sh -d"
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3198 $as_echo "$MKDIR_P" >&6; }
3200 for ac_prog in gawk mawk nawk awk
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_AWK+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$AWK"; then
3210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_AWK="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3223 done
3224 done
3225 IFS=$as_save_IFS
3229 AWK=$ac_cv_prog_AWK
3230 if test -n "$AWK"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3232 $as_echo "$AWK" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 test -n "$AWK" && break
3240 done
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3243 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 set x ${MAKE-make}
3245 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3246 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat >conftest.make <<\_ACEOF
3250 SHELL = /bin/sh
3251 all:
3252 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 *@@@%%%=?*=@@@%%%*)
3257 eval ac_cv_prog_make_${ac_make}_set=yes;;
3259 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 esac
3261 rm -f conftest.make
3263 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 SET_MAKE=
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 rm -rf .tst 2>/dev/null
3274 mkdir .tst 2>/dev/null
3275 if test -d .tst; then
3276 am__leading_dot=.
3277 else
3278 am__leading_dot=_
3280 rmdir .tst 2>/dev/null
3282 # Check whether --enable-silent-rules was given.
3283 if test "${enable_silent_rules+set}" = set; then :
3284 enableval=$enable_silent_rules;
3287 case $enable_silent_rules in # (((
3288 yes) AM_DEFAULT_VERBOSITY=0;;
3289 no) AM_DEFAULT_VERBOSITY=1;;
3290 *) AM_DEFAULT_VERBOSITY=1;;
3291 esac
3292 am_make=${MAKE-make}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3294 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3295 if ${am_cv_make_support_nested_variables+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if $as_echo 'TRUE=$(BAR$(V))
3299 BAR0=false
3300 BAR1=true
3302 am__doit:
3303 @$(TRUE)
3304 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3305 am_cv_make_support_nested_variables=yes
3306 else
3307 am_cv_make_support_nested_variables=no
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3311 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3312 if test $am_cv_make_support_nested_variables = yes; then
3313 AM_V='$(V)'
3314 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3315 else
3316 AM_V=$AM_DEFAULT_VERBOSITY
3317 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3319 AM_BACKSLASH='\'
3321 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3322 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3323 # is not polluted with repeated "-I."
3324 am__isrc=' -I$(srcdir)'
3325 # test to see if srcdir already configured
3326 if test -f $srcdir/config.status; then
3327 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3331 # test whether we have cygpath
3332 if test -z "$CYGPATH_W"; then
3333 if (cygpath --version) >/dev/null 2>/dev/null; then
3334 CYGPATH_W='cygpath -w'
3335 else
3336 CYGPATH_W=echo
3341 # Define the identity of the package.
3342 PACKAGE='alpine'
3343 VERSION='2.23.2'
3346 cat >>confdefs.h <<_ACEOF
3347 #define PACKAGE "$PACKAGE"
3348 _ACEOF
3351 cat >>confdefs.h <<_ACEOF
3352 #define VERSION "$VERSION"
3353 _ACEOF
3355 # Some tools Automake needs.
3357 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3360 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3363 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3366 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3369 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3371 # For better backward compatibility. To be removed once Automake 1.9.x
3372 # dies out for good. For more background, see:
3373 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3374 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3375 mkdir_p='$(MKDIR_P)'
3377 # We need awk for the "check" target (and possibly the TAP driver). The
3378 # system "awk" is bad on some platforms.
3379 # Always define AMTAR for backward compatibility. Yes, it's still used
3380 # in the wild :-( We should find a proper way to deprecate it ...
3381 AMTAR='$${TAR-tar}'
3384 # We'll loop over all known methods to create a tar archive until one works.
3385 _am_tools='gnutar pax cpio none'
3387 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3394 # POSIX will say in a future version that running "rm -f" with no argument
3395 # is OK; and we want to be able to make that assumption in our Makefile
3396 # recipes. So use an aggressive probe to check that the usage we want is
3397 # actually supported "in the wild" to an acceptable degree.
3398 # See automake bug#10828.
3399 # To make any issue more visible, cause the running configure to be aborted
3400 # by default if the 'rm' program in use doesn't match our expectations; the
3401 # user can still override this though.
3402 if rm -f && rm -fr && rm -rf; then : OK; else
3403 cat >&2 <<'END'
3404 Oops!
3406 Your 'rm' program seems unable to run without file operands specified
3407 on the command line, even when the '-f' option is present. This is contrary
3408 to the behaviour of most rm programs out there, and not conforming with
3409 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3411 Please tell bug-automake@gnu.org about your system, including the value
3412 of your $PATH and any error possibly output before this message. This
3413 can help us improve future automake versions.
3416 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3417 echo 'Configuration will proceed anyway, since you have set the' >&2
3418 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3419 echo >&2
3420 else
3421 cat >&2 <<'END'
3422 Aborting the configuration process, to ensure you take notice of the issue.
3424 You can download and install GNU coreutils to get an 'rm' implementation
3425 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3427 If you want to complete the configuration process using your problematic
3428 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3429 to "yes", and re-run configure.
3432 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3439 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3440 # Check whether --enable-maintainer-mode was given.
3441 if test "${enable_maintainer_mode+set}" = set; then :
3442 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3443 else
3444 USE_MAINTAINER_MODE=no
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3448 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3449 if test $USE_MAINTAINER_MODE = yes; then
3450 MAINTAINER_MODE_TRUE=
3451 MAINTAINER_MODE_FALSE='#'
3452 else
3453 MAINTAINER_MODE_TRUE='#'
3454 MAINTAINER_MODE_FALSE=
3457 MAINT=$MAINTAINER_MODE_TRUE
3461 # Make sure we can run config.sub.
3462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3466 $as_echo_n "checking build system type... " >&6; }
3467 if ${ac_cv_build+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_build_alias=$build_alias
3471 test "x$ac_build_alias" = x &&
3472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3473 test "x$ac_build_alias" = x &&
3474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3480 $as_echo "$ac_cv_build" >&6; }
3481 case $ac_cv_build in
3482 *-*-*) ;;
3483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3484 esac
3485 build=$ac_cv_build
3486 ac_save_IFS=$IFS; IFS='-'
3487 set x $ac_cv_build
3488 shift
3489 build_cpu=$1
3490 build_vendor=$2
3491 shift; shift
3492 # Remember, the first character of IFS is used to create $*,
3493 # except with old shells:
3494 build_os=$*
3495 IFS=$ac_save_IFS
3496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3500 $as_echo_n "checking host system type... " >&6; }
3501 if ${ac_cv_host+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test "x$host_alias" = x; then
3505 ac_cv_host=$ac_cv_build
3506 else
3507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3513 $as_echo "$ac_cv_host" >&6; }
3514 case $ac_cv_host in
3515 *-*-*) ;;
3516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3517 esac
3518 host=$ac_cv_host
3519 ac_save_IFS=$IFS; IFS='-'
3520 set x $ac_cv_host
3521 shift
3522 host_cpu=$1
3523 host_vendor=$2
3524 shift; shift
3525 # Remember, the first character of IFS is used to create $*,
3526 # except with old shells:
3527 host_os=$*
3528 IFS=$ac_save_IFS
3529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3541 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3543 # start out with intent to build Web Alpine
3544 WEB_BUILD=web/src/alpined.d
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 $as_echo "$CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3591 if test -z "$ac_cv_prog_CC"; then
3592 ac_ct_CC=$CC
3593 # Extract the first word of "gcc", so it can be a program name with args.
3594 set dummy gcc; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -n "$ac_ct_CC"; then
3601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_ac_ct_CC="gcc"
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3614 done
3615 done
3616 IFS=$as_save_IFS
3620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621 if test -n "$ac_ct_CC"; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623 $as_echo "$ac_ct_CC" >&6; }
3624 else
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3629 if test "x$ac_ct_CC" = x; then
3630 CC=""
3631 else
3632 case $cross_compiling:$ac_tool_warned in
3633 yes:)
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636 ac_tool_warned=yes ;;
3637 esac
3638 CC=$ac_ct_CC
3640 else
3641 CC="$ac_cv_prog_CC"
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_CC="${ac_tool_prefix}cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3685 if test -z "$CC"; then
3686 # Extract the first word of "cc", so it can be a program name with args.
3687 set dummy cc; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_CC+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 ac_prog_rejected=no
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705 ac_prog_rejected=yes
3706 continue
3708 ac_cv_prog_CC="cc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3714 IFS=$as_save_IFS
3716 if test $ac_prog_rejected = yes; then
3717 # We found a bogon in the path, so make sure we never use it.
3718 set dummy $ac_cv_prog_CC
3719 shift
3720 if test $# != 0; then
3721 # We chose a different compiler from the bogus one.
3722 # However, it has the same basename, so the bogon will be chosen
3723 # first if we set CC to just the basename; use the full file name.
3724 shift
3725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
3743 for ac_prog in cl.exe
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$CC" && break
3783 done
3785 if test -z "$CC"; then
3786 ac_ct_CC=$CC
3787 for ac_prog in cl.exe
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CC="$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817 if test -n "$ac_ct_CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819 $as_echo "$ac_ct_CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$ac_ct_CC" && break
3827 done
3829 if test "x$ac_ct_CC" = x; then
3830 CC=""
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833 yes:)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3837 esac
3838 CC=$ac_ct_CC
3845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "no acceptable C compiler found in \$PATH
3848 See \`config.log' for more details" "$LINENO" 5; }
3850 # Provide some information about the compiler.
3851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3852 set X $ac_compile
3853 ac_compiler=$2
3854 for ac_option in --version -v -V -qversion; do
3855 { { ac_try="$ac_compiler $ac_option >&5"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3863 ac_status=$?
3864 if test -s conftest.err; then
3865 sed '10a\
3866 ... rest of stderr output deleted ...
3867 10q' conftest.err >conftest.er1
3868 cat conftest.er1 >&5
3870 rm -f conftest.er1 conftest.err
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }
3873 done
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 ac_clean_files_save=$ac_clean_files
3887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3888 # Try to create an executable without -o first, disregard a.out.
3889 # It will help us diagnose broken compilers, and finding out an intuition
3890 # of exeext.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3892 $as_echo_n "checking whether the C compiler works... " >&6; }
3893 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895 # The possible output files:
3896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898 ac_rmfiles=
3899 for ac_file in $ac_files
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3904 esac
3905 done
3906 rm -f $ac_rmfiles
3908 if { { ac_try="$ac_link_default"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link_default") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }; then :
3919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3920 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3921 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3922 # so that the user can short-circuit this test for compilers unknown to
3923 # Autoconf.
3924 for ac_file in $ac_files ''
3926 test -f "$ac_file" || continue
3927 case $ac_file in
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3930 [ab].out )
3931 # We found the default executable, but exeext='' is most
3932 # certainly right.
3933 break;;
3934 *.* )
3935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3936 then :; else
3937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 # We set ac_cv_exeext here because the later test for it is not
3940 # safe: cross compilers may not add the suffix if given an `-o'
3941 # argument, so we may need to know it at that point already.
3942 # Even if this section looks crufty: it has the advantage of
3943 # actually working.
3944 break;;
3946 break;;
3947 esac
3948 done
3949 test "$ac_cv_exeext" = no && ac_cv_exeext=
3951 else
3952 ac_file=''
3954 if test -z "$ac_file"; then :
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error 77 "C compiler cannot create executables
3963 See \`config.log' for more details" "$LINENO" 5; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3969 $as_echo_n "checking for C compiler default output file name... " >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3971 $as_echo "$ac_file" >&6; }
3972 ac_exeext=$ac_cv_exeext
3974 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3975 ac_clean_files=$ac_clean_files_save
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3977 $as_echo_n "checking for suffix of executables... " >&6; }
3978 if { { ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_link") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }; then :
3989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3991 # work properly (i.e., refer to `conftest.exe'), while it won't with
3992 # `rm'.
3993 for ac_file in conftest.exe conftest conftest.*; do
3994 test -f "$ac_file" || continue
3995 case $ac_file in
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 break;;
3999 * ) break;;
4000 esac
4001 done
4002 else
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4006 See \`config.log' for more details" "$LINENO" 5; }
4008 rm -f conftest conftest$ac_cv_exeext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4010 $as_echo "$ac_cv_exeext" >&6; }
4012 rm -f conftest.$ac_ext
4013 EXEEXT=$ac_cv_exeext
4014 ac_exeext=$EXEEXT
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <stdio.h>
4019 main ()
4021 FILE *f = fopen ("conftest.out", "w");
4022 return ferror (f) || fclose (f) != 0;
4025 return 0;
4027 _ACEOF
4028 ac_clean_files="$ac_clean_files conftest.out"
4029 # Check that the compiler produces executables we can run. If not, either
4030 # the compiler is broken, or we cross compile.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4032 $as_echo_n "checking whether we are cross compiling... " >&6; }
4033 if test "$cross_compiling" != yes; then
4034 { { ac_try="$ac_link"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_link") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 if { ac_try='./conftest$ac_cv_exeext'
4046 { { case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_try") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; }; then
4056 cross_compiling=no
4057 else
4058 if test "$cross_compiling" = maybe; then
4059 cross_compiling=yes
4060 else
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $? "cannot run C compiled programs.
4064 If you meant to cross compile, use \`--host'.
4065 See \`config.log' for more details" "$LINENO" 5; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4070 $as_echo "$cross_compiling" >&6; }
4072 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4073 ac_clean_files=$ac_clean_files_save
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4075 $as_echo_n "checking for suffix of object files... " >&6; }
4076 if ${ac_cv_objext+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4083 main ()
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.o conftest.obj
4091 if { { ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compile") 2>&5
4099 ac_status=$?
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; then :
4102 for ac_file in conftest.o conftest.obj conftest.*; do
4103 test -f "$ac_file" || continue;
4104 case $ac_file in
4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4107 break;;
4108 esac
4109 done
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot compute suffix of object files: cannot compile
4117 See \`config.log' for more details" "$LINENO" 5; }
4119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4122 $as_echo "$ac_cv_objext" >&6; }
4123 OBJEXT=$ac_cv_objext
4124 ac_objext=$OBJEXT
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4127 if ${ac_cv_c_compiler_gnu+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4136 #ifndef __GNUC__
4137 choke me
4138 #endif
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_compiler_gnu=yes
4146 else
4147 ac_compiler_gnu=no
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4155 if test $ac_compiler_gnu = yes; then
4156 GCC=yes
4157 else
4158 GCC=
4160 ac_test_CFLAGS=${CFLAGS+set}
4161 ac_save_CFLAGS=$CFLAGS
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4164 if ${ac_cv_prog_cc_g+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 ac_save_c_werror_flag=$ac_c_werror_flag
4168 ac_c_werror_flag=yes
4169 ac_cv_prog_cc_g=no
4170 CFLAGS="-g"
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_g=yes
4184 else
4185 CFLAGS=""
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4194 return 0;
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4199 else
4200 ac_c_werror_flag=$ac_save_c_werror_flag
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4206 main ()
4210 return 0;
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_g=yes
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4224 $as_echo "$ac_cv_prog_cc_g" >&6; }
4225 if test "$ac_test_CFLAGS" = set; then
4226 CFLAGS=$ac_save_CFLAGS
4227 elif test $ac_cv_prog_cc_g = yes; then
4228 if test "$GCC" = yes; then
4229 CFLAGS="-g -O2"
4230 else
4231 CFLAGS="-g"
4233 else
4234 if test "$GCC" = yes; then
4235 CFLAGS="-O2"
4236 else
4237 CFLAGS=
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4242 if ${ac_cv_prog_cc_c89+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_cv_prog_cc_c89=no
4246 ac_save_CC=$CC
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <stdarg.h>
4250 #include <stdio.h>
4251 struct stat;
4252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4253 struct buf { int x; };
4254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4255 static char *e (p, i)
4256 char **p;
4257 int i;
4259 return p[i];
4261 static char *f (char * (*g) (char **, int), char **p, ...)
4263 char *s;
4264 va_list v;
4265 va_start (v,p);
4266 s = g (p, va_arg (v,int));
4267 va_end (v);
4268 return s;
4271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4272 function prototypes and stuff, but not '\xHH' hex character constants.
4273 These don't provoke an error unfortunately, instead are silently treated
4274 as 'x'. The following induces an error, until -std is added to get
4275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4276 array size at least. It's necessary to write '\x00'==0 to get something
4277 that's true only with -std. */
4278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4281 inside strings and character constants. */
4282 #define FOO(x) 'x'
4283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285 int test (int i, double x);
4286 struct s1 {int (*f) (int a);};
4287 struct s2 {int (*f) (double a);};
4288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 int argc;
4290 char **argv;
4292 main ()
4294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 return 0;
4298 _ACEOF
4299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302 CC="$ac_save_CC $ac_arg"
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_prog_cc_c89=$ac_arg
4306 rm -f core conftest.err conftest.$ac_objext
4307 test "x$ac_cv_prog_cc_c89" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4313 # AC_CACHE_VAL
4314 case "x$ac_cv_prog_cc_c89" in
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4317 $as_echo "none needed" >&6; } ;;
4318 xno)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4320 $as_echo "unsupported" >&6; } ;;
4322 CC="$CC $ac_cv_prog_cc_c89"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4325 esac
4326 if test "x$ac_cv_prog_cc_c89" != xno; then :
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4342 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4343 if ${am_cv_prog_cc_c_o+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4350 main ()
4354 return 0;
4356 _ACEOF
4357 # Make sure it works both with $CC and with simple cc.
4358 # Following AC_PROG_CC_C_O, we do the test twice because some
4359 # compilers refuse to overwrite an existing .o file with -o,
4360 # though they will create one.
4361 am_cv_prog_cc_c_o=yes
4362 for am_i in 1 2; do
4363 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4364 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } \
4368 && test -f conftest2.$ac_objext; then
4369 : OK
4370 else
4371 am_cv_prog_cc_c_o=no
4372 break
4374 done
4375 rm -f core conftest*
4376 unset am_i
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4379 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4380 if test "$am_cv_prog_cc_c_o" != yes; then
4381 # Losing compiler, so override with the script.
4382 # FIXME: It is wrong to rewrite CC.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__CC in this case,
4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4386 CC="$am_aux_dir/compile $CC"
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 DEPDIR="${am__leading_dot}deps"
4396 ac_config_commands="$ac_config_commands depfiles"
4399 am_make=${MAKE-make}
4400 cat > confinc << 'END'
4401 am__doit:
4402 @echo this is the am__doit target
4403 .PHONY: am__doit
4405 # If we don't find an include directive, just comment out the code.
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4407 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4408 am__include="#"
4409 am__quote=
4410 _am_result=none
4411 # First try GNU make style include.
4412 echo "include confinc" > confmf
4413 # Ignore all kinds of additional output from 'make'.
4414 case `$am_make -s -f confmf 2> /dev/null` in #(
4415 *the\ am__doit\ target*)
4416 am__include=include
4417 am__quote=
4418 _am_result=GNU
4420 esac
4421 # Now try BSD make style include.
4422 if test "$am__include" = "#"; then
4423 echo '.include "confinc"' > confmf
4424 case `$am_make -s -f confmf 2> /dev/null` in #(
4425 *the\ am__doit\ target*)
4426 am__include=.include
4427 am__quote="\""
4428 _am_result=BSD
4430 esac
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4435 $as_echo "$_am_result" >&6; }
4436 rm -f confinc confmf
4438 # Check whether --enable-dependency-tracking was given.
4439 if test "${enable_dependency_tracking+set}" = set; then :
4440 enableval=$enable_dependency_tracking;
4443 if test "x$enable_dependency_tracking" != xno; then
4444 am_depcomp="$ac_aux_dir/depcomp"
4445 AMDEPBACKSLASH='\'
4446 am__nodep='_no'
4448 if test "x$enable_dependency_tracking" != xno; then
4449 AMDEP_TRUE=
4450 AMDEP_FALSE='#'
4451 else
4452 AMDEP_TRUE='#'
4453 AMDEP_FALSE=
4458 depcc="$CC" am_compiler_list=
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461 $as_echo_n "checking dependency style of $depcc... " >&6; }
4462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
4471 rm -rf conftest.dir
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4485 am_cv_CC_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 am__universal=false
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4517 case $depmode in
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4522 nosideeffect)
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4532 # This compiler won't grok '-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4538 none) break ;;
4539 esac
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CC_dependencies_compiler_type=$depmode
4559 break
4562 done
4564 cd ..
4565 rm -rf conftest.dir
4566 else
4567 am_cv_CC_dependencies_compiler_type=none
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCC_TRUE=
4579 am__fastdepCC_FALSE='#'
4580 else
4581 am__fastdepCC_TRUE='#'
4582 am__fastdepCC_FALSE=
4586 AX_PROG_CC_FOR_BUILD
4587 case $ac_cv_prog_cc_stdc in #(
4588 no) :
4589 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4590 *) :
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4592 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4593 if ${ac_cv_prog_cc_c99+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_cv_prog_cc_c99=no
4597 ac_save_CC=$CC
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <stdarg.h>
4601 #include <stdbool.h>
4602 #include <stdlib.h>
4603 #include <wchar.h>
4604 #include <stdio.h>
4606 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4607 #define debug(...) fprintf (stderr, __VA_ARGS__)
4608 #define showlist(...) puts (#__VA_ARGS__)
4609 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4610 static void
4611 test_varargs_macros (void)
4613 int x = 1234;
4614 int y = 5678;
4615 debug ("Flag");
4616 debug ("X = %d\n", x);
4617 showlist (The first, second, and third items.);
4618 report (x>y, "x is %d but y is %d", x, y);
4621 // Check long long types.
4622 #define BIG64 18446744073709551615ull
4623 #define BIG32 4294967295ul
4624 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4625 #if !BIG_OK
4626 your preprocessor is broken;
4627 #endif
4628 #if BIG_OK
4629 #else
4630 your preprocessor is broken;
4631 #endif
4632 static long long int bignum = -9223372036854775807LL;
4633 static unsigned long long int ubignum = BIG64;
4635 struct incomplete_array
4637 int datasize;
4638 double data[];
4641 struct named_init {
4642 int number;
4643 const wchar_t *name;
4644 double average;
4647 typedef const char *ccp;
4649 static inline int
4650 test_restrict (ccp restrict text)
4652 // See if C++-style comments work.
4653 // Iterate through items via the restricted pointer.
4654 // Also check for declarations in for loops.
4655 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4656 continue;
4657 return 0;
4660 // Check varargs and va_copy.
4661 static void
4662 test_varargs (const char *format, ...)
4664 va_list args;
4665 va_start (args, format);
4666 va_list args_copy;
4667 va_copy (args_copy, args);
4669 const char *str;
4670 int number;
4671 float fnumber;
4673 while (*format)
4675 switch (*format++)
4677 case 's': // string
4678 str = va_arg (args_copy, const char *);
4679 break;
4680 case 'd': // int
4681 number = va_arg (args_copy, int);
4682 break;
4683 case 'f': // float
4684 fnumber = va_arg (args_copy, double);
4685 break;
4686 default:
4687 break;
4690 va_end (args_copy);
4691 va_end (args);
4695 main ()
4698 // Check bool.
4699 _Bool success = false;
4701 // Check restrict.
4702 if (test_restrict ("String literal") == 0)
4703 success = true;
4704 char *restrict newvar = "Another string";
4706 // Check varargs.
4707 test_varargs ("s, d' f .", "string", 65, 34.234);
4708 test_varargs_macros ();
4710 // Check flexible array members.
4711 struct incomplete_array *ia =
4712 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4713 ia->datasize = 10;
4714 for (int i = 0; i < ia->datasize; ++i)
4715 ia->data[i] = i * 1.234;
4717 // Check named initializers.
4718 struct named_init ni = {
4719 .number = 34,
4720 .name = L"Test wide string",
4721 .average = 543.34343,
4724 ni.number = 58;
4726 int dynamic_array[ni.number];
4727 dynamic_array[ni.number - 1] = 543;
4729 // work around unused variable warnings
4730 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4731 || dynamic_array[ni.number - 1] != 543);
4734 return 0;
4736 _ACEOF
4737 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4739 CC="$ac_save_CC $ac_arg"
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_prog_cc_c99=$ac_arg
4743 rm -f core conftest.err conftest.$ac_objext
4744 test "x$ac_cv_prog_cc_c99" != "xno" && break
4745 done
4746 rm -f conftest.$ac_ext
4747 CC=$ac_save_CC
4750 # AC_CACHE_VAL
4751 case "x$ac_cv_prog_cc_c99" in
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4754 $as_echo "none needed" >&6; } ;;
4755 xno)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4757 $as_echo "unsupported" >&6; } ;;
4759 CC="$CC $ac_cv_prog_cc_c99"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4761 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4762 esac
4763 if test "x$ac_cv_prog_cc_c99" != xno; then :
4764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4768 if ${ac_cv_prog_cc_c89+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_cv_prog_cc_c89=no
4772 ac_save_CC=$CC
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <stdarg.h>
4776 #include <stdio.h>
4777 struct stat;
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4782 char **p;
4783 int i;
4785 return p[i];
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4789 char *s;
4790 va_list v;
4791 va_start (v,p);
4792 s = g (p, va_arg (v,int));
4793 va_end (v);
4794 return s;
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4808 #define FOO(x) 'x'
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4815 int argc;
4816 char **argv;
4818 main ()
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4822 return 0;
4824 _ACEOF
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4834 done
4835 rm -f conftest.$ac_ext
4836 CC=$ac_save_CC
4839 # AC_CACHE_VAL
4840 case "x$ac_cv_prog_cc_c89" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4844 xno)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4851 esac
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4853 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4854 else
4855 ac_cv_prog_cc_stdc=no
4860 esac
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4862 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4863 if ${ac_cv_prog_cc_stdc+:} false; then :
4864 $as_echo_n "(cached) " >&6
4867 case $ac_cv_prog_cc_stdc in #(
4868 no) :
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4870 $as_echo "unsupported" >&6; } ;; #(
4871 '') :
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4873 $as_echo "none needed" >&6; } ;; #(
4874 *) :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4876 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4877 esac
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4881 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4882 set x ${MAKE-make}
4883 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4884 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 cat >conftest.make <<\_ACEOF
4888 SHELL = /bin/sh
4889 all:
4890 @echo '@@@%%%=$(MAKE)=@@@%%%'
4891 _ACEOF
4892 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4893 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4894 *@@@%%%=?*=@@@%%%*)
4895 eval ac_cv_prog_make_${ac_make}_set=yes;;
4897 eval ac_cv_prog_make_${ac_make}_set=no;;
4898 esac
4899 rm -f conftest.make
4901 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4904 SET_MAKE=
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 SET_MAKE="MAKE=${MAKE-make}"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4912 $as_echo_n "checking whether ln -s works... " >&6; }
4913 LN_S=$as_ln_s
4914 if test "$LN_S" = "ln -s"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916 $as_echo "yes" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4919 $as_echo "no, using $LN_S" >&6; }
4922 for ac_prog in gawk mawk nawk awk
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_AWK+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$AWK"; then
4932 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_AWK="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 AWK=$ac_cv_prog_AWK
4952 if test -n "$AWK"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4954 $as_echo "$AWK" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$AWK" && break
4962 done
4964 case `pwd` in
4965 *\ * | *\ *)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4968 esac
4972 macro_version='2.4.6'
4973 macro_revision='2.4.6'
4987 ltmain=$ac_aux_dir/ltmain.sh
4989 # Backslashify metacharacters that are still active within
4990 # double-quoted strings.
4991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4993 # Same as above, but do not quote variable references.
4994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4996 # Sed substitution to delay expansion of an escaped shell variable in a
4997 # double_quote_subst'ed string.
4998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5000 # Sed substitution to delay expansion of an escaped single quote.
5001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5003 # Sed substitution to avoid accidental globbing in evaled expressions
5004 no_glob_subst='s/\*/\\\*/g'
5006 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5011 $as_echo_n "checking how to print strings... " >&6; }
5012 # Test print first, because it will be a builtin if present.
5013 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5015 ECHO='print -r --'
5016 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5017 ECHO='printf %s\n'
5018 else
5019 # Use this function as a fallback that always works.
5020 func_fallback_echo ()
5022 eval 'cat <<_LTECHO_EOF
5024 _LTECHO_EOF'
5026 ECHO='func_fallback_echo'
5029 # func_echo_all arg...
5030 # Invoke $ECHO with all args, space-separated.
5031 func_echo_all ()
5033 $ECHO ""
5036 case $ECHO in
5037 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5038 $as_echo "printf" >&6; } ;;
5039 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5040 $as_echo "print -r" >&6; } ;;
5041 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5042 $as_echo "cat" >&6; } ;;
5043 esac
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5059 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5060 if ${ac_cv_path_SED+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5064 for ac_i in 1 2 3 4 5 6 7; do
5065 ac_script="$ac_script$as_nl$ac_script"
5066 done
5067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5068 { ac_script=; unset ac_script;}
5069 if test -z "$SED"; then
5070 ac_path_SED_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in sed gsed; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_SED" || continue
5081 # Check for GNU ac_path_SED and select it if it is found.
5082 # Check for GNU $ac_path_SED
5083 case `"$ac_path_SED" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo '' >> "conftest.nl"
5095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_SED_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_SED="$ac_path_SED"
5101 ac_path_SED_max=$ac_count
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5109 $ac_path_SED_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_SED"; then
5115 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5117 else
5118 ac_cv_path_SED=$SED
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5123 $as_echo "$ac_cv_path_SED" >&6; }
5124 SED="$ac_cv_path_SED"
5125 rm -f conftest.sed
5127 test -z "$SED" && SED=sed
5128 Xsed="$SED -e 1s/^X//"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5141 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5142 if ${ac_cv_path_GREP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -z "$GREP"; then
5146 ac_path_GREP_found=false
5147 # Loop through the user's path and test for each of PROGNAME-LIST
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_prog in grep ggrep; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5156 as_fn_executable_p "$ac_path_GREP" || continue
5157 # Check for GNU ac_path_GREP and select it if it is found.
5158 # Check for GNU $ac_path_GREP
5159 case `"$ac_path_GREP" --version 2>&1` in
5160 *GNU*)
5161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163 ac_count=0
5164 $as_echo_n 0123456789 >"conftest.in"
5165 while :
5167 cat "conftest.in" "conftest.in" >"conftest.tmp"
5168 mv "conftest.tmp" "conftest.in"
5169 cp "conftest.in" "conftest.nl"
5170 $as_echo 'GREP' >> "conftest.nl"
5171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5173 as_fn_arith $ac_count + 1 && ac_count=$as_val
5174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5175 # Best one so far, save it but keep looking for a better one
5176 ac_cv_path_GREP="$ac_path_GREP"
5177 ac_path_GREP_max=$ac_count
5179 # 10*(2^10) chars as input seems more than enough
5180 test $ac_count -gt 10 && break
5181 done
5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5183 esac
5185 $ac_path_GREP_found && break 3
5186 done
5187 done
5188 done
5189 IFS=$as_save_IFS
5190 if test -z "$ac_cv_path_GREP"; then
5191 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193 else
5194 ac_cv_path_GREP=$GREP
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5199 $as_echo "$ac_cv_path_GREP" >&6; }
5200 GREP="$ac_cv_path_GREP"
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5204 $as_echo_n "checking for egrep... " >&6; }
5205 if ${ac_cv_path_EGREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5209 then ac_cv_path_EGREP="$GREP -E"
5210 else
5211 if test -z "$EGREP"; then
5212 ac_path_EGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in egrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_EGREP" || continue
5223 # Check for GNU ac_path_EGREP and select it if it is found.
5224 # Check for GNU $ac_path_EGREP
5225 case `"$ac_path_EGREP" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'EGREP' >> "conftest.nl"
5237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_EGREP="$ac_path_EGREP"
5243 ac_path_EGREP_max=$ac_count
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5251 $ac_path_EGREP_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_EGREP"; then
5257 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 else
5260 ac_cv_path_EGREP=$EGREP
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5266 $as_echo "$ac_cv_path_EGREP" >&6; }
5267 EGREP="$ac_cv_path_EGREP"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5271 $as_echo_n "checking for fgrep... " >&6; }
5272 if ${ac_cv_path_FGREP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5276 then ac_cv_path_FGREP="$GREP -F"
5277 else
5278 if test -z "$FGREP"; then
5279 ac_path_FGREP_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 fgrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_FGREP" || continue
5290 # Check for GNU ac_path_FGREP and select it if it is found.
5291 # Check for GNU $ac_path_FGREP
5292 case `"$ac_path_FGREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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 'FGREP' >> "conftest.nl"
5304 "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_FGREP="$ac_path_FGREP"
5310 ac_path_FGREP_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_FGREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_FGREP"; then
5324 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 else
5327 ac_cv_path_FGREP=$FGREP
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5333 $as_echo "$ac_cv_path_FGREP" >&6; }
5334 FGREP="$ac_cv_path_FGREP"
5337 test -z "$GREP" && GREP=grep
5357 # Check whether --with-gnu-ld was given.
5358 if test "${with_gnu_ld+set}" = set; then :
5359 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5360 else
5361 with_gnu_ld=no
5364 ac_prog=ld
5365 if test yes = "$GCC"; then
5366 # Check if gcc -print-prog-name=ld gives a path.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5368 $as_echo_n "checking for ld used by $CC... " >&6; }
5369 case $host in
5370 *-*-mingw*)
5371 # gcc leaves a trailing carriage return, which upsets mingw
5372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5375 esac
5376 case $ac_prog in
5377 # Accept absolute paths.
5378 [\\/]* | ?:[\\/]*)
5379 re_direlt='/[^/][^/]*/\.\./'
5380 # Canonicalize the pathname of ld
5381 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5382 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5383 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5384 done
5385 test -z "$LD" && LD=$ac_prog
5388 # If it fails, then pretend we aren't using GCC.
5389 ac_prog=ld
5392 # If it is relative, then search for the first ld in PATH.
5393 with_gnu_ld=unknown
5395 esac
5396 elif test yes = "$with_gnu_ld"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5398 $as_echo_n "checking for GNU ld... " >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5401 $as_echo_n "checking for non-GNU ld... " >&6; }
5403 if ${lt_cv_path_LD+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -z "$LD"; then
5407 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5408 for ac_dir in $PATH; do
5409 IFS=$lt_save_ifs
5410 test -z "$ac_dir" && ac_dir=.
5411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5412 lt_cv_path_LD=$ac_dir/$ac_prog
5413 # Check to see if the program is GNU ld. I'd rather use --version,
5414 # but apparently some variants of GNU ld only accept -v.
5415 # Break only if it was the GNU/non-GNU ld that we prefer.
5416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5417 *GNU* | *'with BFD'*)
5418 test no != "$with_gnu_ld" && break
5421 test yes != "$with_gnu_ld" && break
5423 esac
5425 done
5426 IFS=$lt_save_ifs
5427 else
5428 lt_cv_path_LD=$LD # Let the user override the test with a path.
5432 LD=$lt_cv_path_LD
5433 if test -n "$LD"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5435 $as_echo "$LD" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5442 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5443 if ${lt_cv_prog_gnu_ld+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5447 case `$LD -v 2>&1 </dev/null` in
5448 *GNU* | *'with BFD'*)
5449 lt_cv_prog_gnu_ld=yes
5452 lt_cv_prog_gnu_ld=no
5454 esac
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5457 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5458 with_gnu_ld=$lt_cv_prog_gnu_ld
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5469 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5470 if ${lt_cv_path_NM+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$NM"; then
5474 # Let the user override the test.
5475 lt_cv_path_NM=$NM
5476 else
5477 lt_nm_to_check=${ac_tool_prefix}nm
5478 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5479 lt_nm_to_check="$lt_nm_to_check nm"
5481 for lt_tmp_nm in $lt_nm_to_check; do
5482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5484 IFS=$lt_save_ifs
5485 test -z "$ac_dir" && ac_dir=.
5486 tmp_nm=$ac_dir/$lt_tmp_nm
5487 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5488 # Check to see if the nm accepts a BSD-compat flag.
5489 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5490 # nm: unknown option "B" ignored
5491 # Tru64's nm complains that /dev/null is an invalid object file
5492 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5493 case $build_os in
5494 mingw*) lt_bad_file=conftest.nm/nofile ;;
5495 *) lt_bad_file=/dev/null ;;
5496 esac
5497 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5498 *$lt_bad_file* | *'Invalid file or object type'*)
5499 lt_cv_path_NM="$tmp_nm -B"
5500 break 2
5503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5504 */dev/null*)
5505 lt_cv_path_NM="$tmp_nm -p"
5506 break 2
5509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5510 continue # so that we can try to find one that supports BSD flags
5512 esac
5514 esac
5516 done
5517 IFS=$lt_save_ifs
5518 done
5519 : ${lt_cv_path_NM=no}
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5523 $as_echo "$lt_cv_path_NM" >&6; }
5524 if test no != "$lt_cv_path_NM"; then
5525 NM=$lt_cv_path_NM
5526 else
5527 # Didn't find any BSD compatible name lister, look for dumpbin.
5528 if test -n "$DUMPBIN"; then :
5529 # Let the user override the test.
5530 else
5531 if test -n "$ac_tool_prefix"; then
5532 for ac_prog in dumpbin "link -dump"
5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_DUMPBIN+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$DUMPBIN"; then
5542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 DUMPBIN=$ac_cv_prog_DUMPBIN
5562 if test -n "$DUMPBIN"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5564 $as_echo "$DUMPBIN" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 test -n "$DUMPBIN" && break
5572 done
5574 if test -z "$DUMPBIN"; then
5575 ac_ct_DUMPBIN=$DUMPBIN
5576 for ac_prog in dumpbin "link -dump"
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$ac_ct_DUMPBIN"; then
5586 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5606 if test -n "$ac_ct_DUMPBIN"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5608 $as_echo "$ac_ct_DUMPBIN" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5615 test -n "$ac_ct_DUMPBIN" && break
5616 done
5618 if test "x$ac_ct_DUMPBIN" = x; then
5619 DUMPBIN=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 DUMPBIN=$ac_ct_DUMPBIN
5631 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5632 *COFF*)
5633 DUMPBIN="$DUMPBIN -symbols -headers"
5636 DUMPBIN=:
5638 esac
5641 if test : != "$DUMPBIN"; then
5642 NM=$DUMPBIN
5645 test -z "$NM" && NM=nm
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5653 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5654 if ${lt_cv_nm_interface+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 lt_cv_nm_interface="BSD nm"
5658 echo "int some_variable = 0;" > conftest.$ac_ext
5659 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5660 (eval "$ac_compile" 2>conftest.err)
5661 cat conftest.err >&5
5662 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5663 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5666 cat conftest.out >&5
5667 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5668 lt_cv_nm_interface="MS dumpbin"
5670 rm -f conftest*
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5673 $as_echo "$lt_cv_nm_interface" >&6; }
5675 # find the maximum length of command line arguments
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5677 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5678 if ${lt_cv_sys_max_cmd_len+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5682 teststring=ABCD
5684 case $build_os in
5685 msdosdjgpp*)
5686 # On DJGPP, this test can blow up pretty badly due to problems in libc
5687 # (any single argument exceeding 2000 bytes causes a buffer overrun
5688 # during glob expansion). Even if it were fixed, the result of this
5689 # check would be larger than it should be.
5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5693 gnu*)
5694 # Under GNU Hurd, this test is not required because there is
5695 # no limit to the length of command line arguments.
5696 # Libtool will interpret -1 as no limit whatsoever
5697 lt_cv_sys_max_cmd_len=-1;
5700 cygwin* | mingw* | cegcc*)
5701 # On Win9x/ME, this test blows up -- it succeeds, but takes
5702 # about 5 minutes as the teststring grows exponentially.
5703 # Worse, since 9x/ME are not pre-emptively multitasking,
5704 # you end up with a "frozen" computer, even though with patience
5705 # the test eventually succeeds (with a max line length of 256k).
5706 # Instead, let's just punt: use the minimum linelength reported by
5707 # all of the supported platforms: 8192 (on NT/2K/XP).
5708 lt_cv_sys_max_cmd_len=8192;
5711 mint*)
5712 # On MiNT this can take a long time and run out of memory.
5713 lt_cv_sys_max_cmd_len=8192;
5716 amigaos*)
5717 # On AmigaOS with pdksh, this test takes hours, literally.
5718 # So we just punt and use a minimum line length of 8192.
5719 lt_cv_sys_max_cmd_len=8192;
5722 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5723 # This has been around since 386BSD, at least. Likely further.
5724 if test -x /sbin/sysctl; then
5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5726 elif test -x /usr/sbin/sysctl; then
5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5728 else
5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5731 # And add a safety zone
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5736 interix*)
5737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5738 lt_cv_sys_max_cmd_len=196608
5741 os2*)
5742 # The test takes a long time on OS/2.
5743 lt_cv_sys_max_cmd_len=8192
5746 osf*)
5747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5749 # nice to cause kernel panics so lets avoid the loop below.
5750 # First set a reasonable default.
5751 lt_cv_sys_max_cmd_len=16384
5753 if test -x /sbin/sysconfig; then
5754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5755 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5756 esac
5759 sco3.2v5*)
5760 lt_cv_sys_max_cmd_len=102400
5762 sysv5* | sco5v6* | sysv4.2uw2*)
5763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5764 if test -n "$kargmax"; then
5765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5766 else
5767 lt_cv_sys_max_cmd_len=32768
5771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5772 if test -n "$lt_cv_sys_max_cmd_len" && \
5773 test undefined != "$lt_cv_sys_max_cmd_len"; then
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5776 else
5777 # Make teststring a little bigger before we do anything with it.
5778 # a 1K string should be a reasonable start.
5779 for i in 1 2 3 4 5 6 7 8; do
5780 teststring=$teststring$teststring
5781 done
5782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5783 # If test is not a shell built-in, we'll probably end up computing a
5784 # maximum length that is only half of the actual maximum length, but
5785 # we can't tell.
5786 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5787 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5788 test 17 != "$i" # 1/2 MB should be enough
5790 i=`expr $i + 1`
5791 teststring=$teststring$teststring
5792 done
5793 # Only check the string length outside the loop.
5794 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5795 teststring=
5796 # Add a significant safety factor because C++ compilers can tack on
5797 # massive amounts of additional arguments before passing them to the
5798 # linker. It appears as though 1/2 is a usable value.
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5802 esac
5806 if test -n "$lt_cv_sys_max_cmd_len"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5808 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5811 $as_echo "none" >&6; }
5813 max_cmd_len=$lt_cv_sys_max_cmd_len
5820 : ${CP="cp -f"}
5821 : ${MV="mv -f"}
5822 : ${RM="rm -f"}
5824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5825 lt_unset=unset
5826 else
5827 lt_unset=false
5834 # test EBCDIC or ASCII
5835 case `echo X|tr X '\101'` in
5836 A) # ASCII based system
5837 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5838 lt_SP2NL='tr \040 \012'
5839 lt_NL2SP='tr \015\012 \040\040'
5841 *) # EBCDIC based system
5842 lt_SP2NL='tr \100 \n'
5843 lt_NL2SP='tr \r\n \100\100'
5845 esac
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5856 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5857 if ${lt_cv_to_host_file_cmd+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 case $host in
5861 *-*-mingw* )
5862 case $build in
5863 *-*-mingw* ) # actually msys
5864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5866 *-*-cygwin* )
5867 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5869 * ) # otherwise, assume *nix
5870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5872 esac
5874 *-*-cygwin* )
5875 case $build in
5876 *-*-mingw* ) # actually msys
5877 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5879 *-*-cygwin* )
5880 lt_cv_to_host_file_cmd=func_convert_file_noop
5882 * ) # otherwise, assume *nix
5883 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5885 esac
5887 * ) # unhandled hosts (and "normal" native builds)
5888 lt_cv_to_host_file_cmd=func_convert_file_noop
5890 esac
5894 to_host_file_cmd=$lt_cv_to_host_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5896 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5903 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5904 if ${lt_cv_to_tool_file_cmd+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 #assume ordinary cross tools, or native build.
5908 lt_cv_to_tool_file_cmd=func_convert_file_noop
5909 case $host in
5910 *-*-mingw* )
5911 case $build in
5912 *-*-mingw* ) # actually msys
5913 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5915 esac
5917 esac
5921 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5923 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5930 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5931 if ${lt_cv_ld_reload_flag+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 lt_cv_ld_reload_flag='-r'
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5937 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5938 reload_flag=$lt_cv_ld_reload_flag
5939 case $reload_flag in
5940 "" | " "*) ;;
5941 *) reload_flag=" $reload_flag" ;;
5942 esac
5943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5944 case $host_os in
5945 cygwin* | mingw* | pw32* | cegcc*)
5946 if test yes != "$GCC"; then
5947 reload_cmds=false
5950 darwin*)
5951 if test yes = "$GCC"; then
5952 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5953 else
5954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957 esac
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_OBJDUMP+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$OBJDUMP"; then
5976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5989 done
5990 done
5991 IFS=$as_save_IFS
5995 OBJDUMP=$ac_cv_prog_OBJDUMP
5996 if test -n "$OBJDUMP"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5998 $as_echo "$OBJDUMP" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6006 if test -z "$ac_cv_prog_OBJDUMP"; then
6007 ac_ct_OBJDUMP=$OBJDUMP
6008 # Extract the first word of "objdump", so it can be a program name with args.
6009 set dummy objdump; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$ac_ct_OBJDUMP"; then
6016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6029 done
6030 done
6031 IFS=$as_save_IFS
6035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6036 if test -n "$ac_ct_OBJDUMP"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6038 $as_echo "$ac_ct_OBJDUMP" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6044 if test "x$ac_ct_OBJDUMP" = x; then
6045 OBJDUMP="false"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 OBJDUMP=$ac_ct_OBJDUMP
6055 else
6056 OBJDUMP="$ac_cv_prog_OBJDUMP"
6059 test -z "$OBJDUMP" && OBJDUMP=objdump
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6070 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6071 if ${lt_cv_deplibs_check_method+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 lt_cv_file_magic_cmd='$MAGIC_CMD'
6075 lt_cv_file_magic_test_file=
6076 lt_cv_deplibs_check_method='unknown'
6077 # Need to set the preceding variable on all platforms that support
6078 # interlibrary dependencies.
6079 # 'none' -- dependencies not supported.
6080 # 'unknown' -- same as none, but documents that we really don't know.
6081 # 'pass_all' -- all dependencies passed with no checks.
6082 # 'test_compile' -- check by making test program.
6083 # 'file_magic [[regex]]' -- check by looking for files in library path
6084 # that responds to the $file_magic_cmd with a given extended regex.
6085 # If you have 'file' or equivalent on your system and you're not sure
6086 # whether 'pass_all' will *always* work, you probably want this one.
6088 case $host_os in
6089 aix[4-9]*)
6090 lt_cv_deplibs_check_method=pass_all
6093 beos*)
6094 lt_cv_deplibs_check_method=pass_all
6097 bsdi[45]*)
6098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6099 lt_cv_file_magic_cmd='/usr/bin/file -L'
6100 lt_cv_file_magic_test_file=/shlib/libc.so
6103 cygwin*)
6104 # func_win32_libid is a shell function defined in ltmain.sh
6105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6106 lt_cv_file_magic_cmd='func_win32_libid'
6109 mingw* | pw32*)
6110 # Base MSYS/MinGW do not provide the 'file' command needed by
6111 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6112 # unless we find 'file', for example because we are cross-compiling.
6113 if ( file / ) >/dev/null 2>&1; then
6114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6115 lt_cv_file_magic_cmd='func_win32_libid'
6116 else
6117 # Keep this pattern in sync with the one in func_win32_libid.
6118 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6119 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 cegcc*)
6124 # use the weaker test based on 'objdump'. See mingw*.
6125 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6126 lt_cv_file_magic_cmd='$OBJDUMP -f'
6129 darwin* | rhapsody*)
6130 lt_cv_deplibs_check_method=pass_all
6133 freebsd* | dragonfly*)
6134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6135 case $host_cpu in
6136 i*86 )
6137 # Not sure whether the presence of OpenBSD here was a mistake.
6138 # Let's accept both of them until this is cleared up.
6139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6140 lt_cv_file_magic_cmd=/usr/bin/file
6141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6143 esac
6144 else
6145 lt_cv_deplibs_check_method=pass_all
6149 haiku*)
6150 lt_cv_deplibs_check_method=pass_all
6153 hpux10.20* | hpux11*)
6154 lt_cv_file_magic_cmd=/usr/bin/file
6155 case $host_cpu in
6156 ia64*)
6157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6160 hppa*64*)
6161 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]'
6162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6168 esac
6171 interix[3-9]*)
6172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6176 irix5* | irix6* | nonstopux*)
6177 case $LD in
6178 *-32|*"-32 ") libmagic=32-bit;;
6179 *-n32|*"-n32 ") libmagic=N32;;
6180 *-64|*"-64 ") libmagic=64-bit;;
6181 *) libmagic=never-match;;
6182 esac
6183 lt_cv_deplibs_check_method=pass_all
6186 # This must be glibc/ELF.
6187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6188 lt_cv_deplibs_check_method=pass_all
6191 netbsd*)
6192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6194 else
6195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199 newos6*)
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6201 lt_cv_file_magic_cmd=/usr/bin/file
6202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6205 *nto* | *qnx*)
6206 lt_cv_deplibs_check_method=pass_all
6209 openbsd* | bitrig*)
6210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6212 else
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217 osf3* | osf4* | osf5*)
6218 lt_cv_deplibs_check_method=pass_all
6221 rdos*)
6222 lt_cv_deplibs_check_method=pass_all
6225 solaris*)
6226 lt_cv_deplibs_check_method=pass_all
6229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6230 lt_cv_deplibs_check_method=pass_all
6233 sysv4 | sysv4.3*)
6234 case $host_vendor in
6235 motorola)
6236 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]'
6237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6239 ncr)
6240 lt_cv_deplibs_check_method=pass_all
6242 sequent)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6246 sni)
6247 lt_cv_file_magic_cmd='/bin/file'
6248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6249 lt_cv_file_magic_test_file=/lib/libc.so
6251 siemens)
6252 lt_cv_deplibs_check_method=pass_all
6255 lt_cv_deplibs_check_method=pass_all
6257 esac
6260 tpf*)
6261 lt_cv_deplibs_check_method=pass_all
6263 os2*)
6264 lt_cv_deplibs_check_method=pass_all
6266 esac
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6270 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6272 file_magic_glob=
6273 want_nocaseglob=no
6274 if test "$build" = "$host"; then
6275 case $host_os in
6276 mingw* | pw32*)
6277 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6278 want_nocaseglob=yes
6279 else
6280 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6283 esac
6286 file_magic_cmd=$lt_cv_file_magic_cmd
6287 deplibs_check_method=$lt_cv_deplibs_check_method
6288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_DLLTOOL+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$DLLTOOL"; then
6320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 DLLTOOL=$ac_cv_prog_DLLTOOL
6340 if test -n "$DLLTOOL"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6342 $as_echo "$DLLTOOL" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 if test -z "$ac_cv_prog_DLLTOOL"; then
6351 ac_ct_DLLTOOL=$DLLTOOL
6352 # Extract the first word of "dlltool", so it can be a program name with args.
6353 set dummy dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_DLLTOOL"; then
6360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6380 if test -n "$ac_ct_DLLTOOL"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6382 $as_echo "$ac_ct_DLLTOOL" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6388 if test "x$ac_ct_DLLTOOL" = x; then
6389 DLLTOOL="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 DLLTOOL=$ac_ct_DLLTOOL
6399 else
6400 DLLTOOL="$ac_cv_prog_DLLTOOL"
6403 test -z "$DLLTOOL" && DLLTOOL=dlltool
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 lt_cv_sharedlib_from_linklib_cmd='unknown'
6421 case $host_os in
6422 cygwin* | mingw* | pw32* | cegcc*)
6423 # two different shell functions defined in ltmain.sh;
6424 # decide which one to use based on capabilities of $DLLTOOL
6425 case `$DLLTOOL --help 2>&1` in
6426 *--identify-strict*)
6427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6432 esac
6435 # fallback: assume linklib IS sharedlib
6436 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6438 esac
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6453 if test -n "$ac_tool_prefix"; then
6454 for ac_prog in ar
6456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_AR+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$AR"; then
6464 ac_cv_prog_AR="$AR" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 AR=$ac_cv_prog_AR
6484 if test -n "$AR"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6486 $as_echo "$AR" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6493 test -n "$AR" && break
6494 done
6496 if test -z "$AR"; then
6497 ac_ct_AR=$AR
6498 for ac_prog in ar
6500 # Extract the first word of "$ac_prog", so it can be a program name with args.
6501 set dummy $ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_AR"; then
6508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_AR="$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6528 if test -n "$ac_ct_AR"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6530 $as_echo "$ac_ct_AR" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$ac_ct_AR" && break
6538 done
6540 if test "x$ac_ct_AR" = x; then
6541 AR="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 AR=$ac_ct_AR
6553 : ${AR=ar}
6554 : ${AR_FLAGS=cru}
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6567 $as_echo_n "checking for archiver @FILE support... " >&6; }
6568 if ${lt_cv_ar_at_file+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 lt_cv_ar_at_file=no
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6576 main ()
6580 return 0;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 echo conftest.$ac_objext > conftest.lst
6585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6587 (eval $lt_ar_try) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }
6591 if test 0 -eq "$ac_status"; then
6592 # Ensure the archiver fails upon bogus file names.
6593 rm -f conftest.$ac_objext libconftest.a
6594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6595 (eval $lt_ar_try) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; }
6599 if test 0 -ne "$ac_status"; then
6600 lt_cv_ar_at_file=@
6603 rm -f conftest.* libconftest.a
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6610 $as_echo "$lt_cv_ar_at_file" >&6; }
6612 if test no = "$lt_cv_ar_at_file"; then
6613 archiver_list_spec=
6614 else
6615 archiver_list_spec=$lt_cv_ar_at_file
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}strip; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_STRIP+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 STRIP=$ac_cv_prog_STRIP
6653 if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655 $as_echo "$STRIP" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_STRIP"; then
6664 ac_ct_STRIP=$STRIP
6665 # Extract the first word of "strip", so it can be a program name with args.
6666 set dummy strip; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693 if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695 $as_echo "$ac_ct_STRIP" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_STRIP" = x; then
6702 STRIP=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 STRIP=$ac_ct_STRIP
6712 else
6713 STRIP="$ac_cv_prog_STRIP"
6716 test -z "$STRIP" && STRIP=:
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_RANLIB+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754 $as_echo "$RANLIB" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794 $as_echo "$ac_ct_RANLIB" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_RANLIB" = x; then
6801 RANLIB=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 RANLIB=$ac_ct_RANLIB
6811 else
6812 RANLIB="$ac_cv_prog_RANLIB"
6815 test -z "$RANLIB" && RANLIB=:
6822 # Determine commands to create old-style static archives.
6823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824 old_postinstall_cmds='chmod 644 $oldlib'
6825 old_postuninstall_cmds=
6827 if test -n "$RANLIB"; then
6828 case $host_os in
6829 bitrig* | openbsd*)
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6835 esac
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6839 case $host_os in
6840 darwin*)
6841 lock_old_archive_extraction=yes ;;
6843 lock_old_archive_extraction=no ;;
6844 esac
6884 # If no C compiler was specified, use CC.
6885 LTCC=${LTCC-"$CC"}
6887 # If no C compiler flags were specified, use CFLAGS.
6888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890 # Allow CC to be a program name with arguments.
6891 compiler=$CC
6894 # Check for command to grab the raw symbol name followed by C symbol from nm.
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6896 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6897 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6901 # These are sane defaults that work on at least a few old systems.
6902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6904 # Character class describing NM global symbol codes.
6905 symcode='[BCDEGRST]'
6907 # Regexp to match symbols that can be accessed directly from C.
6908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6910 # Define system-specific variables.
6911 case $host_os in
6912 aix*)
6913 symcode='[BCDT]'
6915 cygwin* | mingw* | pw32* | cegcc*)
6916 symcode='[ABCDGISTW]'
6918 hpux*)
6919 if test ia64 = "$host_cpu"; then
6920 symcode='[ABCDEGRST]'
6923 irix* | nonstopux*)
6924 symcode='[BCDEGRST]'
6926 osf*)
6927 symcode='[BCDEGQRST]'
6929 solaris*)
6930 symcode='[BDRT]'
6932 sco3.2v5*)
6933 symcode='[DT]'
6935 sysv4.2uw2*)
6936 symcode='[DT]'
6938 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6939 symcode='[ABDT]'
6941 sysv4)
6942 symcode='[DFNSTU]'
6944 esac
6946 # If we're using GNU nm, then use its standard symbol codes.
6947 case `$NM -V 2>&1` in
6948 *GNU* | *'with BFD'*)
6949 symcode='[ABCDGIRSTW]' ;;
6950 esac
6952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953 # Gets list of data symbols to import.
6954 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6955 # Adjust the below global symbol transforms to fixup imported variables.
6956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6958 lt_c_name_lib_hook="\
6959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6961 else
6962 # Disable hooks by default.
6963 lt_cv_sys_global_symbol_to_import=
6964 lt_cdecl_hook=
6965 lt_c_name_hook=
6966 lt_c_name_lib_hook=
6969 # Transform an extracted symbol line into a proper C declaration.
6970 # Some systems (esp. on ia64) link data and code symbols differently,
6971 # so use this general approach.
6972 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6973 $lt_cdecl_hook\
6974 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6975 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6977 # Transform an extracted symbol line into symbol name and symbol address
6978 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6979 $lt_c_name_hook\
6980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6983 # Transform an extracted symbol line into symbol name with lib prefix and
6984 # symbol address.
6985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6986 $lt_c_name_lib_hook\
6987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6988 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6989 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6991 # Handle CRLF in mingw tool chain
6992 opt_cr=
6993 case $build_os in
6994 mingw*)
6995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6997 esac
6999 # Try without a prefix underscore, then with it.
7000 for ac_symprfx in "" "_"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7007 # Fake it for dumpbin and say T for any non-static function,
7008 # D for any global variable and I for any imported variable.
7009 # Also find C++ and __fastcall symbols from MSVC++,
7010 # which start with @ or ?.
7011 lt_cv_sys_global_symbol_pipe="$AWK '"\
7012 " {last_section=section; section=\$ 3};"\
7013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7015 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7016 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7017 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7018 " \$ 0!~/External *\|/{next};"\
7019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7020 " {if(hide[section]) next};"\
7021 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7022 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7023 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7024 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7025 " ' prfx=^$ac_symprfx"
7026 else
7027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7031 # Check to see that the pipe works correctly.
7032 pipe_works=no
7034 rm -f conftest*
7035 cat > conftest.$ac_ext <<_LT_EOF
7036 #ifdef __cplusplus
7037 extern "C" {
7038 #endif
7039 char nm_test_var;
7040 void nm_test_func(void);
7041 void nm_test_func(void){}
7042 #ifdef __cplusplus
7044 #endif
7045 int main(){nm_test_var='a';nm_test_func();return(0);}
7046 _LT_EOF
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 # Now try to grab the symbols.
7054 nlist=conftest.nm
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; } && test -s "$nlist"; then
7060 # Try sorting and uniquifying the output.
7061 if sort "$nlist" | uniq > "$nlist"T; then
7062 mv -f "$nlist"T "$nlist"
7063 else
7064 rm -f "$nlist"T
7067 # Make sure that we snagged all the symbols we need.
7068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7070 cat <<_LT_EOF > conftest.$ac_ext
7071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7072 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7073 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7074 relocations are performed -- see ld's documentation on pseudo-relocs. */
7075 # define LT_DLSYM_CONST
7076 #elif defined __osf__
7077 /* This system does not cope well with relocations in const data. */
7078 # define LT_DLSYM_CONST
7079 #else
7080 # define LT_DLSYM_CONST const
7081 #endif
7083 #ifdef __cplusplus
7084 extern "C" {
7085 #endif
7087 _LT_EOF
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091 cat <<_LT_EOF >> conftest.$ac_ext
7093 /* The mapping between symbol names and symbols. */
7094 LT_DLSYM_CONST struct {
7095 const char *name;
7096 void *address;
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 { "@PROGRAM@", (void *) 0 },
7101 _LT_EOF
7102 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7104 {0, (void *) 0}
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7112 #endif
7114 #ifdef __cplusplus
7116 #endif
7117 _LT_EOF
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_globsym_save_LIBS=$LIBS
7121 lt_globsym_save_CFLAGS=$CFLAGS
7122 LIBS=conftstm.$ac_objext
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7125 (eval $ac_link) 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7129 pipe_works=yes
7131 LIBS=$lt_globsym_save_LIBS
7132 CFLAGS=$lt_globsym_save_CFLAGS
7133 else
7134 echo "cannot find nm_test_func in $nlist" >&5
7136 else
7137 echo "cannot find nm_test_var in $nlist" >&5
7139 else
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 else
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 rm -rf conftest* conftst*
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test yes = "$pipe_works"; then
7150 break
7151 else
7152 lt_cv_sys_global_symbol_pipe=
7154 done
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7163 $as_echo "failed" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7166 $as_echo "ok" >&6; }
7169 # Response file support.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 nm_file_list_spec='@'
7172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7173 nm_file_list_spec='@'
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7213 $as_echo_n "checking for sysroot... " >&6; }
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval=$with_sysroot;
7218 else
7219 with_sysroot=no
7223 lt_sysroot=
7224 case $with_sysroot in #(
7225 yes)
7226 if test yes = "$GCC"; then
7227 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7229 ;; #(
7231 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7232 ;; #(
7233 no|'')
7234 ;; #(
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7237 $as_echo "$with_sysroot" >&6; }
7238 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7240 esac
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7243 $as_echo "${lt_sysroot:-no}" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7250 $as_echo_n "checking for a working dd... " >&6; }
7251 if ${ac_cv_path_lt_DD+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 printf 0123456789abcdef0123456789abcdef >conftest.i
7255 cat conftest.i conftest.i >conftest2.i
7256 : ${lt_DD:=$DD}
7257 if test -z "$lt_DD"; then
7258 ac_path_lt_DD_found=false
7259 # Loop through the user's path and test for each of PROGNAME-LIST
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_prog in dd; do
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7268 as_fn_executable_p "$ac_path_lt_DD" || continue
7269 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7270 cmp -s conftest.i conftest.out \
7271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7273 $ac_path_lt_DD_found && break 3
7274 done
7275 done
7276 done
7277 IFS=$as_save_IFS
7278 if test -z "$ac_cv_path_lt_DD"; then
7281 else
7282 ac_cv_path_lt_DD=$lt_DD
7285 rm -f conftest.i conftest2.i conftest.out
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7288 $as_echo "$ac_cv_path_lt_DD" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7292 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7293 if ${lt_cv_truncate_bin+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 printf 0123456789abcdef0123456789abcdef >conftest.i
7297 cat conftest.i conftest.i >conftest2.i
7298 lt_cv_truncate_bin=
7299 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7300 cmp -s conftest.i conftest.out \
7301 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7303 rm -f conftest.i conftest2.i conftest.out
7304 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7307 $as_echo "$lt_cv_truncate_bin" >&6; }
7315 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7316 func_cc_basename ()
7318 for cc_temp in $*""; do
7319 case $cc_temp in
7320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7322 \-*) ;;
7323 *) break;;
7324 esac
7325 done
7326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329 # Check whether --enable-libtool-lock was given.
7330 if test "${enable_libtool_lock+set}" = set; then :
7331 enableval=$enable_libtool_lock;
7334 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7336 # Some flags need to be propagated to the compiler or linker for good
7337 # libtool support.
7338 case $host in
7339 ia64-*-hpux*)
7340 # Find out what ABI is being produced by ac_compile, and set mode
7341 # options accordingly.
7342 echo 'int i;' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7345 ac_status=$?
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 case `/usr/bin/file conftest.$ac_objext` in
7349 *ELF-32*)
7350 HPUX_IA64_MODE=32
7352 *ELF-64*)
7353 HPUX_IA64_MODE=64
7355 esac
7357 rm -rf conftest*
7359 *-*-irix6*)
7360 # Find out what ABI is being produced by ac_compile, and set linker
7361 # options accordingly.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test yes = "$lt_cv_prog_gnu_ld"; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -melf32bsmip"
7373 *N32*)
7374 LD="${LD-ld} -melf32bmipn32"
7376 *64-bit*)
7377 LD="${LD-ld} -melf64bmip"
7379 esac
7380 else
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -32"
7385 *N32*)
7386 LD="${LD-ld} -n32"
7388 *64-bit*)
7389 LD="${LD-ld} -64"
7391 esac
7394 rm -rf conftest*
7397 mips64*-*linux*)
7398 # Find out what ABI is being produced by ac_compile, and set linker
7399 # options accordingly.
7400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 emul=elf
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 emul="${emul}32"
7411 *64-bit*)
7412 emul="${emul}64"
7414 esac
7415 case `/usr/bin/file conftest.$ac_objext` in
7416 *MSB*)
7417 emul="${emul}btsmip"
7419 *LSB*)
7420 emul="${emul}ltsmip"
7422 esac
7423 case `/usr/bin/file conftest.$ac_objext` in
7424 *N32*)
7425 emul="${emul}n32"
7427 esac
7428 LD="${LD-ld} -m $emul"
7430 rm -rf conftest*
7433 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7434 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7435 # Find out what ABI is being produced by ac_compile, and set linker
7436 # options accordingly. Note that the listed cases only cover the
7437 # situations where additional linker options are needed (such as when
7438 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7439 # vice versa); the common cases where no linker options are needed do
7440 # not appear in the list.
7441 echo 'int i;' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 case `/usr/bin/file conftest.o` in
7448 *32-bit*)
7449 case $host in
7450 x86_64-*kfreebsd*-gnu)
7451 LD="${LD-ld} -m elf_i386_fbsd"
7453 x86_64-*linux*)
7454 case `/usr/bin/file conftest.o` in
7455 *x86-64*)
7456 LD="${LD-ld} -m elf32_x86_64"
7459 LD="${LD-ld} -m elf_i386"
7461 esac
7463 powerpc64le-*linux*)
7464 LD="${LD-ld} -m elf32lppclinux"
7466 powerpc64-*linux*)
7467 LD="${LD-ld} -m elf32ppclinux"
7469 s390x-*linux*)
7470 LD="${LD-ld} -m elf_s390"
7472 sparc64-*linux*)
7473 LD="${LD-ld} -m elf32_sparc"
7475 esac
7477 *64-bit*)
7478 case $host in
7479 x86_64-*kfreebsd*-gnu)
7480 LD="${LD-ld} -m elf_x86_64_fbsd"
7482 x86_64-*linux*)
7483 LD="${LD-ld} -m elf_x86_64"
7485 powerpcle-*linux*)
7486 LD="${LD-ld} -m elf64lppc"
7488 powerpc-*linux*)
7489 LD="${LD-ld} -m elf64ppc"
7491 s390*-*linux*|s390*-*tpf*)
7492 LD="${LD-ld} -m elf64_s390"
7494 sparc*-*linux*)
7495 LD="${LD-ld} -m elf64_sparc"
7497 esac
7499 esac
7501 rm -rf conftest*
7504 *-*-sco3.2v5*)
7505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7506 SAVE_CFLAGS=$CFLAGS
7507 CFLAGS="$CFLAGS -belf"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7510 if ${lt_cv_cc_needs_belf+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 ac_ext=c
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 lt_cv_cc_needs_belf=yes
7532 else
7533 lt_cv_cc_needs_belf=no
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7546 if test yes != "$lt_cv_cc_needs_belf"; then
7547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7548 CFLAGS=$SAVE_CFLAGS
7551 *-*solaris*)
7552 # Find out what ABI is being produced by ac_compile, and set linker
7553 # options accordingly.
7554 echo 'int i;' > conftest.$ac_ext
7555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7556 (eval $ac_compile) 2>&5
7557 ac_status=$?
7558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559 test $ac_status = 0; }; then
7560 case `/usr/bin/file conftest.o` in
7561 *64-bit*)
7562 case $lt_cv_prog_gnu_ld in
7563 yes*)
7564 case $host in
7565 i?86-*-solaris*|x86_64-*-solaris*)
7566 LD="${LD-ld} -m elf_x86_64"
7568 sparc*-*-solaris*)
7569 LD="${LD-ld} -m elf64_sparc"
7571 esac
7572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7574 LD=${LD-ld}_sol2
7578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7579 LD="${LD-ld} -64"
7582 esac
7584 esac
7586 rm -rf conftest*
7588 esac
7590 need_locks=$enable_libtool_lock
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}mt; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$MANIFEST_TOOL"; then
7601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7621 if test -n "$MANIFEST_TOOL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7623 $as_echo "$MANIFEST_TOOL" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7633 # Extract the first word of "mt", so it can be a program name with args.
7634 set dummy mt; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7654 done
7655 done
7656 IFS=$as_save_IFS
7660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7661 if test -n "$ac_ct_MANIFEST_TOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7670 MANIFEST_TOOL=":"
7671 else
7672 case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7680 else
7681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7687 if ${lt_cv_path_mainfest_tool+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 lt_cv_path_mainfest_tool=no
7691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7693 cat conftest.err >&5
7694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7695 lt_cv_path_mainfest_tool=yes
7697 rm -f conftest*
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7701 if test yes != "$lt_cv_path_mainfest_tool"; then
7702 MANIFEST_TOOL=:
7710 case $host_os in
7711 rhapsody* | darwin*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$DSYMUTIL"; then
7721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DSYMUTIL" = x; then
7790 DSYMUTIL=":"
7791 else
7792 case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798 DSYMUTIL=$ac_ct_DSYMUTIL
7800 else
7801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_NMEDIT+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$NMEDIT"; then
7813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844 ac_ct_NMEDIT=$NMEDIT
7845 # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$ac_ct_NMEDIT"; then
7853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_NMEDIT" = x; then
7882 NMEDIT=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890 NMEDIT=$ac_ct_NMEDIT
7892 else
7893 NMEDIT="$ac_cv_prog_NMEDIT"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_LIPO+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$LIPO"; then
7905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7918 done
7919 done
7920 IFS=$as_save_IFS
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_LIPO"; then
7936 ac_ct_LIPO=$LIPO
7937 # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_LIPO"; then
7945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_LIPO="lipo"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_LIPO" = x; then
7974 LIPO=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 LIPO=$ac_ct_LIPO
7984 else
7985 LIPO="$ac_cv_prog_LIPO"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_OTOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$OTOOL"; then
7997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_OTOOL"; then
8028 ac_ct_OTOOL=$OTOOL
8029 # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_OTOOL"; then
8037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_OTOOL="otool"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_OTOOL" = x; then
8066 OTOOL=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 OTOOL=$ac_ct_OTOOL
8076 else
8077 OTOOL="$ac_cv_prog_OTOOL"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL64+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$OTOOL64"; then
8089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120 ac_ct_OTOOL64=$OTOOL64
8121 # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$ac_ct_OTOOL64"; then
8129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_OTOOL64" = x; then
8158 OTOOL64=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 OTOOL64=$ac_ct_OTOOL64
8168 else
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if ${lt_cv_apple_cc_single_mod+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_apple_cc_single_mod=no
8204 if test -z "$LT_MULTI_MODULE"; then
8205 # By default we will add the -single_module flag. You can override
8206 # by either setting the environment variable LT_MULTI_MODULE
8207 # non-empty at configure time, or by adding -multi_module to the
8208 # link flags.
8209 rm -rf libconftest.dylib*
8210 echo "int foo(void){return 1;}" > conftest.c
8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8215 _lt_result=$?
8216 # If there is a non-empty error log, and "single_module"
8217 # appears in it, assume the flag caused a linker warning
8218 if test -s conftest.err && $GREP single_module conftest.err; then
8219 cat conftest.err >&5
8220 # Otherwise, if the output was created with a 0 exit code from
8221 # the compiler, it worked.
8222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8223 lt_cv_apple_cc_single_mod=yes
8224 else
8225 cat conftest.err >&5
8227 rm -rf libconftest.dylib*
8228 rm -f conftest.*
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8232 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8235 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8236 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_ld_exported_symbols_list=no
8240 save_LDFLAGS=$LDFLAGS
8241 echo "_main" > conftest.sym
8242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8247 main ()
8251 return 0;
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 lt_cv_ld_exported_symbols_list=yes
8256 else
8257 lt_cv_ld_exported_symbols_list=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LDFLAGS=$save_LDFLAGS
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8265 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8268 $as_echo_n "checking for -force_load linker flag... " >&6; }
8269 if ${lt_cv_ld_force_load+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 lt_cv_ld_force_load=no
8273 cat > conftest.c << _LT_EOF
8274 int forced_loaded() { return 2;}
8275 _LT_EOF
8276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8278 echo "$AR cru libconftest.a conftest.o" >&5
8279 $AR cru libconftest.a conftest.o 2>&5
8280 echo "$RANLIB libconftest.a" >&5
8281 $RANLIB libconftest.a 2>&5
8282 cat > conftest.c << _LT_EOF
8283 int main() { return 0;}
8284 _LT_EOF
8285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8287 _lt_result=$?
8288 if test -s conftest.err && $GREP force_load conftest.err; then
8289 cat conftest.err >&5
8290 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8291 lt_cv_ld_force_load=yes
8292 else
8293 cat conftest.err >&5
8295 rm -f conftest.err libconftest.a conftest conftest.c
8296 rm -rf conftest.dSYM
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8300 $as_echo "$lt_cv_ld_force_load" >&6; }
8301 case $host_os in
8302 rhapsody* | darwin1.[012])
8303 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8304 darwin1.*)
8305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8306 darwin*) # darwin 5.x on
8307 # if running on 10.5 or later, the deployment target defaults
8308 # to the OS version, if on x86, and 10.4, the deployment
8309 # target defaults to 10.4. Don't you love it?
8310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8312 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8313 10.[012][,.]*)
8314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8315 10.*)
8316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8317 esac
8319 esac
8320 if test yes = "$lt_cv_apple_cc_single_mod"; then
8321 _lt_dar_single_mod='$single_module'
8323 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8324 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8325 else
8326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8328 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8329 _lt_dsymutil='~$DSYMUTIL $lib || :'
8330 else
8331 _lt_dsymutil=
8334 esac
8336 # func_munge_path_list VARIABLE PATH
8337 # -----------------------------------
8338 # VARIABLE is name of variable containing _space_ separated list of
8339 # directories to be munged by the contents of PATH, which is string
8340 # having a format:
8341 # "DIR[:DIR]:"
8342 # string "DIR[ DIR]" will be prepended to VARIABLE
8343 # ":DIR[:DIR]"
8344 # string "DIR[ DIR]" will be appended to VARIABLE
8345 # "DIRP[:DIRP]::[DIRA:]DIRA"
8346 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8347 # "DIRA[ DIRA]" will be appended to VARIABLE
8348 # "DIR[:DIR]"
8349 # VARIABLE will be replaced by "DIR[ DIR]"
8350 func_munge_path_list ()
8352 case x$2 in
8356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8358 x:*)
8359 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8361 *::*)
8362 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8363 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8368 esac
8371 ac_ext=c
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8378 # On Suns, sometimes $CPP names a directory.
8379 if test -n "$CPP" && test -d "$CPP"; then
8380 CPP=
8382 if test -z "$CPP"; then
8383 if ${ac_cv_prog_CPP+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 # Double quotes because CPP needs to be expanded
8387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8389 ac_preproc_ok=false
8390 for ac_c_preproc_warn_flag in '' yes
8392 # Use a header file that comes with gcc, so configuring glibc
8393 # with a fresh cross-compiler works.
8394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395 # <limits.h> exists even on freestanding compilers.
8396 # On the NeXT, cc -E runs the code through the compiler's parser,
8397 # not just through cpp. "Syntax error" is here to catch this case.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifdef __STDC__
8401 # include <limits.h>
8402 #else
8403 # include <assert.h>
8404 #endif
8405 Syntax error
8406 _ACEOF
8407 if ac_fn_c_try_cpp "$LINENO"; then :
8409 else
8410 # Broken: fails on valid input.
8411 continue
8413 rm -f conftest.err conftest.i conftest.$ac_ext
8415 # OK, works on sane cases. Now check whether nonexistent headers
8416 # can be detected and how.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <ac_nonexistent.h>
8420 _ACEOF
8421 if ac_fn_c_try_cpp "$LINENO"; then :
8422 # Broken: success on invalid input.
8423 continue
8424 else
8425 # Passes both tests.
8426 ac_preproc_ok=:
8427 break
8429 rm -f conftest.err conftest.i conftest.$ac_ext
8431 done
8432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8433 rm -f conftest.i conftest.err conftest.$ac_ext
8434 if $ac_preproc_ok; then :
8435 break
8438 done
8439 ac_cv_prog_CPP=$CPP
8442 CPP=$ac_cv_prog_CPP
8443 else
8444 ac_cv_prog_CPP=$CPP
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8447 $as_echo "$CPP" >&6; }
8448 ac_preproc_ok=false
8449 for ac_c_preproc_warn_flag in '' yes
8451 # Use a header file that comes with gcc, so configuring glibc
8452 # with a fresh cross-compiler works.
8453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 # <limits.h> exists even on freestanding compilers.
8455 # On the NeXT, cc -E runs the code through the compiler's parser,
8456 # not just through cpp. "Syntax error" is here to catch this case.
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #ifdef __STDC__
8460 # include <limits.h>
8461 #else
8462 # include <assert.h>
8463 #endif
8464 Syntax error
8465 _ACEOF
8466 if ac_fn_c_try_cpp "$LINENO"; then :
8468 else
8469 # Broken: fails on valid input.
8470 continue
8472 rm -f conftest.err conftest.i conftest.$ac_ext
8474 # OK, works on sane cases. Now check whether nonexistent headers
8475 # can be detected and how.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <ac_nonexistent.h>
8479 _ACEOF
8480 if ac_fn_c_try_cpp "$LINENO"; then :
8481 # Broken: success on invalid input.
8482 continue
8483 else
8484 # Passes both tests.
8485 ac_preproc_ok=:
8486 break
8488 rm -f conftest.err conftest.i conftest.$ac_ext
8490 done
8491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8492 rm -f conftest.i conftest.err conftest.$ac_ext
8493 if $ac_preproc_ok; then :
8495 else
8496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8498 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8499 See \`config.log' for more details" "$LINENO" 5; }
8502 ac_ext=c
8503 ac_cpp='$CPP $CPPFLAGS'
8504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8510 $as_echo_n "checking for ANSI C header files... " >&6; }
8511 if ${ac_cv_header_stdc+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <stdlib.h>
8517 #include <stdarg.h>
8518 #include <string.h>
8519 #include <float.h>
8522 main ()
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_header_stdc=yes
8531 else
8532 ac_cv_header_stdc=no
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 if test $ac_cv_header_stdc = yes; then
8537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <string.h>
8542 _ACEOF
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544 $EGREP "memchr" >/dev/null 2>&1; then :
8546 else
8547 ac_cv_header_stdc=no
8549 rm -f conftest*
8553 if test $ac_cv_header_stdc = yes; then
8554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <stdlib.h>
8559 _ACEOF
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "free" >/dev/null 2>&1; then :
8563 else
8564 ac_cv_header_stdc=no
8566 rm -f conftest*
8570 if test $ac_cv_header_stdc = yes; then
8571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8572 if test "$cross_compiling" = yes; then :
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <ctype.h>
8578 #include <stdlib.h>
8579 #if ((' ' & 0x0FF) == 0x020)
8580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8582 #else
8583 # define ISLOWER(c) \
8584 (('a' <= (c) && (c) <= 'i') \
8585 || ('j' <= (c) && (c) <= 'r') \
8586 || ('s' <= (c) && (c) <= 'z'))
8587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8588 #endif
8590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8592 main ()
8594 int i;
8595 for (i = 0; i < 256; i++)
8596 if (XOR (islower (i), ISLOWER (i))
8597 || toupper (i) != TOUPPER (i))
8598 return 2;
8599 return 0;
8601 _ACEOF
8602 if ac_fn_c_try_run "$LINENO"; then :
8604 else
8605 ac_cv_header_stdc=no
8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8608 conftest.$ac_objext conftest.beam conftest.$ac_ext
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8614 $as_echo "$ac_cv_header_stdc" >&6; }
8615 if test $ac_cv_header_stdc = yes; then
8617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8623 inttypes.h stdint.h unistd.h
8624 do :
8625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 _ACEOF
8635 done
8638 for ac_header in dlfcn.h
8639 do :
8640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8645 _ACEOF
8649 done
8655 # Set options
8659 enable_dlopen=no
8662 enable_win32_dll=no
8665 # Check whether --enable-shared was given.
8666 if test "${enable_shared+set}" = set; then :
8667 enableval=$enable_shared; p=${PACKAGE-default}
8668 case $enableval in
8669 yes) enable_shared=yes ;;
8670 no) enable_shared=no ;;
8672 enable_shared=no
8673 # Look at the argument we got. We use all the common list separators.
8674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8675 for pkg in $enableval; do
8676 IFS=$lt_save_ifs
8677 if test "X$pkg" = "X$p"; then
8678 enable_shared=yes
8680 done
8681 IFS=$lt_save_ifs
8683 esac
8684 else
8685 enable_shared=yes
8696 # Check whether --enable-static was given.
8697 if test "${enable_static+set}" = set; then :
8698 enableval=$enable_static; p=${PACKAGE-default}
8699 case $enableval in
8700 yes) enable_static=yes ;;
8701 no) enable_static=no ;;
8703 enable_static=no
8704 # Look at the argument we got. We use all the common list separators.
8705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8706 for pkg in $enableval; do
8707 IFS=$lt_save_ifs
8708 if test "X$pkg" = "X$p"; then
8709 enable_static=yes
8711 done
8712 IFS=$lt_save_ifs
8714 esac
8715 else
8716 enable_static=yes
8728 # Check whether --with-pic was given.
8729 if test "${with_pic+set}" = set; then :
8730 withval=$with_pic; lt_p=${PACKAGE-default}
8731 case $withval in
8732 yes|no) pic_mode=$withval ;;
8734 pic_mode=default
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8737 for lt_pkg in $withval; do
8738 IFS=$lt_save_ifs
8739 if test "X$lt_pkg" = "X$lt_p"; then
8740 pic_mode=yes
8742 done
8743 IFS=$lt_save_ifs
8745 esac
8746 else
8747 pic_mode=default
8757 # Check whether --enable-fast-install was given.
8758 if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
8760 case $enableval in
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8767 for pkg in $enableval; do
8768 IFS=$lt_save_ifs
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8772 done
8773 IFS=$lt_save_ifs
8775 esac
8776 else
8777 enable_fast_install=yes
8787 shared_archive_member_spec=
8788 case $host,$enable_shared in
8789 power*-*-aix[5-9]*,yes)
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8791 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8793 # Check whether --with-aix-soname was given.
8794 if test "${with_aix_soname+set}" = set; then :
8795 withval=$with_aix_soname; case $withval in
8796 aix|svr4|both)
8799 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8801 esac
8802 lt_cv_with_aix_soname=$with_aix_soname
8803 else
8804 if ${lt_cv_with_aix_soname+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_with_aix_soname=aix
8810 with_aix_soname=$lt_cv_with_aix_soname
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8814 $as_echo "$with_aix_soname" >&6; }
8815 if test aix != "$with_aix_soname"; then
8816 # For the AIX way of multilib, we name the shared archive member
8817 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8818 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8819 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8820 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8821 if test 64 = "${OBJECT_MODE-32}"; then
8822 shared_archive_member_spec=shr_64
8823 else
8824 shared_archive_member_spec=shr
8829 with_aix_soname=aix
8831 esac
8842 # This can be used to rebuild libtool when needed
8843 LIBTOOL_DEPS=$ltmain
8845 # Always use our own libtool.
8846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8877 test -z "$LN_S" && LN_S="ln -s"
8892 if test -n "${ZSH_VERSION+set}"; then
8893 setopt NO_GLOB_SUBST
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8897 $as_echo_n "checking for objdir... " >&6; }
8898 if ${lt_cv_objdir+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 rm -f .libs 2>/dev/null
8902 mkdir .libs 2>/dev/null
8903 if test -d .libs; then
8904 lt_cv_objdir=.libs
8905 else
8906 # MS-DOS does not allow filenames that begin with a dot.
8907 lt_cv_objdir=_libs
8909 rmdir .libs 2>/dev/null
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8912 $as_echo "$lt_cv_objdir" >&6; }
8913 objdir=$lt_cv_objdir
8919 cat >>confdefs.h <<_ACEOF
8920 #define LT_OBJDIR "$lt_cv_objdir/"
8921 _ACEOF
8926 case $host_os in
8927 aix3*)
8928 # AIX sometimes has problems with the GCC collect2 program. For some
8929 # reason, if we set the COLLECT_NAMES environment variable, the problems
8930 # vanish in a puff of smoke.
8931 if test set != "${COLLECT_NAMES+set}"; then
8932 COLLECT_NAMES=
8933 export COLLECT_NAMES
8936 esac
8938 # Global variables:
8939 ofile=libtool
8940 can_build_shared=yes
8942 # All known linkers require a '.a' archive for static linking (except MSVC,
8943 # which needs '.lib').
8944 libext=a
8946 with_gnu_ld=$lt_cv_prog_gnu_ld
8948 old_CC=$CC
8949 old_CFLAGS=$CFLAGS
8951 # Set sane defaults for various variables
8952 test -z "$CC" && CC=cc
8953 test -z "$LTCC" && LTCC=$CC
8954 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8955 test -z "$LD" && LD=ld
8956 test -z "$ac_objext" && ac_objext=o
8958 func_cc_basename $compiler
8959 cc_basename=$func_cc_basename_result
8962 # Only perform the check for file, if the check method requires it
8963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8964 case $deplibs_check_method in
8965 file_magic*)
8966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8968 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 case $MAGIC_CMD in
8973 [\\/*] | ?:[\\/]*)
8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8977 lt_save_MAGIC_CMD=$MAGIC_CMD
8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8980 for ac_dir in $ac_dummy; do
8981 IFS=$lt_save_ifs
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8984 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8985 if test -n "$file_magic_test_file"; then
8986 case $deplibs_check_method in
8987 "file_magic "*)
8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8991 $EGREP "$file_magic_regex" > /dev/null; then
8993 else
8994 cat <<_LT_EOF 1>&2
8996 *** Warning: the command libtool uses to detect shared libraries,
8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
8998 *** The result is that libtool may fail to recognize shared libraries
8999 *** as such. This will affect the creation of libtool libraries that
9000 *** depend on shared libraries, but programs linked with such libtool
9001 *** libraries will work regardless of this problem. Nevertheless, you
9002 *** may want to report the problem to your system manager and/or to
9003 *** bug-libtool@gnu.org
9005 _LT_EOF
9006 fi ;;
9007 esac
9009 break
9011 done
9012 IFS=$lt_save_ifs
9013 MAGIC_CMD=$lt_save_MAGIC_CMD
9015 esac
9018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9019 if test -n "$MAGIC_CMD"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9021 $as_echo "$MAGIC_CMD" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9031 if test -z "$lt_cv_path_MAGIC_CMD"; then
9032 if test -n "$ac_tool_prefix"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9034 $as_echo_n "checking for file... " >&6; }
9035 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 case $MAGIC_CMD in
9039 [\\/*] | ?:[\\/]*)
9040 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9043 lt_save_MAGIC_CMD=$MAGIC_CMD
9044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9046 for ac_dir in $ac_dummy; do
9047 IFS=$lt_save_ifs
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f "$ac_dir/file"; then
9050 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9051 if test -n "$file_magic_test_file"; then
9052 case $deplibs_check_method in
9053 "file_magic "*)
9054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9055 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9057 $EGREP "$file_magic_regex" > /dev/null; then
9059 else
9060 cat <<_LT_EOF 1>&2
9062 *** Warning: the command libtool uses to detect shared libraries,
9063 *** $file_magic_cmd, produces output that libtool cannot recognize.
9064 *** The result is that libtool may fail to recognize shared libraries
9065 *** as such. This will affect the creation of libtool libraries that
9066 *** depend on shared libraries, but programs linked with such libtool
9067 *** libraries will work regardless of this problem. Nevertheless, you
9068 *** may want to report the problem to your system manager and/or to
9069 *** bug-libtool@gnu.org
9071 _LT_EOF
9072 fi ;;
9073 esac
9075 break
9077 done
9078 IFS=$lt_save_ifs
9079 MAGIC_CMD=$lt_save_MAGIC_CMD
9081 esac
9084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9085 if test -n "$MAGIC_CMD"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9087 $as_echo "$MAGIC_CMD" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9094 else
9095 MAGIC_CMD=:
9101 esac
9103 # Use C for the default configuration in the libtool script
9105 lt_save_CC=$CC
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113 # Source file extension for C test sources.
9114 ac_ext=c
9116 # Object file extension for compiled C test sources.
9117 objext=o
9118 objext=$objext
9120 # Code to be used in simple compile tests
9121 lt_simple_compile_test_code="int some_variable = 0;"
9123 # Code to be used in simple link tests
9124 lt_simple_link_test_code='int main(){return(0);}'
9132 # If no C compiler was specified, use CC.
9133 LTCC=${LTCC-"$CC"}
9135 # If no C compiler flags were specified, use CFLAGS.
9136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9138 # Allow CC to be a program name with arguments.
9139 compiler=$CC
9141 # Save the default compiler, since it gets overwritten when the other
9142 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9143 compiler_DEFAULT=$CC
9145 # save warnings/boilerplate of simple test code
9146 ac_outfile=conftest.$ac_objext
9147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9149 _lt_compiler_boilerplate=`cat conftest.err`
9150 $RM conftest*
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9155 _lt_linker_boilerplate=`cat conftest.err`
9156 $RM -r conftest*
9159 ## CAVEAT EMPTOR:
9160 ## There is no encapsulation within the following macros, do not change
9161 ## the running order or otherwise move them around unless you know exactly
9162 ## what you are doing...
9163 if test -n "$compiler"; then
9165 lt_prog_compiler_no_builtin_flag=
9167 if test yes = "$GCC"; then
9168 case $cc_basename in
9169 nvcc*)
9170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9173 esac
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 lt_cv_prog_compiler_rtti_exceptions=no
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9195 ac_status=$?
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_rtti_exceptions=yes
9207 $RM conftest*
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9213 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9215 else
9226 lt_prog_compiler_wl=
9227 lt_prog_compiler_pic=
9228 lt_prog_compiler_static=
9231 if test yes = "$GCC"; then
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_static='-static'
9235 case $host_os in
9236 aix*)
9237 # All AIX code is PIC.
9238 if test ia64 = "$host_cpu"; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9242 lt_prog_compiler_pic='-fPIC'
9245 amigaos*)
9246 case $host_cpu in
9247 powerpc)
9248 # see comment about AmigaOS4 .so support
9249 lt_prog_compiler_pic='-fPIC'
9251 m68k)
9252 # FIXME: we need at least 68020 code to build shared libraries, but
9253 # adding the '-m68020' flag to GCC prevents building anything better,
9254 # like '-m68040'.
9255 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9257 esac
9260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9261 # PIC is the default for these OSes.
9264 mingw* | cygwin* | pw32* | os2* | cegcc*)
9265 # This hack is so that the source file can tell whether it is being
9266 # built for inclusion in a dll (and should export symbols for example).
9267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9268 # (--disable-auto-import) libraries
9269 lt_prog_compiler_pic='-DDLL_EXPORT'
9270 case $host_os in
9271 os2*)
9272 lt_prog_compiler_static='$wl-static'
9274 esac
9277 darwin* | rhapsody*)
9278 # PIC is the default on this platform
9279 # Common symbols not allowed in MH_DYLIB files
9280 lt_prog_compiler_pic='-fno-common'
9283 haiku*)
9284 # PIC is the default for Haiku.
9285 # The "-static" flag exists, but is broken.
9286 lt_prog_compiler_static=
9289 hpux*)
9290 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9291 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9292 # sets the default TLS model and affects inlining.
9293 case $host_cpu in
9294 hppa*64*)
9295 # +Z the default
9298 lt_prog_compiler_pic='-fPIC'
9300 esac
9303 interix[3-9]*)
9304 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9305 # Instead, we relocate shared libraries at runtime.
9308 msdosdjgpp*)
9309 # Just because we use GCC doesn't mean we suddenly get shared libraries
9310 # on systems that don't support them.
9311 lt_prog_compiler_can_build_shared=no
9312 enable_shared=no
9315 *nto* | *qnx*)
9316 # QNX uses GNU C++, but need to define -shared option too, otherwise
9317 # it will coredump.
9318 lt_prog_compiler_pic='-fPIC -shared'
9321 sysv4*MP*)
9322 if test -d /usr/nec; then
9323 lt_prog_compiler_pic=-Kconform_pic
9328 lt_prog_compiler_pic='-fPIC'
9330 esac
9332 case $cc_basename in
9333 nvcc*) # Cuda Compiler Driver 2.2
9334 lt_prog_compiler_wl='-Xlinker '
9335 if test -n "$lt_prog_compiler_pic"; then
9336 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9339 esac
9340 else
9341 # PORTME Check for flag to pass linker flags through the system compiler.
9342 case $host_os in
9343 aix*)
9344 lt_prog_compiler_wl='-Wl,'
9345 if test ia64 = "$host_cpu"; then
9346 # AIX 5 now supports IA64 processor
9347 lt_prog_compiler_static='-Bstatic'
9348 else
9349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9353 darwin* | rhapsody*)
9354 # PIC is the default on this platform
9355 # Common symbols not allowed in MH_DYLIB files
9356 lt_prog_compiler_pic='-fno-common'
9357 case $cc_basename in
9358 nagfor*)
9359 # NAG Fortran compiler
9360 lt_prog_compiler_wl='-Wl,-Wl,,'
9361 lt_prog_compiler_pic='-PIC'
9362 lt_prog_compiler_static='-Bstatic'
9364 esac
9367 mingw* | cygwin* | pw32* | os2* | cegcc*)
9368 # This hack is so that the source file can tell whether it is being
9369 # built for inclusion in a dll (and should export symbols for example).
9370 lt_prog_compiler_pic='-DDLL_EXPORT'
9371 case $host_os in
9372 os2*)
9373 lt_prog_compiler_static='$wl-static'
9375 esac
9378 hpux9* | hpux10* | hpux11*)
9379 lt_prog_compiler_wl='-Wl,'
9380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9381 # not for PA HP-UX.
9382 case $host_cpu in
9383 hppa*64*|ia64*)
9384 # +Z the default
9387 lt_prog_compiler_pic='+Z'
9389 esac
9390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9391 lt_prog_compiler_static='$wl-a ${wl}archive'
9394 irix5* | irix6* | nonstopux*)
9395 lt_prog_compiler_wl='-Wl,'
9396 # PIC (with -KPIC) is the default.
9397 lt_prog_compiler_static='-non_shared'
9400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9401 case $cc_basename in
9402 # old Intel for x86_64, which still supported -KPIC.
9403 ecc*)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-KPIC'
9406 lt_prog_compiler_static='-static'
9408 # icc used to be incompatible with GCC.
9409 # ICC 10 doesn't accept -KPIC any more.
9410 icc* | ifort*)
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_pic='-fPIC'
9413 lt_prog_compiler_static='-static'
9415 # Lahey Fortran 8.1.
9416 lf95*)
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_pic='--shared'
9419 lt_prog_compiler_static='--static'
9421 nagfor*)
9422 # NAG Fortran compiler
9423 lt_prog_compiler_wl='-Wl,-Wl,,'
9424 lt_prog_compiler_pic='-PIC'
9425 lt_prog_compiler_static='-Bstatic'
9427 tcc*)
9428 # Fabrice Bellard et al's Tiny C Compiler
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9433 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9434 # Portland Group compilers (*not* the Pentium gcc compiler,
9435 # which looks to be a dead project)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-fpic'
9438 lt_prog_compiler_static='-Bstatic'
9440 ccc*)
9441 lt_prog_compiler_wl='-Wl,'
9442 # All Alpha code is PIC.
9443 lt_prog_compiler_static='-non_shared'
9445 xl* | bgxl* | bgf* | mpixl*)
9446 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9447 lt_prog_compiler_wl='-Wl,'
9448 lt_prog_compiler_pic='-qpic'
9449 lt_prog_compiler_static='-qstaticlink'
9452 case `$CC -V 2>&1 | sed 5q` in
9453 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9454 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9455 lt_prog_compiler_pic='-KPIC'
9456 lt_prog_compiler_static='-Bstatic'
9457 lt_prog_compiler_wl=''
9459 *Sun\ F* | *Sun*Fortran*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 lt_prog_compiler_wl='-Qoption ld '
9464 *Sun\ C*)
9465 # Sun C 5.9
9466 lt_prog_compiler_pic='-KPIC'
9467 lt_prog_compiler_static='-Bstatic'
9468 lt_prog_compiler_wl='-Wl,'
9470 *Intel*\ [CF]*Compiler*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-fPIC'
9473 lt_prog_compiler_static='-static'
9475 *Portland\ Group*)
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-fpic'
9478 lt_prog_compiler_static='-Bstatic'
9480 esac
9482 esac
9485 newsos6)
9486 lt_prog_compiler_pic='-KPIC'
9487 lt_prog_compiler_static='-Bstatic'
9490 *nto* | *qnx*)
9491 # QNX uses GNU C++, but need to define -shared option too, otherwise
9492 # it will coredump.
9493 lt_prog_compiler_pic='-fPIC -shared'
9496 osf3* | osf4* | osf5*)
9497 lt_prog_compiler_wl='-Wl,'
9498 # All OSF/1 code is PIC.
9499 lt_prog_compiler_static='-non_shared'
9502 rdos*)
9503 lt_prog_compiler_static='-non_shared'
9506 solaris*)
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 case $cc_basename in
9510 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9511 lt_prog_compiler_wl='-Qoption ld ';;
9513 lt_prog_compiler_wl='-Wl,';;
9514 esac
9517 sunos4*)
9518 lt_prog_compiler_wl='-Qoption ld '
9519 lt_prog_compiler_pic='-PIC'
9520 lt_prog_compiler_static='-Bstatic'
9523 sysv4 | sysv4.2uw2* | sysv4.3*)
9524 lt_prog_compiler_wl='-Wl,'
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9529 sysv4*MP*)
9530 if test -d /usr/nec; then
9531 lt_prog_compiler_pic='-Kconform_pic'
9532 lt_prog_compiler_static='-Bstatic'
9536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9537 lt_prog_compiler_wl='-Wl,'
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9542 unicos*)
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_can_build_shared=no
9547 uts4*)
9548 lt_prog_compiler_pic='-pic'
9549 lt_prog_compiler_static='-Bstatic'
9553 lt_prog_compiler_can_build_shared=no
9555 esac
9558 case $host_os in
9559 # For platforms that do not support PIC, -DPIC is meaningless:
9560 *djgpp*)
9561 lt_prog_compiler_pic=
9564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9566 esac
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9570 if ${lt_cv_prog_compiler_pic+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9576 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9577 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9580 # Check to make sure the PIC flag actually works.
9582 if test -n "$lt_prog_compiler_pic"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9585 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 lt_cv_prog_compiler_pic_works=no
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9592 # Insert the option either (1) after the last *FLAGS variable, or
9593 # (2) before a word containing "conftest.", or (3) at the end.
9594 # Note that $ac_compile itself does not contain backslashes and begins
9595 # with a dollar sign (not a hyphen), so the echo should work correctly.
9596 # The option is referenced via a variable to avoid confusing sed.
9597 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602 (eval "$lt_compile" 2>conftest.err)
9603 ac_status=$?
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 if (exit $ac_status) && test -s "$ac_outfile"; then
9607 # The compiler can only warn and ignore the option if not recognized
9608 # So say no if there are warnings other than the usual output.
9609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9612 lt_cv_prog_compiler_pic_works=yes
9615 $RM conftest*
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9619 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9621 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9622 case $lt_prog_compiler_pic in
9623 "" | " "*) ;;
9624 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9625 esac
9626 else
9627 lt_prog_compiler_pic=
9628 lt_prog_compiler_can_build_shared=no
9644 # Check to make sure the static flag actually works.
9646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9649 if ${lt_cv_prog_compiler_static_works+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_static_works=no
9653 save_LDFLAGS=$LDFLAGS
9654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9657 # The linker can only warn and ignore the option if not recognized
9658 # So say no if there are warnings
9659 if test -s conftest.err; then
9660 # Append any errors to the config.log.
9661 cat conftest.err 1>&5
9662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9664 if diff conftest.exp conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_static_works=yes
9667 else
9668 lt_cv_prog_compiler_static_works=yes
9671 $RM -r conftest*
9672 LDFLAGS=$save_LDFLAGS
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9676 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9678 if test yes = "$lt_cv_prog_compiler_static_works"; then
9680 else
9681 lt_prog_compiler_static=
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9692 if ${lt_cv_prog_compiler_c_o+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 lt_cv_prog_compiler_c_o=no
9696 $RM -r conftest 2>/dev/null
9697 mkdir conftest
9698 cd conftest
9699 mkdir out
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9702 lt_compiler_flag="-o out/conftest2.$ac_objext"
9703 # Insert the option either (1) after the last *FLAGS variable, or
9704 # (2) before a word containing "conftest.", or (3) at the end.
9705 # Note that $ac_compile itself does not contain backslashes and begins
9706 # with a dollar sign (not a hyphen), so the echo should work correctly.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9712 (eval "$lt_compile" 2>out/conftest.err)
9713 ac_status=$?
9714 cat out/conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9717 then
9718 # The compiler can only warn and ignore the option if not recognized
9719 # So say no if there are warnings
9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler_c_o=yes
9726 chmod u+w . 2>&5
9727 $RM conftest*
9728 # SGI C++ compiler will create directory out/ii_files/ for
9729 # template instantiation
9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9731 $RM out/* && rmdir out
9732 cd ..
9733 $RM -r conftest
9734 $RM conftest*
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9747 if ${lt_cv_prog_compiler_c_o+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 lt_cv_prog_compiler_c_o=no
9751 $RM -r conftest 2>/dev/null
9752 mkdir conftest
9753 cd conftest
9754 mkdir out
9755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757 lt_compiler_flag="-o out/conftest2.$ac_objext"
9758 # Insert the option either (1) after the last *FLAGS variable, or
9759 # (2) before a word containing "conftest.", or (3) at the end.
9760 # Note that $ac_compile itself does not contain backslashes and begins
9761 # with a dollar sign (not a hyphen), so the echo should work correctly.
9762 lt_compile=`echo "$ac_compile" | $SED \
9763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9765 -e 's:$: $lt_compiler_flag:'`
9766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9767 (eval "$lt_compile" 2>out/conftest.err)
9768 ac_status=$?
9769 cat out/conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9772 then
9773 # The compiler can only warn and ignore the option if not recognized
9774 # So say no if there are warnings
9775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler_c_o=yes
9781 chmod u+w . 2>&5
9782 $RM conftest*
9783 # SGI C++ compiler will create directory out/ii_files/ for
9784 # template instantiation
9785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9786 $RM out/* && rmdir out
9787 cd ..
9788 $RM -r conftest
9789 $RM conftest*
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9798 hard_links=nottested
9799 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9800 # do not overwrite the value of need_locks provided by the user
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9802 $as_echo_n "checking if we can lock with hard links... " >&6; }
9803 hard_links=yes
9804 $RM conftest*
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 touch conftest.a
9807 ln conftest.a conftest.b 2>&5 || hard_links=no
9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9810 $as_echo "$hard_links" >&6; }
9811 if test no = "$hard_links"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9813 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9814 need_locks=warn
9816 else
9817 need_locks=no
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9826 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9828 runpath_var=
9829 allow_undefined_flag=
9830 always_export_symbols=no
9831 archive_cmds=
9832 archive_expsym_cmds=
9833 compiler_needs_object=no
9834 enable_shared_with_static_runtimes=no
9835 export_dynamic_flag_spec=
9836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9837 hardcode_automatic=no
9838 hardcode_direct=no
9839 hardcode_direct_absolute=no
9840 hardcode_libdir_flag_spec=
9841 hardcode_libdir_separator=
9842 hardcode_minus_L=no
9843 hardcode_shlibpath_var=unsupported
9844 inherit_rpath=no
9845 link_all_deplibs=unknown
9846 module_cmds=
9847 module_expsym_cmds=
9848 old_archive_from_new_cmds=
9849 old_archive_from_expsyms_cmds=
9850 thread_safe_flag_spec=
9851 whole_archive_flag_spec=
9852 # include_expsyms should be a list of space-separated symbols to be *always*
9853 # included in the symbol list
9854 include_expsyms=
9855 # exclude_expsyms can be an extended regexp of symbols to exclude
9856 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9857 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9858 # as well as any symbol that contains 'd'.
9859 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9861 # platforms (ab)use it in PIC code, but their linkers get confused if
9862 # the symbol is explicitly referenced. Since portable code cannot
9863 # rely on this symbol name, it's probably fine to never include it in
9864 # preloaded symbol tables.
9865 # Exclude shared library initialization/finalization symbols.
9866 extract_expsyms_cmds=
9868 case $host_os in
9869 cygwin* | mingw* | pw32* | cegcc*)
9870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9871 # When not using gcc, we currently assume that we are using
9872 # Microsoft Visual C++.
9873 if test yes != "$GCC"; then
9874 with_gnu_ld=no
9877 interix*)
9878 # we just hope/assume this is gcc and not c89 (= MSVC++)
9879 with_gnu_ld=yes
9881 openbsd* | bitrig*)
9882 with_gnu_ld=no
9884 esac
9886 ld_shlibs=yes
9888 # On some targets, GNU ld is compatible enough with the native linker
9889 # that we're better off using the native interface for both.
9890 lt_use_gnu_ld_interface=no
9891 if test yes = "$with_gnu_ld"; then
9892 case $host_os in
9893 aix*)
9894 # The AIX port of GNU ld has always aspired to compatibility
9895 # with the native linker. However, as the warning in the GNU ld
9896 # block says, versions before 2.19.5* couldn't really create working
9897 # shared libraries, regardless of the interface used.
9898 case `$LD -v 2>&1` in
9899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9901 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9903 lt_use_gnu_ld_interface=yes
9905 esac
9908 lt_use_gnu_ld_interface=yes
9910 esac
9913 if test yes = "$lt_use_gnu_ld_interface"; then
9914 # If archive_cmds runs LD, not CC, wlarc should be empty
9915 wlarc='$wl'
9917 # Set some defaults for GNU ld with shared library support. These
9918 # are reset later if shared libraries are not supported. Putting them
9919 # here allows them to be overridden if necessary.
9920 runpath_var=LD_RUN_PATH
9921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9922 export_dynamic_flag_spec='$wl--export-dynamic'
9923 # ancient GNU ld didn't support --whole-archive et. al.
9924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9926 else
9927 whole_archive_flag_spec=
9929 supports_anon_versioning=no
9930 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9931 *GNU\ gold*) supports_anon_versioning=yes ;;
9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9935 *\ 2.11.*) ;; # other 2.11 versions
9936 *) supports_anon_versioning=yes ;;
9937 esac
9939 # See if GNU ld supports shared libraries.
9940 case $host_os in
9941 aix[3-9]*)
9942 # On AIX/PPC, the GNU linker is very broken
9943 if test ia64 != "$host_cpu"; then
9944 ld_shlibs=no
9945 cat <<_LT_EOF 1>&2
9947 *** Warning: the GNU linker, at least up to release 2.19, is reported
9948 *** to be unable to reliably create shared libraries on AIX.
9949 *** Therefore, libtool is disabling shared libraries support. If you
9950 *** really care for shared libraries, you may want to install binutils
9951 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9952 *** You will then need to restart the configuration process.
9954 _LT_EOF
9958 amigaos*)
9959 case $host_cpu in
9960 powerpc)
9961 # see comment about AmigaOS4 .so support
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963 archive_expsym_cmds=''
9965 m68k)
9966 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)'
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_minus_L=yes
9970 esac
9973 beos*)
9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9975 allow_undefined_flag=unsupported
9976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9977 # support --undefined. This deserves some investigation. FIXME
9978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9979 else
9980 ld_shlibs=no
9984 cygwin* | mingw* | pw32* | cegcc*)
9985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9986 # as there is no search path for DLLs.
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 export_dynamic_flag_spec='$wl--export-all-symbols'
9989 allow_undefined_flag=unsupported
9990 always_export_symbols=no
9991 enable_shared_with_static_runtimes=yes
9992 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'
9993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9997 # If the export-symbols file already is a .def file, use it as
9998 # is; otherwise, prepend EXPORTS...
9999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10000 cp $export_symbols $output_objdir/$soname.def;
10001 else
10002 echo EXPORTS > $output_objdir/$soname.def;
10003 cat $export_symbols >> $output_objdir/$soname.def;
10005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10006 else
10007 ld_shlibs=no
10011 haiku*)
10012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013 link_all_deplibs=yes
10016 os2*)
10017 hardcode_libdir_flag_spec='-L$libdir'
10018 hardcode_minus_L=yes
10019 allow_undefined_flag=unsupported
10020 shrext_cmds=.dll
10021 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10024 $ECHO EXPORTS >> $output_objdir/$libname.def~
10025 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10027 emximp -o $lib $output_objdir/$libname.def'
10028 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10031 $ECHO EXPORTS >> $output_objdir/$libname.def~
10032 prefix_cmds="$SED"~
10033 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10034 prefix_cmds="$prefix_cmds -e 1d";
10036 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10037 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10038 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10039 emximp -o $lib $output_objdir/$libname.def'
10040 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10041 enable_shared_with_static_runtimes=yes
10044 interix[3-9]*)
10045 hardcode_direct=no
10046 hardcode_shlibpath_var=no
10047 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10048 export_dynamic_flag_spec='$wl-E'
10049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10050 # Instead, shared libraries are loaded at an image base (0x10000000 by
10051 # default) and relocated if they conflict, which is a slow very memory
10052 # consuming and fragmenting process. To avoid this, we pick a random,
10053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10056 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'
10059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10060 tmp_diet=no
10061 if test linux-dietlibc = "$host_os"; then
10062 case $cc_basename in
10063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10064 esac
10066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10067 && test no = "$tmp_diet"
10068 then
10069 tmp_addflag=' $pic_flag'
10070 tmp_sharedflag='-shared'
10071 case $cc_basename,$host_cpu in
10072 pgcc*) # Portland Group C compiler
10073 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'
10074 tmp_addflag=' $pic_flag'
10076 pgf77* | pgf90* | pgf95* | pgfortran*)
10077 # Portland Group f77 and f90 compilers
10078 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'
10079 tmp_addflag=' $pic_flag -Mnomain' ;;
10080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10081 tmp_addflag=' -i_dynamic' ;;
10082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10083 tmp_addflag=' -i_dynamic -nofor_main' ;;
10084 ifc* | ifort*) # Intel Fortran compiler
10085 tmp_addflag=' -nofor_main' ;;
10086 lf95*) # Lahey Fortran 8.1
10087 whole_archive_flag_spec=
10088 tmp_sharedflag='--shared' ;;
10089 nagfor*) # NAGFOR 5.3
10090 tmp_sharedflag='-Wl,-shared' ;;
10091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10092 tmp_sharedflag='-qmkshrobj'
10093 tmp_addflag= ;;
10094 nvcc*) # Cuda Compiler Driver 2.2
10095 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'
10096 compiler_needs_object=yes
10098 esac
10099 case `$CC -V 2>&1 | sed 5q` in
10100 *Sun\ C*) # Sun C 5.9
10101 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'
10102 compiler_needs_object=yes
10103 tmp_sharedflag='-G' ;;
10104 *Sun\ F*) # Sun Fortran 8.3
10105 tmp_sharedflag='-G' ;;
10106 esac
10107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109 if test yes = "$supports_anon_versioning"; then
10110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10112 echo "local: *; };" >> $output_objdir/$libname.ver~
10113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10116 case $cc_basename in
10117 tcc*)
10118 export_dynamic_flag_spec='-rdynamic'
10120 xlf* | bgf* | bgxlf* | mpixlf*)
10121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10124 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10125 if test yes = "$supports_anon_versioning"; then
10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10128 echo "local: *; };" >> $output_objdir/$libname.ver~
10129 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10132 esac
10133 else
10134 ld_shlibs=no
10138 netbsd*)
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10141 wlarc=
10142 else
10143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148 solaris*)
10149 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10150 ld_shlibs=no
10151 cat <<_LT_EOF 1>&2
10153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10154 *** create shared libraries on Solaris systems. Therefore, libtool
10155 *** is disabling shared libraries support. We urge you to upgrade GNU
10156 *** binutils to release 2.9.1 or newer. Another option is to modify
10157 *** your PATH or compiler configuration so that the native linker is
10158 *** used, and then restart.
10160 _LT_EOF
10161 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10164 else
10165 ld_shlibs=no
10169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10170 case `$LD -v 2>&1` in
10171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10172 ld_shlibs=no
10173 cat <<_LT_EOF 1>&2
10175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10176 *** reliably create shared libraries on SCO systems. Therefore, libtool
10177 *** is disabling shared libraries support. We urge you to upgrade GNU
10178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10179 *** your PATH or compiler configuration so that the native linker is
10180 *** used, and then restart.
10182 _LT_EOF
10185 # For security reasons, it is highly recommended that you always
10186 # use absolute paths for naming shared libraries, and exclude the
10187 # DT_RUNPATH tag from executables and libraries. But doing so
10188 # requires that you compile everything twice, which is a pain.
10189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10193 else
10194 ld_shlibs=no
10197 esac
10200 sunos4*)
10201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10202 wlarc=
10203 hardcode_direct=yes
10204 hardcode_shlibpath_var=no
10208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10211 else
10212 ld_shlibs=no
10215 esac
10217 if test no = "$ld_shlibs"; then
10218 runpath_var=
10219 hardcode_libdir_flag_spec=
10220 export_dynamic_flag_spec=
10221 whole_archive_flag_spec=
10223 else
10224 # PORTME fill in a description of your system's linker (not GNU ld)
10225 case $host_os in
10226 aix3*)
10227 allow_undefined_flag=unsupported
10228 always_export_symbols=yes
10229 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'
10230 # Note: this linker hardcodes the directories in LIBPATH if there
10231 # are no directories specified by -L.
10232 hardcode_minus_L=yes
10233 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10234 # Neither direct hardcoding nor static linking is supported with a
10235 # broken collect2.
10236 hardcode_direct=unsupported
10240 aix[4-9]*)
10241 if test ia64 = "$host_cpu"; then
10242 # On IA64, the linker does run time linking by default, so we don't
10243 # have to do anything special.
10244 aix_use_runtimelinking=no
10245 exp_sym_flag='-Bexport'
10246 no_entry_flag=
10247 else
10248 # If we're using GNU nm, then we don't want the "-C" option.
10249 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10250 # Without the "-l" option, or with the "-B" option, AIX nm treats
10251 # weak defined symbols like other global defined symbols, whereas
10252 # GNU nm marks them as "W".
10253 # While the 'weak' keyword is ignored in the Export File, we need
10254 # it in the Import File for the 'aix-soname' feature, so we have
10255 # to replace the "-B" option with "-P" for AIX nm.
10256 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10257 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'
10258 else
10259 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'
10261 aix_use_runtimelinking=no
10263 # Test if we are trying to use run time linking or normal
10264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10265 # have runtime linking enabled, and use it for executables.
10266 # For shared libraries, we enable/disable runtime linking
10267 # depending on the kind of the shared library created -
10268 # when "with_aix_soname,aix_use_runtimelinking" is:
10269 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10270 # "aix,yes" lib.so shared, rtl:yes, for executables
10271 # lib.a static archive
10272 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10273 # lib.a(lib.so.V) shared, rtl:no, for executables
10274 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10275 # lib.a(lib.so.V) shared, rtl:no
10276 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10277 # lib.a static archive
10278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10279 for ld_flag in $LDFLAGS; do
10280 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10281 aix_use_runtimelinking=yes
10282 break
10284 done
10285 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10286 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10287 # so we don't have lib.a shared libs to link our executables.
10288 # We have to force runtime linking in this case.
10289 aix_use_runtimelinking=yes
10290 LDFLAGS="$LDFLAGS -Wl,-brtl"
10293 esac
10295 exp_sym_flag='-bexport'
10296 no_entry_flag='-bnoentry'
10299 # When large executables or shared objects are built, AIX ld can
10300 # have problems creating the table of contents. If linking a library
10301 # or program results in "error TOC overflow" add -mminimal-toc to
10302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10305 archive_cmds=''
10306 hardcode_direct=yes
10307 hardcode_direct_absolute=yes
10308 hardcode_libdir_separator=':'
10309 link_all_deplibs=yes
10310 file_list_spec='$wl-f,'
10311 case $with_aix_soname,$aix_use_runtimelinking in
10312 aix,*) ;; # traditional, no import file
10313 svr4,* | *,yes) # use import file
10314 # The Import File defines what to hardcode.
10315 hardcode_direct=no
10316 hardcode_direct_absolute=no
10318 esac
10320 if test yes = "$GCC"; then
10321 case $host_os in aix4.[012]|aix4.[012].*)
10322 # We only want to do this on AIX 4.2 and lower, the check
10323 # below for broken collect2 doesn't work under 4.3+
10324 collect2name=`$CC -print-prog-name=collect2`
10325 if test -f "$collect2name" &&
10326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10327 then
10328 # We have reworked collect2
10330 else
10331 # We have old collect2
10332 hardcode_direct=unsupported
10333 # It fails to find uninstalled libraries when the uninstalled
10334 # path is not listed in the libpath. Setting hardcode_minus_L
10335 # to unsupported forces relinking
10336 hardcode_minus_L=yes
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_libdir_separator=
10341 esac
10342 shared_flag='-shared'
10343 if test yes = "$aix_use_runtimelinking"; then
10344 shared_flag="$shared_flag "'$wl-G'
10346 # Need to ensure runtime linking is disabled for the traditional
10347 # shared library, or the linker may eventually find shared libraries
10348 # /with/ Import File - we do not want to mix them.
10349 shared_flag_aix='-shared'
10350 shared_flag_svr4='-shared $wl-G'
10351 else
10352 # not using gcc
10353 if test ia64 = "$host_cpu"; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10356 shared_flag='-G'
10357 else
10358 if test yes = "$aix_use_runtimelinking"; then
10359 shared_flag='$wl-G'
10360 else
10361 shared_flag='$wl-bM:SRE'
10363 shared_flag_aix='$wl-bM:SRE'
10364 shared_flag_svr4='$wl-G'
10368 export_dynamic_flag_spec='$wl-bexpall'
10369 # It seems that -bexpall does not export symbols beginning with
10370 # underscore (_), so it is better to generate a list of symbols to export.
10371 always_export_symbols=yes
10372 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10373 # Warning - without using the other runtime loading flags (-brtl),
10374 # -berok will link without error, but may produce a broken library.
10375 allow_undefined_flag='-berok'
10376 # Determine the default libpath from the value encoded in an
10377 # empty executable.
10378 if test set = "${lt_cv_aix_libpath+set}"; then
10379 aix_libpath=$lt_cv_aix_libpath
10380 else
10381 if ${lt_cv_aix_libpath_+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10388 main ()
10392 return 0;
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10397 lt_aix_libpath_sed='
10398 /Import File Strings/,/^$/ {
10399 /^0/ {
10400 s/^0 *\([^ ]*\) *$/\1/
10404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10405 # Check for a 64-bit object if we didn't find anything.
10406 if test -z "$lt_cv_aix_libpath_"; then
10407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 if test -z "$lt_cv_aix_libpath_"; then
10413 lt_cv_aix_libpath_=/usr/lib:/lib
10418 aix_libpath=$lt_cv_aix_libpath_
10421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10422 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
10423 else
10424 if test ia64 = "$host_cpu"; then
10425 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10426 allow_undefined_flag="-z nodefs"
10427 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"
10428 else
10429 # Determine the default libpath from the value encoded in an
10430 # empty executable.
10431 if test set = "${lt_cv_aix_libpath+set}"; then
10432 aix_libpath=$lt_cv_aix_libpath
10433 else
10434 if ${lt_cv_aix_libpath_+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10441 main ()
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10450 lt_aix_libpath_sed='
10451 /Import File Strings/,/^$/ {
10452 /^0/ {
10453 s/^0 *\([^ ]*\) *$/\1/
10457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 # Check for a 64-bit object if we didn't find anything.
10459 if test -z "$lt_cv_aix_libpath_"; then
10460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test -z "$lt_cv_aix_libpath_"; then
10466 lt_cv_aix_libpath_=/usr/lib:/lib
10471 aix_libpath=$lt_cv_aix_libpath_
10474 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10475 # Warning - without using the other run time loading flags,
10476 # -berok will link without error, but may produce a broken library.
10477 no_undefined_flag=' $wl-bernotok'
10478 allow_undefined_flag=' $wl-berok'
10479 if test yes = "$with_gnu_ld"; then
10480 # We only use this code for GNU lds that support --whole-archive.
10481 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10482 else
10483 # Exported symbols can be pulled into shared objects from archives
10484 whole_archive_flag_spec='$convenience'
10486 archive_cmds_need_lc=yes
10487 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10488 # -brtl affects multiple linker settings, -berok does not and is overridden later
10489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10490 if test svr4 != "$with_aix_soname"; then
10491 # This is similar to how AIX traditionally builds its shared libraries.
10492 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'
10494 if test aix != "$with_aix_soname"; then
10495 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'
10496 else
10497 # used by -dlpreopen to get the symbols
10498 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10500 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10505 amigaos*)
10506 case $host_cpu in
10507 powerpc)
10508 # see comment about AmigaOS4 .so support
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510 archive_expsym_cmds=''
10512 m68k)
10513 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)'
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10517 esac
10520 bsdi[45]*)
10521 export_dynamic_flag_spec=-rdynamic
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 # When not using gcc, we currently assume that we are using
10526 # Microsoft Visual C++.
10527 # hardcode_libdir_flag_spec is actually meaningless, as there is
10528 # no search path for DLLs.
10529 case $cc_basename in
10530 cl*)
10531 # Native MSVC
10532 hardcode_libdir_flag_spec=' '
10533 allow_undefined_flag=unsupported
10534 always_export_symbols=yes
10535 file_list_spec='@'
10536 # Tell ltmain to make .lib files, not .a files.
10537 libext=lib
10538 # Tell ltmain to make .dll files, not .so files.
10539 shrext_cmds=.dll
10540 # FIXME: Setting linknames here is a bad hack.
10541 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10542 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10543 cp "$export_symbols" "$output_objdir/$soname.def";
10544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10545 else
10546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10549 linknames='
10550 # The linker will not automatically build a static lib if we build a DLL.
10551 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10552 enable_shared_with_static_runtimes=yes
10553 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10555 # Don't use ranlib
10556 old_postinstall_cmds='chmod 644 $oldlib'
10557 postlink_cmds='lt_outputfile="@OUTPUT@"~
10558 lt_tool_outputfile="@TOOL_OUTPUT@"~
10559 case $lt_outputfile in
10560 *.exe|*.EXE) ;;
10562 lt_outputfile=$lt_outputfile.exe
10563 lt_tool_outputfile=$lt_tool_outputfile.exe
10565 esac~
10566 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10567 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10568 $RM "$lt_outputfile.manifest";
10572 # Assume MSVC wrapper
10573 hardcode_libdir_flag_spec=' '
10574 allow_undefined_flag=unsupported
10575 # Tell ltmain to make .lib files, not .a files.
10576 libext=lib
10577 # Tell ltmain to make .dll files, not .so files.
10578 shrext_cmds=.dll
10579 # FIXME: Setting linknames here is a bad hack.
10580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10581 # The linker will automatically build a .lib file if we build a DLL.
10582 old_archive_from_new_cmds='true'
10583 # FIXME: Should let the user specify the lib program.
10584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10585 enable_shared_with_static_runtimes=yes
10587 esac
10590 darwin* | rhapsody*)
10593 archive_cmds_need_lc=no
10594 hardcode_direct=no
10595 hardcode_automatic=yes
10596 hardcode_shlibpath_var=unsupported
10597 if test yes = "$lt_cv_ld_force_load"; then
10598 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\"`'
10600 else
10601 whole_archive_flag_spec=''
10603 link_all_deplibs=yes
10604 allow_undefined_flag=$_lt_dar_allow_undefined
10605 case $cc_basename in
10606 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10607 *) _lt_dar_can_shared=$GCC ;;
10608 esac
10609 if test yes = "$_lt_dar_can_shared"; then
10610 output_verbose_link_cmd=func_echo_all
10611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10613 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"
10614 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"
10616 else
10617 ld_shlibs=no
10622 dgux*)
10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_shlibpath_var=no
10628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10629 # support. Future versions do this automatically, but an explicit c++rt0.o
10630 # does not break anything, and helps significantly (at the cost of a little
10631 # extra space).
10632 freebsd2.2*)
10633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10634 hardcode_libdir_flag_spec='-R$libdir'
10635 hardcode_direct=yes
10636 hardcode_shlibpath_var=no
10639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10640 freebsd2.*)
10641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_direct=yes
10643 hardcode_minus_L=yes
10644 hardcode_shlibpath_var=no
10647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10648 freebsd* | dragonfly*)
10649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10650 hardcode_libdir_flag_spec='-R$libdir'
10651 hardcode_direct=yes
10652 hardcode_shlibpath_var=no
10655 hpux9*)
10656 if test yes = "$GCC"; then
10657 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'
10658 else
10659 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'
10661 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10662 hardcode_libdir_separator=:
10663 hardcode_direct=yes
10665 # hardcode_minus_L: Not really in the search PATH,
10666 # but as the default location of the library.
10667 hardcode_minus_L=yes
10668 export_dynamic_flag_spec='$wl-E'
10671 hpux10*)
10672 if test yes,no = "$GCC,$with_gnu_ld"; then
10673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 else
10675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677 if test no = "$with_gnu_ld"; then
10678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10679 hardcode_libdir_separator=:
10680 hardcode_direct=yes
10681 hardcode_direct_absolute=yes
10682 export_dynamic_flag_spec='$wl-E'
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10689 hpux11*)
10690 if test yes,no = "$GCC,$with_gnu_ld"; then
10691 case $host_cpu in
10692 hppa*64*)
10693 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 ia64*)
10696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701 esac
10702 else
10703 case $host_cpu in
10704 hppa*64*)
10705 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 ia64*)
10708 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10712 # Older versions of the 11.00 compiler do not understand -b yet
10713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10715 $as_echo_n "checking if $CC understands -b... " >&6; }
10716 if ${lt_cv_prog_compiler__b+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 lt_cv_prog_compiler__b=no
10720 save_LDFLAGS=$LDFLAGS
10721 LDFLAGS="$LDFLAGS -b"
10722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10724 # The linker can only warn and ignore the option if not recognized
10725 # So say no if there are warnings
10726 if test -s conftest.err; then
10727 # Append any errors to the config.log.
10728 cat conftest.err 1>&5
10729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10731 if diff conftest.exp conftest.er2 >/dev/null; then
10732 lt_cv_prog_compiler__b=yes
10734 else
10735 lt_cv_prog_compiler__b=yes
10738 $RM -r conftest*
10739 LDFLAGS=$save_LDFLAGS
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10745 if test yes = "$lt_cv_prog_compiler__b"; then
10746 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10747 else
10748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10752 esac
10754 if test no = "$with_gnu_ld"; then
10755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10756 hardcode_libdir_separator=:
10758 case $host_cpu in
10759 hppa*64*|ia64*)
10760 hardcode_direct=no
10761 hardcode_shlibpath_var=no
10764 hardcode_direct=yes
10765 hardcode_direct_absolute=yes
10766 export_dynamic_flag_spec='$wl-E'
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10772 esac
10776 irix5* | irix6* | nonstopux*)
10777 if test yes = "$GCC"; then
10778 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'
10779 # Try to use the -exported_symbol ld option, if it does not
10780 # work, assume that -exports_file does not work either and
10781 # implicitly export all symbols.
10782 # This should be the same for all languages, so no per-tag cache variable.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10784 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10785 if ${lt_cv_irix_exported_symbol+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 save_LDFLAGS=$LDFLAGS
10789 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 int foo (void) { return 0; }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 lt_cv_irix_exported_symbol=yes
10796 else
10797 lt_cv_irix_exported_symbol=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS=$save_LDFLAGS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10804 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10805 if test yes = "$lt_cv_irix_exported_symbol"; then
10806 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'
10808 else
10809 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'
10810 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'
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10814 hardcode_libdir_separator=:
10815 inherit_rpath=yes
10816 link_all_deplibs=yes
10819 linux*)
10820 case $cc_basename in
10821 tcc*)
10822 # Fabrice Bellard et al's Tiny C Compiler
10823 ld_shlibs=yes
10824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10826 esac
10829 netbsd*)
10830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10832 else
10833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10835 hardcode_libdir_flag_spec='-R$libdir'
10836 hardcode_direct=yes
10837 hardcode_shlibpath_var=no
10840 newsos6)
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_direct=yes
10843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10844 hardcode_libdir_separator=:
10845 hardcode_shlibpath_var=no
10848 *nto* | *qnx*)
10851 openbsd* | bitrig*)
10852 if test -f /usr/libexec/ld.so; then
10853 hardcode_direct=yes
10854 hardcode_shlibpath_var=no
10855 hardcode_direct_absolute=yes
10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10860 export_dynamic_flag_spec='$wl-E'
10861 else
10862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10865 else
10866 ld_shlibs=no
10870 os2*)
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_minus_L=yes
10873 allow_undefined_flag=unsupported
10874 shrext_cmds=.dll
10875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10878 $ECHO EXPORTS >> $output_objdir/$libname.def~
10879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10881 emximp -o $lib $output_objdir/$libname.def'
10882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10885 $ECHO EXPORTS >> $output_objdir/$libname.def~
10886 prefix_cmds="$SED"~
10887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10888 prefix_cmds="$prefix_cmds -e 1d";
10890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10893 emximp -o $lib $output_objdir/$libname.def'
10894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10895 enable_shared_with_static_runtimes=yes
10898 osf3*)
10899 if test yes = "$GCC"; then
10900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10901 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'
10902 else
10903 allow_undefined_flag=' -expect_unresolved \*'
10904 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'
10906 archive_cmds_need_lc='no'
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 hardcode_libdir_separator=:
10911 osf4* | osf5*) # as osf3* with the addition of -msym flag
10912 if test yes = "$GCC"; then
10913 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10914 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'
10915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10916 else
10917 allow_undefined_flag=' -expect_unresolved \*'
10918 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'
10919 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~
10920 $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'
10922 # Both c and cxx compiler support -rpath directly
10923 hardcode_libdir_flag_spec='-rpath $libdir'
10925 archive_cmds_need_lc='no'
10926 hardcode_libdir_separator=:
10929 solaris*)
10930 no_undefined_flag=' -z defs'
10931 if test yes = "$GCC"; then
10932 wlarc='$wl'
10933 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10935 $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'
10936 else
10937 case `$CC -V 2>&1` in
10938 *"Compilers 5.0"*)
10939 wlarc=''
10940 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10945 wlarc='$wl'
10946 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10950 esac
10952 hardcode_libdir_flag_spec='-R$libdir'
10953 hardcode_shlibpath_var=no
10954 case $host_os in
10955 solaris2.[0-5] | solaris2.[0-5].*) ;;
10957 # The compiler driver will combine and reorder linker options,
10958 # but understands '-z linker_flag'. GCC discards it without '$wl',
10959 # but is careful enough not to reorder.
10960 # Supported since Solaris 2.6 (maybe 2.5.1?)
10961 if test yes = "$GCC"; then
10962 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10963 else
10964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10967 esac
10968 link_all_deplibs=yes
10971 sunos4*)
10972 if test sequent = "$host_vendor"; then
10973 # Use $CC to link under sequent, because it throws in some extra .o
10974 # files that make .init and .fini sections work.
10975 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10976 else
10977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_direct=yes
10981 hardcode_minus_L=yes
10982 hardcode_shlibpath_var=no
10985 sysv4)
10986 case $host_vendor in
10987 sni)
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_direct=yes # is this really true???
10991 siemens)
10992 ## LD is ld it makes a PLAMLIB
10993 ## CC just makes a GrossModule.
10994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10995 reload_cmds='$CC -r -o $output$reload_objs'
10996 hardcode_direct=no
10998 motorola)
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11002 esac
11003 runpath_var='LD_RUN_PATH'
11004 hardcode_shlibpath_var=no
11007 sysv4.3*)
11008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_shlibpath_var=no
11010 export_dynamic_flag_spec='-Bexport'
11013 sysv4*MP*)
11014 if test -d /usr/nec; then
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_shlibpath_var=no
11017 runpath_var=LD_RUN_PATH
11018 hardcode_runpath_var=yes
11019 ld_shlibs=yes
11023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11024 no_undefined_flag='$wl-z,text'
11025 archive_cmds_need_lc=no
11026 hardcode_shlibpath_var=no
11027 runpath_var='LD_RUN_PATH'
11029 if test yes = "$GCC"; then
11030 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 else
11033 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 sysv5* | sco3.2v5* | sco5v6*)
11039 # Note: We CANNOT use -z defs as we might desire, because we do not
11040 # link with -lc, and that would cause any symbols used from libc to
11041 # always be unresolved, which means just about no library would
11042 # ever link correctly. If we're not using GNU ld we use -z text
11043 # though, which does catch some bad symbols but isn't as heavy-handed
11044 # as -z defs.
11045 no_undefined_flag='$wl-z,text'
11046 allow_undefined_flag='$wl-z,nodefs'
11047 archive_cmds_need_lc=no
11048 hardcode_shlibpath_var=no
11049 hardcode_libdir_flag_spec='$wl-R,$libdir'
11050 hardcode_libdir_separator=':'
11051 link_all_deplibs=yes
11052 export_dynamic_flag_spec='$wl-Bexport'
11053 runpath_var='LD_RUN_PATH'
11055 if test yes = "$GCC"; then
11056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 else
11059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064 uts4*)
11065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066 hardcode_libdir_flag_spec='-L$libdir'
11067 hardcode_shlibpath_var=no
11071 ld_shlibs=no
11073 esac
11075 if test sni = "$host_vendor"; then
11076 case $host in
11077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11078 export_dynamic_flag_spec='$wl-Blargedynsym'
11080 esac
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11085 $as_echo "$ld_shlibs" >&6; }
11086 test no = "$ld_shlibs" && can_build_shared=no
11088 with_gnu_ld=$with_gnu_ld
11105 # Do we need to explicitly link libc?
11107 case "x$archive_cmds_need_lc" in
11108 x|xyes)
11109 # Assume -lc should be added
11110 archive_cmds_need_lc=yes
11112 if test yes,yes = "$GCC,$enable_shared"; then
11113 case $archive_cmds in
11114 *'~'*)
11115 # FIXME: we may have to deal with multi-command sequences.
11117 '$CC '*)
11118 # Test whether the compiler implicitly links with -lc since on some
11119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11120 # to ld, don't add -lc before -lgcc.
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 $RM conftest*
11127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; } 2>conftest.err; then
11134 soname=conftest
11135 lib=conftest
11136 libobjs=conftest.$ac_objext
11137 deplibs=
11138 wl=$lt_prog_compiler_wl
11139 pic_flag=$lt_prog_compiler_pic
11140 compiler_flags=-v
11141 linker_flags=-v
11142 verstring=
11143 output_objdir=.
11144 libname=conftest
11145 lt_save_allow_undefined_flag=$allow_undefined_flag
11146 allow_undefined_flag=
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }
11152 then
11153 lt_cv_archive_cmds_need_lc=no
11154 else
11155 lt_cv_archive_cmds_need_lc=yes
11157 allow_undefined_flag=$lt_save_allow_undefined_flag
11158 else
11159 cat conftest.err 1>&5
11161 $RM conftest*
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11168 esac
11171 esac
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11327 if test yes = "$GCC"; then
11328 case $host_os in
11329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11330 *) lt_awk_arg='/^libraries:/' ;;
11331 esac
11332 case $host_os in
11333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11334 *) lt_sed_strip_eq='s|=/|/|g' ;;
11335 esac
11336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11337 case $lt_search_path_spec in
11338 *\;*)
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11348 esac
11349 # Ok, now we have the path, separated by spaces, we can step through it
11350 # and add multilib dir if necessary...
11351 lt_tmp_lt_search_path_spec=
11352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11353 # ...but if some path component already ends with the multilib dir we assume
11354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11355 case "$lt_multi_os_dir; $lt_search_path_spec " in
11356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11357 lt_multi_os_dir=
11359 esac
11360 for lt_sys_path in $lt_search_path_spec; do
11361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11363 elif test -n "$lt_multi_os_dir"; then
11364 test -d "$lt_sys_path" && \
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11367 done
11368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11369 BEGIN {RS = " "; FS = "/|\n";} {
11370 lt_foo = "";
11371 lt_count = 0;
11372 for (lt_i = NF; lt_i > 0; lt_i--) {
11373 if ($lt_i != "" && $lt_i != ".") {
11374 if ($lt_i == "..") {
11375 lt_count++;
11376 } else {
11377 if (lt_count == 0) {
11378 lt_foo = "/" $lt_i lt_foo;
11379 } else {
11380 lt_count--;
11385 if (lt_foo != "") { lt_freq[lt_foo]++; }
11386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11388 # AWK program above erroneously prepends '/' to C:/dos/paths
11389 # for these hosts.
11390 case $host_os in
11391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11393 esac
11394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11395 else
11396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11398 library_names_spec=
11399 libname_spec='lib$name'
11400 soname_spec=
11401 shrext_cmds=.so
11402 postinstall_cmds=
11403 postuninstall_cmds=
11404 finish_cmds=
11405 finish_eval=
11406 shlibpath_var=
11407 shlibpath_overrides_runpath=unknown
11408 version_type=none
11409 dynamic_linker="$host_os ld.so"
11410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11411 need_lib_prefix=unknown
11412 hardcode_into_libs=no
11414 # when you set need_version to no, make sure it does not cause -set_version
11415 # flags to be left without arguments
11416 need_version=unknown
11420 case $host_os in
11421 aix3*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11424 shlibpath_var=LIBPATH
11426 # AIX 3 has no versioning support, so we append a major version to the name.
11427 soname_spec='$libname$release$shared_ext$major'
11430 aix[4-9]*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 hardcode_into_libs=yes
11435 if test ia64 = "$host_cpu"; then
11436 # AIX 5 supports IA64
11437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 else
11440 # With GCC up to 2.95.x, collect2 would create an import file
11441 # for dependence libraries. The import file would start with
11442 # the line '#! .'. This would cause the generated library to
11443 # depend on '.', always an invalid library. This was fixed in
11444 # development snapshots of GCC prior to 3.0.
11445 case $host_os in
11446 aix4 | aix4.[01] | aix4.[01].*)
11447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11448 echo ' yes '
11449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11451 else
11452 can_build_shared=no
11455 esac
11456 # Using Import Files as archive members, it is possible to support
11457 # filename-based versioning of shared library archives on AIX. While
11458 # this would work for both with and without runtime linking, it will
11459 # prevent static linking of such archives. So we do filename-based
11460 # shared library versioning with .so extension only, which is used
11461 # when both runtime linking and shared linking is enabled.
11462 # Unfortunately, runtime linking may impact performance, so we do
11463 # not want this to be the default eventually. Also, we use the
11464 # versioned .so libs for executables only if there is the -brtl
11465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11466 # To allow for filename-based versioning support, we need to create
11467 # libNAME.so.V as an archive file, containing:
11468 # *) an Import File, referring to the versioned filename of the
11469 # archive as well as the shared archive member, telling the
11470 # bitwidth (32 or 64) of that shared object, and providing the
11471 # list of exported symbols of that shared object, eventually
11472 # decorated with the 'weak' keyword
11473 # *) the shared object with the F_LOADONLY flag set, to really avoid
11474 # it being seen by the linker.
11475 # At run time we better use the real file rather than another symlink,
11476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11478 case $with_aix_soname,$aix_use_runtimelinking in
11479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11480 # soname into executable. Probably we can add versioning support to
11481 # collect2, so additional links can be useful in future.
11482 aix,yes) # traditional libtool
11483 dynamic_linker='AIX unversionable lib.so'
11484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485 # instead of lib<name>.a to let people know that these are not
11486 # typical AIX shared libraries.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489 aix,no) # traditional AIX only
11490 dynamic_linker='AIX lib.a(lib.so.V)'
11491 # We preserve .a as extension for shared libraries through AIX4.2
11492 # and later when we are not doing run time linking.
11493 library_names_spec='$libname$release.a $libname.a'
11494 soname_spec='$libname$release$shared_ext$major'
11496 svr4,*) # full svr4 only
11497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11499 # We do not specify a path in Import Files, so LIBPATH fires.
11500 shlibpath_overrides_runpath=yes
11502 *,yes) # both, prefer svr4
11503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11505 # unpreferred sharedlib libNAME.a needs extra handling
11506 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"'
11507 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"'
11508 # We do not specify a path in Import Files, so LIBPATH fires.
11509 shlibpath_overrides_runpath=yes
11511 *,no) # both, prefer aix
11512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11513 library_names_spec='$libname$release.a $libname.a'
11514 soname_spec='$libname$release$shared_ext$major'
11515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11516 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)'
11517 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"'
11519 esac
11520 shlibpath_var=LIBPATH
11524 amigaos*)
11525 case $host_cpu in
11526 powerpc)
11527 # Since July 2007 AmigaOS4 officially supports .so libraries.
11528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 m68k)
11532 library_names_spec='$libname.ixlibrary $libname.a'
11533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11534 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'
11536 esac
11539 beos*)
11540 library_names_spec='$libname$shared_ext'
11541 dynamic_linker="$host_os ld.so"
11542 shlibpath_var=LIBRARY_PATH
11545 bsdi[45]*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 need_version=no
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11554 # the default ld.so.conf also contains /usr/contrib/lib and
11555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11556 # libtool to hard-code these into programs
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 version_type=windows
11561 shrext_cmds=.dll
11562 need_version=no
11563 need_lib_prefix=no
11565 case $GCC,$cc_basename in
11566 yes,*)
11567 # gcc
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11581 $RM \$dlpath'
11582 shlibpath_overrides_runpath=yes
11584 case $host_os in
11585 cygwin*)
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11591 mingw* | cegcc*)
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11595 pw32*)
11596 # pw32 DLLs use 'pw' prefix rather than 'lib'
11597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11599 esac
11600 dynamic_linker='Win32 ld.exe'
11603 *,cl*)
11604 # Native MSVC
11605 libname_spec='$name'
11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11607 library_names_spec='$libname.dll.lib'
11609 case $build_os in
11610 mingw*)
11611 sys_lib_search_path_spec=
11612 lt_save_ifs=$IFS
11613 IFS=';'
11614 for lt_path in $LIB
11616 IFS=$lt_save_ifs
11617 # Let DOS variable expansion print the short 8.3 style file name.
11618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11620 done
11621 IFS=$lt_save_ifs
11622 # Convert to MSYS style.
11623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11625 cygwin*)
11626 # Convert to unix form, then to dos form, then back to unix form
11627 # but this time dos style (no spaces!) so that the unix form looks
11628 # like /cygdrive/c/PROGRA~1:/cygdr...
11629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11634 sys_lib_search_path_spec=$LIB
11635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636 # It is most probably a Windows format PATH.
11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11638 else
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11641 # FIXME: find the short name or the path components, as spaces are
11642 # common. (e.g. "Program Files" -> "PROGRA~1")
11644 esac
11646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11647 postinstall_cmds='base_file=`basename \$file`~
11648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11649 dldir=$destdir/`dirname \$dlpath`~
11650 test -d \$dldir || mkdir -p \$dldir~
11651 $install_prog $dir/$dlname \$dldir/$dlname'
11652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11653 dlpath=$dir/\$dldll~
11654 $RM \$dlpath'
11655 shlibpath_overrides_runpath=yes
11656 dynamic_linker='Win32 link.exe'
11660 # Assume MSVC wrapper
11661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11662 dynamic_linker='Win32 ld.exe'
11664 esac
11665 # FIXME: first we should search . and the directory the executable is in
11666 shlibpath_var=PATH
11669 darwin* | rhapsody*)
11670 dynamic_linker="$host_os dyld"
11671 version_type=darwin
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11675 soname_spec='$libname$release$major$shared_ext'
11676 shlibpath_overrides_runpath=yes
11677 shlibpath_var=DYLD_LIBRARY_PATH
11678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11684 dgux*)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11693 freebsd* | dragonfly*)
11694 # DragonFly does not have aout. When/if they implement a new
11695 # versioning mechanism, adjust this.
11696 if test -x /usr/bin/objformat; then
11697 objformat=`/usr/bin/objformat`
11698 else
11699 case $host_os in
11700 freebsd[23].*) objformat=aout ;;
11701 *) objformat=elf ;;
11702 esac
11704 version_type=freebsd-$objformat
11705 case $version_type in
11706 freebsd-elf*)
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 need_version=no
11710 need_lib_prefix=no
11712 freebsd-*)
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11714 need_version=yes
11716 esac
11717 shlibpath_var=LD_LIBRARY_PATH
11718 case $host_os in
11719 freebsd2.*)
11720 shlibpath_overrides_runpath=yes
11722 freebsd3.[01]* | freebsdelf3.[01]*)
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11731 *) # from 4.6 on, and DragonFly
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11735 esac
11738 haiku*)
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 need_lib_prefix=no
11741 need_version=no
11742 dynamic_linker="$host_os runtime_loader"
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11748 hardcode_into_libs=yes
11751 hpux9* | hpux10* | hpux11*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11754 version_type=sunos
11755 need_lib_prefix=no
11756 need_version=no
11757 case $host_cpu in
11758 ia64*)
11759 shrext_cmds='.so'
11760 hardcode_into_libs=yes
11761 dynamic_linker="$host_os dld.so"
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 soname_spec='$libname$release$shared_ext$major'
11766 if test 32 = "$HPUX_IA64_MODE"; then
11767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11769 else
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11774 hppa*64*)
11775 shrext_cmds='.sl'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786 shrext_cmds='.sl'
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11793 esac
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11795 postinstall_cmds='chmod 555 $lib'
11796 # or fails outright, so override atomically:
11797 install_override_mode=555
11800 interix[3-9]*)
11801 version_type=linux # correct to gnu/linux during the next big refactor
11802 need_lib_prefix=no
11803 need_version=no
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 soname_spec='$libname$release$shared_ext$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11812 irix5* | irix6* | nonstopux*)
11813 case $host_os in
11814 nonstopux*) version_type=nonstopux ;;
11816 if test yes = "$lt_cv_prog_gnu_ld"; then
11817 version_type=linux # correct to gnu/linux during the next big refactor
11818 else
11819 version_type=irix
11820 fi ;;
11821 esac
11822 need_lib_prefix=no
11823 need_version=no
11824 soname_spec='$libname$release$shared_ext$major'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11826 case $host_os in
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11839 esac
11841 esac
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11846 hardcode_into_libs=yes
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11851 dynamic_linker=no
11854 linux*android*)
11855 version_type=none # Android doesn't support versioned libraries.
11856 need_lib_prefix=no
11857 need_version=no
11858 library_names_spec='$libname$release$shared_ext'
11859 soname_spec='$libname$release$shared_ext'
11860 finish_cmds=
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11864 # This implies no fast_install, which is unacceptable.
11865 # Some rework will be needed to allow for fast_install
11866 # before this can be enabled.
11867 hardcode_into_libs=yes
11869 dynamic_linker='Android linker'
11870 # Don't embed -rpath directories since the linker doesn't support them.
11871 hardcode_libdir_flag_spec='-L$libdir'
11874 # This must be glibc/ELF.
11875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11885 # Some binutils ld are patched to set DT_RUNPATH
11886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 lt_cv_shlibpath_overrides_runpath=no
11890 save_LDFLAGS=$LDFLAGS
11891 save_libdir=$libdir
11892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11898 main ()
11902 return 0;
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11907 lt_cv_shlibpath_overrides_runpath=yes
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LDFLAGS=$save_LDFLAGS
11913 libdir=$save_libdir
11917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11919 # This implies no fast_install, which is unacceptable.
11920 # Some rework will be needed to allow for fast_install
11921 # before this can be enabled.
11922 hardcode_into_libs=yes
11924 # Ideally, we could use ldconfig to report *all* directores which are
11925 # searched for libraries, however this is still not possible. Aside from not
11926 # being certain /sbin/ldconfig is available, command
11927 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11928 # even though it is searched at run-time. Try to do the best guess by
11929 # appending ld.so.conf contents (and includes) to the search path.
11930 if test -f /etc/ld.so.conf; then
11931 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' ' '`
11932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935 # We used to test for /lib/ld.so.1 and disable shared libraries on
11936 # powerpc, because MkLinux only supported shared libraries with the
11937 # GNU dynamic linker. Since this was broken with cross compilers,
11938 # most powerpc-linux boxes support dynamic linking these days and
11939 # people can always --disable-shared, the test was removed, and we
11940 # assume the GNU/Linux dynamic linker is in use.
11941 dynamic_linker='GNU/Linux ld.so'
11944 netbsd*)
11945 version_type=sunos
11946 need_lib_prefix=no
11947 need_version=no
11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11951 dynamic_linker='NetBSD (a.out) ld.so'
11952 else
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 dynamic_linker='NetBSD ld.elf_so'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959 hardcode_into_libs=yes
11962 newsos6)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11969 *nto* | *qnx*)
11970 version_type=qnx
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=no
11977 hardcode_into_libs=yes
11978 dynamic_linker='ldqnx.so'
11981 openbsd* | bitrig*)
11982 version_type=sunos
11983 sys_lib_dlsearch_path_spec=/usr/lib
11984 need_lib_prefix=no
11985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11986 need_version=no
11987 else
11988 need_version=yes
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes
11996 os2*)
11997 libname_spec='$name'
11998 version_type=windows
11999 shrext_cmds=.dll
12000 need_version=no
12001 need_lib_prefix=no
12002 # OS/2 can only load a DLL with a base name of 8 characters or less.
12003 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12004 v=$($ECHO $release$versuffix | tr -d .-);
12005 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12006 $ECHO $n$v`$shared_ext'
12007 library_names_spec='${libname}_dll.$libext'
12008 dynamic_linker='OS/2 ld.exe'
12009 shlibpath_var=BEGINLIBPATH
12010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12012 postinstall_cmds='base_file=`basename \$file`~
12013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12014 dldir=$destdir/`dirname \$dlpath`~
12015 test -d \$dldir || mkdir -p \$dldir~
12016 $install_prog $dir/$dlname \$dldir/$dlname~
12017 chmod a+x \$dldir/$dlname~
12018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12022 dlpath=$dir/\$dldll~
12023 $RM \$dlpath'
12026 osf3* | osf4* | osf5*)
12027 version_type=osf
12028 need_lib_prefix=no
12029 need_version=no
12030 soname_spec='$libname$release$shared_ext$major'
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12037 rdos*)
12038 dynamic_linker=no
12041 solaris*)
12042 version_type=linux # correct to gnu/linux during the next big refactor
12043 need_lib_prefix=no
12044 need_version=no
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=yes
12049 hardcode_into_libs=yes
12050 # ldd complains unless libraries are executable
12051 postinstall_cmds='chmod +x $lib'
12054 sunos4*)
12055 version_type=sunos
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 if test yes = "$with_gnu_ld"; then
12061 need_lib_prefix=no
12063 need_version=yes
12066 sysv4 | sysv4.3*)
12067 version_type=linux # correct to gnu/linux during the next big refactor
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 case $host_vendor in
12072 sni)
12073 shlibpath_overrides_runpath=no
12074 need_lib_prefix=no
12075 runpath_var=LD_RUN_PATH
12077 siemens)
12078 need_lib_prefix=no
12080 motorola)
12081 need_lib_prefix=no
12082 need_version=no
12083 shlibpath_overrides_runpath=no
12084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12086 esac
12089 sysv4*MP*)
12090 if test -d /usr/nec; then
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12093 soname_spec='$libname$shared_ext.$major'
12094 shlibpath_var=LD_LIBRARY_PATH
12098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12099 version_type=sco
12100 need_lib_prefix=no
12101 need_version=no
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12103 soname_spec='$libname$release$shared_ext$major'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12107 if test yes = "$with_gnu_ld"; then
12108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12109 else
12110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12111 case $host_os in
12112 sco3.2v5*)
12113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12115 esac
12117 sys_lib_dlsearch_path_spec='/usr/lib'
12120 tpf*)
12121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12122 version_type=linux # correct to gnu/linux during the next big refactor
12123 need_lib_prefix=no
12124 need_version=no
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=no
12128 hardcode_into_libs=yes
12131 uts4*)
12132 version_type=linux # correct to gnu/linux during the next big refactor
12133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12134 soname_spec='$libname$release$shared_ext$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12139 dynamic_linker=no
12141 esac
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12143 $as_echo "$dynamic_linker" >&6; }
12144 test no = "$dynamic_linker" && can_build_shared=no
12146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12147 if test yes = "$GCC"; then
12148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12151 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12152 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12155 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12156 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12159 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12160 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12162 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12163 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12165 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12166 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12266 hardcode_action=
12267 if test -n "$hardcode_libdir_flag_spec" ||
12268 test -n "$runpath_var" ||
12269 test yes = "$hardcode_automatic"; then
12271 # We can hardcode non-existent directories.
12272 if test no != "$hardcode_direct" &&
12273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12274 # have to relink, otherwise we might link with an installed library
12275 # when we should be linking with a yet-to-be-installed one
12276 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12277 test no != "$hardcode_minus_L"; then
12278 # Linking always hardcodes the temporary library directory.
12279 hardcode_action=relink
12280 else
12281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12282 hardcode_action=immediate
12284 else
12285 # We cannot hardcode anything, or else we can only hardcode existing
12286 # directories.
12287 hardcode_action=unsupported
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12290 $as_echo "$hardcode_action" >&6; }
12292 if test relink = "$hardcode_action" ||
12293 test yes = "$inherit_rpath"; then
12294 # Fast installation is not supported
12295 enable_fast_install=no
12296 elif test yes = "$shlibpath_overrides_runpath" ||
12297 test no = "$enable_shared"; then
12298 # Fast installation is not necessary
12299 enable_fast_install=needless
12307 if test yes != "$enable_dlopen"; then
12308 enable_dlopen=unknown
12309 enable_dlopen_self=unknown
12310 enable_dlopen_self_static=unknown
12311 else
12312 lt_cv_dlopen=no
12313 lt_cv_dlopen_libs=
12315 case $host_os in
12316 beos*)
12317 lt_cv_dlopen=load_add_on
12318 lt_cv_dlopen_libs=
12319 lt_cv_dlopen_self=yes
12322 mingw* | pw32* | cegcc*)
12323 lt_cv_dlopen=LoadLibrary
12324 lt_cv_dlopen_libs=
12327 cygwin*)
12328 lt_cv_dlopen=dlopen
12329 lt_cv_dlopen_libs=
12332 darwin*)
12333 # if libdl is installed we need to link against it
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12336 if ${ac_cv_lib_dl_dlopen+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldl $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dlopen ();
12352 main ()
12354 return dlopen ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_dl_dlopen=yes
12361 else
12362 ac_cv_lib_dl_dlopen=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372 else
12374 lt_cv_dlopen=dyld
12375 lt_cv_dlopen_libs=
12376 lt_cv_dlopen_self=yes
12382 tpf*)
12383 # Don't try to run any link tests for TPF. We know it's impossible
12384 # because TPF is a cross-compiler, and we know how we open DSOs.
12385 lt_cv_dlopen=dlopen
12386 lt_cv_dlopen_libs=
12387 lt_cv_dlopen_self=no
12391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12392 if test "x$ac_cv_func_shl_load" = xyes; then :
12393 lt_cv_dlopen=shl_load
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12397 if ${ac_cv_lib_dld_shl_load+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-ldld $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char shl_load ();
12413 main ()
12415 return shl_load ();
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_dld_shl_load=yes
12422 else
12423 ac_cv_lib_dld_shl_load=no
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12431 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12432 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12433 else
12434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12435 if test "x$ac_cv_func_dlopen" = xyes; then :
12436 lt_cv_dlopen=dlopen
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12440 if ${ac_cv_lib_dl_dlopen+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-ldl $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char dlopen ();
12456 main ()
12458 return dlopen ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_dl_dlopen=yes
12465 else
12466 ac_cv_lib_dl_dlopen=no
12468 rm -f core conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12474 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12475 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12479 if ${ac_cv_lib_svld_dlopen+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_check_lib_save_LIBS=$LIBS
12483 LIBS="-lsvld $LIBS"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char dlopen ();
12495 main ()
12497 return dlopen ();
12499 return 0;
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 ac_cv_lib_svld_dlopen=yes
12504 else
12505 ac_cv_lib_svld_dlopen=no
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12514 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12518 if ${ac_cv_lib_dld_dld_link+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-ldld $LIBS"
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char dld_link ();
12534 main ()
12536 return dld_link ();
12538 return 0;
12540 _ACEOF
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 ac_cv_lib_dld_dld_link=yes
12543 else
12544 ac_cv_lib_dld_dld_link=no
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12552 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12553 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12572 esac
12574 if test no = "$lt_cv_dlopen"; then
12575 enable_dlopen=no
12576 else
12577 enable_dlopen=yes
12580 case $lt_cv_dlopen in
12581 dlopen)
12582 save_CPPFLAGS=$CPPFLAGS
12583 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12585 save_LDFLAGS=$LDFLAGS
12586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12588 save_LIBS=$LIBS
12589 LIBS="$lt_cv_dlopen_libs $LIBS"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12593 if ${lt_cv_dlopen_self+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 if test yes = "$cross_compiling"; then :
12597 lt_cv_dlopen_self=cross
12598 else
12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600 lt_status=$lt_dlunknown
12601 cat > conftest.$ac_ext <<_LT_EOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12605 #if HAVE_DLFCN_H
12606 #include <dlfcn.h>
12607 #endif
12609 #include <stdio.h>
12611 #ifdef RTLD_GLOBAL
12612 # define LT_DLGLOBAL RTLD_GLOBAL
12613 #else
12614 # ifdef DL_GLOBAL
12615 # define LT_DLGLOBAL DL_GLOBAL
12616 # else
12617 # define LT_DLGLOBAL 0
12618 # endif
12619 #endif
12621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622 find out it does not work in some platform. */
12623 #ifndef LT_DLLAZY_OR_NOW
12624 # ifdef RTLD_LAZY
12625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12626 # else
12627 # ifdef DL_LAZY
12628 # define LT_DLLAZY_OR_NOW DL_LAZY
12629 # else
12630 # ifdef RTLD_NOW
12631 # define LT_DLLAZY_OR_NOW RTLD_NOW
12632 # else
12633 # ifdef DL_NOW
12634 # define LT_DLLAZY_OR_NOW DL_NOW
12635 # else
12636 # define LT_DLLAZY_OR_NOW 0
12637 # endif
12638 # endif
12639 # endif
12640 # endif
12641 #endif
12643 /* When -fvisibility=hidden is used, assume the code has been annotated
12644 correspondingly for the symbols needed. */
12645 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12646 int fnord () __attribute__((visibility("default")));
12647 #endif
12649 int fnord () { return 42; }
12650 int main ()
12652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12653 int status = $lt_dlunknown;
12655 if (self)
12657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12658 else
12660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12661 else puts (dlerror ());
12663 /* dlclose (self); */
12665 else
12666 puts (dlerror ());
12668 return status;
12670 _LT_EOF
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12676 (./conftest; exit; ) >&5 2>/dev/null
12677 lt_status=$?
12678 case x$lt_status in
12679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12682 esac
12683 else :
12684 # compilation failed
12685 lt_cv_dlopen_self=no
12688 rm -fr conftest*
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12693 $as_echo "$lt_cv_dlopen_self" >&6; }
12695 if test yes = "$lt_cv_dlopen_self"; then
12696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12699 if ${lt_cv_dlopen_self_static+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test yes = "$cross_compiling"; then :
12703 lt_cv_dlopen_self_static=cross
12704 else
12705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12706 lt_status=$lt_dlunknown
12707 cat > conftest.$ac_ext <<_LT_EOF
12708 #line $LINENO "configure"
12709 #include "confdefs.h"
12711 #if HAVE_DLFCN_H
12712 #include <dlfcn.h>
12713 #endif
12715 #include <stdio.h>
12717 #ifdef RTLD_GLOBAL
12718 # define LT_DLGLOBAL RTLD_GLOBAL
12719 #else
12720 # ifdef DL_GLOBAL
12721 # define LT_DLGLOBAL DL_GLOBAL
12722 # else
12723 # define LT_DLGLOBAL 0
12724 # endif
12725 #endif
12727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12728 find out it does not work in some platform. */
12729 #ifndef LT_DLLAZY_OR_NOW
12730 # ifdef RTLD_LAZY
12731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12732 # else
12733 # ifdef DL_LAZY
12734 # define LT_DLLAZY_OR_NOW DL_LAZY
12735 # else
12736 # ifdef RTLD_NOW
12737 # define LT_DLLAZY_OR_NOW RTLD_NOW
12738 # else
12739 # ifdef DL_NOW
12740 # define LT_DLLAZY_OR_NOW DL_NOW
12741 # else
12742 # define LT_DLLAZY_OR_NOW 0
12743 # endif
12744 # endif
12745 # endif
12746 # endif
12747 #endif
12749 /* When -fvisibility=hidden is used, assume the code has been annotated
12750 correspondingly for the symbols needed. */
12751 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12752 int fnord () __attribute__((visibility("default")));
12753 #endif
12755 int fnord () { return 42; }
12756 int main ()
12758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12759 int status = $lt_dlunknown;
12761 if (self)
12763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12764 else
12766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12767 else puts (dlerror ());
12769 /* dlclose (self); */
12771 else
12772 puts (dlerror ());
12774 return status;
12776 _LT_EOF
12777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12778 (eval $ac_link) 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12782 (./conftest; exit; ) >&5 2>/dev/null
12783 lt_status=$?
12784 case x$lt_status in
12785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12788 esac
12789 else :
12790 # compilation failed
12791 lt_cv_dlopen_self_static=no
12794 rm -fr conftest*
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12802 CPPFLAGS=$save_CPPFLAGS
12803 LDFLAGS=$save_LDFLAGS
12804 LIBS=$save_LIBS
12806 esac
12808 case $lt_cv_dlopen_self in
12809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12810 *) enable_dlopen_self=unknown ;;
12811 esac
12813 case $lt_cv_dlopen_self_static in
12814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12815 *) enable_dlopen_self_static=unknown ;;
12816 esac
12835 striplib=
12836 old_striplib=
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844 else
12845 # FIXME - insert some real tests, host_os isn't really good enough
12846 case $host_os in
12847 darwin*)
12848 if test -n "$STRIP"; then
12849 striplib="$STRIP -x"
12850 old_striplib="$STRIP -S"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 $as_echo "yes" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12862 esac
12876 # Report what library types will actually be built
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12880 $as_echo "$can_build_shared" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12883 $as_echo_n "checking whether to build shared libraries... " >&6; }
12884 test no = "$can_build_shared" && enable_shared=no
12886 # On AIX, shared libraries and static libraries use the same namespace, and
12887 # are all built from PIC.
12888 case $host_os in
12889 aix3*)
12890 test yes = "$enable_shared" && enable_static=no
12891 if test -n "$RANLIB"; then
12892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893 postinstall_cmds='$RANLIB $lib'
12897 aix[4-9]*)
12898 if test ia64 != "$host_cpu"; then
12899 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12900 yes,aix,yes) ;; # shared object as lib.so file only
12901 yes,svr4,*) ;; # shared object as lib.so archive member only
12902 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12903 esac
12906 esac
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12908 $as_echo "$enable_shared" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12911 $as_echo_n "checking whether to build static libraries... " >&6; }
12912 # Make sure either enable_shared or enable_static is yes.
12913 test yes = "$enable_shared" || enable_static=yes
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12915 $as_echo "$enable_static" >&6; }
12921 ac_ext=c
12922 ac_cpp='$CPP $CPPFLAGS'
12923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 CC=$lt_save_CC
12943 ac_config_commands="$ac_config_commands libtool"
12948 # Only expand once:
12953 # Extract the first word of "ar", so it can be a program name with args.
12954 set dummy ar; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_path_AR+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 case $AR in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12976 done
12977 done
12978 IFS=$as_save_IFS
12980 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12982 esac
12984 AR=$ac_cv_path_AR
12985 if test -n "$AR"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12987 $as_echo "$AR" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12994 # Extract the first word of "rm", so it can be a program name with args.
12995 set dummy rm; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if ${ac_cv_path_RM+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 case $RM in
13002 [\\/]* | ?:[\\/]*)
13003 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 break 2
13017 done
13018 done
13019 IFS=$as_save_IFS
13021 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13023 esac
13025 RM=$ac_cv_path_RM
13026 if test -n "$RM"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13028 $as_echo "$RM" >&6; }
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13035 # Extract the first word of "cp", so it can be a program name with args.
13036 set dummy cp; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_CP+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 case $CP in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13062 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13064 esac
13066 CP=$ac_cv_path_CP
13067 if test -n "$CP"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13069 $as_echo "$CP" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13076 # Extract the first word of "ln", so it can be a program name with args.
13077 set dummy ln; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_path_LN+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 case $LN in
13084 [\\/]* | ?:[\\/]*)
13085 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13099 done
13100 done
13101 IFS=$as_save_IFS
13103 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13105 esac
13107 LN=$ac_cv_path_LN
13108 if test -n "$LN"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13110 $as_echo "$LN" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13117 # Extract the first word of "ls", so it can be a program name with args.
13118 set dummy ls; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_path_LS+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 case $LS in
13125 [\\/]* | ?:[\\/]*)
13126 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13144 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13146 esac
13148 LS=$ac_cv_path_LS
13149 if test -n "$LS"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13151 $as_echo "$LS" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13158 # Extract the first word of "sed", so it can be a program name with args.
13159 set dummy sed; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if ${ac_cv_path_SED+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 case $SED in
13166 [\\/]* | ?:[\\/]*)
13167 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13181 done
13182 done
13183 IFS=$as_save_IFS
13185 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13187 esac
13189 SED=$ac_cv_path_SED
13190 if test -n "$SED"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13192 $as_echo "$SED" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13199 # Extract the first word of "make", so it can be a program name with args.
13200 set dummy make; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if ${ac_cv_path_MAKE+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 case $MAKE in
13207 [\\/]* | ?:[\\/]*)
13208 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13218 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13222 done
13223 done
13224 IFS=$as_save_IFS
13227 esac
13229 MAKE=$ac_cv_path_MAKE
13230 if test -n "$MAKE"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13232 $as_echo "$MAKE" >&6; }
13233 else
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13244 $as_echo_n "checking whether NLS is requested... " >&6; }
13245 # Check whether --enable-nls was given.
13246 if test "${enable_nls+set}" = set; then :
13247 enableval=$enable_nls; USE_NLS=$enableval
13248 else
13249 USE_NLS=yes
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13253 $as_echo "$USE_NLS" >&6; }
13260 # Prepare PATH_SEPARATOR.
13261 # The user is always right.
13262 if test "${PATH_SEPARATOR+set}" != set; then
13263 echo "#! /bin/sh" >conf$$.sh
13264 echo "exit 0" >>conf$$.sh
13265 chmod +x conf$$.sh
13266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13267 PATH_SEPARATOR=';'
13268 else
13269 PATH_SEPARATOR=:
13271 rm -f conf$$.sh
13274 # Find out how to test for executable files. Don't use a zero-byte file,
13275 # as systems may use methods other than mode bits to determine executability.
13276 cat >conf$$.file <<_ASEOF
13277 #! /bin/sh
13278 exit 0
13279 _ASEOF
13280 chmod +x conf$$.file
13281 if test -x conf$$.file >/dev/null 2>&1; then
13282 ac_executable_p="test -x"
13283 else
13284 ac_executable_p="test -f"
13286 rm -f conf$$.file
13288 # Extract the first word of "msgfmt", so it can be a program name with args.
13289 set dummy msgfmt; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if ${ac_cv_path_MSGFMT+:} false; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 case "$MSGFMT" in
13296 [\\/]* | ?:[\\/]*)
13297 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13300 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13301 for ac_dir in $PATH; do
13302 IFS="$ac_save_IFS"
13303 test -z "$ac_dir" && ac_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13306 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13307 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13308 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13309 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13310 break 2
13313 done
13314 done
13315 IFS="$ac_save_IFS"
13316 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13318 esac
13320 MSGFMT="$ac_cv_path_MSGFMT"
13321 if test "$MSGFMT" != ":"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13323 $as_echo "$MSGFMT" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13330 set dummy gmsgfmt; ac_word=$2
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332 $as_echo_n "checking for $ac_word... " >&6; }
13333 if ${ac_cv_path_GMSGFMT+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 case $GMSGFMT in
13337 [\\/]* | ?:[\\/]*)
13338 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13348 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 break 2
13352 done
13353 done
13354 IFS=$as_save_IFS
13356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13358 esac
13360 GMSGFMT=$ac_cv_path_GMSGFMT
13361 if test -n "$GMSGFMT"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13363 $as_echo "$GMSGFMT" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13371 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13372 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13373 *) MSGFMT_015=$MSGFMT ;;
13374 esac
13376 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13377 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13378 *) GMSGFMT_015=$GMSGFMT ;;
13379 esac
13383 # Prepare PATH_SEPARATOR.
13384 # The user is always right.
13385 if test "${PATH_SEPARATOR+set}" != set; then
13386 echo "#! /bin/sh" >conf$$.sh
13387 echo "exit 0" >>conf$$.sh
13388 chmod +x conf$$.sh
13389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13390 PATH_SEPARATOR=';'
13391 else
13392 PATH_SEPARATOR=:
13394 rm -f conf$$.sh
13397 # Find out how to test for executable files. Don't use a zero-byte file,
13398 # as systems may use methods other than mode bits to determine executability.
13399 cat >conf$$.file <<_ASEOF
13400 #! /bin/sh
13401 exit 0
13402 _ASEOF
13403 chmod +x conf$$.file
13404 if test -x conf$$.file >/dev/null 2>&1; then
13405 ac_executable_p="test -x"
13406 else
13407 ac_executable_p="test -f"
13409 rm -f conf$$.file
13411 # Extract the first word of "xgettext", so it can be a program name with args.
13412 set dummy xgettext; ac_word=$2
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13414 $as_echo_n "checking for $ac_word... " >&6; }
13415 if ${ac_cv_path_XGETTEXT+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 case "$XGETTEXT" in
13419 [\\/]* | ?:[\\/]*)
13420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13423 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13424 for ac_dir in $PATH; do
13425 IFS="$ac_save_IFS"
13426 test -z "$ac_dir" && ac_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13429 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13430 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13431 (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
13432 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13433 break 2
13436 done
13437 done
13438 IFS="$ac_save_IFS"
13439 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13441 esac
13443 XGETTEXT="$ac_cv_path_XGETTEXT"
13444 if test "$XGETTEXT" != ":"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13446 $as_echo "$XGETTEXT" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13452 rm -f messages.po
13454 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13455 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13456 *) XGETTEXT_015=$XGETTEXT ;;
13457 esac
13461 # Prepare PATH_SEPARATOR.
13462 # The user is always right.
13463 if test "${PATH_SEPARATOR+set}" != set; then
13464 echo "#! /bin/sh" >conf$$.sh
13465 echo "exit 0" >>conf$$.sh
13466 chmod +x conf$$.sh
13467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13468 PATH_SEPARATOR=';'
13469 else
13470 PATH_SEPARATOR=:
13472 rm -f conf$$.sh
13475 # Find out how to test for executable files. Don't use a zero-byte file,
13476 # as systems may use methods other than mode bits to determine executability.
13477 cat >conf$$.file <<_ASEOF
13478 #! /bin/sh
13479 exit 0
13480 _ASEOF
13481 chmod +x conf$$.file
13482 if test -x conf$$.file >/dev/null 2>&1; then
13483 ac_executable_p="test -x"
13484 else
13485 ac_executable_p="test -f"
13487 rm -f conf$$.file
13489 # Extract the first word of "msgmerge", so it can be a program name with args.
13490 set dummy msgmerge; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_MSGMERGE+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 case "$MSGMERGE" in
13497 [\\/]* | ?:[\\/]*)
13498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13502 for ac_dir in $PATH; do
13503 IFS="$ac_save_IFS"
13504 test -z "$ac_dir" && ac_dir=.
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13510 break 2
13513 done
13514 done
13515 IFS="$ac_save_IFS"
13516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13518 esac
13520 MSGMERGE="$ac_cv_path_MSGMERGE"
13521 if test "$MSGMERGE" != ":"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13523 $as_echo "$MSGMERGE" >&6; }
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13530 test -n "$localedir" || localedir='${datadir}/locale'
13533 ac_config_commands="$ac_config_commands po-directories"
13537 if test "X$prefix" = "XNONE"; then
13538 acl_final_prefix="$ac_default_prefix"
13539 else
13540 acl_final_prefix="$prefix"
13542 if test "X$exec_prefix" = "XNONE"; then
13543 acl_final_exec_prefix='${prefix}'
13544 else
13545 acl_final_exec_prefix="$exec_prefix"
13547 acl_save_prefix="$prefix"
13548 prefix="$acl_final_prefix"
13549 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13550 prefix="$acl_save_prefix"
13553 # Check whether --with-gnu-ld was given.
13554 if test "${with_gnu_ld+set}" = set; then :
13555 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13556 else
13557 with_gnu_ld=no
13560 # Prepare PATH_SEPARATOR.
13561 # The user is always right.
13562 if test "${PATH_SEPARATOR+set}" != set; then
13563 echo "#! /bin/sh" >conf$$.sh
13564 echo "exit 0" >>conf$$.sh
13565 chmod +x conf$$.sh
13566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13567 PATH_SEPARATOR=';'
13568 else
13569 PATH_SEPARATOR=:
13571 rm -f conf$$.sh
13573 ac_prog=ld
13574 if test "$GCC" = yes; then
13575 # Check if gcc -print-prog-name=ld gives a path.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13577 $as_echo_n "checking for ld used by GCC... " >&6; }
13578 case $host in
13579 *-*-mingw*)
13580 # gcc leaves a trailing carriage return which upsets mingw
13581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13584 esac
13585 case $ac_prog in
13586 # Accept absolute paths.
13587 [\\/]* | [A-Za-z]:[\\/]*)
13588 re_direlt='/[^/][^/]*/\.\./'
13589 # Canonicalize the path of ld
13590 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13591 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13592 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13593 done
13594 test -z "$LD" && LD="$ac_prog"
13597 # If it fails, then pretend we aren't using GCC.
13598 ac_prog=ld
13601 # If it is relative, then search for the first ld in PATH.
13602 with_gnu_ld=unknown
13604 esac
13605 elif test "$with_gnu_ld" = yes; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13607 $as_echo_n "checking for GNU ld... " >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13610 $as_echo_n "checking for non-GNU ld... " >&6; }
13612 if ${acl_cv_path_LD+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -z "$LD"; then
13616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13617 for ac_dir in $PATH; do
13618 test -z "$ac_dir" && ac_dir=.
13619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13620 acl_cv_path_LD="$ac_dir/$ac_prog"
13621 # Check to see if the program is GNU ld. I'd rather use --version,
13622 # but apparently some GNU ld's only accept -v.
13623 # Break only if it was the GNU/non-GNU ld that we prefer.
13624 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13625 *GNU* | *'with BFD'*)
13626 test "$with_gnu_ld" != no && break ;;
13628 test "$with_gnu_ld" != yes && break ;;
13629 esac
13631 done
13632 IFS="$ac_save_ifs"
13633 else
13634 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13638 LD="$acl_cv_path_LD"
13639 if test -n "$LD"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13641 $as_echo "$LD" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13646 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13649 if ${acl_cv_prog_gnu_ld+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13653 case `$LD -v 2>&1 </dev/null` in
13654 *GNU* | *'with BFD'*)
13655 acl_cv_prog_gnu_ld=yes ;;
13657 acl_cv_prog_gnu_ld=no ;;
13658 esac
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13661 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13662 with_gnu_ld=$acl_cv_prog_gnu_ld
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13668 $as_echo_n "checking for shared library run path origin... " >&6; }
13669 if ${acl_cv_rpath+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13673 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13674 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13675 . ./conftest.sh
13676 rm -f ./conftest.sh
13677 acl_cv_rpath=done
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13681 $as_echo "$acl_cv_rpath" >&6; }
13682 wl="$acl_cv_wl"
13683 libext="$acl_cv_libext"
13684 shlibext="$acl_cv_shlibext"
13685 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13686 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13687 hardcode_direct="$acl_cv_hardcode_direct"
13688 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13689 # Check whether --enable-rpath was given.
13690 if test "${enable_rpath+set}" = set; then :
13691 enableval=$enable_rpath; :
13692 else
13693 enable_rpath=yes
13698 acl_libdirstem=lib
13699 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13700 if test -n "$searchpath"; then
13701 acl_save_IFS="${IFS= }"; IFS=":"
13702 for searchdir in $searchpath; do
13703 if test -d "$searchdir"; then
13704 case "$searchdir" in
13705 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13706 *) searchdir=`cd "$searchdir" && pwd`
13707 case "$searchdir" in
13708 */lib64 ) acl_libdirstem=lib64 ;;
13709 esac ;;
13710 esac
13712 done
13713 IFS="$acl_save_IFS"
13723 use_additional=yes
13725 acl_save_prefix="$prefix"
13726 prefix="$acl_final_prefix"
13727 acl_save_exec_prefix="$exec_prefix"
13728 exec_prefix="$acl_final_exec_prefix"
13730 eval additional_includedir=\"$includedir\"
13731 eval additional_libdir=\"$libdir\"
13733 exec_prefix="$acl_save_exec_prefix"
13734 prefix="$acl_save_prefix"
13737 # Check whether --with-libiconv-prefix was given.
13738 if test "${with_libiconv_prefix+set}" = set; then :
13739 withval=$with_libiconv_prefix;
13740 if test "X$withval" = "Xno"; then
13741 use_additional=no
13742 else
13743 if test "X$withval" = "X"; then
13745 acl_save_prefix="$prefix"
13746 prefix="$acl_final_prefix"
13747 acl_save_exec_prefix="$exec_prefix"
13748 exec_prefix="$acl_final_exec_prefix"
13750 eval additional_includedir=\"$includedir\"
13751 eval additional_libdir=\"$libdir\"
13753 exec_prefix="$acl_save_exec_prefix"
13754 prefix="$acl_save_prefix"
13756 else
13757 additional_includedir="$withval/include"
13758 additional_libdir="$withval/$acl_libdirstem"
13764 LIBICONV=
13765 LTLIBICONV=
13766 INCICONV=
13767 rpathdirs=
13768 ltrpathdirs=
13769 names_already_handled=
13770 names_next_round='iconv '
13771 while test -n "$names_next_round"; do
13772 names_this_round="$names_next_round"
13773 names_next_round=
13774 for name in $names_this_round; do
13775 already_handled=
13776 for n in $names_already_handled; do
13777 if test "$n" = "$name"; then
13778 already_handled=yes
13779 break
13781 done
13782 if test -z "$already_handled"; then
13783 names_already_handled="$names_already_handled $name"
13784 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13785 eval value=\"\$HAVE_LIB$uppername\"
13786 if test -n "$value"; then
13787 if test "$value" = yes; then
13788 eval value=\"\$LIB$uppername\"
13789 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13790 eval value=\"\$LTLIB$uppername\"
13791 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13792 else
13795 else
13796 found_dir=
13797 found_la=
13798 found_so=
13799 found_a=
13800 if test $use_additional = yes; then
13801 if test -n "$shlibext" \
13802 && { test -f "$additional_libdir/lib$name.$shlibext" \
13803 || { test "$shlibext" = dll \
13804 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13805 found_dir="$additional_libdir"
13806 if test -f "$additional_libdir/lib$name.$shlibext"; then
13807 found_so="$additional_libdir/lib$name.$shlibext"
13808 else
13809 found_so="$additional_libdir/lib$name.dll.a"
13811 if test -f "$additional_libdir/lib$name.la"; then
13812 found_la="$additional_libdir/lib$name.la"
13814 else
13815 if test -f "$additional_libdir/lib$name.$libext"; then
13816 found_dir="$additional_libdir"
13817 found_a="$additional_libdir/lib$name.$libext"
13818 if test -f "$additional_libdir/lib$name.la"; then
13819 found_la="$additional_libdir/lib$name.la"
13824 if test "X$found_dir" = "X"; then
13825 for x in $LDFLAGS $LTLIBICONV; do
13827 acl_save_prefix="$prefix"
13828 prefix="$acl_final_prefix"
13829 acl_save_exec_prefix="$exec_prefix"
13830 exec_prefix="$acl_final_exec_prefix"
13831 eval x=\"$x\"
13832 exec_prefix="$acl_save_exec_prefix"
13833 prefix="$acl_save_prefix"
13835 case "$x" in
13836 -L*)
13837 dir=`echo "X$x" | sed -e 's/^X-L//'`
13838 if test -n "$shlibext" \
13839 && { test -f "$dir/lib$name.$shlibext" \
13840 || { test "$shlibext" = dll \
13841 && test -f "$dir/lib$name.dll.a"; }; }; then
13842 found_dir="$dir"
13843 if test -f "$dir/lib$name.$shlibext"; then
13844 found_so="$dir/lib$name.$shlibext"
13845 else
13846 found_so="$dir/lib$name.dll.a"
13848 if test -f "$dir/lib$name.la"; then
13849 found_la="$dir/lib$name.la"
13851 else
13852 if test -f "$dir/lib$name.$libext"; then
13853 found_dir="$dir"
13854 found_a="$dir/lib$name.$libext"
13855 if test -f "$dir/lib$name.la"; then
13856 found_la="$dir/lib$name.la"
13861 esac
13862 if test "X$found_dir" != "X"; then
13863 break
13865 done
13867 if test "X$found_dir" != "X"; then
13868 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13869 if test "X$found_so" != "X"; then
13870 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13872 else
13873 haveit=
13874 for x in $ltrpathdirs; do
13875 if test "X$x" = "X$found_dir"; then
13876 haveit=yes
13877 break
13879 done
13880 if test -z "$haveit"; then
13881 ltrpathdirs="$ltrpathdirs $found_dir"
13883 if test "$hardcode_direct" = yes; then
13884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13885 else
13886 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13887 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13888 haveit=
13889 for x in $rpathdirs; do
13890 if test "X$x" = "X$found_dir"; then
13891 haveit=yes
13892 break
13894 done
13895 if test -z "$haveit"; then
13896 rpathdirs="$rpathdirs $found_dir"
13898 else
13899 haveit=
13900 for x in $LDFLAGS $LIBICONV; do
13902 acl_save_prefix="$prefix"
13903 prefix="$acl_final_prefix"
13904 acl_save_exec_prefix="$exec_prefix"
13905 exec_prefix="$acl_final_exec_prefix"
13906 eval x=\"$x\"
13907 exec_prefix="$acl_save_exec_prefix"
13908 prefix="$acl_save_prefix"
13910 if test "X$x" = "X-L$found_dir"; then
13911 haveit=yes
13912 break
13914 done
13915 if test -z "$haveit"; then
13916 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13918 if test "$hardcode_minus_L" != no; then
13919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13920 else
13921 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13926 else
13927 if test "X$found_a" != "X"; then
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13929 else
13930 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13933 additional_includedir=
13934 case "$found_dir" in
13935 */$acl_libdirstem | */$acl_libdirstem/)
13936 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13937 additional_includedir="$basedir/include"
13939 esac
13940 if test "X$additional_includedir" != "X"; then
13941 if test "X$additional_includedir" != "X/usr/include"; then
13942 haveit=
13943 if test "X$additional_includedir" = "X/usr/local/include"; then
13944 if test -n "$GCC"; then
13945 case $host_os in
13946 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13947 esac
13950 if test -z "$haveit"; then
13951 for x in $CPPFLAGS $INCICONV; do
13953 acl_save_prefix="$prefix"
13954 prefix="$acl_final_prefix"
13955 acl_save_exec_prefix="$exec_prefix"
13956 exec_prefix="$acl_final_exec_prefix"
13957 eval x=\"$x\"
13958 exec_prefix="$acl_save_exec_prefix"
13959 prefix="$acl_save_prefix"
13961 if test "X$x" = "X-I$additional_includedir"; then
13962 haveit=yes
13963 break
13965 done
13966 if test -z "$haveit"; then
13967 if test -d "$additional_includedir"; then
13968 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13974 if test -n "$found_la"; then
13975 save_libdir="$libdir"
13976 case "$found_la" in
13977 */* | *\\*) . "$found_la" ;;
13978 *) . "./$found_la" ;;
13979 esac
13980 libdir="$save_libdir"
13981 for dep in $dependency_libs; do
13982 case "$dep" in
13983 -L*)
13984 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13985 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13986 haveit=
13987 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13988 if test -n "$GCC"; then
13989 case $host_os in
13990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13991 esac
13994 if test -z "$haveit"; then
13995 haveit=
13996 for x in $LDFLAGS $LIBICONV; do
13998 acl_save_prefix="$prefix"
13999 prefix="$acl_final_prefix"
14000 acl_save_exec_prefix="$exec_prefix"
14001 exec_prefix="$acl_final_exec_prefix"
14002 eval x=\"$x\"
14003 exec_prefix="$acl_save_exec_prefix"
14004 prefix="$acl_save_prefix"
14006 if test "X$x" = "X-L$additional_libdir"; then
14007 haveit=yes
14008 break
14010 done
14011 if test -z "$haveit"; then
14012 if test -d "$additional_libdir"; then
14013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14016 haveit=
14017 for x in $LDFLAGS $LTLIBICONV; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14023 eval x=\"$x\"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14027 if test "X$x" = "X-L$additional_libdir"; then
14028 haveit=yes
14029 break
14031 done
14032 if test -z "$haveit"; then
14033 if test -d "$additional_libdir"; then
14034 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14040 -R*)
14041 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14042 if test "$enable_rpath" != no; then
14043 haveit=
14044 for x in $rpathdirs; do
14045 if test "X$x" = "X$dir"; then
14046 haveit=yes
14047 break
14049 done
14050 if test -z "$haveit"; then
14051 rpathdirs="$rpathdirs $dir"
14053 haveit=
14054 for x in $ltrpathdirs; do
14055 if test "X$x" = "X$dir"; then
14056 haveit=yes
14057 break
14059 done
14060 if test -z "$haveit"; then
14061 ltrpathdirs="$ltrpathdirs $dir"
14065 -l*)
14066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14068 *.la)
14069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14072 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14075 esac
14076 done
14078 else
14079 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14084 done
14085 done
14086 if test "X$rpathdirs" != "X"; then
14087 if test -n "$hardcode_libdir_separator"; then
14088 alldirs=
14089 for found_dir in $rpathdirs; do
14090 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14091 done
14092 acl_save_libdir="$libdir"
14093 libdir="$alldirs"
14094 eval flag=\"$hardcode_libdir_flag_spec\"
14095 libdir="$acl_save_libdir"
14096 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14097 else
14098 for found_dir in $rpathdirs; do
14099 acl_save_libdir="$libdir"
14100 libdir="$found_dir"
14101 eval flag=\"$hardcode_libdir_flag_spec\"
14102 libdir="$acl_save_libdir"
14103 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14104 done
14107 if test "X$ltrpathdirs" != "X"; then
14108 for found_dir in $ltrpathdirs; do
14109 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14110 done
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14138 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14139 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 gt_save_LIBS="$LIBS"
14143 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <CoreFoundation/CFPreferences.h>
14148 main ()
14150 CFPreferencesCopyAppValue(NULL, NULL)
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 gt_cv_func_CFPreferencesCopyAppValue=yes
14157 else
14158 gt_cv_func_CFPreferencesCopyAppValue=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS="$gt_save_LIBS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14165 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14166 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14168 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14172 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14173 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 gt_save_LIBS="$LIBS"
14177 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #include <CoreFoundation/CFLocale.h>
14182 main ()
14184 CFLocaleCopyCurrent();
14186 return 0;
14188 _ACEOF
14189 if ac_fn_c_try_link "$LINENO"; then :
14190 gt_cv_func_CFLocaleCopyCurrent=yes
14191 else
14192 gt_cv_func_CFLocaleCopyCurrent=no
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS="$gt_save_LIBS"
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14199 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14200 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14202 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14205 INTL_MACOSX_LIBS=
14206 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14207 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14215 LIBINTL=
14216 LTLIBINTL=
14217 POSUB=
14219 case " $gt_needs " in
14220 *" need-formatstring-macros "*) gt_api_version=3 ;;
14221 *" need-ngettext "*) gt_api_version=2 ;;
14222 *) gt_api_version=1 ;;
14223 esac
14224 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14225 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14227 if test "$USE_NLS" = "yes"; then
14228 gt_use_preinstalled_gnugettext=no
14231 if test $gt_api_version -ge 3; then
14232 gt_revision_test_code='
14233 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14234 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14235 #endif
14236 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14238 else
14239 gt_revision_test_code=
14241 if test $gt_api_version -ge 2; then
14242 gt_expression_test_code=' + * ngettext ("", "", 0)'
14243 else
14244 gt_expression_test_code=
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14248 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14249 if eval \${$gt_func_gnugettext_libc+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 #include <libintl.h>
14255 $gt_revision_test_code
14256 extern int _nl_msg_cat_cntr;
14257 extern int *_nl_domain_bindings;
14259 main ()
14261 bindtextdomain ("", "");
14262 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14264 return 0;
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 eval "$gt_func_gnugettext_libc=yes"
14269 else
14270 eval "$gt_func_gnugettext_libc=no"
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14275 eval ac_res=\$$gt_func_gnugettext_libc
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14277 $as_echo "$ac_res" >&6; }
14279 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14285 am_save_CPPFLAGS="$CPPFLAGS"
14287 for element in $INCICONV; do
14288 haveit=
14289 for x in $CPPFLAGS; do
14291 acl_save_prefix="$prefix"
14292 prefix="$acl_final_prefix"
14293 acl_save_exec_prefix="$exec_prefix"
14294 exec_prefix="$acl_final_exec_prefix"
14295 eval x=\"$x\"
14296 exec_prefix="$acl_save_exec_prefix"
14297 prefix="$acl_save_prefix"
14299 if test "X$x" = "X$element"; then
14300 haveit=yes
14301 break
14303 done
14304 if test -z "$haveit"; then
14305 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14307 done
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14311 $as_echo_n "checking for iconv... " >&6; }
14312 if ${am_cv_func_iconv+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14316 am_cv_func_iconv="no, consider installing GNU libiconv"
14317 am_cv_lib_iconv=no
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320 #include <stdlib.h>
14321 #include <iconv.h>
14323 main ()
14325 iconv_t cd = iconv_open("","");
14326 iconv(cd,NULL,NULL,NULL,NULL);
14327 iconv_close(cd);
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 am_cv_func_iconv=yes
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 if test "$am_cv_func_iconv" != yes; then
14338 am_save_LIBS="$LIBS"
14339 LIBS="$LIBS $LIBICONV"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 #include <stdlib.h>
14343 #include <iconv.h>
14345 main ()
14347 iconv_t cd = iconv_open("","");
14348 iconv(cd,NULL,NULL,NULL,NULL);
14349 iconv_close(cd);
14351 return 0;
14353 _ACEOF
14354 if ac_fn_c_try_link "$LINENO"; then :
14355 am_cv_lib_iconv=yes
14356 am_cv_func_iconv=yes
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS="$am_save_LIBS"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14365 $as_echo "$am_cv_func_iconv" >&6; }
14366 if test "$am_cv_func_iconv" = yes; then
14368 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14371 if test "$am_cv_lib_iconv" = yes; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14373 $as_echo_n "checking how to link with libiconv... " >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14375 $as_echo "$LIBICONV" >&6; }
14376 else
14377 CPPFLAGS="$am_save_CPPFLAGS"
14378 LIBICONV=
14379 LTLIBICONV=
14388 use_additional=yes
14390 acl_save_prefix="$prefix"
14391 prefix="$acl_final_prefix"
14392 acl_save_exec_prefix="$exec_prefix"
14393 exec_prefix="$acl_final_exec_prefix"
14395 eval additional_includedir=\"$includedir\"
14396 eval additional_libdir=\"$libdir\"
14398 exec_prefix="$acl_save_exec_prefix"
14399 prefix="$acl_save_prefix"
14402 # Check whether --with-libintl-prefix was given.
14403 if test "${with_libintl_prefix+set}" = set; then :
14404 withval=$with_libintl_prefix;
14405 if test "X$withval" = "Xno"; then
14406 use_additional=no
14407 else
14408 if test "X$withval" = "X"; then
14410 acl_save_prefix="$prefix"
14411 prefix="$acl_final_prefix"
14412 acl_save_exec_prefix="$exec_prefix"
14413 exec_prefix="$acl_final_exec_prefix"
14415 eval additional_includedir=\"$includedir\"
14416 eval additional_libdir=\"$libdir\"
14418 exec_prefix="$acl_save_exec_prefix"
14419 prefix="$acl_save_prefix"
14421 else
14422 additional_includedir="$withval/include"
14423 additional_libdir="$withval/$acl_libdirstem"
14429 LIBINTL=
14430 LTLIBINTL=
14431 INCINTL=
14432 rpathdirs=
14433 ltrpathdirs=
14434 names_already_handled=
14435 names_next_round='intl '
14436 while test -n "$names_next_round"; do
14437 names_this_round="$names_next_round"
14438 names_next_round=
14439 for name in $names_this_round; do
14440 already_handled=
14441 for n in $names_already_handled; do
14442 if test "$n" = "$name"; then
14443 already_handled=yes
14444 break
14446 done
14447 if test -z "$already_handled"; then
14448 names_already_handled="$names_already_handled $name"
14449 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14450 eval value=\"\$HAVE_LIB$uppername\"
14451 if test -n "$value"; then
14452 if test "$value" = yes; then
14453 eval value=\"\$LIB$uppername\"
14454 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14455 eval value=\"\$LTLIB$uppername\"
14456 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14457 else
14460 else
14461 found_dir=
14462 found_la=
14463 found_so=
14464 found_a=
14465 if test $use_additional = yes; then
14466 if test -n "$shlibext" \
14467 && { test -f "$additional_libdir/lib$name.$shlibext" \
14468 || { test "$shlibext" = dll \
14469 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14470 found_dir="$additional_libdir"
14471 if test -f "$additional_libdir/lib$name.$shlibext"; then
14472 found_so="$additional_libdir/lib$name.$shlibext"
14473 else
14474 found_so="$additional_libdir/lib$name.dll.a"
14476 if test -f "$additional_libdir/lib$name.la"; then
14477 found_la="$additional_libdir/lib$name.la"
14479 else
14480 if test -f "$additional_libdir/lib$name.$libext"; then
14481 found_dir="$additional_libdir"
14482 found_a="$additional_libdir/lib$name.$libext"
14483 if test -f "$additional_libdir/lib$name.la"; then
14484 found_la="$additional_libdir/lib$name.la"
14489 if test "X$found_dir" = "X"; then
14490 for x in $LDFLAGS $LTLIBINTL; do
14492 acl_save_prefix="$prefix"
14493 prefix="$acl_final_prefix"
14494 acl_save_exec_prefix="$exec_prefix"
14495 exec_prefix="$acl_final_exec_prefix"
14496 eval x=\"$x\"
14497 exec_prefix="$acl_save_exec_prefix"
14498 prefix="$acl_save_prefix"
14500 case "$x" in
14501 -L*)
14502 dir=`echo "X$x" | sed -e 's/^X-L//'`
14503 if test -n "$shlibext" \
14504 && { test -f "$dir/lib$name.$shlibext" \
14505 || { test "$shlibext" = dll \
14506 && test -f "$dir/lib$name.dll.a"; }; }; then
14507 found_dir="$dir"
14508 if test -f "$dir/lib$name.$shlibext"; then
14509 found_so="$dir/lib$name.$shlibext"
14510 else
14511 found_so="$dir/lib$name.dll.a"
14513 if test -f "$dir/lib$name.la"; then
14514 found_la="$dir/lib$name.la"
14516 else
14517 if test -f "$dir/lib$name.$libext"; then
14518 found_dir="$dir"
14519 found_a="$dir/lib$name.$libext"
14520 if test -f "$dir/lib$name.la"; then
14521 found_la="$dir/lib$name.la"
14526 esac
14527 if test "X$found_dir" != "X"; then
14528 break
14530 done
14532 if test "X$found_dir" != "X"; then
14533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14534 if test "X$found_so" != "X"; then
14535 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14537 else
14538 haveit=
14539 for x in $ltrpathdirs; do
14540 if test "X$x" = "X$found_dir"; then
14541 haveit=yes
14542 break
14544 done
14545 if test -z "$haveit"; then
14546 ltrpathdirs="$ltrpathdirs $found_dir"
14548 if test "$hardcode_direct" = yes; then
14549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14550 else
14551 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14553 haveit=
14554 for x in $rpathdirs; do
14555 if test "X$x" = "X$found_dir"; then
14556 haveit=yes
14557 break
14559 done
14560 if test -z "$haveit"; then
14561 rpathdirs="$rpathdirs $found_dir"
14563 else
14564 haveit=
14565 for x in $LDFLAGS $LIBINTL; do
14567 acl_save_prefix="$prefix"
14568 prefix="$acl_final_prefix"
14569 acl_save_exec_prefix="$exec_prefix"
14570 exec_prefix="$acl_final_exec_prefix"
14571 eval x=\"$x\"
14572 exec_prefix="$acl_save_exec_prefix"
14573 prefix="$acl_save_prefix"
14575 if test "X$x" = "X-L$found_dir"; then
14576 haveit=yes
14577 break
14579 done
14580 if test -z "$haveit"; then
14581 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14583 if test "$hardcode_minus_L" != no; then
14584 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14585 else
14586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14591 else
14592 if test "X$found_a" != "X"; then
14593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14594 else
14595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14598 additional_includedir=
14599 case "$found_dir" in
14600 */$acl_libdirstem | */$acl_libdirstem/)
14601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14602 additional_includedir="$basedir/include"
14604 esac
14605 if test "X$additional_includedir" != "X"; then
14606 if test "X$additional_includedir" != "X/usr/include"; then
14607 haveit=
14608 if test "X$additional_includedir" = "X/usr/local/include"; then
14609 if test -n "$GCC"; then
14610 case $host_os in
14611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14612 esac
14615 if test -z "$haveit"; then
14616 for x in $CPPFLAGS $INCINTL; do
14618 acl_save_prefix="$prefix"
14619 prefix="$acl_final_prefix"
14620 acl_save_exec_prefix="$exec_prefix"
14621 exec_prefix="$acl_final_exec_prefix"
14622 eval x=\"$x\"
14623 exec_prefix="$acl_save_exec_prefix"
14624 prefix="$acl_save_prefix"
14626 if test "X$x" = "X-I$additional_includedir"; then
14627 haveit=yes
14628 break
14630 done
14631 if test -z "$haveit"; then
14632 if test -d "$additional_includedir"; then
14633 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14639 if test -n "$found_la"; then
14640 save_libdir="$libdir"
14641 case "$found_la" in
14642 */* | *\\*) . "$found_la" ;;
14643 *) . "./$found_la" ;;
14644 esac
14645 libdir="$save_libdir"
14646 for dep in $dependency_libs; do
14647 case "$dep" in
14648 -L*)
14649 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14650 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14651 haveit=
14652 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14653 if test -n "$GCC"; then
14654 case $host_os in
14655 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14656 esac
14659 if test -z "$haveit"; then
14660 haveit=
14661 for x in $LDFLAGS $LIBINTL; do
14663 acl_save_prefix="$prefix"
14664 prefix="$acl_final_prefix"
14665 acl_save_exec_prefix="$exec_prefix"
14666 exec_prefix="$acl_final_exec_prefix"
14667 eval x=\"$x\"
14668 exec_prefix="$acl_save_exec_prefix"
14669 prefix="$acl_save_prefix"
14671 if test "X$x" = "X-L$additional_libdir"; then
14672 haveit=yes
14673 break
14675 done
14676 if test -z "$haveit"; then
14677 if test -d "$additional_libdir"; then
14678 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14681 haveit=
14682 for x in $LDFLAGS $LTLIBINTL; do
14684 acl_save_prefix="$prefix"
14685 prefix="$acl_final_prefix"
14686 acl_save_exec_prefix="$exec_prefix"
14687 exec_prefix="$acl_final_exec_prefix"
14688 eval x=\"$x\"
14689 exec_prefix="$acl_save_exec_prefix"
14690 prefix="$acl_save_prefix"
14692 if test "X$x" = "X-L$additional_libdir"; then
14693 haveit=yes
14694 break
14696 done
14697 if test -z "$haveit"; then
14698 if test -d "$additional_libdir"; then
14699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14705 -R*)
14706 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14707 if test "$enable_rpath" != no; then
14708 haveit=
14709 for x in $rpathdirs; do
14710 if test "X$x" = "X$dir"; then
14711 haveit=yes
14712 break
14714 done
14715 if test -z "$haveit"; then
14716 rpathdirs="$rpathdirs $dir"
14718 haveit=
14719 for x in $ltrpathdirs; do
14720 if test "X$x" = "X$dir"; then
14721 haveit=yes
14722 break
14724 done
14725 if test -z "$haveit"; then
14726 ltrpathdirs="$ltrpathdirs $dir"
14730 -l*)
14731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14733 *.la)
14734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14737 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14740 esac
14741 done
14743 else
14744 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14745 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14749 done
14750 done
14751 if test "X$rpathdirs" != "X"; then
14752 if test -n "$hardcode_libdir_separator"; then
14753 alldirs=
14754 for found_dir in $rpathdirs; do
14755 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14756 done
14757 acl_save_libdir="$libdir"
14758 libdir="$alldirs"
14759 eval flag=\"$hardcode_libdir_flag_spec\"
14760 libdir="$acl_save_libdir"
14761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14762 else
14763 for found_dir in $rpathdirs; do
14764 acl_save_libdir="$libdir"
14765 libdir="$found_dir"
14766 eval flag=\"$hardcode_libdir_flag_spec\"
14767 libdir="$acl_save_libdir"
14768 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14769 done
14772 if test "X$ltrpathdirs" != "X"; then
14773 for found_dir in $ltrpathdirs; do
14774 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14775 done
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14779 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14780 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14783 gt_save_CPPFLAGS="$CPPFLAGS"
14784 CPPFLAGS="$CPPFLAGS $INCINTL"
14785 gt_save_LIBS="$LIBS"
14786 LIBS="$LIBS $LIBINTL"
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 #include <libintl.h>
14790 $gt_revision_test_code
14791 extern int _nl_msg_cat_cntr;
14792 extern
14793 #ifdef __cplusplus
14795 #endif
14796 const char *_nl_expand_alias (const char *);
14798 main ()
14800 bindtextdomain ("", "");
14801 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14803 return 0;
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 eval "$gt_func_gnugettext_libintl=yes"
14808 else
14809 eval "$gt_func_gnugettext_libintl=no"
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14814 LIBS="$LIBS $LIBICONV"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 #include <libintl.h>
14818 $gt_revision_test_code
14819 extern int _nl_msg_cat_cntr;
14820 extern
14821 #ifdef __cplusplus
14823 #endif
14824 const char *_nl_expand_alias (const char *);
14826 main ()
14828 bindtextdomain ("", "");
14829 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14831 return 0;
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835 LIBINTL="$LIBINTL $LIBICONV"
14836 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14837 eval "$gt_func_gnugettext_libintl=yes"
14840 rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14843 CPPFLAGS="$gt_save_CPPFLAGS"
14844 LIBS="$gt_save_LIBS"
14846 eval ac_res=\$$gt_func_gnugettext_libintl
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14848 $as_echo "$ac_res" >&6; }
14851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14852 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14853 && test "$PACKAGE" != gettext-runtime \
14854 && test "$PACKAGE" != gettext-tools; }; then
14855 gt_use_preinstalled_gnugettext=yes
14856 else
14857 LIBINTL=
14858 LTLIBINTL=
14859 INCINTL=
14864 if test -n "$INTL_MACOSX_LIBS"; then
14865 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14866 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14867 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14868 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14872 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14873 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14875 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14877 else
14878 USE_NLS=no
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14883 $as_echo_n "checking whether to use NLS... " >&6; }
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14885 $as_echo "$USE_NLS" >&6; }
14886 if test "$USE_NLS" = "yes"; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14888 $as_echo_n "checking where the gettext function comes from... " >&6; }
14889 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14890 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14891 gt_source="external libintl"
14892 else
14893 gt_source="libc"
14895 else
14896 gt_source="included intl directory"
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14899 $as_echo "$gt_source" >&6; }
14902 if test "$USE_NLS" = "yes"; then
14904 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14905 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14907 $as_echo_n "checking how to link with libintl... " >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14909 $as_echo "$LIBINTL" >&6; }
14911 for element in $INCINTL; do
14912 haveit=
14913 for x in $CPPFLAGS; do
14915 acl_save_prefix="$prefix"
14916 prefix="$acl_final_prefix"
14917 acl_save_exec_prefix="$exec_prefix"
14918 exec_prefix="$acl_final_exec_prefix"
14919 eval x=\"$x\"
14920 exec_prefix="$acl_save_exec_prefix"
14921 prefix="$acl_save_prefix"
14923 if test "X$x" = "X$element"; then
14924 haveit=yes
14925 break
14927 done
14928 if test -z "$haveit"; then
14929 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14931 done
14936 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14939 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14943 POSUB=po
14948 INTLLIBS="$LIBINTL"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14957 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14958 # Check whether --enable-dmalloc was given.
14959 if test "${enable_dmalloc+set}" = set; then :
14960 enableval=$enable_dmalloc;
14963 if test x$enable_dmalloc = "xyes" ; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14965 $as_echo "yes" >&6; }
14966 else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14972 # Check whether --with-dmalloc-dir was given.
14973 if test "${with_dmalloc_dir+set}" = set; then :
14974 withval=$with_dmalloc_dir;
14975 if test "x$withval" != "xno" ; then
14976 enable_dmalloc = "yes"
14977 CPPFLAGS="$CPPFLAGS -I${withval}"
14978 LDFLAGS="$LDFLAGS -L${withval}"
14984 if test x$enable_dmalloc = "xyes" ; then
14986 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14990 ALPINE_datestamp=`date`
14992 # Check whether --with-date-stamp was given.
14993 if test "${with_date_stamp+set}" = set; then :
14994 withval=$with_date_stamp;
14995 if test "x$withval" != "xno" ; then
14996 ALPINE_datestamp=$withval
15001 ALPINE_DATESTAMP=$ALPINE_datestamp
15004 ALPINE_hoststamp=`hostname`
15006 # Check whether --with-host-stamp was given.
15007 if test "${with_host_stamp+set}" = set; then :
15008 withval=$with_host_stamp;
15009 if test "x$withval" != "xno" ; then
15010 ALPINE_hoststamp="$withval"
15015 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15018 case $host in
15019 *apple-darwin*)
15020 if test -d /opt/local ; then
15021 localedir="/opt/local/share/locale"
15022 else
15023 localedir="\${datadir}/locale"
15026 *-*-cygwin)
15027 localedir="/usr/share"
15030 localedir="\${datadir}/locale"
15032 esac
15035 # Check whether --with-localedir was given.
15036 if test "${with_localedir+set}" = set; then :
15037 withval=$with_localedir;
15038 case $withval in
15039 yes)
15044 localedir=$withval
15046 esac
15050 localedir="$localedir"
15053 # Setup OS-Specific features
15054 case "$host" in
15055 *darwin*)
15056 # Check whether --enable-osx-universal-binaries was given.
15057 if test "${enable_osx_universal_binaries+set}" = set; then :
15058 enableval=$enable_osx_universal_binaries;
15061 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15062 if test "x$enable_dependency_tracking" != xno ; then
15063 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15064 Please re-run configure with these options:
15065 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15067 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15068 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15069 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15070 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15071 else
15072 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15074 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15075 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15076 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15077 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15078 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15079 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15082 esac
15085 # Check whether --with-include-path was given.
15086 if test "${with_include_path+set}" = set; then :
15087 withval=$with_include_path;
15088 case $withval in
15091 yes)
15094 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15095 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15096 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15098 esac
15104 # Check whether --with-lib-path was given.
15105 if test "${with_lib_path+set}" = set; then :
15106 withval=$with_lib_path;
15107 case $withval in
15110 yes)
15113 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15114 LDFLAGS="$LDFLAGS $new_ldflags"
15115 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15117 esac
15123 # Check whether --with-pubcookie was given.
15124 if test "${with_pubcookie+set}" = set; then :
15125 withval=$with_pubcookie;
15126 if test "x$withval" != "xno" ; then
15127 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15135 # Check whether --with-web-bin was given.
15136 if test "${with_web_bin+set}" = set; then :
15137 withval=$with_web_bin;
15138 case "$withval" in
15141 yes)
15144 WEB_BINDIR=$withval
15146 esac
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15152 $as_echo_n "checking option: debugging is enabled... " >&6; }
15153 # Check whether --enable-debug was given.
15154 if test "${enable_debug+set}" = set; then :
15155 enableval=$enable_debug;
15158 if test x$enable_debug != "xno" ; then
15159 AM_CFLAGS="$AM_CFLAGS -g"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 $as_echo "yes" >&6; }
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15167 $as_echo "#define DEBUG 1" >>confdefs.h
15170 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15175 $as_echo_n "checking option: optimization is enabled... " >&6; }
15176 # Check whether --enable-optimization was given.
15177 if test "${enable_optimization+set}" = set; then :
15178 enableval=$enable_optimization;
15181 if test x$enable_optimization != "xno" ; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184 else
15185 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15186 alpine_c_client_gccoptlevel="-O0"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15192 $as_echo_n "checking option: mouse support enabled... " >&6; }
15193 # Check whether --enable-mouse was given.
15194 if test "${enable_mouse+set}" = set; then :
15195 enableval=$enable_mouse;
15198 if test x$enable_mouse != "xno" ; then
15200 $as_echo "#define MOUSE /**/" >>confdefs.h
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15203 $as_echo "yes" >&6; }
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206 $as_echo "no" >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15210 $as_echo_n "checking option: quotas enabled... " >&6; }
15211 # Check whether --enable-quotas was given.
15212 if test "${enable_quotas+set}" = set; then :
15213 enableval=$enable_quotas;
15216 if test x$enable_quotas = "xyes" ; then
15218 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15221 $as_echo "yes" >&6; }
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15228 $as_echo_n "checking option: From changing enabled... " >&6; }
15229 # Check whether --enable-from_changing was given.
15230 if test "${enable_from_changing+set}" = set; then :
15231 enableval=$enable_from_changing;
15234 if test x$enable_from_changing != "xno" ; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236 $as_echo "yes" >&6; }
15237 else
15239 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15246 $as_echo_n "checking option: background post enabled... " >&6; }
15247 # Check whether --enable-background-post was given.
15248 if test "${enable_background_post+set}" = set; then :
15249 enableval=$enable_background_post;
15252 if test x$enable_background_post != "xno" ; then
15254 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15257 $as_echo "yes" >&6; }
15258 else
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15260 $as_echo "no" >&6; }
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15264 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15265 # Check whether --enable-keyboard-lock was given.
15266 if test "${enable_keyboard_lock+set}" = set; then :
15267 enableval=$enable_keyboard_lock;
15270 if test x$enable_keyboard_lock != "xno" ; then
15272 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15275 $as_echo "yes" >&6; }
15276 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15282 $as_echo_n "checking option: from encoding enabled... " >&6; }
15283 # Check whether --enable-from-encoding was given.
15284 if test "${enable_from_encoding+set}" = set; then :
15285 enableval=$enable_from_encoding;
15288 if test x$enable_from_encoding = "xyes" ; then
15290 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293 $as_echo "yes" >&6; }
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15300 # Check whether --with-smtp-msa was given.
15301 if test "${with_smtp_msa+set}" = set; then :
15302 withval=$with_smtp_msa;
15303 case "$withval" in
15306 yes)
15307 # Extract the first word of "sendmail", so it can be a program name with args.
15308 set dummy sendmail; ac_word=$2
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15310 $as_echo_n "checking for $ac_word... " >&6; }
15311 if ${ac_cv_path_SENDMAIL+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 case $SENDMAIL in
15315 [\\/]* | ?:[\\/]*)
15316 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 as_dummy="$PATH:/usr/sbin:/usr/lib"
15321 for as_dir in $as_dummy
15323 IFS=$as_save_IFS
15324 test -z "$as_dir" && as_dir=.
15325 for ac_exec_ext in '' $ac_executable_extensions; do
15326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15327 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15329 break 2
15331 done
15332 done
15333 IFS=$as_save_IFS
15335 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15337 esac
15339 SENDMAIL=$ac_cv_path_SENDMAIL
15340 if test -n "$SENDMAIL"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15342 $as_echo "$SENDMAIL" >&6; }
15343 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15351 SENDMAIL=$withval
15353 esac
15355 else
15357 # Extract the first word of "sendmail", so it can be a program name with args.
15358 set dummy sendmail; ac_word=$2
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15360 $as_echo_n "checking for $ac_word... " >&6; }
15361 if ${ac_cv_path_SENDMAIL+:} false; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 case $SENDMAIL in
15365 [\\/]* | ?:[\\/]*)
15366 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370 as_dummy="$PATH:/usr/sbin:/usr/lib"
15371 for as_dir in $as_dummy
15373 IFS=$as_save_IFS
15374 test -z "$as_dir" && as_dir=.
15375 for ac_exec_ext in '' $ac_executable_extensions; do
15376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15377 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15379 break 2
15381 done
15382 done
15383 IFS=$as_save_IFS
15385 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15387 esac
15389 SENDMAIL=$ac_cv_path_SENDMAIL
15390 if test -n "$SENDMAIL"; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15392 $as_echo "$SENDMAIL" >&6; }
15393 else
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 $as_echo "no" >&6; }
15402 if test -n "$SENDMAIL" ; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define SENDMAIL "$SENDMAIL"
15406 _ACEOF
15410 smtp_msa_flags="-bs -odb -oem"
15412 # Check whether --with-smtp-msa-flags was given.
15413 if test "${with_smtp_msa_flags+set}" = set; then :
15414 withval=$with_smtp_msa_flags;
15415 if test "x$withval" != "xno" ; then
15416 smtp_msa_flags=$withval
15422 cat >>confdefs.h <<_ACEOF
15423 #define SENDMAILFLAGS "$smtp_msa_flags"
15424 _ACEOF
15427 npa="inews"
15429 # Check whether --with-npa was given.
15430 if test "${with_npa+set}" = set; then :
15431 withval=$with_npa;
15432 case "$withval" in
15435 yes)
15436 # Extract the first word of "inews", so it can be a program name with args.
15437 set dummy inews; ac_word=$2
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439 $as_echo_n "checking for $ac_word... " >&6; }
15440 if ${ac_cv_path_NPA_PROG+:} false; then :
15441 $as_echo_n "(cached) " >&6
15442 else
15443 case $NPA_PROG in
15444 [\\/]* | ?:[\\/]*)
15445 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 as_dummy="$PATH:/usr/sbin:/usr/lib"
15450 for as_dir in $as_dummy
15452 IFS=$as_save_IFS
15453 test -z "$as_dir" && as_dir=.
15454 for ac_exec_ext in '' $ac_executable_extensions; do
15455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15458 break 2
15460 done
15461 done
15462 IFS=$as_save_IFS
15464 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15466 esac
15468 NPA_PROG=$ac_cv_path_NPA_PROG
15469 if test -n "$NPA_PROG"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15471 $as_echo "$NPA_PROG" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15480 NPA_PROG=$withval
15482 esac
15484 else
15486 # Extract the first word of "inews", so it can be a program name with args.
15487 set dummy inews; ac_word=$2
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15489 $as_echo_n "checking for $ac_word... " >&6; }
15490 if ${ac_cv_path_NPA_PROG+:} false; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 case $NPA_PROG in
15494 [\\/]* | ?:[\\/]*)
15495 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15499 as_dummy="$PATH:/usr/sbin:/usr/lib"
15500 for as_dir in $as_dummy
15502 IFS=$as_save_IFS
15503 test -z "$as_dir" && as_dir=.
15504 for ac_exec_ext in '' $ac_executable_extensions; do
15505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15506 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15508 break 2
15510 done
15511 done
15512 IFS=$as_save_IFS
15514 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15516 esac
15518 NPA_PROG=$ac_cv_path_NPA_PROG
15519 if test -n "$NPA_PROG"; then
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15521 $as_echo "$NPA_PROG" >&6; }
15522 else
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15524 $as_echo "no" >&6; }
15532 npa_flags="-h"
15534 # Check whether --with-npa-flags was given.
15535 if test "${with_npa_flags+set}" = set; then :
15536 withval=$with_npa_flags;
15537 if test "x$withval" != "xno" ; then
15538 npa_flags=$withval
15543 if test -n "$NPA_PROG" ; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define SENDNEWS "$NPA_PROG $npa_flags"
15547 _ACEOF
15552 # Check whether --with-password-prog was given.
15553 if test "${with_password_prog+set}" = set; then :
15554 withval=$with_password_prog;
15555 case "$withval" in
15558 yes)
15559 # Extract the first word of "passwd", so it can be a program name with args.
15560 set dummy passwd; ac_word=$2
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15562 $as_echo_n "checking for $ac_word... " >&6; }
15563 if ${ac_cv_path_PWPROG+:} false; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 case $PWPROG in
15567 [\\/]* | ?:[\\/]*)
15568 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 as_dummy="$PATH:/usr/sbin:/usr/lib"
15573 for as_dir in $as_dummy
15575 IFS=$as_save_IFS
15576 test -z "$as_dir" && as_dir=.
15577 for ac_exec_ext in '' $ac_executable_extensions; do
15578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15579 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15581 break 2
15583 done
15584 done
15585 IFS=$as_save_IFS
15587 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15589 esac
15591 PWPROG=$ac_cv_path_PWPROG
15592 if test -n "$PWPROG"; then
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15594 $as_echo "$PWPROG" >&6; }
15595 else
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597 $as_echo "no" >&6; }
15603 # Extract the first word of "$withval", so it can be a program name with args.
15604 set dummy $withval; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PWPROG+:} false; then :
15608 $as_echo_n "(cached) " >&6
15609 else
15610 case $PWPROG in
15611 [\\/]* | ?:[\\/]*)
15612 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 as_dummy="$PATH:/usr/sbin:/usr/lib"
15617 for as_dir in $as_dummy
15619 IFS=$as_save_IFS
15620 test -z "$as_dir" && as_dir=.
15621 for ac_exec_ext in '' $ac_executable_extensions; do
15622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15623 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15625 break 2
15627 done
15628 done
15629 IFS=$as_save_IFS
15631 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15633 esac
15635 PWPROG=$ac_cv_path_PWPROG
15636 if test -n "$PWPROG"; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15638 $as_echo "$PWPROG" >&6; }
15639 else
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641 $as_echo "no" >&6; }
15646 esac
15648 else
15650 # Extract the first word of "passwd", so it can be a program name with args.
15651 set dummy passwd; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 $as_echo_n "checking for $ac_word... " >&6; }
15654 if ${ac_cv_path_PWPROG+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656 else
15657 case $PWPROG in
15658 [\\/]* | ?:[\\/]*)
15659 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 as_dummy="$PATH:/usr/sbin:/usr/lib"
15664 for as_dir in $as_dummy
15666 IFS=$as_save_IFS
15667 test -z "$as_dir" && as_dir=.
15668 for ac_exec_ext in '' $ac_executable_extensions; do
15669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672 break 2
15674 done
15675 done
15676 IFS=$as_save_IFS
15678 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15680 esac
15682 PWPROG=$ac_cv_path_PWPROG
15683 if test -n "$PWPROG"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15685 $as_echo "$PWPROG" >&6; }
15686 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688 $as_echo "no" >&6; }
15695 if test -n "$PWPROG" ; then
15697 cat >>confdefs.h <<_ACEOF
15698 #define PASSWD_PROG "$PWPROG"
15699 _ACEOF
15704 # Check whether --with-simple-spellcheck was given.
15705 if test "${with_simple_spellcheck+set}" = set; then :
15706 withval=$with_simple_spellcheck;
15707 if test "x$withval" != "xno" ; then
15708 SPELLPROG=$withval
15711 else
15713 # Extract the first word of "hunspell", so it can be a program name with args.
15714 set dummy hunspell; ac_word=$2
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15716 $as_echo_n "checking for $ac_word... " >&6; }
15717 if ${ac_cv_prog_SPELLPROG+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 if test -n "$SPELLPROG"; then
15721 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15722 else
15723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15724 for as_dir in $PATH
15726 IFS=$as_save_IFS
15727 test -z "$as_dir" && as_dir=.
15728 for ac_exec_ext in '' $ac_executable_extensions; do
15729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15730 ac_cv_prog_SPELLPROG="hunspell"
15731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15732 break 2
15734 done
15735 done
15736 IFS=$as_save_IFS
15740 SPELLPROG=$ac_cv_prog_SPELLPROG
15741 if test -n "$SPELLPROG"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15743 $as_echo "$SPELLPROG" >&6; }
15744 else
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15750 if test -z "$SPELLPROG" ; then
15751 # Extract the first word of "aspell", so it can be a program name with args.
15752 set dummy aspell; ac_word=$2
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15754 $as_echo_n "checking for $ac_word... " >&6; }
15755 if ${ac_cv_prog_SPELLPROG+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 if test -n "$SPELLPROG"; then
15759 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15760 else
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_SPELLPROG="aspell"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 break 2
15772 done
15773 done
15774 IFS=$as_save_IFS
15778 SPELLPROG=$ac_cv_prog_SPELLPROG
15779 if test -n "$SPELLPROG"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15781 $as_echo "$SPELLPROG" >&6; }
15782 else
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15788 if test -z "$SPELLPROG" ; then
15789 # Extract the first word of "ispell", so it can be a program name with args.
15790 set dummy ispell; ac_word=$2
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15792 $as_echo_n "checking for $ac_word... " >&6; }
15793 if ${ac_cv_prog_SPELLPROG+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 if test -n "$SPELLPROG"; then
15797 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15798 else
15799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15800 for as_dir in $PATH
15802 IFS=$as_save_IFS
15803 test -z "$as_dir" && as_dir=.
15804 for ac_exec_ext in '' $ac_executable_extensions; do
15805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15806 ac_cv_prog_SPELLPROG="ispell"
15807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 break 2
15810 done
15811 done
15812 IFS=$as_save_IFS
15816 SPELLPROG=$ac_cv_prog_SPELLPROG
15817 if test -n "$SPELLPROG"; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15819 $as_echo "$SPELLPROG" >&6; }
15820 else
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15822 $as_echo "no" >&6; }
15826 if test -z "$SPELLPROG" ; then
15827 SPELLPROG="spell"
15835 if test "x$SPELLPROG" != "xno" ; then
15836 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15837 set dummy $SPELLPROG; ac_word=$2
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15839 $as_echo_n "checking for $ac_word... " >&6; }
15840 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842 else
15843 case $alpine_simple_spellcheck in
15844 [\\/]* | ?:[\\/]*)
15845 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15849 for as_dir in $PATH
15851 IFS=$as_save_IFS
15852 test -z "$as_dir" && as_dir=.
15853 for ac_exec_ext in '' $ac_executable_extensions; do
15854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15855 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15857 break 2
15859 done
15860 done
15861 IFS=$as_save_IFS
15864 esac
15866 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15867 if test -n "$alpine_simple_spellcheck"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15869 $as_echo "$alpine_simple_spellcheck" >&6; }
15870 else
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15876 if test -n "$alpine_simple_spellcheck" ; then
15877 case "$SPELLPROG" in
15878 hunspell)
15879 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15881 aspell)
15882 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15884 ispell)
15885 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15889 esac
15894 # Check whether --with-interactive-spellcheck was given.
15895 if test "${with_interactive_spellcheck+set}" = set; then :
15896 withval=$with_interactive_spellcheck;
15897 if test "x$withval" != "xno" ; then
15898 ISPELLPROG=$withval
15901 else
15903 # Extract the first word of "hunspell", so it can be a program name with args.
15904 set dummy hunspell; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 if test -n "$ISPELLPROG"; then
15911 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_prog_ISPELLPROG="hunspell"
15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 break 2
15924 done
15925 done
15926 IFS=$as_save_IFS
15930 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15931 if test -n "$ISPELLPROG"; then
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15933 $as_echo "$ISPELLPROG" >&6; }
15934 else
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936 $as_echo "no" >&6; }
15940 if test -z "$ISPELLPROG" ; then
15941 # Extract the first word of "aspell", so it can be a program name with args.
15942 set dummy aspell; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15944 $as_echo_n "checking for $ac_word... " >&6; }
15945 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if test -n "$ISPELLPROG"; then
15949 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_ISPELLPROG="aspell"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 break 2
15962 done
15963 done
15964 IFS=$as_save_IFS
15968 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15969 if test -n "$ISPELLPROG"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15971 $as_echo "$ISPELLPROG" >&6; }
15972 else
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15978 if test -z "$SPELLPROG" ; then
15979 ISPELLPROG="ispell"
15986 if test "x$ISPELLPROG" != "xno" ; then
15987 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15988 set dummy $ISPELLPROG; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15990 $as_echo_n "checking for $ac_word... " >&6; }
15991 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 case $alpine_interactive_spellcheck in
15995 [\\/]* | ?:[\\/]*)
15996 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16000 for as_dir in $PATH
16002 IFS=$as_save_IFS
16003 test -z "$as_dir" && as_dir=.
16004 for ac_exec_ext in '' $ac_executable_extensions; do
16005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16006 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16008 break 2
16010 done
16011 done
16012 IFS=$as_save_IFS
16015 esac
16017 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16018 if test -n "$alpine_interactive_spellcheck"; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16020 $as_echo "$alpine_interactive_spellcheck" >&6; }
16021 else
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023 $as_echo "no" >&6; }
16027 if test -n "$alpine_interactive_spellcheck" ; then
16028 case "$ISPELLPROG" in
16029 aspell)
16030 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16034 esac
16038 if test -n "$alpine_interactive_spellcheck" ; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16042 _ACEOF
16046 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16047 alpine_simple_spellcheck=test
16050 cat >>confdefs.h <<_ACEOF
16051 #define SPELLER "$alpine_simple_spellcheck"
16052 _ACEOF
16055 case "$prefix" in
16056 NONE) dpv=/usr/local/lib/pine.conf ;;
16057 *) dpv=${prefix}/lib/pine.conf ;;
16058 esac
16060 # Check whether --with-system-pinerc was given.
16061 if test "${with_system_pinerc+set}" = set; then :
16062 withval=$with_system_pinerc;
16063 case "$withval" in
16066 yes)
16069 dpv=$withval
16071 esac
16076 cat >>confdefs.h <<_ACEOF
16077 #define SYSTEM_PINERC "$dpv"
16078 _ACEOF
16081 case "$prefix" in
16082 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16083 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16084 esac
16086 # Check whether --with-system-fixed-pinerc was given.
16087 if test "${with_system_fixed_pinerc+set}" = set; then :
16088 withval=$with_system_fixed_pinerc;
16089 case "$withval" in
16092 yes)
16095 dpv=$withval
16097 esac
16102 cat >>confdefs.h <<_ACEOF
16103 #define SYSTEM_PINERC_FIXED "$dpv"
16104 _ACEOF
16107 case "$prefix" in
16108 NONE) dpv=/usr/local/lib/pine.info ;;
16109 *) dpv=${prefix}/lib/pine.info ;;
16110 esac
16112 # Check whether --with-local-support-info was given.
16113 if test "${with_local_support_info+set}" = set; then :
16114 withval=$with_local_support_info;
16115 case "$withval" in
16118 yes)
16121 dpv=$withval
16123 esac
16128 cat >>confdefs.h <<_ACEOF
16129 #define SYSTEM_PINE_INFO_PATH "$dpv"
16130 _ACEOF
16138 dpv=150
16140 # Check whether --with-mailcheck-interval was given.
16141 if test "${with_mailcheck_interval+set}" = set; then :
16142 withval=$with_mailcheck_interval;
16143 if test "x$withval" != "xno" ; then
16144 dpv=$withval
16150 cat >>confdefs.h <<_ACEOF
16151 #define DF_MAILCHECK "$dpv"
16152 _ACEOF
16156 dpv=420
16158 # Check whether --with-checkpoint-interval was given.
16159 if test "${with_checkpoint_interval+set}" = set; then :
16160 withval=$with_checkpoint_interval;
16161 if test "x$withval" != "xno" ; then
16162 dpv=$withval
16168 cat >>confdefs.h <<_ACEOF
16169 #define CHECK_POINT_TIME $dpv
16170 _ACEOF
16174 dpv=12
16176 # Check whether --with-checkpoint-frequency was given.
16177 if test "${with_checkpoint_frequency+set}" = set; then :
16178 withval=$with_checkpoint_frequency;
16179 if test "x$withval" != "xno" ; then
16180 dpv=$withval
16186 cat >>confdefs.h <<_ACEOF
16187 #define CHECK_POINT_FREQ $dpv
16188 _ACEOF
16192 dpv=24
16194 # Check whether --with-display-rows was given.
16195 if test "${with_display_rows+set}" = set; then :
16196 withval=$with_display_rows;
16197 if test "x$withval" != "xno" ; then
16198 dpv=$withval
16204 cat >>confdefs.h <<_ACEOF
16205 #define DEFAULT_LINES_ON_TERMINAL $dpv
16206 _ACEOF
16210 dpv=80
16212 # Check whether --with-display-columns was given.
16213 if test "${with_display_columns+set}" = set; then :
16214 withval=$with_display_columns;
16215 if test "x$withval" != "xno" ; then
16216 dpv=$withval
16222 cat >>confdefs.h <<_ACEOF
16223 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16224 _ACEOF
16228 dpv=200
16230 # Check whether --with-max-display-rows was given.
16231 if test "${with_max_display_rows+set}" = set; then :
16232 withval=$with_max_display_rows;
16233 if test "x$withval" != "xno" ; then
16234 dpv=$withval
16240 cat >>confdefs.h <<_ACEOF
16241 #define MAX_SCREEN_ROWS $dpv
16242 _ACEOF
16246 dpv=500
16248 # Check whether --with-max-display-columns was given.
16249 if test "${with_max_display_columns+set}" = set; then :
16250 withval=$with_max_display_columns;
16251 if test "x$withval" != "xno" ; then
16252 dpv=$withval
16258 cat >>confdefs.h <<_ACEOF
16259 #define MAX_SCREEN_COLS $dpv
16260 _ACEOF
16264 dpv=74
16266 # Check whether --with-fill-column was given.
16267 if test "${with_fill_column+set}" = set; then :
16268 withval=$with_fill_column;
16269 if test "x$withval" != "xno" ; then
16270 dpv=$withval
16276 cat >>confdefs.h <<_ACEOF
16277 #define DF_FILLCOL "$dpv"
16278 _ACEOF
16282 dpv=80
16284 # Check whether --with-max_fill-column was given.
16285 if test "${with_max_fill_column+set}" = set; then :
16286 withval=$with_max_fill_column;
16287 if test "x$withval" != "xno" ; then
16288 dpv=$withval
16294 cat >>confdefs.h <<_ACEOF
16295 #define MAX_FILLCOL $dpv
16296 _ACEOF
16300 dpv=2
16302 # Check whether --with-debug-level was given.
16303 if test "${with_debug_level+set}" = set; then :
16304 withval=$with_debug_level;
16305 if test "x$withval" != "xno" ; then
16306 dpv=$withval
16312 cat >>confdefs.h <<_ACEOF
16313 #define DEFAULT_DEBUG $dpv
16314 _ACEOF
16318 dpv=4
16320 # Check whether --with-debug-files was given.
16321 if test "${with_debug_files+set}" = set; then :
16322 withval=$with_debug_files;
16323 if test "x$withval" != "xno" ; then
16324 dpv=$withval
16330 cat >>confdefs.h <<_ACEOF
16331 #define NUMDEBUGFILES $dpv
16332 _ACEOF
16336 dpv=.pine-debug
16338 # Check whether --with-debug-file was given.
16339 if test "${with_debug_file+set}" = set; then :
16340 withval=$with_debug_file;
16341 if test "x$withval" != "xno" ; then
16342 dpv=$withval
16348 cat >>confdefs.h <<_ACEOF
16349 #define DEBUGFILE "$dpv"
16350 _ACEOF
16354 dpv="\$Forwarded"
16356 # Check whether --with-forwarded-keyword was given.
16357 if test "${with_forwarded_keyword+set}" = set; then :
16358 withval=$with_forwarded_keyword;
16359 if test "x$withval" != "xno" ; then
16360 dpv=$withval
16366 cat >>confdefs.h <<_ACEOF
16367 #define FORWARDED_FLAG "$dpv"
16368 _ACEOF
16372 dpv=2
16374 # Check whether --with-display-overlap was given.
16375 if test "${with_display_overlap+set}" = set; then :
16376 withval=$with_display_overlap;
16377 if test "x$withval" != "xno" ; then
16378 dpv=$withval
16384 cat >>confdefs.h <<_ACEOF
16385 #define DF_OVERLAP "$dpv"
16386 _ACEOF
16390 dpv=0
16392 # Check whether --with-display-margin was given.
16393 if test "${with_display_margin+set}" = set; then :
16394 withval=$with_display_margin;
16395 if test "x$withval" != "xno" ; then
16396 dpv=$withval
16402 cat >>confdefs.h <<_ACEOF
16403 #define DF_MARGIN "$dpv"
16404 _ACEOF
16408 dpv=sent-mail
16410 # Check whether --with-default-fcc was given.
16411 if test "${with_default_fcc+set}" = set; then :
16412 withval=$with_default_fcc;
16413 if test "x$withval" != "xno" ; then
16414 dpv=$withval
16420 cat >>confdefs.h <<_ACEOF
16421 #define DF_DEFAULT_FCC "$dpv"
16422 _ACEOF
16426 dpv=saved-messages
16428 # Check whether --with-default-save-folder was given.
16429 if test "${with_default_save_folder+set}" = set; then :
16430 withval=$with_default_save_folder;
16431 if test "x$withval" != "xno" ; then
16432 dpv=$withval
16438 cat >>confdefs.h <<_ACEOF
16439 #define DEFAULT_SAVE "$dpv"
16440 _ACEOF
16444 dpv=postponed-mail
16446 # Check whether --with-default-legacy-postponed-folder was given.
16447 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16448 withval=$with_default_legacy_postponed_folder;
16449 if test "x$withval" != "xno" ; then
16450 dpv=$withval
16456 cat >>confdefs.h <<_ACEOF
16457 #define POSTPONED_MAIL "$dpv"
16458 _ACEOF
16462 dpv=postponed-msgs
16464 # Check whether --with-default-postponed-folder was given.
16465 if test "${with_default_postponed_folder+set}" = set; then :
16466 withval=$with_default_postponed_folder;
16467 if test "x$withval" != "xno" ; then
16468 dpv=$withval
16474 cat >>confdefs.h <<_ACEOF
16475 #define POSTPONED_MSGS "$dpv"
16476 _ACEOF
16480 dpv=Trash
16482 # Check whether --with-default-trash-folder was given.
16483 if test "${with_default_trash_folder+set}" = set; then :
16484 withval=$with_default_trash_folder;
16485 if test "x$withval" != "xno" ; then
16486 dpv=$withval
16492 cat >>confdefs.h <<_ACEOF
16493 #define TRASH_FOLDER "$dpv"
16494 _ACEOF
16498 dpv=.pine-interrupted-mail
16500 # Check whether --with-default-interrupted-mail was given.
16501 if test "${with_default_interrupted_mail+set}" = set; then :
16502 withval=$with_default_interrupted_mail;
16503 if test "x$withval" != "xno" ; then
16504 dpv=$withval
16510 cat >>confdefs.h <<_ACEOF
16511 #define INTERRUPTED_MAIL "$dpv"
16512 _ACEOF
16516 dpv=dead.letter
16518 # Check whether --with-default-dead-letter-folder was given.
16519 if test "${with_default_dead_letter_folder+set}" = set; then :
16520 withval=$with_default_dead_letter_folder;
16521 if test "x$withval" != "xno" ; then
16522 dpv=$withval
16528 cat >>confdefs.h <<_ACEOF
16529 #define DEADLETTER "$dpv"
16530 _ACEOF
16534 dpv=mail
16536 # Check whether --with-default-mail-directory was given.
16537 if test "${with_default_mail_directory+set}" = set; then :
16538 withval=$with_default_mail_directory;
16539 if test "x$withval" != "xno" ; then
16540 dpv=$withval
16546 cat >>confdefs.h <<_ACEOF
16547 #define DF_MAIL_DIRECTORY "$dpv"
16548 _ACEOF
16552 dpv=INBOX
16554 # Check whether --with-default-inbox-name was given.
16555 if test "${with_default_inbox_name+set}" = set; then :
16556 withval=$with_default_inbox_name;
16557 if test "x$withval" != "xno" ; then
16558 dpv=$withval
16564 cat >>confdefs.h <<_ACEOF
16565 #define INBOX_NAME "$dpv"
16566 _ACEOF
16570 dpv=.signature
16572 # Check whether --with-default-signature-file was given.
16573 if test "${with_default_signature_file+set}" = set; then :
16574 withval=$with_default_signature_file;
16575 if test "x$withval" != "xno" ; then
16576 dpv=$withval
16582 cat >>confdefs.h <<_ACEOF
16583 #define DF_SIGNATURE_FILE "$dpv"
16584 _ACEOF
16588 dpv=no
16590 # Check whether --with-default-elm-style-save was given.
16591 if test "${with_default_elm_style_save+set}" = set; then :
16592 withval=$with_default_elm_style_save;
16593 if test "x$withval" != "xno" ; then
16594 dpv=$withval
16600 cat >>confdefs.h <<_ACEOF
16601 #define DF_ELM_STYLE_SAVE "$dpv"
16602 _ACEOF
16606 dpv=no
16608 # Check whether --with-default-header-in-reply was given.
16609 if test "${with_default_header_in_reply+set}" = set; then :
16610 withval=$with_default_header_in_reply;
16611 if test "x$withval" != "xno" ; then
16612 dpv=$withval
16618 cat >>confdefs.h <<_ACEOF
16619 #define DF_HEADER_IN_REPLY "$dpv"
16620 _ACEOF
16624 dpv=no
16626 # Check whether --with-default-old-style-reply was given.
16627 if test "${with_default_old_style_reply+set}" = set; then :
16628 withval=$with_default_old_style_reply;
16629 if test "x$withval" != "xno" ; then
16630 dpv=$withval
16636 cat >>confdefs.h <<_ACEOF
16637 #define DF_OLD_STYLE_REPLY "$dpv"
16638 _ACEOF
16642 dpv=no
16644 # Check whether --with-default-use-only-domain-name was given.
16645 if test "${with_default_use_only_domain_name+set}" = set; then :
16646 withval=$with_default_use_only_domain_name;
16647 if test "x$withval" != "xno" ; then
16648 dpv=$withval
16654 cat >>confdefs.h <<_ACEOF
16655 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16656 _ACEOF
16660 dpv=no
16662 # Check whether --with-default-save-by-sender was given.
16663 if test "${with_default_save_by_sender+set}" = set; then :
16664 withval=$with_default_save_by_sender;
16665 if test "x$withval" != "xno" ; then
16666 dpv=$withval
16672 cat >>confdefs.h <<_ACEOF
16673 #define DF_SAVE_BY_SENDER "$dpv"
16674 _ACEOF
16678 dpv=arrival
16680 # Check whether --with-default-sort-key was given.
16681 if test "${with_default_sort_key+set}" = set; then :
16682 withval=$with_default_sort_key;
16683 if test "x$withval" != "xno" ; then
16684 dpv=$withval
16690 cat >>confdefs.h <<_ACEOF
16691 #define DF_SORT_KEY "$dpv"
16692 _ACEOF
16696 dpv=fullname-with-lists-last
16698 # Check whether --with-default-addressbook-sort-rule was given.
16699 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16700 withval=$with_default_addressbook_sort_rule;
16701 if test "x$withval" != "xno" ; then
16702 dpv=$withval
16708 cat >>confdefs.h <<_ACEOF
16709 #define DF_AB_SORT_RULE "$dpv"
16710 _ACEOF
16714 dpv=alphabetical
16716 # Check whether --with-default-folder-sort-rule was given.
16717 if test "${with_default_folder_sort_rule+set}" = set; then :
16718 withval=$with_default_folder_sort_rule;
16719 if test "x$withval" != "xno" ; then
16720 dpv=$withval
16726 cat >>confdefs.h <<_ACEOF
16727 #define DF_FLD_SORT_RULE "$dpv"
16728 _ACEOF
16732 dpv=default-folder
16734 # Check whether --with-default-saved-message-name-rule was given.
16735 if test "${with_default_saved_message_name_rule+set}" = set; then :
16736 withval=$with_default_saved_message_name_rule;
16737 if test "x$withval" != "xno" ; then
16738 dpv=$withval
16744 cat >>confdefs.h <<_ACEOF
16745 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16746 _ACEOF
16750 dpv=default-fcc
16752 # Check whether --with-default-fcc-rule was given.
16753 if test "${with_default_fcc_rule+set}" = set; then :
16754 withval=$with_default_fcc_rule;
16755 if test "x$withval" != "xno" ; then
16756 dpv=$withval
16762 cat >>confdefs.h <<_ACEOF
16763 #define DF_FCC_RULE "$dpv"
16764 _ACEOF
16768 dpv=lpr
16770 # Check whether --with-default-standard-printer was given.
16771 if test "${with_default_standard_printer+set}" = set; then :
16772 withval=$with_default_standard_printer;
16773 if test "x$withval" != "xno" ; then
16774 dpv=$withval
16780 cat >>confdefs.h <<_ACEOF
16781 #define DF_STANDARD_PRINTER "$dpv"
16782 _ACEOF
16786 dpv=attached-to-ansi
16788 # Check whether --with-default-ansi-printer was given.
16789 if test "${with_default_ansi_printer+set}" = set; then :
16790 withval=$with_default_ansi_printer;
16791 if test "x$withval" != "xno" ; then
16792 dpv=$withval
16798 cat >>confdefs.h <<_ACEOF
16799 #define ANSI_PRINTER "$dpv"
16800 _ACEOF
16804 dpv=.addressbook
16806 # Check whether --with-default-addressbook was given.
16807 if test "${with_default_addressbook+set}" = set; then :
16808 withval=$with_default_addressbook;
16809 if test "x$withval" != "xno" ; then
16810 dpv=$withval
16816 cat >>confdefs.h <<_ACEOF
16817 #define DF_ADDRESSBOOK "$dpv"
16818 _ACEOF
16822 dpv="Local Support"
16824 # Check whether --with-default-local-fullname was given.
16825 if test "${with_default_local_fullname+set}" = set; then :
16826 withval=$with_default_local_fullname;
16827 if test "x$withval" != "xno" ; then
16828 dpv=$withval
16834 cat >>confdefs.h <<_ACEOF
16835 #define DF_LOCAL_FULLNAME "$dpv"
16836 _ACEOF
16840 dpv=postmaster
16842 # Check whether --with-default-local-address was given.
16843 if test "${with_default_local_address+set}" = set; then :
16844 withval=$with_default_local_address;
16845 if test "x$withval" != "xno" ; then
16846 dpv=$withval
16852 cat >>confdefs.h <<_ACEOF
16853 #define DF_LOCAL_ADDRESS "$dpv"
16854 _ACEOF
16858 dpv=1
16860 # Check whether --with-default-keyboard-lock-count was given.
16861 if test "${with_default_keyboard_lock_count+set}" = set; then :
16862 withval=$with_default_keyboard_lock_count;
16863 if test "x$withval" != "xno" ; then
16864 dpv=$withval
16870 cat >>confdefs.h <<_ACEOF
16871 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16872 _ACEOF
16876 dpv=3
16878 # Check whether --with-default-remote-addressbook-history was given.
16879 if test "${with_default_remote_addressbook_history+set}" = set; then :
16880 withval=$with_default_remote_addressbook_history;
16881 if test "x$withval" != "xno" ; then
16882 dpv=$withval
16888 cat >>confdefs.h <<_ACEOF
16889 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16890 _ACEOF
16894 dpv=.alpine-html
16896 # Check whether --with-default-html-directory was given.
16897 if test "${with_default_html_directory+set}" = set; then :
16898 withval=$with_default_html_directory;
16899 if test "x$withval" != "xno" ; then
16900 dpv=$withval
16906 cat >>confdefs.h <<_ACEOF
16907 #define DF_HTML_DIRECTORY "$dpv"
16908 _ACEOF
16912 dpv=.alpine-smime/public
16914 # Check whether --with-smime-public-cert-directory was given.
16915 if test "${with_smime_public_cert_directory+set}" = set; then :
16916 withval=$with_smime_public_cert_directory;
16917 if test "x$withval" != "xno" ; then
16918 dpv=$withval
16924 cat >>confdefs.h <<_ACEOF
16925 #define DF_PUBLICCERT_DIR "$dpv"
16926 _ACEOF
16930 dpv=.alpine-smime/private
16932 # Check whether --with-smime-private-key-directory was given.
16933 if test "${with_smime_private_key_directory+set}" = set; then :
16934 withval=$with_smime_private_key_directory;
16935 if test "x$withval" != "xno" ; then
16936 dpv=$withval
16942 cat >>confdefs.h <<_ACEOF
16943 #define DF_PRIVATEKEY_DIR "$dpv"
16944 _ACEOF
16948 dpv=.alpine-smime/ca
16950 # Check whether --with-smime-cacert-directory was given.
16951 if test "${with_smime_cacert_directory+set}" = set; then :
16952 withval=$with_smime_cacert_directory;
16953 if test "x$withval" != "xno" ; then
16954 dpv=$withval
16960 cat >>confdefs.h <<_ACEOF
16961 #define DF_CACERT_DIR "$dpv"
16962 _ACEOF
16966 dpv=ANSI_PRINTER
16968 # Check whether --with-default-printer was given.
16969 if test "${with_default_printer+set}" = set; then :
16970 withval=$with_default_printer;
16971 if test "x$withval" != "xno" ; then
16972 dpv=$withval
16978 cat >>confdefs.h <<_ACEOF
16979 #define DF_DEFAULT_PRINTER $dpv
16980 _ACEOF
16985 cat >>confdefs.h <<_ACEOF
16986 #define DF_PUBLIC_CONTAINER "PublicContainer"
16987 _ACEOF
16990 cat >>confdefs.h <<_ACEOF
16991 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16992 _ACEOF
16995 cat >>confdefs.h <<_ACEOF
16996 #define DF_CA_CONTAINER "CAContainer"
16997 _ACEOF
17000 cat >>confdefs.h <<_ACEOF
17001 #define DEFAULT_SSLUSERCAPATH ".alpine-certs"
17002 _ACEOF
17005 cat >>confdefs.h <<_ACEOF
17006 #define DEFAULT_SSLUSERCAFILE ".alpine-certs/certs.pem"
17007 _ACEOF
17011 # Check whether --with-passfile was given.
17012 if test "${with_passfile+set}" = set; then :
17013 withval=$with_passfile;
17014 case "$withval" in
17017 yes)
17020 alpine_PASSFILE=$withval
17022 esac
17029 # Check whether --with-local-password-cache was given.
17030 if test "${with_local_password_cache+set}" = set; then :
17031 withval=$with_local_password_cache;
17032 alpine_os_credential_cache=$withval
17038 # Check whether --with-local-password-cache-method was given.
17039 if test "${with_local_password_cache_method+set}" = set; then :
17040 withval=$with_local_password_cache_method;
17041 alpine_os_credential_cache_method=$withval
17046 if test -n "$alpine_PASSFILE" ; then
17047 case $alpine_os_credential_cache in
17051 alpine_os_credential_cache="no"
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17053 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17055 esac
17057 cat >>confdefs.h <<_ACEOF
17058 #define PASSFILE "$alpine_PASSFILE"
17059 _ACEOF
17064 # Check whether --with-default-sshpath was given.
17065 if test "${with_default_sshpath+set}" = set; then :
17066 withval=$with_default_sshpath;
17067 case "$withval" in
17070 yes)
17074 cat >>confdefs.h <<_ACEOF
17075 #define DF_SSHPATH "$withval"
17076 _ACEOF
17079 esac
17085 # Check whether --with-default-sshcmd was given.
17086 if test "${with_default_sshcmd+set}" = set; then :
17087 withval=$with_default_sshcmd;
17088 case "$withval" in
17091 yes)
17095 cat >>confdefs.h <<_ACEOF
17096 #define DF_SSHCMD "$withval"
17097 _ACEOF
17100 esac
17106 # Check whether --with-ssl was given.
17107 if test "${with_ssl+set}" = set; then :
17108 withval=$with_ssl; with_ssl=$withval
17112 if test "x$with_ssl" = "xno" ; then
17113 alpine_SSLTYPE="none"
17114 elif test -d /usr/local/ssl ; then
17115 alpine_SSLDIR="/usr/local/ssl"
17116 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17117 alpine_SSLLIB="$alpine_SSLDIR/lib"
17118 else
17119 case $host in
17120 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17121 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17122 alpine_SSLTYPE="nopwd"
17123 if test -d /etc/pki/tls ; then
17124 alpine_SSLDIR="/etc/pki/tls"
17125 else
17126 alpine_SSLDIR="/usr/share/ssl"
17128 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17129 alpine_SSLKEYS="$alpine_SSLDIR/private"
17130 alpine_SSLINCLUDE="/usr/include/openssl"
17131 alpine_SSLLIB="/usr/lib"
17132 elif test -f /etc/mandrake-release ; then
17133 alpine_SSLDIR="/usr/lib/ssl"
17134 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17135 alpine_SSLKEYS="$alpine_SSLDIR/private"
17136 alpine_SSLINCLUDE="/usr/include/openssl"
17137 alpine_SSLLIB="/usr/lib"
17138 elif test -f /etc/SuSE-release ; then
17139 alpine_SSLTYPE="nopwd"
17140 alpine_SSLDIR="/etc/ssl"
17141 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17142 alpine_SSLKEYS="$alpine_SSLDIR/private"
17143 alpine_SSLINCLUDE="/usr/include/openssl"
17144 alpine_SSLLIB="/usr/lib"
17145 elif test -d /etc/osso-af-init ; then
17146 alpine_SSLTYPE="nopwd"
17147 alpine_SSLDIR="/usr"
17148 alpine_SSLCERTS="/usr/share/certs"
17149 alpine_SSLINCLUDE="/usr/include/openssl"
17150 alpine_SSLLIB="/usr/lib"
17151 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17152 if test ! -d /etc/osso-af-init ; then
17153 alpine_SSLDIR="/etc/ssl"
17154 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17155 alpine_SSLKEYS="$alpine_SSLDIR/private"
17156 alpine_SSLINCLUDE="/usr/include/openssl"
17157 alpine_SSLLIB="/usr/lib"
17159 elif test -f /etc/manjaro-release ; then
17160 alpine_SSLDIR="/etc/ssl"
17161 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17162 alpine_SSLKEYS="$alpine_SSLDIR/private"
17163 alpine_SSLINCLUDE="/usr/include/openssl"
17164 alpine_SSLLIB="/usr/lib"
17165 else
17166 alpine_SSLTYPE="nopwd"
17167 alpine_SSLDIR="/usr"
17168 alpine_SSLCERTS="/etc/ssl/certs"
17171 *-apple-darwin*)
17172 alpine_SSLTYPE="nopwd"
17173 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17174 if test -d /usr/local/opt/openssl ; then
17175 alpine_SSLDIR="/usr/local/opt/openssl"
17176 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17177 alpine_SSLLIB="$alpine_SSLDIR/lib"
17178 alpine_SSLCERTS="/usr/local/etc/openssl"
17179 alpine_SSLKEYS="$alpine_SSLDIR/private"
17180 elif test -d /opt/local/etc/openssl ; then
17181 alpine_SSLDIR="/opt/local"
17182 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17183 alpine_SSLLIB="$alpine_SSLDIR/lib"
17184 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17185 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17186 elif test -d /sw/etc/ssl ; then
17187 alpine_SSLDIR="/sw/etc/ssl"
17188 alpine_SSLINCLUDE="/sw/include"
17189 alpine_SSLLIB="/sw/lib"
17190 alpine_SSLCERTS="/sw/etc/ssl/certs"
17191 alpine_SSLKEYS="/sw/etc/ssl/private"
17192 elif test -d /usr/local/ssl ; then
17193 alpine_SSLDIR="/usr/local/ssl"
17194 elif test -d /System/Library/OpenSSL ; then
17195 alpine_SSLDIR="/System/Library/OpenSSL"
17196 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17197 alpine_SSLKEYS="$alpine_SSLDIR/private"
17198 alpine_SSLLIB="/usr/lib"
17199 alpine_SSLINCLUDE="/usr/include/openssl"
17202 *-*-netbsd*)
17203 alpine_SSLDIR="/etc/openssl"
17204 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17205 alpine_SSLKEYS="$alpine_SSLDIR/private"
17206 alpine_SSLINCLUDE="/usr/include/openssl"
17207 alpine_SSLLIB="/usr/lib"
17209 *-*-dragonfly*)
17210 alpine_SSLDIR="/etc/openssl"
17211 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17212 alpine_SSLKEYS="$alpine_SSLDIR/private"
17213 alpine_SSLINCLUDE="/usr/include/openssl"
17214 alpine_SSLLIB="/usr/lib"
17216 *-openbsd*)
17217 alpine_SSLTYPE="nopwd"
17218 alpine_SSLDIR="/usr"
17219 alpine_SSLCERTS="/etc/ssl/certs"
17221 *-*-freebsd*)
17222 alpine_SSLDIR="/etc/ssl"
17223 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17224 alpine_SSLKEYS="$alpine_SSLDIR/private"
17225 if test -d /usr/local/include/openssl ; then
17226 alpine_SSLINCLUDE="/usr/local/include/openssl"
17227 alpine_SSLLIB="/usr/local/lib"
17228 else
17229 alpine_SSLINCLUDE="/usr/include/openssl"
17230 alpine_SSLLIB="/usr/lib"
17233 *-*-openbsd*)
17234 alpine_SSLDIR="/etc/ssl"
17235 alpine_SSLINCLUDE="/usr/include/openssl"
17236 alpine_SSLLIB="/usr/lib"
17237 alpine_SSLCERTS="/etc/ssl"
17238 alpine_SSLKEYS="/etc/ssl/private"
17240 *-*-cygwin)
17241 alpine_SSLDIR="/usr/ssl"
17242 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17243 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17244 alpine_SSLINCLUDE="/usr/include/openssl"
17245 alpine_SSLLIB="/usr/lib"
17247 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17248 alpine_SSLTYPE="sco.nopwd"
17249 alpine_SSLDIR="/usr/local/ssl"
17251 *-*-solaris*)
17252 if test -d /usr/include/openssl ; then
17253 alpine_SSLINCLUDE="/usr/include/openssl"
17254 elif test -d /usr/sfw/include/openssl ; then
17255 alpine_SSLDIR="/usr/sfw"
17256 elif test -d /opt/csw/include/openssl ; then
17257 alpine_SSLDIR="/opt/csw"
17258 if test -d /opt/csw/ssl/certs ; then
17259 alpine_SSLCERTS="/opt/csw/ssl/certs"
17262 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17263 alpine_SSLCERTS="/etc/certs"
17267 alpine_SSLTYPE="nopwd"
17268 alpine_SSLDIR="/usr/local/ssl"
17270 esac
17273 if test "x$alpine_SSLTYPE" != "xnone" ; then
17275 # Check whether --with-ssl-dir was given.
17276 if test "${with_ssl_dir+set}" = set; then :
17277 withval=$with_ssl_dir;
17278 if test "x$withval" != "xno" ; then
17279 alpine_SSLDIR=$withval
17280 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17281 alpine_SSLLIB=$alpine_SSLDIR/lib
17288 # Check whether --with-ssl-certs-dir was given.
17289 if test "${with_ssl_certs_dir+set}" = set; then :
17290 withval=$with_ssl_certs_dir;
17291 if test "x$withval" != "xno" ; then
17292 alpine_SSLCERTS=$withval
17299 # Check whether --with-ssl-include-dir was given.
17300 if test "${with_ssl_include_dir+set}" = set; then :
17301 withval=$with_ssl_include_dir;
17302 if test "x$withval" != "xno" ; then
17303 alpine_SSLINCLUDE=$withval
17310 # Check whether --with-ssl-lib-dir was given.
17311 if test "${with_ssl_lib_dir+set}" = set; then :
17312 withval=$with_ssl_lib_dir;
17313 if test "x$withval" != "xno" ; then
17314 alpine_SSLLIB=$withval
17320 if test -n "$alpine_SSLINCLUDE" ; then
17321 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17322 elif test -n "$alpine_SSLDIR" ; then
17323 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17325 if test -n "$alpine_SSLLIB" ; then
17326 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17327 elif test -n "$alpine_SSLDIR" ; then
17328 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17332 if test "x$alpine_SSLTYPE" != "xnone" ; then
17333 alpine_default_SSLMIN="no_min"
17334 alpine_default_SSLMAX="no_max"
17335 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17336 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17337 alpine_SSLMIN="$alpine_default_SSLMIN"
17338 alpine_SSLMAX="$alpine_default_SSLMAX"
17339 alpine_RANGE="$alpine_default_RANGE"
17341 # Check whether --with-encryption-minimum-version was given.
17342 if test "${with_encryption_minimum_version+set}" = set; then :
17343 withval=$with_encryption_minimum_version;
17344 if test "x$withval" != "xno" ; then
17345 alpine_SSLMIN=$withval
17351 # Check whether --with-encryption-maximum-version was given.
17352 if test "${with_encryption_maximum_version+set}" = set; then :
17353 withval=$with_encryption_maximum_version;
17354 if test "x$withval" != "xno" ; then
17355 alpine_SSLMAX=$withval
17360 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17361 for range in ${alpine_RANGE} ; do
17362 for encryption in ${alpine_ENCRYPTION} ; do
17363 if test "x$range" = "x$encryption" ; then
17364 if test -z $alpine_min ; then
17365 alpine_min="yes"
17366 else
17367 alpine_max="yes"
17370 done
17371 done
17373 if test -z $alpine_max ; then
17374 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17377 if test -z $alpine_min ; then
17378 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17381 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17382 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17383 if test -n "$alpine_RANGE_FEASIBLE" ; then
17384 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17385 else
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17387 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17388 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17390 else
17391 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17393 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17394 alpine_SSLMAX="$alpine_default_SSLMAX"
17396 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17398 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17399 alpine_SSLMIN="$alpine_default_SSLMIN"
17401 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17404 dpv=$alpine_RANGE
17406 # Check whether --with-encryption-range was given.
17407 if test "${with_encryption_range+set}" = set; then :
17408 withval=$with_encryption_range;
17409 if test "x$withval" != "xno" ; then
17410 dpv=$withval
17416 cat >>confdefs.h <<_ACEOF
17417 #define DF_ENCRYPTION_RANGE "$dpv"
17418 _ACEOF
17424 # Check whether --with-krb5 was given.
17425 if test "${with_krb5+set}" = set; then :
17426 withval=$with_krb5; with_krb5=$withval
17430 if test "x$with_krb5" = "xno" ; then
17431 alpine_GSSTYPE="none"
17432 else
17433 alpine_GSSTYPE=
17436 # Check whether --with-krb5-dir was given.
17437 if test "${with_krb5_dir+set}" = set; then :
17438 withval=$with_krb5_dir;
17439 if test "x$withval" != "xno" ; then
17440 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17441 LDFLAGS="$LDFLAGS -L${withval}/lib"
17448 # Check whether --with-krb5-include-dir was given.
17449 if test "${with_krb5_include_dir+set}" = set; then :
17450 withval=$with_krb5_include_dir;
17451 if test "x$withval" != "xno" ; then
17452 CPPFLAGS="$CPPFLAGS -I$withval"
17459 # Check whether --with-krb5-lib-dir was given.
17460 if test "${with_krb5_lib_dir+set}" = set; then :
17461 withval=$with_krb5_lib_dir;
17462 if test "x$withval" != "xno" ; then
17463 LDFLAGS="$LDFLAGS -L$withval"
17471 # Check whether --with-ldap was given.
17472 if test "${with_ldap+set}" = set; then :
17473 withval=$with_ldap; with_ldap=$withval
17477 if test "x$with_ldap" = "xno" ; then
17478 alpine_with_ldap=
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17480 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17481 else
17483 case $host in
17484 *-*-freebsd*)
17485 alpine_LDAPDIR="/usr/local"
17486 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17487 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17489 esac;
17491 alpine_with_ldap=yes
17494 # Check whether --with-ldap-dir was given.
17495 if test "${with_ldap_dir+set}" = set; then :
17496 withval=$with_ldap_dir;
17497 if test "x$withval" != "xno" ; then
17498 alpine_LDAPDIR="${withval}"
17499 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17500 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17507 # Check whether --with-ldap-include-dir was given.
17508 if test "${with_ldap_include_dir+set}" = set; then :
17509 withval=$with_ldap_include_dir;
17510 if test "x$withval" != "xno" ; then
17511 alpine_LDAPINCLUDE="$withval"
17518 # Check whether --with-ldap-lib-dir was given.
17519 if test "${with_ldap_lib_dir+set}" = set; then :
17520 withval=$with_ldap_lib_dir;
17521 if test "x$withval" != "xno" ; then
17522 alpine_LDAPLIB="${withval}"
17528 if test -n "$alpine_LDAPINCLUDE" ; then
17529 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17531 if test -n "$alpine_LDAPLIB" ; then
17532 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17537 # Check whether --with-smime was given.
17538 if test "${with_smime+set}" = set; then :
17539 withval=$with_smime; with_smime=$withval
17544 # Check whether --with-tcl was given.
17545 if test "${with_tcl+set}" = set; then :
17546 withval=$with_tcl; with_tcl=$withval
17550 if test "x$with_tcl" = "xno" ; then
17551 WEB_BUILD=
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17553 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17554 else
17556 # Check whether --with-tcl-lib-dir was given.
17557 if test "${with_tcl_lib_dir+set}" = set; then :
17558 withval=$with_tcl_lib_dir;
17559 if test "x$withval" != "xno" ; then
17560 alpine_TCLLIBDIR=$withval
17561 if test -n "$alpine_TCLLIBDIR" ; then
17562 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17569 # Check whether --with-tcl-lib was given.
17570 if test "${with_tcl_lib+set}" = set; then :
17571 withval=$with_tcl_lib;
17572 if test "x$withval" != "xno" ; then
17573 alpine_TCLLIB=$withval
17579 # Check whether --with-tcl-include was given.
17580 if test "${with_tcl_include+set}" = set; then :
17581 withval=$with_tcl_include;
17582 if test "x$withval" != "xno" ; then
17583 CPPFLAGS="$CPPFLAGS -I$withval"
17584 alpine_TCLINC=$withval
17592 # Check whether --with-supplied-regex was given.
17593 if test "${with_supplied_regex+set}" = set; then :
17594 withval=$with_supplied_regex; alpine_REGEX=$withval
17599 # Check whether --with-pthread was given.
17600 if test "${with_pthread+set}" = set; then :
17601 withval=$with_pthread; with_pthread=$withval
17606 # Check whether --with-system-mail-directory was given.
17607 if test "${with_system_mail_directory+set}" = set; then :
17608 withval=$with_system_mail_directory;
17609 if test "x$withval" != "xno" ; then
17610 alpine_with_local_maildir="$withval"
17617 # Check whether --with-c-client-target was given.
17618 if test "${with_c_client_target+set}" = set; then :
17619 withval=$with_c_client_target;
17620 if test "x$withval" != "xno" ;then
17621 alpine_with_c_client_target="$withval"
17628 alpine_c_client_bundled="no"
17630 # Check whether --with-bundled-tools was given.
17631 if test "${with_bundled_tools+set}" = set; then :
17632 withval=$with_bundled_tools;
17633 if test "x$withval" = "xyes" ; then
17634 alpine_c_client_bundled=""
17640 alpine_PAM="none"
17642 case "$host" in
17643 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17644 alpine_path_delim="/"
17645 alpine_mode_readonly="(0600)"
17646 if test -f /etc/fedora-release ; then
17647 systype="LFD"
17648 alpine_PAM="yes"
17649 if test -d /etc/pki/tls ; then
17650 alpine_c_client_target="lfd"
17651 else
17652 alpine_c_client_target="lrh"
17654 elif test -f /etc/mandrake-release ; then
17655 systype="LMD"
17656 alpine_c_client_target="lmd"
17657 alpine_PAM="yes"
17658 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17659 systype="LRH"
17660 alpine_PAM="yes"
17661 if test -d /etc/pki/tls ; then
17662 alpine_c_client_target="lr5"
17663 else
17664 alpine_c_client_target="lrh"
17666 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17667 if test -d /etc/osso-af-init ; then
17668 systype="LN8"
17669 alpine_c_client_target="ln8"
17670 else
17671 systype="DEB"
17672 alpine_c_client_target="ldb"
17673 alpine_PAM="yes"
17675 elif test -f /etc/SuSE-release; then
17676 systype="LSU"
17677 alpine_c_client_target="lsu"
17678 alpine_PAM="yes"
17679 else
17680 systype="LNX"
17681 if test -z "$alpine_c_client_bundled" ; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17683 $as_echo_n "checking for am_start in -lpam... " >&6; }
17684 if ${ac_cv_lib_pam_am_start+:} false; then :
17685 $as_echo_n "(cached) " >&6
17686 else
17687 ac_check_lib_save_LIBS=$LIBS
17688 LIBS="-lpam $LIBS"
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17692 /* Override any GCC internal prototype to avoid an error.
17693 Use char because int might match the return type of a GCC
17694 builtin and then its argument prototype would still apply. */
17695 #ifdef __cplusplus
17696 extern "C"
17697 #endif
17698 char am_start ();
17700 main ()
17702 return am_start ();
17704 return 0;
17706 _ACEOF
17707 if ac_fn_c_try_link "$LINENO"; then :
17708 ac_cv_lib_pam_am_start=yes
17709 else
17710 ac_cv_lib_pam_am_start=no
17712 rm -f core conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17714 LIBS=$ac_check_lib_save_LIBS
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17717 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17718 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17720 alpine_c_client_target="lnp"
17721 alpine_PAM="yes"
17723 else
17725 if test -f /etc/shadow ; then
17726 alpine_c_client_target="slx"
17727 else
17728 alpine_c_client_target="lnx"
17733 else
17734 if test -f /etc/shadow ; then
17735 alpine_c_client_target="slx"
17736 else
17737 alpine_c_client_target="lnx"
17742 *-apple-darwin*)
17743 systype="OSX"
17744 alpine_path_delim="/"
17745 alpine_mode_readonly="(0600)"
17746 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17747 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17749 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17751 case "$alpine_os_credential_cache" in
17756 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17759 esac
17760 if test -z "$alpine_c_client_bundled" ; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17762 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17763 if ${ac_cv_lib_pam_pam_start+:} false; then :
17764 $as_echo_n "(cached) " >&6
17765 else
17766 ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-lpam $LIBS"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 char pam_start ();
17779 main ()
17781 return pam_start ();
17783 return 0;
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 ac_cv_lib_pam_pam_start=yes
17788 else
17789 ac_cv_lib_pam_pam_start=no
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LIBS=$ac_check_lib_save_LIBS
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17796 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17797 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17799 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17800 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17802 alpine_PAM="yes"
17803 alpine_c_client_target="oxs"
17805 else
17806 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17807 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17809 alpine_PAM="yes"
17810 alpine_c_client_target="oxp"
17812 else
17814 alpine_PAM="none"
17815 alpine_pam_none_reason="header files not found"
17825 else
17827 alpine_c_client_target="osx"
17831 else
17832 alpine_c_client_target="osx"
17835 *-*-solaris*)
17836 if test x$GCC = "xyes" ; then
17837 systype="GSO"
17838 alpine_c_client_target="gso"
17839 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17840 else
17841 systype="SOC"
17842 alpine_c_client_target="soc"
17844 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17847 alpine_path_delim="/"
17848 alpine_mode_readonly="(0600)"
17850 *-*-sunos4*)
17851 systype="SUN"
17852 alpine_path_delim="/"
17853 alpine_mode_readonly="(0600)"
17854 alpine_c_client_target="s40"
17856 *-*-sco3.2v5*)
17857 if test x$GCC = "xyes" ; then
17858 systype="GO5"
17859 alpine_c_client_target="go5"
17860 else
17861 systype="SC5"
17862 alpine_c_client_target="sc5"
17864 alpine_path_delim="/"
17865 alpine_mode_readonly="(0600)"
17867 *-next-*)
17868 systype="NXT"
17869 alpine_path_delim="/"
17870 alpine_mode_readonly="(0600)"
17871 alpine_c_client_target="nx3"
17873 *-*-netbsd*)
17874 systype="NEB"
17875 alpine_path_delim="/"
17876 alpine_mode_readonly="(0600)"
17877 alpine_c_client_target="neb"
17879 *-*-dragonfly*)
17880 systype="DFB"
17881 alpine_path_delim="/"
17882 alpine_mode_readonly="(0600)"
17883 alpine_c_client_target="neb"
17885 *-*-bsdi*)
17886 systype="BSI"
17887 alpine_path_delim="/"
17888 alpine_mode_readonly="(0600)"
17889 alpine_c_client_target="bsi"
17891 *-*-freebsd*)
17892 systype="BSF"
17893 alpine_path_delim="/"
17894 alpine_mode_readonly="(0600)"
17895 alpine_c_client_target="bsf"
17896 LIBS="$LIBS $LIBINTL"
17898 *-*-openbsd*)
17899 systype="BSO"
17900 alpine_path_delim="/"
17901 alpine_mode_readonly="(0600)"
17902 alpine_c_client_target="bso"
17903 LIBS="$LIBS $LIBINTL"
17905 *-*-aix5*)
17906 systype="A52"
17907 alpine_path_delim="/"
17908 alpine_mode_readonly="(0600)"
17909 alpine_c_client_target="a52"
17911 *-*-aix4*)
17912 systype="A41"
17913 alpine_path_delim="/"
17914 alpine_mode_readonly="(0600)"
17915 alpine_c_client_target="a41"
17917 *-*-aix3*)
17918 systype="A32"
17919 alpine_path_delim="/"
17920 alpine_mode_readonly="(0600)"
17921 alpine_c_client_target="a32"
17923 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17924 systype="UW2"
17925 alpine_path_delim="/"
17926 alpine_mode_readonly="(0600)"
17927 alpine_c_client_target="uw2"
17929 *-*-osf5*)
17930 systype="OSF"
17931 alpine_path_delim="/"
17932 alpine_mode_readonly="(0600)"
17933 alpine_c_client_target="osf"
17935 *-*-cygwin)
17936 systype="CYG"
17937 alpine_path_delim="/"
17938 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17939 alpine_c_client_target="cyg"
17940 LIBS="$LIBS $LIBINTL"
17942 windows* | *-*-pw32*)
17943 systype="WNT"
17944 alpine_path_delim="\\"
17945 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17946 alpine_c_client_target="wnt"
17948 $as_echo "#define _WINDOWS 1" >>confdefs.h
17952 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17954 esac
17957 # Check whether --with-ipv6 was given.
17958 if test "${with_ipv6+set}" = set; then :
17959 withval=$with_ipv6; with_ipv6=$withval
17963 if test "x$with_ipv6" = "xno" ; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17965 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17966 c_client_specials="${c_client_specials}IP6=4 "
17967 c_client_ip6="true"
17968 else
17969 c_client_ip6="touch imap/ip6"
17974 if test x$enable_dmalloc = "xyes" ; then
17975 if test "x$with_pthread" = "xyes" ; then
17976 dmalloc_lib=dmallocth
17977 else
17978 dmalloc_lib=dmalloc
17981 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17983 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17984 if eval \${$as_ac_Lib+:} false; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 ac_check_lib_save_LIBS=$LIBS
17988 LIBS="-l$dmalloc_lib $LIBS"
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17992 /* Override any GCC internal prototype to avoid an error.
17993 Use char because int might match the return type of a GCC
17994 builtin and then its argument prototype would still apply. */
17995 #ifdef __cplusplus
17996 extern "C"
17997 #endif
17998 char dmalloc_shutdown ();
18000 main ()
18002 return dmalloc_shutdown ();
18004 return 0;
18006 _ACEOF
18007 if ac_fn_c_try_link "$LINENO"; then :
18008 eval "$as_ac_Lib=yes"
18009 else
18010 eval "$as_ac_Lib=no"
18012 rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18014 LIBS=$ac_check_lib_save_LIBS
18016 eval ac_res=\$$as_ac_Lib
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18018 $as_echo "$ac_res" >&6; }
18019 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18020 cat >>confdefs.h <<_ACEOF
18021 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18022 _ACEOF
18024 LIBS="-l$dmalloc_lib $LIBS"
18026 else
18028 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18035 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18036 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18037 $as_echo_n "(cached) " >&6
18038 else
18039 ac_check_lib_save_LIBS=$LIBS
18040 LIBS="-ltinfo $LIBS"
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18044 /* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18047 #ifdef __cplusplus
18048 extern "C"
18049 #endif
18050 char setupterm ();
18052 main ()
18054 return setupterm ();
18056 return 0;
18058 _ACEOF
18059 if ac_fn_c_try_link "$LINENO"; then :
18060 ac_cv_lib_tinfo_setupterm=yes
18061 else
18062 ac_cv_lib_tinfo_setupterm=no
18064 rm -f core conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18069 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18070 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18072 alpine_termdata=info
18073 LIBS="$LIBS -ltinfo"
18075 else
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18078 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18079 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18082 ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lncurses $LIBS"
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 char setupterm ();
18095 main ()
18097 return setupterm ();
18099 return 0;
18101 _ACEOF
18102 if ac_fn_c_try_link "$LINENO"; then :
18103 ac_cv_lib_ncurses_setupterm=yes
18104 else
18105 ac_cv_lib_ncurses_setupterm=no
18107 rm -f core conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18109 LIBS=$ac_check_lib_save_LIBS
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18112 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18113 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18115 alpine_termdata=info
18116 LIBS="$LIBS -lncurses"
18118 else
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18121 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18122 if ${ac_cv_lib_curses_setupterm+:} false; then :
18123 $as_echo_n "(cached) " >&6
18124 else
18125 ac_check_lib_save_LIBS=$LIBS
18126 LIBS="-lcurses $LIBS"
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 char setupterm ();
18138 main ()
18140 return setupterm ();
18142 return 0;
18144 _ACEOF
18145 if ac_fn_c_try_link "$LINENO"; then :
18146 ac_cv_lib_curses_setupterm=yes
18147 else
18148 ac_cv_lib_curses_setupterm=no
18150 rm -f core conftest.err conftest.$ac_objext \
18151 conftest$ac_exeext conftest.$ac_ext
18152 LIBS=$ac_check_lib_save_LIBS
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18155 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18156 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18158 alpine_termdata=info
18159 LIBS="$LIBS -lcurses"
18161 else
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18164 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18165 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18166 $as_echo_n "(cached) " >&6
18167 else
18168 ac_check_lib_save_LIBS=$LIBS
18169 LIBS="-ltermlib $LIBS"
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18173 /* Override any GCC internal prototype to avoid an error.
18174 Use char because int might match the return type of a GCC
18175 builtin and then its argument prototype would still apply. */
18176 #ifdef __cplusplus
18177 extern "C"
18178 #endif
18179 char tgetent ();
18181 main ()
18183 return tgetent ();
18185 return 0;
18187 _ACEOF
18188 if ac_fn_c_try_link "$LINENO"; then :
18189 ac_cv_lib_termlib_tgetent=yes
18190 else
18191 ac_cv_lib_termlib_tgetent=no
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18198 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18199 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18201 alpine_termdata=cap
18202 LIBS="$LIBS -ltermlib"
18204 else
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18207 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18208 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18209 $as_echo_n "(cached) " >&6
18210 else
18211 ac_check_lib_save_LIBS=$LIBS
18212 LIBS="-ltermcap $LIBS"
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char tgetent ();
18224 main ()
18226 return tgetent ();
18228 return 0;
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"; then :
18232 ac_cv_lib_termcap_tgetent=yes
18233 else
18234 ac_cv_lib_termcap_tgetent=no
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 LIBS=$ac_check_lib_save_LIBS
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18241 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18242 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18244 alpine_termdata=cap
18245 LIBS="$LIBS -ltermcap"
18247 else
18249 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18265 case $alpine_termdata in
18266 info)
18268 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18271 cap)
18273 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18276 esac
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18279 $as_echo_n "checking for library containing dlopen... " >&6; }
18280 if ${ac_cv_search_dlopen+:} false; then :
18281 $as_echo_n "(cached) " >&6
18282 else
18283 ac_func_search_save_LIBS=$LIBS
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char dlopen ();
18295 main ()
18297 return dlopen ();
18299 return 0;
18301 _ACEOF
18302 for ac_lib in '' dl dld; do
18303 if test -z "$ac_lib"; then
18304 ac_res="none required"
18305 else
18306 ac_res=-l$ac_lib
18307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18309 if ac_fn_c_try_link "$LINENO"; then :
18310 ac_cv_search_dlopen=$ac_res
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext
18314 if ${ac_cv_search_dlopen+:} false; then :
18315 break
18317 done
18318 if ${ac_cv_search_dlopen+:} false; then :
18320 else
18321 ac_cv_search_dlopen=no
18323 rm conftest.$ac_ext
18324 LIBS=$ac_func_search_save_LIBS
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18327 $as_echo "$ac_cv_search_dlopen" >&6; }
18328 ac_res=$ac_cv_search_dlopen
18329 if test "$ac_res" != no; then :
18330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18332 else
18333 alpine_DL="none"
18336 if test "x$alpine_DL" = "xnone" ; then
18337 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18338 exit 1
18341 if test "x$alpine_SSLTYPE" != "xnone" ; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18343 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 #include <stdio.h>
18348 #include <stdlib.h>
18349 #if HAVE_STDINT_H
18350 #include <stdint.h>
18351 #endif /* HAVE_STDINT_H */
18352 #include <openssl/ssl.h>
18355 main ()
18358 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18359 #error
18360 #endif
18363 return 0;
18365 _ACEOF
18366 if ac_fn_c_try_compile "$LINENO"; then :
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368 $as_echo "yes" >&6; }
18369 alpine_SSLPROVIDER="libressl"
18371 else
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18381 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18385 #include <stdio.h>
18386 #include <stdlib.h>
18387 #if HAVE_STDINT_H
18388 #include <stdint.h>
18389 #endif /* HAVE_STDINT_H */
18390 #include <openssl/ssl.h>
18393 main ()
18396 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18397 #error
18398 #endif
18401 return 0;
18403 _ACEOF
18404 if ac_fn_c_try_compile "$LINENO"; then :
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 alpine_SSLPROVIDER="openssl"
18409 else
18410 alpine_SSLTYPE="none"
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 if test "x$alpine_SSLTYPE" = "xnone" ; then
18415 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18416 exit 1
18420 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18422 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 #include <stdio.h>
18427 #include <stdlib.h>
18428 #if HAVE_STDINT_H
18429 #include <stdint.h>
18430 #endif /* HAVE_STDINT_H */
18431 #include <openssl/ssl.h>
18434 main ()
18437 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18438 #error
18439 #endif
18442 return 0;
18444 _ACEOF
18445 if ac_fn_c_try_compile "$LINENO"; then :
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18447 $as_echo "yes" >&6; }
18448 alpine_SSLVERSION="new"
18449 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18451 else
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18453 $as_echo "no" >&6; }
18454 alpine_SSLVERSION="old"
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 if test "x$alpine_SSLTYPE" != "xnone" ; then
18460 if test "x$alpine_SSLVERSION" = "xold" ; then
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18462 $as_echo_n "checking for library containing SSLeay... " >&6; }
18463 if ${ac_cv_search_SSLeay+:} false; then :
18464 $as_echo_n "(cached) " >&6
18465 else
18466 ac_func_search_save_LIBS=$LIBS
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18470 /* Override any GCC internal prototype to avoid an error.
18471 Use char because int might match the return type of a GCC
18472 builtin and then its argument prototype would still apply. */
18473 #ifdef __cplusplus
18474 extern "C"
18475 #endif
18476 char SSLeay ();
18478 main ()
18480 return SSLeay ();
18482 return 0;
18484 _ACEOF
18485 for ac_lib in '' crypto; do
18486 if test -z "$ac_lib"; then
18487 ac_res="none required"
18488 else
18489 ac_res=-l$ac_lib
18490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18492 if ac_fn_c_try_link "$LINENO"; then :
18493 ac_cv_search_SSLeay=$ac_res
18495 rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext
18497 if ${ac_cv_search_SSLeay+:} false; then :
18498 break
18500 done
18501 if ${ac_cv_search_SSLeay+:} false; then :
18503 else
18504 ac_cv_search_SSLeay=no
18506 rm conftest.$ac_ext
18507 LIBS=$ac_func_search_save_LIBS
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18510 $as_echo "$ac_cv_search_SSLeay" >&6; }
18511 ac_res=$ac_cv_search_SSLeay
18512 if test "$ac_res" != no; then :
18513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18515 else
18516 alpine_CRYPTO="none"
18519 else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18521 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18522 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 ac_func_search_save_LIBS=$LIBS
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char OpenSSL_version_num ();
18537 main ()
18539 return OpenSSL_version_num ();
18541 return 0;
18543 _ACEOF
18544 for ac_lib in '' crypto; do
18545 if test -z "$ac_lib"; then
18546 ac_res="none required"
18547 else
18548 ac_res=-l$ac_lib
18549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18551 if ac_fn_c_try_link "$LINENO"; then :
18552 ac_cv_search_OpenSSL_version_num=$ac_res
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext
18556 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18557 break
18559 done
18560 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18562 else
18563 ac_cv_search_OpenSSL_version_num=no
18565 rm conftest.$ac_ext
18566 LIBS=$ac_func_search_save_LIBS
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18569 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18570 ac_res=$ac_cv_search_OpenSSL_version_num
18571 if test "$ac_res" != no; then :
18572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18574 else
18575 alpine_CRYPTO="none"
18579 if test "x$alpine_CRYPTO" = "xnone" ; then
18580 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18581 exit 1
18583 case $host in
18584 *-*-cygwin)
18585 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18586 if test "x$ac_cv_header_crypto_h" = xyes; then :
18588 else
18589 alpine_CRYPTO_DEVEL="none"
18593 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18594 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
18595 exit 1
18598 *) ;;
18599 esac
18602 if test "x$alpine_SSLTYPE" != "xnone" ; then
18603 if test "x$alpine_SSLVERSION" = "xold" ; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18605 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18606 if ${ac_cv_search_SSL_library_init+:} false; then :
18607 $as_echo_n "(cached) " >&6
18608 else
18609 ac_func_search_save_LIBS=$LIBS
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 /* Override any GCC internal prototype to avoid an error.
18614 Use char because int might match the return type of a GCC
18615 builtin and then its argument prototype would still apply. */
18616 #ifdef __cplusplus
18617 extern "C"
18618 #endif
18619 char SSL_library_init ();
18621 main ()
18623 return SSL_library_init ();
18625 return 0;
18627 _ACEOF
18628 for ac_lib in '' ssl; do
18629 if test -z "$ac_lib"; then
18630 ac_res="none required"
18631 else
18632 ac_res=-l$ac_lib
18633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 ac_cv_search_SSL_library_init=$ac_res
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext
18640 if ${ac_cv_search_SSL_library_init+:} false; then :
18641 break
18643 done
18644 if ${ac_cv_search_SSL_library_init+:} false; then :
18646 else
18647 ac_cv_search_SSL_library_init=no
18649 rm conftest.$ac_ext
18650 LIBS=$ac_func_search_save_LIBS
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18653 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18654 ac_res=$ac_cv_search_SSL_library_init
18655 if test "$ac_res" != no; then :
18656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18658 else
18659 alpine_SSLTYPE="none"
18662 if test "x$alpine_SSLTYPE" = "xnone" ; then
18663 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18664 exit 1
18666 else
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18668 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18669 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18670 $as_echo_n "(cached) " >&6
18671 else
18672 ac_func_search_save_LIBS=$LIBS
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 char OPENSSL_init_ssl ();
18684 main ()
18686 return OPENSSL_init_ssl ();
18688 return 0;
18690 _ACEOF
18691 for ac_lib in '' ssl; do
18692 if test -z "$ac_lib"; then
18693 ac_res="none required"
18694 else
18695 ac_res=-l$ac_lib
18696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18698 if ac_fn_c_try_link "$LINENO"; then :
18699 ac_cv_search_OPENSSL_init_ssl=$ac_res
18701 rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext
18703 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18704 break
18706 done
18707 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18709 else
18710 ac_cv_search_OPENSSL_init_ssl=no
18712 rm conftest.$ac_ext
18713 LIBS=$ac_func_search_save_LIBS
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18716 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18717 ac_res=$ac_cv_search_OPENSSL_init_ssl
18718 if test "$ac_res" != no; then :
18719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18721 else
18722 alpine_SSLTYPE="none"
18725 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18726 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18727 exit 1
18732 if test "$alpine_with_ldap" = "yes" ; then
18733 alpine_has_ldap=
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18735 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18736 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18737 $as_echo_n "(cached) " >&6
18738 else
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-llber $LIBS"
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char ber_alloc ();
18752 main ()
18754 return ber_alloc ();
18756 return 0;
18758 _ACEOF
18759 if ac_fn_c_try_link "$LINENO"; then :
18760 ac_cv_lib_lber_ber_alloc=yes
18761 else
18762 ac_cv_lib_lber_ber_alloc=no
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18766 LIBS=$ac_check_lib_save_LIBS
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18769 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18770 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18772 LIBS="$LIBS -llber"
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18777 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18778 if ${ac_cv_search_ldap_initialize+:} false; then :
18779 $as_echo_n "(cached) " >&6
18780 else
18781 ac_func_search_save_LIBS=$LIBS
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char ldap_initialize ();
18793 main ()
18795 return ldap_initialize ();
18797 return 0;
18799 _ACEOF
18800 for ac_lib in '' ldap; do
18801 if test -z "$ac_lib"; then
18802 ac_res="none required"
18803 else
18804 ac_res=-l$ac_lib
18805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18807 if ac_fn_c_try_link "$LINENO"; then :
18808 ac_cv_search_ldap_initialize=$ac_res
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext
18812 if ${ac_cv_search_ldap_initialize+:} false; then :
18813 break
18815 done
18816 if ${ac_cv_search_ldap_initialize+:} false; then :
18818 else
18819 ac_cv_search_ldap_initialize=no
18821 rm conftest.$ac_ext
18822 LIBS=$ac_func_search_save_LIBS
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18825 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18826 ac_res=$ac_cv_search_ldap_initialize
18827 if test "$ac_res" != no; then :
18828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18830 alpine_has_ldap=yes
18832 else
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18835 $as_echo_n "checking for library containing ldap_open... " >&6; }
18836 if ${ac_cv_search_ldap_open+:} false; then :
18837 $as_echo_n "(cached) " >&6
18838 else
18839 ac_func_search_save_LIBS=$LIBS
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char ldap_open ();
18851 main ()
18853 return ldap_open ();
18855 return 0;
18857 _ACEOF
18858 for ac_lib in '' ldap; do
18859 if test -z "$ac_lib"; then
18860 ac_res="none required"
18861 else
18862 ac_res=-l$ac_lib
18863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18865 if ac_fn_c_try_link "$LINENO"; then :
18866 ac_cv_search_ldap_open=$ac_res
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext
18870 if ${ac_cv_search_ldap_open+:} false; then :
18871 break
18873 done
18874 if ${ac_cv_search_ldap_open+:} false; then :
18876 else
18877 ac_cv_search_ldap_open=no
18879 rm conftest.$ac_ext
18880 LIBS=$ac_func_search_save_LIBS
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18883 $as_echo "$ac_cv_search_ldap_open" >&6; }
18884 ac_res=$ac_cv_search_ldap_open
18885 if test "$ac_res" != no; then :
18886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18888 alpine_has_ldap=yes
18896 if test "$alpine_has_ldap" = "yes" ; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18898 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18900 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18905 if test -z "$alpine_c_client_bundled" ; then
18906 if test "x$alpine_PAM" != "xnone" ; then
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18908 $as_echo_n "checking for library containing pam_start... " >&6; }
18909 if ${ac_cv_search_pam_start+:} false; then :
18910 $as_echo_n "(cached) " >&6
18911 else
18912 ac_func_search_save_LIBS=$LIBS
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18916 /* Override any GCC internal prototype to avoid an error.
18917 Use char because int might match the return type of a GCC
18918 builtin and then its argument prototype would still apply. */
18919 #ifdef __cplusplus
18920 extern "C"
18921 #endif
18922 char pam_start ();
18924 main ()
18926 return pam_start ();
18928 return 0;
18930 _ACEOF
18931 for ac_lib in '' pam; do
18932 if test -z "$ac_lib"; then
18933 ac_res="none required"
18934 else
18935 ac_res=-l$ac_lib
18936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18938 if ac_fn_c_try_link "$LINENO"; then :
18939 ac_cv_search_pam_start=$ac_res
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext
18943 if ${ac_cv_search_pam_start+:} false; then :
18944 break
18946 done
18947 if ${ac_cv_search_pam_start+:} false; then :
18949 else
18950 ac_cv_search_pam_start=no
18952 rm conftest.$ac_ext
18953 LIBS=$ac_func_search_save_LIBS
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18956 $as_echo "$ac_cv_search_pam_start" >&6; }
18957 ac_res=$ac_cv_search_pam_start
18958 if test "$ac_res" != no; then :
18959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18961 LIBS="$LIBS -lpam"
18962 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18963 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18965 alpine_PAM="yes"
18967 else
18968 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18969 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18971 alpine_PAM="yes"
18972 if test "x$alpine_c_client_target" != "xoxp" ; then
18973 alpine_PAM="none"
18974 alpine_pam_none_reason="header files not in security/ directory"
18977 else
18979 alpine_PAM="none"
18980 alpine_pam_none_reason="header files not found"
18990 else
18992 alpine_PAM="none"
18993 alpine_pam_none_reason="library files not found"
18997 if test -n "$alpine_pam_none_reason" ; then
18998 as_fn_error or do not use --with-bundled-tools "Trying to build bundled tools but could not find libpam. Install it first and try again" "$LINENO" 5
19003 if test -n "$alpine_c_client_bundled" ; then
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19005 $as_echo_n "checking for library containing crypt... " >&6; }
19006 if ${ac_cv_search_crypt+:} false; then :
19007 $as_echo_n "(cached) " >&6
19008 else
19009 ac_func_search_save_LIBS=$LIBS
19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char crypt ();
19021 main ()
19023 return crypt ();
19025 return 0;
19027 _ACEOF
19028 for ac_lib in '' crypt; do
19029 if test -z "$ac_lib"; then
19030 ac_res="none required"
19031 else
19032 ac_res=-l$ac_lib
19033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 ac_cv_search_crypt=$ac_res
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext
19040 if ${ac_cv_search_crypt+:} false; then :
19041 break
19043 done
19044 if ${ac_cv_search_crypt+:} false; then :
19046 else
19047 ac_cv_search_crypt=no
19049 rm conftest.$ac_ext
19050 LIBS=$ac_func_search_save_LIBS
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19053 $as_echo "$ac_cv_search_crypt" >&6; }
19054 ac_res=$ac_cv_search_crypt
19055 if test "$ac_res" != no; then :
19056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19058 else
19060 as_fn_error $? "crypt library not found." "$LINENO" 5
19066 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19069 if test "x$alpine_GSSTYPE" != "xnone" ; then
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19071 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19072 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19073 $as_echo_n "(cached) " >&6
19074 else
19075 ac_func_search_save_LIBS=$LIBS
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char gss_init_sec_context ();
19087 main ()
19089 return gss_init_sec_context ();
19091 return 0;
19093 _ACEOF
19094 for ac_lib in '' gss gssapi gssapi_krb5; do
19095 if test -z "$ac_lib"; then
19096 ac_res="none required"
19097 else
19098 ac_res=-l$ac_lib
19099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19101 if ac_fn_c_try_link "$LINENO"; then :
19102 ac_cv_search_gss_init_sec_context=$ac_res
19104 rm -f core conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext
19106 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19107 break
19109 done
19110 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19112 else
19113 ac_cv_search_gss_init_sec_context=no
19115 rm conftest.$ac_ext
19116 LIBS=$ac_func_search_save_LIBS
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19119 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19120 ac_res=$ac_cv_search_gss_init_sec_context
19121 if test "$ac_res" != no; then :
19122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19124 LIBS="$LIBS -lkrb5"
19125 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19126 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19128 else
19130 if test ! -d /usr/kerberos/include ; then
19131 alpine_GSSTYPE="none"
19132 alpine_gss_none_reason="header files not found"
19139 else
19141 alpine_GSSTYPE="none"
19142 alpine_gss_none_reason="libraries not found"
19146 if test -n "$alpine_gss_none_reason" ; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19148 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19153 # Check whether --with-ntlm was given.
19154 if test "${with_ntlm+set}" = set; then :
19155 withval=$with_ntlm; with_ntlm=$withval
19159 if test "x$with_ntlm" = "xno" ; then
19160 alpine_NTLM="none"
19161 else
19162 alpine_NTLM=
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19165 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19166 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19167 $as_echo_n "(cached) " >&6
19168 else
19169 ac_func_search_save_LIBS=$LIBS
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char buildSmbNtlmAuthRequest ();
19181 main ()
19183 return buildSmbNtlmAuthRequest ();
19185 return 0;
19187 _ACEOF
19188 for ac_lib in '' ntlm; do
19189 if test -z "$ac_lib"; then
19190 ac_res="none required"
19191 else
19192 ac_res=-l$ac_lib
19193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19195 if ac_fn_c_try_link "$LINENO"; then :
19196 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19198 rm -f core conftest.err conftest.$ac_objext \
19199 conftest$ac_exeext
19200 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19201 break
19203 done
19204 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19206 else
19207 ac_cv_search_buildSmbNtlmAuthRequest=no
19209 rm conftest.$ac_ext
19210 LIBS=$ac_func_search_save_LIBS
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19213 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19214 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19215 if test "$ac_res" != no; then :
19216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19218 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19219 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19221 extra_auth_ntlm=ntl
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19223 $as_echo "$as_me: including NTLM support" >&6;}
19225 else
19227 alpine_NTLM="none"
19228 alpine_ntlm_none_reason="header file ntlm.h not found"
19234 else
19236 alpine_NTLM="none"
19237 alpine_ntlm_none_reason="ntlm library not found"
19241 if test -n "$alpine_ntlm_none_reason" ; then
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19243 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19247 if test -n "$WEB_BUILD" ; then
19248 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19249 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19250 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19251 if test -n "$alpine_TCLINC" ; then
19252 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19253 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19256 else
19258 WEB_BUILD=
19263 if test -z "$WEB_BUILD" ; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19265 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19267 else
19268 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_tcl_h" = xyes; then :
19271 else
19273 for base in /usr /usr/local ; do
19274 for dir in ${TCL_VERSIONS} ; do
19275 if test -f $base/include/$dir/tcl.h ; then
19276 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19277 found=yes
19278 break
19280 done
19281 if test "x$found" = "xyes" ; then
19282 break
19284 done
19285 if test "$found" != "yes" ; then
19286 WEB_BUILD=
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19288 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19295 if test -n "$WEB_BUILD" ; then
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19297 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19298 if ${ac_cv_search_Tcl_Eval+:} false; then :
19299 $as_echo_n "(cached) " >&6
19300 else
19301 ac_func_search_save_LIBS=$LIBS
19302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19303 /* end confdefs.h. */
19305 /* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19308 #ifdef __cplusplus
19309 extern "C"
19310 #endif
19311 char Tcl_Eval ();
19313 main ()
19315 return Tcl_Eval ();
19317 return 0;
19319 _ACEOF
19320 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19321 if test -z "$ac_lib"; then
19322 ac_res="none required"
19323 else
19324 ac_res=-l$ac_lib
19325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19327 if ac_fn_c_try_link "$LINENO"; then :
19328 ac_cv_search_Tcl_Eval=$ac_res
19330 rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext
19332 if ${ac_cv_search_Tcl_Eval+:} false; then :
19333 break
19335 done
19336 if ${ac_cv_search_Tcl_Eval+:} false; then :
19338 else
19339 ac_cv_search_Tcl_Eval=no
19341 rm conftest.$ac_ext
19342 LIBS=$ac_func_search_save_LIBS
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19345 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19346 ac_res=$ac_cv_search_Tcl_Eval
19347 if test "$ac_res" != no; then :
19348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19350 else
19352 WEB_BUILD=
19359 if test "x$alpine_REGEX" != "xyes" ; then
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19361 $as_echo_n "checking for library containing regcomp... " >&6; }
19362 if ${ac_cv_search_regcomp+:} false; then :
19363 $as_echo_n "(cached) " >&6
19364 else
19365 ac_func_search_save_LIBS=$LIBS
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 char regcomp ();
19377 main ()
19379 return regcomp ();
19381 return 0;
19383 _ACEOF
19384 for ac_lib in '' posix regexp regex re; do
19385 if test -z "$ac_lib"; then
19386 ac_res="none required"
19387 else
19388 ac_res=-l$ac_lib
19389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19391 if ac_fn_c_try_link "$LINENO"; then :
19392 ac_cv_search_regcomp=$ac_res
19394 rm -f core conftest.err conftest.$ac_objext \
19395 conftest$ac_exeext
19396 if ${ac_cv_search_regcomp+:} false; then :
19397 break
19399 done
19400 if ${ac_cv_search_regcomp+:} false; then :
19402 else
19403 ac_cv_search_regcomp=no
19405 rm conftest.$ac_ext
19406 LIBS=$ac_func_search_save_LIBS
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19409 $as_echo "$ac_cv_search_regcomp" >&6; }
19410 ac_res=$ac_cv_search_regcomp
19411 if test "$ac_res" != no; then :
19412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19414 else
19416 if test x$alpine_REGEX = "xno" ; then
19417 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19418 else
19419 alpine_REGEX=yes
19425 if test "x$alpine_REGEX" != "xyes" ; then
19426 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19427 if test "x$ac_cv_header_regex_h" = xyes; then :
19429 else
19431 if test x$alpine_REGEX = "xno" ; then
19432 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19433 else
19434 alpine_REGEX=yes
19442 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19444 if test "x$alpine_REGEX" = "xyes" ; then
19445 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19446 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19447 REGEX_BUILD=regex
19448 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19451 if test "x$with_pthread" != "xno" ; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19453 $as_echo_n "checking for pthread support... " >&6; }
19457 ac_ext=c
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463 acx_pthread_ok=no
19465 # We used to check for pthread.h first, but this fails if pthread.h
19466 # requires special compiler flags (e.g. on True64 or Sequent).
19467 # It gets checked for in the link test anyway.
19469 # First of all, check if the user has set any of the PTHREAD_LIBS,
19470 # etcetera environment variables, and if threads linking works using
19471 # them:
19472 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19473 save_CFLAGS="$CFLAGS"
19474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19475 save_LIBS="$LIBS"
19476 LIBS="$PTHREAD_LIBS $LIBS"
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19478 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19482 /* Override any GCC internal prototype to avoid an error.
19483 Use char because int might match the return type of a GCC
19484 builtin and then its argument prototype would still apply. */
19485 #ifdef __cplusplus
19486 extern "C"
19487 #endif
19488 char pthread_join ();
19490 main ()
19492 return pthread_join ();
19494 return 0;
19496 _ACEOF
19497 if ac_fn_c_try_link "$LINENO"; then :
19498 acx_pthread_ok=yes
19500 rm -f core conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19503 $as_echo "$acx_pthread_ok" >&6; }
19504 if test x"$acx_pthread_ok" = xno; then
19505 PTHREAD_LIBS=""
19506 PTHREAD_CFLAGS=""
19508 LIBS="$save_LIBS"
19509 CFLAGS="$save_CFLAGS"
19512 # We must check for the threads library under a number of different
19513 # names; the ordering is very important because some systems
19514 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19515 # libraries is broken (non-POSIX).
19517 # Create a list of thread flags to try. Items starting with a "-" are
19518 # C compiler flags, and other items are library names, except for "none"
19519 # which indicates that we try without any flags at all, and "pthread-config"
19520 # which is a program returning the flags for the Pth emulation library.
19522 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19524 # The ordering *is* (sometimes) important. Some notes on the
19525 # individual items follow:
19527 # pthreads: AIX (must check this before -lpthread)
19528 # none: in case threads are in libc; should be tried before -Kthread and
19529 # other compiler flags to prevent continual compiler warnings
19530 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19531 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19532 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19533 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19534 # -pthreads: Solaris/gcc
19535 # -mthreads: Mingw32/gcc, Lynx/gcc
19536 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19537 # doesn't hurt to check since this sometimes defines pthreads too;
19538 # also defines -D_REENTRANT)
19539 # ... -mt is also the pthreads flag for HP/aCC
19540 # pthread: Linux, etcetera
19541 # --thread-safe: KAI C++
19542 # pthread-config: use pthread-config program (for GNU Pth library)
19544 case "${host_cpu}-${host_os}" in
19545 *solaris*)
19547 # On Solaris (at least, for some versions), libc contains stubbed
19548 # (non-functional) versions of the pthreads routines, so link-based
19549 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19550 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19551 # a function called by this macro, so we could check for that, but
19552 # who knows whether they'll stub that too in a future libc.) So,
19553 # we'll just look for -pthreads and -lpthread first:
19555 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19557 esac
19559 if test x"$acx_pthread_ok" = xno; then
19560 for flag in $acx_pthread_flags; do
19562 case $flag in
19563 none)
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19565 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19570 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19571 PTHREAD_CFLAGS="$flag"
19574 pthread-config)
19575 # Extract the first word of "pthread-config", so it can be a program name with args.
19576 set dummy pthread-config; ac_word=$2
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19578 $as_echo_n "checking for $ac_word... " >&6; }
19579 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19580 $as_echo_n "(cached) " >&6
19581 else
19582 if test -n "$acx_pthread_config"; then
19583 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19584 else
19585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19586 for as_dir in $PATH
19588 IFS=$as_save_IFS
19589 test -z "$as_dir" && as_dir=.
19590 for ac_exec_ext in '' $ac_executable_extensions; do
19591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19592 ac_cv_prog_acx_pthread_config="yes"
19593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19594 break 2
19596 done
19597 done
19598 IFS=$as_save_IFS
19600 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19603 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19604 if test -n "$acx_pthread_config"; then
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19606 $as_echo "$acx_pthread_config" >&6; }
19607 else
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609 $as_echo "no" >&6; }
19613 if test x"$acx_pthread_config" = xno; then continue; fi
19614 PTHREAD_CFLAGS="`pthread-config --cflags`"
19615 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19620 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19621 PTHREAD_LIBS="-l$flag"
19623 esac
19625 save_LIBS="$LIBS"
19626 save_CFLAGS="$CFLAGS"
19627 LIBS="$PTHREAD_LIBS $LIBS"
19628 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19630 # Check for various functions. We must include pthread.h,
19631 # since some functions may be macros. (On the Sequent, we
19632 # need a special flag -Kthread to make this header compile.)
19633 # We check for pthread_join because it is in -lpthread on IRIX
19634 # while pthread_create is in libc. We check for pthread_attr_init
19635 # due to DEC craziness with -lpthreads. We check for
19636 # pthread_cleanup_push because it is one of the few pthread
19637 # functions on Solaris that doesn't have a non-functional libc stub.
19638 # We try pthread_create on general principles.
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19641 #include <pthread.h>
19643 main ()
19645 pthread_t th; pthread_join(th, 0);
19646 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19647 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19649 return 0;
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19653 acx_pthread_ok=yes
19655 rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19658 LIBS="$save_LIBS"
19659 CFLAGS="$save_CFLAGS"
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19662 $as_echo "$acx_pthread_ok" >&6; }
19663 if test "x$acx_pthread_ok" = xyes; then
19664 break;
19667 PTHREAD_LIBS=""
19668 PTHREAD_CFLAGS=""
19669 done
19672 # Various other checks:
19673 if test "x$acx_pthread_ok" = xyes; then
19674 save_LIBS="$LIBS"
19675 LIBS="$PTHREAD_LIBS $LIBS"
19676 save_CFLAGS="$CFLAGS"
19677 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19679 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19681 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19682 attr_name=unknown
19683 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 #include <pthread.h>
19688 main ()
19690 int attr=$attr; return attr;
19692 return 0;
19694 _ACEOF
19695 if ac_fn_c_try_link "$LINENO"; then :
19696 attr_name=$attr; break
19698 rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
19700 done
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19702 $as_echo "$attr_name" >&6; }
19703 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19705 cat >>confdefs.h <<_ACEOF
19706 #define PTHREAD_CREATE_JOINABLE $attr_name
19707 _ACEOF
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19712 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19713 flag=no
19714 case "${host_cpu}-${host_os}" in
19715 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19716 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19717 esac
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19719 $as_echo "${flag}" >&6; }
19720 if test "x$flag" != xno; then
19721 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19724 LIBS="$save_LIBS"
19725 CFLAGS="$save_CFLAGS"
19727 # More AIX lossage: must compile with xlc_r or cc_r
19728 if test x"$GCC" != xyes; then
19729 for ac_prog in xlc_r cc_r
19731 # Extract the first word of "$ac_prog", so it can be a program name with args.
19732 set dummy $ac_prog; ac_word=$2
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19734 $as_echo_n "checking for $ac_word... " >&6; }
19735 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19736 $as_echo_n "(cached) " >&6
19737 else
19738 if test -n "$PTHREAD_CC"; then
19739 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19740 else
19741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19742 for as_dir in $PATH
19744 IFS=$as_save_IFS
19745 test -z "$as_dir" && as_dir=.
19746 for ac_exec_ext in '' $ac_executable_extensions; do
19747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19748 ac_cv_prog_PTHREAD_CC="$ac_prog"
19749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19750 break 2
19752 done
19753 done
19754 IFS=$as_save_IFS
19758 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19759 if test -n "$PTHREAD_CC"; then
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19761 $as_echo "$PTHREAD_CC" >&6; }
19762 else
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19764 $as_echo "no" >&6; }
19768 test -n "$PTHREAD_CC" && break
19769 done
19770 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19772 else
19773 PTHREAD_CC=$CC
19775 else
19776 PTHREAD_CC="$CC"
19783 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19784 if test x"$acx_pthread_ok" = xyes; then
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19787 $as_echo "yes" >&6; }
19788 case "$target" in
19789 *openbsd*)
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19791 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19792 AM_CFLAGS="$AM_CFLAGS -pthread"
19794 esac
19795 LIBS="$PTHREAD_LIBS $LIBS"
19796 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19797 CC="$PTHREAD_CC"
19799 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19803 else
19804 acx_pthread_ok=no
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19807 $as_echo "no" >&6; }
19810 ac_ext=c
19811 ac_cpp='$CPP $CPPFLAGS'
19812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19819 $as_echo_n "checking for library containing nanosleep... " >&6; }
19820 if ${ac_cv_search_nanosleep+:} false; then :
19821 $as_echo_n "(cached) " >&6
19822 else
19823 ac_func_search_save_LIBS=$LIBS
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 char nanosleep ();
19835 main ()
19837 return nanosleep ();
19839 return 0;
19841 _ACEOF
19842 for ac_lib in '' rt posix4; do
19843 if test -z "$ac_lib"; then
19844 ac_res="none required"
19845 else
19846 ac_res=-l$ac_lib
19847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19849 if ac_fn_c_try_link "$LINENO"; then :
19850 ac_cv_search_nanosleep=$ac_res
19852 rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext
19854 if ${ac_cv_search_nanosleep+:} false; then :
19855 break
19857 done
19858 if ${ac_cv_search_nanosleep+:} false; then :
19860 else
19861 ac_cv_search_nanosleep=no
19863 rm conftest.$ac_ext
19864 LIBS=$ac_func_search_save_LIBS
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19867 $as_echo "$ac_cv_search_nanosleep" >&6; }
19868 ac_res=$ac_cv_search_nanosleep
19869 if test "$ac_res" != no; then :
19870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19873 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19884 $as_echo_n "checking for ANSI C header files... " >&6; }
19885 if ${ac_cv_header_stdc+:} false; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890 #include <stdlib.h>
19891 #include <stdarg.h>
19892 #include <string.h>
19893 #include <float.h>
19896 main ()
19900 return 0;
19902 _ACEOF
19903 if ac_fn_c_try_compile "$LINENO"; then :
19904 ac_cv_header_stdc=yes
19905 else
19906 ac_cv_header_stdc=no
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 if test $ac_cv_header_stdc = yes; then
19911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914 #include <string.h>
19916 _ACEOF
19917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19918 $EGREP "memchr" >/dev/null 2>&1; then :
19920 else
19921 ac_cv_header_stdc=no
19923 rm -f conftest*
19927 if test $ac_cv_header_stdc = yes; then
19928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19931 #include <stdlib.h>
19933 _ACEOF
19934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19935 $EGREP "free" >/dev/null 2>&1; then :
19937 else
19938 ac_cv_header_stdc=no
19940 rm -f conftest*
19944 if test $ac_cv_header_stdc = yes; then
19945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19946 if test "$cross_compiling" = yes; then :
19948 else
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19951 #include <ctype.h>
19952 #include <stdlib.h>
19953 #if ((' ' & 0x0FF) == 0x020)
19954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19956 #else
19957 # define ISLOWER(c) \
19958 (('a' <= (c) && (c) <= 'i') \
19959 || ('j' <= (c) && (c) <= 'r') \
19960 || ('s' <= (c) && (c) <= 'z'))
19961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19962 #endif
19964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19966 main ()
19968 int i;
19969 for (i = 0; i < 256; i++)
19970 if (XOR (islower (i), ISLOWER (i))
19971 || toupper (i) != TOUPPER (i))
19972 return 2;
19973 return 0;
19975 _ACEOF
19976 if ac_fn_c_try_run "$LINENO"; then :
19978 else
19979 ac_cv_header_stdc=no
19981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19982 conftest.$ac_objext conftest.beam conftest.$ac_ext
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19988 $as_echo "$ac_cv_header_stdc" >&6; }
19989 if test $ac_cv_header_stdc = yes; then
19991 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19995 ac_header_dirent=no
19996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19997 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19999 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20000 if eval \${$as_ac_Header+:} false; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20005 #include <sys/types.h>
20006 #include <$ac_hdr>
20009 main ()
20011 if ((DIR *) 0)
20012 return 0;
20014 return 0;
20016 _ACEOF
20017 if ac_fn_c_try_compile "$LINENO"; then :
20018 eval "$as_ac_Header=yes"
20019 else
20020 eval "$as_ac_Header=no"
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 eval ac_res=\$$as_ac_Header
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20026 $as_echo "$ac_res" >&6; }
20027 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20028 cat >>confdefs.h <<_ACEOF
20029 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20030 _ACEOF
20032 ac_header_dirent=$ac_hdr; break
20035 done
20036 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20037 if test $ac_header_dirent = dirent.h; then
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20039 $as_echo_n "checking for library containing opendir... " >&6; }
20040 if ${ac_cv_search_opendir+:} false; then :
20041 $as_echo_n "(cached) " >&6
20042 else
20043 ac_func_search_save_LIBS=$LIBS
20044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045 /* end confdefs.h. */
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20050 #ifdef __cplusplus
20051 extern "C"
20052 #endif
20053 char opendir ();
20055 main ()
20057 return opendir ();
20059 return 0;
20061 _ACEOF
20062 for ac_lib in '' dir; do
20063 if test -z "$ac_lib"; then
20064 ac_res="none required"
20065 else
20066 ac_res=-l$ac_lib
20067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20069 if ac_fn_c_try_link "$LINENO"; then :
20070 ac_cv_search_opendir=$ac_res
20072 rm -f core conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext
20074 if ${ac_cv_search_opendir+:} false; then :
20075 break
20077 done
20078 if ${ac_cv_search_opendir+:} false; then :
20080 else
20081 ac_cv_search_opendir=no
20083 rm conftest.$ac_ext
20084 LIBS=$ac_func_search_save_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20087 $as_echo "$ac_cv_search_opendir" >&6; }
20088 ac_res=$ac_cv_search_opendir
20089 if test "$ac_res" != no; then :
20090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20094 else
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20096 $as_echo_n "checking for library containing opendir... " >&6; }
20097 if ${ac_cv_search_opendir+:} false; then :
20098 $as_echo_n "(cached) " >&6
20099 else
20100 ac_func_search_save_LIBS=$LIBS
20101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20104 /* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 char opendir ();
20112 main ()
20114 return opendir ();
20116 return 0;
20118 _ACEOF
20119 for ac_lib in '' x; do
20120 if test -z "$ac_lib"; then
20121 ac_res="none required"
20122 else
20123 ac_res=-l$ac_lib
20124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20126 if ac_fn_c_try_link "$LINENO"; then :
20127 ac_cv_search_opendir=$ac_res
20129 rm -f core conftest.err conftest.$ac_objext \
20130 conftest$ac_exeext
20131 if ${ac_cv_search_opendir+:} false; then :
20132 break
20134 done
20135 if ${ac_cv_search_opendir+:} false; then :
20137 else
20138 ac_cv_search_opendir=no
20140 rm conftest.$ac_ext
20141 LIBS=$ac_func_search_save_LIBS
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20144 $as_echo "$ac_cv_search_opendir" >&6; }
20145 ac_res=$ac_cv_search_opendir
20146 if test "$ac_res" != no; then :
20147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20154 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20155 if ${ac_cv_header_stat_broken+:} false; then :
20156 $as_echo_n "(cached) " >&6
20157 else
20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20160 #include <sys/types.h>
20161 #include <sys/stat.h>
20163 #if defined S_ISBLK && defined S_IFDIR
20164 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20165 #endif
20167 #if defined S_ISBLK && defined S_IFCHR
20168 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20169 #endif
20171 #if defined S_ISLNK && defined S_IFREG
20172 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20173 #endif
20175 #if defined S_ISSOCK && defined S_IFREG
20176 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20177 #endif
20179 _ACEOF
20180 if ac_fn_c_try_compile "$LINENO"; then :
20181 ac_cv_header_stat_broken=no
20182 else
20183 ac_cv_header_stat_broken=yes
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20188 $as_echo "$ac_cv_header_stat_broken" >&6; }
20189 if test $ac_cv_header_stat_broken = yes; then
20191 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20196 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20197 if ${ac_cv_header_sys_wait_h+:} false; then :
20198 $as_echo_n "(cached) " >&6
20199 else
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202 #include <sys/types.h>
20203 #include <sys/wait.h>
20204 #ifndef WEXITSTATUS
20205 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20206 #endif
20207 #ifndef WIFEXITED
20208 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20209 #endif
20212 main ()
20214 int s;
20215 wait (&s);
20216 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20218 return 0;
20220 _ACEOF
20221 if ac_fn_c_try_compile "$LINENO"; then :
20222 ac_cv_header_sys_wait_h=yes
20223 else
20224 ac_cv_header_sys_wait_h=no
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20229 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20230 if test $ac_cv_header_sys_wait_h = yes; then
20232 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20237 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20238 if ${ac_cv_header_time+:} false; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20243 #include <sys/types.h>
20244 #include <sys/time.h>
20245 #include <time.h>
20248 main ()
20250 if ((struct tm *) 0)
20251 return 0;
20253 return 0;
20255 _ACEOF
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257 ac_cv_header_time=yes
20258 else
20259 ac_cv_header_time=no
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20264 $as_echo "$ac_cv_header_time" >&6; }
20265 if test $ac_cv_header_time = yes; then
20267 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20272 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20273 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20274 $as_echo_n "(cached) " >&6
20275 else
20276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20277 /* end confdefs.h. */
20278 #include <sys/types.h>
20279 #include <termios.h>
20280 #ifdef TIOCGWINSZ
20282 #endif
20284 _ACEOF
20285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20286 $EGREP "yes" >/dev/null 2>&1; then :
20287 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20288 else
20289 ac_cv_sys_tiocgwinsz_in_termios_h=no
20291 rm -f conftest*
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20295 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20297 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20299 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20300 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20301 $as_echo_n "(cached) " >&6
20302 else
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h. */
20305 #include <sys/types.h>
20306 #include <sys/ioctl.h>
20307 #ifdef TIOCGWINSZ
20309 #endif
20311 _ACEOF
20312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313 $EGREP "yes" >/dev/null 2>&1; then :
20314 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20315 else
20316 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20318 rm -f conftest*
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20322 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20324 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20326 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20332 for ac_header in unistd.h
20333 do :
20334 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20335 if test "x$ac_cv_header_unistd_h" = xyes; then :
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_UNISTD_H 1
20338 _ACEOF
20342 done
20345 for ac_header in errno.h \
20346 ctype.h \
20347 fcntl.h \
20348 signal.h \
20349 setjmp.h \
20350 memory.h \
20351 sys/ioctl.h \
20352 sys/param.h \
20353 sys/socket.h \
20354 sys/uio.h \
20355 sys/un.h \
20356 limits.h \
20357 wchar.h \
20358 sys/poll.h \
20359 stropts.h \
20360 netdb.h \
20361 syslog.h \
20362 sys/syslog.h \
20363 locale.h \
20364 langinfo.h \
20365 utime.h \
20366 sys/utime.h \
20367 pthread.h \
20368 pwd.h \
20369 assert.h
20370 do :
20371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20374 cat >>confdefs.h <<_ACEOF
20375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376 _ACEOF
20380 done
20383 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20384 if test "x$ac_cv_header_termios_h" = xyes; then :
20386 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20388 else
20390 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20391 if test "x$ac_cv_header_termio_h" = xyes; then :
20393 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20395 else
20397 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20398 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20400 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20402 else
20404 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20421 $as_echo_n "checking return type of signal handlers... " >&6; }
20422 if ${ac_cv_type_signal+:} false; then :
20423 $as_echo_n "(cached) " >&6
20424 else
20425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20427 #include <sys/types.h>
20428 #include <signal.h>
20431 main ()
20433 return *(signal (0, 0)) (0) == 1;
20435 return 0;
20437 _ACEOF
20438 if ac_fn_c_try_compile "$LINENO"; then :
20439 ac_cv_type_signal=int
20440 else
20441 ac_cv_type_signal=void
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20446 $as_echo "$ac_cv_type_signal" >&6; }
20448 cat >>confdefs.h <<_ACEOF
20449 #define RETSIGTYPE $ac_cv_type_signal
20450 _ACEOF
20453 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20454 if test "x$ac_cv_type_size_t" = xyes; then :
20456 else
20458 cat >>confdefs.h <<_ACEOF
20459 #define size_t unsigned int
20460 _ACEOF
20464 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20465 if test "x$ac_cv_type_mode_t" = xyes; then :
20467 else
20469 cat >>confdefs.h <<_ACEOF
20470 #define mode_t int
20471 _ACEOF
20475 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20476 if test "x$ac_cv_type_pid_t" = xyes; then :
20478 else
20480 cat >>confdefs.h <<_ACEOF
20481 #define pid_t int
20482 _ACEOF
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20487 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20488 if ${ac_cv_type_uid_t+:} false; then :
20489 $as_echo_n "(cached) " >&6
20490 else
20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h. */
20493 #include <sys/types.h>
20495 _ACEOF
20496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20497 $EGREP "uid_t" >/dev/null 2>&1; then :
20498 ac_cv_type_uid_t=yes
20499 else
20500 ac_cv_type_uid_t=no
20502 rm -f conftest*
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20506 $as_echo "$ac_cv_type_uid_t" >&6; }
20507 if test $ac_cv_type_uid_t = no; then
20509 $as_echo "#define uid_t int" >>confdefs.h
20512 $as_echo "#define gid_t int" >>confdefs.h
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20517 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20518 if ${ac_cv_struct_tm+:} false; then :
20519 $as_echo_n "(cached) " >&6
20520 else
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #include <sys/types.h>
20524 #include <time.h>
20527 main ()
20529 struct tm tm;
20530 int *p = &tm.tm_sec;
20531 return !p;
20533 return 0;
20535 _ACEOF
20536 if ac_fn_c_try_compile "$LINENO"; then :
20537 ac_cv_struct_tm=time.h
20538 else
20539 ac_cv_struct_tm=sys/time.h
20541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20544 $as_echo "$ac_cv_struct_tm" >&6; }
20545 if test $ac_cv_struct_tm = sys/time.h; then
20547 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20552 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20553 if test "x$ac_cv_type_union_wait" = xyes; then :
20555 cat >>confdefs.h <<_ACEOF
20556 #define HAVE_UNION_WAIT 1
20557 _ACEOF
20563 for ac_header in stdint.h
20564 do :
20565 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20566 if test "x$ac_cv_header_stdint_h" = xyes; then :
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_STDINT_H 1
20569 _ACEOF
20570 uint16=uint16_t
20571 else
20573 for ac_header in inttypes.h
20574 do :
20575 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20576 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20577 cat >>confdefs.h <<_ACEOF
20578 #define HAVE_INTTYPES_H 1
20579 _ACEOF
20580 uint16=uint16_t
20581 else
20583 for ac_header in sys/types.h
20584 do :
20585 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20586 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_SYS_TYPES_H 1
20589 _ACEOF
20590 uint16=u_int16_t
20591 else
20593 # The cast to long int works around a bug in the HP C Compiler
20594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20596 # This bug is HP SR number 8606223364.
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20598 $as_echo_n "checking size of unsigned short... " >&6; }
20599 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20600 $as_echo_n "(cached) " >&6
20601 else
20602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20604 else
20605 if test "$ac_cv_type_unsigned_short" = yes; then
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20608 as_fn_error 77 "cannot compute sizeof (unsigned short)
20609 See \`config.log' for more details" "$LINENO" 5; }
20610 else
20611 ac_cv_sizeof_unsigned_short=0
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20617 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20621 cat >>confdefs.h <<_ACEOF
20622 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20623 _ACEOF
20626 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20627 uint16="unsigned short"
20628 else
20629 # The cast to long int works around a bug in the HP C Compiler
20630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20632 # This bug is HP SR number 8606223364.
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20634 $as_echo_n "checking size of unsigned int... " >&6; }
20635 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20636 $as_echo_n "(cached) " >&6
20637 else
20638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20640 else
20641 if test "$ac_cv_type_unsigned_int" = yes; then
20642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20644 as_fn_error 77 "cannot compute sizeof (unsigned int)
20645 See \`config.log' for more details" "$LINENO" 5; }
20646 else
20647 ac_cv_sizeof_unsigned_int=0
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20653 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20657 cat >>confdefs.h <<_ACEOF
20658 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20659 _ACEOF
20662 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20663 uint16="unsigned int"
20664 else
20665 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20671 done
20676 done
20681 done
20684 cat >>confdefs.h <<_ACEOF
20685 #define UINT16 $uint16
20686 _ACEOF
20689 for ac_header in stdint.h
20690 do :
20691 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20692 if test "x$ac_cv_header_stdint_h" = xyes; then :
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_STDINT_H 1
20695 _ACEOF
20696 uint32=uint32_t
20697 else
20699 for ac_header in inttypes.h
20700 do :
20701 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20702 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define HAVE_INTTYPES_H 1
20705 _ACEOF
20706 uint32=uint32_t
20707 else
20709 for ac_header in sys/types.h
20710 do :
20711 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20712 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_SYS_TYPES_H 1
20715 _ACEOF
20716 uint32=u_int32_t
20717 else
20719 # The cast to long int works around a bug in the HP C Compiler
20720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20722 # This bug is HP SR number 8606223364.
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20724 $as_echo_n "checking size of unsigned int... " >&6; }
20725 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20726 $as_echo_n "(cached) " >&6
20727 else
20728 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20730 else
20731 if test "$ac_cv_type_unsigned_int" = yes; then
20732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20734 as_fn_error 77 "cannot compute sizeof (unsigned int)
20735 See \`config.log' for more details" "$LINENO" 5; }
20736 else
20737 ac_cv_sizeof_unsigned_int=0
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20743 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20747 cat >>confdefs.h <<_ACEOF
20748 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20749 _ACEOF
20752 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20753 uint32="unsigned int"
20754 else
20755 # The cast to long int works around a bug in the HP C Compiler
20756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20758 # This bug is HP SR number 8606223364.
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20760 $as_echo_n "checking size of unsigned long... " >&6; }
20761 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20762 $as_echo_n "(cached) " >&6
20763 else
20764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20766 else
20767 if test "$ac_cv_type_unsigned_long" = yes; then
20768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20770 as_fn_error 77 "cannot compute sizeof (unsigned long)
20771 See \`config.log' for more details" "$LINENO" 5; }
20772 else
20773 ac_cv_sizeof_unsigned_long=0
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20779 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20783 cat >>confdefs.h <<_ACEOF
20784 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20785 _ACEOF
20788 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20789 uint32="unsigned long"
20790 else
20791 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20797 done
20802 done
20807 done
20810 cat >>confdefs.h <<_ACEOF
20811 #define UINT32 $uint32
20812 _ACEOF
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20816 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20817 if ${ac_cv_func_qsort_argtype+:} false; then :
20818 $as_echo_n "(cached) " >&6
20819 else
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20823 #if HAVE_STDLIB_H
20824 #include "stdlib.h"
20825 #endif
20827 extern void *base;
20828 extern sortf(const void *, const void *);
20829 int sortf(a, b)
20830 const void *a;
20831 const void *b; { return 0; }
20834 main ()
20837 qsort(base, 2, sizeof(char *), sortf);
20840 return 0;
20842 _ACEOF
20843 if ac_fn_c_try_compile "$LINENO"; then :
20844 ac_cv_func_qsort_argtype=void
20845 else
20846 ac_cv_func_qsort_argtype=char
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20852 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20854 cat >>confdefs.h <<_ACEOF
20855 #define qsort_t $ac_cv_func_qsort_argtype
20856 _ACEOF
20860 for ac_header in sys/select.h sys/socket.h
20861 do :
20862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20865 cat >>confdefs.h <<_ACEOF
20866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20867 _ACEOF
20871 done
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20874 $as_echo_n "checking types of arguments for select... " >&6; }
20875 if ${ac_cv_func_select_args+:} false; then :
20876 $as_echo_n "(cached) " >&6
20877 else
20878 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20879 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20880 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 #ifdef HAVE_SYS_SELECT_H
20885 # include <sys/select.h>
20886 #endif
20887 #ifdef HAVE_SYS_SOCKET_H
20888 # include <sys/socket.h>
20889 #endif
20892 main ()
20894 extern int select ($ac_arg1,
20895 $ac_arg234, $ac_arg234, $ac_arg234,
20896 $ac_arg5);
20898 return 0;
20900 _ACEOF
20901 if ac_fn_c_try_compile "$LINENO"; then :
20902 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 done
20906 done
20907 done
20908 # Provide a safe default value.
20909 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20913 $as_echo "$ac_cv_func_select_args" >&6; }
20914 ac_save_IFS=$IFS; IFS=','
20915 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20916 IFS=$ac_save_IFS
20917 shift
20919 cat >>confdefs.h <<_ACEOF
20920 #define SELECT_TYPE_ARG1 $1
20921 _ACEOF
20924 cat >>confdefs.h <<_ACEOF
20925 #define SELECT_TYPE_ARG234 ($2)
20926 _ACEOF
20929 cat >>confdefs.h <<_ACEOF
20930 #define SELECT_TYPE_ARG5 ($3)
20931 _ACEOF
20933 rm -f conftest*
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20937 $as_echo_n "checking for working strcoll... " >&6; }
20938 if ${ac_cv_func_strcoll_works+:} false; then :
20939 $as_echo_n "(cached) " >&6
20940 else
20941 if test "$cross_compiling" = yes; then :
20942 ac_cv_func_strcoll_works=no
20943 else
20944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20946 $ac_includes_default
20948 main ()
20950 return (strcoll ("abc", "def") >= 0 ||
20951 strcoll ("ABC", "DEF") >= 0 ||
20952 strcoll ("123", "456") >= 0)
20954 return 0;
20956 _ACEOF
20957 if ac_fn_c_try_run "$LINENO"; then :
20958 ac_cv_func_strcoll_works=yes
20959 else
20960 ac_cv_func_strcoll_works=no
20962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20963 conftest.$ac_objext conftest.beam conftest.$ac_ext
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20968 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20969 if test $ac_cv_func_strcoll_works = yes; then
20971 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20977 for ac_header in vfork.h
20978 do :
20979 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20980 if test "x$ac_cv_header_vfork_h" = xyes; then :
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_VFORK_H 1
20983 _ACEOF
20987 done
20989 for ac_func in fork vfork
20990 do :
20991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20993 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20994 cat >>confdefs.h <<_ACEOF
20995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20996 _ACEOF
20999 done
21001 if test "x$ac_cv_func_fork" = xyes; then
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21003 $as_echo_n "checking for working fork... " >&6; }
21004 if ${ac_cv_func_fork_works+:} false; then :
21005 $as_echo_n "(cached) " >&6
21006 else
21007 if test "$cross_compiling" = yes; then :
21008 ac_cv_func_fork_works=cross
21009 else
21010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21011 /* end confdefs.h. */
21012 $ac_includes_default
21014 main ()
21017 /* By Ruediger Kuhlmann. */
21018 return fork () < 0;
21021 return 0;
21023 _ACEOF
21024 if ac_fn_c_try_run "$LINENO"; then :
21025 ac_cv_func_fork_works=yes
21026 else
21027 ac_cv_func_fork_works=no
21029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21030 conftest.$ac_objext conftest.beam conftest.$ac_ext
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21035 $as_echo "$ac_cv_func_fork_works" >&6; }
21037 else
21038 ac_cv_func_fork_works=$ac_cv_func_fork
21040 if test "x$ac_cv_func_fork_works" = xcross; then
21041 case $host in
21042 *-*-amigaos* | *-*-msdosdjgpp*)
21043 # Override, as these systems have only a dummy fork() stub
21044 ac_cv_func_fork_works=no
21047 ac_cv_func_fork_works=yes
21049 esac
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21051 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21053 ac_cv_func_vfork_works=$ac_cv_func_vfork
21054 if test "x$ac_cv_func_vfork" = xyes; then
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21056 $as_echo_n "checking for working vfork... " >&6; }
21057 if ${ac_cv_func_vfork_works+:} false; then :
21058 $as_echo_n "(cached) " >&6
21059 else
21060 if test "$cross_compiling" = yes; then :
21061 ac_cv_func_vfork_works=cross
21062 else
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21065 /* Thanks to Paul Eggert for this test. */
21066 $ac_includes_default
21067 #include <sys/wait.h>
21068 #ifdef HAVE_VFORK_H
21069 # include <vfork.h>
21070 #endif
21071 /* On some sparc systems, changes by the child to local and incoming
21072 argument registers are propagated back to the parent. The compiler
21073 is told about this with #include <vfork.h>, but some compilers
21074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21075 static variable whose address is put into a register that is
21076 clobbered by the vfork. */
21077 static void
21078 #ifdef __cplusplus
21079 sparc_address_test (int arg)
21080 # else
21081 sparc_address_test (arg) int arg;
21082 #endif
21084 static pid_t child;
21085 if (!child) {
21086 child = vfork ();
21087 if (child < 0) {
21088 perror ("vfork");
21089 _exit(2);
21091 if (!child) {
21092 arg = getpid();
21093 write(-1, "", 0);
21094 _exit (arg);
21100 main ()
21102 pid_t parent = getpid ();
21103 pid_t child;
21105 sparc_address_test (0);
21107 child = vfork ();
21109 if (child == 0) {
21110 /* Here is another test for sparc vfork register problems. This
21111 test uses lots of local variables, at least as many local
21112 variables as main has allocated so far including compiler
21113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21115 reuse the register of parent for one of the local variables,
21116 since it will think that parent can't possibly be used any more
21117 in this routine. Assigning to the local variable will thus
21118 munge parent in the parent process. */
21119 pid_t
21120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21122 /* Convince the compiler that p..p7 are live; otherwise, it might
21123 use the same hardware register for all 8 local variables. */
21124 if (p != p1 || p != p2 || p != p3 || p != p4
21125 || p != p5 || p != p6 || p != p7)
21126 _exit(1);
21128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21129 from child file descriptors. If the child closes a descriptor
21130 before it execs or exits, this munges the parent's descriptor
21131 as well. Test for this by closing stdout in the child. */
21132 _exit(close(fileno(stdout)) != 0);
21133 } else {
21134 int status;
21135 struct stat st;
21137 while (wait(&status) != child)
21139 return (
21140 /* Was there some problem with vforking? */
21141 child < 0
21143 /* Did the child fail? (This shouldn't happen.) */
21144 || status
21146 /* Did the vfork/compiler bug occur? */
21147 || parent != getpid()
21149 /* Did the file descriptor bug occur? */
21150 || fstat(fileno(stdout), &st) != 0
21154 _ACEOF
21155 if ac_fn_c_try_run "$LINENO"; then :
21156 ac_cv_func_vfork_works=yes
21157 else
21158 ac_cv_func_vfork_works=no
21160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21161 conftest.$ac_objext conftest.beam conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21166 $as_echo "$ac_cv_func_vfork_works" >&6; }
21169 if test "x$ac_cv_func_fork_works" = xcross; then
21170 ac_cv_func_vfork_works=$ac_cv_func_vfork
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21172 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21175 if test "x$ac_cv_func_vfork_works" = xyes; then
21177 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21179 else
21181 $as_echo "#define vfork fork" >>confdefs.h
21184 if test "x$ac_cv_func_fork_works" = xyes; then
21186 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21190 for ac_func in strchr \
21191 memcpy \
21192 strtol \
21193 strtoul \
21194 select \
21195 poll \
21196 qsort \
21197 getuid \
21198 getpwuid \
21199 getpwnam \
21200 gettimeofday \
21201 tmpfile \
21202 uname \
21203 rename \
21204 read \
21205 signal \
21206 setjmp \
21207 chown \
21208 wait4 \
21209 waitpid \
21210 wait \
21211 srandom \
21212 popen \
21213 pclose \
21214 fsync \
21215 truncate \
21216 listen \
21217 wcwidth \
21218 mbstowcs \
21219 wcrtomb \
21220 putenv \
21221 setenv
21222 do :
21223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21224 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21225 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21226 cat >>confdefs.h <<_ACEOF
21227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21228 _ACEOF
21231 done
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21235 $as_echo_n "checking for library containing gethostname... " >&6; }
21236 if ${ac_cv_search_gethostname+:} false; then :
21237 $as_echo_n "(cached) " >&6
21238 else
21239 ac_func_search_save_LIBS=$LIBS
21240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21243 /* Override any GCC internal prototype to avoid an error.
21244 Use char because int might match the return type of a GCC
21245 builtin and then its argument prototype would still apply. */
21246 #ifdef __cplusplus
21247 extern "C"
21248 #endif
21249 char gethostname ();
21251 main ()
21253 return gethostname ();
21255 return 0;
21257 _ACEOF
21258 for ac_lib in '' nsl; do
21259 if test -z "$ac_lib"; then
21260 ac_res="none required"
21261 else
21262 ac_res=-l$ac_lib
21263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21265 if ac_fn_c_try_link "$LINENO"; then :
21266 ac_cv_search_gethostname=$ac_res
21268 rm -f core conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext
21270 if ${ac_cv_search_gethostname+:} false; then :
21271 break
21273 done
21274 if ${ac_cv_search_gethostname+:} false; then :
21276 else
21277 ac_cv_search_gethostname=no
21279 rm conftest.$ac_ext
21280 LIBS=$ac_func_search_save_LIBS
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21283 $as_echo "$ac_cv_search_gethostname" >&6; }
21284 ac_res=$ac_cv_search_gethostname
21285 if test "$ac_res" != no; then :
21286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21292 $as_echo_n "checking for library containing socket... " >&6; }
21293 if ${ac_cv_search_socket+:} false; then :
21294 $as_echo_n "(cached) " >&6
21295 else
21296 ac_func_search_save_LIBS=$LIBS
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21300 /* Override any GCC internal prototype to avoid an error.
21301 Use char because int might match the return type of a GCC
21302 builtin and then its argument prototype would still apply. */
21303 #ifdef __cplusplus
21304 extern "C"
21305 #endif
21306 char socket ();
21308 main ()
21310 return socket ();
21312 return 0;
21314 _ACEOF
21315 for ac_lib in '' socket; do
21316 if test -z "$ac_lib"; then
21317 ac_res="none required"
21318 else
21319 ac_res=-l$ac_lib
21320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21322 if ac_fn_c_try_link "$LINENO"; then :
21323 ac_cv_search_socket=$ac_res
21325 rm -f core conftest.err conftest.$ac_objext \
21326 conftest$ac_exeext
21327 if ${ac_cv_search_socket+:} false; then :
21328 break
21330 done
21331 if ${ac_cv_search_socket+:} false; then :
21333 else
21334 ac_cv_search_socket=no
21336 rm conftest.$ac_ext
21337 LIBS=$ac_func_search_save_LIBS
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21340 $as_echo "$ac_cv_search_socket" >&6; }
21341 ac_res=$ac_cv_search_socket
21342 if test "$ac_res" != no; then :
21343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21345 else
21347 WEB_BUILD=
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21353 $as_echo_n "checking for library containing bind... " >&6; }
21354 if ${ac_cv_search_bind+:} false; then :
21355 $as_echo_n "(cached) " >&6
21356 else
21357 ac_func_search_save_LIBS=$LIBS
21358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h. */
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21364 #ifdef __cplusplus
21365 extern "C"
21366 #endif
21367 char bind ();
21369 main ()
21371 return bind ();
21373 return 0;
21375 _ACEOF
21376 for ac_lib in '' bind; do
21377 if test -z "$ac_lib"; then
21378 ac_res="none required"
21379 else
21380 ac_res=-l$ac_lib
21381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21383 if ac_fn_c_try_link "$LINENO"; then :
21384 ac_cv_search_bind=$ac_res
21386 rm -f core conftest.err conftest.$ac_objext \
21387 conftest$ac_exeext
21388 if ${ac_cv_search_bind+:} false; then :
21389 break
21391 done
21392 if ${ac_cv_search_bind+:} false; then :
21394 else
21395 ac_cv_search_bind=no
21397 rm conftest.$ac_ext
21398 LIBS=$ac_func_search_save_LIBS
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21401 $as_echo "$ac_cv_search_bind" >&6; }
21402 ac_res=$ac_cv_search_bind
21403 if test "$ac_res" != no; then :
21404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21406 else
21408 WEB_BUILD=
21413 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21414 do :
21415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21418 cat >>confdefs.h <<_ACEOF
21419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21420 _ACEOF
21423 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21426 else
21428 for ac_func in sigset sigrelse
21429 do :
21430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21433 cat >>confdefs.h <<_ACEOF
21434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21435 _ACEOF
21438 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21442 done
21446 done
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21450 $as_echo_n "checking for library containing syslog... " >&6; }
21451 if ${ac_cv_search_syslog+:} false; then :
21452 $as_echo_n "(cached) " >&6
21453 else
21454 ac_func_search_save_LIBS=$LIBS
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 /* Override any GCC internal prototype to avoid an error.
21459 Use char because int might match the return type of a GCC
21460 builtin and then its argument prototype would still apply. */
21461 #ifdef __cplusplus
21462 extern "C"
21463 #endif
21464 char syslog ();
21466 main ()
21468 return syslog ();
21470 return 0;
21472 _ACEOF
21473 for ac_lib in '' bsd socket inet; do
21474 if test -z "$ac_lib"; then
21475 ac_res="none required"
21476 else
21477 ac_res=-l$ac_lib
21478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21480 if ac_fn_c_try_link "$LINENO"; then :
21481 ac_cv_search_syslog=$ac_res
21483 rm -f core conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext
21485 if ${ac_cv_search_syslog+:} false; then :
21486 break
21488 done
21489 if ${ac_cv_search_syslog+:} false; then :
21491 else
21492 ac_cv_search_syslog=no
21494 rm conftest.$ac_ext
21495 LIBS=$ac_func_search_save_LIBS
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21498 $as_echo "$ac_cv_search_syslog" >&6; }
21499 ac_res=$ac_cv_search_syslog
21500 if test "$ac_res" != no; then :
21501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21504 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21511 if test -n "$alpine_with_local_maildir" ; then
21512 alpine_local_maildir=$alpine_with_local_maildir
21513 elif test -d /var/spool/mail ; then
21514 alpine_local_maildir="/var/spool/mail"
21515 elif test -d /var/mail ; then
21516 alpine_local_maildir="/var/mail"
21517 else
21518 alpine_local_maildir="/usr/spool/mail"
21521 if test -n "$alpine_with_c_client_target" ; then
21522 alpine_c_client_target=$alpine_with_c_client_target
21526 cat >>confdefs.h <<_ACEOF
21527 #define SYSTYPE "$systype"
21528 _ACEOF
21531 cat >>confdefs.h <<_ACEOF
21532 #define C_FILESEP '$alpine_path_delim'
21533 _ACEOF
21536 cat >>confdefs.h <<_ACEOF
21537 #define S_FILESEP "$alpine_path_delim"
21538 _ACEOF
21541 cat >>confdefs.h <<_ACEOF
21542 #define MAILDIR "$alpine_local_maildir"
21543 _ACEOF
21546 cat >>confdefs.h <<_ACEOF
21547 #define MODE_READONLY $alpine_mode_readonly
21548 _ACEOF
21551 cat >>confdefs.h <<_ACEOF
21552 #define HTML_EXT "html"
21553 _ACEOF
21556 C_CLIENT_TARGET=$alpine_c_client_target
21558 C_CLIENT_WITH_IPV6=$c_client_ip6
21560 if test "x$alpine_SSLTYPE" = "xnone" ; then
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21562 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21563 c_client_specials="${c_client_specials}SSLTYPE=none "
21564 else
21566 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21567 certdir="$alpine_SSLCERTS"
21568 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21569 certdir="${alpine_SSLDIR}/certs"
21570 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21571 certdir="${alpine_SSLDIR}/ssl/certs"
21572 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21573 certdir="$alpine_SSLCERTS_ORIG"
21574 elif test -n "$alpine_SSLCERTS" ; then
21575 certdir="$alpine_SSLCERTS"
21576 else
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21578 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21581 if test "x$with_smime" != "xno" ; then
21582 if test -n "$certdir" ; then
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21584 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21586 $as_echo "#define SMIME /**/" >>confdefs.h
21589 cat >>confdefs.h <<_ACEOF
21590 #define SMIME_SSLCERTS "$certdir"
21591 _ACEOF
21597 SSL_CERT_LINK="no"
21598 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21599 SSL_BUNDLE_EXISTS="no"
21600 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21601 for SSL_BUNDLE in $SSL_PEM
21603 if test -f ${certdir}/${SSL_BUNDLE} ; then
21604 SSL_BUNDLE_EXISTS="yes"
21606 done
21607 else
21608 SSL_CERT_LINK="yes"
21611 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21613 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21615 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21617 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21619 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21622 if test -n "$alpine_SSLINCLUDE" ; then
21623 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21626 if test -n "$alpine_SSLLIB" ; then
21627 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21630 if test -n "$alpine_SSLDIR" ; then
21631 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21634 if test -n "$certdir" ; then
21635 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21638 if test -n "$alpine_SSLKEYS" ; then
21639 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21643 extra_auth_gss=
21644 if test "x$alpine_GSSTYPE" != "xnone" ; then
21645 extra_auth_gss=gss
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21647 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21650 extra_auth_ntlm=
21651 if test "x$alpine_NTLM" != "xnone" ; then
21652 extra_auth_ntlm=ntl
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21654 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21657 if test -n "$CPPFLAGS" ; then
21658 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21660 if test -n "$CFLAGS" ; then
21661 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21664 if test -n "$alpine_c_client_cflags" ; then
21665 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21669 if test -n "$LDFLAGS" ; then
21670 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21672 if test -n "$LIBS" ; then
21673 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21676 if test -n "$alpine_c_client_ldflags" ; then
21677 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21681 if test -n "$alpine_c_client_gccoptlevel" ; then
21682 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21686 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21687 C_CLIENT_AUTHS=$c_client_auths
21690 C_CLIENT_SPECIALS=$c_client_specials
21693 if test -z "$WEB_BUILD" ; then
21694 WEB_PUBCOOKIE_BUILD=
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21696 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21698 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21699 else
21700 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21701 if test "x$alpine_GSSTYPE" = "xnone" ; then
21702 WEB_PUBCOOKIE_BUILD=
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21704 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21706 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21707 elif test -z "$WEB_BINDIR" ; then
21708 WEB_PUBCOOKIE_BUILD=
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21710 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21711 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21712 Please re-run configure with these options:
21713 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21714 else
21716 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21718 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21719 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21735 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"
21737 cat >confcache <<\_ACEOF
21738 # This file is a shell script that caches the results of configure
21739 # tests run on this system so they can be shared between configure
21740 # scripts and configure runs, see configure's option --config-cache.
21741 # It is not useful on other systems. If it contains results you don't
21742 # want to keep, you may remove or edit it.
21744 # config.status only pays attention to the cache file if you give it
21745 # the --recheck option to rerun configure.
21747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21749 # following values.
21751 _ACEOF
21753 # The following way of writing the cache mishandles newlines in values,
21754 # but we know of no workaround that is simple, portable, and efficient.
21755 # So, we kill variables containing newlines.
21756 # Ultrix sh set writes to stderr and can't be redirected directly,
21757 # and sets the high bit in the cache file unless we assign to the vars.
21759 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21760 eval ac_val=\$$ac_var
21761 case $ac_val in #(
21762 *${as_nl}*)
21763 case $ac_var in #(
21764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21766 esac
21767 case $ac_var in #(
21768 _ | IFS | as_nl) ;; #(
21769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21770 *) { eval $ac_var=; unset $ac_var;} ;;
21771 esac ;;
21772 esac
21773 done
21775 (set) 2>&1 |
21776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21777 *${as_nl}ac_space=\ *)
21778 # `set' does not quote correctly, so add quotes: double-quote
21779 # substitution turns \\\\ into \\, and sed turns \\ into \.
21780 sed -n \
21781 "s/'/'\\\\''/g;
21782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21783 ;; #(
21785 # `set' quotes correctly as required by POSIX, so do not add quotes.
21786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21788 esac |
21789 sort
21791 sed '
21792 /^ac_cv_env_/b end
21793 t clear
21794 :clear
21795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21796 t end
21797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21798 :end' >>confcache
21799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21800 if test -w "$cache_file"; then
21801 if test "x$cache_file" != "x/dev/null"; then
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21803 $as_echo "$as_me: updating cache $cache_file" >&6;}
21804 if test ! -f "$cache_file" || test -h "$cache_file"; then
21805 cat confcache >"$cache_file"
21806 else
21807 case $cache_file in #(
21808 */* | ?:*)
21809 mv -f confcache "$cache_file"$$ &&
21810 mv -f "$cache_file"$$ "$cache_file" ;; #(
21812 mv -f confcache "$cache_file" ;;
21813 esac
21816 else
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21821 rm -f confcache
21823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21824 # Let make expand exec_prefix.
21825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21827 DEFS=-DHAVE_CONFIG_H
21829 ac_libobjs=
21830 ac_ltlibobjs=
21832 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21833 # 1. Remove the extension, and $U if already installed.
21834 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21835 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21837 # will be set to the directory where LIBOBJS objects are built.
21838 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21839 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21840 done
21841 LIBOBJS=$ac_libobjs
21843 LTLIBOBJS=$ac_ltlibobjs
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21847 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21848 if test -n "$am_sleep_pid"; then
21849 # Hide warnings about reused PIDs.
21850 wait $am_sleep_pid 2>/dev/null
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21853 $as_echo "done" >&6; }
21854 if test -n "$EXEEXT"; then
21855 am__EXEEXT_TRUE=
21856 am__EXEEXT_FALSE='#'
21857 else
21858 am__EXEEXT_TRUE='#'
21859 am__EXEEXT_FALSE=
21862 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21863 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21867 as_fn_error $? "conditional \"AMDEP\" was never defined.
21868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21871 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21875 : "${CONFIG_STATUS=./config.status}"
21876 ac_write_fail=0
21877 ac_clean_files_save=$ac_clean_files
21878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21880 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21881 as_write_fail=0
21882 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21883 #! $SHELL
21884 # Generated by $as_me.
21885 # Run this file to recreate the current configuration.
21886 # Compiler output produced by configure, useful for debugging
21887 # configure, is in config.log if it exists.
21889 debug=false
21890 ac_cs_recheck=false
21891 ac_cs_silent=false
21893 SHELL=\${CONFIG_SHELL-$SHELL}
21894 export SHELL
21895 _ASEOF
21896 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21897 ## -------------------- ##
21898 ## M4sh Initialization. ##
21899 ## -------------------- ##
21901 # Be more Bourne compatible
21902 DUALCASE=1; export DUALCASE # for MKS sh
21903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21904 emulate sh
21905 NULLCMD=:
21906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21907 # is contrary to our usage. Disable this feature.
21908 alias -g '${1+"$@"}'='"$@"'
21909 setopt NO_GLOB_SUBST
21910 else
21911 case `(set -o) 2>/dev/null` in #(
21912 *posix*) :
21913 set -o posix ;; #(
21914 *) :
21916 esac
21920 as_nl='
21922 export as_nl
21923 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21924 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21927 # Prefer a ksh shell builtin over an external printf program on Solaris,
21928 # but without wasting forks for bash or zsh.
21929 if test -z "$BASH_VERSION$ZSH_VERSION" \
21930 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21931 as_echo='print -r --'
21932 as_echo_n='print -rn --'
21933 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21934 as_echo='printf %s\n'
21935 as_echo_n='printf %s'
21936 else
21937 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21938 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21939 as_echo_n='/usr/ucb/echo -n'
21940 else
21941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21942 as_echo_n_body='eval
21943 arg=$1;
21944 case $arg in #(
21945 *"$as_nl"*)
21946 expr "X$arg" : "X\\(.*\\)$as_nl";
21947 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21948 esac;
21949 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21951 export as_echo_n_body
21952 as_echo_n='sh -c $as_echo_n_body as_echo'
21954 export as_echo_body
21955 as_echo='sh -c $as_echo_body as_echo'
21958 # The user is always right.
21959 if test "${PATH_SEPARATOR+set}" != set; then
21960 PATH_SEPARATOR=:
21961 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21962 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21963 PATH_SEPARATOR=';'
21968 # IFS
21969 # We need space, tab and new line, in precisely that order. Quoting is
21970 # there to prevent editors from complaining about space-tab.
21971 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21972 # splitting by setting IFS to empty value.)
21973 IFS=" "" $as_nl"
21975 # Find who we are. Look in the path if we contain no directory separator.
21976 as_myself=
21977 case $0 in #((
21978 *[\\/]* ) as_myself=$0 ;;
21979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21980 for as_dir in $PATH
21982 IFS=$as_save_IFS
21983 test -z "$as_dir" && as_dir=.
21984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21985 done
21986 IFS=$as_save_IFS
21989 esac
21990 # We did not find ourselves, most probably we were run as `sh COMMAND'
21991 # in which case we are not to be found in the path.
21992 if test "x$as_myself" = x; then
21993 as_myself=$0
21995 if test ! -f "$as_myself"; then
21996 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21997 exit 1
22000 # Unset variables that we do not need and which cause bugs (e.g. in
22001 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22002 # suppresses any "Segmentation fault" message there. '((' could
22003 # trigger a bug in pdksh 5.2.14.
22004 for as_var in BASH_ENV ENV MAIL MAILPATH
22005 do eval test x\${$as_var+set} = xset \
22006 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22007 done
22008 PS1='$ '
22009 PS2='> '
22010 PS4='+ '
22012 # NLS nuisances.
22013 LC_ALL=C
22014 export LC_ALL
22015 LANGUAGE=C
22016 export LANGUAGE
22018 # CDPATH.
22019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22022 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22023 # ----------------------------------------
22024 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22025 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22026 # script with STATUS, using 1 if that was 0.
22027 as_fn_error ()
22029 as_status=$1; test $as_status -eq 0 && as_status=1
22030 if test "$4"; then
22031 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22032 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22034 $as_echo "$as_me: error: $2" >&2
22035 as_fn_exit $as_status
22036 } # as_fn_error
22039 # as_fn_set_status STATUS
22040 # -----------------------
22041 # Set $? to STATUS, without forking.
22042 as_fn_set_status ()
22044 return $1
22045 } # as_fn_set_status
22047 # as_fn_exit STATUS
22048 # -----------------
22049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22050 as_fn_exit ()
22052 set +e
22053 as_fn_set_status $1
22054 exit $1
22055 } # as_fn_exit
22057 # as_fn_unset VAR
22058 # ---------------
22059 # Portably unset VAR.
22060 as_fn_unset ()
22062 { eval $1=; unset $1;}
22064 as_unset=as_fn_unset
22065 # as_fn_append VAR VALUE
22066 # ----------------------
22067 # Append the text in VALUE to the end of the definition contained in VAR. Take
22068 # advantage of any shell optimizations that allow amortized linear growth over
22069 # repeated appends, instead of the typical quadratic growth present in naive
22070 # implementations.
22071 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22072 eval 'as_fn_append ()
22074 eval $1+=\$2
22076 else
22077 as_fn_append ()
22079 eval $1=\$$1\$2
22081 fi # as_fn_append
22083 # as_fn_arith ARG...
22084 # ------------------
22085 # Perform arithmetic evaluation on the ARGs, and store the result in the
22086 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22087 # must be portable across $(()) and expr.
22088 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22089 eval 'as_fn_arith ()
22091 as_val=$(( $* ))
22093 else
22094 as_fn_arith ()
22096 as_val=`expr "$@" || test $? -eq 1`
22098 fi # as_fn_arith
22101 if expr a : '\(a\)' >/dev/null 2>&1 &&
22102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22103 as_expr=expr
22104 else
22105 as_expr=false
22108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22109 as_basename=basename
22110 else
22111 as_basename=false
22114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22115 as_dirname=dirname
22116 else
22117 as_dirname=false
22120 as_me=`$as_basename -- "$0" ||
22121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22122 X"$0" : 'X\(//\)$' \| \
22123 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22124 $as_echo X/"$0" |
22125 sed '/^.*\/\([^/][^/]*\)\/*$/{
22126 s//\1/
22129 /^X\/\(\/\/\)$/{
22130 s//\1/
22133 /^X\/\(\/\).*/{
22134 s//\1/
22137 s/.*/./; q'`
22139 # Avoid depending upon Character Ranges.
22140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22143 as_cr_digits='0123456789'
22144 as_cr_alnum=$as_cr_Letters$as_cr_digits
22146 ECHO_C= ECHO_N= ECHO_T=
22147 case `echo -n x` in #(((((
22148 -n*)
22149 case `echo 'xy\c'` in
22150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22151 xy) ECHO_C='\c';;
22152 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22153 ECHO_T=' ';;
22154 esac;;
22156 ECHO_N='-n';;
22157 esac
22159 rm -f conf$$ conf$$.exe conf$$.file
22160 if test -d conf$$.dir; then
22161 rm -f conf$$.dir/conf$$.file
22162 else
22163 rm -f conf$$.dir
22164 mkdir conf$$.dir 2>/dev/null
22166 if (echo >conf$$.file) 2>/dev/null; then
22167 if ln -s conf$$.file conf$$ 2>/dev/null; then
22168 as_ln_s='ln -s'
22169 # ... but there are two gotchas:
22170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22172 # In both cases, we have to default to `cp -pR'.
22173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22174 as_ln_s='cp -pR'
22175 elif ln conf$$.file conf$$ 2>/dev/null; then
22176 as_ln_s=ln
22177 else
22178 as_ln_s='cp -pR'
22180 else
22181 as_ln_s='cp -pR'
22183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22184 rmdir conf$$.dir 2>/dev/null
22187 # as_fn_mkdir_p
22188 # -------------
22189 # Create "$as_dir" as a directory, including parents if necessary.
22190 as_fn_mkdir_p ()
22193 case $as_dir in #(
22194 -*) as_dir=./$as_dir;;
22195 esac
22196 test -d "$as_dir" || eval $as_mkdir_p || {
22197 as_dirs=
22198 while :; do
22199 case $as_dir in #(
22200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22201 *) as_qdir=$as_dir;;
22202 esac
22203 as_dirs="'$as_qdir' $as_dirs"
22204 as_dir=`$as_dirname -- "$as_dir" ||
22205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22206 X"$as_dir" : 'X\(//\)[^/]' \| \
22207 X"$as_dir" : 'X\(//\)$' \| \
22208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22209 $as_echo X"$as_dir" |
22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22211 s//\1/
22214 /^X\(\/\/\)[^/].*/{
22215 s//\1/
22218 /^X\(\/\/\)$/{
22219 s//\1/
22222 /^X\(\/\).*/{
22223 s//\1/
22226 s/.*/./; q'`
22227 test -d "$as_dir" && break
22228 done
22229 test -z "$as_dirs" || eval "mkdir $as_dirs"
22230 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22233 } # as_fn_mkdir_p
22234 if mkdir -p . 2>/dev/null; then
22235 as_mkdir_p='mkdir -p "$as_dir"'
22236 else
22237 test -d ./-p && rmdir ./-p
22238 as_mkdir_p=false
22242 # as_fn_executable_p FILE
22243 # -----------------------
22244 # Test if FILE is an executable regular file.
22245 as_fn_executable_p ()
22247 test -f "$1" && test -x "$1"
22248 } # as_fn_executable_p
22249 as_test_x='test -x'
22250 as_executable_p=as_fn_executable_p
22252 # Sed expression to map a string onto a valid CPP name.
22253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22255 # Sed expression to map a string onto a valid variable name.
22256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22259 exec 6>&1
22260 ## ----------------------------------- ##
22261 ## Main body of $CONFIG_STATUS script. ##
22262 ## ----------------------------------- ##
22263 _ASEOF
22264 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22267 # Save the log message, to keep $0 and so on meaningful, and to
22268 # report actual input values of CONFIG_FILES etc. instead of their
22269 # values after options handling.
22270 ac_log="
22271 This file was extended by alpine $as_me 2.23.2, which was
22272 generated by GNU Autoconf 2.69. Invocation command line was
22274 CONFIG_FILES = $CONFIG_FILES
22275 CONFIG_HEADERS = $CONFIG_HEADERS
22276 CONFIG_LINKS = $CONFIG_LINKS
22277 CONFIG_COMMANDS = $CONFIG_COMMANDS
22278 $ $0 $@
22280 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22283 _ACEOF
22285 case $ac_config_files in *"
22286 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22287 esac
22289 case $ac_config_headers in *"
22290 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22291 esac
22294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22295 # Files that config.status was made for.
22296 config_files="$ac_config_files"
22297 config_headers="$ac_config_headers"
22298 config_commands="$ac_config_commands"
22300 _ACEOF
22302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22303 ac_cs_usage="\
22304 \`$as_me' instantiates files and other configuration actions
22305 from templates according to the current configuration. Unless the files
22306 and actions are specified as TAGs, all are instantiated by default.
22308 Usage: $0 [OPTION]... [TAG]...
22310 -h, --help print this help, then exit
22311 -V, --version print version number and configuration settings, then exit
22312 --config print configuration, then exit
22313 -q, --quiet, --silent
22314 do not print progress messages
22315 -d, --debug don't remove temporary files
22316 --recheck update $as_me by reconfiguring in the same conditions
22317 --file=FILE[:TEMPLATE]
22318 instantiate the configuration file FILE
22319 --header=FILE[:TEMPLATE]
22320 instantiate the configuration header FILE
22322 Configuration files:
22323 $config_files
22325 Configuration headers:
22326 $config_headers
22328 Configuration commands:
22329 $config_commands
22331 Report bugs to <chappa@washington.edu>."
22333 _ACEOF
22334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22335 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22336 ac_cs_version="\\
22337 alpine config.status 2.23.2
22338 configured by $0, generated by GNU Autoconf 2.69,
22339 with options \\"\$ac_cs_config\\"
22341 Copyright (C) 2012 Free Software Foundation, Inc.
22342 This config.status script is free software; the Free Software Foundation
22343 gives unlimited permission to copy, distribute and modify it."
22345 ac_pwd='$ac_pwd'
22346 srcdir='$srcdir'
22347 INSTALL='$INSTALL'
22348 MKDIR_P='$MKDIR_P'
22349 AWK='$AWK'
22350 test -n "\$AWK" || AWK=awk
22351 _ACEOF
22353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22354 # The default lists apply if the user does not specify any file.
22355 ac_need_defaults=:
22356 while test $# != 0
22358 case $1 in
22359 --*=?*)
22360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22362 ac_shift=:
22364 --*=)
22365 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22366 ac_optarg=
22367 ac_shift=:
22370 ac_option=$1
22371 ac_optarg=$2
22372 ac_shift=shift
22374 esac
22376 case $ac_option in
22377 # Handling of the options.
22378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22379 ac_cs_recheck=: ;;
22380 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22381 $as_echo "$ac_cs_version"; exit ;;
22382 --config | --confi | --conf | --con | --co | --c )
22383 $as_echo "$ac_cs_config"; exit ;;
22384 --debug | --debu | --deb | --de | --d | -d )
22385 debug=: ;;
22386 --file | --fil | --fi | --f )
22387 $ac_shift
22388 case $ac_optarg in
22389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22390 '') as_fn_error $? "missing file argument" ;;
22391 esac
22392 as_fn_append CONFIG_FILES " '$ac_optarg'"
22393 ac_need_defaults=false;;
22394 --header | --heade | --head | --hea )
22395 $ac_shift
22396 case $ac_optarg in
22397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22398 esac
22399 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22400 ac_need_defaults=false;;
22401 --he | --h)
22402 # Conflict between --help and --header
22403 as_fn_error $? "ambiguous option: \`$1'
22404 Try \`$0 --help' for more information.";;
22405 --help | --hel | -h )
22406 $as_echo "$ac_cs_usage"; exit ;;
22407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22409 ac_cs_silent=: ;;
22411 # This is an error.
22412 -*) as_fn_error $? "unrecognized option: \`$1'
22413 Try \`$0 --help' for more information." ;;
22415 *) as_fn_append ac_config_targets " $1"
22416 ac_need_defaults=false ;;
22418 esac
22419 shift
22420 done
22422 ac_configure_extra_args=
22424 if $ac_cs_silent; then
22425 exec 6>/dev/null
22426 ac_configure_extra_args="$ac_configure_extra_args --silent"
22429 _ACEOF
22430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22431 if \$ac_cs_recheck; then
22432 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22433 shift
22434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22435 CONFIG_SHELL='$SHELL'
22436 export CONFIG_SHELL
22437 exec "\$@"
22440 _ACEOF
22441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22442 exec 5>>config.log
22444 echo
22445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22446 ## Running $as_me. ##
22447 _ASBOX
22448 $as_echo "$ac_log"
22449 } >&5
22451 _ACEOF
22452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22454 # INIT-COMMANDS
22456 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22459 # The HP-UX ksh and POSIX shell print the target directory to stdout
22460 # if CDPATH is set.
22461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22463 sed_quote_subst='$sed_quote_subst'
22464 double_quote_subst='$double_quote_subst'
22465 delay_variable_subst='$delay_variable_subst'
22466 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22467 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22468 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22469 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22470 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22471 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22472 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22473 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22474 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22475 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22476 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22477 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22478 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22479 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22480 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22481 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22482 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22483 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22484 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22485 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22486 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22487 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22488 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22489 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22490 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22491 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22492 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22493 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22494 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22495 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22496 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22497 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22498 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22499 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22500 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22501 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22502 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22503 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22504 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22505 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22506 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22507 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22508 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22509 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22510 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22511 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22512 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22513 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22514 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22515 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22516 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22517 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22518 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22519 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22520 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22521 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22522 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22523 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22524 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"`'
22525 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22526 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22527 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22528 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22529 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22530 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22531 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22532 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22533 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22534 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22535 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22536 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22537 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22538 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22539 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22540 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22541 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22542 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22543 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22544 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22545 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22546 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22547 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22548 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22549 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22550 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22551 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22552 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22553 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22554 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22555 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22556 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22557 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22558 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22559 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22560 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22561 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22562 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22563 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22564 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22565 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22566 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22567 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22568 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22569 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22570 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22571 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22572 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22573 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22574 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22575 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22576 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22577 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22578 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22579 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22580 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22581 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22582 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22583 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22584 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22585 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22586 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22587 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22588 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22589 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22590 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22591 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22592 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22593 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22594 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22595 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22596 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22597 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22598 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22599 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22600 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22602 LTCC='$LTCC'
22603 LTCFLAGS='$LTCFLAGS'
22604 compiler='$compiler_DEFAULT'
22606 # A function that is used when there is no print builtin or printf.
22607 func_fallback_echo ()
22609 eval 'cat <<_LTECHO_EOF
22611 _LTECHO_EOF'
22614 # Quote evaled strings.
22615 for var in SHELL \
22616 ECHO \
22617 PATH_SEPARATOR \
22618 SED \
22619 GREP \
22620 EGREP \
22621 FGREP \
22622 LD \
22623 NM \
22624 LN_S \
22625 lt_SP2NL \
22626 lt_NL2SP \
22627 reload_flag \
22628 OBJDUMP \
22629 deplibs_check_method \
22630 file_magic_cmd \
22631 file_magic_glob \
22632 want_nocaseglob \
22633 DLLTOOL \
22634 sharedlib_from_linklib_cmd \
22635 AR \
22636 AR_FLAGS \
22637 archiver_list_spec \
22638 STRIP \
22639 RANLIB \
22640 CC \
22641 CFLAGS \
22642 compiler \
22643 lt_cv_sys_global_symbol_pipe \
22644 lt_cv_sys_global_symbol_to_cdecl \
22645 lt_cv_sys_global_symbol_to_import \
22646 lt_cv_sys_global_symbol_to_c_name_address \
22647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22648 lt_cv_nm_interface \
22649 nm_file_list_spec \
22650 lt_cv_truncate_bin \
22651 lt_prog_compiler_no_builtin_flag \
22652 lt_prog_compiler_pic \
22653 lt_prog_compiler_wl \
22654 lt_prog_compiler_static \
22655 lt_cv_prog_compiler_c_o \
22656 need_locks \
22657 MANIFEST_TOOL \
22658 DSYMUTIL \
22659 NMEDIT \
22660 LIPO \
22661 OTOOL \
22662 OTOOL64 \
22663 shrext_cmds \
22664 export_dynamic_flag_spec \
22665 whole_archive_flag_spec \
22666 compiler_needs_object \
22667 with_gnu_ld \
22668 allow_undefined_flag \
22669 no_undefined_flag \
22670 hardcode_libdir_flag_spec \
22671 hardcode_libdir_separator \
22672 exclude_expsyms \
22673 include_expsyms \
22674 file_list_spec \
22675 variables_saved_for_relink \
22676 libname_spec \
22677 library_names_spec \
22678 soname_spec \
22679 install_override_mode \
22680 finish_eval \
22681 old_striplib \
22682 striplib; do
22683 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22684 *[\\\\\\\`\\"\\\$]*)
22685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22690 esac
22691 done
22693 # Double-quote double-evaled strings.
22694 for var in reload_cmds \
22695 old_postinstall_cmds \
22696 old_postuninstall_cmds \
22697 old_archive_cmds \
22698 extract_expsyms_cmds \
22699 old_archive_from_new_cmds \
22700 old_archive_from_expsyms_cmds \
22701 archive_cmds \
22702 archive_expsym_cmds \
22703 module_cmds \
22704 module_expsym_cmds \
22705 export_symbols_cmds \
22706 prelink_cmds \
22707 postlink_cmds \
22708 postinstall_cmds \
22709 postuninstall_cmds \
22710 finish_cmds \
22711 sys_lib_search_path_spec \
22712 configure_time_dlsearch_path \
22713 configure_time_lt_sys_library_path; do
22714 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22715 *[\\\\\\\`\\"\\\$]*)
22716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22721 esac
22722 done
22724 ac_aux_dir='$ac_aux_dir'
22726 # See if we are running on zsh, and set the options that allow our
22727 # commands through without removal of \ escapes INIT.
22728 if test -n "\${ZSH_VERSION+set}"; then
22729 setopt NO_GLOB_SUBST
22733 PACKAGE='$PACKAGE'
22734 VERSION='$VERSION'
22735 RM='$RM'
22736 ofile='$ofile'
22740 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22741 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22742 # from automake < 1.5.
22743 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22744 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22745 LINGUAS="${LINGUAS-%UNSET%}"
22748 _ACEOF
22750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752 # Handling of arguments.
22753 for ac_config_target in $ac_config_targets
22755 case $ac_config_target in
22756 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22758 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22759 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22760 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22761 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22762 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22763 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22764 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22765 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22766 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22767 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22768 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22769 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22770 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22771 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22772 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22773 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22775 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22776 esac
22777 done
22780 # If the user did not use the arguments to specify the items to instantiate,
22781 # then the envvar interface is used. Set only those that are not.
22782 # We use the long form for the default assignment because of an extremely
22783 # bizarre bug on SunOS 4.1.3.
22784 if $ac_need_defaults; then
22785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22790 # Have a temporary directory for convenience. Make it in the build tree
22791 # simply because there is no reason against having it here, and in addition,
22792 # creating and moving files from /tmp can sometimes cause problems.
22793 # Hook for its removal unless debugging.
22794 # Note that there is a small window in which the directory will not be cleaned:
22795 # after its creation but before its name has been assigned to `$tmp'.
22796 $debug ||
22798 tmp= ac_tmp=
22799 trap 'exit_status=$?
22800 : "${ac_tmp:=$tmp}"
22801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22803 trap 'as_fn_exit 1' 1 2 13 15
22805 # Create a (secure) tmp directory for tmp files.
22808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22809 test -d "$tmp"
22810 } ||
22812 tmp=./conf$$-$RANDOM
22813 (umask 077 && mkdir "$tmp")
22814 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22815 ac_tmp=$tmp
22817 # Set up the scripts for CONFIG_FILES section.
22818 # No need to generate them if there are no CONFIG_FILES.
22819 # This happens for instance with `./config.status config.h'.
22820 if test -n "$CONFIG_FILES"; then
22823 ac_cr=`echo X | tr X '\015'`
22824 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22825 # But we know of no other shell where ac_cr would be empty at this
22826 # point, so we can use a bashism as a fallback.
22827 if test "x$ac_cr" = x; then
22828 eval ac_cr=\$\'\\r\'
22830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22832 ac_cs_awk_cr='\\r'
22833 else
22834 ac_cs_awk_cr=$ac_cr
22837 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22838 _ACEOF
22842 echo "cat >conf$$subs.awk <<_ACEOF" &&
22843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22844 echo "_ACEOF"
22845 } >conf$$subs.sh ||
22846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22848 ac_delim='%!_!# '
22849 for ac_last_try in false false false false false :; do
22850 . ./conf$$subs.sh ||
22851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22854 if test $ac_delim_n = $ac_delim_num; then
22855 break
22856 elif $ac_last_try; then
22857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22858 else
22859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22861 done
22862 rm -f conf$$subs.sh
22864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22865 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22866 _ACEOF
22867 sed -n '
22869 s/^/S["/; s/!.*/"]=/
22872 s/^[^!]*!//
22873 :repl
22874 t repl
22875 s/'"$ac_delim"'$//
22876 t delim
22879 s/\(.\{148\}\)..*/\1/
22880 t more1
22881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22884 b repl
22885 :more1
22886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22889 s/.\{148\}//
22890 t nl
22891 :delim
22893 s/\(.\{148\}\)..*/\1/
22894 t more2
22895 s/["\\]/\\&/g; s/^/"/; s/$/"/
22898 :more2
22899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22902 s/.\{148\}//
22903 t delim
22904 ' <conf$$subs.awk | sed '
22905 /^[^""]/{
22907 s/\n//
22909 ' >>$CONFIG_STATUS || ac_write_fail=1
22910 rm -f conf$$subs.awk
22911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912 _ACAWK
22913 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22914 for (key in S) S_is_set[key] = 1
22915 FS = "\a"
22919 line = $ 0
22920 nfields = split(line, field, "@")
22921 substed = 0
22922 len = length(field[1])
22923 for (i = 2; i < nfields; i++) {
22924 key = field[i]
22925 keylen = length(key)
22926 if (S_is_set[key]) {
22927 value = S[key]
22928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22929 len += length(value) + length(field[++i])
22930 substed = 1
22931 } else
22932 len += 1 + keylen
22935 print line
22938 _ACAWK
22939 _ACEOF
22940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22941 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22943 else
22945 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22946 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22947 _ACEOF
22949 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22950 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22951 # trailing colons and then remove the whole line if VPATH becomes empty
22952 # (actually we leave an empty line to preserve line numbers).
22953 if test "x$srcdir" = x.; then
22954 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22956 s///
22957 s/^/:/
22958 s/[ ]*$/:/
22959 s/:\$(srcdir):/:/g
22960 s/:\${srcdir}:/:/g
22961 s/:@srcdir@:/:/g
22962 s/^:*//
22963 s/:*$//
22965 s/\(=[ ]*\).*/\1/
22967 s/\n//
22968 s/^[^=]*=[ ]*$//
22972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22973 fi # test -n "$CONFIG_FILES"
22975 # Set up the scripts for CONFIG_HEADERS section.
22976 # No need to generate them if there are no CONFIG_HEADERS.
22977 # This happens for instance with `./config.status Makefile'.
22978 if test -n "$CONFIG_HEADERS"; then
22979 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22980 BEGIN {
22981 _ACEOF
22983 # Transform confdefs.h into an awk script `defines.awk', embedded as
22984 # here-document in config.status, that substitutes the proper values into
22985 # config.h.in to produce config.h.
22987 # Create a delimiter string that does not exist in confdefs.h, to ease
22988 # handling of long lines.
22989 ac_delim='%!_!# '
22990 for ac_last_try in false false :; do
22991 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22992 if test -z "$ac_tt"; then
22993 break
22994 elif $ac_last_try; then
22995 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22996 else
22997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22999 done
23001 # For the awk script, D is an array of macro values keyed by name,
23002 # likewise P contains macro parameters if any. Preserve backslash
23003 # newline sequences.
23005 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23006 sed -n '
23007 s/.\{148\}/&'"$ac_delim"'/g
23008 t rset
23009 :rset
23010 s/^[ ]*#[ ]*define[ ][ ]*/ /
23011 t def
23013 :def
23014 s/\\$//
23015 t bsnl
23016 s/["\\]/\\&/g
23017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23018 D["\1"]=" \3"/p
23019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23021 :bsnl
23022 s/["\\]/\\&/g
23023 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23024 D["\1"]=" \3\\\\\\n"\\/p
23025 t cont
23026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23027 t cont
23029 :cont
23031 s/.\{148\}/&'"$ac_delim"'/g
23032 t clear
23033 :clear
23034 s/\\$//
23035 t bsnlc
23036 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23038 :bsnlc
23039 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23040 b cont
23041 ' <confdefs.h | sed '
23042 s/'"$ac_delim"'/"\\\
23043 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23046 for (key in D) D_is_set[key] = 1
23047 FS = "\a"
23049 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23050 line = \$ 0
23051 split(line, arg, " ")
23052 if (arg[1] == "#") {
23053 defundef = arg[2]
23054 mac1 = arg[3]
23055 } else {
23056 defundef = substr(arg[1], 2)
23057 mac1 = arg[2]
23059 split(mac1, mac2, "(") #)
23060 macro = mac2[1]
23061 prefix = substr(line, 1, index(line, defundef) - 1)
23062 if (D_is_set[macro]) {
23063 # Preserve the white space surrounding the "#".
23064 print prefix "define", macro P[macro] D[macro]
23065 next
23066 } else {
23067 # Replace #undef with comments. This is necessary, for example,
23068 # in the case of _POSIX_SOURCE, which is predefined and required
23069 # on some systems where configure will not decide to define it.
23070 if (defundef == "undef") {
23071 print "/*", prefix defundef, macro, "*/"
23072 next
23076 { print }
23077 _ACAWK
23078 _ACEOF
23079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23080 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23081 fi # test -n "$CONFIG_HEADERS"
23084 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23085 shift
23086 for ac_tag
23088 case $ac_tag in
23089 :[FHLC]) ac_mode=$ac_tag; continue;;
23090 esac
23091 case $ac_mode$ac_tag in
23092 :[FHL]*:*);;
23093 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23094 :[FH]-) ac_tag=-:-;;
23095 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23096 esac
23097 ac_save_IFS=$IFS
23098 IFS=:
23099 set x $ac_tag
23100 IFS=$ac_save_IFS
23101 shift
23102 ac_file=$1
23103 shift
23105 case $ac_mode in
23106 :L) ac_source=$1;;
23107 :[FH])
23108 ac_file_inputs=
23109 for ac_f
23111 case $ac_f in
23112 -) ac_f="$ac_tmp/stdin";;
23113 *) # Look for the file first in the build tree, then in the source tree
23114 # (if the path is not absolute). The absolute path cannot be DOS-style,
23115 # because $ac_f cannot contain `:'.
23116 test -f "$ac_f" ||
23117 case $ac_f in
23118 [\\/$]*) false;;
23119 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23120 esac ||
23121 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23122 esac
23123 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23124 as_fn_append ac_file_inputs " '$ac_f'"
23125 done
23127 # Let's still pretend it is `configure' which instantiates (i.e., don't
23128 # use $as_me), people would be surprised to read:
23129 # /* config.h. Generated by config.status. */
23130 configure_input='Generated from '`
23131 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23132 `' by configure.'
23133 if test x"$ac_file" != x-; then
23134 configure_input="$ac_file. $configure_input"
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23136 $as_echo "$as_me: creating $ac_file" >&6;}
23138 # Neutralize special characters interpreted by sed in replacement strings.
23139 case $configure_input in #(
23140 *\&* | *\|* | *\\* )
23141 ac_sed_conf_input=`$as_echo "$configure_input" |
23142 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23143 *) ac_sed_conf_input=$configure_input;;
23144 esac
23146 case $ac_tag in
23147 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23149 esac
23151 esac
23153 ac_dir=`$as_dirname -- "$ac_file" ||
23154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23155 X"$ac_file" : 'X\(//\)[^/]' \| \
23156 X"$ac_file" : 'X\(//\)$' \| \
23157 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23158 $as_echo X"$ac_file" |
23159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23160 s//\1/
23163 /^X\(\/\/\)[^/].*/{
23164 s//\1/
23167 /^X\(\/\/\)$/{
23168 s//\1/
23171 /^X\(\/\).*/{
23172 s//\1/
23175 s/.*/./; q'`
23176 as_dir="$ac_dir"; as_fn_mkdir_p
23177 ac_builddir=.
23179 case "$ac_dir" in
23180 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23182 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23183 # A ".." for each directory in $ac_dir_suffix.
23184 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23185 case $ac_top_builddir_sub in
23186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23188 esac ;;
23189 esac
23190 ac_abs_top_builddir=$ac_pwd
23191 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23192 # for backward compatibility:
23193 ac_top_builddir=$ac_top_build_prefix
23195 case $srcdir in
23196 .) # We are building in place.
23197 ac_srcdir=.
23198 ac_top_srcdir=$ac_top_builddir_sub
23199 ac_abs_top_srcdir=$ac_pwd ;;
23200 [\\/]* | ?:[\\/]* ) # Absolute name.
23201 ac_srcdir=$srcdir$ac_dir_suffix;
23202 ac_top_srcdir=$srcdir
23203 ac_abs_top_srcdir=$srcdir ;;
23204 *) # Relative name.
23205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23206 ac_top_srcdir=$ac_top_build_prefix$srcdir
23207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23208 esac
23209 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23212 case $ac_mode in
23215 # CONFIG_FILE
23218 case $INSTALL in
23219 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23220 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23221 esac
23222 ac_MKDIR_P=$MKDIR_P
23223 case $MKDIR_P in
23224 [\\/$]* | ?:[\\/]* ) ;;
23225 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23226 esac
23227 _ACEOF
23229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23230 # If the template does not know about datarootdir, expand it.
23231 # FIXME: This hack should be removed a few years after 2.60.
23232 ac_datarootdir_hack=; ac_datarootdir_seen=
23233 ac_sed_dataroot='
23234 /datarootdir/ {
23238 /@datadir@/p
23239 /@docdir@/p
23240 /@infodir@/p
23241 /@localedir@/p
23242 /@mandir@/p'
23243 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23244 *datarootdir*) ac_datarootdir_seen=yes;;
23245 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23247 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23248 _ACEOF
23249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23250 ac_datarootdir_hack='
23251 s&@datadir@&$datadir&g
23252 s&@docdir@&$docdir&g
23253 s&@infodir@&$infodir&g
23254 s&@localedir@&$localedir&g
23255 s&@mandir@&$mandir&g
23256 s&\\\${datarootdir}&$datarootdir&g' ;;
23257 esac
23258 _ACEOF
23260 # Neutralize VPATH when `$srcdir' = `.'.
23261 # Shell code in configure.ac might set extrasub.
23262 # FIXME: do we really want to maintain this feature?
23263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23264 ac_sed_extra="$ac_vpsub
23265 $extrasub
23266 _ACEOF
23267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23270 s|@configure_input@|$ac_sed_conf_input|;t t
23271 s&@top_builddir@&$ac_top_builddir_sub&;t t
23272 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23273 s&@srcdir@&$ac_srcdir&;t t
23274 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23275 s&@top_srcdir@&$ac_top_srcdir&;t t
23276 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23277 s&@builddir@&$ac_builddir&;t t
23278 s&@abs_builddir@&$ac_abs_builddir&;t t
23279 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23280 s&@INSTALL@&$ac_INSTALL&;t t
23281 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23282 $ac_datarootdir_hack
23284 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23285 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23288 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23290 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23292 which seems to be undefined. Please make sure it is defined" >&5
23293 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23294 which seems to be undefined. Please make sure it is defined" >&2;}
23296 rm -f "$ac_tmp/stdin"
23297 case $ac_file in
23298 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23299 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23300 esac \
23301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23305 # CONFIG_HEADER
23307 if test x"$ac_file" != x-; then
23309 $as_echo "/* $configure_input */" \
23310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23311 } >"$ac_tmp/config.h" \
23312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23313 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23315 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23316 else
23317 rm -f "$ac_file"
23318 mv "$ac_tmp/config.h" "$ac_file" \
23319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23321 else
23322 $as_echo "/* $configure_input */" \
23323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23324 || as_fn_error $? "could not create -" "$LINENO" 5
23326 # Compute "$ac_file"'s index in $config_headers.
23327 _am_arg="$ac_file"
23328 _am_stamp_count=1
23329 for _am_header in $config_headers :; do
23330 case $_am_header in
23331 $_am_arg | $_am_arg:* )
23332 break ;;
23334 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23335 esac
23336 done
23337 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23338 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23339 X"$_am_arg" : 'X\(//\)[^/]' \| \
23340 X"$_am_arg" : 'X\(//\)$' \| \
23341 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23342 $as_echo X"$_am_arg" |
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23344 s//\1/
23347 /^X\(\/\/\)[^/].*/{
23348 s//\1/
23351 /^X\(\/\/\)$/{
23352 s//\1/
23355 /^X\(\/\).*/{
23356 s//\1/
23359 s/.*/./; q'`/stamp-h$_am_stamp_count
23362 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23363 $as_echo "$as_me: executing $ac_file commands" >&6;}
23365 esac
23368 case $ac_file$ac_mode in
23369 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23370 # Older Autoconf quotes --file arguments for eval, but not when files
23371 # are listed without --file. Let's play safe and only enable the eval
23372 # if we detect the quoting.
23373 case $CONFIG_FILES in
23374 *\'*) eval set x "$CONFIG_FILES" ;;
23375 *) set x $CONFIG_FILES ;;
23376 esac
23377 shift
23378 for mf
23380 # Strip MF so we end up with the name of the file.
23381 mf=`echo "$mf" | sed -e 's/:.*$//'`
23382 # Check whether this is an Automake generated Makefile or not.
23383 # We used to match only the files named 'Makefile.in', but
23384 # some people rename them; so instead we look at the file content.
23385 # Grep'ing the first line is not enough: some people post-process
23386 # each Makefile.in and add a new line on top of each file to say so.
23387 # Grep'ing the whole file is not good either: AIX grep has a line
23388 # limit of 2048, but all sed's we know have understand at least 4000.
23389 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23390 dirpart=`$as_dirname -- "$mf" ||
23391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23392 X"$mf" : 'X\(//\)[^/]' \| \
23393 X"$mf" : 'X\(//\)$' \| \
23394 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23395 $as_echo X"$mf" |
23396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23397 s//\1/
23400 /^X\(\/\/\)[^/].*/{
23401 s//\1/
23404 /^X\(\/\/\)$/{
23405 s//\1/
23408 /^X\(\/\).*/{
23409 s//\1/
23412 s/.*/./; q'`
23413 else
23414 continue
23416 # Extract the definition of DEPDIR, am__include, and am__quote
23417 # from the Makefile without running 'make'.
23418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23419 test -z "$DEPDIR" && continue
23420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23421 test -z "$am__include" && continue
23422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23423 # Find all dependency output files, they are included files with
23424 # $(DEPDIR) in their names. We invoke sed twice because it is the
23425 # simplest approach to changing $(DEPDIR) to its actual value in the
23426 # expansion.
23427 for file in `sed -n "
23428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23430 # Make sure the directory exists.
23431 test -f "$dirpart/$file" && continue
23432 fdir=`$as_dirname -- "$file" ||
23433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23434 X"$file" : 'X\(//\)[^/]' \| \
23435 X"$file" : 'X\(//\)$' \| \
23436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23437 $as_echo X"$file" |
23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23439 s//\1/
23442 /^X\(\/\/\)[^/].*/{
23443 s//\1/
23446 /^X\(\/\/\)$/{
23447 s//\1/
23450 /^X\(\/\).*/{
23451 s//\1/
23454 s/.*/./; q'`
23455 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23456 # echo "creating $dirpart/$file"
23457 echo '# dummy' > "$dirpart/$file"
23458 done
23459 done
23462 "libtool":C)
23464 # See if we are running on zsh, and set the options that allow our
23465 # commands through without removal of \ escapes.
23466 if test -n "${ZSH_VERSION+set}"; then
23467 setopt NO_GLOB_SUBST
23470 cfgfile=${ofile}T
23471 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23472 $RM "$cfgfile"
23474 cat <<_LT_EOF >> "$cfgfile"
23475 #! $SHELL
23476 # Generated automatically by $as_me ($PACKAGE) $VERSION
23477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23479 # Provide generalized library-building support services.
23480 # Written by Gordon Matzigkeit, 1996
23482 # Copyright (C) 2014 Free Software Foundation, Inc.
23483 # This is free software; see the source for copying conditions. There is NO
23484 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23486 # GNU Libtool is free software; you can redistribute it and/or modify
23487 # it under the terms of the GNU General Public License as published by
23488 # the Free Software Foundation; either version 2 of of the License, or
23489 # (at your option) any later version.
23491 # As a special exception to the GNU General Public License, if you
23492 # distribute this file as part of a program or library that is built
23493 # using GNU Libtool, you may include this file under the same
23494 # distribution terms that you use for the rest of that program.
23496 # GNU Libtool is distributed in the hope that it will be useful, but
23497 # WITHOUT ANY WARRANTY; without even the implied warranty of
23498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23499 # GNU General Public License for more details.
23501 # You should have received a copy of the GNU General Public License
23502 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23505 # The names of the tagged configurations supported by this script.
23506 available_tags=''
23508 # Configured defaults for sys_lib_dlsearch_path munging.
23509 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23511 # ### BEGIN LIBTOOL CONFIG
23513 # Which release of libtool.m4 was used?
23514 macro_version=$macro_version
23515 macro_revision=$macro_revision
23517 # Whether or not to build shared libraries.
23518 build_libtool_libs=$enable_shared
23520 # Whether or not to build static libraries.
23521 build_old_libs=$enable_static
23523 # What type of objects to build.
23524 pic_mode=$pic_mode
23526 # Whether or not to optimize for fast installation.
23527 fast_install=$enable_fast_install
23529 # Shared archive member basename,for filename based shared library versioning on AIX.
23530 shared_archive_member_spec=$shared_archive_member_spec
23532 # Shell to use when invoking shell scripts.
23533 SHELL=$lt_SHELL
23535 # An echo program that protects backslashes.
23536 ECHO=$lt_ECHO
23538 # The PATH separator for the build system.
23539 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23541 # The host system.
23542 host_alias=$host_alias
23543 host=$host
23544 host_os=$host_os
23546 # The build system.
23547 build_alias=$build_alias
23548 build=$build
23549 build_os=$build_os
23551 # A sed program that does not truncate output.
23552 SED=$lt_SED
23554 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23555 Xsed="\$SED -e 1s/^X//"
23557 # A grep program that handles long lines.
23558 GREP=$lt_GREP
23560 # An ERE matcher.
23561 EGREP=$lt_EGREP
23563 # A literal string matcher.
23564 FGREP=$lt_FGREP
23566 # A BSD- or MS-compatible name lister.
23567 NM=$lt_NM
23569 # Whether we need soft or hard links.
23570 LN_S=$lt_LN_S
23572 # What is the maximum length of a command?
23573 max_cmd_len=$max_cmd_len
23575 # Object file suffix (normally "o").
23576 objext=$ac_objext
23578 # Executable file suffix (normally "").
23579 exeext=$exeext
23581 # whether the shell understands "unset".
23582 lt_unset=$lt_unset
23584 # turn spaces into newlines.
23585 SP2NL=$lt_lt_SP2NL
23587 # turn newlines into spaces.
23588 NL2SP=$lt_lt_NL2SP
23590 # convert \$build file names to \$host format.
23591 to_host_file_cmd=$lt_cv_to_host_file_cmd
23593 # convert \$build files to toolchain format.
23594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23596 # An object symbol dumper.
23597 OBJDUMP=$lt_OBJDUMP
23599 # Method to check whether dependent libraries are shared objects.
23600 deplibs_check_method=$lt_deplibs_check_method
23602 # Command to use when deplibs_check_method = "file_magic".
23603 file_magic_cmd=$lt_file_magic_cmd
23605 # How to find potential files when deplibs_check_method = "file_magic".
23606 file_magic_glob=$lt_file_magic_glob
23608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23609 want_nocaseglob=$lt_want_nocaseglob
23611 # DLL creation program.
23612 DLLTOOL=$lt_DLLTOOL
23614 # Command to associate shared and link libraries.
23615 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23617 # The archiver.
23618 AR=$lt_AR
23620 # Flags to create an archive.
23621 AR_FLAGS=$lt_AR_FLAGS
23623 # How to feed a file listing to the archiver.
23624 archiver_list_spec=$lt_archiver_list_spec
23626 # A symbol stripping program.
23627 STRIP=$lt_STRIP
23629 # Commands used to install an old-style archive.
23630 RANLIB=$lt_RANLIB
23631 old_postinstall_cmds=$lt_old_postinstall_cmds
23632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23634 # Whether to use a lock for old archive extraction.
23635 lock_old_archive_extraction=$lock_old_archive_extraction
23637 # A C compiler.
23638 LTCC=$lt_CC
23640 # LTCC compiler flags.
23641 LTCFLAGS=$lt_CFLAGS
23643 # Take the output of nm and produce a listing of raw symbols and C names.
23644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23646 # Transform the output of nm in a proper C declaration.
23647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23649 # Transform the output of nm into a list of symbols to manually relocate.
23650 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23652 # Transform the output of nm in a C name address pair.
23653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23655 # Transform the output of nm in a C name address pair when lib prefix is needed.
23656 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23658 # The name lister interface.
23659 nm_interface=$lt_lt_cv_nm_interface
23661 # Specify filename containing input files for \$NM.
23662 nm_file_list_spec=$lt_nm_file_list_spec
23664 # The root where to search for dependent libraries,and where our libraries should be installed.
23665 lt_sysroot=$lt_sysroot
23667 # Command to truncate a binary pipe.
23668 lt_truncate_bin=$lt_lt_cv_truncate_bin
23670 # The name of the directory that contains temporary libtool files.
23671 objdir=$objdir
23673 # Used to examine libraries when file_magic_cmd begins with "file".
23674 MAGIC_CMD=$MAGIC_CMD
23676 # Must we lock files when doing compilation?
23677 need_locks=$lt_need_locks
23679 # Manifest tool.
23680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23683 DSYMUTIL=$lt_DSYMUTIL
23685 # Tool to change global to local symbols on Mac OS X.
23686 NMEDIT=$lt_NMEDIT
23688 # Tool to manipulate fat objects and archives on Mac OS X.
23689 LIPO=$lt_LIPO
23691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23692 OTOOL=$lt_OTOOL
23694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23695 OTOOL64=$lt_OTOOL64
23697 # Old archive suffix (normally "a").
23698 libext=$libext
23700 # Shared library suffix (normally ".so").
23701 shrext_cmds=$lt_shrext_cmds
23703 # The commands to extract the exported symbol list from a shared archive.
23704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23706 # Variables whose values should be saved in libtool wrapper scripts and
23707 # restored at link time.
23708 variables_saved_for_relink=$lt_variables_saved_for_relink
23710 # Do we need the "lib" prefix for modules?
23711 need_lib_prefix=$need_lib_prefix
23713 # Do we need a version for libraries?
23714 need_version=$need_version
23716 # Library versioning type.
23717 version_type=$version_type
23719 # Shared library runtime path variable.
23720 runpath_var=$runpath_var
23722 # Shared library path variable.
23723 shlibpath_var=$shlibpath_var
23725 # Is shlibpath searched before the hard-coded library search path?
23726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23728 # Format of library name prefix.
23729 libname_spec=$lt_libname_spec
23731 # List of archive names. First name is the real one, the rest are links.
23732 # The last name is the one that the linker finds with -lNAME
23733 library_names_spec=$lt_library_names_spec
23735 # The coded name of the library, if different from the real name.
23736 soname_spec=$lt_soname_spec
23738 # Permission mode override for installation of shared libraries.
23739 install_override_mode=$lt_install_override_mode
23741 # Command to use after installation of a shared archive.
23742 postinstall_cmds=$lt_postinstall_cmds
23744 # Command to use after uninstallation of a shared archive.
23745 postuninstall_cmds=$lt_postuninstall_cmds
23747 # Commands used to finish a libtool library installation in a directory.
23748 finish_cmds=$lt_finish_cmds
23750 # As "finish_cmds", except a single script fragment to be evaled but
23751 # not shown.
23752 finish_eval=$lt_finish_eval
23754 # Whether we should hardcode library paths into libraries.
23755 hardcode_into_libs=$hardcode_into_libs
23757 # Compile-time system search path for libraries.
23758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23760 # Detected run-time system search path for libraries.
23761 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23763 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23764 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23766 # Whether dlopen is supported.
23767 dlopen_support=$enable_dlopen
23769 # Whether dlopen of programs is supported.
23770 dlopen_self=$enable_dlopen_self
23772 # Whether dlopen of statically linked programs is supported.
23773 dlopen_self_static=$enable_dlopen_self_static
23775 # Commands to strip libraries.
23776 old_striplib=$lt_old_striplib
23777 striplib=$lt_striplib
23780 # The linker used to build libraries.
23781 LD=$lt_LD
23783 # How to create reloadable object files.
23784 reload_flag=$lt_reload_flag
23785 reload_cmds=$lt_reload_cmds
23787 # Commands used to build an old-style archive.
23788 old_archive_cmds=$lt_old_archive_cmds
23790 # A language specific compiler.
23791 CC=$lt_compiler
23793 # Is the compiler the GNU compiler?
23794 with_gcc=$GCC
23796 # Compiler flag to turn off builtin functions.
23797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23799 # Additional compiler flags for building library objects.
23800 pic_flag=$lt_lt_prog_compiler_pic
23802 # How to pass a linker flag through the compiler.
23803 wl=$lt_lt_prog_compiler_wl
23805 # Compiler flag to prevent dynamic linking.
23806 link_static_flag=$lt_lt_prog_compiler_static
23808 # Does compiler simultaneously support -c and -o options?
23809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23811 # Whether or not to add -lc for building shared libraries.
23812 build_libtool_need_lc=$archive_cmds_need_lc
23814 # Whether or not to disallow shared libs when runtime libs are static.
23815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23817 # Compiler flag to allow reflexive dlopens.
23818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23820 # Compiler flag to generate shared objects directly from archives.
23821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23823 # Whether the compiler copes with passing no objects directly.
23824 compiler_needs_object=$lt_compiler_needs_object
23826 # Create an old-style archive from a shared archive.
23827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23829 # Create a temporary old-style archive to link instead of a shared archive.
23830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23832 # Commands used to build a shared archive.
23833 archive_cmds=$lt_archive_cmds
23834 archive_expsym_cmds=$lt_archive_expsym_cmds
23836 # Commands used to build a loadable module if different from building
23837 # a shared archive.
23838 module_cmds=$lt_module_cmds
23839 module_expsym_cmds=$lt_module_expsym_cmds
23841 # Whether we are building with GNU ld or not.
23842 with_gnu_ld=$lt_with_gnu_ld
23844 # Flag that allows shared libraries with undefined symbols to be built.
23845 allow_undefined_flag=$lt_allow_undefined_flag
23847 # Flag that enforces no undefined symbols.
23848 no_undefined_flag=$lt_no_undefined_flag
23850 # Flag to hardcode \$libdir into a binary during linking.
23851 # This must work even if \$libdir does not exist
23852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23854 # Whether we need a single "-rpath" flag with a separated argument.
23855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23857 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23858 # DIR into the resulting binary.
23859 hardcode_direct=$hardcode_direct
23861 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23862 # DIR into the resulting binary and the resulting library dependency is
23863 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23864 # library is relocated.
23865 hardcode_direct_absolute=$hardcode_direct_absolute
23867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23868 # into the resulting binary.
23869 hardcode_minus_L=$hardcode_minus_L
23871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23872 # into the resulting binary.
23873 hardcode_shlibpath_var=$hardcode_shlibpath_var
23875 # Set to "yes" if building a shared library automatically hardcodes DIR
23876 # into the library and all subsequent libraries and executables linked
23877 # against it.
23878 hardcode_automatic=$hardcode_automatic
23880 # Set to yes if linker adds runtime paths of dependent libraries
23881 # to runtime path list.
23882 inherit_rpath=$inherit_rpath
23884 # Whether libtool must link a program against all its dependency libraries.
23885 link_all_deplibs=$link_all_deplibs
23887 # Set to "yes" if exported symbols are required.
23888 always_export_symbols=$always_export_symbols
23890 # The commands to list exported symbols.
23891 export_symbols_cmds=$lt_export_symbols_cmds
23893 # Symbols that should not be listed in the preloaded symbols.
23894 exclude_expsyms=$lt_exclude_expsyms
23896 # Symbols that must always be exported.
23897 include_expsyms=$lt_include_expsyms
23899 # Commands necessary for linking programs (against libraries) with templates.
23900 prelink_cmds=$lt_prelink_cmds
23902 # Commands necessary for finishing linking programs.
23903 postlink_cmds=$lt_postlink_cmds
23905 # Specify filename containing input files.
23906 file_list_spec=$lt_file_list_spec
23908 # How to hardcode a shared library path into an executable.
23909 hardcode_action=$hardcode_action
23911 # ### END LIBTOOL CONFIG
23913 _LT_EOF
23915 cat <<'_LT_EOF' >> "$cfgfile"
23917 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23919 # func_munge_path_list VARIABLE PATH
23920 # -----------------------------------
23921 # VARIABLE is name of variable containing _space_ separated list of
23922 # directories to be munged by the contents of PATH, which is string
23923 # having a format:
23924 # "DIR[:DIR]:"
23925 # string "DIR[ DIR]" will be prepended to VARIABLE
23926 # ":DIR[:DIR]"
23927 # string "DIR[ DIR]" will be appended to VARIABLE
23928 # "DIRP[:DIRP]::[DIRA:]DIRA"
23929 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23930 # "DIRA[ DIRA]" will be appended to VARIABLE
23931 # "DIR[:DIR]"
23932 # VARIABLE will be replaced by "DIR[ DIR]"
23933 func_munge_path_list ()
23935 case x$2 in
23939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23941 x:*)
23942 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23944 *::*)
23945 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23946 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23951 esac
23955 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23956 func_cc_basename ()
23958 for cc_temp in $*""; do
23959 case $cc_temp in
23960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23962 \-*) ;;
23963 *) break;;
23964 esac
23965 done
23966 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23970 # ### END FUNCTIONS SHARED WITH CONFIGURE
23972 _LT_EOF
23974 case $host_os in
23975 aix3*)
23976 cat <<\_LT_EOF >> "$cfgfile"
23977 # AIX sometimes has problems with the GCC collect2 program. For some
23978 # reason, if we set the COLLECT_NAMES environment variable, the problems
23979 # vanish in a puff of smoke.
23980 if test set != "${COLLECT_NAMES+set}"; then
23981 COLLECT_NAMES=
23982 export COLLECT_NAMES
23984 _LT_EOF
23986 esac
23989 ltmain=$ac_aux_dir/ltmain.sh
23992 # We use sed instead of cat because bash on DJGPP gets confused if
23993 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23994 # text mode, it properly converts lines to CR/LF. This bash problem
23995 # is reportedly fixed, but why not run on old versions too?
23996 sed '$q' "$ltmain" >> "$cfgfile" \
23997 || (rm -f "$cfgfile"; exit 1)
23999 mv -f "$cfgfile" "$ofile" ||
24000 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24001 chmod +x "$ofile"
24004 "po-directories":C)
24005 for ac_file in $CONFIG_FILES; do
24006 # Support "outfile[:infile[:infile...]]"
24007 case "$ac_file" in
24008 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24009 esac
24010 # PO directories have a Makefile.in generated from Makefile.in.in.
24011 case "$ac_file" in */Makefile.in)
24012 # Adjust a relative srcdir.
24013 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24014 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24015 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24016 # In autoconf-2.13 it is called $ac_given_srcdir.
24017 # In autoconf-2.50 it is called $srcdir.
24018 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24019 case "$ac_given_srcdir" in
24020 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24021 /*) top_srcdir="$ac_given_srcdir" ;;
24022 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24023 esac
24024 # Treat a directory as a PO directory if and only if it has a
24025 # POTFILES.in file. This allows packages to have multiple PO
24026 # directories under different names or in different locations.
24027 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24028 rm -f "$ac_dir/POTFILES"
24029 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24030 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24031 POMAKEFILEDEPS="POTFILES.in"
24032 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24033 # on $ac_dir but don't depend on user-specified configuration
24034 # parameters.
24035 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24036 # The LINGUAS file contains the set of available languages.
24037 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24038 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24040 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24041 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24042 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24043 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24044 else
24045 # The set of available languages was given in configure.in.
24046 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24047 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24049 # Compute POFILES
24050 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24051 # Compute UPDATEPOFILES
24052 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24053 # Compute DUMMYPOFILES
24054 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24055 # Compute GMOFILES
24056 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24057 case "$ac_given_srcdir" in
24058 .) srcdirpre= ;;
24059 *) srcdirpre='$(srcdir)/' ;;
24060 esac
24061 POFILES=
24062 UPDATEPOFILES=
24063 DUMMYPOFILES=
24064 GMOFILES=
24065 for lang in $ALL_LINGUAS; do
24066 POFILES="$POFILES $srcdirpre$lang.po"
24067 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24068 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24069 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24070 done
24071 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24072 # environment variable.
24073 INST_LINGUAS=
24074 if test -n "$ALL_LINGUAS"; then
24075 for presentlang in $ALL_LINGUAS; do
24076 useit=no
24077 if test "%UNSET%" != "$LINGUAS"; then
24078 desiredlanguages="$LINGUAS"
24079 else
24080 desiredlanguages="$ALL_LINGUAS"
24082 for desiredlang in $desiredlanguages; do
24083 # Use the presentlang catalog if desiredlang is
24084 # a. equal to presentlang, or
24085 # b. a variant of presentlang (because in this case,
24086 # presentlang can be used as a fallback for messages
24087 # which are not translated in the desiredlang catalog).
24088 case "$desiredlang" in
24089 "$presentlang"*) useit=yes;;
24090 esac
24091 done
24092 if test $useit = yes; then
24093 INST_LINGUAS="$INST_LINGUAS $presentlang"
24095 done
24097 CATALOGS=
24098 if test -n "$INST_LINGUAS"; then
24099 for lang in $INST_LINGUAS; do
24100 CATALOGS="$CATALOGS $lang.gmo"
24101 done
24103 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24104 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"
24105 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24106 if test -f "$f"; then
24107 case "$f" in
24108 *.orig | *.bak | *~) ;;
24109 *) cat "$f" >> "$ac_dir/Makefile" ;;
24110 esac
24112 done
24115 esac
24116 done ;;
24118 esac
24119 done # for ac_tag
24122 as_fn_exit 0
24123 _ACEOF
24124 ac_clean_files=$ac_clean_files_save
24126 test $ac_write_fail = 0 ||
24127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24130 # configure is writing to config.log, and then calls config.status.
24131 # config.status does its own redirection, appending to config.log.
24132 # Unfortunately, on DOS this fails, as config.log is still kept open
24133 # by configure, so config.status won't be able to write to it; its
24134 # output is simply discarded. So we exec the FD to /dev/null,
24135 # effectively closing config.log, so it can be properly (re)opened and
24136 # appended to by config.status. When coming back to configure, we
24137 # need to make the FD available again.
24138 if test "$no_create" != yes; then
24139 ac_cs_success=:
24140 ac_config_status_args=
24141 test "$silent" = yes &&
24142 ac_config_status_args="$ac_config_status_args --quiet"
24143 exec 5>/dev/null
24144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24145 exec 5>>config.log
24146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24147 # would make configure fail if this is the last instruction.
24148 $ac_cs_success || as_fn_exit 1
24150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24152 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}