* Addition of a link to the Apache License 2.0. This is available from
[alpine.git] / configure
blob60f1ad613d74e42cea1bc7fb1b9efca00b164f4c
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.1.
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.1'
595 PACKAGE_STRING='alpine 2.23.1'
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.1 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.1:";;
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 messages from source
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.1
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.1, 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.1'
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"
15161 $as_echo "#define DEBUG 1" >>confdefs.h
15164 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15167 $as_echo "yes" >&6; }
15168 else
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15174 $as_echo_n "checking option: optimization is enabled... " >&6; }
15175 # Check whether --enable-optimization was given.
15176 if test "${enable_optimization+set}" = set; then :
15177 enableval=$enable_optimization;
15180 if test x$enable_optimization != "xno" ; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15182 $as_echo "yes" >&6; }
15183 else
15184 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15185 alpine_c_client_gccoptlevel="-O0"
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15187 $as_echo "no" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15191 $as_echo_n "checking option: mouse support enabled... " >&6; }
15192 # Check whether --enable-mouse was given.
15193 if test "${enable_mouse+set}" = set; then :
15194 enableval=$enable_mouse;
15197 if test x$enable_mouse != "xno" ; then
15199 $as_echo "#define MOUSE /**/" >>confdefs.h
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15202 $as_echo "yes" >&6; }
15203 else
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15205 $as_echo "no" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15209 $as_echo_n "checking option: quotas enabled... " >&6; }
15210 # Check whether --enable-quotas was given.
15211 if test "${enable_quotas+set}" = set; then :
15212 enableval=$enable_quotas;
15215 if test x$enable_quotas = "xyes" ; then
15217 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15220 $as_echo "yes" >&6; }
15221 else
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223 $as_echo "no" >&6; }
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15227 $as_echo_n "checking option: From changing enabled... " >&6; }
15228 # Check whether --enable-from_changing was given.
15229 if test "${enable_from_changing+set}" = set; then :
15230 enableval=$enable_from_changing;
15233 if test x$enable_from_changing != "xno" ; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15236 else
15238 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15245 $as_echo_n "checking option: background post enabled... " >&6; }
15246 # Check whether --enable-background-post was given.
15247 if test "${enable_background_post+set}" = set; then :
15248 enableval=$enable_background_post;
15251 if test x$enable_background_post != "xno" ; then
15253 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15256 $as_echo "yes" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15263 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15264 # Check whether --enable-keyboard-lock was given.
15265 if test "${enable_keyboard_lock+set}" = set; then :
15266 enableval=$enable_keyboard_lock;
15269 if test x$enable_keyboard_lock != "xno" ; then
15271 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15274 $as_echo "yes" >&6; }
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15281 $as_echo_n "checking option: from encoding enabled... " >&6; }
15282 # Check whether --enable-from-encoding was given.
15283 if test "${enable_from_encoding+set}" = set; then :
15284 enableval=$enable_from_encoding;
15287 if test x$enable_from_encoding = "xyes" ; then
15289 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15292 $as_echo "yes" >&6; }
15293 else
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 $as_echo "no" >&6; }
15299 # Check whether --with-smtp-msa was given.
15300 if test "${with_smtp_msa+set}" = set; then :
15301 withval=$with_smtp_msa;
15302 case "$withval" in
15305 yes)
15306 # Extract the first word of "sendmail", so it can be a program name with args.
15307 set dummy sendmail; ac_word=$2
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15309 $as_echo_n "checking for $ac_word... " >&6; }
15310 if ${ac_cv_path_SENDMAIL+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 case $SENDMAIL in
15314 [\\/]* | ?:[\\/]*)
15315 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319 as_dummy="$PATH:/usr/sbin:/usr/lib"
15320 for as_dir in $as_dummy
15322 IFS=$as_save_IFS
15323 test -z "$as_dir" && as_dir=.
15324 for ac_exec_ext in '' $ac_executable_extensions; do
15325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15326 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15328 break 2
15330 done
15331 done
15332 IFS=$as_save_IFS
15334 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15336 esac
15338 SENDMAIL=$ac_cv_path_SENDMAIL
15339 if test -n "$SENDMAIL"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15341 $as_echo "$SENDMAIL" >&6; }
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15350 SENDMAIL=$withval
15352 esac
15354 else
15356 # Extract the first word of "sendmail", so it can be a program name with args.
15357 set dummy sendmail; ac_word=$2
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15359 $as_echo_n "checking for $ac_word... " >&6; }
15360 if ${ac_cv_path_SENDMAIL+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 case $SENDMAIL in
15364 [\\/]* | ?:[\\/]*)
15365 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 as_dummy="$PATH:/usr/sbin:/usr/lib"
15370 for as_dir in $as_dummy
15372 IFS=$as_save_IFS
15373 test -z "$as_dir" && as_dir=.
15374 for ac_exec_ext in '' $ac_executable_extensions; do
15375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15376 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15378 break 2
15380 done
15381 done
15382 IFS=$as_save_IFS
15384 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15386 esac
15388 SENDMAIL=$ac_cv_path_SENDMAIL
15389 if test -n "$SENDMAIL"; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15391 $as_echo "$SENDMAIL" >&6; }
15392 else
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15401 if test -n "$SENDMAIL" ; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define SENDMAIL "$SENDMAIL"
15405 _ACEOF
15409 smtp_msa_flags="-bs -odb -oem"
15411 # Check whether --with-smtp-msa-flags was given.
15412 if test "${with_smtp_msa_flags+set}" = set; then :
15413 withval=$with_smtp_msa_flags;
15414 if test "x$withval" != "xno" ; then
15415 smtp_msa_flags=$withval
15421 cat >>confdefs.h <<_ACEOF
15422 #define SENDMAILFLAGS "$smtp_msa_flags"
15423 _ACEOF
15426 npa="inews"
15428 # Check whether --with-npa was given.
15429 if test "${with_npa+set}" = set; then :
15430 withval=$with_npa;
15431 case "$withval" in
15434 yes)
15435 # Extract the first word of "inews", so it can be a program name with args.
15436 set dummy inews; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438 $as_echo_n "checking for $ac_word... " >&6; }
15439 if ${ac_cv_path_NPA_PROG+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 case $NPA_PROG in
15443 [\\/]* | ?:[\\/]*)
15444 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 as_dummy="$PATH:/usr/sbin:/usr/lib"
15449 for as_dir in $as_dummy
15451 IFS=$as_save_IFS
15452 test -z "$as_dir" && as_dir=.
15453 for ac_exec_ext in '' $ac_executable_extensions; do
15454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15455 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15457 break 2
15459 done
15460 done
15461 IFS=$as_save_IFS
15463 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15465 esac
15467 NPA_PROG=$ac_cv_path_NPA_PROG
15468 if test -n "$NPA_PROG"; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15470 $as_echo "$NPA_PROG" >&6; }
15471 else
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15479 NPA_PROG=$withval
15481 esac
15483 else
15485 # Extract the first word of "inews", so it can be a program name with args.
15486 set dummy inews; ac_word=$2
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488 $as_echo_n "checking for $ac_word... " >&6; }
15489 if ${ac_cv_path_NPA_PROG+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 case $NPA_PROG in
15493 [\\/]* | ?:[\\/]*)
15494 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 as_dummy="$PATH:/usr/sbin:/usr/lib"
15499 for as_dir in $as_dummy
15501 IFS=$as_save_IFS
15502 test -z "$as_dir" && as_dir=.
15503 for ac_exec_ext in '' $ac_executable_extensions; do
15504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15505 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15507 break 2
15509 done
15510 done
15511 IFS=$as_save_IFS
15513 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15515 esac
15517 NPA_PROG=$ac_cv_path_NPA_PROG
15518 if test -n "$NPA_PROG"; then
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15520 $as_echo "$NPA_PROG" >&6; }
15521 else
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15523 $as_echo "no" >&6; }
15531 npa_flags="-h"
15533 # Check whether --with-npa-flags was given.
15534 if test "${with_npa_flags+set}" = set; then :
15535 withval=$with_npa_flags;
15536 if test "x$withval" != "xno" ; then
15537 npa_flags=$withval
15542 if test -n "$NPA_PROG" ; then
15544 cat >>confdefs.h <<_ACEOF
15545 #define SENDNEWS "$NPA_PROG $npa_flags"
15546 _ACEOF
15551 # Check whether --with-password-prog was given.
15552 if test "${with_password_prog+set}" = set; then :
15553 withval=$with_password_prog;
15554 case "$withval" in
15557 yes)
15558 # Extract the first word of "passwd", so it can be a program name with args.
15559 set dummy passwd; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15561 $as_echo_n "checking for $ac_word... " >&6; }
15562 if ${ac_cv_path_PWPROG+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 case $PWPROG in
15566 [\\/]* | ?:[\\/]*)
15567 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 as_dummy="$PATH:/usr/sbin:/usr/lib"
15572 for as_dir in $as_dummy
15574 IFS=$as_save_IFS
15575 test -z "$as_dir" && as_dir=.
15576 for ac_exec_ext in '' $ac_executable_extensions; do
15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15578 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15580 break 2
15582 done
15583 done
15584 IFS=$as_save_IFS
15586 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15588 esac
15590 PWPROG=$ac_cv_path_PWPROG
15591 if test -n "$PWPROG"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15593 $as_echo "$PWPROG" >&6; }
15594 else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15602 # Extract the first word of "$withval", so it can be a program name with args.
15603 set dummy $withval; ac_word=$2
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15605 $as_echo_n "checking for $ac_word... " >&6; }
15606 if ${ac_cv_path_PWPROG+:} false; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 case $PWPROG in
15610 [\\/]* | ?:[\\/]*)
15611 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 as_dummy="$PATH:/usr/sbin:/usr/lib"
15616 for as_dir in $as_dummy
15618 IFS=$as_save_IFS
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15624 break 2
15626 done
15627 done
15628 IFS=$as_save_IFS
15630 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15632 esac
15634 PWPROG=$ac_cv_path_PWPROG
15635 if test -n "$PWPROG"; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15637 $as_echo "$PWPROG" >&6; }
15638 else
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15640 $as_echo "no" >&6; }
15645 esac
15647 else
15649 # Extract the first word of "passwd", so it can be a program name with args.
15650 set dummy passwd; ac_word=$2
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15652 $as_echo_n "checking for $ac_word... " >&6; }
15653 if ${ac_cv_path_PWPROG+:} false; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 case $PWPROG in
15657 [\\/]* | ?:[\\/]*)
15658 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15662 as_dummy="$PATH:/usr/sbin:/usr/lib"
15663 for as_dir in $as_dummy
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
15667 for ac_exec_ext in '' $ac_executable_extensions; do
15668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 break 2
15673 done
15674 done
15675 IFS=$as_save_IFS
15677 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15679 esac
15681 PWPROG=$ac_cv_path_PWPROG
15682 if test -n "$PWPROG"; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15684 $as_echo "$PWPROG" >&6; }
15685 else
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687 $as_echo "no" >&6; }
15694 if test -n "$PWPROG" ; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define PASSWD_PROG "$PWPROG"
15698 _ACEOF
15703 # Check whether --with-simple-spellcheck was given.
15704 if test "${with_simple_spellcheck+set}" = set; then :
15705 withval=$with_simple_spellcheck;
15706 if test "x$withval" != "xno" ; then
15707 SPELLPROG=$withval
15710 else
15712 # Extract the first word of "hunspell", so it can be a program name with args.
15713 set dummy hunspell; ac_word=$2
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15715 $as_echo_n "checking for $ac_word... " >&6; }
15716 if ${ac_cv_prog_SPELLPROG+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 if test -n "$SPELLPROG"; then
15720 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15721 else
15722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15723 for as_dir in $PATH
15725 IFS=$as_save_IFS
15726 test -z "$as_dir" && as_dir=.
15727 for ac_exec_ext in '' $ac_executable_extensions; do
15728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15729 ac_cv_prog_SPELLPROG="hunspell"
15730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15731 break 2
15733 done
15734 done
15735 IFS=$as_save_IFS
15739 SPELLPROG=$ac_cv_prog_SPELLPROG
15740 if test -n "$SPELLPROG"; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15742 $as_echo "$SPELLPROG" >&6; }
15743 else
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15745 $as_echo "no" >&6; }
15749 if test -z "$SPELLPROG" ; then
15750 # Extract the first word of "aspell", so it can be a program name with args.
15751 set dummy aspell; ac_word=$2
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15753 $as_echo_n "checking for $ac_word... " >&6; }
15754 if ${ac_cv_prog_SPELLPROG+:} false; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15757 if test -n "$SPELLPROG"; then
15758 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15759 else
15760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15761 for as_dir in $PATH
15763 IFS=$as_save_IFS
15764 test -z "$as_dir" && as_dir=.
15765 for ac_exec_ext in '' $ac_executable_extensions; do
15766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15767 ac_cv_prog_SPELLPROG="aspell"
15768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15769 break 2
15771 done
15772 done
15773 IFS=$as_save_IFS
15777 SPELLPROG=$ac_cv_prog_SPELLPROG
15778 if test -n "$SPELLPROG"; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15780 $as_echo "$SPELLPROG" >&6; }
15781 else
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 $as_echo "no" >&6; }
15787 if test -z "$SPELLPROG" ; then
15788 # Extract the first word of "ispell", so it can be a program name with args.
15789 set dummy ispell; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791 $as_echo_n "checking for $ac_word... " >&6; }
15792 if ${ac_cv_prog_SPELLPROG+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 if test -n "$SPELLPROG"; then
15796 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15797 else
15798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799 for as_dir in $PATH
15801 IFS=$as_save_IFS
15802 test -z "$as_dir" && as_dir=.
15803 for ac_exec_ext in '' $ac_executable_extensions; do
15804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805 ac_cv_prog_SPELLPROG="ispell"
15806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15807 break 2
15809 done
15810 done
15811 IFS=$as_save_IFS
15815 SPELLPROG=$ac_cv_prog_SPELLPROG
15816 if test -n "$SPELLPROG"; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15818 $as_echo "$SPELLPROG" >&6; }
15819 else
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15821 $as_echo "no" >&6; }
15825 if test -z "$SPELLPROG" ; then
15826 SPELLPROG="spell"
15834 if test "x$SPELLPROG" != "xno" ; then
15835 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15836 set dummy $SPELLPROG; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841 else
15842 case $alpine_simple_spellcheck in
15843 [\\/]* | ?:[\\/]*)
15844 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15850 IFS=$as_save_IFS
15851 test -z "$as_dir" && as_dir=.
15852 for ac_exec_ext in '' $ac_executable_extensions; do
15853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15854 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15856 break 2
15858 done
15859 done
15860 IFS=$as_save_IFS
15863 esac
15865 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15866 if test -n "$alpine_simple_spellcheck"; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15868 $as_echo "$alpine_simple_spellcheck" >&6; }
15869 else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871 $as_echo "no" >&6; }
15875 if test -n "$alpine_simple_spellcheck" ; then
15876 case "$SPELLPROG" in
15877 hunspell)
15878 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15880 aspell)
15881 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15883 ispell)
15884 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15888 esac
15893 # Check whether --with-interactive-spellcheck was given.
15894 if test "${with_interactive_spellcheck+set}" = set; then :
15895 withval=$with_interactive_spellcheck;
15896 if test "x$withval" != "xno" ; then
15897 ISPELLPROG=$withval
15900 else
15902 # Extract the first word of "hunspell", so it can be a program name with args.
15903 set dummy hunspell; ac_word=$2
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15905 $as_echo_n "checking for $ac_word... " >&6; }
15906 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 if test -n "$ISPELLPROG"; then
15910 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15911 else
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_ISPELLPROG="hunspell"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15921 break 2
15923 done
15924 done
15925 IFS=$as_save_IFS
15929 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15930 if test -n "$ISPELLPROG"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15932 $as_echo "$ISPELLPROG" >&6; }
15933 else
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15939 if test -z "$ISPELLPROG" ; then
15940 # Extract the first word of "aspell", so it can be a program name with args.
15941 set dummy aspell; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 if test -n "$ISPELLPROG"; then
15948 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15949 else
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_prog_ISPELLPROG="aspell"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15961 done
15962 done
15963 IFS=$as_save_IFS
15967 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15968 if test -n "$ISPELLPROG"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15970 $as_echo "$ISPELLPROG" >&6; }
15971 else
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 $as_echo "no" >&6; }
15977 if test -z "$SPELLPROG" ; then
15978 ISPELLPROG="ispell"
15985 if test "x$ISPELLPROG" != "xno" ; then
15986 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15987 set dummy $ISPELLPROG; ac_word=$2
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15989 $as_echo_n "checking for $ac_word... " >&6; }
15990 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15993 case $alpine_interactive_spellcheck in
15994 [\\/]* | ?:[\\/]*)
15995 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15999 for as_dir in $PATH
16001 IFS=$as_save_IFS
16002 test -z "$as_dir" && as_dir=.
16003 for ac_exec_ext in '' $ac_executable_extensions; do
16004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16005 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16007 break 2
16009 done
16010 done
16011 IFS=$as_save_IFS
16014 esac
16016 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16017 if test -n "$alpine_interactive_spellcheck"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16019 $as_echo "$alpine_interactive_spellcheck" >&6; }
16020 else
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022 $as_echo "no" >&6; }
16026 if test -n "$alpine_interactive_spellcheck" ; then
16027 case "$ISPELLPROG" in
16028 aspell)
16029 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16033 esac
16037 if test -n "$alpine_interactive_spellcheck" ; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16041 _ACEOF
16045 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16046 alpine_simple_spellcheck=test
16049 cat >>confdefs.h <<_ACEOF
16050 #define SPELLER "$alpine_simple_spellcheck"
16051 _ACEOF
16054 case "$prefix" in
16055 NONE) dpv=/usr/local/lib/pine.conf ;;
16056 *) dpv=${prefix}/lib/pine.conf ;;
16057 esac
16059 # Check whether --with-system-pinerc was given.
16060 if test "${with_system_pinerc+set}" = set; then :
16061 withval=$with_system_pinerc;
16062 case "$withval" in
16065 yes)
16068 dpv=$withval
16070 esac
16075 cat >>confdefs.h <<_ACEOF
16076 #define SYSTEM_PINERC "$dpv"
16077 _ACEOF
16080 case "$prefix" in
16081 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16082 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16083 esac
16085 # Check whether --with-system-fixed-pinerc was given.
16086 if test "${with_system_fixed_pinerc+set}" = set; then :
16087 withval=$with_system_fixed_pinerc;
16088 case "$withval" in
16091 yes)
16094 dpv=$withval
16096 esac
16101 cat >>confdefs.h <<_ACEOF
16102 #define SYSTEM_PINERC_FIXED "$dpv"
16103 _ACEOF
16106 case "$prefix" in
16107 NONE) dpv=/usr/local/lib/pine.info ;;
16108 *) dpv=${prefix}/lib/pine.info ;;
16109 esac
16111 # Check whether --with-local-support-info was given.
16112 if test "${with_local_support_info+set}" = set; then :
16113 withval=$with_local_support_info;
16114 case "$withval" in
16117 yes)
16120 dpv=$withval
16122 esac
16127 cat >>confdefs.h <<_ACEOF
16128 #define SYSTEM_PINE_INFO_PATH "$dpv"
16129 _ACEOF
16137 dpv=150
16139 # Check whether --with-mailcheck-interval was given.
16140 if test "${with_mailcheck_interval+set}" = set; then :
16141 withval=$with_mailcheck_interval;
16142 if test "x$withval" != "xno" ; then
16143 dpv=$withval
16149 cat >>confdefs.h <<_ACEOF
16150 #define DF_MAILCHECK "$dpv"
16151 _ACEOF
16155 dpv=420
16157 # Check whether --with-checkpoint-interval was given.
16158 if test "${with_checkpoint_interval+set}" = set; then :
16159 withval=$with_checkpoint_interval;
16160 if test "x$withval" != "xno" ; then
16161 dpv=$withval
16167 cat >>confdefs.h <<_ACEOF
16168 #define CHECK_POINT_TIME $dpv
16169 _ACEOF
16173 dpv=12
16175 # Check whether --with-checkpoint-frequency was given.
16176 if test "${with_checkpoint_frequency+set}" = set; then :
16177 withval=$with_checkpoint_frequency;
16178 if test "x$withval" != "xno" ; then
16179 dpv=$withval
16185 cat >>confdefs.h <<_ACEOF
16186 #define CHECK_POINT_FREQ $dpv
16187 _ACEOF
16191 dpv=24
16193 # Check whether --with-display-rows was given.
16194 if test "${with_display_rows+set}" = set; then :
16195 withval=$with_display_rows;
16196 if test "x$withval" != "xno" ; then
16197 dpv=$withval
16203 cat >>confdefs.h <<_ACEOF
16204 #define DEFAULT_LINES_ON_TERMINAL $dpv
16205 _ACEOF
16209 dpv=80
16211 # Check whether --with-display-columns was given.
16212 if test "${with_display_columns+set}" = set; then :
16213 withval=$with_display_columns;
16214 if test "x$withval" != "xno" ; then
16215 dpv=$withval
16221 cat >>confdefs.h <<_ACEOF
16222 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16223 _ACEOF
16227 dpv=200
16229 # Check whether --with-max-display-rows was given.
16230 if test "${with_max_display_rows+set}" = set; then :
16231 withval=$with_max_display_rows;
16232 if test "x$withval" != "xno" ; then
16233 dpv=$withval
16239 cat >>confdefs.h <<_ACEOF
16240 #define MAX_SCREEN_ROWS $dpv
16241 _ACEOF
16245 dpv=500
16247 # Check whether --with-max-display-columns was given.
16248 if test "${with_max_display_columns+set}" = set; then :
16249 withval=$with_max_display_columns;
16250 if test "x$withval" != "xno" ; then
16251 dpv=$withval
16257 cat >>confdefs.h <<_ACEOF
16258 #define MAX_SCREEN_COLS $dpv
16259 _ACEOF
16263 dpv=74
16265 # Check whether --with-fill-column was given.
16266 if test "${with_fill_column+set}" = set; then :
16267 withval=$with_fill_column;
16268 if test "x$withval" != "xno" ; then
16269 dpv=$withval
16275 cat >>confdefs.h <<_ACEOF
16276 #define DF_FILLCOL "$dpv"
16277 _ACEOF
16281 dpv=80
16283 # Check whether --with-max_fill-column was given.
16284 if test "${with_max_fill_column+set}" = set; then :
16285 withval=$with_max_fill_column;
16286 if test "x$withval" != "xno" ; then
16287 dpv=$withval
16293 cat >>confdefs.h <<_ACEOF
16294 #define MAX_FILLCOL $dpv
16295 _ACEOF
16299 dpv=2
16301 # Check whether --with-debug-level was given.
16302 if test "${with_debug_level+set}" = set; then :
16303 withval=$with_debug_level;
16304 if test "x$withval" != "xno" ; then
16305 dpv=$withval
16311 cat >>confdefs.h <<_ACEOF
16312 #define DEFAULT_DEBUG $dpv
16313 _ACEOF
16317 dpv=4
16319 # Check whether --with-debug-files was given.
16320 if test "${with_debug_files+set}" = set; then :
16321 withval=$with_debug_files;
16322 if test "x$withval" != "xno" ; then
16323 dpv=$withval
16329 cat >>confdefs.h <<_ACEOF
16330 #define NUMDEBUGFILES $dpv
16331 _ACEOF
16335 dpv=.pine-debug
16337 # Check whether --with-debug-file was given.
16338 if test "${with_debug_file+set}" = set; then :
16339 withval=$with_debug_file;
16340 if test "x$withval" != "xno" ; then
16341 dpv=$withval
16347 cat >>confdefs.h <<_ACEOF
16348 #define DEBUGFILE "$dpv"
16349 _ACEOF
16353 dpv="\$Forwarded"
16355 # Check whether --with-forwarded-keyword was given.
16356 if test "${with_forwarded_keyword+set}" = set; then :
16357 withval=$with_forwarded_keyword;
16358 if test "x$withval" != "xno" ; then
16359 dpv=$withval
16365 cat >>confdefs.h <<_ACEOF
16366 #define FORWARDED_FLAG "$dpv"
16367 _ACEOF
16371 dpv=2
16373 # Check whether --with-display-overlap was given.
16374 if test "${with_display_overlap+set}" = set; then :
16375 withval=$with_display_overlap;
16376 if test "x$withval" != "xno" ; then
16377 dpv=$withval
16383 cat >>confdefs.h <<_ACEOF
16384 #define DF_OVERLAP "$dpv"
16385 _ACEOF
16389 dpv=0
16391 # Check whether --with-display-margin was given.
16392 if test "${with_display_margin+set}" = set; then :
16393 withval=$with_display_margin;
16394 if test "x$withval" != "xno" ; then
16395 dpv=$withval
16401 cat >>confdefs.h <<_ACEOF
16402 #define DF_MARGIN "$dpv"
16403 _ACEOF
16407 dpv=sent-mail
16409 # Check whether --with-default-fcc was given.
16410 if test "${with_default_fcc+set}" = set; then :
16411 withval=$with_default_fcc;
16412 if test "x$withval" != "xno" ; then
16413 dpv=$withval
16419 cat >>confdefs.h <<_ACEOF
16420 #define DF_DEFAULT_FCC "$dpv"
16421 _ACEOF
16425 dpv=saved-messages
16427 # Check whether --with-default-save-folder was given.
16428 if test "${with_default_save_folder+set}" = set; then :
16429 withval=$with_default_save_folder;
16430 if test "x$withval" != "xno" ; then
16431 dpv=$withval
16437 cat >>confdefs.h <<_ACEOF
16438 #define DEFAULT_SAVE "$dpv"
16439 _ACEOF
16443 dpv=postponed-mail
16445 # Check whether --with-default-legacy-postponed-folder was given.
16446 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16447 withval=$with_default_legacy_postponed_folder;
16448 if test "x$withval" != "xno" ; then
16449 dpv=$withval
16455 cat >>confdefs.h <<_ACEOF
16456 #define POSTPONED_MAIL "$dpv"
16457 _ACEOF
16461 dpv=postponed-msgs
16463 # Check whether --with-default-postponed-folder was given.
16464 if test "${with_default_postponed_folder+set}" = set; then :
16465 withval=$with_default_postponed_folder;
16466 if test "x$withval" != "xno" ; then
16467 dpv=$withval
16473 cat >>confdefs.h <<_ACEOF
16474 #define POSTPONED_MSGS "$dpv"
16475 _ACEOF
16479 dpv=Trash
16481 # Check whether --with-default-trash-folder was given.
16482 if test "${with_default_trash_folder+set}" = set; then :
16483 withval=$with_default_trash_folder;
16484 if test "x$withval" != "xno" ; then
16485 dpv=$withval
16491 cat >>confdefs.h <<_ACEOF
16492 #define TRASH_FOLDER "$dpv"
16493 _ACEOF
16497 dpv=.pine-interrupted-mail
16499 # Check whether --with-default-interrupted-mail was given.
16500 if test "${with_default_interrupted_mail+set}" = set; then :
16501 withval=$with_default_interrupted_mail;
16502 if test "x$withval" != "xno" ; then
16503 dpv=$withval
16509 cat >>confdefs.h <<_ACEOF
16510 #define INTERRUPTED_MAIL "$dpv"
16511 _ACEOF
16515 dpv=dead.letter
16517 # Check whether --with-default-dead-letter-folder was given.
16518 if test "${with_default_dead_letter_folder+set}" = set; then :
16519 withval=$with_default_dead_letter_folder;
16520 if test "x$withval" != "xno" ; then
16521 dpv=$withval
16527 cat >>confdefs.h <<_ACEOF
16528 #define DEADLETTER "$dpv"
16529 _ACEOF
16533 dpv=mail
16535 # Check whether --with-default-mail-directory was given.
16536 if test "${with_default_mail_directory+set}" = set; then :
16537 withval=$with_default_mail_directory;
16538 if test "x$withval" != "xno" ; then
16539 dpv=$withval
16545 cat >>confdefs.h <<_ACEOF
16546 #define DF_MAIL_DIRECTORY "$dpv"
16547 _ACEOF
16551 dpv=INBOX
16553 # Check whether --with-default-inbox-name was given.
16554 if test "${with_default_inbox_name+set}" = set; then :
16555 withval=$with_default_inbox_name;
16556 if test "x$withval" != "xno" ; then
16557 dpv=$withval
16563 cat >>confdefs.h <<_ACEOF
16564 #define INBOX_NAME "$dpv"
16565 _ACEOF
16569 dpv=.signature
16571 # Check whether --with-default-signature-file was given.
16572 if test "${with_default_signature_file+set}" = set; then :
16573 withval=$with_default_signature_file;
16574 if test "x$withval" != "xno" ; then
16575 dpv=$withval
16581 cat >>confdefs.h <<_ACEOF
16582 #define DF_SIGNATURE_FILE "$dpv"
16583 _ACEOF
16587 dpv=no
16589 # Check whether --with-default-elm-style-save was given.
16590 if test "${with_default_elm_style_save+set}" = set; then :
16591 withval=$with_default_elm_style_save;
16592 if test "x$withval" != "xno" ; then
16593 dpv=$withval
16599 cat >>confdefs.h <<_ACEOF
16600 #define DF_ELM_STYLE_SAVE "$dpv"
16601 _ACEOF
16605 dpv=no
16607 # Check whether --with-default-header-in-reply was given.
16608 if test "${with_default_header_in_reply+set}" = set; then :
16609 withval=$with_default_header_in_reply;
16610 if test "x$withval" != "xno" ; then
16611 dpv=$withval
16617 cat >>confdefs.h <<_ACEOF
16618 #define DF_HEADER_IN_REPLY "$dpv"
16619 _ACEOF
16623 dpv=no
16625 # Check whether --with-default-old-style-reply was given.
16626 if test "${with_default_old_style_reply+set}" = set; then :
16627 withval=$with_default_old_style_reply;
16628 if test "x$withval" != "xno" ; then
16629 dpv=$withval
16635 cat >>confdefs.h <<_ACEOF
16636 #define DF_OLD_STYLE_REPLY "$dpv"
16637 _ACEOF
16641 dpv=no
16643 # Check whether --with-default-use-only-domain-name was given.
16644 if test "${with_default_use_only_domain_name+set}" = set; then :
16645 withval=$with_default_use_only_domain_name;
16646 if test "x$withval" != "xno" ; then
16647 dpv=$withval
16653 cat >>confdefs.h <<_ACEOF
16654 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16655 _ACEOF
16659 dpv=no
16661 # Check whether --with-default-save-by-sender was given.
16662 if test "${with_default_save_by_sender+set}" = set; then :
16663 withval=$with_default_save_by_sender;
16664 if test "x$withval" != "xno" ; then
16665 dpv=$withval
16671 cat >>confdefs.h <<_ACEOF
16672 #define DF_SAVE_BY_SENDER "$dpv"
16673 _ACEOF
16677 dpv=arrival
16679 # Check whether --with-default-sort-key was given.
16680 if test "${with_default_sort_key+set}" = set; then :
16681 withval=$with_default_sort_key;
16682 if test "x$withval" != "xno" ; then
16683 dpv=$withval
16689 cat >>confdefs.h <<_ACEOF
16690 #define DF_SORT_KEY "$dpv"
16691 _ACEOF
16695 dpv=fullname-with-lists-last
16697 # Check whether --with-default-addressbook-sort-rule was given.
16698 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16699 withval=$with_default_addressbook_sort_rule;
16700 if test "x$withval" != "xno" ; then
16701 dpv=$withval
16707 cat >>confdefs.h <<_ACEOF
16708 #define DF_AB_SORT_RULE "$dpv"
16709 _ACEOF
16713 dpv=alphabetical
16715 # Check whether --with-default-folder-sort-rule was given.
16716 if test "${with_default_folder_sort_rule+set}" = set; then :
16717 withval=$with_default_folder_sort_rule;
16718 if test "x$withval" != "xno" ; then
16719 dpv=$withval
16725 cat >>confdefs.h <<_ACEOF
16726 #define DF_FLD_SORT_RULE "$dpv"
16727 _ACEOF
16731 dpv=default-folder
16733 # Check whether --with-default-saved-message-name-rule was given.
16734 if test "${with_default_saved_message_name_rule+set}" = set; then :
16735 withval=$with_default_saved_message_name_rule;
16736 if test "x$withval" != "xno" ; then
16737 dpv=$withval
16743 cat >>confdefs.h <<_ACEOF
16744 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16745 _ACEOF
16749 dpv=default-fcc
16751 # Check whether --with-default-fcc-rule was given.
16752 if test "${with_default_fcc_rule+set}" = set; then :
16753 withval=$with_default_fcc_rule;
16754 if test "x$withval" != "xno" ; then
16755 dpv=$withval
16761 cat >>confdefs.h <<_ACEOF
16762 #define DF_FCC_RULE "$dpv"
16763 _ACEOF
16767 dpv=lpr
16769 # Check whether --with-default-standard-printer was given.
16770 if test "${with_default_standard_printer+set}" = set; then :
16771 withval=$with_default_standard_printer;
16772 if test "x$withval" != "xno" ; then
16773 dpv=$withval
16779 cat >>confdefs.h <<_ACEOF
16780 #define DF_STANDARD_PRINTER "$dpv"
16781 _ACEOF
16785 dpv=attached-to-ansi
16787 # Check whether --with-default-ansi-printer was given.
16788 if test "${with_default_ansi_printer+set}" = set; then :
16789 withval=$with_default_ansi_printer;
16790 if test "x$withval" != "xno" ; then
16791 dpv=$withval
16797 cat >>confdefs.h <<_ACEOF
16798 #define ANSI_PRINTER "$dpv"
16799 _ACEOF
16803 dpv=.addressbook
16805 # Check whether --with-default-addressbook was given.
16806 if test "${with_default_addressbook+set}" = set; then :
16807 withval=$with_default_addressbook;
16808 if test "x$withval" != "xno" ; then
16809 dpv=$withval
16815 cat >>confdefs.h <<_ACEOF
16816 #define DF_ADDRESSBOOK "$dpv"
16817 _ACEOF
16821 dpv="Local Support"
16823 # Check whether --with-default-local-fullname was given.
16824 if test "${with_default_local_fullname+set}" = set; then :
16825 withval=$with_default_local_fullname;
16826 if test "x$withval" != "xno" ; then
16827 dpv=$withval
16833 cat >>confdefs.h <<_ACEOF
16834 #define DF_LOCAL_FULLNAME "$dpv"
16835 _ACEOF
16839 dpv=postmaster
16841 # Check whether --with-default-local-address was given.
16842 if test "${with_default_local_address+set}" = set; then :
16843 withval=$with_default_local_address;
16844 if test "x$withval" != "xno" ; then
16845 dpv=$withval
16851 cat >>confdefs.h <<_ACEOF
16852 #define DF_LOCAL_ADDRESS "$dpv"
16853 _ACEOF
16857 dpv=1
16859 # Check whether --with-default-keyboard-lock-count was given.
16860 if test "${with_default_keyboard_lock_count+set}" = set; then :
16861 withval=$with_default_keyboard_lock_count;
16862 if test "x$withval" != "xno" ; then
16863 dpv=$withval
16869 cat >>confdefs.h <<_ACEOF
16870 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16871 _ACEOF
16875 dpv=3
16877 # Check whether --with-default-remote-addressbook-history was given.
16878 if test "${with_default_remote_addressbook_history+set}" = set; then :
16879 withval=$with_default_remote_addressbook_history;
16880 if test "x$withval" != "xno" ; then
16881 dpv=$withval
16887 cat >>confdefs.h <<_ACEOF
16888 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16889 _ACEOF
16893 dpv=.alpine-html
16895 # Check whether --with-default-html-directory was given.
16896 if test "${with_default_html_directory+set}" = set; then :
16897 withval=$with_default_html_directory;
16898 if test "x$withval" != "xno" ; then
16899 dpv=$withval
16905 cat >>confdefs.h <<_ACEOF
16906 #define DF_HTML_DIRECTORY "$dpv"
16907 _ACEOF
16911 dpv=.alpine-smime/public
16913 # Check whether --with-smime-public-cert-directory was given.
16914 if test "${with_smime_public_cert_directory+set}" = set; then :
16915 withval=$with_smime_public_cert_directory;
16916 if test "x$withval" != "xno" ; then
16917 dpv=$withval
16923 cat >>confdefs.h <<_ACEOF
16924 #define DF_PUBLICCERT_DIR "$dpv"
16925 _ACEOF
16929 dpv=.alpine-smime/private
16931 # Check whether --with-smime-private-key-directory was given.
16932 if test "${with_smime_private_key_directory+set}" = set; then :
16933 withval=$with_smime_private_key_directory;
16934 if test "x$withval" != "xno" ; then
16935 dpv=$withval
16941 cat >>confdefs.h <<_ACEOF
16942 #define DF_PRIVATEKEY_DIR "$dpv"
16943 _ACEOF
16947 dpv=.alpine-smime/ca
16949 # Check whether --with-smime-cacert-directory was given.
16950 if test "${with_smime_cacert_directory+set}" = set; then :
16951 withval=$with_smime_cacert_directory;
16952 if test "x$withval" != "xno" ; then
16953 dpv=$withval
16959 cat >>confdefs.h <<_ACEOF
16960 #define DF_CACERT_DIR "$dpv"
16961 _ACEOF
16965 dpv=ANSI_PRINTER
16967 # Check whether --with-default-printer was given.
16968 if test "${with_default_printer+set}" = set; then :
16969 withval=$with_default_printer;
16970 if test "x$withval" != "xno" ; then
16971 dpv=$withval
16977 cat >>confdefs.h <<_ACEOF
16978 #define DF_DEFAULT_PRINTER $dpv
16979 _ACEOF
16984 cat >>confdefs.h <<_ACEOF
16985 #define DF_PUBLIC_CONTAINER "PublicContainer"
16986 _ACEOF
16989 cat >>confdefs.h <<_ACEOF
16990 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16991 _ACEOF
16994 cat >>confdefs.h <<_ACEOF
16995 #define DF_CA_CONTAINER "CAContainer"
16996 _ACEOF
17000 # Check whether --with-passfile was given.
17001 if test "${with_passfile+set}" = set; then :
17002 withval=$with_passfile;
17003 case "$withval" in
17006 yes)
17009 alpine_PASSFILE=$withval
17011 esac
17018 # Check whether --with-local-password-cache was given.
17019 if test "${with_local_password_cache+set}" = set; then :
17020 withval=$with_local_password_cache;
17021 alpine_os_credential_cache=$withval
17027 # Check whether --with-local-password-cache-method was given.
17028 if test "${with_local_password_cache_method+set}" = set; then :
17029 withval=$with_local_password_cache_method;
17030 alpine_os_credential_cache_method=$withval
17035 if test -n "$alpine_PASSFILE" ; then
17036 case $alpine_os_credential_cache in
17040 alpine_os_credential_cache="no"
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17042 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17044 esac
17046 cat >>confdefs.h <<_ACEOF
17047 #define PASSFILE "$alpine_PASSFILE"
17048 _ACEOF
17053 # Check whether --with-default-sshpath was given.
17054 if test "${with_default_sshpath+set}" = set; then :
17055 withval=$with_default_sshpath;
17056 case "$withval" in
17059 yes)
17063 cat >>confdefs.h <<_ACEOF
17064 #define DF_SSHPATH "$withval"
17065 _ACEOF
17068 esac
17074 # Check whether --with-default-sshcmd was given.
17075 if test "${with_default_sshcmd+set}" = set; then :
17076 withval=$with_default_sshcmd;
17077 case "$withval" in
17080 yes)
17084 cat >>confdefs.h <<_ACEOF
17085 #define DF_SSHCMD "$withval"
17086 _ACEOF
17089 esac
17095 # Check whether --with-ssl was given.
17096 if test "${with_ssl+set}" = set; then :
17097 withval=$with_ssl; with_ssl=$withval
17101 if test "x$with_ssl" = "xno" ; then
17102 alpine_SSLTYPE="none"
17103 elif test -d /usr/local/ssl ; then
17104 alpine_SSLDIR="/usr/local/ssl"
17105 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17106 alpine_SSLLIB="$alpine_SSLDIR/lib"
17107 else
17108 case $host in
17109 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17110 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17111 alpine_SSLTYPE="nopwd"
17112 if test -d /etc/pki/tls ; then
17113 alpine_SSLDIR="/etc/pki/tls"
17114 else
17115 alpine_SSLDIR="/usr/share/ssl"
17117 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17118 alpine_SSLKEYS="$alpine_SSLDIR/private"
17119 alpine_SSLINCLUDE="/usr/include/openssl"
17120 alpine_SSLLIB="/usr/lib"
17121 elif test -f /etc/mandrake-release ; then
17122 alpine_SSLDIR="/usr/lib/ssl"
17123 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17124 alpine_SSLKEYS="$alpine_SSLDIR/private"
17125 alpine_SSLINCLUDE="/usr/include/openssl"
17126 alpine_SSLLIB="/usr/lib"
17127 elif test -f /etc/SuSE-release ; then
17128 alpine_SSLTYPE="nopwd"
17129 alpine_SSLDIR="/etc/ssl"
17130 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17131 alpine_SSLKEYS="$alpine_SSLDIR/private"
17132 alpine_SSLINCLUDE="/usr/include/openssl"
17133 alpine_SSLLIB="/usr/lib"
17134 elif test -d /etc/osso-af-init ; then
17135 alpine_SSLTYPE="nopwd"
17136 alpine_SSLDIR="/usr"
17137 alpine_SSLCERTS="/usr/share/certs"
17138 alpine_SSLINCLUDE="/usr/include/openssl"
17139 alpine_SSLLIB="/usr/lib"
17140 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17141 if test ! -d /etc/osso-af-init ; then
17142 alpine_SSLDIR="/etc/ssl"
17143 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17144 alpine_SSLKEYS="$alpine_SSLDIR/private"
17145 alpine_SSLINCLUDE="/usr/include/openssl"
17146 alpine_SSLLIB="/usr/lib"
17148 elif test -f /etc/manjaro-release ; then
17149 alpine_SSLDIR="/etc/ssl"
17150 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17151 alpine_SSLKEYS="$alpine_SSLDIR/private"
17152 alpine_SSLINCLUDE="/usr/include/openssl"
17153 alpine_SSLLIB="/usr/lib"
17154 else
17155 alpine_SSLTYPE="nopwd"
17156 alpine_SSLDIR="/usr"
17157 alpine_SSLCERTS="/etc/ssl/certs"
17160 *-apple-darwin*)
17161 alpine_SSLTYPE="nopwd"
17162 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17163 if test -d /usr/local/opt/openssl ; then
17164 alpine_SSLDIR="/usr/local/opt/openssl"
17165 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17166 alpine_SSLLIB="$alpine_SSLDIR/lib"
17167 alpine_SSLCERTS="/usr/local/etc/openssl"
17168 alpine_SSLKEYS="$alpine_SSLDIR/private"
17169 elif test -d /opt/local/etc/openssl ; then
17170 alpine_SSLDIR="/opt/local"
17171 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17172 alpine_SSLLIB="$alpine_SSLDIR/lib"
17173 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17174 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17175 elif test -d /sw/etc/ssl ; then
17176 alpine_SSLDIR="/sw/etc/ssl"
17177 alpine_SSLINCLUDE="/sw/include"
17178 alpine_SSLLIB="/sw/lib"
17179 alpine_SSLCERTS="/sw/etc/ssl/certs"
17180 alpine_SSLKEYS="/sw/etc/ssl/private"
17181 elif test -d /usr/local/ssl ; then
17182 alpine_SSLDIR="/usr/local/ssl"
17183 elif test -d /System/Library/OpenSSL ; then
17184 alpine_SSLDIR="/System/Library/OpenSSL"
17185 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17186 alpine_SSLKEYS="$alpine_SSLDIR/private"
17187 alpine_SSLLIB="/usr/lib"
17188 alpine_SSLINCLUDE="/usr/include/openssl"
17191 *-*-netbsd*)
17192 alpine_SSLDIR="/etc/openssl"
17193 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17194 alpine_SSLKEYS="$alpine_SSLDIR/private"
17195 alpine_SSLINCLUDE="/usr/include/openssl"
17196 alpine_SSLLIB="/usr/lib"
17198 *-*-dragonfly*)
17199 alpine_SSLDIR="/etc/openssl"
17200 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17201 alpine_SSLKEYS="$alpine_SSLDIR/private"
17202 alpine_SSLINCLUDE="/usr/include/openssl"
17203 alpine_SSLLIB="/usr/lib"
17205 *-openbsd*)
17206 alpine_SSLTYPE="nopwd"
17207 alpine_SSLDIR="/usr"
17208 alpine_SSLCERTS="/etc/ssl/certs"
17210 *-*-freebsd*)
17211 alpine_SSLDIR="/etc/ssl"
17212 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17213 alpine_SSLKEYS="$alpine_SSLDIR/private"
17214 if test -d /usr/local/include/openssl ; then
17215 alpine_SSLINCLUDE="/usr/local/include/openssl"
17216 alpine_SSLLIB="/usr/local/lib"
17217 else
17218 alpine_SSLINCLUDE="/usr/include/openssl"
17219 alpine_SSLLIB="/usr/lib"
17222 *-*-openbsd*)
17223 alpine_SSLDIR="/etc/ssl"
17224 alpine_SSLINCLUDE="/usr/include/openssl"
17225 alpine_SSLLIB="/usr/lib"
17226 alpine_SSLCERTS="/etc/ssl"
17227 alpine_SSLKEYS="/etc/ssl/private"
17229 *-*-cygwin)
17230 alpine_SSLDIR="/usr/ssl"
17231 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17232 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17233 alpine_SSLINCLUDE="/usr/include/openssl"
17234 alpine_SSLLIB="/usr/lib"
17236 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17237 alpine_SSLTYPE="sco.nopwd"
17238 alpine_SSLDIR="/usr/local/ssl"
17240 *-*-solaris*)
17241 if test -d /usr/include/openssl ; then
17242 alpine_SSLINCLUDE="/usr/include/openssl"
17243 elif test -d /usr/sfw/include/openssl ; then
17244 alpine_SSLDIR="/usr/sfw"
17245 elif test -d /opt/csw/include/openssl ; then
17246 alpine_SSLDIR="/opt/csw"
17247 if test -d /opt/csw/ssl/certs ; then
17248 alpine_SSLCERTS="/opt/csw/ssl/certs"
17251 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17252 alpine_SSLCERTS="/etc/certs"
17256 alpine_SSLTYPE="nopwd"
17257 alpine_SSLDIR="/usr/local/ssl"
17259 esac
17262 if test "x$alpine_SSLTYPE" != "xnone" ; then
17264 # Check whether --with-ssl-dir was given.
17265 if test "${with_ssl_dir+set}" = set; then :
17266 withval=$with_ssl_dir;
17267 if test "x$withval" != "xno" ; then
17268 alpine_SSLDIR=$withval
17269 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17270 alpine_SSLLIB=$alpine_SSLDIR/lib
17277 # Check whether --with-ssl-certs-dir was given.
17278 if test "${with_ssl_certs_dir+set}" = set; then :
17279 withval=$with_ssl_certs_dir;
17280 if test "x$withval" != "xno" ; then
17281 alpine_SSLCERTS=$withval
17288 # Check whether --with-ssl-include-dir was given.
17289 if test "${with_ssl_include_dir+set}" = set; then :
17290 withval=$with_ssl_include_dir;
17291 if test "x$withval" != "xno" ; then
17292 alpine_SSLINCLUDE=$withval
17299 # Check whether --with-ssl-lib-dir was given.
17300 if test "${with_ssl_lib_dir+set}" = set; then :
17301 withval=$with_ssl_lib_dir;
17302 if test "x$withval" != "xno" ; then
17303 alpine_SSLLIB=$withval
17309 if test -n "$alpine_SSLINCLUDE" ; then
17310 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17311 elif test -n "$alpine_SSLDIR" ; then
17312 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17314 if test -n "$alpine_SSLLIB" ; then
17315 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17316 elif test -n "$alpine_SSLDIR" ; then
17317 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17321 if test "x$alpine_SSLTYPE" != "xnone" ; then
17322 alpine_default_SSLMIN="no_min"
17323 alpine_default_SSLMAX="no_max"
17324 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17325 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17326 alpine_SSLMIN="$alpine_default_SSLMIN"
17327 alpine_SSLMAX="$alpine_default_SSLMAX"
17328 alpine_RANGE="$alpine_default_RANGE"
17330 # Check whether --with-encryption-minimum-version was given.
17331 if test "${with_encryption_minimum_version+set}" = set; then :
17332 withval=$with_encryption_minimum_version;
17333 if test "x$withval" != "xno" ; then
17334 alpine_SSLMIN=$withval
17340 # Check whether --with-encryption-maximum-version was given.
17341 if test "${with_encryption_maximum_version+set}" = set; then :
17342 withval=$with_encryption_maximum_version;
17343 if test "x$withval" != "xno" ; then
17344 alpine_SSLMAX=$withval
17349 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17350 for range in ${alpine_RANGE} ; do
17351 for encryption in ${alpine_ENCRYPTION} ; do
17352 if test "x$range" = "x$encryption" ; then
17353 if test -z $alpine_min ; then
17354 alpine_min="yes"
17355 else
17356 alpine_max="yes"
17359 done
17360 done
17362 if test -z $alpine_max ; then
17363 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17366 if test -z $alpine_min ; then
17367 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17370 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17371 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17372 if test -n "$alpine_RANGE_FEASIBLE" ; then
17373 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17374 else
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17376 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17377 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17379 else
17380 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17382 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17383 alpine_SSLMAX="$alpine_default_SSLMAX"
17385 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17387 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17388 alpine_SSLMIN="$alpine_default_SSLMIN"
17390 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17393 dpv=$alpine_RANGE
17395 # Check whether --with-encryption-range was given.
17396 if test "${with_encryption_range+set}" = set; then :
17397 withval=$with_encryption_range;
17398 if test "x$withval" != "xno" ; then
17399 dpv=$withval
17405 cat >>confdefs.h <<_ACEOF
17406 #define DF_ENCRYPTION_RANGE "$dpv"
17407 _ACEOF
17413 # Check whether --with-krb5 was given.
17414 if test "${with_krb5+set}" = set; then :
17415 withval=$with_krb5; with_krb5=$withval
17419 if test "x$with_krb5" = "xno" ; then
17420 alpine_GSSTYPE="none"
17421 else
17422 alpine_GSSTYPE=
17425 # Check whether --with-krb5-dir was given.
17426 if test "${with_krb5_dir+set}" = set; then :
17427 withval=$with_krb5_dir;
17428 if test "x$withval" != "xno" ; then
17429 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17430 LDFLAGS="$LDFLAGS -L${withval}/lib"
17437 # Check whether --with-krb5-include-dir was given.
17438 if test "${with_krb5_include_dir+set}" = set; then :
17439 withval=$with_krb5_include_dir;
17440 if test "x$withval" != "xno" ; then
17441 CPPFLAGS="$CPPFLAGS -I$withval"
17448 # Check whether --with-krb5-lib-dir was given.
17449 if test "${with_krb5_lib_dir+set}" = set; then :
17450 withval=$with_krb5_lib_dir;
17451 if test "x$withval" != "xno" ; then
17452 LDFLAGS="$LDFLAGS -L$withval"
17460 # Check whether --with-ldap was given.
17461 if test "${with_ldap+set}" = set; then :
17462 withval=$with_ldap; with_ldap=$withval
17466 if test "x$with_ldap" = "xno" ; then
17467 alpine_with_ldap=
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17469 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17470 else
17472 case $host in
17473 *-*-freebsd*)
17474 alpine_LDAPDIR="/usr/local"
17475 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17476 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17478 esac;
17480 alpine_with_ldap=yes
17483 # Check whether --with-ldap-dir was given.
17484 if test "${with_ldap_dir+set}" = set; then :
17485 withval=$with_ldap_dir;
17486 if test "x$withval" != "xno" ; then
17487 alpine_LDAPDIR="${withval}"
17488 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17489 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17496 # Check whether --with-ldap-include-dir was given.
17497 if test "${with_ldap_include_dir+set}" = set; then :
17498 withval=$with_ldap_include_dir;
17499 if test "x$withval" != "xno" ; then
17500 alpine_LDAPINCLUDE="$withval"
17507 # Check whether --with-ldap-lib-dir was given.
17508 if test "${with_ldap_lib_dir+set}" = set; then :
17509 withval=$with_ldap_lib_dir;
17510 if test "x$withval" != "xno" ; then
17511 alpine_LDAPLIB="${withval}"
17517 if test -n "$alpine_LDAPINCLUDE" ; then
17518 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17520 if test -n "$alpine_LDAPLIB" ; then
17521 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17526 # Check whether --with-smime was given.
17527 if test "${with_smime+set}" = set; then :
17528 withval=$with_smime; with_smime=$withval
17533 # Check whether --with-tcl was given.
17534 if test "${with_tcl+set}" = set; then :
17535 withval=$with_tcl; with_tcl=$withval
17539 if test "x$with_tcl" = "xno" ; then
17540 WEB_BUILD=
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17542 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17543 else
17545 # Check whether --with-tcl-lib-dir was given.
17546 if test "${with_tcl_lib_dir+set}" = set; then :
17547 withval=$with_tcl_lib_dir;
17548 if test "x$withval" != "xno" ; then
17549 alpine_TCLLIBDIR=$withval
17550 if test -n "$alpine_TCLLIBDIR" ; then
17551 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17558 # Check whether --with-tcl-lib was given.
17559 if test "${with_tcl_lib+set}" = set; then :
17560 withval=$with_tcl_lib;
17561 if test "x$withval" != "xno" ; then
17562 alpine_TCLLIB=$withval
17568 # Check whether --with-tcl-include was given.
17569 if test "${with_tcl_include+set}" = set; then :
17570 withval=$with_tcl_include;
17571 if test "x$withval" != "xno" ; then
17572 CPPFLAGS="$CPPFLAGS -I$withval"
17573 alpine_TCLINC=$withval
17581 # Check whether --with-supplied-regex was given.
17582 if test "${with_supplied_regex+set}" = set; then :
17583 withval=$with_supplied_regex; alpine_REGEX=$withval
17588 # Check whether --with-pthread was given.
17589 if test "${with_pthread+set}" = set; then :
17590 withval=$with_pthread; with_pthread=$withval
17595 # Check whether --with-system-mail-directory was given.
17596 if test "${with_system_mail_directory+set}" = set; then :
17597 withval=$with_system_mail_directory;
17598 if test "x$withval" != "xno" ; then
17599 alpine_with_local_maildir="$withval"
17606 # Check whether --with-c-client-target was given.
17607 if test "${with_c_client_target+set}" = set; then :
17608 withval=$with_c_client_target;
17609 if test "x$withval" != "xno" ;then
17610 alpine_with_c_client_target="$withval"
17617 alpine_c_client_bundled="no"
17619 # Check whether --with-bundled-tools was given.
17620 if test "${with_bundled_tools+set}" = set; then :
17621 withval=$with_bundled_tools;
17622 if test "x$withval" = "xyes" ; then
17623 alpine_c_client_bundled=""
17629 alpine_PAM="none"
17631 case "$host" in
17632 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17633 alpine_path_delim="/"
17634 alpine_mode_readonly="(0600)"
17635 if test -f /etc/fedora-release ; then
17636 systype="LFD"
17637 alpine_PAM="yes"
17638 if test -d /etc/pki/tls ; then
17639 alpine_c_client_target="lfd"
17640 else
17641 alpine_c_client_target="lrh"
17643 elif test -f /etc/mandrake-release ; then
17644 systype="LMD"
17645 alpine_c_client_target="lmd"
17646 alpine_PAM="yes"
17647 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17648 systype="LRH"
17649 alpine_PAM="yes"
17650 if test -d /etc/pki/tls ; then
17651 alpine_c_client_target="lr5"
17652 else
17653 alpine_c_client_target="lrh"
17655 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17656 if test -d /etc/osso-af-init ; then
17657 systype="LN8"
17658 alpine_c_client_target="ln8"
17659 else
17660 systype="DEB"
17661 alpine_c_client_target="ldb"
17662 alpine_PAM="yes"
17664 elif test -f /etc/SuSE-release; then
17665 systype="LSU"
17666 alpine_c_client_target="lsu"
17667 alpine_PAM="yes"
17668 else
17669 systype="LNX"
17670 if test -z "$alpine_c_client_bundled" ; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17672 $as_echo_n "checking for am_start in -lpam... " >&6; }
17673 if ${ac_cv_lib_pam_am_start+:} false; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676 ac_check_lib_save_LIBS=$LIBS
17677 LIBS="-lpam $LIBS"
17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h. */
17681 /* Override any GCC internal prototype to avoid an error.
17682 Use char because int might match the return type of a GCC
17683 builtin and then its argument prototype would still apply. */
17684 #ifdef __cplusplus
17685 extern "C"
17686 #endif
17687 char am_start ();
17689 main ()
17691 return am_start ();
17693 return 0;
17695 _ACEOF
17696 if ac_fn_c_try_link "$LINENO"; then :
17697 ac_cv_lib_pam_am_start=yes
17698 else
17699 ac_cv_lib_pam_am_start=no
17701 rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17703 LIBS=$ac_check_lib_save_LIBS
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17706 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17707 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17709 alpine_c_client_target="lnp"
17710 alpine_PAM="yes"
17712 else
17714 if test -f /etc/shadow ; then
17715 alpine_c_client_target="slx"
17716 else
17717 alpine_c_client_target="lnx"
17722 else
17723 if test -f /etc/shadow ; then
17724 alpine_c_client_target="slx"
17725 else
17726 alpine_c_client_target="lnx"
17731 *-apple-darwin*)
17732 systype="OSX"
17733 alpine_path_delim="/"
17734 alpine_mode_readonly="(0600)"
17735 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17736 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17738 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17740 case "$alpine_os_credential_cache" in
17745 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17748 esac
17749 if test -z "$alpine_c_client_bundled" ; then
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17751 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17752 if ${ac_cv_lib_pam_pam_start+:} false; then :
17753 $as_echo_n "(cached) " >&6
17754 else
17755 ac_check_lib_save_LIBS=$LIBS
17756 LIBS="-lpam $LIBS"
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char pam_start ();
17768 main ()
17770 return pam_start ();
17772 return 0;
17774 _ACEOF
17775 if ac_fn_c_try_link "$LINENO"; then :
17776 ac_cv_lib_pam_pam_start=yes
17777 else
17778 ac_cv_lib_pam_pam_start=no
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17785 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17786 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17788 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17789 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17791 alpine_PAM="yes"
17792 alpine_c_client_target="oxs"
17794 else
17795 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17796 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17798 alpine_PAM="yes"
17799 alpine_c_client_target="oxp"
17801 else
17803 alpine_PAM="none"
17804 alpine_pam_none_reason="header files not found"
17814 else
17816 alpine_c_client_target="osx"
17820 else
17821 alpine_c_client_target="osx"
17824 *-*-solaris*)
17825 if test x$GCC = "xyes" ; then
17826 systype="GSO"
17827 alpine_c_client_target="gso"
17828 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17829 else
17830 systype="SOC"
17831 alpine_c_client_target="soc"
17833 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17836 alpine_path_delim="/"
17837 alpine_mode_readonly="(0600)"
17839 *-*-sunos4*)
17840 systype="SUN"
17841 alpine_path_delim="/"
17842 alpine_mode_readonly="(0600)"
17843 alpine_c_client_target="s40"
17845 *-*-sco3.2v5*)
17846 if test x$GCC = "xyes" ; then
17847 systype="GO5"
17848 alpine_c_client_target="go5"
17849 else
17850 systype="SC5"
17851 alpine_c_client_target="sc5"
17853 alpine_path_delim="/"
17854 alpine_mode_readonly="(0600)"
17856 *-next-*)
17857 systype="NXT"
17858 alpine_path_delim="/"
17859 alpine_mode_readonly="(0600)"
17860 alpine_c_client_target="nx3"
17862 *-*-netbsd*)
17863 systype="NEB"
17864 alpine_path_delim="/"
17865 alpine_mode_readonly="(0600)"
17866 alpine_c_client_target="neb"
17868 *-*-dragonfly*)
17869 systype="DFB"
17870 alpine_path_delim="/"
17871 alpine_mode_readonly="(0600)"
17872 alpine_c_client_target="neb"
17874 *-*-bsdi*)
17875 systype="BSI"
17876 alpine_path_delim="/"
17877 alpine_mode_readonly="(0600)"
17878 alpine_c_client_target="bsi"
17880 *-*-freebsd*)
17881 systype="BSF"
17882 alpine_path_delim="/"
17883 alpine_mode_readonly="(0600)"
17884 alpine_c_client_target="bsf"
17885 LIBS="$LIBS $LIBINTL"
17887 *-*-openbsd*)
17888 systype="BSO"
17889 alpine_path_delim="/"
17890 alpine_mode_readonly="(0600)"
17891 alpine_c_client_target="bso"
17892 LIBS="$LIBS $LIBINTL"
17894 *-*-aix5*)
17895 systype="A52"
17896 alpine_path_delim="/"
17897 alpine_mode_readonly="(0600)"
17898 alpine_c_client_target="a52"
17900 *-*-aix4*)
17901 systype="A41"
17902 alpine_path_delim="/"
17903 alpine_mode_readonly="(0600)"
17904 alpine_c_client_target="a41"
17906 *-*-aix3*)
17907 systype="A32"
17908 alpine_path_delim="/"
17909 alpine_mode_readonly="(0600)"
17910 alpine_c_client_target="a32"
17912 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17913 systype="UW2"
17914 alpine_path_delim="/"
17915 alpine_mode_readonly="(0600)"
17916 alpine_c_client_target="uw2"
17918 *-*-osf5*)
17919 systype="OSF"
17920 alpine_path_delim="/"
17921 alpine_mode_readonly="(0600)"
17922 alpine_c_client_target="osf"
17924 *-*-cygwin)
17925 systype="CYG"
17926 alpine_path_delim="/"
17927 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17928 alpine_c_client_target="cyg"
17929 LIBS="$LIBS $LIBINTL"
17931 windows* | *-*-pw32*)
17932 systype="WNT"
17933 alpine_path_delim="\\"
17934 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17935 alpine_c_client_target="wnt"
17937 $as_echo "#define _WINDOWS 1" >>confdefs.h
17941 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17943 esac
17946 # Check whether --with-ipv6 was given.
17947 if test "${with_ipv6+set}" = set; then :
17948 withval=$with_ipv6; with_ipv6=$withval
17952 if test "x$with_ipv6" = "xno" ; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17954 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17955 c_client_specials="${c_client_specials}IP6=4 "
17956 c_client_ip6="true"
17957 else
17958 c_client_ip6="touch imap/ip6"
17963 if test x$enable_dmalloc = "xyes" ; then
17964 if test "x$with_pthread" = "xyes" ; then
17965 dmalloc_lib=dmallocth
17966 else
17967 dmalloc_lib=dmalloc
17970 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17972 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17973 if eval \${$as_ac_Lib+:} false; then :
17974 $as_echo_n "(cached) " >&6
17975 else
17976 ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-l$dmalloc_lib $LIBS"
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char dmalloc_shutdown ();
17989 main ()
17991 return dmalloc_shutdown ();
17993 return 0;
17995 _ACEOF
17996 if ac_fn_c_try_link "$LINENO"; then :
17997 eval "$as_ac_Lib=yes"
17998 else
17999 eval "$as_ac_Lib=no"
18001 rm -f core conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18003 LIBS=$ac_check_lib_save_LIBS
18005 eval ac_res=\$$as_ac_Lib
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18007 $as_echo "$ac_res" >&6; }
18008 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18009 cat >>confdefs.h <<_ACEOF
18010 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18011 _ACEOF
18013 LIBS="-l$dmalloc_lib $LIBS"
18015 else
18017 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18024 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18025 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18026 $as_echo_n "(cached) " >&6
18027 else
18028 ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-ltinfo $LIBS"
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18033 /* Override any GCC internal prototype to avoid an error.
18034 Use char because int might match the return type of a GCC
18035 builtin and then its argument prototype would still apply. */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 char setupterm ();
18041 main ()
18043 return setupterm ();
18045 return 0;
18047 _ACEOF
18048 if ac_fn_c_try_link "$LINENO"; then :
18049 ac_cv_lib_tinfo_setupterm=yes
18050 else
18051 ac_cv_lib_tinfo_setupterm=no
18053 rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18058 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18059 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18061 alpine_termdata=info
18062 LIBS="$LIBS -ltinfo"
18064 else
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18067 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18068 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18069 $as_echo_n "(cached) " >&6
18070 else
18071 ac_check_lib_save_LIBS=$LIBS
18072 LIBS="-lncurses $LIBS"
18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18079 #ifdef __cplusplus
18080 extern "C"
18081 #endif
18082 char setupterm ();
18084 main ()
18086 return setupterm ();
18088 return 0;
18090 _ACEOF
18091 if ac_fn_c_try_link "$LINENO"; then :
18092 ac_cv_lib_ncurses_setupterm=yes
18093 else
18094 ac_cv_lib_ncurses_setupterm=no
18096 rm -f core conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18101 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18102 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18104 alpine_termdata=info
18105 LIBS="$LIBS -lncurses"
18107 else
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18110 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18111 if ${ac_cv_lib_curses_setupterm+:} false; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114 ac_check_lib_save_LIBS=$LIBS
18115 LIBS="-lcurses $LIBS"
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117 /* end confdefs.h. */
18119 /* Override any GCC internal prototype to avoid an error.
18120 Use char because int might match the return type of a GCC
18121 builtin and then its argument prototype would still apply. */
18122 #ifdef __cplusplus
18123 extern "C"
18124 #endif
18125 char setupterm ();
18127 main ()
18129 return setupterm ();
18131 return 0;
18133 _ACEOF
18134 if ac_fn_c_try_link "$LINENO"; then :
18135 ac_cv_lib_curses_setupterm=yes
18136 else
18137 ac_cv_lib_curses_setupterm=no
18139 rm -f core conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18141 LIBS=$ac_check_lib_save_LIBS
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18144 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18145 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18147 alpine_termdata=info
18148 LIBS="$LIBS -lcurses"
18150 else
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18153 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18154 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18155 $as_echo_n "(cached) " >&6
18156 else
18157 ac_check_lib_save_LIBS=$LIBS
18158 LIBS="-ltermlib $LIBS"
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18162 /* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18165 #ifdef __cplusplus
18166 extern "C"
18167 #endif
18168 char tgetent ();
18170 main ()
18172 return tgetent ();
18174 return 0;
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"; then :
18178 ac_cv_lib_termlib_tgetent=yes
18179 else
18180 ac_cv_lib_termlib_tgetent=no
18182 rm -f core conftest.err conftest.$ac_objext \
18183 conftest$ac_exeext conftest.$ac_ext
18184 LIBS=$ac_check_lib_save_LIBS
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18187 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18188 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18190 alpine_termdata=cap
18191 LIBS="$LIBS -ltermlib"
18193 else
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18197 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 ac_check_lib_save_LIBS=$LIBS
18201 LIBS="-ltermcap $LIBS"
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18205 /* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 char tgetent ();
18213 main ()
18215 return tgetent ();
18217 return 0;
18219 _ACEOF
18220 if ac_fn_c_try_link "$LINENO"; then :
18221 ac_cv_lib_termcap_tgetent=yes
18222 else
18223 ac_cv_lib_termcap_tgetent=no
18225 rm -f core conftest.err conftest.$ac_objext \
18226 conftest$ac_exeext conftest.$ac_ext
18227 LIBS=$ac_check_lib_save_LIBS
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18230 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18231 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18233 alpine_termdata=cap
18234 LIBS="$LIBS -ltermcap"
18236 else
18238 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18254 case $alpine_termdata in
18255 info)
18257 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18260 cap)
18262 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18265 esac
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18268 $as_echo_n "checking for library containing dlopen... " >&6; }
18269 if ${ac_cv_search_dlopen+:} false; then :
18270 $as_echo_n "(cached) " >&6
18271 else
18272 ac_func_search_save_LIBS=$LIBS
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18279 #ifdef __cplusplus
18280 extern "C"
18281 #endif
18282 char dlopen ();
18284 main ()
18286 return dlopen ();
18288 return 0;
18290 _ACEOF
18291 for ac_lib in '' dl dld; do
18292 if test -z "$ac_lib"; then
18293 ac_res="none required"
18294 else
18295 ac_res=-l$ac_lib
18296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18298 if ac_fn_c_try_link "$LINENO"; then :
18299 ac_cv_search_dlopen=$ac_res
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext
18303 if ${ac_cv_search_dlopen+:} false; then :
18304 break
18306 done
18307 if ${ac_cv_search_dlopen+:} false; then :
18309 else
18310 ac_cv_search_dlopen=no
18312 rm conftest.$ac_ext
18313 LIBS=$ac_func_search_save_LIBS
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18316 $as_echo "$ac_cv_search_dlopen" >&6; }
18317 ac_res=$ac_cv_search_dlopen
18318 if test "$ac_res" != no; then :
18319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18321 else
18322 alpine_DL="none"
18325 if test "x$alpine_DL" = "xnone" ; then
18326 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18327 exit 1
18330 if test "x$alpine_SSLTYPE" != "xnone" ; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18332 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 #include <stdio.h>
18337 #include <stdlib.h>
18338 #if HAVE_STDINT_H
18339 #include <stdint.h>
18340 #endif /* HAVE_STDINT_H */
18341 #include <openssl/ssl.h>
18344 main ()
18347 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18348 #error
18349 #endif
18352 return 0;
18354 _ACEOF
18355 if ac_fn_c_try_compile "$LINENO"; then :
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357 $as_echo "yes" >&6; }
18358 alpine_SSLPROVIDER="libressl"
18360 else
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18370 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 #include <stdio.h>
18375 #include <stdlib.h>
18376 #if HAVE_STDINT_H
18377 #include <stdint.h>
18378 #endif /* HAVE_STDINT_H */
18379 #include <openssl/ssl.h>
18382 main ()
18385 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18386 #error
18387 #endif
18390 return 0;
18392 _ACEOF
18393 if ac_fn_c_try_compile "$LINENO"; then :
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396 alpine_SSLPROVIDER="openssl"
18398 else
18399 alpine_SSLTYPE="none"
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18403 if test "x$alpine_SSLTYPE" = "xnone" ; then
18404 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18405 exit 1
18409 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18411 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h. */
18415 #include <stdio.h>
18416 #include <stdlib.h>
18417 #if HAVE_STDINT_H
18418 #include <stdint.h>
18419 #endif /* HAVE_STDINT_H */
18420 #include <openssl/ssl.h>
18423 main ()
18426 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18427 #error
18428 #endif
18431 return 0;
18433 _ACEOF
18434 if ac_fn_c_try_compile "$LINENO"; then :
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18436 $as_echo "yes" >&6; }
18437 alpine_SSLVERSION="new"
18438 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18440 else
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442 $as_echo "no" >&6; }
18443 alpine_SSLVERSION="old"
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448 if test "x$alpine_SSLTYPE" != "xnone" ; then
18449 if test "x$alpine_SSLVERSION" = "xold" ; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18451 $as_echo_n "checking for library containing SSLeay... " >&6; }
18452 if ${ac_cv_search_SSLeay+:} false; then :
18453 $as_echo_n "(cached) " >&6
18454 else
18455 ac_func_search_save_LIBS=$LIBS
18456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18462 #ifdef __cplusplus
18463 extern "C"
18464 #endif
18465 char SSLeay ();
18467 main ()
18469 return SSLeay ();
18471 return 0;
18473 _ACEOF
18474 for ac_lib in '' crypto; do
18475 if test -z "$ac_lib"; then
18476 ac_res="none required"
18477 else
18478 ac_res=-l$ac_lib
18479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18481 if ac_fn_c_try_link "$LINENO"; then :
18482 ac_cv_search_SSLeay=$ac_res
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext
18486 if ${ac_cv_search_SSLeay+:} false; then :
18487 break
18489 done
18490 if ${ac_cv_search_SSLeay+:} false; then :
18492 else
18493 ac_cv_search_SSLeay=no
18495 rm conftest.$ac_ext
18496 LIBS=$ac_func_search_save_LIBS
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18499 $as_echo "$ac_cv_search_SSLeay" >&6; }
18500 ac_res=$ac_cv_search_SSLeay
18501 if test "$ac_res" != no; then :
18502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18504 else
18505 alpine_CRYPTO="none"
18508 else
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18510 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18511 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18512 $as_echo_n "(cached) " >&6
18513 else
18514 ac_func_search_save_LIBS=$LIBS
18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516 /* end confdefs.h. */
18518 /* Override any GCC internal prototype to avoid an error.
18519 Use char because int might match the return type of a GCC
18520 builtin and then its argument prototype would still apply. */
18521 #ifdef __cplusplus
18522 extern "C"
18523 #endif
18524 char OpenSSL_version_num ();
18526 main ()
18528 return OpenSSL_version_num ();
18530 return 0;
18532 _ACEOF
18533 for ac_lib in '' crypto; do
18534 if test -z "$ac_lib"; then
18535 ac_res="none required"
18536 else
18537 ac_res=-l$ac_lib
18538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18540 if ac_fn_c_try_link "$LINENO"; then :
18541 ac_cv_search_OpenSSL_version_num=$ac_res
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext
18545 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18546 break
18548 done
18549 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18551 else
18552 ac_cv_search_OpenSSL_version_num=no
18554 rm conftest.$ac_ext
18555 LIBS=$ac_func_search_save_LIBS
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18558 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18559 ac_res=$ac_cv_search_OpenSSL_version_num
18560 if test "$ac_res" != no; then :
18561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18563 else
18564 alpine_CRYPTO="none"
18568 if test "x$alpine_CRYPTO" = "xnone" ; then
18569 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18570 exit 1
18572 case $host in
18573 *-*-cygwin)
18574 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18575 if test "x$ac_cv_header_crypto_h" = xyes; then :
18577 else
18578 alpine_CRYPTO_DEVEL="none"
18582 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18583 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
18584 exit 1
18587 *) ;;
18588 esac
18591 if test "x$alpine_SSLTYPE" != "xnone" ; then
18592 if test "x$alpine_SSLVERSION" = "xold" ; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18594 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18595 if ${ac_cv_search_SSL_library_init+:} false; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598 ac_func_search_save_LIBS=$LIBS
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char SSL_library_init ();
18610 main ()
18612 return SSL_library_init ();
18614 return 0;
18616 _ACEOF
18617 for ac_lib in '' ssl; do
18618 if test -z "$ac_lib"; then
18619 ac_res="none required"
18620 else
18621 ac_res=-l$ac_lib
18622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18624 if ac_fn_c_try_link "$LINENO"; then :
18625 ac_cv_search_SSL_library_init=$ac_res
18627 rm -f core conftest.err conftest.$ac_objext \
18628 conftest$ac_exeext
18629 if ${ac_cv_search_SSL_library_init+:} false; then :
18630 break
18632 done
18633 if ${ac_cv_search_SSL_library_init+:} false; then :
18635 else
18636 ac_cv_search_SSL_library_init=no
18638 rm conftest.$ac_ext
18639 LIBS=$ac_func_search_save_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18642 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18643 ac_res=$ac_cv_search_SSL_library_init
18644 if test "$ac_res" != no; then :
18645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18647 else
18648 alpine_SSLTYPE="none"
18651 if test "x$alpine_SSLTYPE" = "xnone" ; then
18652 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18653 exit 1
18655 else
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18657 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18658 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18659 $as_echo_n "(cached) " >&6
18660 else
18661 ac_func_search_save_LIBS=$LIBS
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18665 /* Override any GCC internal prototype to avoid an error.
18666 Use char because int might match the return type of a GCC
18667 builtin and then its argument prototype would still apply. */
18668 #ifdef __cplusplus
18669 extern "C"
18670 #endif
18671 char OPENSSL_init_ssl ();
18673 main ()
18675 return OPENSSL_init_ssl ();
18677 return 0;
18679 _ACEOF
18680 for ac_lib in '' ssl; do
18681 if test -z "$ac_lib"; then
18682 ac_res="none required"
18683 else
18684 ac_res=-l$ac_lib
18685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18687 if ac_fn_c_try_link "$LINENO"; then :
18688 ac_cv_search_OPENSSL_init_ssl=$ac_res
18690 rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext
18692 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18693 break
18695 done
18696 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18698 else
18699 ac_cv_search_OPENSSL_init_ssl=no
18701 rm conftest.$ac_ext
18702 LIBS=$ac_func_search_save_LIBS
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18705 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18706 ac_res=$ac_cv_search_OPENSSL_init_ssl
18707 if test "$ac_res" != no; then :
18708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18710 else
18711 alpine_SSLTYPE="none"
18714 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18715 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18716 exit 1
18721 if test "$alpine_with_ldap" = "yes" ; then
18722 alpine_has_ldap=
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18724 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18725 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 ac_check_lib_save_LIBS=$LIBS
18729 LIBS="-llber $LIBS"
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18736 #ifdef __cplusplus
18737 extern "C"
18738 #endif
18739 char ber_alloc ();
18741 main ()
18743 return ber_alloc ();
18745 return 0;
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"; then :
18749 ac_cv_lib_lber_ber_alloc=yes
18750 else
18751 ac_cv_lib_lber_ber_alloc=no
18753 rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755 LIBS=$ac_check_lib_save_LIBS
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18758 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18759 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18761 LIBS="$LIBS -llber"
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18766 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18767 if ${ac_cv_search_ldap_initialize+:} false; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 ac_func_search_save_LIBS=$LIBS
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18774 /* Override any GCC internal prototype to avoid an error.
18775 Use char because int might match the return type of a GCC
18776 builtin and then its argument prototype would still apply. */
18777 #ifdef __cplusplus
18778 extern "C"
18779 #endif
18780 char ldap_initialize ();
18782 main ()
18784 return ldap_initialize ();
18786 return 0;
18788 _ACEOF
18789 for ac_lib in '' ldap; do
18790 if test -z "$ac_lib"; then
18791 ac_res="none required"
18792 else
18793 ac_res=-l$ac_lib
18794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18796 if ac_fn_c_try_link "$LINENO"; then :
18797 ac_cv_search_ldap_initialize=$ac_res
18799 rm -f core conftest.err conftest.$ac_objext \
18800 conftest$ac_exeext
18801 if ${ac_cv_search_ldap_initialize+:} false; then :
18802 break
18804 done
18805 if ${ac_cv_search_ldap_initialize+:} false; then :
18807 else
18808 ac_cv_search_ldap_initialize=no
18810 rm conftest.$ac_ext
18811 LIBS=$ac_func_search_save_LIBS
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18814 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18815 ac_res=$ac_cv_search_ldap_initialize
18816 if test "$ac_res" != no; then :
18817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18819 alpine_has_ldap=yes
18821 else
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18824 $as_echo_n "checking for library containing ldap_open... " >&6; }
18825 if ${ac_cv_search_ldap_open+:} false; then :
18826 $as_echo_n "(cached) " >&6
18827 else
18828 ac_func_search_save_LIBS=$LIBS
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char ldap_open ();
18840 main ()
18842 return ldap_open ();
18844 return 0;
18846 _ACEOF
18847 for ac_lib in '' ldap; do
18848 if test -z "$ac_lib"; then
18849 ac_res="none required"
18850 else
18851 ac_res=-l$ac_lib
18852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18854 if ac_fn_c_try_link "$LINENO"; then :
18855 ac_cv_search_ldap_open=$ac_res
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext
18859 if ${ac_cv_search_ldap_open+:} false; then :
18860 break
18862 done
18863 if ${ac_cv_search_ldap_open+:} false; then :
18865 else
18866 ac_cv_search_ldap_open=no
18868 rm conftest.$ac_ext
18869 LIBS=$ac_func_search_save_LIBS
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18872 $as_echo "$ac_cv_search_ldap_open" >&6; }
18873 ac_res=$ac_cv_search_ldap_open
18874 if test "$ac_res" != no; then :
18875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18877 alpine_has_ldap=yes
18885 if test "$alpine_has_ldap" = "yes" ; then
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18887 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18889 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18894 if test -z "$alpine_c_client_bundled" ; then
18895 if test "x$alpine_PAM" != "xnone" ; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18897 $as_echo_n "checking for library containing pam_start... " >&6; }
18898 if ${ac_cv_search_pam_start+:} false; then :
18899 $as_echo_n "(cached) " >&6
18900 else
18901 ac_func_search_save_LIBS=$LIBS
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 char pam_start ();
18913 main ()
18915 return pam_start ();
18917 return 0;
18919 _ACEOF
18920 for ac_lib in '' pam; do
18921 if test -z "$ac_lib"; then
18922 ac_res="none required"
18923 else
18924 ac_res=-l$ac_lib
18925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18927 if ac_fn_c_try_link "$LINENO"; then :
18928 ac_cv_search_pam_start=$ac_res
18930 rm -f core conftest.err conftest.$ac_objext \
18931 conftest$ac_exeext
18932 if ${ac_cv_search_pam_start+:} false; then :
18933 break
18935 done
18936 if ${ac_cv_search_pam_start+:} false; then :
18938 else
18939 ac_cv_search_pam_start=no
18941 rm conftest.$ac_ext
18942 LIBS=$ac_func_search_save_LIBS
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18945 $as_echo "$ac_cv_search_pam_start" >&6; }
18946 ac_res=$ac_cv_search_pam_start
18947 if test "$ac_res" != no; then :
18948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18950 LIBS="$LIBS -lpam"
18951 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18952 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18954 alpine_PAM="yes"
18956 else
18957 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18958 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18960 alpine_PAM="yes"
18961 if test "x$alpine_c_client_target" != "xoxp" ; then
18962 alpine_PAM="none"
18963 alpine_pam_none_reason="header files not in security/ directory"
18966 else
18968 alpine_PAM="none"
18969 alpine_pam_none_reason="header files not found"
18979 else
18981 alpine_PAM="none"
18982 alpine_pam_none_reason="library files not found"
18986 if test -n "$alpine_pam_none_reason" ; then
18987 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
18992 if test -n "$alpine_c_client_bundled" ; then
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18994 $as_echo_n "checking for library containing crypt... " >&6; }
18995 if ${ac_cv_search_crypt+:} false; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18998 ac_func_search_save_LIBS=$LIBS
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char crypt ();
19010 main ()
19012 return crypt ();
19014 return 0;
19016 _ACEOF
19017 for ac_lib in '' crypt; do
19018 if test -z "$ac_lib"; then
19019 ac_res="none required"
19020 else
19021 ac_res=-l$ac_lib
19022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19024 if ac_fn_c_try_link "$LINENO"; then :
19025 ac_cv_search_crypt=$ac_res
19027 rm -f core conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext
19029 if ${ac_cv_search_crypt+:} false; then :
19030 break
19032 done
19033 if ${ac_cv_search_crypt+:} false; then :
19035 else
19036 ac_cv_search_crypt=no
19038 rm conftest.$ac_ext
19039 LIBS=$ac_func_search_save_LIBS
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19042 $as_echo "$ac_cv_search_crypt" >&6; }
19043 ac_res=$ac_cv_search_crypt
19044 if test "$ac_res" != no; then :
19045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19047 else
19049 as_fn_error $? "crypt library not found." "$LINENO" 5
19055 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19058 if test "x$alpine_GSSTYPE" != "xnone" ; then
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19060 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19061 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19062 $as_echo_n "(cached) " >&6
19063 else
19064 ac_func_search_save_LIBS=$LIBS
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19071 #ifdef __cplusplus
19072 extern "C"
19073 #endif
19074 char gss_init_sec_context ();
19076 main ()
19078 return gss_init_sec_context ();
19080 return 0;
19082 _ACEOF
19083 for ac_lib in '' gss gssapi gssapi_krb5; do
19084 if test -z "$ac_lib"; then
19085 ac_res="none required"
19086 else
19087 ac_res=-l$ac_lib
19088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 ac_cv_search_gss_init_sec_context=$ac_res
19093 rm -f core conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext
19095 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19096 break
19098 done
19099 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19101 else
19102 ac_cv_search_gss_init_sec_context=no
19104 rm conftest.$ac_ext
19105 LIBS=$ac_func_search_save_LIBS
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19108 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19109 ac_res=$ac_cv_search_gss_init_sec_context
19110 if test "$ac_res" != no; then :
19111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19113 LIBS="$LIBS -lkrb5"
19114 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19115 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19117 else
19119 if test ! -d /usr/kerberos/include ; then
19120 alpine_GSSTYPE="none"
19121 alpine_gss_none_reason="header files not found"
19128 else
19130 alpine_GSSTYPE="none"
19131 alpine_gss_none_reason="libraries not found"
19135 if test -n "$alpine_gss_none_reason" ; then
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19137 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19142 # Check whether --with-ntlm was given.
19143 if test "${with_ntlm+set}" = set; then :
19144 withval=$with_ntlm; with_ntlm=$withval
19148 if test "x$with_ntlm" = "xno" ; then
19149 alpine_NTLM="none"
19150 else
19151 alpine_NTLM=
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19154 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19155 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19156 $as_echo_n "(cached) " >&6
19157 else
19158 ac_func_search_save_LIBS=$LIBS
19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160 /* end confdefs.h. */
19162 /* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply. */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 char buildSmbNtlmAuthRequest ();
19170 main ()
19172 return buildSmbNtlmAuthRequest ();
19174 return 0;
19176 _ACEOF
19177 for ac_lib in '' ntlm; do
19178 if test -z "$ac_lib"; then
19179 ac_res="none required"
19180 else
19181 ac_res=-l$ac_lib
19182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19184 if ac_fn_c_try_link "$LINENO"; then :
19185 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19187 rm -f core conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext
19189 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19190 break
19192 done
19193 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19195 else
19196 ac_cv_search_buildSmbNtlmAuthRequest=no
19198 rm conftest.$ac_ext
19199 LIBS=$ac_func_search_save_LIBS
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19202 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19203 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19204 if test "$ac_res" != no; then :
19205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19207 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19208 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19210 extra_auth_ntlm=ntl
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19212 $as_echo "$as_me: including NTLM support" >&6;}
19214 else
19216 alpine_NTLM="none"
19217 alpine_ntlm_none_reason="header file ntlm.h not found"
19223 else
19225 alpine_NTLM="none"
19226 alpine_ntlm_none_reason="ntlm library not found"
19230 if test -n "$alpine_ntlm_none_reason" ; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19232 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19236 if test -n "$WEB_BUILD" ; then
19237 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19238 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19239 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19240 if test -n "$alpine_TCLINC" ; then
19241 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19242 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19245 else
19247 WEB_BUILD=
19252 if test -z "$WEB_BUILD" ; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19254 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19256 else
19257 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19258 if test "x$ac_cv_header_tcl_h" = xyes; then :
19260 else
19262 for base in /usr /usr/local ; do
19263 for dir in ${TCL_VERSIONS} ; do
19264 if test -f $base/include/$dir/tcl.h ; then
19265 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19266 found=yes
19267 break
19269 done
19270 if test "x$found" = "xyes" ; then
19271 break
19273 done
19274 if test "$found" != "yes" ; then
19275 WEB_BUILD=
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19277 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19284 if test -n "$WEB_BUILD" ; then
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19286 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19287 if ${ac_cv_search_Tcl_Eval+:} false; then :
19288 $as_echo_n "(cached) " >&6
19289 else
19290 ac_func_search_save_LIBS=$LIBS
19291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h. */
19294 /* Override any GCC internal prototype to avoid an error.
19295 Use char because int might match the return type of a GCC
19296 builtin and then its argument prototype would still apply. */
19297 #ifdef __cplusplus
19298 extern "C"
19299 #endif
19300 char Tcl_Eval ();
19302 main ()
19304 return Tcl_Eval ();
19306 return 0;
19308 _ACEOF
19309 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19310 if test -z "$ac_lib"; then
19311 ac_res="none required"
19312 else
19313 ac_res=-l$ac_lib
19314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19316 if ac_fn_c_try_link "$LINENO"; then :
19317 ac_cv_search_Tcl_Eval=$ac_res
19319 rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext
19321 if ${ac_cv_search_Tcl_Eval+:} false; then :
19322 break
19324 done
19325 if ${ac_cv_search_Tcl_Eval+:} false; then :
19327 else
19328 ac_cv_search_Tcl_Eval=no
19330 rm conftest.$ac_ext
19331 LIBS=$ac_func_search_save_LIBS
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19334 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19335 ac_res=$ac_cv_search_Tcl_Eval
19336 if test "$ac_res" != no; then :
19337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19339 else
19341 WEB_BUILD=
19348 if test "x$alpine_REGEX" != "xyes" ; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19350 $as_echo_n "checking for library containing regcomp... " >&6; }
19351 if ${ac_cv_search_regcomp+:} false; then :
19352 $as_echo_n "(cached) " >&6
19353 else
19354 ac_func_search_save_LIBS=$LIBS
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 char regcomp ();
19366 main ()
19368 return regcomp ();
19370 return 0;
19372 _ACEOF
19373 for ac_lib in '' posix regexp regex re; do
19374 if test -z "$ac_lib"; then
19375 ac_res="none required"
19376 else
19377 ac_res=-l$ac_lib
19378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19380 if ac_fn_c_try_link "$LINENO"; then :
19381 ac_cv_search_regcomp=$ac_res
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext
19385 if ${ac_cv_search_regcomp+:} false; then :
19386 break
19388 done
19389 if ${ac_cv_search_regcomp+:} false; then :
19391 else
19392 ac_cv_search_regcomp=no
19394 rm conftest.$ac_ext
19395 LIBS=$ac_func_search_save_LIBS
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19398 $as_echo "$ac_cv_search_regcomp" >&6; }
19399 ac_res=$ac_cv_search_regcomp
19400 if test "$ac_res" != no; then :
19401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19403 else
19405 if test x$alpine_REGEX = "xno" ; then
19406 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19407 else
19408 alpine_REGEX=yes
19414 if test "x$alpine_REGEX" != "xyes" ; then
19415 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19416 if test "x$ac_cv_header_regex_h" = xyes; then :
19418 else
19420 if test x$alpine_REGEX = "xno" ; then
19421 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19422 else
19423 alpine_REGEX=yes
19431 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19433 if test "x$alpine_REGEX" = "xyes" ; then
19434 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19435 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19436 REGEX_BUILD=regex
19437 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19440 if test "x$with_pthread" != "xno" ; then
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19442 $as_echo_n "checking for pthread support... " >&6; }
19446 ac_ext=c
19447 ac_cpp='$CPP $CPPFLAGS'
19448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452 acx_pthread_ok=no
19454 # We used to check for pthread.h first, but this fails if pthread.h
19455 # requires special compiler flags (e.g. on True64 or Sequent).
19456 # It gets checked for in the link test anyway.
19458 # First of all, check if the user has set any of the PTHREAD_LIBS,
19459 # etcetera environment variables, and if threads linking works using
19460 # them:
19461 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19462 save_CFLAGS="$CFLAGS"
19463 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19464 save_LIBS="$LIBS"
19465 LIBS="$PTHREAD_LIBS $LIBS"
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19467 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19471 /* Override any GCC internal prototype to avoid an error.
19472 Use char because int might match the return type of a GCC
19473 builtin and then its argument prototype would still apply. */
19474 #ifdef __cplusplus
19475 extern "C"
19476 #endif
19477 char pthread_join ();
19479 main ()
19481 return pthread_join ();
19483 return 0;
19485 _ACEOF
19486 if ac_fn_c_try_link "$LINENO"; then :
19487 acx_pthread_ok=yes
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19492 $as_echo "$acx_pthread_ok" >&6; }
19493 if test x"$acx_pthread_ok" = xno; then
19494 PTHREAD_LIBS=""
19495 PTHREAD_CFLAGS=""
19497 LIBS="$save_LIBS"
19498 CFLAGS="$save_CFLAGS"
19501 # We must check for the threads library under a number of different
19502 # names; the ordering is very important because some systems
19503 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19504 # libraries is broken (non-POSIX).
19506 # Create a list of thread flags to try. Items starting with a "-" are
19507 # C compiler flags, and other items are library names, except for "none"
19508 # which indicates that we try without any flags at all, and "pthread-config"
19509 # which is a program returning the flags for the Pth emulation library.
19511 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19513 # The ordering *is* (sometimes) important. Some notes on the
19514 # individual items follow:
19516 # pthreads: AIX (must check this before -lpthread)
19517 # none: in case threads are in libc; should be tried before -Kthread and
19518 # other compiler flags to prevent continual compiler warnings
19519 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19520 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19521 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19522 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19523 # -pthreads: Solaris/gcc
19524 # -mthreads: Mingw32/gcc, Lynx/gcc
19525 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19526 # doesn't hurt to check since this sometimes defines pthreads too;
19527 # also defines -D_REENTRANT)
19528 # ... -mt is also the pthreads flag for HP/aCC
19529 # pthread: Linux, etcetera
19530 # --thread-safe: KAI C++
19531 # pthread-config: use pthread-config program (for GNU Pth library)
19533 case "${host_cpu}-${host_os}" in
19534 *solaris*)
19536 # On Solaris (at least, for some versions), libc contains stubbed
19537 # (non-functional) versions of the pthreads routines, so link-based
19538 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19539 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19540 # a function called by this macro, so we could check for that, but
19541 # who knows whether they'll stub that too in a future libc.) So,
19542 # we'll just look for -pthreads and -lpthread first:
19544 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19546 esac
19548 if test x"$acx_pthread_ok" = xno; then
19549 for flag in $acx_pthread_flags; do
19551 case $flag in
19552 none)
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19554 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19559 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19560 PTHREAD_CFLAGS="$flag"
19563 pthread-config)
19564 # Extract the first word of "pthread-config", so it can be a program name with args.
19565 set dummy pthread-config; ac_word=$2
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19567 $as_echo_n "checking for $ac_word... " >&6; }
19568 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19569 $as_echo_n "(cached) " >&6
19570 else
19571 if test -n "$acx_pthread_config"; then
19572 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19573 else
19574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19575 for as_dir in $PATH
19577 IFS=$as_save_IFS
19578 test -z "$as_dir" && as_dir=.
19579 for ac_exec_ext in '' $ac_executable_extensions; do
19580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19581 ac_cv_prog_acx_pthread_config="yes"
19582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19583 break 2
19585 done
19586 done
19587 IFS=$as_save_IFS
19589 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19592 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19593 if test -n "$acx_pthread_config"; then
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19595 $as_echo "$acx_pthread_config" >&6; }
19596 else
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19598 $as_echo "no" >&6; }
19602 if test x"$acx_pthread_config" = xno; then continue; fi
19603 PTHREAD_CFLAGS="`pthread-config --cflags`"
19604 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19609 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19610 PTHREAD_LIBS="-l$flag"
19612 esac
19614 save_LIBS="$LIBS"
19615 save_CFLAGS="$CFLAGS"
19616 LIBS="$PTHREAD_LIBS $LIBS"
19617 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19619 # Check for various functions. We must include pthread.h,
19620 # since some functions may be macros. (On the Sequent, we
19621 # need a special flag -Kthread to make this header compile.)
19622 # We check for pthread_join because it is in -lpthread on IRIX
19623 # while pthread_create is in libc. We check for pthread_attr_init
19624 # due to DEC craziness with -lpthreads. We check for
19625 # pthread_cleanup_push because it is one of the few pthread
19626 # functions on Solaris that doesn't have a non-functional libc stub.
19627 # We try pthread_create on general principles.
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19630 #include <pthread.h>
19632 main ()
19634 pthread_t th; pthread_join(th, 0);
19635 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19636 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19638 return 0;
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 acx_pthread_ok=yes
19644 rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19647 LIBS="$save_LIBS"
19648 CFLAGS="$save_CFLAGS"
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19651 $as_echo "$acx_pthread_ok" >&6; }
19652 if test "x$acx_pthread_ok" = xyes; then
19653 break;
19656 PTHREAD_LIBS=""
19657 PTHREAD_CFLAGS=""
19658 done
19661 # Various other checks:
19662 if test "x$acx_pthread_ok" = xyes; then
19663 save_LIBS="$LIBS"
19664 LIBS="$PTHREAD_LIBS $LIBS"
19665 save_CFLAGS="$CFLAGS"
19666 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19668 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19670 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19671 attr_name=unknown
19672 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 #include <pthread.h>
19677 main ()
19679 int attr=$attr; return attr;
19681 return 0;
19683 _ACEOF
19684 if ac_fn_c_try_link "$LINENO"; then :
19685 attr_name=$attr; break
19687 rm -f core conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19689 done
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19691 $as_echo "$attr_name" >&6; }
19692 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19694 cat >>confdefs.h <<_ACEOF
19695 #define PTHREAD_CREATE_JOINABLE $attr_name
19696 _ACEOF
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19701 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19702 flag=no
19703 case "${host_cpu}-${host_os}" in
19704 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19705 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19706 esac
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19708 $as_echo "${flag}" >&6; }
19709 if test "x$flag" != xno; then
19710 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19713 LIBS="$save_LIBS"
19714 CFLAGS="$save_CFLAGS"
19716 # More AIX lossage: must compile with xlc_r or cc_r
19717 if test x"$GCC" != xyes; then
19718 for ac_prog in xlc_r cc_r
19720 # Extract the first word of "$ac_prog", so it can be a program name with args.
19721 set dummy $ac_prog; ac_word=$2
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19723 $as_echo_n "checking for $ac_word... " >&6; }
19724 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 if test -n "$PTHREAD_CC"; then
19728 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19729 else
19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in $PATH
19733 IFS=$as_save_IFS
19734 test -z "$as_dir" && as_dir=.
19735 for ac_exec_ext in '' $ac_executable_extensions; do
19736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19737 ac_cv_prog_PTHREAD_CC="$ac_prog"
19738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19739 break 2
19741 done
19742 done
19743 IFS=$as_save_IFS
19747 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19748 if test -n "$PTHREAD_CC"; then
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19750 $as_echo "$PTHREAD_CC" >&6; }
19751 else
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753 $as_echo "no" >&6; }
19757 test -n "$PTHREAD_CC" && break
19758 done
19759 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19761 else
19762 PTHREAD_CC=$CC
19764 else
19765 PTHREAD_CC="$CC"
19772 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19773 if test x"$acx_pthread_ok" = xyes; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19776 $as_echo "yes" >&6; }
19777 case "$target" in
19778 *openbsd*)
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19780 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19781 AM_CFLAGS="$AM_CFLAGS -pthread"
19783 esac
19784 LIBS="$PTHREAD_LIBS $LIBS"
19785 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19786 CC="$PTHREAD_CC"
19788 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19792 else
19793 acx_pthread_ok=no
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796 $as_echo "no" >&6; }
19799 ac_ext=c
19800 ac_cpp='$CPP $CPPFLAGS'
19801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19808 $as_echo_n "checking for library containing nanosleep... " >&6; }
19809 if ${ac_cv_search_nanosleep+:} false; then :
19810 $as_echo_n "(cached) " >&6
19811 else
19812 ac_func_search_save_LIBS=$LIBS
19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h. */
19816 /* Override any GCC internal prototype to avoid an error.
19817 Use char because int might match the return type of a GCC
19818 builtin and then its argument prototype would still apply. */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 char nanosleep ();
19824 main ()
19826 return nanosleep ();
19828 return 0;
19830 _ACEOF
19831 for ac_lib in '' rt posix4; do
19832 if test -z "$ac_lib"; then
19833 ac_res="none required"
19834 else
19835 ac_res=-l$ac_lib
19836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19838 if ac_fn_c_try_link "$LINENO"; then :
19839 ac_cv_search_nanosleep=$ac_res
19841 rm -f core conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext
19843 if ${ac_cv_search_nanosleep+:} false; then :
19844 break
19846 done
19847 if ${ac_cv_search_nanosleep+:} false; then :
19849 else
19850 ac_cv_search_nanosleep=no
19852 rm conftest.$ac_ext
19853 LIBS=$ac_func_search_save_LIBS
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19856 $as_echo "$ac_cv_search_nanosleep" >&6; }
19857 ac_res=$ac_cv_search_nanosleep
19858 if test "$ac_res" != no; then :
19859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19862 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19873 $as_echo_n "checking for ANSI C header files... " >&6; }
19874 if ${ac_cv_header_stdc+:} false; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <stdlib.h>
19880 #include <stdarg.h>
19881 #include <string.h>
19882 #include <float.h>
19885 main ()
19889 return 0;
19891 _ACEOF
19892 if ac_fn_c_try_compile "$LINENO"; then :
19893 ac_cv_header_stdc=yes
19894 else
19895 ac_cv_header_stdc=no
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 if test $ac_cv_header_stdc = yes; then
19900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902 /* end confdefs.h. */
19903 #include <string.h>
19905 _ACEOF
19906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19907 $EGREP "memchr" >/dev/null 2>&1; then :
19909 else
19910 ac_cv_header_stdc=no
19912 rm -f conftest*
19916 if test $ac_cv_header_stdc = yes; then
19917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <stdlib.h>
19922 _ACEOF
19923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19924 $EGREP "free" >/dev/null 2>&1; then :
19926 else
19927 ac_cv_header_stdc=no
19929 rm -f conftest*
19933 if test $ac_cv_header_stdc = yes; then
19934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19935 if test "$cross_compiling" = yes; then :
19937 else
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <ctype.h>
19941 #include <stdlib.h>
19942 #if ((' ' & 0x0FF) == 0x020)
19943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19945 #else
19946 # define ISLOWER(c) \
19947 (('a' <= (c) && (c) <= 'i') \
19948 || ('j' <= (c) && (c) <= 'r') \
19949 || ('s' <= (c) && (c) <= 'z'))
19950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19951 #endif
19953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19955 main ()
19957 int i;
19958 for (i = 0; i < 256; i++)
19959 if (XOR (islower (i), ISLOWER (i))
19960 || toupper (i) != TOUPPER (i))
19961 return 2;
19962 return 0;
19964 _ACEOF
19965 if ac_fn_c_try_run "$LINENO"; then :
19967 else
19968 ac_cv_header_stdc=no
19970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19971 conftest.$ac_objext conftest.beam conftest.$ac_ext
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19977 $as_echo "$ac_cv_header_stdc" >&6; }
19978 if test $ac_cv_header_stdc = yes; then
19980 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19984 ac_header_dirent=no
19985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19986 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19988 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19989 if eval \${$as_ac_Header+:} false; then :
19990 $as_echo_n "(cached) " >&6
19991 else
19992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993 /* end confdefs.h. */
19994 #include <sys/types.h>
19995 #include <$ac_hdr>
19998 main ()
20000 if ((DIR *) 0)
20001 return 0;
20003 return 0;
20005 _ACEOF
20006 if ac_fn_c_try_compile "$LINENO"; then :
20007 eval "$as_ac_Header=yes"
20008 else
20009 eval "$as_ac_Header=no"
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 eval ac_res=\$$as_ac_Header
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20015 $as_echo "$ac_res" >&6; }
20016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20017 cat >>confdefs.h <<_ACEOF
20018 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20019 _ACEOF
20021 ac_header_dirent=$ac_hdr; break
20024 done
20025 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20026 if test $ac_header_dirent = dirent.h; then
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20028 $as_echo_n "checking for library containing opendir... " >&6; }
20029 if ${ac_cv_search_opendir+:} false; then :
20030 $as_echo_n "(cached) " >&6
20031 else
20032 ac_func_search_save_LIBS=$LIBS
20033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 char opendir ();
20044 main ()
20046 return opendir ();
20048 return 0;
20050 _ACEOF
20051 for ac_lib in '' dir; do
20052 if test -z "$ac_lib"; then
20053 ac_res="none required"
20054 else
20055 ac_res=-l$ac_lib
20056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20058 if ac_fn_c_try_link "$LINENO"; then :
20059 ac_cv_search_opendir=$ac_res
20061 rm -f core conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext
20063 if ${ac_cv_search_opendir+:} false; then :
20064 break
20066 done
20067 if ${ac_cv_search_opendir+:} false; then :
20069 else
20070 ac_cv_search_opendir=no
20072 rm conftest.$ac_ext
20073 LIBS=$ac_func_search_save_LIBS
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20076 $as_echo "$ac_cv_search_opendir" >&6; }
20077 ac_res=$ac_cv_search_opendir
20078 if test "$ac_res" != no; then :
20079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20083 else
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20085 $as_echo_n "checking for library containing opendir... " >&6; }
20086 if ${ac_cv_search_opendir+:} false; then :
20087 $as_echo_n "(cached) " >&6
20088 else
20089 ac_func_search_save_LIBS=$LIBS
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h. */
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char opendir ();
20101 main ()
20103 return opendir ();
20105 return 0;
20107 _ACEOF
20108 for ac_lib in '' x; do
20109 if test -z "$ac_lib"; then
20110 ac_res="none required"
20111 else
20112 ac_res=-l$ac_lib
20113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20115 if ac_fn_c_try_link "$LINENO"; then :
20116 ac_cv_search_opendir=$ac_res
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext
20120 if ${ac_cv_search_opendir+:} false; then :
20121 break
20123 done
20124 if ${ac_cv_search_opendir+:} false; then :
20126 else
20127 ac_cv_search_opendir=no
20129 rm conftest.$ac_ext
20130 LIBS=$ac_func_search_save_LIBS
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20133 $as_echo "$ac_cv_search_opendir" >&6; }
20134 ac_res=$ac_cv_search_opendir
20135 if test "$ac_res" != no; then :
20136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20143 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20144 if ${ac_cv_header_stat_broken+:} false; then :
20145 $as_echo_n "(cached) " >&6
20146 else
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20149 #include <sys/types.h>
20150 #include <sys/stat.h>
20152 #if defined S_ISBLK && defined S_IFDIR
20153 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20154 #endif
20156 #if defined S_ISBLK && defined S_IFCHR
20157 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20158 #endif
20160 #if defined S_ISLNK && defined S_IFREG
20161 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20162 #endif
20164 #if defined S_ISSOCK && defined S_IFREG
20165 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20166 #endif
20168 _ACEOF
20169 if ac_fn_c_try_compile "$LINENO"; then :
20170 ac_cv_header_stat_broken=no
20171 else
20172 ac_cv_header_stat_broken=yes
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20177 $as_echo "$ac_cv_header_stat_broken" >&6; }
20178 if test $ac_cv_header_stat_broken = yes; then
20180 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20185 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20186 if ${ac_cv_header_sys_wait_h+:} false; then :
20187 $as_echo_n "(cached) " >&6
20188 else
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190 /* end confdefs.h. */
20191 #include <sys/types.h>
20192 #include <sys/wait.h>
20193 #ifndef WEXITSTATUS
20194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20195 #endif
20196 #ifndef WIFEXITED
20197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20198 #endif
20201 main ()
20203 int s;
20204 wait (&s);
20205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20207 return 0;
20209 _ACEOF
20210 if ac_fn_c_try_compile "$LINENO"; then :
20211 ac_cv_header_sys_wait_h=yes
20212 else
20213 ac_cv_header_sys_wait_h=no
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20218 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20219 if test $ac_cv_header_sys_wait_h = yes; then
20221 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20226 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20227 if ${ac_cv_header_time+:} false; then :
20228 $as_echo_n "(cached) " >&6
20229 else
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20232 #include <sys/types.h>
20233 #include <sys/time.h>
20234 #include <time.h>
20237 main ()
20239 if ((struct tm *) 0)
20240 return 0;
20242 return 0;
20244 _ACEOF
20245 if ac_fn_c_try_compile "$LINENO"; then :
20246 ac_cv_header_time=yes
20247 else
20248 ac_cv_header_time=no
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20253 $as_echo "$ac_cv_header_time" >&6; }
20254 if test $ac_cv_header_time = yes; then
20256 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20261 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20262 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20263 $as_echo_n "(cached) " >&6
20264 else
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20267 #include <sys/types.h>
20268 #include <termios.h>
20269 #ifdef TIOCGWINSZ
20271 #endif
20273 _ACEOF
20274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20275 $EGREP "yes" >/dev/null 2>&1; then :
20276 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20277 else
20278 ac_cv_sys_tiocgwinsz_in_termios_h=no
20280 rm -f conftest*
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20284 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20286 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20288 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20289 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20290 $as_echo_n "(cached) " >&6
20291 else
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20294 #include <sys/types.h>
20295 #include <sys/ioctl.h>
20296 #ifdef TIOCGWINSZ
20298 #endif
20300 _ACEOF
20301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20302 $EGREP "yes" >/dev/null 2>&1; then :
20303 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20304 else
20305 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20307 rm -f conftest*
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20311 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20313 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20315 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20321 for ac_header in unistd.h
20322 do :
20323 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20324 if test "x$ac_cv_header_unistd_h" = xyes; then :
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_UNISTD_H 1
20327 _ACEOF
20331 done
20334 for ac_header in errno.h \
20335 ctype.h \
20336 fcntl.h \
20337 signal.h \
20338 setjmp.h \
20339 memory.h \
20340 sys/ioctl.h \
20341 sys/param.h \
20342 sys/socket.h \
20343 sys/uio.h \
20344 sys/un.h \
20345 limits.h \
20346 wchar.h \
20347 sys/poll.h \
20348 stropts.h \
20349 netdb.h \
20350 syslog.h \
20351 sys/syslog.h \
20352 locale.h \
20353 langinfo.h \
20354 utime.h \
20355 sys/utime.h \
20356 pthread.h \
20357 pwd.h \
20358 assert.h
20359 do :
20360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20363 cat >>confdefs.h <<_ACEOF
20364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20365 _ACEOF
20369 done
20372 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20373 if test "x$ac_cv_header_termios_h" = xyes; then :
20375 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20377 else
20379 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20380 if test "x$ac_cv_header_termio_h" = xyes; then :
20382 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20384 else
20386 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20387 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20389 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20391 else
20393 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20410 $as_echo_n "checking return type of signal handlers... " >&6; }
20411 if ${ac_cv_type_signal+:} false; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20416 #include <sys/types.h>
20417 #include <signal.h>
20420 main ()
20422 return *(signal (0, 0)) (0) == 1;
20424 return 0;
20426 _ACEOF
20427 if ac_fn_c_try_compile "$LINENO"; then :
20428 ac_cv_type_signal=int
20429 else
20430 ac_cv_type_signal=void
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20435 $as_echo "$ac_cv_type_signal" >&6; }
20437 cat >>confdefs.h <<_ACEOF
20438 #define RETSIGTYPE $ac_cv_type_signal
20439 _ACEOF
20442 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20443 if test "x$ac_cv_type_size_t" = xyes; then :
20445 else
20447 cat >>confdefs.h <<_ACEOF
20448 #define size_t unsigned int
20449 _ACEOF
20453 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20454 if test "x$ac_cv_type_mode_t" = xyes; then :
20456 else
20458 cat >>confdefs.h <<_ACEOF
20459 #define mode_t int
20460 _ACEOF
20464 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20465 if test "x$ac_cv_type_pid_t" = xyes; then :
20467 else
20469 cat >>confdefs.h <<_ACEOF
20470 #define pid_t int
20471 _ACEOF
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20476 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20477 if ${ac_cv_type_uid_t+:} false; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h. */
20482 #include <sys/types.h>
20484 _ACEOF
20485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20486 $EGREP "uid_t" >/dev/null 2>&1; then :
20487 ac_cv_type_uid_t=yes
20488 else
20489 ac_cv_type_uid_t=no
20491 rm -f conftest*
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20495 $as_echo "$ac_cv_type_uid_t" >&6; }
20496 if test $ac_cv_type_uid_t = no; then
20498 $as_echo "#define uid_t int" >>confdefs.h
20501 $as_echo "#define gid_t int" >>confdefs.h
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20506 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20507 if ${ac_cv_struct_tm+:} false; then :
20508 $as_echo_n "(cached) " >&6
20509 else
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h. */
20512 #include <sys/types.h>
20513 #include <time.h>
20516 main ()
20518 struct tm tm;
20519 int *p = &tm.tm_sec;
20520 return !p;
20522 return 0;
20524 _ACEOF
20525 if ac_fn_c_try_compile "$LINENO"; then :
20526 ac_cv_struct_tm=time.h
20527 else
20528 ac_cv_struct_tm=sys/time.h
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20533 $as_echo "$ac_cv_struct_tm" >&6; }
20534 if test $ac_cv_struct_tm = sys/time.h; then
20536 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20541 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20542 if test "x$ac_cv_type_union_wait" = xyes; then :
20544 cat >>confdefs.h <<_ACEOF
20545 #define HAVE_UNION_WAIT 1
20546 _ACEOF
20552 for ac_header in stdint.h
20553 do :
20554 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20555 if test "x$ac_cv_header_stdint_h" = xyes; then :
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_STDINT_H 1
20558 _ACEOF
20559 uint16=uint16_t
20560 else
20562 for ac_header in inttypes.h
20563 do :
20564 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20565 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20566 cat >>confdefs.h <<_ACEOF
20567 #define HAVE_INTTYPES_H 1
20568 _ACEOF
20569 uint16=uint16_t
20570 else
20572 for ac_header in sys/types.h
20573 do :
20574 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20575 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_SYS_TYPES_H 1
20578 _ACEOF
20579 uint16=u_int16_t
20580 else
20582 # The cast to long int works around a bug in the HP C Compiler
20583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20585 # This bug is HP SR number 8606223364.
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20587 $as_echo_n "checking size of unsigned short... " >&6; }
20588 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20589 $as_echo_n "(cached) " >&6
20590 else
20591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20593 else
20594 if test "$ac_cv_type_unsigned_short" = yes; then
20595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20597 as_fn_error 77 "cannot compute sizeof (unsigned short)
20598 See \`config.log' for more details" "$LINENO" 5; }
20599 else
20600 ac_cv_sizeof_unsigned_short=0
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20606 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20610 cat >>confdefs.h <<_ACEOF
20611 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20612 _ACEOF
20615 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20616 uint16="unsigned short"
20617 else
20618 # The cast to long int works around a bug in the HP C Compiler
20619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20621 # This bug is HP SR number 8606223364.
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20623 $as_echo_n "checking size of unsigned int... " >&6; }
20624 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20625 $as_echo_n "(cached) " >&6
20626 else
20627 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20629 else
20630 if test "$ac_cv_type_unsigned_int" = yes; then
20631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20633 as_fn_error 77 "cannot compute sizeof (unsigned int)
20634 See \`config.log' for more details" "$LINENO" 5; }
20635 else
20636 ac_cv_sizeof_unsigned_int=0
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20642 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20646 cat >>confdefs.h <<_ACEOF
20647 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20648 _ACEOF
20651 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20652 uint16="unsigned int"
20653 else
20654 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20660 done
20665 done
20670 done
20673 cat >>confdefs.h <<_ACEOF
20674 #define UINT16 $uint16
20675 _ACEOF
20678 for ac_header in stdint.h
20679 do :
20680 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20681 if test "x$ac_cv_header_stdint_h" = xyes; then :
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_STDINT_H 1
20684 _ACEOF
20685 uint32=uint32_t
20686 else
20688 for ac_header in inttypes.h
20689 do :
20690 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20691 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20692 cat >>confdefs.h <<_ACEOF
20693 #define HAVE_INTTYPES_H 1
20694 _ACEOF
20695 uint32=uint32_t
20696 else
20698 for ac_header in sys/types.h
20699 do :
20700 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20701 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_SYS_TYPES_H 1
20704 _ACEOF
20705 uint32=u_int32_t
20706 else
20708 # The cast to long int works around a bug in the HP C Compiler
20709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20711 # This bug is HP SR number 8606223364.
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20713 $as_echo_n "checking size of unsigned int... " >&6; }
20714 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20719 else
20720 if test "$ac_cv_type_unsigned_int" = yes; then
20721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20723 as_fn_error 77 "cannot compute sizeof (unsigned int)
20724 See \`config.log' for more details" "$LINENO" 5; }
20725 else
20726 ac_cv_sizeof_unsigned_int=0
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20732 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20736 cat >>confdefs.h <<_ACEOF
20737 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20738 _ACEOF
20741 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20742 uint32="unsigned int"
20743 else
20744 # The cast to long int works around a bug in the HP C Compiler
20745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20747 # This bug is HP SR number 8606223364.
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20749 $as_echo_n "checking size of unsigned long... " >&6; }
20750 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20751 $as_echo_n "(cached) " >&6
20752 else
20753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20755 else
20756 if test "$ac_cv_type_unsigned_long" = yes; then
20757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20759 as_fn_error 77 "cannot compute sizeof (unsigned long)
20760 See \`config.log' for more details" "$LINENO" 5; }
20761 else
20762 ac_cv_sizeof_unsigned_long=0
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20768 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20772 cat >>confdefs.h <<_ACEOF
20773 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20774 _ACEOF
20777 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20778 uint32="unsigned long"
20779 else
20780 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20786 done
20791 done
20796 done
20799 cat >>confdefs.h <<_ACEOF
20800 #define UINT32 $uint32
20801 _ACEOF
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20805 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20806 if ${ac_cv_func_qsort_argtype+:} false; then :
20807 $as_echo_n "(cached) " >&6
20808 else
20809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810 /* end confdefs.h. */
20812 #if HAVE_STDLIB_H
20813 #include "stdlib.h"
20814 #endif
20816 extern void *base;
20817 extern sortf(const void *, const void *);
20818 int sortf(a, b)
20819 const void *a;
20820 const void *b; { return 0; }
20823 main ()
20826 qsort(base, 2, sizeof(char *), sortf);
20829 return 0;
20831 _ACEOF
20832 if ac_fn_c_try_compile "$LINENO"; then :
20833 ac_cv_func_qsort_argtype=void
20834 else
20835 ac_cv_func_qsort_argtype=char
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20841 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20843 cat >>confdefs.h <<_ACEOF
20844 #define qsort_t $ac_cv_func_qsort_argtype
20845 _ACEOF
20849 for ac_header in sys/select.h sys/socket.h
20850 do :
20851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20852 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20854 cat >>confdefs.h <<_ACEOF
20855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20856 _ACEOF
20860 done
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20863 $as_echo_n "checking types of arguments for select... " >&6; }
20864 if ${ac_cv_func_select_args+:} false; then :
20865 $as_echo_n "(cached) " >&6
20866 else
20867 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20868 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20869 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 $ac_includes_default
20873 #ifdef HAVE_SYS_SELECT_H
20874 # include <sys/select.h>
20875 #endif
20876 #ifdef HAVE_SYS_SOCKET_H
20877 # include <sys/socket.h>
20878 #endif
20881 main ()
20883 extern int select ($ac_arg1,
20884 $ac_arg234, $ac_arg234, $ac_arg234,
20885 $ac_arg5);
20887 return 0;
20889 _ACEOF
20890 if ac_fn_c_try_compile "$LINENO"; then :
20891 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 done
20895 done
20896 done
20897 # Provide a safe default value.
20898 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20902 $as_echo "$ac_cv_func_select_args" >&6; }
20903 ac_save_IFS=$IFS; IFS=','
20904 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20905 IFS=$ac_save_IFS
20906 shift
20908 cat >>confdefs.h <<_ACEOF
20909 #define SELECT_TYPE_ARG1 $1
20910 _ACEOF
20913 cat >>confdefs.h <<_ACEOF
20914 #define SELECT_TYPE_ARG234 ($2)
20915 _ACEOF
20918 cat >>confdefs.h <<_ACEOF
20919 #define SELECT_TYPE_ARG5 ($3)
20920 _ACEOF
20922 rm -f conftest*
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20926 $as_echo_n "checking for working strcoll... " >&6; }
20927 if ${ac_cv_func_strcoll_works+:} false; then :
20928 $as_echo_n "(cached) " >&6
20929 else
20930 if test "$cross_compiling" = yes; then :
20931 ac_cv_func_strcoll_works=no
20932 else
20933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20934 /* end confdefs.h. */
20935 $ac_includes_default
20937 main ()
20939 return (strcoll ("abc", "def") >= 0 ||
20940 strcoll ("ABC", "DEF") >= 0 ||
20941 strcoll ("123", "456") >= 0)
20943 return 0;
20945 _ACEOF
20946 if ac_fn_c_try_run "$LINENO"; then :
20947 ac_cv_func_strcoll_works=yes
20948 else
20949 ac_cv_func_strcoll_works=no
20951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20952 conftest.$ac_objext conftest.beam conftest.$ac_ext
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20957 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20958 if test $ac_cv_func_strcoll_works = yes; then
20960 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20966 for ac_header in vfork.h
20967 do :
20968 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20969 if test "x$ac_cv_header_vfork_h" = xyes; then :
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_VFORK_H 1
20972 _ACEOF
20976 done
20978 for ac_func in fork vfork
20979 do :
20980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20983 cat >>confdefs.h <<_ACEOF
20984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20985 _ACEOF
20988 done
20990 if test "x$ac_cv_func_fork" = xyes; then
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20992 $as_echo_n "checking for working fork... " >&6; }
20993 if ${ac_cv_func_fork_works+:} false; then :
20994 $as_echo_n "(cached) " >&6
20995 else
20996 if test "$cross_compiling" = yes; then :
20997 ac_cv_func_fork_works=cross
20998 else
20999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h. */
21001 $ac_includes_default
21003 main ()
21006 /* By Ruediger Kuhlmann. */
21007 return fork () < 0;
21010 return 0;
21012 _ACEOF
21013 if ac_fn_c_try_run "$LINENO"; then :
21014 ac_cv_func_fork_works=yes
21015 else
21016 ac_cv_func_fork_works=no
21018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019 conftest.$ac_objext conftest.beam conftest.$ac_ext
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21024 $as_echo "$ac_cv_func_fork_works" >&6; }
21026 else
21027 ac_cv_func_fork_works=$ac_cv_func_fork
21029 if test "x$ac_cv_func_fork_works" = xcross; then
21030 case $host in
21031 *-*-amigaos* | *-*-msdosdjgpp*)
21032 # Override, as these systems have only a dummy fork() stub
21033 ac_cv_func_fork_works=no
21036 ac_cv_func_fork_works=yes
21038 esac
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21040 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21042 ac_cv_func_vfork_works=$ac_cv_func_vfork
21043 if test "x$ac_cv_func_vfork" = xyes; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21045 $as_echo_n "checking for working vfork... " >&6; }
21046 if ${ac_cv_func_vfork_works+:} false; then :
21047 $as_echo_n "(cached) " >&6
21048 else
21049 if test "$cross_compiling" = yes; then :
21050 ac_cv_func_vfork_works=cross
21051 else
21052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h. */
21054 /* Thanks to Paul Eggert for this test. */
21055 $ac_includes_default
21056 #include <sys/wait.h>
21057 #ifdef HAVE_VFORK_H
21058 # include <vfork.h>
21059 #endif
21060 /* On some sparc systems, changes by the child to local and incoming
21061 argument registers are propagated back to the parent. The compiler
21062 is told about this with #include <vfork.h>, but some compilers
21063 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21064 static variable whose address is put into a register that is
21065 clobbered by the vfork. */
21066 static void
21067 #ifdef __cplusplus
21068 sparc_address_test (int arg)
21069 # else
21070 sparc_address_test (arg) int arg;
21071 #endif
21073 static pid_t child;
21074 if (!child) {
21075 child = vfork ();
21076 if (child < 0) {
21077 perror ("vfork");
21078 _exit(2);
21080 if (!child) {
21081 arg = getpid();
21082 write(-1, "", 0);
21083 _exit (arg);
21089 main ()
21091 pid_t parent = getpid ();
21092 pid_t child;
21094 sparc_address_test (0);
21096 child = vfork ();
21098 if (child == 0) {
21099 /* Here is another test for sparc vfork register problems. This
21100 test uses lots of local variables, at least as many local
21101 variables as main has allocated so far including compiler
21102 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21103 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21104 reuse the register of parent for one of the local variables,
21105 since it will think that parent can't possibly be used any more
21106 in this routine. Assigning to the local variable will thus
21107 munge parent in the parent process. */
21108 pid_t
21109 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21110 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21111 /* Convince the compiler that p..p7 are live; otherwise, it might
21112 use the same hardware register for all 8 local variables. */
21113 if (p != p1 || p != p2 || p != p3 || p != p4
21114 || p != p5 || p != p6 || p != p7)
21115 _exit(1);
21117 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21118 from child file descriptors. If the child closes a descriptor
21119 before it execs or exits, this munges the parent's descriptor
21120 as well. Test for this by closing stdout in the child. */
21121 _exit(close(fileno(stdout)) != 0);
21122 } else {
21123 int status;
21124 struct stat st;
21126 while (wait(&status) != child)
21128 return (
21129 /* Was there some problem with vforking? */
21130 child < 0
21132 /* Did the child fail? (This shouldn't happen.) */
21133 || status
21135 /* Did the vfork/compiler bug occur? */
21136 || parent != getpid()
21138 /* Did the file descriptor bug occur? */
21139 || fstat(fileno(stdout), &st) != 0
21143 _ACEOF
21144 if ac_fn_c_try_run "$LINENO"; then :
21145 ac_cv_func_vfork_works=yes
21146 else
21147 ac_cv_func_vfork_works=no
21149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21150 conftest.$ac_objext conftest.beam conftest.$ac_ext
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21155 $as_echo "$ac_cv_func_vfork_works" >&6; }
21158 if test "x$ac_cv_func_fork_works" = xcross; then
21159 ac_cv_func_vfork_works=$ac_cv_func_vfork
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21161 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21164 if test "x$ac_cv_func_vfork_works" = xyes; then
21166 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21168 else
21170 $as_echo "#define vfork fork" >>confdefs.h
21173 if test "x$ac_cv_func_fork_works" = xyes; then
21175 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21179 for ac_func in strchr \
21180 memcpy \
21181 strtol \
21182 strtoul \
21183 select \
21184 poll \
21185 qsort \
21186 getuid \
21187 getpwuid \
21188 getpwnam \
21189 gettimeofday \
21190 tmpfile \
21191 uname \
21192 rename \
21193 read \
21194 signal \
21195 setjmp \
21196 chown \
21197 wait4 \
21198 waitpid \
21199 wait \
21200 srandom \
21201 popen \
21202 pclose \
21203 fsync \
21204 truncate \
21205 listen \
21206 wcwidth \
21207 mbstowcs \
21208 wcrtomb \
21209 putenv \
21210 setenv
21211 do :
21212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21215 cat >>confdefs.h <<_ACEOF
21216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21217 _ACEOF
21220 done
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21224 $as_echo_n "checking for library containing gethostname... " >&6; }
21225 if ${ac_cv_search_gethostname+:} false; then :
21226 $as_echo_n "(cached) " >&6
21227 else
21228 ac_func_search_save_LIBS=$LIBS
21229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230 /* end confdefs.h. */
21232 /* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
21235 #ifdef __cplusplus
21236 extern "C"
21237 #endif
21238 char gethostname ();
21240 main ()
21242 return gethostname ();
21244 return 0;
21246 _ACEOF
21247 for ac_lib in '' nsl; do
21248 if test -z "$ac_lib"; then
21249 ac_res="none required"
21250 else
21251 ac_res=-l$ac_lib
21252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21254 if ac_fn_c_try_link "$LINENO"; then :
21255 ac_cv_search_gethostname=$ac_res
21257 rm -f core conftest.err conftest.$ac_objext \
21258 conftest$ac_exeext
21259 if ${ac_cv_search_gethostname+:} false; then :
21260 break
21262 done
21263 if ${ac_cv_search_gethostname+:} false; then :
21265 else
21266 ac_cv_search_gethostname=no
21268 rm conftest.$ac_ext
21269 LIBS=$ac_func_search_save_LIBS
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21272 $as_echo "$ac_cv_search_gethostname" >&6; }
21273 ac_res=$ac_cv_search_gethostname
21274 if test "$ac_res" != no; then :
21275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21281 $as_echo_n "checking for library containing socket... " >&6; }
21282 if ${ac_cv_search_socket+:} false; then :
21283 $as_echo_n "(cached) " >&6
21284 else
21285 ac_func_search_save_LIBS=$LIBS
21286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21287 /* end confdefs.h. */
21289 /* Override any GCC internal prototype to avoid an error.
21290 Use char because int might match the return type of a GCC
21291 builtin and then its argument prototype would still apply. */
21292 #ifdef __cplusplus
21293 extern "C"
21294 #endif
21295 char socket ();
21297 main ()
21299 return socket ();
21301 return 0;
21303 _ACEOF
21304 for ac_lib in '' socket; do
21305 if test -z "$ac_lib"; then
21306 ac_res="none required"
21307 else
21308 ac_res=-l$ac_lib
21309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21311 if ac_fn_c_try_link "$LINENO"; then :
21312 ac_cv_search_socket=$ac_res
21314 rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext
21316 if ${ac_cv_search_socket+:} false; then :
21317 break
21319 done
21320 if ${ac_cv_search_socket+:} false; then :
21322 else
21323 ac_cv_search_socket=no
21325 rm conftest.$ac_ext
21326 LIBS=$ac_func_search_save_LIBS
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21329 $as_echo "$ac_cv_search_socket" >&6; }
21330 ac_res=$ac_cv_search_socket
21331 if test "$ac_res" != no; then :
21332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21334 else
21336 WEB_BUILD=
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21342 $as_echo_n "checking for library containing bind... " >&6; }
21343 if ${ac_cv_search_bind+:} false; then :
21344 $as_echo_n "(cached) " >&6
21345 else
21346 ac_func_search_save_LIBS=$LIBS
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21350 /* Override any GCC internal prototype to avoid an error.
21351 Use char because int might match the return type of a GCC
21352 builtin and then its argument prototype would still apply. */
21353 #ifdef __cplusplus
21354 extern "C"
21355 #endif
21356 char bind ();
21358 main ()
21360 return bind ();
21362 return 0;
21364 _ACEOF
21365 for ac_lib in '' bind; do
21366 if test -z "$ac_lib"; then
21367 ac_res="none required"
21368 else
21369 ac_res=-l$ac_lib
21370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21372 if ac_fn_c_try_link "$LINENO"; then :
21373 ac_cv_search_bind=$ac_res
21375 rm -f core conftest.err conftest.$ac_objext \
21376 conftest$ac_exeext
21377 if ${ac_cv_search_bind+:} false; then :
21378 break
21380 done
21381 if ${ac_cv_search_bind+:} false; then :
21383 else
21384 ac_cv_search_bind=no
21386 rm conftest.$ac_ext
21387 LIBS=$ac_func_search_save_LIBS
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21390 $as_echo "$ac_cv_search_bind" >&6; }
21391 ac_res=$ac_cv_search_bind
21392 if test "$ac_res" != no; then :
21393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21395 else
21397 WEB_BUILD=
21402 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21403 do :
21404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21407 cat >>confdefs.h <<_ACEOF
21408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21409 _ACEOF
21412 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21415 else
21417 for ac_func in sigset sigrelse
21418 do :
21419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21422 cat >>confdefs.h <<_ACEOF
21423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21424 _ACEOF
21427 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21431 done
21435 done
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21439 $as_echo_n "checking for library containing syslog... " >&6; }
21440 if ${ac_cv_search_syslog+:} false; then :
21441 $as_echo_n "(cached) " >&6
21442 else
21443 ac_func_search_save_LIBS=$LIBS
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21447 /* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21450 #ifdef __cplusplus
21451 extern "C"
21452 #endif
21453 char syslog ();
21455 main ()
21457 return syslog ();
21459 return 0;
21461 _ACEOF
21462 for ac_lib in '' bsd socket inet; do
21463 if test -z "$ac_lib"; then
21464 ac_res="none required"
21465 else
21466 ac_res=-l$ac_lib
21467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21469 if ac_fn_c_try_link "$LINENO"; then :
21470 ac_cv_search_syslog=$ac_res
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext
21474 if ${ac_cv_search_syslog+:} false; then :
21475 break
21477 done
21478 if ${ac_cv_search_syslog+:} false; then :
21480 else
21481 ac_cv_search_syslog=no
21483 rm conftest.$ac_ext
21484 LIBS=$ac_func_search_save_LIBS
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21487 $as_echo "$ac_cv_search_syslog" >&6; }
21488 ac_res=$ac_cv_search_syslog
21489 if test "$ac_res" != no; then :
21490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21493 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21500 if test -n "$alpine_with_local_maildir" ; then
21501 alpine_local_maildir=$alpine_with_local_maildir
21502 elif test -d /var/spool/mail ; then
21503 alpine_local_maildir="/var/spool/mail"
21504 elif test -d /var/mail ; then
21505 alpine_local_maildir="/var/mail"
21506 else
21507 alpine_local_maildir="/usr/spool/mail"
21510 if test -n "$alpine_with_c_client_target" ; then
21511 alpine_c_client_target=$alpine_with_c_client_target
21515 cat >>confdefs.h <<_ACEOF
21516 #define SYSTYPE "$systype"
21517 _ACEOF
21520 cat >>confdefs.h <<_ACEOF
21521 #define C_FILESEP '$alpine_path_delim'
21522 _ACEOF
21525 cat >>confdefs.h <<_ACEOF
21526 #define S_FILESEP "$alpine_path_delim"
21527 _ACEOF
21530 cat >>confdefs.h <<_ACEOF
21531 #define MAILDIR "$alpine_local_maildir"
21532 _ACEOF
21535 cat >>confdefs.h <<_ACEOF
21536 #define MODE_READONLY $alpine_mode_readonly
21537 _ACEOF
21540 cat >>confdefs.h <<_ACEOF
21541 #define HTML_EXT "html"
21542 _ACEOF
21545 C_CLIENT_TARGET=$alpine_c_client_target
21547 C_CLIENT_WITH_IPV6=$c_client_ip6
21549 if test "x$alpine_SSLTYPE" = "xnone" ; then
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21551 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21552 c_client_specials="${c_client_specials}SSLTYPE=none "
21553 else
21555 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21556 certdir="$alpine_SSLCERTS"
21557 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21558 certdir="${alpine_SSLDIR}/certs"
21559 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21560 certdir="${alpine_SSLDIR}/ssl/certs"
21561 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21562 certdir="$alpine_SSLCERTS_ORIG"
21563 elif test -n "$alpine_SSLCERTS" ; then
21564 certdir="$alpine_SSLCERTS"
21565 else
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21567 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21570 if test "x$with_smime" != "xno" ; then
21571 if test -n "$certdir" ; then
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21573 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21575 $as_echo "#define SMIME /**/" >>confdefs.h
21578 cat >>confdefs.h <<_ACEOF
21579 #define SMIME_SSLCERTS "$certdir"
21580 _ACEOF
21586 SSL_CERT_LINK="no"
21587 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21588 SSL_BUNDLE_EXISTS="no"
21589 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21590 for SSL_BUNDLE in $SSL_PEM
21592 if test -f ${certdir}/${SSL_BUNDLE} ; then
21593 SSL_BUNDLE_EXISTS="yes"
21595 done
21596 else
21597 SSL_CERT_LINK="yes"
21600 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21602 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21604 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21606 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21608 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21611 if test -n "$alpine_SSLINCLUDE" ; then
21612 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21615 if test -n "$alpine_SSLLIB" ; then
21616 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21619 if test -n "$alpine_SSLDIR" ; then
21620 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21623 if test -n "$certdir" ; then
21624 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21627 if test -n "$alpine_SSLKEYS" ; then
21628 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21632 extra_auth_gss=
21633 if test "x$alpine_GSSTYPE" != "xnone" ; then
21634 extra_auth_gss=gss
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21636 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21639 extra_auth_ntlm=
21640 if test "x$alpine_NTLM" != "xnone" ; then
21641 extra_auth_ntlm=ntl
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21643 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21646 if test -n "$CPPFLAGS" ; then
21647 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21649 if test -n "$CFLAGS" ; then
21650 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21653 if test -n "$alpine_c_client_cflags" ; then
21654 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21658 if test -n "$LDFLAGS" ; then
21659 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21661 if test -n "$LIBS" ; then
21662 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21665 if test -n "$alpine_c_client_ldflags" ; then
21666 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21670 if test -n "$alpine_c_client_gccoptlevel" ; then
21671 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21675 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21676 C_CLIENT_AUTHS=$c_client_auths
21679 C_CLIENT_SPECIALS=$c_client_specials
21682 if test -z "$WEB_BUILD" ; then
21683 WEB_PUBCOOKIE_BUILD=
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21685 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21687 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21688 else
21689 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21690 if test "x$alpine_GSSTYPE" = "xnone" ; then
21691 WEB_PUBCOOKIE_BUILD=
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21693 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21695 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21696 elif test -z "$WEB_BINDIR" ; then
21697 WEB_PUBCOOKIE_BUILD=
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21699 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21700 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21701 Please re-run configure with these options:
21702 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21703 else
21705 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21707 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21708 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21724 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"
21726 cat >confcache <<\_ACEOF
21727 # This file is a shell script that caches the results of configure
21728 # tests run on this system so they can be shared between configure
21729 # scripts and configure runs, see configure's option --config-cache.
21730 # It is not useful on other systems. If it contains results you don't
21731 # want to keep, you may remove or edit it.
21733 # config.status only pays attention to the cache file if you give it
21734 # the --recheck option to rerun configure.
21736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21738 # following values.
21740 _ACEOF
21742 # The following way of writing the cache mishandles newlines in values,
21743 # but we know of no workaround that is simple, portable, and efficient.
21744 # So, we kill variables containing newlines.
21745 # Ultrix sh set writes to stderr and can't be redirected directly,
21746 # and sets the high bit in the cache file unless we assign to the vars.
21748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21749 eval ac_val=\$$ac_var
21750 case $ac_val in #(
21751 *${as_nl}*)
21752 case $ac_var in #(
21753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21755 esac
21756 case $ac_var in #(
21757 _ | IFS | as_nl) ;; #(
21758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21759 *) { eval $ac_var=; unset $ac_var;} ;;
21760 esac ;;
21761 esac
21762 done
21764 (set) 2>&1 |
21765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21766 *${as_nl}ac_space=\ *)
21767 # `set' does not quote correctly, so add quotes: double-quote
21768 # substitution turns \\\\ into \\, and sed turns \\ into \.
21769 sed -n \
21770 "s/'/'\\\\''/g;
21771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21772 ;; #(
21774 # `set' quotes correctly as required by POSIX, so do not add quotes.
21775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21777 esac |
21778 sort
21780 sed '
21781 /^ac_cv_env_/b end
21782 t clear
21783 :clear
21784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21785 t end
21786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21787 :end' >>confcache
21788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21789 if test -w "$cache_file"; then
21790 if test "x$cache_file" != "x/dev/null"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21792 $as_echo "$as_me: updating cache $cache_file" >&6;}
21793 if test ! -f "$cache_file" || test -h "$cache_file"; then
21794 cat confcache >"$cache_file"
21795 else
21796 case $cache_file in #(
21797 */* | ?:*)
21798 mv -f confcache "$cache_file"$$ &&
21799 mv -f "$cache_file"$$ "$cache_file" ;; #(
21801 mv -f confcache "$cache_file" ;;
21802 esac
21805 else
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21807 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21810 rm -f confcache
21812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21813 # Let make expand exec_prefix.
21814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21816 DEFS=-DHAVE_CONFIG_H
21818 ac_libobjs=
21819 ac_ltlibobjs=
21821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21822 # 1. Remove the extension, and $U if already installed.
21823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21824 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21826 # will be set to the directory where LIBOBJS objects are built.
21827 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21828 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21829 done
21830 LIBOBJS=$ac_libobjs
21832 LTLIBOBJS=$ac_ltlibobjs
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21836 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21837 if test -n "$am_sleep_pid"; then
21838 # Hide warnings about reused PIDs.
21839 wait $am_sleep_pid 2>/dev/null
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21842 $as_echo "done" >&6; }
21843 if test -n "$EXEEXT"; then
21844 am__EXEEXT_TRUE=
21845 am__EXEEXT_FALSE='#'
21846 else
21847 am__EXEEXT_TRUE='#'
21848 am__EXEEXT_FALSE=
21851 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21852 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21856 as_fn_error $? "conditional \"AMDEP\" was never defined.
21857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21860 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21864 : "${CONFIG_STATUS=./config.status}"
21865 ac_write_fail=0
21866 ac_clean_files_save=$ac_clean_files
21867 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21869 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21870 as_write_fail=0
21871 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21872 #! $SHELL
21873 # Generated by $as_me.
21874 # Run this file to recreate the current configuration.
21875 # Compiler output produced by configure, useful for debugging
21876 # configure, is in config.log if it exists.
21878 debug=false
21879 ac_cs_recheck=false
21880 ac_cs_silent=false
21882 SHELL=\${CONFIG_SHELL-$SHELL}
21883 export SHELL
21884 _ASEOF
21885 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21886 ## -------------------- ##
21887 ## M4sh Initialization. ##
21888 ## -------------------- ##
21890 # Be more Bourne compatible
21891 DUALCASE=1; export DUALCASE # for MKS sh
21892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21893 emulate sh
21894 NULLCMD=:
21895 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21896 # is contrary to our usage. Disable this feature.
21897 alias -g '${1+"$@"}'='"$@"'
21898 setopt NO_GLOB_SUBST
21899 else
21900 case `(set -o) 2>/dev/null` in #(
21901 *posix*) :
21902 set -o posix ;; #(
21903 *) :
21905 esac
21909 as_nl='
21911 export as_nl
21912 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21913 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21916 # Prefer a ksh shell builtin over an external printf program on Solaris,
21917 # but without wasting forks for bash or zsh.
21918 if test -z "$BASH_VERSION$ZSH_VERSION" \
21919 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21920 as_echo='print -r --'
21921 as_echo_n='print -rn --'
21922 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21923 as_echo='printf %s\n'
21924 as_echo_n='printf %s'
21925 else
21926 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21927 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21928 as_echo_n='/usr/ucb/echo -n'
21929 else
21930 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21931 as_echo_n_body='eval
21932 arg=$1;
21933 case $arg in #(
21934 *"$as_nl"*)
21935 expr "X$arg" : "X\\(.*\\)$as_nl";
21936 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21937 esac;
21938 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21940 export as_echo_n_body
21941 as_echo_n='sh -c $as_echo_n_body as_echo'
21943 export as_echo_body
21944 as_echo='sh -c $as_echo_body as_echo'
21947 # The user is always right.
21948 if test "${PATH_SEPARATOR+set}" != set; then
21949 PATH_SEPARATOR=:
21950 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21951 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21952 PATH_SEPARATOR=';'
21957 # IFS
21958 # We need space, tab and new line, in precisely that order. Quoting is
21959 # there to prevent editors from complaining about space-tab.
21960 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21961 # splitting by setting IFS to empty value.)
21962 IFS=" "" $as_nl"
21964 # Find who we are. Look in the path if we contain no directory separator.
21965 as_myself=
21966 case $0 in #((
21967 *[\\/]* ) as_myself=$0 ;;
21968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969 for as_dir in $PATH
21971 IFS=$as_save_IFS
21972 test -z "$as_dir" && as_dir=.
21973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21974 done
21975 IFS=$as_save_IFS
21978 esac
21979 # We did not find ourselves, most probably we were run as `sh COMMAND'
21980 # in which case we are not to be found in the path.
21981 if test "x$as_myself" = x; then
21982 as_myself=$0
21984 if test ! -f "$as_myself"; then
21985 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21986 exit 1
21989 # Unset variables that we do not need and which cause bugs (e.g. in
21990 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21991 # suppresses any "Segmentation fault" message there. '((' could
21992 # trigger a bug in pdksh 5.2.14.
21993 for as_var in BASH_ENV ENV MAIL MAILPATH
21994 do eval test x\${$as_var+set} = xset \
21995 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21996 done
21997 PS1='$ '
21998 PS2='> '
21999 PS4='+ '
22001 # NLS nuisances.
22002 LC_ALL=C
22003 export LC_ALL
22004 LANGUAGE=C
22005 export LANGUAGE
22007 # CDPATH.
22008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22011 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22012 # ----------------------------------------
22013 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22014 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22015 # script with STATUS, using 1 if that was 0.
22016 as_fn_error ()
22018 as_status=$1; test $as_status -eq 0 && as_status=1
22019 if test "$4"; then
22020 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22021 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22023 $as_echo "$as_me: error: $2" >&2
22024 as_fn_exit $as_status
22025 } # as_fn_error
22028 # as_fn_set_status STATUS
22029 # -----------------------
22030 # Set $? to STATUS, without forking.
22031 as_fn_set_status ()
22033 return $1
22034 } # as_fn_set_status
22036 # as_fn_exit STATUS
22037 # -----------------
22038 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22039 as_fn_exit ()
22041 set +e
22042 as_fn_set_status $1
22043 exit $1
22044 } # as_fn_exit
22046 # as_fn_unset VAR
22047 # ---------------
22048 # Portably unset VAR.
22049 as_fn_unset ()
22051 { eval $1=; unset $1;}
22053 as_unset=as_fn_unset
22054 # as_fn_append VAR VALUE
22055 # ----------------------
22056 # Append the text in VALUE to the end of the definition contained in VAR. Take
22057 # advantage of any shell optimizations that allow amortized linear growth over
22058 # repeated appends, instead of the typical quadratic growth present in naive
22059 # implementations.
22060 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22061 eval 'as_fn_append ()
22063 eval $1+=\$2
22065 else
22066 as_fn_append ()
22068 eval $1=\$$1\$2
22070 fi # as_fn_append
22072 # as_fn_arith ARG...
22073 # ------------------
22074 # Perform arithmetic evaluation on the ARGs, and store the result in the
22075 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22076 # must be portable across $(()) and expr.
22077 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22078 eval 'as_fn_arith ()
22080 as_val=$(( $* ))
22082 else
22083 as_fn_arith ()
22085 as_val=`expr "$@" || test $? -eq 1`
22087 fi # as_fn_arith
22090 if expr a : '\(a\)' >/dev/null 2>&1 &&
22091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22092 as_expr=expr
22093 else
22094 as_expr=false
22097 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22098 as_basename=basename
22099 else
22100 as_basename=false
22103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22104 as_dirname=dirname
22105 else
22106 as_dirname=false
22109 as_me=`$as_basename -- "$0" ||
22110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22111 X"$0" : 'X\(//\)$' \| \
22112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22113 $as_echo X/"$0" |
22114 sed '/^.*\/\([^/][^/]*\)\/*$/{
22115 s//\1/
22118 /^X\/\(\/\/\)$/{
22119 s//\1/
22122 /^X\/\(\/\).*/{
22123 s//\1/
22126 s/.*/./; q'`
22128 # Avoid depending upon Character Ranges.
22129 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22132 as_cr_digits='0123456789'
22133 as_cr_alnum=$as_cr_Letters$as_cr_digits
22135 ECHO_C= ECHO_N= ECHO_T=
22136 case `echo -n x` in #(((((
22137 -n*)
22138 case `echo 'xy\c'` in
22139 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22140 xy) ECHO_C='\c';;
22141 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22142 ECHO_T=' ';;
22143 esac;;
22145 ECHO_N='-n';;
22146 esac
22148 rm -f conf$$ conf$$.exe conf$$.file
22149 if test -d conf$$.dir; then
22150 rm -f conf$$.dir/conf$$.file
22151 else
22152 rm -f conf$$.dir
22153 mkdir conf$$.dir 2>/dev/null
22155 if (echo >conf$$.file) 2>/dev/null; then
22156 if ln -s conf$$.file conf$$ 2>/dev/null; then
22157 as_ln_s='ln -s'
22158 # ... but there are two gotchas:
22159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22161 # In both cases, we have to default to `cp -pR'.
22162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22163 as_ln_s='cp -pR'
22164 elif ln conf$$.file conf$$ 2>/dev/null; then
22165 as_ln_s=ln
22166 else
22167 as_ln_s='cp -pR'
22169 else
22170 as_ln_s='cp -pR'
22172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22173 rmdir conf$$.dir 2>/dev/null
22176 # as_fn_mkdir_p
22177 # -------------
22178 # Create "$as_dir" as a directory, including parents if necessary.
22179 as_fn_mkdir_p ()
22182 case $as_dir in #(
22183 -*) as_dir=./$as_dir;;
22184 esac
22185 test -d "$as_dir" || eval $as_mkdir_p || {
22186 as_dirs=
22187 while :; do
22188 case $as_dir in #(
22189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22190 *) as_qdir=$as_dir;;
22191 esac
22192 as_dirs="'$as_qdir' $as_dirs"
22193 as_dir=`$as_dirname -- "$as_dir" ||
22194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22195 X"$as_dir" : 'X\(//\)[^/]' \| \
22196 X"$as_dir" : 'X\(//\)$' \| \
22197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22198 $as_echo X"$as_dir" |
22199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22200 s//\1/
22203 /^X\(\/\/\)[^/].*/{
22204 s//\1/
22207 /^X\(\/\/\)$/{
22208 s//\1/
22211 /^X\(\/\).*/{
22212 s//\1/
22215 s/.*/./; q'`
22216 test -d "$as_dir" && break
22217 done
22218 test -z "$as_dirs" || eval "mkdir $as_dirs"
22219 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22222 } # as_fn_mkdir_p
22223 if mkdir -p . 2>/dev/null; then
22224 as_mkdir_p='mkdir -p "$as_dir"'
22225 else
22226 test -d ./-p && rmdir ./-p
22227 as_mkdir_p=false
22231 # as_fn_executable_p FILE
22232 # -----------------------
22233 # Test if FILE is an executable regular file.
22234 as_fn_executable_p ()
22236 test -f "$1" && test -x "$1"
22237 } # as_fn_executable_p
22238 as_test_x='test -x'
22239 as_executable_p=as_fn_executable_p
22241 # Sed expression to map a string onto a valid CPP name.
22242 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22244 # Sed expression to map a string onto a valid variable name.
22245 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22248 exec 6>&1
22249 ## ----------------------------------- ##
22250 ## Main body of $CONFIG_STATUS script. ##
22251 ## ----------------------------------- ##
22252 _ASEOF
22253 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22256 # Save the log message, to keep $0 and so on meaningful, and to
22257 # report actual input values of CONFIG_FILES etc. instead of their
22258 # values after options handling.
22259 ac_log="
22260 This file was extended by alpine $as_me 2.23.1, which was
22261 generated by GNU Autoconf 2.69. Invocation command line was
22263 CONFIG_FILES = $CONFIG_FILES
22264 CONFIG_HEADERS = $CONFIG_HEADERS
22265 CONFIG_LINKS = $CONFIG_LINKS
22266 CONFIG_COMMANDS = $CONFIG_COMMANDS
22267 $ $0 $@
22269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22272 _ACEOF
22274 case $ac_config_files in *"
22275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22276 esac
22278 case $ac_config_headers in *"
22279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22280 esac
22283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22284 # Files that config.status was made for.
22285 config_files="$ac_config_files"
22286 config_headers="$ac_config_headers"
22287 config_commands="$ac_config_commands"
22289 _ACEOF
22291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22292 ac_cs_usage="\
22293 \`$as_me' instantiates files and other configuration actions
22294 from templates according to the current configuration. Unless the files
22295 and actions are specified as TAGs, all are instantiated by default.
22297 Usage: $0 [OPTION]... [TAG]...
22299 -h, --help print this help, then exit
22300 -V, --version print version number and configuration settings, then exit
22301 --config print configuration, then exit
22302 -q, --quiet, --silent
22303 do not print progress messages
22304 -d, --debug don't remove temporary files
22305 --recheck update $as_me by reconfiguring in the same conditions
22306 --file=FILE[:TEMPLATE]
22307 instantiate the configuration file FILE
22308 --header=FILE[:TEMPLATE]
22309 instantiate the configuration header FILE
22311 Configuration files:
22312 $config_files
22314 Configuration headers:
22315 $config_headers
22317 Configuration commands:
22318 $config_commands
22320 Report bugs to <chappa@washington.edu>."
22322 _ACEOF
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22325 ac_cs_version="\\
22326 alpine config.status 2.23.1
22327 configured by $0, generated by GNU Autoconf 2.69,
22328 with options \\"\$ac_cs_config\\"
22330 Copyright (C) 2012 Free Software Foundation, Inc.
22331 This config.status script is free software; the Free Software Foundation
22332 gives unlimited permission to copy, distribute and modify it."
22334 ac_pwd='$ac_pwd'
22335 srcdir='$srcdir'
22336 INSTALL='$INSTALL'
22337 MKDIR_P='$MKDIR_P'
22338 AWK='$AWK'
22339 test -n "\$AWK" || AWK=awk
22340 _ACEOF
22342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22343 # The default lists apply if the user does not specify any file.
22344 ac_need_defaults=:
22345 while test $# != 0
22347 case $1 in
22348 --*=?*)
22349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22351 ac_shift=:
22353 --*=)
22354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22355 ac_optarg=
22356 ac_shift=:
22359 ac_option=$1
22360 ac_optarg=$2
22361 ac_shift=shift
22363 esac
22365 case $ac_option in
22366 # Handling of the options.
22367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22368 ac_cs_recheck=: ;;
22369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22370 $as_echo "$ac_cs_version"; exit ;;
22371 --config | --confi | --conf | --con | --co | --c )
22372 $as_echo "$ac_cs_config"; exit ;;
22373 --debug | --debu | --deb | --de | --d | -d )
22374 debug=: ;;
22375 --file | --fil | --fi | --f )
22376 $ac_shift
22377 case $ac_optarg in
22378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22379 '') as_fn_error $? "missing file argument" ;;
22380 esac
22381 as_fn_append CONFIG_FILES " '$ac_optarg'"
22382 ac_need_defaults=false;;
22383 --header | --heade | --head | --hea )
22384 $ac_shift
22385 case $ac_optarg in
22386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22387 esac
22388 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22389 ac_need_defaults=false;;
22390 --he | --h)
22391 # Conflict between --help and --header
22392 as_fn_error $? "ambiguous option: \`$1'
22393 Try \`$0 --help' for more information.";;
22394 --help | --hel | -h )
22395 $as_echo "$ac_cs_usage"; exit ;;
22396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22398 ac_cs_silent=: ;;
22400 # This is an error.
22401 -*) as_fn_error $? "unrecognized option: \`$1'
22402 Try \`$0 --help' for more information." ;;
22404 *) as_fn_append ac_config_targets " $1"
22405 ac_need_defaults=false ;;
22407 esac
22408 shift
22409 done
22411 ac_configure_extra_args=
22413 if $ac_cs_silent; then
22414 exec 6>/dev/null
22415 ac_configure_extra_args="$ac_configure_extra_args --silent"
22418 _ACEOF
22419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22420 if \$ac_cs_recheck; then
22421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22422 shift
22423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22424 CONFIG_SHELL='$SHELL'
22425 export CONFIG_SHELL
22426 exec "\$@"
22429 _ACEOF
22430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22431 exec 5>>config.log
22433 echo
22434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22435 ## Running $as_me. ##
22436 _ASBOX
22437 $as_echo "$ac_log"
22438 } >&5
22440 _ACEOF
22441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22443 # INIT-COMMANDS
22445 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22448 # The HP-UX ksh and POSIX shell print the target directory to stdout
22449 # if CDPATH is set.
22450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22452 sed_quote_subst='$sed_quote_subst'
22453 double_quote_subst='$double_quote_subst'
22454 delay_variable_subst='$delay_variable_subst'
22455 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22456 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22457 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22458 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22459 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22460 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22461 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22462 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22463 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22464 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22485 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22486 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22487 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22488 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22489 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22490 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22491 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22492 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22493 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22494 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22495 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22496 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22497 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22498 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22499 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22500 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22501 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22502 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22503 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22504 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22505 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22506 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22507 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22508 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22509 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22510 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22511 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22513 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"`'
22514 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22515 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22516 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22517 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22518 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22519 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22520 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22521 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22522 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22523 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22524 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22525 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22526 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22527 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22528 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22529 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22530 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22531 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22532 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22533 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22534 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22535 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22536 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22537 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22538 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22539 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22540 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22541 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22542 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22543 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22544 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22545 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22546 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22547 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22548 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22549 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22550 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22551 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22552 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22553 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22554 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22555 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22556 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22557 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22558 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22559 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22560 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22561 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22562 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22563 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22564 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22565 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22566 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22567 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22568 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22569 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22570 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22571 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22572 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22573 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22574 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22575 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22576 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22577 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22578 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22579 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22580 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22581 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22582 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22583 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22584 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22585 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22586 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22587 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22588 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22589 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22591 LTCC='$LTCC'
22592 LTCFLAGS='$LTCFLAGS'
22593 compiler='$compiler_DEFAULT'
22595 # A function that is used when there is no print builtin or printf.
22596 func_fallback_echo ()
22598 eval 'cat <<_LTECHO_EOF
22600 _LTECHO_EOF'
22603 # Quote evaled strings.
22604 for var in SHELL \
22605 ECHO \
22606 PATH_SEPARATOR \
22607 SED \
22608 GREP \
22609 EGREP \
22610 FGREP \
22611 LD \
22612 NM \
22613 LN_S \
22614 lt_SP2NL \
22615 lt_NL2SP \
22616 reload_flag \
22617 OBJDUMP \
22618 deplibs_check_method \
22619 file_magic_cmd \
22620 file_magic_glob \
22621 want_nocaseglob \
22622 DLLTOOL \
22623 sharedlib_from_linklib_cmd \
22624 AR \
22625 AR_FLAGS \
22626 archiver_list_spec \
22627 STRIP \
22628 RANLIB \
22629 CC \
22630 CFLAGS \
22631 compiler \
22632 lt_cv_sys_global_symbol_pipe \
22633 lt_cv_sys_global_symbol_to_cdecl \
22634 lt_cv_sys_global_symbol_to_import \
22635 lt_cv_sys_global_symbol_to_c_name_address \
22636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22637 lt_cv_nm_interface \
22638 nm_file_list_spec \
22639 lt_cv_truncate_bin \
22640 lt_prog_compiler_no_builtin_flag \
22641 lt_prog_compiler_pic \
22642 lt_prog_compiler_wl \
22643 lt_prog_compiler_static \
22644 lt_cv_prog_compiler_c_o \
22645 need_locks \
22646 MANIFEST_TOOL \
22647 DSYMUTIL \
22648 NMEDIT \
22649 LIPO \
22650 OTOOL \
22651 OTOOL64 \
22652 shrext_cmds \
22653 export_dynamic_flag_spec \
22654 whole_archive_flag_spec \
22655 compiler_needs_object \
22656 with_gnu_ld \
22657 allow_undefined_flag \
22658 no_undefined_flag \
22659 hardcode_libdir_flag_spec \
22660 hardcode_libdir_separator \
22661 exclude_expsyms \
22662 include_expsyms \
22663 file_list_spec \
22664 variables_saved_for_relink \
22665 libname_spec \
22666 library_names_spec \
22667 soname_spec \
22668 install_override_mode \
22669 finish_eval \
22670 old_striplib \
22671 striplib; do
22672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22673 *[\\\\\\\`\\"\\\$]*)
22674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22679 esac
22680 done
22682 # Double-quote double-evaled strings.
22683 for var in reload_cmds \
22684 old_postinstall_cmds \
22685 old_postuninstall_cmds \
22686 old_archive_cmds \
22687 extract_expsyms_cmds \
22688 old_archive_from_new_cmds \
22689 old_archive_from_expsyms_cmds \
22690 archive_cmds \
22691 archive_expsym_cmds \
22692 module_cmds \
22693 module_expsym_cmds \
22694 export_symbols_cmds \
22695 prelink_cmds \
22696 postlink_cmds \
22697 postinstall_cmds \
22698 postuninstall_cmds \
22699 finish_cmds \
22700 sys_lib_search_path_spec \
22701 configure_time_dlsearch_path \
22702 configure_time_lt_sys_library_path; do
22703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22704 *[\\\\\\\`\\"\\\$]*)
22705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22710 esac
22711 done
22713 ac_aux_dir='$ac_aux_dir'
22715 # See if we are running on zsh, and set the options that allow our
22716 # commands through without removal of \ escapes INIT.
22717 if test -n "\${ZSH_VERSION+set}"; then
22718 setopt NO_GLOB_SUBST
22722 PACKAGE='$PACKAGE'
22723 VERSION='$VERSION'
22724 RM='$RM'
22725 ofile='$ofile'
22729 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22730 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22731 # from automake < 1.5.
22732 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22733 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22734 LINGUAS="${LINGUAS-%UNSET%}"
22737 _ACEOF
22739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22741 # Handling of arguments.
22742 for ac_config_target in $ac_config_targets
22744 case $ac_config_target in
22745 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22747 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22748 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22749 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22750 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22751 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22752 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22753 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22754 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22755 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22756 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22757 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22758 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22759 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22760 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22761 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22764 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22765 esac
22766 done
22769 # If the user did not use the arguments to specify the items to instantiate,
22770 # then the envvar interface is used. Set only those that are not.
22771 # We use the long form for the default assignment because of an extremely
22772 # bizarre bug on SunOS 4.1.3.
22773 if $ac_need_defaults; then
22774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22779 # Have a temporary directory for convenience. Make it in the build tree
22780 # simply because there is no reason against having it here, and in addition,
22781 # creating and moving files from /tmp can sometimes cause problems.
22782 # Hook for its removal unless debugging.
22783 # Note that there is a small window in which the directory will not be cleaned:
22784 # after its creation but before its name has been assigned to `$tmp'.
22785 $debug ||
22787 tmp= ac_tmp=
22788 trap 'exit_status=$?
22789 : "${ac_tmp:=$tmp}"
22790 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22792 trap 'as_fn_exit 1' 1 2 13 15
22794 # Create a (secure) tmp directory for tmp files.
22797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22798 test -d "$tmp"
22799 } ||
22801 tmp=./conf$$-$RANDOM
22802 (umask 077 && mkdir "$tmp")
22803 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22804 ac_tmp=$tmp
22806 # Set up the scripts for CONFIG_FILES section.
22807 # No need to generate them if there are no CONFIG_FILES.
22808 # This happens for instance with `./config.status config.h'.
22809 if test -n "$CONFIG_FILES"; then
22812 ac_cr=`echo X | tr X '\015'`
22813 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22814 # But we know of no other shell where ac_cr would be empty at this
22815 # point, so we can use a bashism as a fallback.
22816 if test "x$ac_cr" = x; then
22817 eval ac_cr=\$\'\\r\'
22819 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22820 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22821 ac_cs_awk_cr='\\r'
22822 else
22823 ac_cs_awk_cr=$ac_cr
22826 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22827 _ACEOF
22831 echo "cat >conf$$subs.awk <<_ACEOF" &&
22832 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22833 echo "_ACEOF"
22834 } >conf$$subs.sh ||
22835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22837 ac_delim='%!_!# '
22838 for ac_last_try in false false false false false :; do
22839 . ./conf$$subs.sh ||
22840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22842 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22843 if test $ac_delim_n = $ac_delim_num; then
22844 break
22845 elif $ac_last_try; then
22846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22847 else
22848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22850 done
22851 rm -f conf$$subs.sh
22853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22854 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22855 _ACEOF
22856 sed -n '
22858 s/^/S["/; s/!.*/"]=/
22861 s/^[^!]*!//
22862 :repl
22863 t repl
22864 s/'"$ac_delim"'$//
22865 t delim
22868 s/\(.\{148\}\)..*/\1/
22869 t more1
22870 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22873 b repl
22874 :more1
22875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22878 s/.\{148\}//
22879 t nl
22880 :delim
22882 s/\(.\{148\}\)..*/\1/
22883 t more2
22884 s/["\\]/\\&/g; s/^/"/; s/$/"/
22887 :more2
22888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22891 s/.\{148\}//
22892 t delim
22893 ' <conf$$subs.awk | sed '
22894 /^[^""]/{
22896 s/\n//
22898 ' >>$CONFIG_STATUS || ac_write_fail=1
22899 rm -f conf$$subs.awk
22900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22901 _ACAWK
22902 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22903 for (key in S) S_is_set[key] = 1
22904 FS = "\a"
22908 line = $ 0
22909 nfields = split(line, field, "@")
22910 substed = 0
22911 len = length(field[1])
22912 for (i = 2; i < nfields; i++) {
22913 key = field[i]
22914 keylen = length(key)
22915 if (S_is_set[key]) {
22916 value = S[key]
22917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22918 len += length(value) + length(field[++i])
22919 substed = 1
22920 } else
22921 len += 1 + keylen
22924 print line
22927 _ACAWK
22928 _ACEOF
22929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22930 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22931 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22932 else
22934 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22935 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22936 _ACEOF
22938 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22939 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22940 # trailing colons and then remove the whole line if VPATH becomes empty
22941 # (actually we leave an empty line to preserve line numbers).
22942 if test "x$srcdir" = x.; then
22943 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22945 s///
22946 s/^/:/
22947 s/[ ]*$/:/
22948 s/:\$(srcdir):/:/g
22949 s/:\${srcdir}:/:/g
22950 s/:@srcdir@:/:/g
22951 s/^:*//
22952 s/:*$//
22954 s/\(=[ ]*\).*/\1/
22956 s/\n//
22957 s/^[^=]*=[ ]*$//
22961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22962 fi # test -n "$CONFIG_FILES"
22964 # Set up the scripts for CONFIG_HEADERS section.
22965 # No need to generate them if there are no CONFIG_HEADERS.
22966 # This happens for instance with `./config.status Makefile'.
22967 if test -n "$CONFIG_HEADERS"; then
22968 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22969 BEGIN {
22970 _ACEOF
22972 # Transform confdefs.h into an awk script `defines.awk', embedded as
22973 # here-document in config.status, that substitutes the proper values into
22974 # config.h.in to produce config.h.
22976 # Create a delimiter string that does not exist in confdefs.h, to ease
22977 # handling of long lines.
22978 ac_delim='%!_!# '
22979 for ac_last_try in false false :; do
22980 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22981 if test -z "$ac_tt"; then
22982 break
22983 elif $ac_last_try; then
22984 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22985 else
22986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22988 done
22990 # For the awk script, D is an array of macro values keyed by name,
22991 # likewise P contains macro parameters if any. Preserve backslash
22992 # newline sequences.
22994 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22995 sed -n '
22996 s/.\{148\}/&'"$ac_delim"'/g
22997 t rset
22998 :rset
22999 s/^[ ]*#[ ]*define[ ][ ]*/ /
23000 t def
23002 :def
23003 s/\\$//
23004 t bsnl
23005 s/["\\]/\\&/g
23006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23007 D["\1"]=" \3"/p
23008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23010 :bsnl
23011 s/["\\]/\\&/g
23012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23013 D["\1"]=" \3\\\\\\n"\\/p
23014 t cont
23015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23016 t cont
23018 :cont
23020 s/.\{148\}/&'"$ac_delim"'/g
23021 t clear
23022 :clear
23023 s/\\$//
23024 t bsnlc
23025 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23027 :bsnlc
23028 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23029 b cont
23030 ' <confdefs.h | sed '
23031 s/'"$ac_delim"'/"\\\
23032 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23035 for (key in D) D_is_set[key] = 1
23036 FS = "\a"
23038 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23039 line = \$ 0
23040 split(line, arg, " ")
23041 if (arg[1] == "#") {
23042 defundef = arg[2]
23043 mac1 = arg[3]
23044 } else {
23045 defundef = substr(arg[1], 2)
23046 mac1 = arg[2]
23048 split(mac1, mac2, "(") #)
23049 macro = mac2[1]
23050 prefix = substr(line, 1, index(line, defundef) - 1)
23051 if (D_is_set[macro]) {
23052 # Preserve the white space surrounding the "#".
23053 print prefix "define", macro P[macro] D[macro]
23054 next
23055 } else {
23056 # Replace #undef with comments. This is necessary, for example,
23057 # in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 if (defundef == "undef") {
23060 print "/*", prefix defundef, macro, "*/"
23061 next
23065 { print }
23066 _ACAWK
23067 _ACEOF
23068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23069 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23070 fi # test -n "$CONFIG_HEADERS"
23073 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23074 shift
23075 for ac_tag
23077 case $ac_tag in
23078 :[FHLC]) ac_mode=$ac_tag; continue;;
23079 esac
23080 case $ac_mode$ac_tag in
23081 :[FHL]*:*);;
23082 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23083 :[FH]-) ac_tag=-:-;;
23084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23085 esac
23086 ac_save_IFS=$IFS
23087 IFS=:
23088 set x $ac_tag
23089 IFS=$ac_save_IFS
23090 shift
23091 ac_file=$1
23092 shift
23094 case $ac_mode in
23095 :L) ac_source=$1;;
23096 :[FH])
23097 ac_file_inputs=
23098 for ac_f
23100 case $ac_f in
23101 -) ac_f="$ac_tmp/stdin";;
23102 *) # Look for the file first in the build tree, then in the source tree
23103 # (if the path is not absolute). The absolute path cannot be DOS-style,
23104 # because $ac_f cannot contain `:'.
23105 test -f "$ac_f" ||
23106 case $ac_f in
23107 [\\/$]*) false;;
23108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23109 esac ||
23110 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23111 esac
23112 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23113 as_fn_append ac_file_inputs " '$ac_f'"
23114 done
23116 # Let's still pretend it is `configure' which instantiates (i.e., don't
23117 # use $as_me), people would be surprised to read:
23118 # /* config.h. Generated by config.status. */
23119 configure_input='Generated from '`
23120 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23121 `' by configure.'
23122 if test x"$ac_file" != x-; then
23123 configure_input="$ac_file. $configure_input"
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23125 $as_echo "$as_me: creating $ac_file" >&6;}
23127 # Neutralize special characters interpreted by sed in replacement strings.
23128 case $configure_input in #(
23129 *\&* | *\|* | *\\* )
23130 ac_sed_conf_input=`$as_echo "$configure_input" |
23131 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23132 *) ac_sed_conf_input=$configure_input;;
23133 esac
23135 case $ac_tag in
23136 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23138 esac
23140 esac
23142 ac_dir=`$as_dirname -- "$ac_file" ||
23143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23144 X"$ac_file" : 'X\(//\)[^/]' \| \
23145 X"$ac_file" : 'X\(//\)$' \| \
23146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23147 $as_echo X"$ac_file" |
23148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23149 s//\1/
23152 /^X\(\/\/\)[^/].*/{
23153 s//\1/
23156 /^X\(\/\/\)$/{
23157 s//\1/
23160 /^X\(\/\).*/{
23161 s//\1/
23164 s/.*/./; q'`
23165 as_dir="$ac_dir"; as_fn_mkdir_p
23166 ac_builddir=.
23168 case "$ac_dir" in
23169 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23171 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23172 # A ".." for each directory in $ac_dir_suffix.
23173 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23174 case $ac_top_builddir_sub in
23175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23177 esac ;;
23178 esac
23179 ac_abs_top_builddir=$ac_pwd
23180 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23181 # for backward compatibility:
23182 ac_top_builddir=$ac_top_build_prefix
23184 case $srcdir in
23185 .) # We are building in place.
23186 ac_srcdir=.
23187 ac_top_srcdir=$ac_top_builddir_sub
23188 ac_abs_top_srcdir=$ac_pwd ;;
23189 [\\/]* | ?:[\\/]* ) # Absolute name.
23190 ac_srcdir=$srcdir$ac_dir_suffix;
23191 ac_top_srcdir=$srcdir
23192 ac_abs_top_srcdir=$srcdir ;;
23193 *) # Relative name.
23194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23195 ac_top_srcdir=$ac_top_build_prefix$srcdir
23196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23197 esac
23198 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23201 case $ac_mode in
23204 # CONFIG_FILE
23207 case $INSTALL in
23208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23210 esac
23211 ac_MKDIR_P=$MKDIR_P
23212 case $MKDIR_P in
23213 [\\/$]* | ?:[\\/]* ) ;;
23214 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23215 esac
23216 _ACEOF
23218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23219 # If the template does not know about datarootdir, expand it.
23220 # FIXME: This hack should be removed a few years after 2.60.
23221 ac_datarootdir_hack=; ac_datarootdir_seen=
23222 ac_sed_dataroot='
23223 /datarootdir/ {
23227 /@datadir@/p
23228 /@docdir@/p
23229 /@infodir@/p
23230 /@localedir@/p
23231 /@mandir@/p'
23232 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23233 *datarootdir*) ac_datarootdir_seen=yes;;
23234 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23236 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23237 _ACEOF
23238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23239 ac_datarootdir_hack='
23240 s&@datadir@&$datadir&g
23241 s&@docdir@&$docdir&g
23242 s&@infodir@&$infodir&g
23243 s&@localedir@&$localedir&g
23244 s&@mandir@&$mandir&g
23245 s&\\\${datarootdir}&$datarootdir&g' ;;
23246 esac
23247 _ACEOF
23249 # Neutralize VPATH when `$srcdir' = `.'.
23250 # Shell code in configure.ac might set extrasub.
23251 # FIXME: do we really want to maintain this feature?
23252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23253 ac_sed_extra="$ac_vpsub
23254 $extrasub
23255 _ACEOF
23256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23259 s|@configure_input@|$ac_sed_conf_input|;t t
23260 s&@top_builddir@&$ac_top_builddir_sub&;t t
23261 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23262 s&@srcdir@&$ac_srcdir&;t t
23263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23264 s&@top_srcdir@&$ac_top_srcdir&;t t
23265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23266 s&@builddir@&$ac_builddir&;t t
23267 s&@abs_builddir@&$ac_abs_builddir&;t t
23268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23269 s&@INSTALL@&$ac_INSTALL&;t t
23270 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23271 $ac_datarootdir_hack
23273 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23274 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23276 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23277 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23278 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23279 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23281 which seems to be undefined. Please make sure it is defined" >&5
23282 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23283 which seems to be undefined. Please make sure it is defined" >&2;}
23285 rm -f "$ac_tmp/stdin"
23286 case $ac_file in
23287 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23288 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23289 esac \
23290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23294 # CONFIG_HEADER
23296 if test x"$ac_file" != x-; then
23298 $as_echo "/* $configure_input */" \
23299 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23300 } >"$ac_tmp/config.h" \
23301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23302 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23304 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23305 else
23306 rm -f "$ac_file"
23307 mv "$ac_tmp/config.h" "$ac_file" \
23308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23310 else
23311 $as_echo "/* $configure_input */" \
23312 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23313 || as_fn_error $? "could not create -" "$LINENO" 5
23315 # Compute "$ac_file"'s index in $config_headers.
23316 _am_arg="$ac_file"
23317 _am_stamp_count=1
23318 for _am_header in $config_headers :; do
23319 case $_am_header in
23320 $_am_arg | $_am_arg:* )
23321 break ;;
23323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23324 esac
23325 done
23326 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23327 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23328 X"$_am_arg" : 'X\(//\)[^/]' \| \
23329 X"$_am_arg" : 'X\(//\)$' \| \
23330 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23331 $as_echo X"$_am_arg" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23333 s//\1/
23336 /^X\(\/\/\)[^/].*/{
23337 s//\1/
23340 /^X\(\/\/\)$/{
23341 s//\1/
23344 /^X\(\/\).*/{
23345 s//\1/
23348 s/.*/./; q'`/stamp-h$_am_stamp_count
23351 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23352 $as_echo "$as_me: executing $ac_file commands" >&6;}
23354 esac
23357 case $ac_file$ac_mode in
23358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23359 # Older Autoconf quotes --file arguments for eval, but not when files
23360 # are listed without --file. Let's play safe and only enable the eval
23361 # if we detect the quoting.
23362 case $CONFIG_FILES in
23363 *\'*) eval set x "$CONFIG_FILES" ;;
23364 *) set x $CONFIG_FILES ;;
23365 esac
23366 shift
23367 for mf
23369 # Strip MF so we end up with the name of the file.
23370 mf=`echo "$mf" | sed -e 's/:.*$//'`
23371 # Check whether this is an Automake generated Makefile or not.
23372 # We used to match only the files named 'Makefile.in', but
23373 # some people rename them; so instead we look at the file content.
23374 # Grep'ing the first line is not enough: some people post-process
23375 # each Makefile.in and add a new line on top of each file to say so.
23376 # Grep'ing the whole file is not good either: AIX grep has a line
23377 # limit of 2048, but all sed's we know have understand at least 4000.
23378 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23379 dirpart=`$as_dirname -- "$mf" ||
23380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$mf" : 'X\(//\)[^/]' \| \
23382 X"$mf" : 'X\(//\)$' \| \
23383 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23384 $as_echo X"$mf" |
23385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23386 s//\1/
23389 /^X\(\/\/\)[^/].*/{
23390 s//\1/
23393 /^X\(\/\/\)$/{
23394 s//\1/
23397 /^X\(\/\).*/{
23398 s//\1/
23401 s/.*/./; q'`
23402 else
23403 continue
23405 # Extract the definition of DEPDIR, am__include, and am__quote
23406 # from the Makefile without running 'make'.
23407 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23408 test -z "$DEPDIR" && continue
23409 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23410 test -z "$am__include" && continue
23411 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23412 # Find all dependency output files, they are included files with
23413 # $(DEPDIR) in their names. We invoke sed twice because it is the
23414 # simplest approach to changing $(DEPDIR) to its actual value in the
23415 # expansion.
23416 for file in `sed -n "
23417 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23418 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23419 # Make sure the directory exists.
23420 test -f "$dirpart/$file" && continue
23421 fdir=`$as_dirname -- "$file" ||
23422 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423 X"$file" : 'X\(//\)[^/]' \| \
23424 X"$file" : 'X\(//\)$' \| \
23425 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23426 $as_echo X"$file" |
23427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23428 s//\1/
23431 /^X\(\/\/\)[^/].*/{
23432 s//\1/
23435 /^X\(\/\/\)$/{
23436 s//\1/
23439 /^X\(\/\).*/{
23440 s//\1/
23443 s/.*/./; q'`
23444 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23445 # echo "creating $dirpart/$file"
23446 echo '# dummy' > "$dirpart/$file"
23447 done
23448 done
23451 "libtool":C)
23453 # See if we are running on zsh, and set the options that allow our
23454 # commands through without removal of \ escapes.
23455 if test -n "${ZSH_VERSION+set}"; then
23456 setopt NO_GLOB_SUBST
23459 cfgfile=${ofile}T
23460 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23461 $RM "$cfgfile"
23463 cat <<_LT_EOF >> "$cfgfile"
23464 #! $SHELL
23465 # Generated automatically by $as_me ($PACKAGE) $VERSION
23466 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23468 # Provide generalized library-building support services.
23469 # Written by Gordon Matzigkeit, 1996
23471 # Copyright (C) 2014 Free Software Foundation, Inc.
23472 # This is free software; see the source for copying conditions. There is NO
23473 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23475 # GNU Libtool is free software; you can redistribute it and/or modify
23476 # it under the terms of the GNU General Public License as published by
23477 # the Free Software Foundation; either version 2 of of the License, or
23478 # (at your option) any later version.
23480 # As a special exception to the GNU General Public License, if you
23481 # distribute this file as part of a program or library that is built
23482 # using GNU Libtool, you may include this file under the same
23483 # distribution terms that you use for the rest of that program.
23485 # GNU Libtool is distributed in the hope that it will be useful, but
23486 # WITHOUT ANY WARRANTY; without even the implied warranty of
23487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23488 # GNU General Public License for more details.
23490 # You should have received a copy of the GNU General Public License
23491 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23494 # The names of the tagged configurations supported by this script.
23495 available_tags=''
23497 # Configured defaults for sys_lib_dlsearch_path munging.
23498 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23500 # ### BEGIN LIBTOOL CONFIG
23502 # Which release of libtool.m4 was used?
23503 macro_version=$macro_version
23504 macro_revision=$macro_revision
23506 # Whether or not to build shared libraries.
23507 build_libtool_libs=$enable_shared
23509 # Whether or not to build static libraries.
23510 build_old_libs=$enable_static
23512 # What type of objects to build.
23513 pic_mode=$pic_mode
23515 # Whether or not to optimize for fast installation.
23516 fast_install=$enable_fast_install
23518 # Shared archive member basename,for filename based shared library versioning on AIX.
23519 shared_archive_member_spec=$shared_archive_member_spec
23521 # Shell to use when invoking shell scripts.
23522 SHELL=$lt_SHELL
23524 # An echo program that protects backslashes.
23525 ECHO=$lt_ECHO
23527 # The PATH separator for the build system.
23528 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23530 # The host system.
23531 host_alias=$host_alias
23532 host=$host
23533 host_os=$host_os
23535 # The build system.
23536 build_alias=$build_alias
23537 build=$build
23538 build_os=$build_os
23540 # A sed program that does not truncate output.
23541 SED=$lt_SED
23543 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23544 Xsed="\$SED -e 1s/^X//"
23546 # A grep program that handles long lines.
23547 GREP=$lt_GREP
23549 # An ERE matcher.
23550 EGREP=$lt_EGREP
23552 # A literal string matcher.
23553 FGREP=$lt_FGREP
23555 # A BSD- or MS-compatible name lister.
23556 NM=$lt_NM
23558 # Whether we need soft or hard links.
23559 LN_S=$lt_LN_S
23561 # What is the maximum length of a command?
23562 max_cmd_len=$max_cmd_len
23564 # Object file suffix (normally "o").
23565 objext=$ac_objext
23567 # Executable file suffix (normally "").
23568 exeext=$exeext
23570 # whether the shell understands "unset".
23571 lt_unset=$lt_unset
23573 # turn spaces into newlines.
23574 SP2NL=$lt_lt_SP2NL
23576 # turn newlines into spaces.
23577 NL2SP=$lt_lt_NL2SP
23579 # convert \$build file names to \$host format.
23580 to_host_file_cmd=$lt_cv_to_host_file_cmd
23582 # convert \$build files to toolchain format.
23583 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23585 # An object symbol dumper.
23586 OBJDUMP=$lt_OBJDUMP
23588 # Method to check whether dependent libraries are shared objects.
23589 deplibs_check_method=$lt_deplibs_check_method
23591 # Command to use when deplibs_check_method = "file_magic".
23592 file_magic_cmd=$lt_file_magic_cmd
23594 # How to find potential files when deplibs_check_method = "file_magic".
23595 file_magic_glob=$lt_file_magic_glob
23597 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23598 want_nocaseglob=$lt_want_nocaseglob
23600 # DLL creation program.
23601 DLLTOOL=$lt_DLLTOOL
23603 # Command to associate shared and link libraries.
23604 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23606 # The archiver.
23607 AR=$lt_AR
23609 # Flags to create an archive.
23610 AR_FLAGS=$lt_AR_FLAGS
23612 # How to feed a file listing to the archiver.
23613 archiver_list_spec=$lt_archiver_list_spec
23615 # A symbol stripping program.
23616 STRIP=$lt_STRIP
23618 # Commands used to install an old-style archive.
23619 RANLIB=$lt_RANLIB
23620 old_postinstall_cmds=$lt_old_postinstall_cmds
23621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23623 # Whether to use a lock for old archive extraction.
23624 lock_old_archive_extraction=$lock_old_archive_extraction
23626 # A C compiler.
23627 LTCC=$lt_CC
23629 # LTCC compiler flags.
23630 LTCFLAGS=$lt_CFLAGS
23632 # Take the output of nm and produce a listing of raw symbols and C names.
23633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23635 # Transform the output of nm in a proper C declaration.
23636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23638 # Transform the output of nm into a list of symbols to manually relocate.
23639 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23641 # Transform the output of nm in a C name address pair.
23642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23644 # Transform the output of nm in a C name address pair when lib prefix is needed.
23645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23647 # The name lister interface.
23648 nm_interface=$lt_lt_cv_nm_interface
23650 # Specify filename containing input files for \$NM.
23651 nm_file_list_spec=$lt_nm_file_list_spec
23653 # The root where to search for dependent libraries,and where our libraries should be installed.
23654 lt_sysroot=$lt_sysroot
23656 # Command to truncate a binary pipe.
23657 lt_truncate_bin=$lt_lt_cv_truncate_bin
23659 # The name of the directory that contains temporary libtool files.
23660 objdir=$objdir
23662 # Used to examine libraries when file_magic_cmd begins with "file".
23663 MAGIC_CMD=$MAGIC_CMD
23665 # Must we lock files when doing compilation?
23666 need_locks=$lt_need_locks
23668 # Manifest tool.
23669 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23671 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23672 DSYMUTIL=$lt_DSYMUTIL
23674 # Tool to change global to local symbols on Mac OS X.
23675 NMEDIT=$lt_NMEDIT
23677 # Tool to manipulate fat objects and archives on Mac OS X.
23678 LIPO=$lt_LIPO
23680 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23681 OTOOL=$lt_OTOOL
23683 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23684 OTOOL64=$lt_OTOOL64
23686 # Old archive suffix (normally "a").
23687 libext=$libext
23689 # Shared library suffix (normally ".so").
23690 shrext_cmds=$lt_shrext_cmds
23692 # The commands to extract the exported symbol list from a shared archive.
23693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23695 # Variables whose values should be saved in libtool wrapper scripts and
23696 # restored at link time.
23697 variables_saved_for_relink=$lt_variables_saved_for_relink
23699 # Do we need the "lib" prefix for modules?
23700 need_lib_prefix=$need_lib_prefix
23702 # Do we need a version for libraries?
23703 need_version=$need_version
23705 # Library versioning type.
23706 version_type=$version_type
23708 # Shared library runtime path variable.
23709 runpath_var=$runpath_var
23711 # Shared library path variable.
23712 shlibpath_var=$shlibpath_var
23714 # Is shlibpath searched before the hard-coded library search path?
23715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23717 # Format of library name prefix.
23718 libname_spec=$lt_libname_spec
23720 # List of archive names. First name is the real one, the rest are links.
23721 # The last name is the one that the linker finds with -lNAME
23722 library_names_spec=$lt_library_names_spec
23724 # The coded name of the library, if different from the real name.
23725 soname_spec=$lt_soname_spec
23727 # Permission mode override for installation of shared libraries.
23728 install_override_mode=$lt_install_override_mode
23730 # Command to use after installation of a shared archive.
23731 postinstall_cmds=$lt_postinstall_cmds
23733 # Command to use after uninstallation of a shared archive.
23734 postuninstall_cmds=$lt_postuninstall_cmds
23736 # Commands used to finish a libtool library installation in a directory.
23737 finish_cmds=$lt_finish_cmds
23739 # As "finish_cmds", except a single script fragment to be evaled but
23740 # not shown.
23741 finish_eval=$lt_finish_eval
23743 # Whether we should hardcode library paths into libraries.
23744 hardcode_into_libs=$hardcode_into_libs
23746 # Compile-time system search path for libraries.
23747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23749 # Detected run-time system search path for libraries.
23750 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23752 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23753 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23755 # Whether dlopen is supported.
23756 dlopen_support=$enable_dlopen
23758 # Whether dlopen of programs is supported.
23759 dlopen_self=$enable_dlopen_self
23761 # Whether dlopen of statically linked programs is supported.
23762 dlopen_self_static=$enable_dlopen_self_static
23764 # Commands to strip libraries.
23765 old_striplib=$lt_old_striplib
23766 striplib=$lt_striplib
23769 # The linker used to build libraries.
23770 LD=$lt_LD
23772 # How to create reloadable object files.
23773 reload_flag=$lt_reload_flag
23774 reload_cmds=$lt_reload_cmds
23776 # Commands used to build an old-style archive.
23777 old_archive_cmds=$lt_old_archive_cmds
23779 # A language specific compiler.
23780 CC=$lt_compiler
23782 # Is the compiler the GNU compiler?
23783 with_gcc=$GCC
23785 # Compiler flag to turn off builtin functions.
23786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23788 # Additional compiler flags for building library objects.
23789 pic_flag=$lt_lt_prog_compiler_pic
23791 # How to pass a linker flag through the compiler.
23792 wl=$lt_lt_prog_compiler_wl
23794 # Compiler flag to prevent dynamic linking.
23795 link_static_flag=$lt_lt_prog_compiler_static
23797 # Does compiler simultaneously support -c and -o options?
23798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23800 # Whether or not to add -lc for building shared libraries.
23801 build_libtool_need_lc=$archive_cmds_need_lc
23803 # Whether or not to disallow shared libs when runtime libs are static.
23804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23806 # Compiler flag to allow reflexive dlopens.
23807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23809 # Compiler flag to generate shared objects directly from archives.
23810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23812 # Whether the compiler copes with passing no objects directly.
23813 compiler_needs_object=$lt_compiler_needs_object
23815 # Create an old-style archive from a shared archive.
23816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23818 # Create a temporary old-style archive to link instead of a shared archive.
23819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23821 # Commands used to build a shared archive.
23822 archive_cmds=$lt_archive_cmds
23823 archive_expsym_cmds=$lt_archive_expsym_cmds
23825 # Commands used to build a loadable module if different from building
23826 # a shared archive.
23827 module_cmds=$lt_module_cmds
23828 module_expsym_cmds=$lt_module_expsym_cmds
23830 # Whether we are building with GNU ld or not.
23831 with_gnu_ld=$lt_with_gnu_ld
23833 # Flag that allows shared libraries with undefined symbols to be built.
23834 allow_undefined_flag=$lt_allow_undefined_flag
23836 # Flag that enforces no undefined symbols.
23837 no_undefined_flag=$lt_no_undefined_flag
23839 # Flag to hardcode \$libdir into a binary during linking.
23840 # This must work even if \$libdir does not exist
23841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23843 # Whether we need a single "-rpath" flag with a separated argument.
23844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23847 # DIR into the resulting binary.
23848 hardcode_direct=$hardcode_direct
23850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23851 # DIR into the resulting binary and the resulting library dependency is
23852 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23853 # library is relocated.
23854 hardcode_direct_absolute=$hardcode_direct_absolute
23856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23857 # into the resulting binary.
23858 hardcode_minus_L=$hardcode_minus_L
23860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23861 # into the resulting binary.
23862 hardcode_shlibpath_var=$hardcode_shlibpath_var
23864 # Set to "yes" if building a shared library automatically hardcodes DIR
23865 # into the library and all subsequent libraries and executables linked
23866 # against it.
23867 hardcode_automatic=$hardcode_automatic
23869 # Set to yes if linker adds runtime paths of dependent libraries
23870 # to runtime path list.
23871 inherit_rpath=$inherit_rpath
23873 # Whether libtool must link a program against all its dependency libraries.
23874 link_all_deplibs=$link_all_deplibs
23876 # Set to "yes" if exported symbols are required.
23877 always_export_symbols=$always_export_symbols
23879 # The commands to list exported symbols.
23880 export_symbols_cmds=$lt_export_symbols_cmds
23882 # Symbols that should not be listed in the preloaded symbols.
23883 exclude_expsyms=$lt_exclude_expsyms
23885 # Symbols that must always be exported.
23886 include_expsyms=$lt_include_expsyms
23888 # Commands necessary for linking programs (against libraries) with templates.
23889 prelink_cmds=$lt_prelink_cmds
23891 # Commands necessary for finishing linking programs.
23892 postlink_cmds=$lt_postlink_cmds
23894 # Specify filename containing input files.
23895 file_list_spec=$lt_file_list_spec
23897 # How to hardcode a shared library path into an executable.
23898 hardcode_action=$hardcode_action
23900 # ### END LIBTOOL CONFIG
23902 _LT_EOF
23904 cat <<'_LT_EOF' >> "$cfgfile"
23906 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23908 # func_munge_path_list VARIABLE PATH
23909 # -----------------------------------
23910 # VARIABLE is name of variable containing _space_ separated list of
23911 # directories to be munged by the contents of PATH, which is string
23912 # having a format:
23913 # "DIR[:DIR]:"
23914 # string "DIR[ DIR]" will be prepended to VARIABLE
23915 # ":DIR[:DIR]"
23916 # string "DIR[ DIR]" will be appended to VARIABLE
23917 # "DIRP[:DIRP]::[DIRA:]DIRA"
23918 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23919 # "DIRA[ DIRA]" will be appended to VARIABLE
23920 # "DIR[:DIR]"
23921 # VARIABLE will be replaced by "DIR[ DIR]"
23922 func_munge_path_list ()
23924 case x$2 in
23928 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23930 x:*)
23931 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23933 *::*)
23934 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23935 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23940 esac
23944 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23945 func_cc_basename ()
23947 for cc_temp in $*""; do
23948 case $cc_temp in
23949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23951 \-*) ;;
23952 *) break;;
23953 esac
23954 done
23955 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23959 # ### END FUNCTIONS SHARED WITH CONFIGURE
23961 _LT_EOF
23963 case $host_os in
23964 aix3*)
23965 cat <<\_LT_EOF >> "$cfgfile"
23966 # AIX sometimes has problems with the GCC collect2 program. For some
23967 # reason, if we set the COLLECT_NAMES environment variable, the problems
23968 # vanish in a puff of smoke.
23969 if test set != "${COLLECT_NAMES+set}"; then
23970 COLLECT_NAMES=
23971 export COLLECT_NAMES
23973 _LT_EOF
23975 esac
23978 ltmain=$ac_aux_dir/ltmain.sh
23981 # We use sed instead of cat because bash on DJGPP gets confused if
23982 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23983 # text mode, it properly converts lines to CR/LF. This bash problem
23984 # is reportedly fixed, but why not run on old versions too?
23985 sed '$q' "$ltmain" >> "$cfgfile" \
23986 || (rm -f "$cfgfile"; exit 1)
23988 mv -f "$cfgfile" "$ofile" ||
23989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23990 chmod +x "$ofile"
23993 "po-directories":C)
23994 for ac_file in $CONFIG_FILES; do
23995 # Support "outfile[:infile[:infile...]]"
23996 case "$ac_file" in
23997 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23998 esac
23999 # PO directories have a Makefile.in generated from Makefile.in.in.
24000 case "$ac_file" in */Makefile.in)
24001 # Adjust a relative srcdir.
24002 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24003 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24004 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24005 # In autoconf-2.13 it is called $ac_given_srcdir.
24006 # In autoconf-2.50 it is called $srcdir.
24007 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24008 case "$ac_given_srcdir" in
24009 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24010 /*) top_srcdir="$ac_given_srcdir" ;;
24011 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24012 esac
24013 # Treat a directory as a PO directory if and only if it has a
24014 # POTFILES.in file. This allows packages to have multiple PO
24015 # directories under different names or in different locations.
24016 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24017 rm -f "$ac_dir/POTFILES"
24018 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24019 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24020 POMAKEFILEDEPS="POTFILES.in"
24021 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24022 # on $ac_dir but don't depend on user-specified configuration
24023 # parameters.
24024 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24025 # The LINGUAS file contains the set of available languages.
24026 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24027 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24029 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24030 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24031 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24032 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24033 else
24034 # The set of available languages was given in configure.in.
24035 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24036 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24038 # Compute POFILES
24039 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24040 # Compute UPDATEPOFILES
24041 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24042 # Compute DUMMYPOFILES
24043 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24044 # Compute GMOFILES
24045 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24046 case "$ac_given_srcdir" in
24047 .) srcdirpre= ;;
24048 *) srcdirpre='$(srcdir)/' ;;
24049 esac
24050 POFILES=
24051 UPDATEPOFILES=
24052 DUMMYPOFILES=
24053 GMOFILES=
24054 for lang in $ALL_LINGUAS; do
24055 POFILES="$POFILES $srcdirpre$lang.po"
24056 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24057 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24058 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24059 done
24060 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24061 # environment variable.
24062 INST_LINGUAS=
24063 if test -n "$ALL_LINGUAS"; then
24064 for presentlang in $ALL_LINGUAS; do
24065 useit=no
24066 if test "%UNSET%" != "$LINGUAS"; then
24067 desiredlanguages="$LINGUAS"
24068 else
24069 desiredlanguages="$ALL_LINGUAS"
24071 for desiredlang in $desiredlanguages; do
24072 # Use the presentlang catalog if desiredlang is
24073 # a. equal to presentlang, or
24074 # b. a variant of presentlang (because in this case,
24075 # presentlang can be used as a fallback for messages
24076 # which are not translated in the desiredlang catalog).
24077 case "$desiredlang" in
24078 "$presentlang"*) useit=yes;;
24079 esac
24080 done
24081 if test $useit = yes; then
24082 INST_LINGUAS="$INST_LINGUAS $presentlang"
24084 done
24086 CATALOGS=
24087 if test -n "$INST_LINGUAS"; then
24088 for lang in $INST_LINGUAS; do
24089 CATALOGS="$CATALOGS $lang.gmo"
24090 done
24092 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24093 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"
24094 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24095 if test -f "$f"; then
24096 case "$f" in
24097 *.orig | *.bak | *~) ;;
24098 *) cat "$f" >> "$ac_dir/Makefile" ;;
24099 esac
24101 done
24104 esac
24105 done ;;
24107 esac
24108 done # for ac_tag
24111 as_fn_exit 0
24112 _ACEOF
24113 ac_clean_files=$ac_clean_files_save
24115 test $ac_write_fail = 0 ||
24116 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24119 # configure is writing to config.log, and then calls config.status.
24120 # config.status does its own redirection, appending to config.log.
24121 # Unfortunately, on DOS this fails, as config.log is still kept open
24122 # by configure, so config.status won't be able to write to it; its
24123 # output is simply discarded. So we exec the FD to /dev/null,
24124 # effectively closing config.log, so it can be properly (re)opened and
24125 # appended to by config.status. When coming back to configure, we
24126 # need to make the FD available again.
24127 if test "$no_create" != yes; then
24128 ac_cs_success=:
24129 ac_config_status_args=
24130 test "$silent" = yes &&
24131 ac_config_status_args="$ac_config_status_args --quiet"
24132 exec 5>/dev/null
24133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24134 exec 5>>config.log
24135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24136 # would make configure fail if this is the last instruction.
24137 $ac_cs_success || as_fn_exit 1
24139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24141 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}