* A few improvements to the XOAUTH2 code. Mainly documentation for users.
[alpine.git] / configure
blob9d11f5ea452522afab2d7168b2dd681521b6c9f8
1 #! /bin/sh
2 # From configure.ac Rev:29 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.23.2.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: chappa@washington.edu about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.23.2'
595 PACKAGE_STRING='alpine 2.23.2'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
690 LIBTOOL_DEPS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
702 DLLTOOL
703 OBJDUMP
705 ac_ct_DUMPBIN
706 DUMPBIN
708 FGREP
709 EGREP
710 GREP
712 LIBTOOL
713 LN_S
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_nls
822 enable_rpath
823 with_libiconv_prefix
824 with_libintl_prefix
825 enable_dmalloc
826 with_dmalloc_dir
827 with_date_stamp
828 with_host_stamp
829 with_localedir
830 enable_osx_universal_binaries
831 with_include_path
832 with_lib_path
833 with_pubcookie
834 with_web_bin
835 enable_debug
836 enable_optimization
837 enable_mouse
838 enable_quotas
839 enable_from_changing
840 enable_background_post
841 enable_keyboard_lock
842 enable_from_encoding
843 with_smtp_msa
844 with_smtp_msa_flags
845 with_npa
846 with_npa_flags
847 with_password_prog
848 with_simple_spellcheck
849 with_interactive_spellcheck
850 with_system_pinerc
851 with_system_fixed_pinerc
852 with_local_support_info
853 with_mailcheck_interval
854 with_checkpoint_interval
855 with_checkpoint_frequency
856 with_display_rows
857 with_display_columns
858 with_max_display_rows
859 with_max_display_columns
860 with_fill_column
861 with_max_fill_column
862 with_debug_level
863 with_debug_files
864 with_debug_file
865 with_forwarded_keyword
866 with_display_overlap
867 with_display_margin
868 with_default_fcc
869 with_default_save_folder
870 with_default_legacy_postponed_folder
871 with_default_postponed_folder
872 with_default_trash_folder
873 with_default_interrupted_mail
874 with_default_dead_letter_folder
875 with_default_mail_directory
876 with_default_inbox_name
877 with_default_signature_file
878 with_default_elm_style_save
879 with_default_header_in_reply
880 with_default_old_style_reply
881 with_default_use_only_domain_name
882 with_default_save_by_sender
883 with_default_sort_key
884 with_default_addressbook_sort_rule
885 with_default_folder_sort_rule
886 with_default_saved_message_name_rule
887 with_default_fcc_rule
888 with_default_standard_printer
889 with_default_ansi_printer
890 with_default_addressbook
891 with_default_local_fullname
892 with_default_local_address
893 with_default_keyboard_lock_count
894 with_default_remote_addressbook_history
895 with_default_html_directory
896 with_smime_public_cert_directory
897 with_smime_private_key_directory
898 with_smime_cacert_directory
899 with_default_printer
900 with_passfile
901 with_local_password_cache
902 with_local_password_cache_method
903 with_default_sshpath
904 with_default_sshcmd
905 with_ssl
906 with_ssl_dir
907 with_ssl_certs_dir
908 with_ssl_include_dir
909 with_ssl_lib_dir
910 with_encryption_minimum_version
911 with_encryption_maximum_version
912 with_encryption_range
913 with_krb5
914 with_krb5_dir
915 with_krb5_include_dir
916 with_krb5_lib_dir
917 with_ldap
918 with_ldap_dir
919 with_ldap_include_dir
920 with_ldap_lib_dir
921 with_smime
922 with_tcl
923 with_tcl_lib_dir
924 with_tcl_lib
925 with_tcl_include
926 with_supplied_regex
927 with_pthread
928 with_system_mail_directory
929 with_c_client_target
930 with_bundled_tools
931 with_ipv6
932 with_ntlm
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 LT_SYS_LIBRARY_PATH
943 CPP'
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
994 ac_prev=
995 ac_dashdash=
996 for ac_option
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1005 case $ac_option in
1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *=) ac_optarg= ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information"
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error $? "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error $? "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error $? "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures alpine 2.23.2 to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking ...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of alpine 2.23.2:";;
1555 esac
1556 cat <<\_ACEOF
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-silent-rules less verbose build output (undo: "make V=1")
1563 --disable-silent-rules verbose build output (undo: "make V=0")
1564 --enable-maintainer-mode
1565 enable make rules and dependencies not useful (and
1566 sometimes confusing) to the casual installer
1567 --enable-dependency-tracking
1568 do not reject slow dependency extractors
1569 --disable-dependency-tracking
1570 speeds up one-time build
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-nls do not use Native Language Support
1577 --disable-rpath do not hardcode runtime library paths
1578 --enable-dmalloc Enable dmalloc debugging
1579 --enable-osx-universal-binaries
1580 Produce universal binaries under OS X [[default=no]]
1581 --disable-debug Exclude debug from the binary
1582 --disable-optimization Exclude optimizing compiler flags
1583 --disable-mouse Disable mouse support
1584 --enable-quotas Enable disk quota checking on startup
1585 --disable-from-changing Disallow users changing From address
1586 --disable-background-post
1587 Disable background posting
1588 --disable-keyboard-lock Disable keyboard locking
1589 --enable-from-encoding Enable From encoding in sent messages
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1595 both]
1596 --with-aix-soname=aix|svr4|both
1597 shared library versioning (aka "SONAME") variant to
1598 provide on AIX, [default=aix].
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1601 compiler's sysroot if not specified).
1602 --with-gnu-ld assume the C compiler uses GNU ld default=no
1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1605 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1606 --without-libintl-prefix don't search for libintl in includedir and libdir
1607 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1608 --with-date-stamp=DATE Set this as the date this program was built.
1609 Default: output of `date`
1610 --with-host-stamp=HOST Set name of computer for compilation. Default:
1611 output of `hostname`
1612 --with-localedir=DIR Name of gettext locale directory
1613 --with-include-path=PATHS
1614 Colon-separated list of directories used for include
1615 file search
1616 --with-lib-path=PATHS Colon-separated list of directories used for library
1617 search
1618 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1619 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1620 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1621 --with-smtp-msa-flags=FLAGS
1622 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1623 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1624 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1625 --with-password-prog=PATH
1626 Password change program (/bin/passwd)
1627 --with-simple-spellcheck=PROG
1628 Spellcheck program reads stdin, emits misspellings
1629 on stdout
1630 --with-interactive-spellcheck=PROG
1631 Interactive, filewise spell checker
1632 --with-system-pinerc=VALUE
1633 System pinerc (/usr/local/lib/pine.conf)
1634 --with-system-fixed-pinerc=VALUE
1635 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1636 --with-local-support-info=VALUE
1637 Local Support Info File (/usr/local/lib/pine.info)
1638 --with-mailcheck-interval=VALUE
1639 Specify default mail-check-interval (150)
1640 --with-checkpoint-interval=VALUE
1641 Specify default checkpoint-interval (420)
1642 --with-checkpoint-frequency=VALUE
1643 State change count before checkpoint (12)
1644 --with-display-rows=VALUE
1645 Initial rows on display (24)
1646 --with-display-columns=VALUE
1647 Initial columns on display (80)
1648 --with-max-display-rows=VALUE
1649 Maximum display rows (200)
1650 --with-max-display-columns=VALUE
1651 Maximum display columns (500)
1652 --with-fill-column=VALUE
1653 Default fill column (74)
1654 --with-max_fill-column=VALUE
1655 Maximum fill column (80)
1656 --with-debug-level=VALUE
1657 Specify default debug verbosity level (2)
1658 --with-debug-files=VALUE
1659 Specify number of debug files (4)
1660 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1661 --with-forwarded-keyword=VALUE
1662 IMAP (c-client) keyword to store forwarded status
1663 ("\$Forwarded")
1664 --with-display-overlap=VALUE
1665 Lines preserved while paging (2)
1666 --with-display-margin=VALUE
1667 Lines visible while scrolling (0)
1668 --with-default-fcc=VALUE
1669 Default sent mail folder (sent-mail)
1670 --with-default-save-folder=VALUE
1671 Default save folder (saved-messages)
1672 --with-default-legacy-postponed-folder=VALUE
1673 Pre Pine 3.90 postponed folder (postponed-mail)
1674 --with-default-postponed-folder=VALUE
1675 Default postponed folder (postponed-msgs)
1676 --with-default-trash-folder=VALUE
1677 Default Trash folder for Web Alpine (Trash)
1678 --with-default-interrupted-mail=VALUE
1679 Default folder for interrupted mail
1680 (.pine-interrupted-mail)
1681 --with-default-dead-letter-folder=VALUE
1682 Default dead letter folder (dead.letter)
1683 --with-default-mail-directory=VALUE
1684 Default mail directory (mail)
1685 --with-default-inbox-name=VALUE
1686 Default inbox name (INBOX)
1687 --with-default-signature-file=VALUE
1688 Default signature file (.signature)
1689 --with-default-elm-style-save=VALUE
1690 Default to Elm style save (no)
1691 --with-default-header-in-reply=VALUE
1692 Include header in reply (no)
1693 --with-default-old-style-reply=VALUE
1694 Default to old style reply (no)
1695 --with-default-use-only-domain-name=VALUE
1696 Default to using only the domain name (no)
1697 --with-default-save-by-sender=VALUE
1698 Default to save by sender (no)
1699 --with-default-sort-key=VALUE
1700 Default sort key (arrival)
1701 --with-default-addressbook-sort-rule=VALUE
1702 Default addressbook sort rule
1703 (fullname-with-lists-last)
1704 --with-default-folder-sort-rule=VALUE
1705 Default folder sort rule (alphabetical)
1706 --with-default-saved-message-name-rule=VALUE
1707 Default saved message name rule (default-folder)
1708 --with-default-fcc-rule=VALUE
1709 Default fcc rule (default-fcc)
1710 --with-default-standard-printer=VALUE
1711 Default standard printern (lpr)
1712 --with-default-ansi-printer=VALUE
1713 ANSI printer definition (attached-to-ansi)
1714 --with-default-addressbook=VALUE
1715 Default addressbook name (.addressbook)
1716 --with-default-local-fullname=VALUE
1717 Default local support fullname ("Local Support")
1718 --with-default-local-address=VALUE
1719 Default local support address (postmaster)
1720 --with-default-keyboard-lock-count=VALUE
1721 Default keyboard lock count (1)
1722 --with-default-remote-addressbook-history=VALUE
1723 Default address book history count (3)
1724 --with-default-html-directory=VALUE
1725 Default Directory to Temporarily Save HTML Messages
1726 (.alpine-html)
1727 --with-smime-public-cert-directory=VALUE
1728 Default Public Cert Directory (.alpine-smime/public)
1729 --with-smime-private-key-directory=VALUE
1730 Default Private Key Directory
1731 (.alpine-smime/private)
1732 --with-smime-cacert-directory=VALUE
1733 Default Cert Authority Directory (.alpine-smime/ca)
1734 --with-default-printer=VALUE
1735 Default printer (ANSI_PRINTER)
1736 --with-passfile=FILENAME
1737 Password cache file (recommended when S/MIME is
1738 enabled and configured)
1739 --without-local-password-cache
1740 Disable OS-specific password cache, if supported
1741 --with-local-password-cache-method
1742 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1743 Windows=WINCRED)
1744 --with-default-sshpath=FILENAME
1745 set default value of ssh command path (defining
1746 should cause ssh to be preferred to rsh)
1747 --with-default-sshcmd=PERCENT_S_STRING
1748 set default value of ssh command string (usually "%s
1749 %s -l %s exec /etc/r%sd")
1750 --without-ssl Disable SSL support (OpenSSL)
1751 --with-ssl-dir=DIR Root of SSL lib/include path
1752 --with-ssl-certs-dir=DIR
1753 Path to SSL certificate directory
1754 --with-ssl-include-dir=DIR
1755 SSL include file path
1756 --with-ssl-lib-dir=DIR SSL library path
1757 --encryption-minimum-version=VERSION
1758 Minimum SSL encryption version. Default: no_min
1759 --encryption-maximum-version=VERSION
1760 Maximum SSL encryption version. Default: no_max
1761 --with-encryption-range=VALUE
1762 Default Encryption Range ($alpine_RANGE )
1763 --without-krb5 Disable Kerberos support
1764 --with-krb5-dir=DIR Root of Kerberos lib/include path
1765 --with-krb5-include-dir=DIR
1766 Kerberos include file path
1767 --with-krb5-lib-dir=DIR Kerberos library path
1768 --without-ldap Disable LDAP query support
1769 --with-ldap-dir=DIR Root of LDAP lib/include path
1770 --with-ldap-include-dir=DIR
1771 Directory containing LDAP include files
1772 --with-ldap-lib-dir=DIR LDAP library path
1773 --without-smime Disable S/MIME
1774 --without-tcl Disable TCL, thus Web Alpine support
1775 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1776 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1777 --with-tcl-include=DIR Directory containing TCL include files
1778 --with-supplied-regex Use regex library supplied with alpine
1779 --without-pthread Do NOT test for nor build with POSIX thread support
1780 --with-system-mail-directory=DIR
1781 Directory where local mail is delivered
1782 --with-c-client-target=TARGET
1783 IMAP build target (see imap/Makefile)
1784 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1785 --with-bundled-tools=no
1786 --without-ipv6 Disable IPv6, primarily to work around resolver
1787 problems
1788 --without-ntlm Disable NTLM client support
1790 Some influential environment variables:
1791 CC C compiler command
1792 CFLAGS C compiler flags
1793 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1794 nonstandard directory <lib dir>
1795 LIBS libraries to pass to the linker, e.g. -l<library>
1796 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1797 you have headers in a nonstandard directory <include dir>
1798 LT_SYS_LIBRARY_PATH
1799 User-defined run-time library search path.
1800 CPP C preprocessor
1802 Use these variables to override the choices made by `configure' or to help
1803 it to find libraries and programs with nonstandard names/locations.
1805 Report bugs to <chappa@washington.edu>.
1806 _ACEOF
1807 ac_status=$?
1810 if test "$ac_init_help" = "recursive"; then
1811 # If there are subdirs, report their specific --help.
1812 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1813 test -d "$ac_dir" ||
1814 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1815 continue
1816 ac_builddir=.
1818 case "$ac_dir" in
1819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1821 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1822 # A ".." for each directory in $ac_dir_suffix.
1823 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1824 case $ac_top_builddir_sub in
1825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1827 esac ;;
1828 esac
1829 ac_abs_top_builddir=$ac_pwd
1830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1831 # for backward compatibility:
1832 ac_top_builddir=$ac_top_build_prefix
1834 case $srcdir in
1835 .) # We are building in place.
1836 ac_srcdir=.
1837 ac_top_srcdir=$ac_top_builddir_sub
1838 ac_abs_top_srcdir=$ac_pwd ;;
1839 [\\/]* | ?:[\\/]* ) # Absolute name.
1840 ac_srcdir=$srcdir$ac_dir_suffix;
1841 ac_top_srcdir=$srcdir
1842 ac_abs_top_srcdir=$srcdir ;;
1843 *) # Relative name.
1844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1845 ac_top_srcdir=$ac_top_build_prefix$srcdir
1846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1847 esac
1848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1850 cd "$ac_dir" || { ac_status=$?; continue; }
1851 # Check for guested configure.
1852 if test -f "$ac_srcdir/configure.gnu"; then
1853 echo &&
1854 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1855 elif test -f "$ac_srcdir/configure"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure" --help=recursive
1858 else
1859 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1860 fi || ac_status=$?
1861 cd "$ac_pwd" || { ac_status=$?; break; }
1862 done
1865 test -n "$ac_init_help" && exit $ac_status
1866 if $ac_init_version; then
1867 cat <<\_ACEOF
1868 alpine configure 2.23.2
1869 generated by GNU Autoconf 2.69
1871 Copyright (C) 2012 Free Software Foundation, Inc.
1872 This configure script is free software; the Free Software Foundation
1873 gives unlimited permission to copy, distribute and modify it.
1874 _ACEOF
1875 exit
1878 ## ------------------------ ##
1879 ## Autoconf initialization. ##
1880 ## ------------------------ ##
1882 # ac_fn_c_try_compile LINENO
1883 # --------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_compile
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_c_try_link
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_header_compile
1997 # ac_fn_c_try_cpp LINENO
1998 # ----------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_c_try_cpp ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2004 case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } > conftest.i && {
2019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2020 test ! -s conftest.err
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=1
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_c_try_cpp
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_run
2076 # ac_fn_c_check_func LINENO FUNC VAR
2077 # ----------------------------------
2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2079 ac_fn_c_check_func ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2091 #define $2 innocuous_$2
2093 /* System header to define __stub macros and hopefully few prototypes,
2094 which can conflict with char $2 (); below.
2095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096 <limits.h> exists even on freestanding compilers. */
2098 #ifdef __STDC__
2099 # include <limits.h>
2100 #else
2101 # include <assert.h>
2102 #endif
2104 #undef $2
2106 /* Override any GCC internal prototype to avoid an error.
2107 Use char because int might match the return type of a GCC
2108 builtin and then its argument prototype would still apply. */
2109 #ifdef __cplusplus
2110 extern "C"
2111 #endif
2112 char $2 ();
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined __stub_$2 || defined __stub___$2
2117 choke me
2118 #endif
2121 main ()
2123 return $2 ();
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_link "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2133 rm -f core conftest.err conftest.$ac_objext \
2134 conftest$ac_exeext conftest.$ac_ext
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_func
2143 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2144 # -------------------------------------------------------
2145 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2146 # the include files in INCLUDES and setting the cache variable VAR
2147 # accordingly.
2148 ac_fn_c_check_header_mongrel ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if eval \${$3+:} false; then :
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2157 eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 else
2161 # Is the header compilable?
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2163 $as_echo_n "checking $2 usability... " >&6; }
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_header_compiler=yes
2171 else
2172 ac_header_compiler=no
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2176 $as_echo "$ac_header_compiler" >&6; }
2178 # Is the header present?
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2180 $as_echo_n "checking $2 presence... " >&6; }
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 #include <$2>
2184 _ACEOF
2185 if ac_fn_c_try_cpp "$LINENO"; then :
2186 ac_header_preproc=yes
2187 else
2188 ac_header_preproc=no
2190 rm -f conftest.err conftest.i conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2192 $as_echo "$ac_header_preproc" >&6; }
2194 # So? What about this header?
2195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2196 yes:no: )
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2198 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2200 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2202 no:yes:* )
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2204 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2206 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2208 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2210 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 ( $as_echo "## ------------------------------------ ##
2214 ## Report this to chappa@washington.edu ##
2215 ## ------------------------------------ ##"
2216 ) | sed "s/^/$as_me: WARNING: /" >&2
2218 esac
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 eval "$3=\$ac_header_compiler"
2226 eval ac_res=\$$3
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_header_mongrel
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 if (sizeof ($2))
2254 return 0;
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 if (sizeof (($2)))
2267 return 0;
2269 return 0;
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2274 else
2275 eval "$3=yes"
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2289 # --------------------------------------------
2290 # Tries to find the compile-time value of EXPR in a program that includes
2291 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2292 # computed
2293 ac_fn_c_compute_int ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if test "$cross_compiling" = yes; then
2297 # Depending upon the size, compute the lo and hi bounds.
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 static int test_array [1 - 2 * !(($2) >= 0)];
2305 test_array [0] = 0;
2306 return test_array [0];
2309 return 0;
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 ac_lo=0 ac_mid=0
2314 while :; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 main ()
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 test_array [0] = 0;
2323 return test_array [0];
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_hi=$ac_mid; break
2331 else
2332 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2333 if test $ac_lo -le $ac_mid; then
2334 ac_lo= ac_hi=
2335 break
2337 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2346 main ()
2348 static int test_array [1 - 2 * !(($2) < 0)];
2349 test_array [0] = 0;
2350 return test_array [0];
2353 return 0;
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 ac_hi=-1 ac_mid=-1
2358 while :; do
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 ac_lo=$ac_mid; break
2375 else
2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2377 if test $ac_mid -le $ac_hi; then
2378 ac_lo= ac_hi=
2379 break
2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 done
2385 else
2386 ac_lo= ac_hi=
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 # Binary search between lo and hi bounds.
2392 while test "x$ac_lo" != "x$ac_hi"; do
2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2398 main ()
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 test_array [0] = 0;
2402 return test_array [0];
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid
2410 else
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 case $ac_lo in #((
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 '') ac_retval=1 ;;
2418 esac
2419 else
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2425 #include <stdio.h>
2426 #include <stdlib.h>
2428 main ()
2431 FILE *f = fopen ("conftest.val", "w");
2432 if (! f)
2433 return 1;
2434 if (($2) < 0)
2436 long int i = longval ();
2437 if (i != ($2))
2438 return 1;
2439 fprintf (f, "%ld", i);
2441 else
2443 unsigned long int i = ulongval ();
2444 if (i != ($2))
2445 return 1;
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2453 return 0;
2455 _ACEOF
2456 if ac_fn_c_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 else
2459 ac_retval=1
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 rm -f conftest.val
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_c_compute_int
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2474 It was created by alpine $as_me 2.23.2, which was
2475 generated by GNU Autoconf 2.69. Invocation command line was
2477 $ $0 $@
2479 _ACEOF
2480 exec 5>>config.log
2482 cat <<_ASUNAME
2483 ## --------- ##
2484 ## Platform. ##
2485 ## --------- ##
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2496 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2500 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2501 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2502 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2504 _ASUNAME
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 $as_echo "PATH: $as_dir"
2512 done
2513 IFS=$as_save_IFS
2515 } >&5
2517 cat >&5 <<_ACEOF
2520 ## ----------- ##
2521 ## Core tests. ##
2522 ## ----------- ##
2524 _ACEOF
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2532 ac_configure_args=
2533 ac_configure_args0=
2534 ac_configure_args1=
2535 ac_must_keep_next=false
2536 for ac_pass in 1 2
2538 for ac_arg
2540 case $ac_arg in
2541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543 | -silent | --silent | --silen | --sile | --sil)
2544 continue ;;
2545 *\'*)
2546 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 esac
2548 case $ac_pass in
2549 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 as_fn_append ac_configure_args1 " '$ac_arg'"
2552 if test $ac_must_keep_next = true; then
2553 ac_must_keep_next=false # Got value, back to normal.
2554 else
2555 case $ac_arg in
2556 *=* | --config-cache | -C | -disable-* | --disable-* \
2557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559 | -with-* | --with-* | -without-* | --without-* | --x)
2560 case "$ac_configure_args0 " in
2561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2562 esac
2564 -* ) ac_must_keep_next=true ;;
2565 esac
2567 as_fn_append ac_configure_args " '$ac_arg'"
2569 esac
2570 done
2571 done
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log. We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581 # Save into config.log some information that might help in debugging.
2583 echo
2585 $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2588 echo
2589 # The following way of writing the cache mishandles newlines in values,
2591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592 eval ac_val=\$$ac_var
2593 case $ac_val in #(
2594 *${as_nl}*)
2595 case $ac_var in #(
2596 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2598 esac
2599 case $ac_var in #(
2600 _ | IFS | as_nl) ;; #(
2601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602 *) { eval $ac_var=; unset $ac_var;} ;;
2603 esac ;;
2604 esac
2605 done
2606 (set) 2>&1 |
2607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608 *${as_nl}ac_space=\ *)
2609 sed -n \
2610 "s/'\''/'\''\\\\'\'''\''/g;
2611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2612 ;; #(
2614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2616 esac |
2617 sort
2619 echo
2621 $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2624 echo
2625 for ac_var in $ac_subst_vars
2627 eval ac_val=\$$ac_var
2628 case $ac_val in
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630 esac
2631 $as_echo "$ac_var='\''$ac_val'\''"
2632 done | sort
2633 echo
2635 if test -n "$ac_subst_files"; then
2636 $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2639 echo
2640 for ac_var in $ac_subst_files
2642 eval ac_val=\$$ac_var
2643 case $ac_val in
2644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645 esac
2646 $as_echo "$ac_var='\''$ac_val'\''"
2647 done | sort
2648 echo
2651 if test -s confdefs.h; then
2652 $as_echo "## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##"
2655 echo
2656 cat confdefs.h
2657 echo
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2662 } >&5
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665 exit $exit_status
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2675 $as_echo "/* confdefs.h */" > confdefs.h
2677 # Predefined preprocessor variables.
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2685 _ACEOF
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2689 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2697 _ACEOF
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2701 _ACEOF
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2706 ac_site_file1=NONE
2707 ac_site_file2=NONE
2708 if test -n "$CONFIG_SITE"; then
2709 # We do not want a PATH search for config.site.
2710 case $CONFIG_SITE in #((
2711 -*) ac_site_file1=./$CONFIG_SITE;;
2712 */*) ac_site_file1=$CONFIG_SITE;;
2713 *) ac_site_file1=./$CONFIG_SITE;;
2714 esac
2715 elif test "x$prefix" != xNONE; then
2716 ac_site_file1=$prefix/share/config.site
2717 ac_site_file2=$prefix/etc/config.site
2718 else
2719 ac_site_file1=$ac_default_prefix/share/config.site
2720 ac_site_file2=$ac_default_prefix/etc/config.site
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2724 test "x$ac_site_file" = xNONE && continue
2725 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728 sed 's/^/| /' "$ac_site_file" >&5
2729 . "$ac_site_file" \
2730 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2735 done
2737 if test -r "$cache_file"; then
2738 # Some versions of bash will fail to source /dev/null (special files
2739 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2740 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743 case $cache_file in
2744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745 *) . "./$cache_file";;
2746 esac
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2751 >$cache_file
2754 gt_needs="$gt_needs "
2755 # Check that the precious variables saved in the cache have kept the same
2756 # value.
2757 ac_cache_corrupted=false
2758 for ac_var in $ac_precious_vars; do
2759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2760 eval ac_new_set=\$ac_env_${ac_var}_set
2761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2762 eval ac_new_val=\$ac_env_${ac_var}_value
2763 case $ac_old_set,$ac_new_set in
2764 set,)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2766 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2767 ac_cache_corrupted=: ;;
2768 ,set)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2770 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2771 ac_cache_corrupted=: ;;
2772 ,);;
2774 if test "x$ac_old_val" != "x$ac_new_val"; then
2775 # differences in whitespace do not lead to failure.
2776 ac_old_val_w=`echo x $ac_old_val`
2777 ac_new_val_w=`echo x $ac_new_val`
2778 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2780 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2781 ac_cache_corrupted=:
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2784 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2785 eval $ac_var=\$ac_old_val
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2788 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2790 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2791 fi;;
2792 esac
2793 # Pass precious variables to config.status.
2794 if test "$ac_new_set" = set; then
2795 case $ac_new_val in
2796 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2797 *) ac_arg=$ac_var=$ac_new_val ;;
2798 esac
2799 case " $ac_configure_args " in
2800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2801 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2802 esac
2804 done
2805 if $ac_cache_corrupted; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2809 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2810 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2812 ## -------------------- ##
2813 ## Main body of script. ##
2814 ## -------------------- ##
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 ac_config_headers="$ac_config_headers include/config.h"
2828 am__api_version='1.15'
2830 ac_aux_dir=
2831 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2832 if test -f "$ac_dir/install-sh"; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install-sh -c"
2835 break
2836 elif test -f "$ac_dir/install.sh"; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/install.sh -c"
2839 break
2840 elif test -f "$ac_dir/shtool"; then
2841 ac_aux_dir=$ac_dir
2842 ac_install_sh="$ac_aux_dir/shtool install -c"
2843 break
2845 done
2846 if test -z "$ac_aux_dir"; then
2847 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2850 # These three variables are undocumented and unsupported,
2851 # and are intended to be withdrawn in a future Autoconf release.
2852 # They can cause serious problems if a builder's source tree is in a directory
2853 # whose full name contains unusual characters.
2854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2859 # Find a good install program. We prefer a C program (faster),
2860 # so one script is as good as another. But avoid the broken or
2861 # incompatible versions:
2862 # SysV /etc/install, /usr/sbin/install
2863 # SunOS /usr/etc/install
2864 # IRIX /sbin/install
2865 # AIX /bin/install
2866 # AmigaOS /C/install, which installs bootblocks on floppy discs
2867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2870 # OS/2's system install, which has a completely different semantic
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 # Reject install programs that cannot install multiple files.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2874 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2875 if test -z "$INSTALL"; then
2876 if ${ac_cv_path_install+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 # Account for people who put trailing slashes in PATH elements.
2885 case $as_dir/ in #((
2886 ./ | .// | /[cC]/* | \
2887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2889 /usr/ucb/* ) ;;
2891 # OSF1 and SCO ODT 3.0 have their own names for install.
2892 # Don't use installbsd from OSF since it installs stuff as root
2893 # by default.
2894 for ac_prog in ginstall scoinst install; do
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2897 if test $ac_prog = install &&
2898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2901 elif test $ac_prog = install &&
2902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # program-specific install script used by HP pwplus--don't use.
2905 else
2906 rm -rf conftest.one conftest.two conftest.dir
2907 echo one > conftest.one
2908 echo two > conftest.two
2909 mkdir conftest.dir
2910 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2911 test -s conftest.one && test -s conftest.two &&
2912 test -s conftest.dir/conftest.one &&
2913 test -s conftest.dir/conftest.two
2914 then
2915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916 break 3
2920 done
2921 done
2923 esac
2925 done
2926 IFS=$as_save_IFS
2928 rm -rf conftest.one conftest.two conftest.dir
2931 if test "${ac_cv_path_install+set}" = set; then
2932 INSTALL=$ac_cv_path_install
2933 else
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for INSTALL within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 INSTALL=$ac_install_sh
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2942 $as_echo "$INSTALL" >&6; }
2944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2945 # It thinks the first close brace ends the variable substitution.
2946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2953 $as_echo_n "checking whether build environment is sane... " >&6; }
2954 # Reject unsafe characters in $srcdir or the absolute working directory
2955 # name. Accept space and tab only in the latter.
2956 am_lf='
2958 case `pwd` in
2959 *[\\\"\#\$\&\'\`$am_lf]*)
2960 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2961 esac
2962 case $srcdir in
2963 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2964 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2965 esac
2967 # Do 'set' in a subshell so we don't clobber the current shell's
2968 # arguments. Must try -L first in case configure is actually a
2969 # symlink; some systems play weird games with the mod time of symlinks
2970 # (eg FreeBSD returns the mod time of the symlink's containing
2971 # directory).
2972 if (
2973 am_has_slept=no
2974 for am_try in 1 2; do
2975 echo "timestamp, slept: $am_has_slept" > conftest.file
2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977 if test "$*" = "X"; then
2978 # -L didn't work.
2979 set X `ls -t "$srcdir/configure" conftest.file`
2981 if test "$*" != "X $srcdir/configure conftest.file" \
2982 && test "$*" != "X conftest.file $srcdir/configure"; then
2984 # If neither matched, then we have a broken ls. This can happen
2985 # if, for instance, CONFIG_SHELL is bash and it inherits a
2986 # broken ls alias from the environment. This has actually
2987 # happened. Such a system could not be considered "sane".
2988 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2989 alias in your environment" "$LINENO" 5
2991 if test "$2" = conftest.file || test $am_try -eq 2; then
2992 break
2994 # Just in case.
2995 sleep 1
2996 am_has_slept=yes
2997 done
2998 test "$2" = conftest.file
3000 then
3001 # Ok.
3003 else
3004 as_fn_error $? "newly created file is older than distributed files!
3005 Check your system clock" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009 # If we didn't sleep, we still need to ensure time stamps of config.status and
3010 # generated files are strictly newer.
3011 am_sleep_pid=
3012 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3013 ( sleep 1 ) &
3014 am_sleep_pid=$!
3017 rm -f conftest.file
3019 test "$program_prefix" != NONE &&
3020 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3021 # Use a double $ so make ignores it.
3022 test "$program_suffix" != NONE &&
3023 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3024 # Double any \ or $.
3025 # By default was `s,x,x', remove it if useless.
3026 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3027 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3029 # Expand $ac_aux_dir to an absolute path.
3030 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3032 if test x"${MISSING+set}" != xset; then
3033 case $am_aux_dir in
3034 *\ * | *\ *)
3035 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3037 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3038 esac
3040 # Use eval to expand $SHELL
3041 if eval "$MISSING --is-lightweight"; then
3042 am_missing_run="$MISSING "
3043 else
3044 am_missing_run=
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3046 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3049 if test x"${install_sh+set}" != xset; then
3050 case $am_aux_dir in
3051 *\ * | *\ *)
3052 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3054 install_sh="\${SHELL} $am_aux_dir/install-sh"
3055 esac
3058 # Installed binaries are usually stripped using 'strip' when the user
3059 # run "make install-strip". However 'strip' might not be the right
3060 # tool to use in cross-compilation environments, therefore Automake
3061 # will honor the 'STRIP' environment variable to overrule this program.
3062 if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}strip; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_STRIP+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3087 IFS=$as_save_IFS
3091 STRIP=$ac_cv_prog_STRIP
3092 if test -n "$STRIP"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3094 $as_echo "$STRIP" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3102 if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3125 done
3126 done
3127 IFS=$as_save_IFS
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3134 $as_echo "$ac_ct_STRIP" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3140 if test "x$ac_ct_STRIP" = x; then
3141 STRIP=":"
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 STRIP=$ac_ct_STRIP
3151 else
3152 STRIP="$ac_cv_prog_STRIP"
3156 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3159 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3160 if test -z "$MKDIR_P"; then
3161 if ${ac_cv_path_mkdir+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_prog in mkdir gmkdir; do
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3173 'mkdir (GNU coreutils) '* | \
3174 'mkdir (coreutils) '* | \
3175 'mkdir (fileutils) '4.1*)
3176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3177 break 3;;
3178 esac
3179 done
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 test -d ./--version && rmdir ./--version
3187 if test "${ac_cv_path_mkdir+set}" = set; then
3188 MKDIR_P="$ac_cv_path_mkdir -p"
3189 else
3190 # As a last resort, use the slow shell script. Don't cache a
3191 # value for MKDIR_P within a source directory, because that will
3192 # break other packages using the cache if that directory is
3193 # removed, or if the value is a relative name.
3194 MKDIR_P="$ac_install_sh -d"
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3198 $as_echo "$MKDIR_P" >&6; }
3200 for ac_prog in gawk mawk nawk awk
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_AWK+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$AWK"; then
3210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_AWK="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3223 done
3224 done
3225 IFS=$as_save_IFS
3229 AWK=$ac_cv_prog_AWK
3230 if test -n "$AWK"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3232 $as_echo "$AWK" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 test -n "$AWK" && break
3240 done
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3243 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 set x ${MAKE-make}
3245 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3246 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat >conftest.make <<\_ACEOF
3250 SHELL = /bin/sh
3251 all:
3252 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 *@@@%%%=?*=@@@%%%*)
3257 eval ac_cv_prog_make_${ac_make}_set=yes;;
3259 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 esac
3261 rm -f conftest.make
3263 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 SET_MAKE=
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 rm -rf .tst 2>/dev/null
3274 mkdir .tst 2>/dev/null
3275 if test -d .tst; then
3276 am__leading_dot=.
3277 else
3278 am__leading_dot=_
3280 rmdir .tst 2>/dev/null
3282 # Check whether --enable-silent-rules was given.
3283 if test "${enable_silent_rules+set}" = set; then :
3284 enableval=$enable_silent_rules;
3287 case $enable_silent_rules in # (((
3288 yes) AM_DEFAULT_VERBOSITY=0;;
3289 no) AM_DEFAULT_VERBOSITY=1;;
3290 *) AM_DEFAULT_VERBOSITY=1;;
3291 esac
3292 am_make=${MAKE-make}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3294 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3295 if ${am_cv_make_support_nested_variables+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if $as_echo 'TRUE=$(BAR$(V))
3299 BAR0=false
3300 BAR1=true
3302 am__doit:
3303 @$(TRUE)
3304 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3305 am_cv_make_support_nested_variables=yes
3306 else
3307 am_cv_make_support_nested_variables=no
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3311 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3312 if test $am_cv_make_support_nested_variables = yes; then
3313 AM_V='$(V)'
3314 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3315 else
3316 AM_V=$AM_DEFAULT_VERBOSITY
3317 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3319 AM_BACKSLASH='\'
3321 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3322 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3323 # is not polluted with repeated "-I."
3324 am__isrc=' -I$(srcdir)'
3325 # test to see if srcdir already configured
3326 if test -f $srcdir/config.status; then
3327 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3331 # test whether we have cygpath
3332 if test -z "$CYGPATH_W"; then
3333 if (cygpath --version) >/dev/null 2>/dev/null; then
3334 CYGPATH_W='cygpath -w'
3335 else
3336 CYGPATH_W=echo
3341 # Define the identity of the package.
3342 PACKAGE='alpine'
3343 VERSION='2.23.2'
3346 cat >>confdefs.h <<_ACEOF
3347 #define PACKAGE "$PACKAGE"
3348 _ACEOF
3351 cat >>confdefs.h <<_ACEOF
3352 #define VERSION "$VERSION"
3353 _ACEOF
3355 # Some tools Automake needs.
3357 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3360 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3363 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3366 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3369 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3371 # For better backward compatibility. To be removed once Automake 1.9.x
3372 # dies out for good. For more background, see:
3373 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3374 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3375 mkdir_p='$(MKDIR_P)'
3377 # We need awk for the "check" target (and possibly the TAP driver). The
3378 # system "awk" is bad on some platforms.
3379 # Always define AMTAR for backward compatibility. Yes, it's still used
3380 # in the wild :-( We should find a proper way to deprecate it ...
3381 AMTAR='$${TAR-tar}'
3384 # We'll loop over all known methods to create a tar archive until one works.
3385 _am_tools='gnutar pax cpio none'
3387 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3394 # POSIX will say in a future version that running "rm -f" with no argument
3395 # is OK; and we want to be able to make that assumption in our Makefile
3396 # recipes. So use an aggressive probe to check that the usage we want is
3397 # actually supported "in the wild" to an acceptable degree.
3398 # See automake bug#10828.
3399 # To make any issue more visible, cause the running configure to be aborted
3400 # by default if the 'rm' program in use doesn't match our expectations; the
3401 # user can still override this though.
3402 if rm -f && rm -fr && rm -rf; then : OK; else
3403 cat >&2 <<'END'
3404 Oops!
3406 Your 'rm' program seems unable to run without file operands specified
3407 on the command line, even when the '-f' option is present. This is contrary
3408 to the behaviour of most rm programs out there, and not conforming with
3409 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3411 Please tell bug-automake@gnu.org about your system, including the value
3412 of your $PATH and any error possibly output before this message. This
3413 can help us improve future automake versions.
3416 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3417 echo 'Configuration will proceed anyway, since you have set the' >&2
3418 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3419 echo >&2
3420 else
3421 cat >&2 <<'END'
3422 Aborting the configuration process, to ensure you take notice of the issue.
3424 You can download and install GNU coreutils to get an 'rm' implementation
3425 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3427 If you want to complete the configuration process using your problematic
3428 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3429 to "yes", and re-run configure.
3432 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3439 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3440 # Check whether --enable-maintainer-mode was given.
3441 if test "${enable_maintainer_mode+set}" = set; then :
3442 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3443 else
3444 USE_MAINTAINER_MODE=no
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3448 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3449 if test $USE_MAINTAINER_MODE = yes; then
3450 MAINTAINER_MODE_TRUE=
3451 MAINTAINER_MODE_FALSE='#'
3452 else
3453 MAINTAINER_MODE_TRUE='#'
3454 MAINTAINER_MODE_FALSE=
3457 MAINT=$MAINTAINER_MODE_TRUE
3461 # Make sure we can run config.sub.
3462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3466 $as_echo_n "checking build system type... " >&6; }
3467 if ${ac_cv_build+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_build_alias=$build_alias
3471 test "x$ac_build_alias" = x &&
3472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3473 test "x$ac_build_alias" = x &&
3474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3480 $as_echo "$ac_cv_build" >&6; }
3481 case $ac_cv_build in
3482 *-*-*) ;;
3483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3484 esac
3485 build=$ac_cv_build
3486 ac_save_IFS=$IFS; IFS='-'
3487 set x $ac_cv_build
3488 shift
3489 build_cpu=$1
3490 build_vendor=$2
3491 shift; shift
3492 # Remember, the first character of IFS is used to create $*,
3493 # except with old shells:
3494 build_os=$*
3495 IFS=$ac_save_IFS
3496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3500 $as_echo_n "checking host system type... " >&6; }
3501 if ${ac_cv_host+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test "x$host_alias" = x; then
3505 ac_cv_host=$ac_cv_build
3506 else
3507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3513 $as_echo "$ac_cv_host" >&6; }
3514 case $ac_cv_host in
3515 *-*-*) ;;
3516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3517 esac
3518 host=$ac_cv_host
3519 ac_save_IFS=$IFS; IFS='-'
3520 set x $ac_cv_host
3521 shift
3522 host_cpu=$1
3523 host_vendor=$2
3524 shift; shift
3525 # Remember, the first character of IFS is used to create $*,
3526 # except with old shells:
3527 host_os=$*
3528 IFS=$ac_save_IFS
3529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3541 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3543 # start out with intent to build Web Alpine
3544 WEB_BUILD=web/src/alpined.d
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 $as_echo "$CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3591 if test -z "$ac_cv_prog_CC"; then
3592 ac_ct_CC=$CC
3593 # Extract the first word of "gcc", so it can be a program name with args.
3594 set dummy gcc; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -n "$ac_ct_CC"; then
3601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_ac_ct_CC="gcc"
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3614 done
3615 done
3616 IFS=$as_save_IFS
3620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621 if test -n "$ac_ct_CC"; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623 $as_echo "$ac_ct_CC" >&6; }
3624 else
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3629 if test "x$ac_ct_CC" = x; then
3630 CC=""
3631 else
3632 case $cross_compiling:$ac_tool_warned in
3633 yes:)
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636 ac_tool_warned=yes ;;
3637 esac
3638 CC=$ac_ct_CC
3640 else
3641 CC="$ac_cv_prog_CC"
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_CC="${ac_tool_prefix}cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3685 if test -z "$CC"; then
3686 # Extract the first word of "cc", so it can be a program name with args.
3687 set dummy cc; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_CC+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 ac_prog_rejected=no
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705 ac_prog_rejected=yes
3706 continue
3708 ac_cv_prog_CC="cc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3714 IFS=$as_save_IFS
3716 if test $ac_prog_rejected = yes; then
3717 # We found a bogon in the path, so make sure we never use it.
3718 set dummy $ac_cv_prog_CC
3719 shift
3720 if test $# != 0; then
3721 # We chose a different compiler from the bogus one.
3722 # However, it has the same basename, so the bogon will be chosen
3723 # first if we set CC to just the basename; use the full file name.
3724 shift
3725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
3743 for ac_prog in cl.exe
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$CC" && break
3783 done
3785 if test -z "$CC"; then
3786 ac_ct_CC=$CC
3787 for ac_prog in cl.exe
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CC="$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817 if test -n "$ac_ct_CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819 $as_echo "$ac_ct_CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$ac_ct_CC" && break
3827 done
3829 if test "x$ac_ct_CC" = x; then
3830 CC=""
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833 yes:)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3837 esac
3838 CC=$ac_ct_CC
3845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "no acceptable C compiler found in \$PATH
3848 See \`config.log' for more details" "$LINENO" 5; }
3850 # Provide some information about the compiler.
3851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3852 set X $ac_compile
3853 ac_compiler=$2
3854 for ac_option in --version -v -V -qversion; do
3855 { { ac_try="$ac_compiler $ac_option >&5"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3863 ac_status=$?
3864 if test -s conftest.err; then
3865 sed '10a\
3866 ... rest of stderr output deleted ...
3867 10q' conftest.err >conftest.er1
3868 cat conftest.er1 >&5
3870 rm -f conftest.er1 conftest.err
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }
3873 done
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 ac_clean_files_save=$ac_clean_files
3887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3888 # Try to create an executable without -o first, disregard a.out.
3889 # It will help us diagnose broken compilers, and finding out an intuition
3890 # of exeext.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3892 $as_echo_n "checking whether the C compiler works... " >&6; }
3893 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895 # The possible output files:
3896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898 ac_rmfiles=
3899 for ac_file in $ac_files
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3904 esac
3905 done
3906 rm -f $ac_rmfiles
3908 if { { ac_try="$ac_link_default"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link_default") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }; then :
3919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3920 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3921 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3922 # so that the user can short-circuit this test for compilers unknown to
3923 # Autoconf.
3924 for ac_file in $ac_files ''
3926 test -f "$ac_file" || continue
3927 case $ac_file in
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3930 [ab].out )
3931 # We found the default executable, but exeext='' is most
3932 # certainly right.
3933 break;;
3934 *.* )
3935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3936 then :; else
3937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 # We set ac_cv_exeext here because the later test for it is not
3940 # safe: cross compilers may not add the suffix if given an `-o'
3941 # argument, so we may need to know it at that point already.
3942 # Even if this section looks crufty: it has the advantage of
3943 # actually working.
3944 break;;
3946 break;;
3947 esac
3948 done
3949 test "$ac_cv_exeext" = no && ac_cv_exeext=
3951 else
3952 ac_file=''
3954 if test -z "$ac_file"; then :
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error 77 "C compiler cannot create executables
3963 See \`config.log' for more details" "$LINENO" 5; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3969 $as_echo_n "checking for C compiler default output file name... " >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3971 $as_echo "$ac_file" >&6; }
3972 ac_exeext=$ac_cv_exeext
3974 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3975 ac_clean_files=$ac_clean_files_save
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3977 $as_echo_n "checking for suffix of executables... " >&6; }
3978 if { { ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_link") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }; then :
3989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3991 # work properly (i.e., refer to `conftest.exe'), while it won't with
3992 # `rm'.
3993 for ac_file in conftest.exe conftest conftest.*; do
3994 test -f "$ac_file" || continue
3995 case $ac_file in
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 break;;
3999 * ) break;;
4000 esac
4001 done
4002 else
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4006 See \`config.log' for more details" "$LINENO" 5; }
4008 rm -f conftest conftest$ac_cv_exeext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4010 $as_echo "$ac_cv_exeext" >&6; }
4012 rm -f conftest.$ac_ext
4013 EXEEXT=$ac_cv_exeext
4014 ac_exeext=$EXEEXT
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <stdio.h>
4019 main ()
4021 FILE *f = fopen ("conftest.out", "w");
4022 return ferror (f) || fclose (f) != 0;
4025 return 0;
4027 _ACEOF
4028 ac_clean_files="$ac_clean_files conftest.out"
4029 # Check that the compiler produces executables we can run. If not, either
4030 # the compiler is broken, or we cross compile.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4032 $as_echo_n "checking whether we are cross compiling... " >&6; }
4033 if test "$cross_compiling" != yes; then
4034 { { ac_try="$ac_link"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_link") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 if { ac_try='./conftest$ac_cv_exeext'
4046 { { case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_try") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; }; then
4056 cross_compiling=no
4057 else
4058 if test "$cross_compiling" = maybe; then
4059 cross_compiling=yes
4060 else
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $? "cannot run C compiled programs.
4064 If you meant to cross compile, use \`--host'.
4065 See \`config.log' for more details" "$LINENO" 5; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4070 $as_echo "$cross_compiling" >&6; }
4072 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4073 ac_clean_files=$ac_clean_files_save
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4075 $as_echo_n "checking for suffix of object files... " >&6; }
4076 if ${ac_cv_objext+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4083 main ()
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.o conftest.obj
4091 if { { ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compile") 2>&5
4099 ac_status=$?
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; then :
4102 for ac_file in conftest.o conftest.obj conftest.*; do
4103 test -f "$ac_file" || continue;
4104 case $ac_file in
4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4107 break;;
4108 esac
4109 done
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot compute suffix of object files: cannot compile
4117 See \`config.log' for more details" "$LINENO" 5; }
4119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4122 $as_echo "$ac_cv_objext" >&6; }
4123 OBJEXT=$ac_cv_objext
4124 ac_objext=$OBJEXT
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4127 if ${ac_cv_c_compiler_gnu+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4136 #ifndef __GNUC__
4137 choke me
4138 #endif
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_compiler_gnu=yes
4146 else
4147 ac_compiler_gnu=no
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4155 if test $ac_compiler_gnu = yes; then
4156 GCC=yes
4157 else
4158 GCC=
4160 ac_test_CFLAGS=${CFLAGS+set}
4161 ac_save_CFLAGS=$CFLAGS
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4164 if ${ac_cv_prog_cc_g+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 ac_save_c_werror_flag=$ac_c_werror_flag
4168 ac_c_werror_flag=yes
4169 ac_cv_prog_cc_g=no
4170 CFLAGS="-g"
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_g=yes
4184 else
4185 CFLAGS=""
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4194 return 0;
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4199 else
4200 ac_c_werror_flag=$ac_save_c_werror_flag
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4206 main ()
4210 return 0;
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_g=yes
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4224 $as_echo "$ac_cv_prog_cc_g" >&6; }
4225 if test "$ac_test_CFLAGS" = set; then
4226 CFLAGS=$ac_save_CFLAGS
4227 elif test $ac_cv_prog_cc_g = yes; then
4228 if test "$GCC" = yes; then
4229 CFLAGS="-g -O2"
4230 else
4231 CFLAGS="-g"
4233 else
4234 if test "$GCC" = yes; then
4235 CFLAGS="-O2"
4236 else
4237 CFLAGS=
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4242 if ${ac_cv_prog_cc_c89+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_cv_prog_cc_c89=no
4246 ac_save_CC=$CC
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <stdarg.h>
4250 #include <stdio.h>
4251 struct stat;
4252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4253 struct buf { int x; };
4254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4255 static char *e (p, i)
4256 char **p;
4257 int i;
4259 return p[i];
4261 static char *f (char * (*g) (char **, int), char **p, ...)
4263 char *s;
4264 va_list v;
4265 va_start (v,p);
4266 s = g (p, va_arg (v,int));
4267 va_end (v);
4268 return s;
4271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4272 function prototypes and stuff, but not '\xHH' hex character constants.
4273 These don't provoke an error unfortunately, instead are silently treated
4274 as 'x'. The following induces an error, until -std is added to get
4275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4276 array size at least. It's necessary to write '\x00'==0 to get something
4277 that's true only with -std. */
4278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4281 inside strings and character constants. */
4282 #define FOO(x) 'x'
4283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285 int test (int i, double x);
4286 struct s1 {int (*f) (int a);};
4287 struct s2 {int (*f) (double a);};
4288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 int argc;
4290 char **argv;
4292 main ()
4294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 return 0;
4298 _ACEOF
4299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302 CC="$ac_save_CC $ac_arg"
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_prog_cc_c89=$ac_arg
4306 rm -f core conftest.err conftest.$ac_objext
4307 test "x$ac_cv_prog_cc_c89" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4313 # AC_CACHE_VAL
4314 case "x$ac_cv_prog_cc_c89" in
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4317 $as_echo "none needed" >&6; } ;;
4318 xno)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4320 $as_echo "unsupported" >&6; } ;;
4322 CC="$CC $ac_cv_prog_cc_c89"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4325 esac
4326 if test "x$ac_cv_prog_cc_c89" != xno; then :
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4342 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4343 if ${am_cv_prog_cc_c_o+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4350 main ()
4354 return 0;
4356 _ACEOF
4357 # Make sure it works both with $CC and with simple cc.
4358 # Following AC_PROG_CC_C_O, we do the test twice because some
4359 # compilers refuse to overwrite an existing .o file with -o,
4360 # though they will create one.
4361 am_cv_prog_cc_c_o=yes
4362 for am_i in 1 2; do
4363 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4364 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } \
4368 && test -f conftest2.$ac_objext; then
4369 : OK
4370 else
4371 am_cv_prog_cc_c_o=no
4372 break
4374 done
4375 rm -f core conftest*
4376 unset am_i
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4379 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4380 if test "$am_cv_prog_cc_c_o" != yes; then
4381 # Losing compiler, so override with the script.
4382 # FIXME: It is wrong to rewrite CC.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__CC in this case,
4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4386 CC="$am_aux_dir/compile $CC"
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 DEPDIR="${am__leading_dot}deps"
4396 ac_config_commands="$ac_config_commands depfiles"
4399 am_make=${MAKE-make}
4400 cat > confinc << 'END'
4401 am__doit:
4402 @echo this is the am__doit target
4403 .PHONY: am__doit
4405 # If we don't find an include directive, just comment out the code.
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4407 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4408 am__include="#"
4409 am__quote=
4410 _am_result=none
4411 # First try GNU make style include.
4412 echo "include confinc" > confmf
4413 # Ignore all kinds of additional output from 'make'.
4414 case `$am_make -s -f confmf 2> /dev/null` in #(
4415 *the\ am__doit\ target*)
4416 am__include=include
4417 am__quote=
4418 _am_result=GNU
4420 esac
4421 # Now try BSD make style include.
4422 if test "$am__include" = "#"; then
4423 echo '.include "confinc"' > confmf
4424 case `$am_make -s -f confmf 2> /dev/null` in #(
4425 *the\ am__doit\ target*)
4426 am__include=.include
4427 am__quote="\""
4428 _am_result=BSD
4430 esac
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4435 $as_echo "$_am_result" >&6; }
4436 rm -f confinc confmf
4438 # Check whether --enable-dependency-tracking was given.
4439 if test "${enable_dependency_tracking+set}" = set; then :
4440 enableval=$enable_dependency_tracking;
4443 if test "x$enable_dependency_tracking" != xno; then
4444 am_depcomp="$ac_aux_dir/depcomp"
4445 AMDEPBACKSLASH='\'
4446 am__nodep='_no'
4448 if test "x$enable_dependency_tracking" != xno; then
4449 AMDEP_TRUE=
4450 AMDEP_FALSE='#'
4451 else
4452 AMDEP_TRUE='#'
4453 AMDEP_FALSE=
4458 depcc="$CC" am_compiler_list=
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461 $as_echo_n "checking dependency style of $depcc... " >&6; }
4462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
4471 rm -rf conftest.dir
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4485 am_cv_CC_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 am__universal=false
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4517 case $depmode in
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4522 nosideeffect)
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4532 # This compiler won't grok '-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4538 none) break ;;
4539 esac
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CC_dependencies_compiler_type=$depmode
4559 break
4562 done
4564 cd ..
4565 rm -rf conftest.dir
4566 else
4567 am_cv_CC_dependencies_compiler_type=none
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCC_TRUE=
4579 am__fastdepCC_FALSE='#'
4580 else
4581 am__fastdepCC_TRUE='#'
4582 am__fastdepCC_FALSE=
4586 AX_PROG_CC_FOR_BUILD
4587 case $ac_cv_prog_cc_stdc in #(
4588 no) :
4589 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4590 *) :
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4592 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4593 if ${ac_cv_prog_cc_c99+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_cv_prog_cc_c99=no
4597 ac_save_CC=$CC
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <stdarg.h>
4601 #include <stdbool.h>
4602 #include <stdlib.h>
4603 #include <wchar.h>
4604 #include <stdio.h>
4606 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4607 #define debug(...) fprintf (stderr, __VA_ARGS__)
4608 #define showlist(...) puts (#__VA_ARGS__)
4609 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4610 static void
4611 test_varargs_macros (void)
4613 int x = 1234;
4614 int y = 5678;
4615 debug ("Flag");
4616 debug ("X = %d\n", x);
4617 showlist (The first, second, and third items.);
4618 report (x>y, "x is %d but y is %d", x, y);
4621 // Check long long types.
4622 #define BIG64 18446744073709551615ull
4623 #define BIG32 4294967295ul
4624 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4625 #if !BIG_OK
4626 your preprocessor is broken;
4627 #endif
4628 #if BIG_OK
4629 #else
4630 your preprocessor is broken;
4631 #endif
4632 static long long int bignum = -9223372036854775807LL;
4633 static unsigned long long int ubignum = BIG64;
4635 struct incomplete_array
4637 int datasize;
4638 double data[];
4641 struct named_init {
4642 int number;
4643 const wchar_t *name;
4644 double average;
4647 typedef const char *ccp;
4649 static inline int
4650 test_restrict (ccp restrict text)
4652 // See if C++-style comments work.
4653 // Iterate through items via the restricted pointer.
4654 // Also check for declarations in for loops.
4655 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4656 continue;
4657 return 0;
4660 // Check varargs and va_copy.
4661 static void
4662 test_varargs (const char *format, ...)
4664 va_list args;
4665 va_start (args, format);
4666 va_list args_copy;
4667 va_copy (args_copy, args);
4669 const char *str;
4670 int number;
4671 float fnumber;
4673 while (*format)
4675 switch (*format++)
4677 case 's': // string
4678 str = va_arg (args_copy, const char *);
4679 break;
4680 case 'd': // int
4681 number = va_arg (args_copy, int);
4682 break;
4683 case 'f': // float
4684 fnumber = va_arg (args_copy, double);
4685 break;
4686 default:
4687 break;
4690 va_end (args_copy);
4691 va_end (args);
4695 main ()
4698 // Check bool.
4699 _Bool success = false;
4701 // Check restrict.
4702 if (test_restrict ("String literal") == 0)
4703 success = true;
4704 char *restrict newvar = "Another string";
4706 // Check varargs.
4707 test_varargs ("s, d' f .", "string", 65, 34.234);
4708 test_varargs_macros ();
4710 // Check flexible array members.
4711 struct incomplete_array *ia =
4712 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4713 ia->datasize = 10;
4714 for (int i = 0; i < ia->datasize; ++i)
4715 ia->data[i] = i * 1.234;
4717 // Check named initializers.
4718 struct named_init ni = {
4719 .number = 34,
4720 .name = L"Test wide string",
4721 .average = 543.34343,
4724 ni.number = 58;
4726 int dynamic_array[ni.number];
4727 dynamic_array[ni.number - 1] = 543;
4729 // work around unused variable warnings
4730 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4731 || dynamic_array[ni.number - 1] != 543);
4734 return 0;
4736 _ACEOF
4737 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4739 CC="$ac_save_CC $ac_arg"
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_prog_cc_c99=$ac_arg
4743 rm -f core conftest.err conftest.$ac_objext
4744 test "x$ac_cv_prog_cc_c99" != "xno" && break
4745 done
4746 rm -f conftest.$ac_ext
4747 CC=$ac_save_CC
4750 # AC_CACHE_VAL
4751 case "x$ac_cv_prog_cc_c99" in
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4754 $as_echo "none needed" >&6; } ;;
4755 xno)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4757 $as_echo "unsupported" >&6; } ;;
4759 CC="$CC $ac_cv_prog_cc_c99"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4761 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4762 esac
4763 if test "x$ac_cv_prog_cc_c99" != xno; then :
4764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4768 if ${ac_cv_prog_cc_c89+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_cv_prog_cc_c89=no
4772 ac_save_CC=$CC
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <stdarg.h>
4776 #include <stdio.h>
4777 struct stat;
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4782 char **p;
4783 int i;
4785 return p[i];
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4789 char *s;
4790 va_list v;
4791 va_start (v,p);
4792 s = g (p, va_arg (v,int));
4793 va_end (v);
4794 return s;
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4808 #define FOO(x) 'x'
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4815 int argc;
4816 char **argv;
4818 main ()
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4822 return 0;
4824 _ACEOF
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4834 done
4835 rm -f conftest.$ac_ext
4836 CC=$ac_save_CC
4839 # AC_CACHE_VAL
4840 case "x$ac_cv_prog_cc_c89" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4844 xno)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4851 esac
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4853 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4854 else
4855 ac_cv_prog_cc_stdc=no
4860 esac
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4862 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4863 if ${ac_cv_prog_cc_stdc+:} false; then :
4864 $as_echo_n "(cached) " >&6
4867 case $ac_cv_prog_cc_stdc in #(
4868 no) :
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4870 $as_echo "unsupported" >&6; } ;; #(
4871 '') :
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4873 $as_echo "none needed" >&6; } ;; #(
4874 *) :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4876 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4877 esac
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4881 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4882 set x ${MAKE-make}
4883 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4884 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 cat >conftest.make <<\_ACEOF
4888 SHELL = /bin/sh
4889 all:
4890 @echo '@@@%%%=$(MAKE)=@@@%%%'
4891 _ACEOF
4892 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4893 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4894 *@@@%%%=?*=@@@%%%*)
4895 eval ac_cv_prog_make_${ac_make}_set=yes;;
4897 eval ac_cv_prog_make_${ac_make}_set=no;;
4898 esac
4899 rm -f conftest.make
4901 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4904 SET_MAKE=
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 SET_MAKE="MAKE=${MAKE-make}"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4912 $as_echo_n "checking whether ln -s works... " >&6; }
4913 LN_S=$as_ln_s
4914 if test "$LN_S" = "ln -s"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916 $as_echo "yes" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4919 $as_echo "no, using $LN_S" >&6; }
4922 for ac_prog in gawk mawk nawk awk
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_AWK+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$AWK"; then
4932 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_AWK="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 AWK=$ac_cv_prog_AWK
4952 if test -n "$AWK"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4954 $as_echo "$AWK" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$AWK" && break
4962 done
4964 case `pwd` in
4965 *\ * | *\ *)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4968 esac
4972 macro_version='2.4.6'
4973 macro_revision='2.4.6'
4987 ltmain=$ac_aux_dir/ltmain.sh
4989 # Backslashify metacharacters that are still active within
4990 # double-quoted strings.
4991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4993 # Same as above, but do not quote variable references.
4994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4996 # Sed substitution to delay expansion of an escaped shell variable in a
4997 # double_quote_subst'ed string.
4998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5000 # Sed substitution to delay expansion of an escaped single quote.
5001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5003 # Sed substitution to avoid accidental globbing in evaled expressions
5004 no_glob_subst='s/\*/\\\*/g'
5006 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5011 $as_echo_n "checking how to print strings... " >&6; }
5012 # Test print first, because it will be a builtin if present.
5013 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5015 ECHO='print -r --'
5016 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5017 ECHO='printf %s\n'
5018 else
5019 # Use this function as a fallback that always works.
5020 func_fallback_echo ()
5022 eval 'cat <<_LTECHO_EOF
5024 _LTECHO_EOF'
5026 ECHO='func_fallback_echo'
5029 # func_echo_all arg...
5030 # Invoke $ECHO with all args, space-separated.
5031 func_echo_all ()
5033 $ECHO ""
5036 case $ECHO in
5037 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5038 $as_echo "printf" >&6; } ;;
5039 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5040 $as_echo "print -r" >&6; } ;;
5041 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5042 $as_echo "cat" >&6; } ;;
5043 esac
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5059 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5060 if ${ac_cv_path_SED+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5064 for ac_i in 1 2 3 4 5 6 7; do
5065 ac_script="$ac_script$as_nl$ac_script"
5066 done
5067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5068 { ac_script=; unset ac_script;}
5069 if test -z "$SED"; then
5070 ac_path_SED_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in sed gsed; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_SED" || continue
5081 # Check for GNU ac_path_SED and select it if it is found.
5082 # Check for GNU $ac_path_SED
5083 case `"$ac_path_SED" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo '' >> "conftest.nl"
5095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_SED_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_SED="$ac_path_SED"
5101 ac_path_SED_max=$ac_count
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5109 $ac_path_SED_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_SED"; then
5115 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5117 else
5118 ac_cv_path_SED=$SED
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5123 $as_echo "$ac_cv_path_SED" >&6; }
5124 SED="$ac_cv_path_SED"
5125 rm -f conftest.sed
5127 test -z "$SED" && SED=sed
5128 Xsed="$SED -e 1s/^X//"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5141 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5142 if ${ac_cv_path_GREP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -z "$GREP"; then
5146 ac_path_GREP_found=false
5147 # Loop through the user's path and test for each of PROGNAME-LIST
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_prog in grep ggrep; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5156 as_fn_executable_p "$ac_path_GREP" || continue
5157 # Check for GNU ac_path_GREP and select it if it is found.
5158 # Check for GNU $ac_path_GREP
5159 case `"$ac_path_GREP" --version 2>&1` in
5160 *GNU*)
5161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163 ac_count=0
5164 $as_echo_n 0123456789 >"conftest.in"
5165 while :
5167 cat "conftest.in" "conftest.in" >"conftest.tmp"
5168 mv "conftest.tmp" "conftest.in"
5169 cp "conftest.in" "conftest.nl"
5170 $as_echo 'GREP' >> "conftest.nl"
5171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5173 as_fn_arith $ac_count + 1 && ac_count=$as_val
5174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5175 # Best one so far, save it but keep looking for a better one
5176 ac_cv_path_GREP="$ac_path_GREP"
5177 ac_path_GREP_max=$ac_count
5179 # 10*(2^10) chars as input seems more than enough
5180 test $ac_count -gt 10 && break
5181 done
5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5183 esac
5185 $ac_path_GREP_found && break 3
5186 done
5187 done
5188 done
5189 IFS=$as_save_IFS
5190 if test -z "$ac_cv_path_GREP"; then
5191 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193 else
5194 ac_cv_path_GREP=$GREP
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5199 $as_echo "$ac_cv_path_GREP" >&6; }
5200 GREP="$ac_cv_path_GREP"
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5204 $as_echo_n "checking for egrep... " >&6; }
5205 if ${ac_cv_path_EGREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5209 then ac_cv_path_EGREP="$GREP -E"
5210 else
5211 if test -z "$EGREP"; then
5212 ac_path_EGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in egrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_EGREP" || continue
5223 # Check for GNU ac_path_EGREP and select it if it is found.
5224 # Check for GNU $ac_path_EGREP
5225 case `"$ac_path_EGREP" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'EGREP' >> "conftest.nl"
5237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_EGREP="$ac_path_EGREP"
5243 ac_path_EGREP_max=$ac_count
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5251 $ac_path_EGREP_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_EGREP"; then
5257 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 else
5260 ac_cv_path_EGREP=$EGREP
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5266 $as_echo "$ac_cv_path_EGREP" >&6; }
5267 EGREP="$ac_cv_path_EGREP"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5271 $as_echo_n "checking for fgrep... " >&6; }
5272 if ${ac_cv_path_FGREP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5276 then ac_cv_path_FGREP="$GREP -F"
5277 else
5278 if test -z "$FGREP"; then
5279 ac_path_FGREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in fgrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_FGREP" || continue
5290 # Check for GNU ac_path_FGREP and select it if it is found.
5291 # Check for GNU $ac_path_FGREP
5292 case `"$ac_path_FGREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'FGREP' >> "conftest.nl"
5304 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_FGREP="$ac_path_FGREP"
5310 ac_path_FGREP_max=$ac_count
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5318 $ac_path_FGREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_FGREP"; then
5324 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 else
5327 ac_cv_path_FGREP=$FGREP
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5333 $as_echo "$ac_cv_path_FGREP" >&6; }
5334 FGREP="$ac_cv_path_FGREP"
5337 test -z "$GREP" && GREP=grep
5357 # Check whether --with-gnu-ld was given.
5358 if test "${with_gnu_ld+set}" = set; then :
5359 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5360 else
5361 with_gnu_ld=no
5364 ac_prog=ld
5365 if test yes = "$GCC"; then
5366 # Check if gcc -print-prog-name=ld gives a path.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5368 $as_echo_n "checking for ld used by $CC... " >&6; }
5369 case $host in
5370 *-*-mingw*)
5371 # gcc leaves a trailing carriage return, which upsets mingw
5372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5375 esac
5376 case $ac_prog in
5377 # Accept absolute paths.
5378 [\\/]* | ?:[\\/]*)
5379 re_direlt='/[^/][^/]*/\.\./'
5380 # Canonicalize the pathname of ld
5381 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5382 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5383 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5384 done
5385 test -z "$LD" && LD=$ac_prog
5388 # If it fails, then pretend we aren't using GCC.
5389 ac_prog=ld
5392 # If it is relative, then search for the first ld in PATH.
5393 with_gnu_ld=unknown
5395 esac
5396 elif test yes = "$with_gnu_ld"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5398 $as_echo_n "checking for GNU ld... " >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5401 $as_echo_n "checking for non-GNU ld... " >&6; }
5403 if ${lt_cv_path_LD+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -z "$LD"; then
5407 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5408 for ac_dir in $PATH; do
5409 IFS=$lt_save_ifs
5410 test -z "$ac_dir" && ac_dir=.
5411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5412 lt_cv_path_LD=$ac_dir/$ac_prog
5413 # Check to see if the program is GNU ld. I'd rather use --version,
5414 # but apparently some variants of GNU ld only accept -v.
5415 # Break only if it was the GNU/non-GNU ld that we prefer.
5416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5417 *GNU* | *'with BFD'*)
5418 test no != "$with_gnu_ld" && break
5421 test yes != "$with_gnu_ld" && break
5423 esac
5425 done
5426 IFS=$lt_save_ifs
5427 else
5428 lt_cv_path_LD=$LD # Let the user override the test with a path.
5432 LD=$lt_cv_path_LD
5433 if test -n "$LD"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5435 $as_echo "$LD" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5442 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5443 if ${lt_cv_prog_gnu_ld+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5447 case `$LD -v 2>&1 </dev/null` in
5448 *GNU* | *'with BFD'*)
5449 lt_cv_prog_gnu_ld=yes
5452 lt_cv_prog_gnu_ld=no
5454 esac
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5457 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5458 with_gnu_ld=$lt_cv_prog_gnu_ld
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5469 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5470 if ${lt_cv_path_NM+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$NM"; then
5474 # Let the user override the test.
5475 lt_cv_path_NM=$NM
5476 else
5477 lt_nm_to_check=${ac_tool_prefix}nm
5478 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5479 lt_nm_to_check="$lt_nm_to_check nm"
5481 for lt_tmp_nm in $lt_nm_to_check; do
5482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5484 IFS=$lt_save_ifs
5485 test -z "$ac_dir" && ac_dir=.
5486 tmp_nm=$ac_dir/$lt_tmp_nm
5487 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5488 # Check to see if the nm accepts a BSD-compat flag.
5489 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5490 # nm: unknown option "B" ignored
5491 # Tru64's nm complains that /dev/null is an invalid object file
5492 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5493 case $build_os in
5494 mingw*) lt_bad_file=conftest.nm/nofile ;;
5495 *) lt_bad_file=/dev/null ;;
5496 esac
5497 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5498 *$lt_bad_file* | *'Invalid file or object type'*)
5499 lt_cv_path_NM="$tmp_nm -B"
5500 break 2
5503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5504 */dev/null*)
5505 lt_cv_path_NM="$tmp_nm -p"
5506 break 2
5509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5510 continue # so that we can try to find one that supports BSD flags
5512 esac
5514 esac
5516 done
5517 IFS=$lt_save_ifs
5518 done
5519 : ${lt_cv_path_NM=no}
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5523 $as_echo "$lt_cv_path_NM" >&6; }
5524 if test no != "$lt_cv_path_NM"; then
5525 NM=$lt_cv_path_NM
5526 else
5527 # Didn't find any BSD compatible name lister, look for dumpbin.
5528 if test -n "$DUMPBIN"; then :
5529 # Let the user override the test.
5530 else
5531 if test -n "$ac_tool_prefix"; then
5532 for ac_prog in dumpbin "link -dump"
5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_DUMPBIN+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$DUMPBIN"; then
5542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 DUMPBIN=$ac_cv_prog_DUMPBIN
5562 if test -n "$DUMPBIN"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5564 $as_echo "$DUMPBIN" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 test -n "$DUMPBIN" && break
5572 done
5574 if test -z "$DUMPBIN"; then
5575 ac_ct_DUMPBIN=$DUMPBIN
5576 for ac_prog in dumpbin "link -dump"
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$ac_ct_DUMPBIN"; then
5586 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5606 if test -n "$ac_ct_DUMPBIN"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5608 $as_echo "$ac_ct_DUMPBIN" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5615 test -n "$ac_ct_DUMPBIN" && break
5616 done
5618 if test "x$ac_ct_DUMPBIN" = x; then
5619 DUMPBIN=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 DUMPBIN=$ac_ct_DUMPBIN
5631 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5632 *COFF*)
5633 DUMPBIN="$DUMPBIN -symbols -headers"
5636 DUMPBIN=:
5638 esac
5641 if test : != "$DUMPBIN"; then
5642 NM=$DUMPBIN
5645 test -z "$NM" && NM=nm
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5653 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5654 if ${lt_cv_nm_interface+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 lt_cv_nm_interface="BSD nm"
5658 echo "int some_variable = 0;" > conftest.$ac_ext
5659 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5660 (eval "$ac_compile" 2>conftest.err)
5661 cat conftest.err >&5
5662 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5663 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5666 cat conftest.out >&5
5667 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5668 lt_cv_nm_interface="MS dumpbin"
5670 rm -f conftest*
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5673 $as_echo "$lt_cv_nm_interface" >&6; }
5675 # find the maximum length of command line arguments
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5677 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5678 if ${lt_cv_sys_max_cmd_len+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5682 teststring=ABCD
5684 case $build_os in
5685 msdosdjgpp*)
5686 # On DJGPP, this test can blow up pretty badly due to problems in libc
5687 # (any single argument exceeding 2000 bytes causes a buffer overrun
5688 # during glob expansion). Even if it were fixed, the result of this
5689 # check would be larger than it should be.
5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5693 gnu*)
5694 # Under GNU Hurd, this test is not required because there is
5695 # no limit to the length of command line arguments.
5696 # Libtool will interpret -1 as no limit whatsoever
5697 lt_cv_sys_max_cmd_len=-1;
5700 cygwin* | mingw* | cegcc*)
5701 # On Win9x/ME, this test blows up -- it succeeds, but takes
5702 # about 5 minutes as the teststring grows exponentially.
5703 # Worse, since 9x/ME are not pre-emptively multitasking,
5704 # you end up with a "frozen" computer, even though with patience
5705 # the test eventually succeeds (with a max line length of 256k).
5706 # Instead, let's just punt: use the minimum linelength reported by
5707 # all of the supported platforms: 8192 (on NT/2K/XP).
5708 lt_cv_sys_max_cmd_len=8192;
5711 mint*)
5712 # On MiNT this can take a long time and run out of memory.
5713 lt_cv_sys_max_cmd_len=8192;
5716 amigaos*)
5717 # On AmigaOS with pdksh, this test takes hours, literally.
5718 # So we just punt and use a minimum line length of 8192.
5719 lt_cv_sys_max_cmd_len=8192;
5722 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5723 # This has been around since 386BSD, at least. Likely further.
5724 if test -x /sbin/sysctl; then
5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5726 elif test -x /usr/sbin/sysctl; then
5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5728 else
5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5731 # And add a safety zone
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5736 interix*)
5737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5738 lt_cv_sys_max_cmd_len=196608
5741 os2*)
5742 # The test takes a long time on OS/2.
5743 lt_cv_sys_max_cmd_len=8192
5746 osf*)
5747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5749 # nice to cause kernel panics so lets avoid the loop below.
5750 # First set a reasonable default.
5751 lt_cv_sys_max_cmd_len=16384
5753 if test -x /sbin/sysconfig; then
5754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5755 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5756 esac
5759 sco3.2v5*)
5760 lt_cv_sys_max_cmd_len=102400
5762 sysv5* | sco5v6* | sysv4.2uw2*)
5763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5764 if test -n "$kargmax"; then
5765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5766 else
5767 lt_cv_sys_max_cmd_len=32768
5771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5772 if test -n "$lt_cv_sys_max_cmd_len" && \
5773 test undefined != "$lt_cv_sys_max_cmd_len"; then
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5776 else
5777 # Make teststring a little bigger before we do anything with it.
5778 # a 1K string should be a reasonable start.
5779 for i in 1 2 3 4 5 6 7 8; do
5780 teststring=$teststring$teststring
5781 done
5782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5783 # If test is not a shell built-in, we'll probably end up computing a
5784 # maximum length that is only half of the actual maximum length, but
5785 # we can't tell.
5786 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5787 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5788 test 17 != "$i" # 1/2 MB should be enough
5790 i=`expr $i + 1`
5791 teststring=$teststring$teststring
5792 done
5793 # Only check the string length outside the loop.
5794 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5795 teststring=
5796 # Add a significant safety factor because C++ compilers can tack on
5797 # massive amounts of additional arguments before passing them to the
5798 # linker. It appears as though 1/2 is a usable value.
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5802 esac
5806 if test -n "$lt_cv_sys_max_cmd_len"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5808 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5811 $as_echo "none" >&6; }
5813 max_cmd_len=$lt_cv_sys_max_cmd_len
5820 : ${CP="cp -f"}
5821 : ${MV="mv -f"}
5822 : ${RM="rm -f"}
5824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5825 lt_unset=unset
5826 else
5827 lt_unset=false
5834 # test EBCDIC or ASCII
5835 case `echo X|tr X '\101'` in
5836 A) # ASCII based system
5837 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5838 lt_SP2NL='tr \040 \012'
5839 lt_NL2SP='tr \015\012 \040\040'
5841 *) # EBCDIC based system
5842 lt_SP2NL='tr \100 \n'
5843 lt_NL2SP='tr \r\n \100\100'
5845 esac
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5856 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5857 if ${lt_cv_to_host_file_cmd+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 case $host in
5861 *-*-mingw* )
5862 case $build in
5863 *-*-mingw* ) # actually msys
5864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5866 *-*-cygwin* )
5867 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5869 * ) # otherwise, assume *nix
5870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5872 esac
5874 *-*-cygwin* )
5875 case $build in
5876 *-*-mingw* ) # actually msys
5877 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5879 *-*-cygwin* )
5880 lt_cv_to_host_file_cmd=func_convert_file_noop
5882 * ) # otherwise, assume *nix
5883 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5885 esac
5887 * ) # unhandled hosts (and "normal" native builds)
5888 lt_cv_to_host_file_cmd=func_convert_file_noop
5890 esac
5894 to_host_file_cmd=$lt_cv_to_host_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5896 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5903 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5904 if ${lt_cv_to_tool_file_cmd+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 #assume ordinary cross tools, or native build.
5908 lt_cv_to_tool_file_cmd=func_convert_file_noop
5909 case $host in
5910 *-*-mingw* )
5911 case $build in
5912 *-*-mingw* ) # actually msys
5913 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5915 esac
5917 esac
5921 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5923 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5930 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5931 if ${lt_cv_ld_reload_flag+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 lt_cv_ld_reload_flag='-r'
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5937 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5938 reload_flag=$lt_cv_ld_reload_flag
5939 case $reload_flag in
5940 "" | " "*) ;;
5941 *) reload_flag=" $reload_flag" ;;
5942 esac
5943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5944 case $host_os in
5945 cygwin* | mingw* | pw32* | cegcc*)
5946 if test yes != "$GCC"; then
5947 reload_cmds=false
5950 darwin*)
5951 if test yes = "$GCC"; then
5952 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5953 else
5954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957 esac
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_OBJDUMP+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$OBJDUMP"; then
5976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5989 done
5990 done
5991 IFS=$as_save_IFS
5995 OBJDUMP=$ac_cv_prog_OBJDUMP
5996 if test -n "$OBJDUMP"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5998 $as_echo "$OBJDUMP" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6006 if test -z "$ac_cv_prog_OBJDUMP"; then
6007 ac_ct_OBJDUMP=$OBJDUMP
6008 # Extract the first word of "objdump", so it can be a program name with args.
6009 set dummy objdump; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$ac_ct_OBJDUMP"; then
6016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6029 done
6030 done
6031 IFS=$as_save_IFS
6035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6036 if test -n "$ac_ct_OBJDUMP"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6038 $as_echo "$ac_ct_OBJDUMP" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6044 if test "x$ac_ct_OBJDUMP" = x; then
6045 OBJDUMP="false"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 OBJDUMP=$ac_ct_OBJDUMP
6055 else
6056 OBJDUMP="$ac_cv_prog_OBJDUMP"
6059 test -z "$OBJDUMP" && OBJDUMP=objdump
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6070 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6071 if ${lt_cv_deplibs_check_method+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 lt_cv_file_magic_cmd='$MAGIC_CMD'
6075 lt_cv_file_magic_test_file=
6076 lt_cv_deplibs_check_method='unknown'
6077 # Need to set the preceding variable on all platforms that support
6078 # interlibrary dependencies.
6079 # 'none' -- dependencies not supported.
6080 # 'unknown' -- same as none, but documents that we really don't know.
6081 # 'pass_all' -- all dependencies passed with no checks.
6082 # 'test_compile' -- check by making test program.
6083 # 'file_magic [[regex]]' -- check by looking for files in library path
6084 # that responds to the $file_magic_cmd with a given extended regex.
6085 # If you have 'file' or equivalent on your system and you're not sure
6086 # whether 'pass_all' will *always* work, you probably want this one.
6088 case $host_os in
6089 aix[4-9]*)
6090 lt_cv_deplibs_check_method=pass_all
6093 beos*)
6094 lt_cv_deplibs_check_method=pass_all
6097 bsdi[45]*)
6098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6099 lt_cv_file_magic_cmd='/usr/bin/file -L'
6100 lt_cv_file_magic_test_file=/shlib/libc.so
6103 cygwin*)
6104 # func_win32_libid is a shell function defined in ltmain.sh
6105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6106 lt_cv_file_magic_cmd='func_win32_libid'
6109 mingw* | pw32*)
6110 # Base MSYS/MinGW do not provide the 'file' command needed by
6111 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6112 # unless we find 'file', for example because we are cross-compiling.
6113 if ( file / ) >/dev/null 2>&1; then
6114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6115 lt_cv_file_magic_cmd='func_win32_libid'
6116 else
6117 # Keep this pattern in sync with the one in func_win32_libid.
6118 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6119 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 cegcc*)
6124 # use the weaker test based on 'objdump'. See mingw*.
6125 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6126 lt_cv_file_magic_cmd='$OBJDUMP -f'
6129 darwin* | rhapsody*)
6130 lt_cv_deplibs_check_method=pass_all
6133 freebsd* | dragonfly*)
6134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6135 case $host_cpu in
6136 i*86 )
6137 # Not sure whether the presence of OpenBSD here was a mistake.
6138 # Let's accept both of them until this is cleared up.
6139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6140 lt_cv_file_magic_cmd=/usr/bin/file
6141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6143 esac
6144 else
6145 lt_cv_deplibs_check_method=pass_all
6149 haiku*)
6150 lt_cv_deplibs_check_method=pass_all
6153 hpux10.20* | hpux11*)
6154 lt_cv_file_magic_cmd=/usr/bin/file
6155 case $host_cpu in
6156 ia64*)
6157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6160 hppa*64*)
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6168 esac
6171 interix[3-9]*)
6172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6176 irix5* | irix6* | nonstopux*)
6177 case $LD in
6178 *-32|*"-32 ") libmagic=32-bit;;
6179 *-n32|*"-n32 ") libmagic=N32;;
6180 *-64|*"-64 ") libmagic=64-bit;;
6181 *) libmagic=never-match;;
6182 esac
6183 lt_cv_deplibs_check_method=pass_all
6186 # This must be glibc/ELF.
6187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6188 lt_cv_deplibs_check_method=pass_all
6191 netbsd*)
6192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6194 else
6195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199 newos6*)
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6201 lt_cv_file_magic_cmd=/usr/bin/file
6202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6205 *nto* | *qnx*)
6206 lt_cv_deplibs_check_method=pass_all
6209 openbsd* | bitrig*)
6210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6212 else
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217 osf3* | osf4* | osf5*)
6218 lt_cv_deplibs_check_method=pass_all
6221 rdos*)
6222 lt_cv_deplibs_check_method=pass_all
6225 solaris*)
6226 lt_cv_deplibs_check_method=pass_all
6229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6230 lt_cv_deplibs_check_method=pass_all
6233 sysv4 | sysv4.3*)
6234 case $host_vendor in
6235 motorola)
6236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6239 ncr)
6240 lt_cv_deplibs_check_method=pass_all
6242 sequent)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6246 sni)
6247 lt_cv_file_magic_cmd='/bin/file'
6248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6249 lt_cv_file_magic_test_file=/lib/libc.so
6251 siemens)
6252 lt_cv_deplibs_check_method=pass_all
6255 lt_cv_deplibs_check_method=pass_all
6257 esac
6260 tpf*)
6261 lt_cv_deplibs_check_method=pass_all
6263 os2*)
6264 lt_cv_deplibs_check_method=pass_all
6266 esac
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6270 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6272 file_magic_glob=
6273 want_nocaseglob=no
6274 if test "$build" = "$host"; then
6275 case $host_os in
6276 mingw* | pw32*)
6277 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6278 want_nocaseglob=yes
6279 else
6280 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6283 esac
6286 file_magic_cmd=$lt_cv_file_magic_cmd
6287 deplibs_check_method=$lt_cv_deplibs_check_method
6288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_DLLTOOL+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$DLLTOOL"; then
6320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 DLLTOOL=$ac_cv_prog_DLLTOOL
6340 if test -n "$DLLTOOL"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6342 $as_echo "$DLLTOOL" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 if test -z "$ac_cv_prog_DLLTOOL"; then
6351 ac_ct_DLLTOOL=$DLLTOOL
6352 # Extract the first word of "dlltool", so it can be a program name with args.
6353 set dummy dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_DLLTOOL"; then
6360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6380 if test -n "$ac_ct_DLLTOOL"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6382 $as_echo "$ac_ct_DLLTOOL" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6388 if test "x$ac_ct_DLLTOOL" = x; then
6389 DLLTOOL="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 DLLTOOL=$ac_ct_DLLTOOL
6399 else
6400 DLLTOOL="$ac_cv_prog_DLLTOOL"
6403 test -z "$DLLTOOL" && DLLTOOL=dlltool
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 lt_cv_sharedlib_from_linklib_cmd='unknown'
6421 case $host_os in
6422 cygwin* | mingw* | pw32* | cegcc*)
6423 # two different shell functions defined in ltmain.sh;
6424 # decide which one to use based on capabilities of $DLLTOOL
6425 case `$DLLTOOL --help 2>&1` in
6426 *--identify-strict*)
6427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6432 esac
6435 # fallback: assume linklib IS sharedlib
6436 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6438 esac
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6453 if test -n "$ac_tool_prefix"; then
6454 for ac_prog in ar
6456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_AR+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$AR"; then
6464 ac_cv_prog_AR="$AR" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 AR=$ac_cv_prog_AR
6484 if test -n "$AR"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6486 $as_echo "$AR" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6493 test -n "$AR" && break
6494 done
6496 if test -z "$AR"; then
6497 ac_ct_AR=$AR
6498 for ac_prog in ar
6500 # Extract the first word of "$ac_prog", so it can be a program name with args.
6501 set dummy $ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_AR"; then
6508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_AR="$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6528 if test -n "$ac_ct_AR"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6530 $as_echo "$ac_ct_AR" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$ac_ct_AR" && break
6538 done
6540 if test "x$ac_ct_AR" = x; then
6541 AR="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 AR=$ac_ct_AR
6553 : ${AR=ar}
6554 : ${AR_FLAGS=cru}
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6567 $as_echo_n "checking for archiver @FILE support... " >&6; }
6568 if ${lt_cv_ar_at_file+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 lt_cv_ar_at_file=no
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6576 main ()
6580 return 0;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 echo conftest.$ac_objext > conftest.lst
6585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6587 (eval $lt_ar_try) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }
6591 if test 0 -eq "$ac_status"; then
6592 # Ensure the archiver fails upon bogus file names.
6593 rm -f conftest.$ac_objext libconftest.a
6594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6595 (eval $lt_ar_try) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; }
6599 if test 0 -ne "$ac_status"; then
6600 lt_cv_ar_at_file=@
6603 rm -f conftest.* libconftest.a
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6610 $as_echo "$lt_cv_ar_at_file" >&6; }
6612 if test no = "$lt_cv_ar_at_file"; then
6613 archiver_list_spec=
6614 else
6615 archiver_list_spec=$lt_cv_ar_at_file
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}strip; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_STRIP+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 STRIP=$ac_cv_prog_STRIP
6653 if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655 $as_echo "$STRIP" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_STRIP"; then
6664 ac_ct_STRIP=$STRIP
6665 # Extract the first word of "strip", so it can be a program name with args.
6666 set dummy strip; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693 if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695 $as_echo "$ac_ct_STRIP" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_STRIP" = x; then
6702 STRIP=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 STRIP=$ac_ct_STRIP
6712 else
6713 STRIP="$ac_cv_prog_STRIP"
6716 test -z "$STRIP" && STRIP=:
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_RANLIB+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754 $as_echo "$RANLIB" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794 $as_echo "$ac_ct_RANLIB" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_RANLIB" = x; then
6801 RANLIB=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 RANLIB=$ac_ct_RANLIB
6811 else
6812 RANLIB="$ac_cv_prog_RANLIB"
6815 test -z "$RANLIB" && RANLIB=:
6822 # Determine commands to create old-style static archives.
6823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824 old_postinstall_cmds='chmod 644 $oldlib'
6825 old_postuninstall_cmds=
6827 if test -n "$RANLIB"; then
6828 case $host_os in
6829 bitrig* | openbsd*)
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6835 esac
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6839 case $host_os in
6840 darwin*)
6841 lock_old_archive_extraction=yes ;;
6843 lock_old_archive_extraction=no ;;
6844 esac
6884 # If no C compiler was specified, use CC.
6885 LTCC=${LTCC-"$CC"}
6887 # If no C compiler flags were specified, use CFLAGS.
6888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890 # Allow CC to be a program name with arguments.
6891 compiler=$CC
6894 # Check for command to grab the raw symbol name followed by C symbol from nm.
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6896 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6897 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6901 # These are sane defaults that work on at least a few old systems.
6902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6904 # Character class describing NM global symbol codes.
6905 symcode='[BCDEGRST]'
6907 # Regexp to match symbols that can be accessed directly from C.
6908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6910 # Define system-specific variables.
6911 case $host_os in
6912 aix*)
6913 symcode='[BCDT]'
6915 cygwin* | mingw* | pw32* | cegcc*)
6916 symcode='[ABCDGISTW]'
6918 hpux*)
6919 if test ia64 = "$host_cpu"; then
6920 symcode='[ABCDEGRST]'
6923 irix* | nonstopux*)
6924 symcode='[BCDEGRST]'
6926 osf*)
6927 symcode='[BCDEGQRST]'
6929 solaris*)
6930 symcode='[BDRT]'
6932 sco3.2v5*)
6933 symcode='[DT]'
6935 sysv4.2uw2*)
6936 symcode='[DT]'
6938 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6939 symcode='[ABDT]'
6941 sysv4)
6942 symcode='[DFNSTU]'
6944 esac
6946 # If we're using GNU nm, then use its standard symbol codes.
6947 case `$NM -V 2>&1` in
6948 *GNU* | *'with BFD'*)
6949 symcode='[ABCDGIRSTW]' ;;
6950 esac
6952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953 # Gets list of data symbols to import.
6954 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6955 # Adjust the below global symbol transforms to fixup imported variables.
6956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6958 lt_c_name_lib_hook="\
6959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6961 else
6962 # Disable hooks by default.
6963 lt_cv_sys_global_symbol_to_import=
6964 lt_cdecl_hook=
6965 lt_c_name_hook=
6966 lt_c_name_lib_hook=
6969 # Transform an extracted symbol line into a proper C declaration.
6970 # Some systems (esp. on ia64) link data and code symbols differently,
6971 # so use this general approach.
6972 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6973 $lt_cdecl_hook\
6974 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6975 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6977 # Transform an extracted symbol line into symbol name and symbol address
6978 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6979 $lt_c_name_hook\
6980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6983 # Transform an extracted symbol line into symbol name with lib prefix and
6984 # symbol address.
6985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6986 $lt_c_name_lib_hook\
6987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6988 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6989 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6991 # Handle CRLF in mingw tool chain
6992 opt_cr=
6993 case $build_os in
6994 mingw*)
6995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6997 esac
6999 # Try without a prefix underscore, then with it.
7000 for ac_symprfx in "" "_"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7007 # Fake it for dumpbin and say T for any non-static function,
7008 # D for any global variable and I for any imported variable.
7009 # Also find C++ and __fastcall symbols from MSVC++,
7010 # which start with @ or ?.
7011 lt_cv_sys_global_symbol_pipe="$AWK '"\
7012 " {last_section=section; section=\$ 3};"\
7013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7015 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7016 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7017 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7018 " \$ 0!~/External *\|/{next};"\
7019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7020 " {if(hide[section]) next};"\
7021 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7022 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7023 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7024 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7025 " ' prfx=^$ac_symprfx"
7026 else
7027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7031 # Check to see that the pipe works correctly.
7032 pipe_works=no
7034 rm -f conftest*
7035 cat > conftest.$ac_ext <<_LT_EOF
7036 #ifdef __cplusplus
7037 extern "C" {
7038 #endif
7039 char nm_test_var;
7040 void nm_test_func(void);
7041 void nm_test_func(void){}
7042 #ifdef __cplusplus
7044 #endif
7045 int main(){nm_test_var='a';nm_test_func();return(0);}
7046 _LT_EOF
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 # Now try to grab the symbols.
7054 nlist=conftest.nm
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; } && test -s "$nlist"; then
7060 # Try sorting and uniquifying the output.
7061 if sort "$nlist" | uniq > "$nlist"T; then
7062 mv -f "$nlist"T "$nlist"
7063 else
7064 rm -f "$nlist"T
7067 # Make sure that we snagged all the symbols we need.
7068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7070 cat <<_LT_EOF > conftest.$ac_ext
7071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7072 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7073 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7074 relocations are performed -- see ld's documentation on pseudo-relocs. */
7075 # define LT_DLSYM_CONST
7076 #elif defined __osf__
7077 /* This system does not cope well with relocations in const data. */
7078 # define LT_DLSYM_CONST
7079 #else
7080 # define LT_DLSYM_CONST const
7081 #endif
7083 #ifdef __cplusplus
7084 extern "C" {
7085 #endif
7087 _LT_EOF
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091 cat <<_LT_EOF >> conftest.$ac_ext
7093 /* The mapping between symbol names and symbols. */
7094 LT_DLSYM_CONST struct {
7095 const char *name;
7096 void *address;
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 { "@PROGRAM@", (void *) 0 },
7101 _LT_EOF
7102 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7104 {0, (void *) 0}
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7112 #endif
7114 #ifdef __cplusplus
7116 #endif
7117 _LT_EOF
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_globsym_save_LIBS=$LIBS
7121 lt_globsym_save_CFLAGS=$CFLAGS
7122 LIBS=conftstm.$ac_objext
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7125 (eval $ac_link) 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7129 pipe_works=yes
7131 LIBS=$lt_globsym_save_LIBS
7132 CFLAGS=$lt_globsym_save_CFLAGS
7133 else
7134 echo "cannot find nm_test_func in $nlist" >&5
7136 else
7137 echo "cannot find nm_test_var in $nlist" >&5
7139 else
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 else
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 rm -rf conftest* conftst*
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test yes = "$pipe_works"; then
7150 break
7151 else
7152 lt_cv_sys_global_symbol_pipe=
7154 done
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7163 $as_echo "failed" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7166 $as_echo "ok" >&6; }
7169 # Response file support.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 nm_file_list_spec='@'
7172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7173 nm_file_list_spec='@'
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7213 $as_echo_n "checking for sysroot... " >&6; }
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval=$with_sysroot;
7218 else
7219 with_sysroot=no
7223 lt_sysroot=
7224 case $with_sysroot in #(
7225 yes)
7226 if test yes = "$GCC"; then
7227 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7229 ;; #(
7231 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7232 ;; #(
7233 no|'')
7234 ;; #(
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7237 $as_echo "$with_sysroot" >&6; }
7238 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7240 esac
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7243 $as_echo "${lt_sysroot:-no}" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7250 $as_echo_n "checking for a working dd... " >&6; }
7251 if ${ac_cv_path_lt_DD+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 printf 0123456789abcdef0123456789abcdef >conftest.i
7255 cat conftest.i conftest.i >conftest2.i
7256 : ${lt_DD:=$DD}
7257 if test -z "$lt_DD"; then
7258 ac_path_lt_DD_found=false
7259 # Loop through the user's path and test for each of PROGNAME-LIST
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_prog in dd; do
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7268 as_fn_executable_p "$ac_path_lt_DD" || continue
7269 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7270 cmp -s conftest.i conftest.out \
7271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7273 $ac_path_lt_DD_found && break 3
7274 done
7275 done
7276 done
7277 IFS=$as_save_IFS
7278 if test -z "$ac_cv_path_lt_DD"; then
7281 else
7282 ac_cv_path_lt_DD=$lt_DD
7285 rm -f conftest.i conftest2.i conftest.out
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7288 $as_echo "$ac_cv_path_lt_DD" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7292 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7293 if ${lt_cv_truncate_bin+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 printf 0123456789abcdef0123456789abcdef >conftest.i
7297 cat conftest.i conftest.i >conftest2.i
7298 lt_cv_truncate_bin=
7299 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7300 cmp -s conftest.i conftest.out \
7301 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7303 rm -f conftest.i conftest2.i conftest.out
7304 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7307 $as_echo "$lt_cv_truncate_bin" >&6; }
7315 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7316 func_cc_basename ()
7318 for cc_temp in $*""; do
7319 case $cc_temp in
7320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7322 \-*) ;;
7323 *) break;;
7324 esac
7325 done
7326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329 # Check whether --enable-libtool-lock was given.
7330 if test "${enable_libtool_lock+set}" = set; then :
7331 enableval=$enable_libtool_lock;
7334 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7336 # Some flags need to be propagated to the compiler or linker for good
7337 # libtool support.
7338 case $host in
7339 ia64-*-hpux*)
7340 # Find out what ABI is being produced by ac_compile, and set mode
7341 # options accordingly.
7342 echo 'int i;' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7345 ac_status=$?
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 case `/usr/bin/file conftest.$ac_objext` in
7349 *ELF-32*)
7350 HPUX_IA64_MODE=32
7352 *ELF-64*)
7353 HPUX_IA64_MODE=64
7355 esac
7357 rm -rf conftest*
7359 *-*-irix6*)
7360 # Find out what ABI is being produced by ac_compile, and set linker
7361 # options accordingly.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test yes = "$lt_cv_prog_gnu_ld"; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -melf32bsmip"
7373 *N32*)
7374 LD="${LD-ld} -melf32bmipn32"
7376 *64-bit*)
7377 LD="${LD-ld} -melf64bmip"
7379 esac
7380 else
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -32"
7385 *N32*)
7386 LD="${LD-ld} -n32"
7388 *64-bit*)
7389 LD="${LD-ld} -64"
7391 esac
7394 rm -rf conftest*
7397 mips64*-*linux*)
7398 # Find out what ABI is being produced by ac_compile, and set linker
7399 # options accordingly.
7400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 emul=elf
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 emul="${emul}32"
7411 *64-bit*)
7412 emul="${emul}64"
7414 esac
7415 case `/usr/bin/file conftest.$ac_objext` in
7416 *MSB*)
7417 emul="${emul}btsmip"
7419 *LSB*)
7420 emul="${emul}ltsmip"
7422 esac
7423 case `/usr/bin/file conftest.$ac_objext` in
7424 *N32*)
7425 emul="${emul}n32"
7427 esac
7428 LD="${LD-ld} -m $emul"
7430 rm -rf conftest*
7433 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7434 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7435 # Find out what ABI is being produced by ac_compile, and set linker
7436 # options accordingly. Note that the listed cases only cover the
7437 # situations where additional linker options are needed (such as when
7438 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7439 # vice versa); the common cases where no linker options are needed do
7440 # not appear in the list.
7441 echo 'int i;' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 case `/usr/bin/file conftest.o` in
7448 *32-bit*)
7449 case $host in
7450 x86_64-*kfreebsd*-gnu)
7451 LD="${LD-ld} -m elf_i386_fbsd"
7453 x86_64-*linux*)
7454 case `/usr/bin/file conftest.o` in
7455 *x86-64*)
7456 LD="${LD-ld} -m elf32_x86_64"
7459 LD="${LD-ld} -m elf_i386"
7461 esac
7463 powerpc64le-*linux*)
7464 LD="${LD-ld} -m elf32lppclinux"
7466 powerpc64-*linux*)
7467 LD="${LD-ld} -m elf32ppclinux"
7469 s390x-*linux*)
7470 LD="${LD-ld} -m elf_s390"
7472 sparc64-*linux*)
7473 LD="${LD-ld} -m elf32_sparc"
7475 esac
7477 *64-bit*)
7478 case $host in
7479 x86_64-*kfreebsd*-gnu)
7480 LD="${LD-ld} -m elf_x86_64_fbsd"
7482 x86_64-*linux*)
7483 LD="${LD-ld} -m elf_x86_64"
7485 powerpcle-*linux*)
7486 LD="${LD-ld} -m elf64lppc"
7488 powerpc-*linux*)
7489 LD="${LD-ld} -m elf64ppc"
7491 s390*-*linux*|s390*-*tpf*)
7492 LD="${LD-ld} -m elf64_s390"
7494 sparc*-*linux*)
7495 LD="${LD-ld} -m elf64_sparc"
7497 esac
7499 esac
7501 rm -rf conftest*
7504 *-*-sco3.2v5*)
7505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7506 SAVE_CFLAGS=$CFLAGS
7507 CFLAGS="$CFLAGS -belf"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7510 if ${lt_cv_cc_needs_belf+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 ac_ext=c
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 lt_cv_cc_needs_belf=yes
7532 else
7533 lt_cv_cc_needs_belf=no
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7546 if test yes != "$lt_cv_cc_needs_belf"; then
7547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7548 CFLAGS=$SAVE_CFLAGS
7551 *-*solaris*)
7552 # Find out what ABI is being produced by ac_compile, and set linker
7553 # options accordingly.
7554 echo 'int i;' > conftest.$ac_ext
7555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7556 (eval $ac_compile) 2>&5
7557 ac_status=$?
7558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559 test $ac_status = 0; }; then
7560 case `/usr/bin/file conftest.o` in
7561 *64-bit*)
7562 case $lt_cv_prog_gnu_ld in
7563 yes*)
7564 case $host in
7565 i?86-*-solaris*|x86_64-*-solaris*)
7566 LD="${LD-ld} -m elf_x86_64"
7568 sparc*-*-solaris*)
7569 LD="${LD-ld} -m elf64_sparc"
7571 esac
7572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7574 LD=${LD-ld}_sol2
7578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7579 LD="${LD-ld} -64"
7582 esac
7584 esac
7586 rm -rf conftest*
7588 esac
7590 need_locks=$enable_libtool_lock
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}mt; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$MANIFEST_TOOL"; then
7601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7621 if test -n "$MANIFEST_TOOL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7623 $as_echo "$MANIFEST_TOOL" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7633 # Extract the first word of "mt", so it can be a program name with args.
7634 set dummy mt; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7654 done
7655 done
7656 IFS=$as_save_IFS
7660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7661 if test -n "$ac_ct_MANIFEST_TOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7670 MANIFEST_TOOL=":"
7671 else
7672 case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7680 else
7681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7687 if ${lt_cv_path_mainfest_tool+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 lt_cv_path_mainfest_tool=no
7691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7693 cat conftest.err >&5
7694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7695 lt_cv_path_mainfest_tool=yes
7697 rm -f conftest*
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7701 if test yes != "$lt_cv_path_mainfest_tool"; then
7702 MANIFEST_TOOL=:
7710 case $host_os in
7711 rhapsody* | darwin*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$DSYMUTIL"; then
7721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DSYMUTIL" = x; then
7790 DSYMUTIL=":"
7791 else
7792 case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798 DSYMUTIL=$ac_ct_DSYMUTIL
7800 else
7801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_NMEDIT+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$NMEDIT"; then
7813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844 ac_ct_NMEDIT=$NMEDIT
7845 # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$ac_ct_NMEDIT"; then
7853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_NMEDIT" = x; then
7882 NMEDIT=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890 NMEDIT=$ac_ct_NMEDIT
7892 else
7893 NMEDIT="$ac_cv_prog_NMEDIT"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_LIPO+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$LIPO"; then
7905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7918 done
7919 done
7920 IFS=$as_save_IFS
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_LIPO"; then
7936 ac_ct_LIPO=$LIPO
7937 # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_LIPO"; then
7945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_LIPO="lipo"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_LIPO" = x; then
7974 LIPO=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 LIPO=$ac_ct_LIPO
7984 else
7985 LIPO="$ac_cv_prog_LIPO"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_OTOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$OTOOL"; then
7997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_OTOOL"; then
8028 ac_ct_OTOOL=$OTOOL
8029 # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_OTOOL"; then
8037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_OTOOL="otool"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_OTOOL" = x; then
8066 OTOOL=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 OTOOL=$ac_ct_OTOOL
8076 else
8077 OTOOL="$ac_cv_prog_OTOOL"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL64+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$OTOOL64"; then
8089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120 ac_ct_OTOOL64=$OTOOL64
8121 # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$ac_ct_OTOOL64"; then
8129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_OTOOL64" = x; then
8158 OTOOL64=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 OTOOL64=$ac_ct_OTOOL64
8168 else
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if ${lt_cv_apple_cc_single_mod+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_apple_cc_single_mod=no
8204 if test -z "$LT_MULTI_MODULE"; then
8205 # By default we will add the -single_module flag. You can override
8206 # by either setting the environment variable LT_MULTI_MODULE
8207 # non-empty at configure time, or by adding -multi_module to the
8208 # link flags.
8209 rm -rf libconftest.dylib*
8210 echo "int foo(void){return 1;}" > conftest.c
8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8215 _lt_result=$?
8216 # If there is a non-empty error log, and "single_module"
8217 # appears in it, assume the flag caused a linker warning
8218 if test -s conftest.err && $GREP single_module conftest.err; then
8219 cat conftest.err >&5
8220 # Otherwise, if the output was created with a 0 exit code from
8221 # the compiler, it worked.
8222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8223 lt_cv_apple_cc_single_mod=yes
8224 else
8225 cat conftest.err >&5
8227 rm -rf libconftest.dylib*
8228 rm -f conftest.*
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8232 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8235 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8236 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_ld_exported_symbols_list=no
8240 save_LDFLAGS=$LDFLAGS
8241 echo "_main" > conftest.sym
8242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8247 main ()
8251 return 0;
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 lt_cv_ld_exported_symbols_list=yes
8256 else
8257 lt_cv_ld_exported_symbols_list=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LDFLAGS=$save_LDFLAGS
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8265 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8268 $as_echo_n "checking for -force_load linker flag... " >&6; }
8269 if ${lt_cv_ld_force_load+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 lt_cv_ld_force_load=no
8273 cat > conftest.c << _LT_EOF
8274 int forced_loaded() { return 2;}
8275 _LT_EOF
8276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8278 echo "$AR cru libconftest.a conftest.o" >&5
8279 $AR cru libconftest.a conftest.o 2>&5
8280 echo "$RANLIB libconftest.a" >&5
8281 $RANLIB libconftest.a 2>&5
8282 cat > conftest.c << _LT_EOF
8283 int main() { return 0;}
8284 _LT_EOF
8285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8287 _lt_result=$?
8288 if test -s conftest.err && $GREP force_load conftest.err; then
8289 cat conftest.err >&5
8290 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8291 lt_cv_ld_force_load=yes
8292 else
8293 cat conftest.err >&5
8295 rm -f conftest.err libconftest.a conftest conftest.c
8296 rm -rf conftest.dSYM
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8300 $as_echo "$lt_cv_ld_force_load" >&6; }
8301 case $host_os in
8302 rhapsody* | darwin1.[012])
8303 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8304 darwin1.*)
8305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8306 darwin*) # darwin 5.x on
8307 # if running on 10.5 or later, the deployment target defaults
8308 # to the OS version, if on x86, and 10.4, the deployment
8309 # target defaults to 10.4. Don't you love it?
8310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8312 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8313 10.[012][,.]*)
8314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8315 10.*)
8316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8317 esac
8319 esac
8320 if test yes = "$lt_cv_apple_cc_single_mod"; then
8321 _lt_dar_single_mod='$single_module'
8323 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8324 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8325 else
8326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8328 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8329 _lt_dsymutil='~$DSYMUTIL $lib || :'
8330 else
8331 _lt_dsymutil=
8334 esac
8336 # func_munge_path_list VARIABLE PATH
8337 # -----------------------------------
8338 # VARIABLE is name of variable containing _space_ separated list of
8339 # directories to be munged by the contents of PATH, which is string
8340 # having a format:
8341 # "DIR[:DIR]:"
8342 # string "DIR[ DIR]" will be prepended to VARIABLE
8343 # ":DIR[:DIR]"
8344 # string "DIR[ DIR]" will be appended to VARIABLE
8345 # "DIRP[:DIRP]::[DIRA:]DIRA"
8346 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8347 # "DIRA[ DIRA]" will be appended to VARIABLE
8348 # "DIR[:DIR]"
8349 # VARIABLE will be replaced by "DIR[ DIR]"
8350 func_munge_path_list ()
8352 case x$2 in
8356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8358 x:*)
8359 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8361 *::*)
8362 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8363 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8368 esac
8371 ac_ext=c
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8378 # On Suns, sometimes $CPP names a directory.
8379 if test -n "$CPP" && test -d "$CPP"; then
8380 CPP=
8382 if test -z "$CPP"; then
8383 if ${ac_cv_prog_CPP+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 # Double quotes because CPP needs to be expanded
8387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8389 ac_preproc_ok=false
8390 for ac_c_preproc_warn_flag in '' yes
8392 # Use a header file that comes with gcc, so configuring glibc
8393 # with a fresh cross-compiler works.
8394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395 # <limits.h> exists even on freestanding compilers.
8396 # On the NeXT, cc -E runs the code through the compiler's parser,
8397 # not just through cpp. "Syntax error" is here to catch this case.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifdef __STDC__
8401 # include <limits.h>
8402 #else
8403 # include <assert.h>
8404 #endif
8405 Syntax error
8406 _ACEOF
8407 if ac_fn_c_try_cpp "$LINENO"; then :
8409 else
8410 # Broken: fails on valid input.
8411 continue
8413 rm -f conftest.err conftest.i conftest.$ac_ext
8415 # OK, works on sane cases. Now check whether nonexistent headers
8416 # can be detected and how.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <ac_nonexistent.h>
8420 _ACEOF
8421 if ac_fn_c_try_cpp "$LINENO"; then :
8422 # Broken: success on invalid input.
8423 continue
8424 else
8425 # Passes both tests.
8426 ac_preproc_ok=:
8427 break
8429 rm -f conftest.err conftest.i conftest.$ac_ext
8431 done
8432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8433 rm -f conftest.i conftest.err conftest.$ac_ext
8434 if $ac_preproc_ok; then :
8435 break
8438 done
8439 ac_cv_prog_CPP=$CPP
8442 CPP=$ac_cv_prog_CPP
8443 else
8444 ac_cv_prog_CPP=$CPP
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8447 $as_echo "$CPP" >&6; }
8448 ac_preproc_ok=false
8449 for ac_c_preproc_warn_flag in '' yes
8451 # Use a header file that comes with gcc, so configuring glibc
8452 # with a fresh cross-compiler works.
8453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 # <limits.h> exists even on freestanding compilers.
8455 # On the NeXT, cc -E runs the code through the compiler's parser,
8456 # not just through cpp. "Syntax error" is here to catch this case.
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #ifdef __STDC__
8460 # include <limits.h>
8461 #else
8462 # include <assert.h>
8463 #endif
8464 Syntax error
8465 _ACEOF
8466 if ac_fn_c_try_cpp "$LINENO"; then :
8468 else
8469 # Broken: fails on valid input.
8470 continue
8472 rm -f conftest.err conftest.i conftest.$ac_ext
8474 # OK, works on sane cases. Now check whether nonexistent headers
8475 # can be detected and how.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <ac_nonexistent.h>
8479 _ACEOF
8480 if ac_fn_c_try_cpp "$LINENO"; then :
8481 # Broken: success on invalid input.
8482 continue
8483 else
8484 # Passes both tests.
8485 ac_preproc_ok=:
8486 break
8488 rm -f conftest.err conftest.i conftest.$ac_ext
8490 done
8491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8492 rm -f conftest.i conftest.err conftest.$ac_ext
8493 if $ac_preproc_ok; then :
8495 else
8496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8498 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8499 See \`config.log' for more details" "$LINENO" 5; }
8502 ac_ext=c
8503 ac_cpp='$CPP $CPPFLAGS'
8504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8510 $as_echo_n "checking for ANSI C header files... " >&6; }
8511 if ${ac_cv_header_stdc+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <stdlib.h>
8517 #include <stdarg.h>
8518 #include <string.h>
8519 #include <float.h>
8522 main ()
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_header_stdc=yes
8531 else
8532 ac_cv_header_stdc=no
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 if test $ac_cv_header_stdc = yes; then
8537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <string.h>
8542 _ACEOF
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544 $EGREP "memchr" >/dev/null 2>&1; then :
8546 else
8547 ac_cv_header_stdc=no
8549 rm -f conftest*
8553 if test $ac_cv_header_stdc = yes; then
8554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <stdlib.h>
8559 _ACEOF
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "free" >/dev/null 2>&1; then :
8563 else
8564 ac_cv_header_stdc=no
8566 rm -f conftest*
8570 if test $ac_cv_header_stdc = yes; then
8571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8572 if test "$cross_compiling" = yes; then :
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <ctype.h>
8578 #include <stdlib.h>
8579 #if ((' ' & 0x0FF) == 0x020)
8580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8582 #else
8583 # define ISLOWER(c) \
8584 (('a' <= (c) && (c) <= 'i') \
8585 || ('j' <= (c) && (c) <= 'r') \
8586 || ('s' <= (c) && (c) <= 'z'))
8587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8588 #endif
8590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8592 main ()
8594 int i;
8595 for (i = 0; i < 256; i++)
8596 if (XOR (islower (i), ISLOWER (i))
8597 || toupper (i) != TOUPPER (i))
8598 return 2;
8599 return 0;
8601 _ACEOF
8602 if ac_fn_c_try_run "$LINENO"; then :
8604 else
8605 ac_cv_header_stdc=no
8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8608 conftest.$ac_objext conftest.beam conftest.$ac_ext
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8614 $as_echo "$ac_cv_header_stdc" >&6; }
8615 if test $ac_cv_header_stdc = yes; then
8617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8623 inttypes.h stdint.h unistd.h
8624 do :
8625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 _ACEOF
8635 done
8638 for ac_header in dlfcn.h
8639 do :
8640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8645 _ACEOF
8649 done
8655 # Set options
8659 enable_dlopen=no
8662 enable_win32_dll=no
8665 # Check whether --enable-shared was given.
8666 if test "${enable_shared+set}" = set; then :
8667 enableval=$enable_shared; p=${PACKAGE-default}
8668 case $enableval in
8669 yes) enable_shared=yes ;;
8670 no) enable_shared=no ;;
8672 enable_shared=no
8673 # Look at the argument we got. We use all the common list separators.
8674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8675 for pkg in $enableval; do
8676 IFS=$lt_save_ifs
8677 if test "X$pkg" = "X$p"; then
8678 enable_shared=yes
8680 done
8681 IFS=$lt_save_ifs
8683 esac
8684 else
8685 enable_shared=yes
8696 # Check whether --enable-static was given.
8697 if test "${enable_static+set}" = set; then :
8698 enableval=$enable_static; p=${PACKAGE-default}
8699 case $enableval in
8700 yes) enable_static=yes ;;
8701 no) enable_static=no ;;
8703 enable_static=no
8704 # Look at the argument we got. We use all the common list separators.
8705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8706 for pkg in $enableval; do
8707 IFS=$lt_save_ifs
8708 if test "X$pkg" = "X$p"; then
8709 enable_static=yes
8711 done
8712 IFS=$lt_save_ifs
8714 esac
8715 else
8716 enable_static=yes
8728 # Check whether --with-pic was given.
8729 if test "${with_pic+set}" = set; then :
8730 withval=$with_pic; lt_p=${PACKAGE-default}
8731 case $withval in
8732 yes|no) pic_mode=$withval ;;
8734 pic_mode=default
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8737 for lt_pkg in $withval; do
8738 IFS=$lt_save_ifs
8739 if test "X$lt_pkg" = "X$lt_p"; then
8740 pic_mode=yes
8742 done
8743 IFS=$lt_save_ifs
8745 esac
8746 else
8747 pic_mode=default
8757 # Check whether --enable-fast-install was given.
8758 if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
8760 case $enableval in
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8767 for pkg in $enableval; do
8768 IFS=$lt_save_ifs
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8772 done
8773 IFS=$lt_save_ifs
8775 esac
8776 else
8777 enable_fast_install=yes
8787 shared_archive_member_spec=
8788 case $host,$enable_shared in
8789 power*-*-aix[5-9]*,yes)
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8791 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8793 # Check whether --with-aix-soname was given.
8794 if test "${with_aix_soname+set}" = set; then :
8795 withval=$with_aix_soname; case $withval in
8796 aix|svr4|both)
8799 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8801 esac
8802 lt_cv_with_aix_soname=$with_aix_soname
8803 else
8804 if ${lt_cv_with_aix_soname+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_with_aix_soname=aix
8810 with_aix_soname=$lt_cv_with_aix_soname
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8814 $as_echo "$with_aix_soname" >&6; }
8815 if test aix != "$with_aix_soname"; then
8816 # For the AIX way of multilib, we name the shared archive member
8817 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8818 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8819 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8820 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8821 if test 64 = "${OBJECT_MODE-32}"; then
8822 shared_archive_member_spec=shr_64
8823 else
8824 shared_archive_member_spec=shr
8829 with_aix_soname=aix
8831 esac
8842 # This can be used to rebuild libtool when needed
8843 LIBTOOL_DEPS=$ltmain
8845 # Always use our own libtool.
8846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8877 test -z "$LN_S" && LN_S="ln -s"
8892 if test -n "${ZSH_VERSION+set}"; then
8893 setopt NO_GLOB_SUBST
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8897 $as_echo_n "checking for objdir... " >&6; }
8898 if ${lt_cv_objdir+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 rm -f .libs 2>/dev/null
8902 mkdir .libs 2>/dev/null
8903 if test -d .libs; then
8904 lt_cv_objdir=.libs
8905 else
8906 # MS-DOS does not allow filenames that begin with a dot.
8907 lt_cv_objdir=_libs
8909 rmdir .libs 2>/dev/null
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8912 $as_echo "$lt_cv_objdir" >&6; }
8913 objdir=$lt_cv_objdir
8919 cat >>confdefs.h <<_ACEOF
8920 #define LT_OBJDIR "$lt_cv_objdir/"
8921 _ACEOF
8926 case $host_os in
8927 aix3*)
8928 # AIX sometimes has problems with the GCC collect2 program. For some
8929 # reason, if we set the COLLECT_NAMES environment variable, the problems
8930 # vanish in a puff of smoke.
8931 if test set != "${COLLECT_NAMES+set}"; then
8932 COLLECT_NAMES=
8933 export COLLECT_NAMES
8936 esac
8938 # Global variables:
8939 ofile=libtool
8940 can_build_shared=yes
8942 # All known linkers require a '.a' archive for static linking (except MSVC,
8943 # which needs '.lib').
8944 libext=a
8946 with_gnu_ld=$lt_cv_prog_gnu_ld
8948 old_CC=$CC
8949 old_CFLAGS=$CFLAGS
8951 # Set sane defaults for various variables
8952 test -z "$CC" && CC=cc
8953 test -z "$LTCC" && LTCC=$CC
8954 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8955 test -z "$LD" && LD=ld
8956 test -z "$ac_objext" && ac_objext=o
8958 func_cc_basename $compiler
8959 cc_basename=$func_cc_basename_result
8962 # Only perform the check for file, if the check method requires it
8963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8964 case $deplibs_check_method in
8965 file_magic*)
8966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8968 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 case $MAGIC_CMD in
8973 [\\/*] | ?:[\\/]*)
8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8977 lt_save_MAGIC_CMD=$MAGIC_CMD
8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8980 for ac_dir in $ac_dummy; do
8981 IFS=$lt_save_ifs
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8984 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8985 if test -n "$file_magic_test_file"; then
8986 case $deplibs_check_method in
8987 "file_magic "*)
8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8991 $EGREP "$file_magic_regex" > /dev/null; then
8993 else
8994 cat <<_LT_EOF 1>&2
8996 *** Warning: the command libtool uses to detect shared libraries,
8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
8998 *** The result is that libtool may fail to recognize shared libraries
8999 *** as such. This will affect the creation of libtool libraries that
9000 *** depend on shared libraries, but programs linked with such libtool
9001 *** libraries will work regardless of this problem. Nevertheless, you
9002 *** may want to report the problem to your system manager and/or to
9003 *** bug-libtool@gnu.org
9005 _LT_EOF
9006 fi ;;
9007 esac
9009 break
9011 done
9012 IFS=$lt_save_ifs
9013 MAGIC_CMD=$lt_save_MAGIC_CMD
9015 esac
9018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9019 if test -n "$MAGIC_CMD"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9021 $as_echo "$MAGIC_CMD" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9031 if test -z "$lt_cv_path_MAGIC_CMD"; then
9032 if test -n "$ac_tool_prefix"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9034 $as_echo_n "checking for file... " >&6; }
9035 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 case $MAGIC_CMD in
9039 [\\/*] | ?:[\\/]*)
9040 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9043 lt_save_MAGIC_CMD=$MAGIC_CMD
9044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9046 for ac_dir in $ac_dummy; do
9047 IFS=$lt_save_ifs
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f "$ac_dir/file"; then
9050 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9051 if test -n "$file_magic_test_file"; then
9052 case $deplibs_check_method in
9053 "file_magic "*)
9054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9055 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9057 $EGREP "$file_magic_regex" > /dev/null; then
9059 else
9060 cat <<_LT_EOF 1>&2
9062 *** Warning: the command libtool uses to detect shared libraries,
9063 *** $file_magic_cmd, produces output that libtool cannot recognize.
9064 *** The result is that libtool may fail to recognize shared libraries
9065 *** as such. This will affect the creation of libtool libraries that
9066 *** depend on shared libraries, but programs linked with such libtool
9067 *** libraries will work regardless of this problem. Nevertheless, you
9068 *** may want to report the problem to your system manager and/or to
9069 *** bug-libtool@gnu.org
9071 _LT_EOF
9072 fi ;;
9073 esac
9075 break
9077 done
9078 IFS=$lt_save_ifs
9079 MAGIC_CMD=$lt_save_MAGIC_CMD
9081 esac
9084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9085 if test -n "$MAGIC_CMD"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9087 $as_echo "$MAGIC_CMD" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9094 else
9095 MAGIC_CMD=:
9101 esac
9103 # Use C for the default configuration in the libtool script
9105 lt_save_CC=$CC
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113 # Source file extension for C test sources.
9114 ac_ext=c
9116 # Object file extension for compiled C test sources.
9117 objext=o
9118 objext=$objext
9120 # Code to be used in simple compile tests
9121 lt_simple_compile_test_code="int some_variable = 0;"
9123 # Code to be used in simple link tests
9124 lt_simple_link_test_code='int main(){return(0);}'
9132 # If no C compiler was specified, use CC.
9133 LTCC=${LTCC-"$CC"}
9135 # If no C compiler flags were specified, use CFLAGS.
9136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9138 # Allow CC to be a program name with arguments.
9139 compiler=$CC
9141 # Save the default compiler, since it gets overwritten when the other
9142 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9143 compiler_DEFAULT=$CC
9145 # save warnings/boilerplate of simple test code
9146 ac_outfile=conftest.$ac_objext
9147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9149 _lt_compiler_boilerplate=`cat conftest.err`
9150 $RM conftest*
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9155 _lt_linker_boilerplate=`cat conftest.err`
9156 $RM -r conftest*
9159 ## CAVEAT EMPTOR:
9160 ## There is no encapsulation within the following macros, do not change
9161 ## the running order or otherwise move them around unless you know exactly
9162 ## what you are doing...
9163 if test -n "$compiler"; then
9165 lt_prog_compiler_no_builtin_flag=
9167 if test yes = "$GCC"; then
9168 case $cc_basename in
9169 nvcc*)
9170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9173 esac
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 lt_cv_prog_compiler_rtti_exceptions=no
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9195 ac_status=$?
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_rtti_exceptions=yes
9207 $RM conftest*
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9213 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9215 else
9226 lt_prog_compiler_wl=
9227 lt_prog_compiler_pic=
9228 lt_prog_compiler_static=
9231 if test yes = "$GCC"; then
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_static='-static'
9235 case $host_os in
9236 aix*)
9237 # All AIX code is PIC.
9238 if test ia64 = "$host_cpu"; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9242 lt_prog_compiler_pic='-fPIC'
9245 amigaos*)
9246 case $host_cpu in
9247 powerpc)
9248 # see comment about AmigaOS4 .so support
9249 lt_prog_compiler_pic='-fPIC'
9251 m68k)
9252 # FIXME: we need at least 68020 code to build shared libraries, but
9253 # adding the '-m68020' flag to GCC prevents building anything better,
9254 # like '-m68040'.
9255 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9257 esac
9260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9261 # PIC is the default for these OSes.
9264 mingw* | cygwin* | pw32* | os2* | cegcc*)
9265 # This hack is so that the source file can tell whether it is being
9266 # built for inclusion in a dll (and should export symbols for example).
9267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9268 # (--disable-auto-import) libraries
9269 lt_prog_compiler_pic='-DDLL_EXPORT'
9270 case $host_os in
9271 os2*)
9272 lt_prog_compiler_static='$wl-static'
9274 esac
9277 darwin* | rhapsody*)
9278 # PIC is the default on this platform
9279 # Common symbols not allowed in MH_DYLIB files
9280 lt_prog_compiler_pic='-fno-common'
9283 haiku*)
9284 # PIC is the default for Haiku.
9285 # The "-static" flag exists, but is broken.
9286 lt_prog_compiler_static=
9289 hpux*)
9290 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9291 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9292 # sets the default TLS model and affects inlining.
9293 case $host_cpu in
9294 hppa*64*)
9295 # +Z the default
9298 lt_prog_compiler_pic='-fPIC'
9300 esac
9303 interix[3-9]*)
9304 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9305 # Instead, we relocate shared libraries at runtime.
9308 msdosdjgpp*)
9309 # Just because we use GCC doesn't mean we suddenly get shared libraries
9310 # on systems that don't support them.
9311 lt_prog_compiler_can_build_shared=no
9312 enable_shared=no
9315 *nto* | *qnx*)
9316 # QNX uses GNU C++, but need to define -shared option too, otherwise
9317 # it will coredump.
9318 lt_prog_compiler_pic='-fPIC -shared'
9321 sysv4*MP*)
9322 if test -d /usr/nec; then
9323 lt_prog_compiler_pic=-Kconform_pic
9328 lt_prog_compiler_pic='-fPIC'
9330 esac
9332 case $cc_basename in
9333 nvcc*) # Cuda Compiler Driver 2.2
9334 lt_prog_compiler_wl='-Xlinker '
9335 if test -n "$lt_prog_compiler_pic"; then
9336 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9339 esac
9340 else
9341 # PORTME Check for flag to pass linker flags through the system compiler.
9342 case $host_os in
9343 aix*)
9344 lt_prog_compiler_wl='-Wl,'
9345 if test ia64 = "$host_cpu"; then
9346 # AIX 5 now supports IA64 processor
9347 lt_prog_compiler_static='-Bstatic'
9348 else
9349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9353 darwin* | rhapsody*)
9354 # PIC is the default on this platform
9355 # Common symbols not allowed in MH_DYLIB files
9356 lt_prog_compiler_pic='-fno-common'
9357 case $cc_basename in
9358 nagfor*)
9359 # NAG Fortran compiler
9360 lt_prog_compiler_wl='-Wl,-Wl,,'
9361 lt_prog_compiler_pic='-PIC'
9362 lt_prog_compiler_static='-Bstatic'
9364 esac
9367 mingw* | cygwin* | pw32* | os2* | cegcc*)
9368 # This hack is so that the source file can tell whether it is being
9369 # built for inclusion in a dll (and should export symbols for example).
9370 lt_prog_compiler_pic='-DDLL_EXPORT'
9371 case $host_os in
9372 os2*)
9373 lt_prog_compiler_static='$wl-static'
9375 esac
9378 hpux9* | hpux10* | hpux11*)
9379 lt_prog_compiler_wl='-Wl,'
9380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9381 # not for PA HP-UX.
9382 case $host_cpu in
9383 hppa*64*|ia64*)
9384 # +Z the default
9387 lt_prog_compiler_pic='+Z'
9389 esac
9390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9391 lt_prog_compiler_static='$wl-a ${wl}archive'
9394 irix5* | irix6* | nonstopux*)
9395 lt_prog_compiler_wl='-Wl,'
9396 # PIC (with -KPIC) is the default.
9397 lt_prog_compiler_static='-non_shared'
9400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9401 case $cc_basename in
9402 # old Intel for x86_64, which still supported -KPIC.
9403 ecc*)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-KPIC'
9406 lt_prog_compiler_static='-static'
9408 # icc used to be incompatible with GCC.
9409 # ICC 10 doesn't accept -KPIC any more.
9410 icc* | ifort*)
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_pic='-fPIC'
9413 lt_prog_compiler_static='-static'
9415 # Lahey Fortran 8.1.
9416 lf95*)
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_pic='--shared'
9419 lt_prog_compiler_static='--static'
9421 nagfor*)
9422 # NAG Fortran compiler
9423 lt_prog_compiler_wl='-Wl,-Wl,,'
9424 lt_prog_compiler_pic='-PIC'
9425 lt_prog_compiler_static='-Bstatic'
9427 tcc*)
9428 # Fabrice Bellard et al's Tiny C Compiler
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9433 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9434 # Portland Group compilers (*not* the Pentium gcc compiler,
9435 # which looks to be a dead project)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-fpic'
9438 lt_prog_compiler_static='-Bstatic'
9440 ccc*)
9441 lt_prog_compiler_wl='-Wl,'
9442 # All Alpha code is PIC.
9443 lt_prog_compiler_static='-non_shared'
9445 xl* | bgxl* | bgf* | mpixl*)
9446 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9447 lt_prog_compiler_wl='-Wl,'
9448 lt_prog_compiler_pic='-qpic'
9449 lt_prog_compiler_static='-qstaticlink'
9452 case `$CC -V 2>&1 | sed 5q` in
9453 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9454 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9455 lt_prog_compiler_pic='-KPIC'
9456 lt_prog_compiler_static='-Bstatic'
9457 lt_prog_compiler_wl=''
9459 *Sun\ F* | *Sun*Fortran*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 lt_prog_compiler_wl='-Qoption ld '
9464 *Sun\ C*)
9465 # Sun C 5.9
9466 lt_prog_compiler_pic='-KPIC'
9467 lt_prog_compiler_static='-Bstatic'
9468 lt_prog_compiler_wl='-Wl,'
9470 *Intel*\ [CF]*Compiler*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-fPIC'
9473 lt_prog_compiler_static='-static'
9475 *Portland\ Group*)
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-fpic'
9478 lt_prog_compiler_static='-Bstatic'
9480 esac
9482 esac
9485 newsos6)
9486 lt_prog_compiler_pic='-KPIC'
9487 lt_prog_compiler_static='-Bstatic'
9490 *nto* | *qnx*)
9491 # QNX uses GNU C++, but need to define -shared option too, otherwise
9492 # it will coredump.
9493 lt_prog_compiler_pic='-fPIC -shared'
9496 osf3* | osf4* | osf5*)
9497 lt_prog_compiler_wl='-Wl,'
9498 # All OSF/1 code is PIC.
9499 lt_prog_compiler_static='-non_shared'
9502 rdos*)
9503 lt_prog_compiler_static='-non_shared'
9506 solaris*)
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 case $cc_basename in
9510 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9511 lt_prog_compiler_wl='-Qoption ld ';;
9513 lt_prog_compiler_wl='-Wl,';;
9514 esac
9517 sunos4*)
9518 lt_prog_compiler_wl='-Qoption ld '
9519 lt_prog_compiler_pic='-PIC'
9520 lt_prog_compiler_static='-Bstatic'
9523 sysv4 | sysv4.2uw2* | sysv4.3*)
9524 lt_prog_compiler_wl='-Wl,'
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9529 sysv4*MP*)
9530 if test -d /usr/nec; then
9531 lt_prog_compiler_pic='-Kconform_pic'
9532 lt_prog_compiler_static='-Bstatic'
9536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9537 lt_prog_compiler_wl='-Wl,'
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9542 unicos*)
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_can_build_shared=no
9547 uts4*)
9548 lt_prog_compiler_pic='-pic'
9549 lt_prog_compiler_static='-Bstatic'
9553 lt_prog_compiler_can_build_shared=no
9555 esac
9558 case $host_os in
9559 # For platforms that do not support PIC, -DPIC is meaningless:
9560 *djgpp*)
9561 lt_prog_compiler_pic=
9564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9566 esac
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9570 if ${lt_cv_prog_compiler_pic+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9576 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9577 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9580 # Check to make sure the PIC flag actually works.
9582 if test -n "$lt_prog_compiler_pic"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9585 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 lt_cv_prog_compiler_pic_works=no
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9592 # Insert the option either (1) after the last *FLAGS variable, or
9593 # (2) before a word containing "conftest.", or (3) at the end.
9594 # Note that $ac_compile itself does not contain backslashes and begins
9595 # with a dollar sign (not a hyphen), so the echo should work correctly.
9596 # The option is referenced via a variable to avoid confusing sed.
9597 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602 (eval "$lt_compile" 2>conftest.err)
9603 ac_status=$?
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 if (exit $ac_status) && test -s "$ac_outfile"; then
9607 # The compiler can only warn and ignore the option if not recognized
9608 # So say no if there are warnings other than the usual output.
9609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9612 lt_cv_prog_compiler_pic_works=yes
9615 $RM conftest*
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9619 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9621 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9622 case $lt_prog_compiler_pic in
9623 "" | " "*) ;;
9624 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9625 esac
9626 else
9627 lt_prog_compiler_pic=
9628 lt_prog_compiler_can_build_shared=no
9644 # Check to make sure the static flag actually works.
9646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9649 if ${lt_cv_prog_compiler_static_works+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_static_works=no
9653 save_LDFLAGS=$LDFLAGS
9654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9657 # The linker can only warn and ignore the option if not recognized
9658 # So say no if there are warnings
9659 if test -s conftest.err; then
9660 # Append any errors to the config.log.
9661 cat conftest.err 1>&5
9662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9664 if diff conftest.exp conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_static_works=yes
9667 else
9668 lt_cv_prog_compiler_static_works=yes
9671 $RM -r conftest*
9672 LDFLAGS=$save_LDFLAGS
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9676 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9678 if test yes = "$lt_cv_prog_compiler_static_works"; then
9680 else
9681 lt_prog_compiler_static=
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9692 if ${lt_cv_prog_compiler_c_o+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 lt_cv_prog_compiler_c_o=no
9696 $RM -r conftest 2>/dev/null
9697 mkdir conftest
9698 cd conftest
9699 mkdir out
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9702 lt_compiler_flag="-o out/conftest2.$ac_objext"
9703 # Insert the option either (1) after the last *FLAGS variable, or
9704 # (2) before a word containing "conftest.", or (3) at the end.
9705 # Note that $ac_compile itself does not contain backslashes and begins
9706 # with a dollar sign (not a hyphen), so the echo should work correctly.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9712 (eval "$lt_compile" 2>out/conftest.err)
9713 ac_status=$?
9714 cat out/conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9717 then
9718 # The compiler can only warn and ignore the option if not recognized
9719 # So say no if there are warnings
9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler_c_o=yes
9726 chmod u+w . 2>&5
9727 $RM conftest*
9728 # SGI C++ compiler will create directory out/ii_files/ for
9729 # template instantiation
9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9731 $RM out/* && rmdir out
9732 cd ..
9733 $RM -r conftest
9734 $RM conftest*
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9747 if ${lt_cv_prog_compiler_c_o+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 lt_cv_prog_compiler_c_o=no
9751 $RM -r conftest 2>/dev/null
9752 mkdir conftest
9753 cd conftest
9754 mkdir out
9755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757 lt_compiler_flag="-o out/conftest2.$ac_objext"
9758 # Insert the option either (1) after the last *FLAGS variable, or
9759 # (2) before a word containing "conftest.", or (3) at the end.
9760 # Note that $ac_compile itself does not contain backslashes and begins
9761 # with a dollar sign (not a hyphen), so the echo should work correctly.
9762 lt_compile=`echo "$ac_compile" | $SED \
9763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9765 -e 's:$: $lt_compiler_flag:'`
9766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9767 (eval "$lt_compile" 2>out/conftest.err)
9768 ac_status=$?
9769 cat out/conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9772 then
9773 # The compiler can only warn and ignore the option if not recognized
9774 # So say no if there are warnings
9775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler_c_o=yes
9781 chmod u+w . 2>&5
9782 $RM conftest*
9783 # SGI C++ compiler will create directory out/ii_files/ for
9784 # template instantiation
9785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9786 $RM out/* && rmdir out
9787 cd ..
9788 $RM -r conftest
9789 $RM conftest*
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9798 hard_links=nottested
9799 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9800 # do not overwrite the value of need_locks provided by the user
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9802 $as_echo_n "checking if we can lock with hard links... " >&6; }
9803 hard_links=yes
9804 $RM conftest*
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 touch conftest.a
9807 ln conftest.a conftest.b 2>&5 || hard_links=no
9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9810 $as_echo "$hard_links" >&6; }
9811 if test no = "$hard_links"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9813 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9814 need_locks=warn
9816 else
9817 need_locks=no
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9826 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9828 runpath_var=
9829 allow_undefined_flag=
9830 always_export_symbols=no
9831 archive_cmds=
9832 archive_expsym_cmds=
9833 compiler_needs_object=no
9834 enable_shared_with_static_runtimes=no
9835 export_dynamic_flag_spec=
9836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9837 hardcode_automatic=no
9838 hardcode_direct=no
9839 hardcode_direct_absolute=no
9840 hardcode_libdir_flag_spec=
9841 hardcode_libdir_separator=
9842 hardcode_minus_L=no
9843 hardcode_shlibpath_var=unsupported
9844 inherit_rpath=no
9845 link_all_deplibs=unknown
9846 module_cmds=
9847 module_expsym_cmds=
9848 old_archive_from_new_cmds=
9849 old_archive_from_expsyms_cmds=
9850 thread_safe_flag_spec=
9851 whole_archive_flag_spec=
9852 # include_expsyms should be a list of space-separated symbols to be *always*
9853 # included in the symbol list
9854 include_expsyms=
9855 # exclude_expsyms can be an extended regexp of symbols to exclude
9856 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9857 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9858 # as well as any symbol that contains 'd'.
9859 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9861 # platforms (ab)use it in PIC code, but their linkers get confused if
9862 # the symbol is explicitly referenced. Since portable code cannot
9863 # rely on this symbol name, it's probably fine to never include it in
9864 # preloaded symbol tables.
9865 # Exclude shared library initialization/finalization symbols.
9866 extract_expsyms_cmds=
9868 case $host_os in
9869 cygwin* | mingw* | pw32* | cegcc*)
9870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9871 # When not using gcc, we currently assume that we are using
9872 # Microsoft Visual C++.
9873 if test yes != "$GCC"; then
9874 with_gnu_ld=no
9877 interix*)
9878 # we just hope/assume this is gcc and not c89 (= MSVC++)
9879 with_gnu_ld=yes
9881 openbsd* | bitrig*)
9882 with_gnu_ld=no
9884 esac
9886 ld_shlibs=yes
9888 # On some targets, GNU ld is compatible enough with the native linker
9889 # that we're better off using the native interface for both.
9890 lt_use_gnu_ld_interface=no
9891 if test yes = "$with_gnu_ld"; then
9892 case $host_os in
9893 aix*)
9894 # The AIX port of GNU ld has always aspired to compatibility
9895 # with the native linker. However, as the warning in the GNU ld
9896 # block says, versions before 2.19.5* couldn't really create working
9897 # shared libraries, regardless of the interface used.
9898 case `$LD -v 2>&1` in
9899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9901 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9903 lt_use_gnu_ld_interface=yes
9905 esac
9908 lt_use_gnu_ld_interface=yes
9910 esac
9913 if test yes = "$lt_use_gnu_ld_interface"; then
9914 # If archive_cmds runs LD, not CC, wlarc should be empty
9915 wlarc='$wl'
9917 # Set some defaults for GNU ld with shared library support. These
9918 # are reset later if shared libraries are not supported. Putting them
9919 # here allows them to be overridden if necessary.
9920 runpath_var=LD_RUN_PATH
9921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9922 export_dynamic_flag_spec='$wl--export-dynamic'
9923 # ancient GNU ld didn't support --whole-archive et. al.
9924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9926 else
9927 whole_archive_flag_spec=
9929 supports_anon_versioning=no
9930 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9931 *GNU\ gold*) supports_anon_versioning=yes ;;
9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9935 *\ 2.11.*) ;; # other 2.11 versions
9936 *) supports_anon_versioning=yes ;;
9937 esac
9939 # See if GNU ld supports shared libraries.
9940 case $host_os in
9941 aix[3-9]*)
9942 # On AIX/PPC, the GNU linker is very broken
9943 if test ia64 != "$host_cpu"; then
9944 ld_shlibs=no
9945 cat <<_LT_EOF 1>&2
9947 *** Warning: the GNU linker, at least up to release 2.19, is reported
9948 *** to be unable to reliably create shared libraries on AIX.
9949 *** Therefore, libtool is disabling shared libraries support. If you
9950 *** really care for shared libraries, you may want to install binutils
9951 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9952 *** You will then need to restart the configuration process.
9954 _LT_EOF
9958 amigaos*)
9959 case $host_cpu in
9960 powerpc)
9961 # see comment about AmigaOS4 .so support
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963 archive_expsym_cmds=''
9965 m68k)
9966 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_minus_L=yes
9970 esac
9973 beos*)
9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9975 allow_undefined_flag=unsupported
9976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9977 # support --undefined. This deserves some investigation. FIXME
9978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9979 else
9980 ld_shlibs=no
9984 cygwin* | mingw* | pw32* | cegcc*)
9985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9986 # as there is no search path for DLLs.
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 export_dynamic_flag_spec='$wl--export-all-symbols'
9989 allow_undefined_flag=unsupported
9990 always_export_symbols=no
9991 enable_shared_with_static_runtimes=yes
9992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9997 # If the export-symbols file already is a .def file, use it as
9998 # is; otherwise, prepend EXPORTS...
9999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10000 cp $export_symbols $output_objdir/$soname.def;
10001 else
10002 echo EXPORTS > $output_objdir/$soname.def;
10003 cat $export_symbols >> $output_objdir/$soname.def;
10005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10006 else
10007 ld_shlibs=no
10011 haiku*)
10012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013 link_all_deplibs=yes
10016 os2*)
10017 hardcode_libdir_flag_spec='-L$libdir'
10018 hardcode_minus_L=yes
10019 allow_undefined_flag=unsupported
10020 shrext_cmds=.dll
10021 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10024 $ECHO EXPORTS >> $output_objdir/$libname.def~
10025 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10027 emximp -o $lib $output_objdir/$libname.def'
10028 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10031 $ECHO EXPORTS >> $output_objdir/$libname.def~
10032 prefix_cmds="$SED"~
10033 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10034 prefix_cmds="$prefix_cmds -e 1d";
10036 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10037 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10038 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10039 emximp -o $lib $output_objdir/$libname.def'
10040 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10041 enable_shared_with_static_runtimes=yes
10044 interix[3-9]*)
10045 hardcode_direct=no
10046 hardcode_shlibpath_var=no
10047 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10048 export_dynamic_flag_spec='$wl-E'
10049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10050 # Instead, shared libraries are loaded at an image base (0x10000000 by
10051 # default) and relocated if they conflict, which is a slow very memory
10052 # consuming and fragmenting process. To avoid this, we pick a random,
10053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10056 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10060 tmp_diet=no
10061 if test linux-dietlibc = "$host_os"; then
10062 case $cc_basename in
10063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10064 esac
10066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10067 && test no = "$tmp_diet"
10068 then
10069 tmp_addflag=' $pic_flag'
10070 tmp_sharedflag='-shared'
10071 case $cc_basename,$host_cpu in
10072 pgcc*) # Portland Group C compiler
10073 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10074 tmp_addflag=' $pic_flag'
10076 pgf77* | pgf90* | pgf95* | pgfortran*)
10077 # Portland Group f77 and f90 compilers
10078 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10079 tmp_addflag=' $pic_flag -Mnomain' ;;
10080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10081 tmp_addflag=' -i_dynamic' ;;
10082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10083 tmp_addflag=' -i_dynamic -nofor_main' ;;
10084 ifc* | ifort*) # Intel Fortran compiler
10085 tmp_addflag=' -nofor_main' ;;
10086 lf95*) # Lahey Fortran 8.1
10087 whole_archive_flag_spec=
10088 tmp_sharedflag='--shared' ;;
10089 nagfor*) # NAGFOR 5.3
10090 tmp_sharedflag='-Wl,-shared' ;;
10091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10092 tmp_sharedflag='-qmkshrobj'
10093 tmp_addflag= ;;
10094 nvcc*) # Cuda Compiler Driver 2.2
10095 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10096 compiler_needs_object=yes
10098 esac
10099 case `$CC -V 2>&1 | sed 5q` in
10100 *Sun\ C*) # Sun C 5.9
10101 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10102 compiler_needs_object=yes
10103 tmp_sharedflag='-G' ;;
10104 *Sun\ F*) # Sun Fortran 8.3
10105 tmp_sharedflag='-G' ;;
10106 esac
10107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109 if test yes = "$supports_anon_versioning"; then
10110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10112 echo "local: *; };" >> $output_objdir/$libname.ver~
10113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10116 case $cc_basename in
10117 tcc*)
10118 export_dynamic_flag_spec='-rdynamic'
10120 xlf* | bgf* | bgxlf* | mpixlf*)
10121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10124 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10125 if test yes = "$supports_anon_versioning"; then
10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10128 echo "local: *; };" >> $output_objdir/$libname.ver~
10129 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10132 esac
10133 else
10134 ld_shlibs=no
10138 netbsd*)
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10141 wlarc=
10142 else
10143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148 solaris*)
10149 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10150 ld_shlibs=no
10151 cat <<_LT_EOF 1>&2
10153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10154 *** create shared libraries on Solaris systems. Therefore, libtool
10155 *** is disabling shared libraries support. We urge you to upgrade GNU
10156 *** binutils to release 2.9.1 or newer. Another option is to modify
10157 *** your PATH or compiler configuration so that the native linker is
10158 *** used, and then restart.
10160 _LT_EOF
10161 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10164 else
10165 ld_shlibs=no
10169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10170 case `$LD -v 2>&1` in
10171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10172 ld_shlibs=no
10173 cat <<_LT_EOF 1>&2
10175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10176 *** reliably create shared libraries on SCO systems. Therefore, libtool
10177 *** is disabling shared libraries support. We urge you to upgrade GNU
10178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10179 *** your PATH or compiler configuration so that the native linker is
10180 *** used, and then restart.
10182 _LT_EOF
10185 # For security reasons, it is highly recommended that you always
10186 # use absolute paths for naming shared libraries, and exclude the
10187 # DT_RUNPATH tag from executables and libraries. But doing so
10188 # requires that you compile everything twice, which is a pain.
10189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10193 else
10194 ld_shlibs=no
10197 esac
10200 sunos4*)
10201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10202 wlarc=
10203 hardcode_direct=yes
10204 hardcode_shlibpath_var=no
10208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10211 else
10212 ld_shlibs=no
10215 esac
10217 if test no = "$ld_shlibs"; then
10218 runpath_var=
10219 hardcode_libdir_flag_spec=
10220 export_dynamic_flag_spec=
10221 whole_archive_flag_spec=
10223 else
10224 # PORTME fill in a description of your system's linker (not GNU ld)
10225 case $host_os in
10226 aix3*)
10227 allow_undefined_flag=unsupported
10228 always_export_symbols=yes
10229 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10230 # Note: this linker hardcodes the directories in LIBPATH if there
10231 # are no directories specified by -L.
10232 hardcode_minus_L=yes
10233 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10234 # Neither direct hardcoding nor static linking is supported with a
10235 # broken collect2.
10236 hardcode_direct=unsupported
10240 aix[4-9]*)
10241 if test ia64 = "$host_cpu"; then
10242 # On IA64, the linker does run time linking by default, so we don't
10243 # have to do anything special.
10244 aix_use_runtimelinking=no
10245 exp_sym_flag='-Bexport'
10246 no_entry_flag=
10247 else
10248 # If we're using GNU nm, then we don't want the "-C" option.
10249 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10250 # Without the "-l" option, or with the "-B" option, AIX nm treats
10251 # weak defined symbols like other global defined symbols, whereas
10252 # GNU nm marks them as "W".
10253 # While the 'weak' keyword is ignored in the Export File, we need
10254 # it in the Import File for the 'aix-soname' feature, so we have
10255 # to replace the "-B" option with "-P" for AIX nm.
10256 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10257 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10258 else
10259 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10261 aix_use_runtimelinking=no
10263 # Test if we are trying to use run time linking or normal
10264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10265 # have runtime linking enabled, and use it for executables.
10266 # For shared libraries, we enable/disable runtime linking
10267 # depending on the kind of the shared library created -
10268 # when "with_aix_soname,aix_use_runtimelinking" is:
10269 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10270 # "aix,yes" lib.so shared, rtl:yes, for executables
10271 # lib.a static archive
10272 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10273 # lib.a(lib.so.V) shared, rtl:no, for executables
10274 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10275 # lib.a(lib.so.V) shared, rtl:no
10276 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10277 # lib.a static archive
10278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10279 for ld_flag in $LDFLAGS; do
10280 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10281 aix_use_runtimelinking=yes
10282 break
10284 done
10285 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10286 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10287 # so we don't have lib.a shared libs to link our executables.
10288 # We have to force runtime linking in this case.
10289 aix_use_runtimelinking=yes
10290 LDFLAGS="$LDFLAGS -Wl,-brtl"
10293 esac
10295 exp_sym_flag='-bexport'
10296 no_entry_flag='-bnoentry'
10299 # When large executables or shared objects are built, AIX ld can
10300 # have problems creating the table of contents. If linking a library
10301 # or program results in "error TOC overflow" add -mminimal-toc to
10302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10305 archive_cmds=''
10306 hardcode_direct=yes
10307 hardcode_direct_absolute=yes
10308 hardcode_libdir_separator=':'
10309 link_all_deplibs=yes
10310 file_list_spec='$wl-f,'
10311 case $with_aix_soname,$aix_use_runtimelinking in
10312 aix,*) ;; # traditional, no import file
10313 svr4,* | *,yes) # use import file
10314 # The Import File defines what to hardcode.
10315 hardcode_direct=no
10316 hardcode_direct_absolute=no
10318 esac
10320 if test yes = "$GCC"; then
10321 case $host_os in aix4.[012]|aix4.[012].*)
10322 # We only want to do this on AIX 4.2 and lower, the check
10323 # below for broken collect2 doesn't work under 4.3+
10324 collect2name=`$CC -print-prog-name=collect2`
10325 if test -f "$collect2name" &&
10326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10327 then
10328 # We have reworked collect2
10330 else
10331 # We have old collect2
10332 hardcode_direct=unsupported
10333 # It fails to find uninstalled libraries when the uninstalled
10334 # path is not listed in the libpath. Setting hardcode_minus_L
10335 # to unsupported forces relinking
10336 hardcode_minus_L=yes
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_libdir_separator=
10341 esac
10342 shared_flag='-shared'
10343 if test yes = "$aix_use_runtimelinking"; then
10344 shared_flag="$shared_flag "'$wl-G'
10346 # Need to ensure runtime linking is disabled for the traditional
10347 # shared library, or the linker may eventually find shared libraries
10348 # /with/ Import File - we do not want to mix them.
10349 shared_flag_aix='-shared'
10350 shared_flag_svr4='-shared $wl-G'
10351 else
10352 # not using gcc
10353 if test ia64 = "$host_cpu"; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10356 shared_flag='-G'
10357 else
10358 if test yes = "$aix_use_runtimelinking"; then
10359 shared_flag='$wl-G'
10360 else
10361 shared_flag='$wl-bM:SRE'
10363 shared_flag_aix='$wl-bM:SRE'
10364 shared_flag_svr4='$wl-G'
10368 export_dynamic_flag_spec='$wl-bexpall'
10369 # It seems that -bexpall does not export symbols beginning with
10370 # underscore (_), so it is better to generate a list of symbols to export.
10371 always_export_symbols=yes
10372 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10373 # Warning - without using the other runtime loading flags (-brtl),
10374 # -berok will link without error, but may produce a broken library.
10375 allow_undefined_flag='-berok'
10376 # Determine the default libpath from the value encoded in an
10377 # empty executable.
10378 if test set = "${lt_cv_aix_libpath+set}"; then
10379 aix_libpath=$lt_cv_aix_libpath
10380 else
10381 if ${lt_cv_aix_libpath_+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10388 main ()
10392 return 0;
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10397 lt_aix_libpath_sed='
10398 /Import File Strings/,/^$/ {
10399 /^0/ {
10400 s/^0 *\([^ ]*\) *$/\1/
10404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10405 # Check for a 64-bit object if we didn't find anything.
10406 if test -z "$lt_cv_aix_libpath_"; then
10407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 if test -z "$lt_cv_aix_libpath_"; then
10413 lt_cv_aix_libpath_=/usr/lib:/lib
10418 aix_libpath=$lt_cv_aix_libpath_
10421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10422 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10423 else
10424 if test ia64 = "$host_cpu"; then
10425 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10426 allow_undefined_flag="-z nodefs"
10427 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10428 else
10429 # Determine the default libpath from the value encoded in an
10430 # empty executable.
10431 if test set = "${lt_cv_aix_libpath+set}"; then
10432 aix_libpath=$lt_cv_aix_libpath
10433 else
10434 if ${lt_cv_aix_libpath_+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10441 main ()
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10450 lt_aix_libpath_sed='
10451 /Import File Strings/,/^$/ {
10452 /^0/ {
10453 s/^0 *\([^ ]*\) *$/\1/
10457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 # Check for a 64-bit object if we didn't find anything.
10459 if test -z "$lt_cv_aix_libpath_"; then
10460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test -z "$lt_cv_aix_libpath_"; then
10466 lt_cv_aix_libpath_=/usr/lib:/lib
10471 aix_libpath=$lt_cv_aix_libpath_
10474 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10475 # Warning - without using the other run time loading flags,
10476 # -berok will link without error, but may produce a broken library.
10477 no_undefined_flag=' $wl-bernotok'
10478 allow_undefined_flag=' $wl-berok'
10479 if test yes = "$with_gnu_ld"; then
10480 # We only use this code for GNU lds that support --whole-archive.
10481 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10482 else
10483 # Exported symbols can be pulled into shared objects from archives
10484 whole_archive_flag_spec='$convenience'
10486 archive_cmds_need_lc=yes
10487 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10488 # -brtl affects multiple linker settings, -berok does not and is overridden later
10489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10490 if test svr4 != "$with_aix_soname"; then
10491 # This is similar to how AIX traditionally builds its shared libraries.
10492 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10494 if test aix != "$with_aix_soname"; then
10495 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10496 else
10497 # used by -dlpreopen to get the symbols
10498 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10500 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10505 amigaos*)
10506 case $host_cpu in
10507 powerpc)
10508 # see comment about AmigaOS4 .so support
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510 archive_expsym_cmds=''
10512 m68k)
10513 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10517 esac
10520 bsdi[45]*)
10521 export_dynamic_flag_spec=-rdynamic
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 # When not using gcc, we currently assume that we are using
10526 # Microsoft Visual C++.
10527 # hardcode_libdir_flag_spec is actually meaningless, as there is
10528 # no search path for DLLs.
10529 case $cc_basename in
10530 cl*)
10531 # Native MSVC
10532 hardcode_libdir_flag_spec=' '
10533 allow_undefined_flag=unsupported
10534 always_export_symbols=yes
10535 file_list_spec='@'
10536 # Tell ltmain to make .lib files, not .a files.
10537 libext=lib
10538 # Tell ltmain to make .dll files, not .so files.
10539 shrext_cmds=.dll
10540 # FIXME: Setting linknames here is a bad hack.
10541 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10542 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10543 cp "$export_symbols" "$output_objdir/$soname.def";
10544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10545 else
10546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10549 linknames='
10550 # The linker will not automatically build a static lib if we build a DLL.
10551 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10552 enable_shared_with_static_runtimes=yes
10553 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10555 # Don't use ranlib
10556 old_postinstall_cmds='chmod 644 $oldlib'
10557 postlink_cmds='lt_outputfile="@OUTPUT@"~
10558 lt_tool_outputfile="@TOOL_OUTPUT@"~
10559 case $lt_outputfile in
10560 *.exe|*.EXE) ;;
10562 lt_outputfile=$lt_outputfile.exe
10563 lt_tool_outputfile=$lt_tool_outputfile.exe
10565 esac~
10566 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10567 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10568 $RM "$lt_outputfile.manifest";
10572 # Assume MSVC wrapper
10573 hardcode_libdir_flag_spec=' '
10574 allow_undefined_flag=unsupported
10575 # Tell ltmain to make .lib files, not .a files.
10576 libext=lib
10577 # Tell ltmain to make .dll files, not .so files.
10578 shrext_cmds=.dll
10579 # FIXME: Setting linknames here is a bad hack.
10580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10581 # The linker will automatically build a .lib file if we build a DLL.
10582 old_archive_from_new_cmds='true'
10583 # FIXME: Should let the user specify the lib program.
10584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10585 enable_shared_with_static_runtimes=yes
10587 esac
10590 darwin* | rhapsody*)
10593 archive_cmds_need_lc=no
10594 hardcode_direct=no
10595 hardcode_automatic=yes
10596 hardcode_shlibpath_var=unsupported
10597 if test yes = "$lt_cv_ld_force_load"; then
10598 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10600 else
10601 whole_archive_flag_spec=''
10603 link_all_deplibs=yes
10604 allow_undefined_flag=$_lt_dar_allow_undefined
10605 case $cc_basename in
10606 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10607 *) _lt_dar_can_shared=$GCC ;;
10608 esac
10609 if test yes = "$_lt_dar_can_shared"; then
10610 output_verbose_link_cmd=func_echo_all
10611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10613 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10614 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10616 else
10617 ld_shlibs=no
10622 dgux*)
10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_shlibpath_var=no
10628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10629 # support. Future versions do this automatically, but an explicit c++rt0.o
10630 # does not break anything, and helps significantly (at the cost of a little
10631 # extra space).
10632 freebsd2.2*)
10633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10634 hardcode_libdir_flag_spec='-R$libdir'
10635 hardcode_direct=yes
10636 hardcode_shlibpath_var=no
10639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10640 freebsd2.*)
10641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_direct=yes
10643 hardcode_minus_L=yes
10644 hardcode_shlibpath_var=no
10647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10648 freebsd* | dragonfly*)
10649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10650 hardcode_libdir_flag_spec='-R$libdir'
10651 hardcode_direct=yes
10652 hardcode_shlibpath_var=no
10655 hpux9*)
10656 if test yes = "$GCC"; then
10657 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10658 else
10659 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10661 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10662 hardcode_libdir_separator=:
10663 hardcode_direct=yes
10665 # hardcode_minus_L: Not really in the search PATH,
10666 # but as the default location of the library.
10667 hardcode_minus_L=yes
10668 export_dynamic_flag_spec='$wl-E'
10671 hpux10*)
10672 if test yes,no = "$GCC,$with_gnu_ld"; then
10673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 else
10675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677 if test no = "$with_gnu_ld"; then
10678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10679 hardcode_libdir_separator=:
10680 hardcode_direct=yes
10681 hardcode_direct_absolute=yes
10682 export_dynamic_flag_spec='$wl-E'
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10689 hpux11*)
10690 if test yes,no = "$GCC,$with_gnu_ld"; then
10691 case $host_cpu in
10692 hppa*64*)
10693 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 ia64*)
10696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701 esac
10702 else
10703 case $host_cpu in
10704 hppa*64*)
10705 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 ia64*)
10708 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10712 # Older versions of the 11.00 compiler do not understand -b yet
10713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10715 $as_echo_n "checking if $CC understands -b... " >&6; }
10716 if ${lt_cv_prog_compiler__b+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 lt_cv_prog_compiler__b=no
10720 save_LDFLAGS=$LDFLAGS
10721 LDFLAGS="$LDFLAGS -b"
10722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10724 # The linker can only warn and ignore the option if not recognized
10725 # So say no if there are warnings
10726 if test -s conftest.err; then
10727 # Append any errors to the config.log.
10728 cat conftest.err 1>&5
10729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10731 if diff conftest.exp conftest.er2 >/dev/null; then
10732 lt_cv_prog_compiler__b=yes
10734 else
10735 lt_cv_prog_compiler__b=yes
10738 $RM -r conftest*
10739 LDFLAGS=$save_LDFLAGS
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10745 if test yes = "$lt_cv_prog_compiler__b"; then
10746 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10747 else
10748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10752 esac
10754 if test no = "$with_gnu_ld"; then
10755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10756 hardcode_libdir_separator=:
10758 case $host_cpu in
10759 hppa*64*|ia64*)
10760 hardcode_direct=no
10761 hardcode_shlibpath_var=no
10764 hardcode_direct=yes
10765 hardcode_direct_absolute=yes
10766 export_dynamic_flag_spec='$wl-E'
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10772 esac
10776 irix5* | irix6* | nonstopux*)
10777 if test yes = "$GCC"; then
10778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10779 # Try to use the -exported_symbol ld option, if it does not
10780 # work, assume that -exports_file does not work either and
10781 # implicitly export all symbols.
10782 # This should be the same for all languages, so no per-tag cache variable.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10784 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10785 if ${lt_cv_irix_exported_symbol+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 save_LDFLAGS=$LDFLAGS
10789 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 int foo (void) { return 0; }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 lt_cv_irix_exported_symbol=yes
10796 else
10797 lt_cv_irix_exported_symbol=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS=$save_LDFLAGS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10804 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10805 if test yes = "$lt_cv_irix_exported_symbol"; then
10806 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10808 else
10809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10814 hardcode_libdir_separator=:
10815 inherit_rpath=yes
10816 link_all_deplibs=yes
10819 linux*)
10820 case $cc_basename in
10821 tcc*)
10822 # Fabrice Bellard et al's Tiny C Compiler
10823 ld_shlibs=yes
10824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10826 esac
10829 netbsd*)
10830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10832 else
10833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10835 hardcode_libdir_flag_spec='-R$libdir'
10836 hardcode_direct=yes
10837 hardcode_shlibpath_var=no
10840 newsos6)
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_direct=yes
10843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10844 hardcode_libdir_separator=:
10845 hardcode_shlibpath_var=no
10848 *nto* | *qnx*)
10851 openbsd* | bitrig*)
10852 if test -f /usr/libexec/ld.so; then
10853 hardcode_direct=yes
10854 hardcode_shlibpath_var=no
10855 hardcode_direct_absolute=yes
10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10860 export_dynamic_flag_spec='$wl-E'
10861 else
10862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10865 else
10866 ld_shlibs=no
10870 os2*)
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_minus_L=yes
10873 allow_undefined_flag=unsupported
10874 shrext_cmds=.dll
10875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10878 $ECHO EXPORTS >> $output_objdir/$libname.def~
10879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10881 emximp -o $lib $output_objdir/$libname.def'
10882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10885 $ECHO EXPORTS >> $output_objdir/$libname.def~
10886 prefix_cmds="$SED"~
10887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10888 prefix_cmds="$prefix_cmds -e 1d";
10890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10893 emximp -o $lib $output_objdir/$libname.def'
10894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10895 enable_shared_with_static_runtimes=yes
10898 osf3*)
10899 if test yes = "$GCC"; then
10900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10901 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10902 else
10903 allow_undefined_flag=' -expect_unresolved \*'
10904 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10906 archive_cmds_need_lc='no'
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 hardcode_libdir_separator=:
10911 osf4* | osf5*) # as osf3* with the addition of -msym flag
10912 if test yes = "$GCC"; then
10913 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10914 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10916 else
10917 allow_undefined_flag=' -expect_unresolved \*'
10918 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10919 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10920 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10922 # Both c and cxx compiler support -rpath directly
10923 hardcode_libdir_flag_spec='-rpath $libdir'
10925 archive_cmds_need_lc='no'
10926 hardcode_libdir_separator=:
10929 solaris*)
10930 no_undefined_flag=' -z defs'
10931 if test yes = "$GCC"; then
10932 wlarc='$wl'
10933 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10935 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10936 else
10937 case `$CC -V 2>&1` in
10938 *"Compilers 5.0"*)
10939 wlarc=''
10940 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10945 wlarc='$wl'
10946 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10950 esac
10952 hardcode_libdir_flag_spec='-R$libdir'
10953 hardcode_shlibpath_var=no
10954 case $host_os in
10955 solaris2.[0-5] | solaris2.[0-5].*) ;;
10957 # The compiler driver will combine and reorder linker options,
10958 # but understands '-z linker_flag'. GCC discards it without '$wl',
10959 # but is careful enough not to reorder.
10960 # Supported since Solaris 2.6 (maybe 2.5.1?)
10961 if test yes = "$GCC"; then
10962 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10963 else
10964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10967 esac
10968 link_all_deplibs=yes
10971 sunos4*)
10972 if test sequent = "$host_vendor"; then
10973 # Use $CC to link under sequent, because it throws in some extra .o
10974 # files that make .init and .fini sections work.
10975 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10976 else
10977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_direct=yes
10981 hardcode_minus_L=yes
10982 hardcode_shlibpath_var=no
10985 sysv4)
10986 case $host_vendor in
10987 sni)
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_direct=yes # is this really true???
10991 siemens)
10992 ## LD is ld it makes a PLAMLIB
10993 ## CC just makes a GrossModule.
10994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10995 reload_cmds='$CC -r -o $output$reload_objs'
10996 hardcode_direct=no
10998 motorola)
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11002 esac
11003 runpath_var='LD_RUN_PATH'
11004 hardcode_shlibpath_var=no
11007 sysv4.3*)
11008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_shlibpath_var=no
11010 export_dynamic_flag_spec='-Bexport'
11013 sysv4*MP*)
11014 if test -d /usr/nec; then
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_shlibpath_var=no
11017 runpath_var=LD_RUN_PATH
11018 hardcode_runpath_var=yes
11019 ld_shlibs=yes
11023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11024 no_undefined_flag='$wl-z,text'
11025 archive_cmds_need_lc=no
11026 hardcode_shlibpath_var=no
11027 runpath_var='LD_RUN_PATH'
11029 if test yes = "$GCC"; then
11030 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 else
11033 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 sysv5* | sco3.2v5* | sco5v6*)
11039 # Note: We CANNOT use -z defs as we might desire, because we do not
11040 # link with -lc, and that would cause any symbols used from libc to
11041 # always be unresolved, which means just about no library would
11042 # ever link correctly. If we're not using GNU ld we use -z text
11043 # though, which does catch some bad symbols but isn't as heavy-handed
11044 # as -z defs.
11045 no_undefined_flag='$wl-z,text'
11046 allow_undefined_flag='$wl-z,nodefs'
11047 archive_cmds_need_lc=no
11048 hardcode_shlibpath_var=no
11049 hardcode_libdir_flag_spec='$wl-R,$libdir'
11050 hardcode_libdir_separator=':'
11051 link_all_deplibs=yes
11052 export_dynamic_flag_spec='$wl-Bexport'
11053 runpath_var='LD_RUN_PATH'
11055 if test yes = "$GCC"; then
11056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 else
11059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064 uts4*)
11065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066 hardcode_libdir_flag_spec='-L$libdir'
11067 hardcode_shlibpath_var=no
11071 ld_shlibs=no
11073 esac
11075 if test sni = "$host_vendor"; then
11076 case $host in
11077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11078 export_dynamic_flag_spec='$wl-Blargedynsym'
11080 esac
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11085 $as_echo "$ld_shlibs" >&6; }
11086 test no = "$ld_shlibs" && can_build_shared=no
11088 with_gnu_ld=$with_gnu_ld
11105 # Do we need to explicitly link libc?
11107 case "x$archive_cmds_need_lc" in
11108 x|xyes)
11109 # Assume -lc should be added
11110 archive_cmds_need_lc=yes
11112 if test yes,yes = "$GCC,$enable_shared"; then
11113 case $archive_cmds in
11114 *'~'*)
11115 # FIXME: we may have to deal with multi-command sequences.
11117 '$CC '*)
11118 # Test whether the compiler implicitly links with -lc since on some
11119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11120 # to ld, don't add -lc before -lgcc.
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 $RM conftest*
11127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; } 2>conftest.err; then
11134 soname=conftest
11135 lib=conftest
11136 libobjs=conftest.$ac_objext
11137 deplibs=
11138 wl=$lt_prog_compiler_wl
11139 pic_flag=$lt_prog_compiler_pic
11140 compiler_flags=-v
11141 linker_flags=-v
11142 verstring=
11143 output_objdir=.
11144 libname=conftest
11145 lt_save_allow_undefined_flag=$allow_undefined_flag
11146 allow_undefined_flag=
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }
11152 then
11153 lt_cv_archive_cmds_need_lc=no
11154 else
11155 lt_cv_archive_cmds_need_lc=yes
11157 allow_undefined_flag=$lt_save_allow_undefined_flag
11158 else
11159 cat conftest.err 1>&5
11161 $RM conftest*
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11168 esac
11171 esac
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11327 if test yes = "$GCC"; then
11328 case $host_os in
11329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11330 *) lt_awk_arg='/^libraries:/' ;;
11331 esac
11332 case $host_os in
11333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11334 *) lt_sed_strip_eq='s|=/|/|g' ;;
11335 esac
11336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11337 case $lt_search_path_spec in
11338 *\;*)
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11348 esac
11349 # Ok, now we have the path, separated by spaces, we can step through it
11350 # and add multilib dir if necessary...
11351 lt_tmp_lt_search_path_spec=
11352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11353 # ...but if some path component already ends with the multilib dir we assume
11354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11355 case "$lt_multi_os_dir; $lt_search_path_spec " in
11356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11357 lt_multi_os_dir=
11359 esac
11360 for lt_sys_path in $lt_search_path_spec; do
11361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11363 elif test -n "$lt_multi_os_dir"; then
11364 test -d "$lt_sys_path" && \
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11367 done
11368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11369 BEGIN {RS = " "; FS = "/|\n";} {
11370 lt_foo = "";
11371 lt_count = 0;
11372 for (lt_i = NF; lt_i > 0; lt_i--) {
11373 if ($lt_i != "" && $lt_i != ".") {
11374 if ($lt_i == "..") {
11375 lt_count++;
11376 } else {
11377 if (lt_count == 0) {
11378 lt_foo = "/" $lt_i lt_foo;
11379 } else {
11380 lt_count--;
11385 if (lt_foo != "") { lt_freq[lt_foo]++; }
11386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11388 # AWK program above erroneously prepends '/' to C:/dos/paths
11389 # for these hosts.
11390 case $host_os in
11391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11393 esac
11394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11395 else
11396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11398 library_names_spec=
11399 libname_spec='lib$name'
11400 soname_spec=
11401 shrext_cmds=.so
11402 postinstall_cmds=
11403 postuninstall_cmds=
11404 finish_cmds=
11405 finish_eval=
11406 shlibpath_var=
11407 shlibpath_overrides_runpath=unknown
11408 version_type=none
11409 dynamic_linker="$host_os ld.so"
11410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11411 need_lib_prefix=unknown
11412 hardcode_into_libs=no
11414 # when you set need_version to no, make sure it does not cause -set_version
11415 # flags to be left without arguments
11416 need_version=unknown
11420 case $host_os in
11421 aix3*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11424 shlibpath_var=LIBPATH
11426 # AIX 3 has no versioning support, so we append a major version to the name.
11427 soname_spec='$libname$release$shared_ext$major'
11430 aix[4-9]*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 hardcode_into_libs=yes
11435 if test ia64 = "$host_cpu"; then
11436 # AIX 5 supports IA64
11437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 else
11440 # With GCC up to 2.95.x, collect2 would create an import file
11441 # for dependence libraries. The import file would start with
11442 # the line '#! .'. This would cause the generated library to
11443 # depend on '.', always an invalid library. This was fixed in
11444 # development snapshots of GCC prior to 3.0.
11445 case $host_os in
11446 aix4 | aix4.[01] | aix4.[01].*)
11447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11448 echo ' yes '
11449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11451 else
11452 can_build_shared=no
11455 esac
11456 # Using Import Files as archive members, it is possible to support
11457 # filename-based versioning of shared library archives on AIX. While
11458 # this would work for both with and without runtime linking, it will
11459 # prevent static linking of such archives. So we do filename-based
11460 # shared library versioning with .so extension only, which is used
11461 # when both runtime linking and shared linking is enabled.
11462 # Unfortunately, runtime linking may impact performance, so we do
11463 # not want this to be the default eventually. Also, we use the
11464 # versioned .so libs for executables only if there is the -brtl
11465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11466 # To allow for filename-based versioning support, we need to create
11467 # libNAME.so.V as an archive file, containing:
11468 # *) an Import File, referring to the versioned filename of the
11469 # archive as well as the shared archive member, telling the
11470 # bitwidth (32 or 64) of that shared object, and providing the
11471 # list of exported symbols of that shared object, eventually
11472 # decorated with the 'weak' keyword
11473 # *) the shared object with the F_LOADONLY flag set, to really avoid
11474 # it being seen by the linker.
11475 # At run time we better use the real file rather than another symlink,
11476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11478 case $with_aix_soname,$aix_use_runtimelinking in
11479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11480 # soname into executable. Probably we can add versioning support to
11481 # collect2, so additional links can be useful in future.
11482 aix,yes) # traditional libtool
11483 dynamic_linker='AIX unversionable lib.so'
11484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485 # instead of lib<name>.a to let people know that these are not
11486 # typical AIX shared libraries.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489 aix,no) # traditional AIX only
11490 dynamic_linker='AIX lib.a(lib.so.V)'
11491 # We preserve .a as extension for shared libraries through AIX4.2
11492 # and later when we are not doing run time linking.
11493 library_names_spec='$libname$release.a $libname.a'
11494 soname_spec='$libname$release$shared_ext$major'
11496 svr4,*) # full svr4 only
11497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11499 # We do not specify a path in Import Files, so LIBPATH fires.
11500 shlibpath_overrides_runpath=yes
11502 *,yes) # both, prefer svr4
11503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11505 # unpreferred sharedlib libNAME.a needs extra handling
11506 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11507 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11508 # We do not specify a path in Import Files, so LIBPATH fires.
11509 shlibpath_overrides_runpath=yes
11511 *,no) # both, prefer aix
11512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11513 library_names_spec='$libname$release.a $libname.a'
11514 soname_spec='$libname$release$shared_ext$major'
11515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11516 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11517 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11519 esac
11520 shlibpath_var=LIBPATH
11524 amigaos*)
11525 case $host_cpu in
11526 powerpc)
11527 # Since July 2007 AmigaOS4 officially supports .so libraries.
11528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 m68k)
11532 library_names_spec='$libname.ixlibrary $libname.a'
11533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11534 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11536 esac
11539 beos*)
11540 library_names_spec='$libname$shared_ext'
11541 dynamic_linker="$host_os ld.so"
11542 shlibpath_var=LIBRARY_PATH
11545 bsdi[45]*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 need_version=no
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11554 # the default ld.so.conf also contains /usr/contrib/lib and
11555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11556 # libtool to hard-code these into programs
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 version_type=windows
11561 shrext_cmds=.dll
11562 need_version=no
11563 need_lib_prefix=no
11565 case $GCC,$cc_basename in
11566 yes,*)
11567 # gcc
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11581 $RM \$dlpath'
11582 shlibpath_overrides_runpath=yes
11584 case $host_os in
11585 cygwin*)
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11591 mingw* | cegcc*)
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11595 pw32*)
11596 # pw32 DLLs use 'pw' prefix rather than 'lib'
11597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11599 esac
11600 dynamic_linker='Win32 ld.exe'
11603 *,cl*)
11604 # Native MSVC
11605 libname_spec='$name'
11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11607 library_names_spec='$libname.dll.lib'
11609 case $build_os in
11610 mingw*)
11611 sys_lib_search_path_spec=
11612 lt_save_ifs=$IFS
11613 IFS=';'
11614 for lt_path in $LIB
11616 IFS=$lt_save_ifs
11617 # Let DOS variable expansion print the short 8.3 style file name.
11618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11620 done
11621 IFS=$lt_save_ifs
11622 # Convert to MSYS style.
11623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11625 cygwin*)
11626 # Convert to unix form, then to dos form, then back to unix form
11627 # but this time dos style (no spaces!) so that the unix form looks
11628 # like /cygdrive/c/PROGRA~1:/cygdr...
11629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11634 sys_lib_search_path_spec=$LIB
11635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636 # It is most probably a Windows format PATH.
11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11638 else
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11641 # FIXME: find the short name or the path components, as spaces are
11642 # common. (e.g. "Program Files" -> "PROGRA~1")
11644 esac
11646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11647 postinstall_cmds='base_file=`basename \$file`~
11648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11649 dldir=$destdir/`dirname \$dlpath`~
11650 test -d \$dldir || mkdir -p \$dldir~
11651 $install_prog $dir/$dlname \$dldir/$dlname'
11652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11653 dlpath=$dir/\$dldll~
11654 $RM \$dlpath'
11655 shlibpath_overrides_runpath=yes
11656 dynamic_linker='Win32 link.exe'
11660 # Assume MSVC wrapper
11661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11662 dynamic_linker='Win32 ld.exe'
11664 esac
11665 # FIXME: first we should search . and the directory the executable is in
11666 shlibpath_var=PATH
11669 darwin* | rhapsody*)
11670 dynamic_linker="$host_os dyld"
11671 version_type=darwin
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11675 soname_spec='$libname$release$major$shared_ext'
11676 shlibpath_overrides_runpath=yes
11677 shlibpath_var=DYLD_LIBRARY_PATH
11678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11684 dgux*)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11693 freebsd* | dragonfly*)
11694 # DragonFly does not have aout. When/if they implement a new
11695 # versioning mechanism, adjust this.
11696 if test -x /usr/bin/objformat; then
11697 objformat=`/usr/bin/objformat`
11698 else
11699 case $host_os in
11700 freebsd[23].*) objformat=aout ;;
11701 *) objformat=elf ;;
11702 esac
11704 version_type=freebsd-$objformat
11705 case $version_type in
11706 freebsd-elf*)
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 need_version=no
11710 need_lib_prefix=no
11712 freebsd-*)
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11714 need_version=yes
11716 esac
11717 shlibpath_var=LD_LIBRARY_PATH
11718 case $host_os in
11719 freebsd2.*)
11720 shlibpath_overrides_runpath=yes
11722 freebsd3.[01]* | freebsdelf3.[01]*)
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11731 *) # from 4.6 on, and DragonFly
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11735 esac
11738 haiku*)
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 need_lib_prefix=no
11741 need_version=no
11742 dynamic_linker="$host_os runtime_loader"
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11748 hardcode_into_libs=yes
11751 hpux9* | hpux10* | hpux11*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11754 version_type=sunos
11755 need_lib_prefix=no
11756 need_version=no
11757 case $host_cpu in
11758 ia64*)
11759 shrext_cmds='.so'
11760 hardcode_into_libs=yes
11761 dynamic_linker="$host_os dld.so"
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 soname_spec='$libname$release$shared_ext$major'
11766 if test 32 = "$HPUX_IA64_MODE"; then
11767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11769 else
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11774 hppa*64*)
11775 shrext_cmds='.sl'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786 shrext_cmds='.sl'
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11793 esac
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11795 postinstall_cmds='chmod 555 $lib'
11796 # or fails outright, so override atomically:
11797 install_override_mode=555
11800 interix[3-9]*)
11801 version_type=linux # correct to gnu/linux during the next big refactor
11802 need_lib_prefix=no
11803 need_version=no
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 soname_spec='$libname$release$shared_ext$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11812 irix5* | irix6* | nonstopux*)
11813 case $host_os in
11814 nonstopux*) version_type=nonstopux ;;
11816 if test yes = "$lt_cv_prog_gnu_ld"; then
11817 version_type=linux # correct to gnu/linux during the next big refactor
11818 else
11819 version_type=irix
11820 fi ;;
11821 esac
11822 need_lib_prefix=no
11823 need_version=no
11824 soname_spec='$libname$release$shared_ext$major'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11826 case $host_os in
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11839 esac
11841 esac
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11846 hardcode_into_libs=yes
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11851 dynamic_linker=no
11854 linux*android*)
11855 version_type=none # Android doesn't support versioned libraries.
11856 need_lib_prefix=no
11857 need_version=no
11858 library_names_spec='$libname$release$shared_ext'
11859 soname_spec='$libname$release$shared_ext'
11860 finish_cmds=
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11864 # This implies no fast_install, which is unacceptable.
11865 # Some rework will be needed to allow for fast_install
11866 # before this can be enabled.
11867 hardcode_into_libs=yes
11869 dynamic_linker='Android linker'
11870 # Don't embed -rpath directories since the linker doesn't support them.
11871 hardcode_libdir_flag_spec='-L$libdir'
11874 # This must be glibc/ELF.
11875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11885 # Some binutils ld are patched to set DT_RUNPATH
11886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 lt_cv_shlibpath_overrides_runpath=no
11890 save_LDFLAGS=$LDFLAGS
11891 save_libdir=$libdir
11892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11898 main ()
11902 return 0;
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11907 lt_cv_shlibpath_overrides_runpath=yes
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LDFLAGS=$save_LDFLAGS
11913 libdir=$save_libdir
11917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11919 # This implies no fast_install, which is unacceptable.
11920 # Some rework will be needed to allow for fast_install
11921 # before this can be enabled.
11922 hardcode_into_libs=yes
11924 # Ideally, we could use ldconfig to report *all* directores which are
11925 # searched for libraries, however this is still not possible. Aside from not
11926 # being certain /sbin/ldconfig is available, command
11927 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11928 # even though it is searched at run-time. Try to do the best guess by
11929 # appending ld.so.conf contents (and includes) to the search path.
11930 if test -f /etc/ld.so.conf; then
11931 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935 # We used to test for /lib/ld.so.1 and disable shared libraries on
11936 # powerpc, because MkLinux only supported shared libraries with the
11937 # GNU dynamic linker. Since this was broken with cross compilers,
11938 # most powerpc-linux boxes support dynamic linking these days and
11939 # people can always --disable-shared, the test was removed, and we
11940 # assume the GNU/Linux dynamic linker is in use.
11941 dynamic_linker='GNU/Linux ld.so'
11944 netbsd*)
11945 version_type=sunos
11946 need_lib_prefix=no
11947 need_version=no
11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11951 dynamic_linker='NetBSD (a.out) ld.so'
11952 else
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 dynamic_linker='NetBSD ld.elf_so'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959 hardcode_into_libs=yes
11962 newsos6)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11969 *nto* | *qnx*)
11970 version_type=qnx
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=no
11977 hardcode_into_libs=yes
11978 dynamic_linker='ldqnx.so'
11981 openbsd* | bitrig*)
11982 version_type=sunos
11983 sys_lib_dlsearch_path_spec=/usr/lib
11984 need_lib_prefix=no
11985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11986 need_version=no
11987 else
11988 need_version=yes
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes
11996 os2*)
11997 libname_spec='$name'
11998 version_type=windows
11999 shrext_cmds=.dll
12000 need_version=no
12001 need_lib_prefix=no
12002 # OS/2 can only load a DLL with a base name of 8 characters or less.
12003 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12004 v=$($ECHO $release$versuffix | tr -d .-);
12005 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12006 $ECHO $n$v`$shared_ext'
12007 library_names_spec='${libname}_dll.$libext'
12008 dynamic_linker='OS/2 ld.exe'
12009 shlibpath_var=BEGINLIBPATH
12010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12012 postinstall_cmds='base_file=`basename \$file`~
12013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12014 dldir=$destdir/`dirname \$dlpath`~
12015 test -d \$dldir || mkdir -p \$dldir~
12016 $install_prog $dir/$dlname \$dldir/$dlname~
12017 chmod a+x \$dldir/$dlname~
12018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12022 dlpath=$dir/\$dldll~
12023 $RM \$dlpath'
12026 osf3* | osf4* | osf5*)
12027 version_type=osf
12028 need_lib_prefix=no
12029 need_version=no
12030 soname_spec='$libname$release$shared_ext$major'
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12037 rdos*)
12038 dynamic_linker=no
12041 solaris*)
12042 version_type=linux # correct to gnu/linux during the next big refactor
12043 need_lib_prefix=no
12044 need_version=no
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=yes
12049 hardcode_into_libs=yes
12050 # ldd complains unless libraries are executable
12051 postinstall_cmds='chmod +x $lib'
12054 sunos4*)
12055 version_type=sunos
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 if test yes = "$with_gnu_ld"; then
12061 need_lib_prefix=no
12063 need_version=yes
12066 sysv4 | sysv4.3*)
12067 version_type=linux # correct to gnu/linux during the next big refactor
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 case $host_vendor in
12072 sni)
12073 shlibpath_overrides_runpath=no
12074 need_lib_prefix=no
12075 runpath_var=LD_RUN_PATH
12077 siemens)
12078 need_lib_prefix=no
12080 motorola)
12081 need_lib_prefix=no
12082 need_version=no
12083 shlibpath_overrides_runpath=no
12084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12086 esac
12089 sysv4*MP*)
12090 if test -d /usr/nec; then
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12093 soname_spec='$libname$shared_ext.$major'
12094 shlibpath_var=LD_LIBRARY_PATH
12098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12099 version_type=sco
12100 need_lib_prefix=no
12101 need_version=no
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12103 soname_spec='$libname$release$shared_ext$major'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12107 if test yes = "$with_gnu_ld"; then
12108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12109 else
12110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12111 case $host_os in
12112 sco3.2v5*)
12113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12115 esac
12117 sys_lib_dlsearch_path_spec='/usr/lib'
12120 tpf*)
12121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12122 version_type=linux # correct to gnu/linux during the next big refactor
12123 need_lib_prefix=no
12124 need_version=no
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=no
12128 hardcode_into_libs=yes
12131 uts4*)
12132 version_type=linux # correct to gnu/linux during the next big refactor
12133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12134 soname_spec='$libname$release$shared_ext$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12139 dynamic_linker=no
12141 esac
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12143 $as_echo "$dynamic_linker" >&6; }
12144 test no = "$dynamic_linker" && can_build_shared=no
12146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12147 if test yes = "$GCC"; then
12148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12151 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12152 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12155 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12156 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12159 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12160 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12162 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12163 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12165 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12166 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12266 hardcode_action=
12267 if test -n "$hardcode_libdir_flag_spec" ||
12268 test -n "$runpath_var" ||
12269 test yes = "$hardcode_automatic"; then
12271 # We can hardcode non-existent directories.
12272 if test no != "$hardcode_direct" &&
12273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12274 # have to relink, otherwise we might link with an installed library
12275 # when we should be linking with a yet-to-be-installed one
12276 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12277 test no != "$hardcode_minus_L"; then
12278 # Linking always hardcodes the temporary library directory.
12279 hardcode_action=relink
12280 else
12281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12282 hardcode_action=immediate
12284 else
12285 # We cannot hardcode anything, or else we can only hardcode existing
12286 # directories.
12287 hardcode_action=unsupported
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12290 $as_echo "$hardcode_action" >&6; }
12292 if test relink = "$hardcode_action" ||
12293 test yes = "$inherit_rpath"; then
12294 # Fast installation is not supported
12295 enable_fast_install=no
12296 elif test yes = "$shlibpath_overrides_runpath" ||
12297 test no = "$enable_shared"; then
12298 # Fast installation is not necessary
12299 enable_fast_install=needless
12307 if test yes != "$enable_dlopen"; then
12308 enable_dlopen=unknown
12309 enable_dlopen_self=unknown
12310 enable_dlopen_self_static=unknown
12311 else
12312 lt_cv_dlopen=no
12313 lt_cv_dlopen_libs=
12315 case $host_os in
12316 beos*)
12317 lt_cv_dlopen=load_add_on
12318 lt_cv_dlopen_libs=
12319 lt_cv_dlopen_self=yes
12322 mingw* | pw32* | cegcc*)
12323 lt_cv_dlopen=LoadLibrary
12324 lt_cv_dlopen_libs=
12327 cygwin*)
12328 lt_cv_dlopen=dlopen
12329 lt_cv_dlopen_libs=
12332 darwin*)
12333 # if libdl is installed we need to link against it
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12336 if ${ac_cv_lib_dl_dlopen+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldl $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dlopen ();
12352 main ()
12354 return dlopen ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_dl_dlopen=yes
12361 else
12362 ac_cv_lib_dl_dlopen=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372 else
12374 lt_cv_dlopen=dyld
12375 lt_cv_dlopen_libs=
12376 lt_cv_dlopen_self=yes
12382 tpf*)
12383 # Don't try to run any link tests for TPF. We know it's impossible
12384 # because TPF is a cross-compiler, and we know how we open DSOs.
12385 lt_cv_dlopen=dlopen
12386 lt_cv_dlopen_libs=
12387 lt_cv_dlopen_self=no
12391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12392 if test "x$ac_cv_func_shl_load" = xyes; then :
12393 lt_cv_dlopen=shl_load
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12397 if ${ac_cv_lib_dld_shl_load+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-ldld $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char shl_load ();
12413 main ()
12415 return shl_load ();
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_dld_shl_load=yes
12422 else
12423 ac_cv_lib_dld_shl_load=no
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12431 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12432 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12433 else
12434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12435 if test "x$ac_cv_func_dlopen" = xyes; then :
12436 lt_cv_dlopen=dlopen
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12440 if ${ac_cv_lib_dl_dlopen+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-ldl $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char dlopen ();
12456 main ()
12458 return dlopen ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_dl_dlopen=yes
12465 else
12466 ac_cv_lib_dl_dlopen=no
12468 rm -f core conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12474 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12475 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12479 if ${ac_cv_lib_svld_dlopen+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_check_lib_save_LIBS=$LIBS
12483 LIBS="-lsvld $LIBS"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char dlopen ();
12495 main ()
12497 return dlopen ();
12499 return 0;
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 ac_cv_lib_svld_dlopen=yes
12504 else
12505 ac_cv_lib_svld_dlopen=no
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12514 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12518 if ${ac_cv_lib_dld_dld_link+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-ldld $LIBS"
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char dld_link ();
12534 main ()
12536 return dld_link ();
12538 return 0;
12540 _ACEOF
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 ac_cv_lib_dld_dld_link=yes
12543 else
12544 ac_cv_lib_dld_dld_link=no
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12552 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12553 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12572 esac
12574 if test no = "$lt_cv_dlopen"; then
12575 enable_dlopen=no
12576 else
12577 enable_dlopen=yes
12580 case $lt_cv_dlopen in
12581 dlopen)
12582 save_CPPFLAGS=$CPPFLAGS
12583 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12585 save_LDFLAGS=$LDFLAGS
12586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12588 save_LIBS=$LIBS
12589 LIBS="$lt_cv_dlopen_libs $LIBS"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12593 if ${lt_cv_dlopen_self+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 if test yes = "$cross_compiling"; then :
12597 lt_cv_dlopen_self=cross
12598 else
12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600 lt_status=$lt_dlunknown
12601 cat > conftest.$ac_ext <<_LT_EOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12605 #if HAVE_DLFCN_H
12606 #include <dlfcn.h>
12607 #endif
12609 #include <stdio.h>
12611 #ifdef RTLD_GLOBAL
12612 # define LT_DLGLOBAL RTLD_GLOBAL
12613 #else
12614 # ifdef DL_GLOBAL
12615 # define LT_DLGLOBAL DL_GLOBAL
12616 # else
12617 # define LT_DLGLOBAL 0
12618 # endif
12619 #endif
12621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622 find out it does not work in some platform. */
12623 #ifndef LT_DLLAZY_OR_NOW
12624 # ifdef RTLD_LAZY
12625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12626 # else
12627 # ifdef DL_LAZY
12628 # define LT_DLLAZY_OR_NOW DL_LAZY
12629 # else
12630 # ifdef RTLD_NOW
12631 # define LT_DLLAZY_OR_NOW RTLD_NOW
12632 # else
12633 # ifdef DL_NOW
12634 # define LT_DLLAZY_OR_NOW DL_NOW
12635 # else
12636 # define LT_DLLAZY_OR_NOW 0
12637 # endif
12638 # endif
12639 # endif
12640 # endif
12641 #endif
12643 /* When -fvisibility=hidden is used, assume the code has been annotated
12644 correspondingly for the symbols needed. */
12645 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12646 int fnord () __attribute__((visibility("default")));
12647 #endif
12649 int fnord () { return 42; }
12650 int main ()
12652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12653 int status = $lt_dlunknown;
12655 if (self)
12657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12658 else
12660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12661 else puts (dlerror ());
12663 /* dlclose (self); */
12665 else
12666 puts (dlerror ());
12668 return status;
12670 _LT_EOF
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12676 (./conftest; exit; ) >&5 2>/dev/null
12677 lt_status=$?
12678 case x$lt_status in
12679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12682 esac
12683 else :
12684 # compilation failed
12685 lt_cv_dlopen_self=no
12688 rm -fr conftest*
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12693 $as_echo "$lt_cv_dlopen_self" >&6; }
12695 if test yes = "$lt_cv_dlopen_self"; then
12696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12699 if ${lt_cv_dlopen_self_static+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test yes = "$cross_compiling"; then :
12703 lt_cv_dlopen_self_static=cross
12704 else
12705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12706 lt_status=$lt_dlunknown
12707 cat > conftest.$ac_ext <<_LT_EOF
12708 #line $LINENO "configure"
12709 #include "confdefs.h"
12711 #if HAVE_DLFCN_H
12712 #include <dlfcn.h>
12713 #endif
12715 #include <stdio.h>
12717 #ifdef RTLD_GLOBAL
12718 # define LT_DLGLOBAL RTLD_GLOBAL
12719 #else
12720 # ifdef DL_GLOBAL
12721 # define LT_DLGLOBAL DL_GLOBAL
12722 # else
12723 # define LT_DLGLOBAL 0
12724 # endif
12725 #endif
12727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12728 find out it does not work in some platform. */
12729 #ifndef LT_DLLAZY_OR_NOW
12730 # ifdef RTLD_LAZY
12731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12732 # else
12733 # ifdef DL_LAZY
12734 # define LT_DLLAZY_OR_NOW DL_LAZY
12735 # else
12736 # ifdef RTLD_NOW
12737 # define LT_DLLAZY_OR_NOW RTLD_NOW
12738 # else
12739 # ifdef DL_NOW
12740 # define LT_DLLAZY_OR_NOW DL_NOW
12741 # else
12742 # define LT_DLLAZY_OR_NOW 0
12743 # endif
12744 # endif
12745 # endif
12746 # endif
12747 #endif
12749 /* When -fvisibility=hidden is used, assume the code has been annotated
12750 correspondingly for the symbols needed. */
12751 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12752 int fnord () __attribute__((visibility("default")));
12753 #endif
12755 int fnord () { return 42; }
12756 int main ()
12758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12759 int status = $lt_dlunknown;
12761 if (self)
12763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12764 else
12766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12767 else puts (dlerror ());
12769 /* dlclose (self); */
12771 else
12772 puts (dlerror ());
12774 return status;
12776 _LT_EOF
12777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12778 (eval $ac_link) 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12782 (./conftest; exit; ) >&5 2>/dev/null
12783 lt_status=$?
12784 case x$lt_status in
12785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12788 esac
12789 else :
12790 # compilation failed
12791 lt_cv_dlopen_self_static=no
12794 rm -fr conftest*
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12802 CPPFLAGS=$save_CPPFLAGS
12803 LDFLAGS=$save_LDFLAGS
12804 LIBS=$save_LIBS
12806 esac
12808 case $lt_cv_dlopen_self in
12809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12810 *) enable_dlopen_self=unknown ;;
12811 esac
12813 case $lt_cv_dlopen_self_static in
12814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12815 *) enable_dlopen_self_static=unknown ;;
12816 esac
12835 striplib=
12836 old_striplib=
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844 else
12845 # FIXME - insert some real tests, host_os isn't really good enough
12846 case $host_os in
12847 darwin*)
12848 if test -n "$STRIP"; then
12849 striplib="$STRIP -x"
12850 old_striplib="$STRIP -S"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 $as_echo "yes" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12862 esac
12876 # Report what library types will actually be built
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12880 $as_echo "$can_build_shared" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12883 $as_echo_n "checking whether to build shared libraries... " >&6; }
12884 test no = "$can_build_shared" && enable_shared=no
12886 # On AIX, shared libraries and static libraries use the same namespace, and
12887 # are all built from PIC.
12888 case $host_os in
12889 aix3*)
12890 test yes = "$enable_shared" && enable_static=no
12891 if test -n "$RANLIB"; then
12892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893 postinstall_cmds='$RANLIB $lib'
12897 aix[4-9]*)
12898 if test ia64 != "$host_cpu"; then
12899 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12900 yes,aix,yes) ;; # shared object as lib.so file only
12901 yes,svr4,*) ;; # shared object as lib.so archive member only
12902 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12903 esac
12906 esac
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12908 $as_echo "$enable_shared" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12911 $as_echo_n "checking whether to build static libraries... " >&6; }
12912 # Make sure either enable_shared or enable_static is yes.
12913 test yes = "$enable_shared" || enable_static=yes
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12915 $as_echo "$enable_static" >&6; }
12921 ac_ext=c
12922 ac_cpp='$CPP $CPPFLAGS'
12923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 CC=$lt_save_CC
12943 ac_config_commands="$ac_config_commands libtool"
12948 # Only expand once:
12953 # Extract the first word of "ar", so it can be a program name with args.
12954 set dummy ar; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_path_AR+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 case $AR in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12976 done
12977 done
12978 IFS=$as_save_IFS
12980 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12982 esac
12984 AR=$ac_cv_path_AR
12985 if test -n "$AR"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12987 $as_echo "$AR" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12994 # Extract the first word of "rm", so it can be a program name with args.
12995 set dummy rm; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if ${ac_cv_path_RM+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 case $RM in
13002 [\\/]* | ?:[\\/]*)
13003 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 break 2
13017 done
13018 done
13019 IFS=$as_save_IFS
13021 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13023 esac
13025 RM=$ac_cv_path_RM
13026 if test -n "$RM"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13028 $as_echo "$RM" >&6; }
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13035 # Extract the first word of "cp", so it can be a program name with args.
13036 set dummy cp; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_CP+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 case $CP in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13062 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13064 esac
13066 CP=$ac_cv_path_CP
13067 if test -n "$CP"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13069 $as_echo "$CP" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13076 # Extract the first word of "ln", so it can be a program name with args.
13077 set dummy ln; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_path_LN+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 case $LN in
13084 [\\/]* | ?:[\\/]*)
13085 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13099 done
13100 done
13101 IFS=$as_save_IFS
13103 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13105 esac
13107 LN=$ac_cv_path_LN
13108 if test -n "$LN"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13110 $as_echo "$LN" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13117 # Extract the first word of "ls", so it can be a program name with args.
13118 set dummy ls; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_path_LS+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 case $LS in
13125 [\\/]* | ?:[\\/]*)
13126 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13144 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13146 esac
13148 LS=$ac_cv_path_LS
13149 if test -n "$LS"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13151 $as_echo "$LS" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13158 # Extract the first word of "sed", so it can be a program name with args.
13159 set dummy sed; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if ${ac_cv_path_SED+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 case $SED in
13166 [\\/]* | ?:[\\/]*)
13167 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13181 done
13182 done
13183 IFS=$as_save_IFS
13185 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13187 esac
13189 SED=$ac_cv_path_SED
13190 if test -n "$SED"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13192 $as_echo "$SED" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13199 # Extract the first word of "make", so it can be a program name with args.
13200 set dummy make; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if ${ac_cv_path_MAKE+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 case $MAKE in
13207 [\\/]* | ?:[\\/]*)
13208 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13218 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13222 done
13223 done
13224 IFS=$as_save_IFS
13227 esac
13229 MAKE=$ac_cv_path_MAKE
13230 if test -n "$MAKE"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13232 $as_echo "$MAKE" >&6; }
13233 else
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13244 $as_echo_n "checking whether NLS is requested... " >&6; }
13245 # Check whether --enable-nls was given.
13246 if test "${enable_nls+set}" = set; then :
13247 enableval=$enable_nls; USE_NLS=$enableval
13248 else
13249 USE_NLS=yes
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13253 $as_echo "$USE_NLS" >&6; }
13260 # Prepare PATH_SEPARATOR.
13261 # The user is always right.
13262 if test "${PATH_SEPARATOR+set}" != set; then
13263 echo "#! /bin/sh" >conf$$.sh
13264 echo "exit 0" >>conf$$.sh
13265 chmod +x conf$$.sh
13266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13267 PATH_SEPARATOR=';'
13268 else
13269 PATH_SEPARATOR=:
13271 rm -f conf$$.sh
13274 # Find out how to test for executable files. Don't use a zero-byte file,
13275 # as systems may use methods other than mode bits to determine executability.
13276 cat >conf$$.file <<_ASEOF
13277 #! /bin/sh
13278 exit 0
13279 _ASEOF
13280 chmod +x conf$$.file
13281 if test -x conf$$.file >/dev/null 2>&1; then
13282 ac_executable_p="test -x"
13283 else
13284 ac_executable_p="test -f"
13286 rm -f conf$$.file
13288 # Extract the first word of "msgfmt", so it can be a program name with args.
13289 set dummy msgfmt; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if ${ac_cv_path_MSGFMT+:} false; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 case "$MSGFMT" in
13296 [\\/]* | ?:[\\/]*)
13297 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13300 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13301 for ac_dir in $PATH; do
13302 IFS="$ac_save_IFS"
13303 test -z "$ac_dir" && ac_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13306 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13307 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13308 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13309 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13310 break 2
13313 done
13314 done
13315 IFS="$ac_save_IFS"
13316 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13318 esac
13320 MSGFMT="$ac_cv_path_MSGFMT"
13321 if test "$MSGFMT" != ":"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13323 $as_echo "$MSGFMT" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13330 set dummy gmsgfmt; ac_word=$2
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332 $as_echo_n "checking for $ac_word... " >&6; }
13333 if ${ac_cv_path_GMSGFMT+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 case $GMSGFMT in
13337 [\\/]* | ?:[\\/]*)
13338 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13348 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 break 2
13352 done
13353 done
13354 IFS=$as_save_IFS
13356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13358 esac
13360 GMSGFMT=$ac_cv_path_GMSGFMT
13361 if test -n "$GMSGFMT"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13363 $as_echo "$GMSGFMT" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13371 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13372 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13373 *) MSGFMT_015=$MSGFMT ;;
13374 esac
13376 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13377 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13378 *) GMSGFMT_015=$GMSGFMT ;;
13379 esac
13383 # Prepare PATH_SEPARATOR.
13384 # The user is always right.
13385 if test "${PATH_SEPARATOR+set}" != set; then
13386 echo "#! /bin/sh" >conf$$.sh
13387 echo "exit 0" >>conf$$.sh
13388 chmod +x conf$$.sh
13389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13390 PATH_SEPARATOR=';'
13391 else
13392 PATH_SEPARATOR=:
13394 rm -f conf$$.sh
13397 # Find out how to test for executable files. Don't use a zero-byte file,
13398 # as systems may use methods other than mode bits to determine executability.
13399 cat >conf$$.file <<_ASEOF
13400 #! /bin/sh
13401 exit 0
13402 _ASEOF
13403 chmod +x conf$$.file
13404 if test -x conf$$.file >/dev/null 2>&1; then
13405 ac_executable_p="test -x"
13406 else
13407 ac_executable_p="test -f"
13409 rm -f conf$$.file
13411 # Extract the first word of "xgettext", so it can be a program name with args.
13412 set dummy xgettext; ac_word=$2
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13414 $as_echo_n "checking for $ac_word... " >&6; }
13415 if ${ac_cv_path_XGETTEXT+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 case "$XGETTEXT" in
13419 [\\/]* | ?:[\\/]*)
13420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13423 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13424 for ac_dir in $PATH; do
13425 IFS="$ac_save_IFS"
13426 test -z "$ac_dir" && ac_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13429 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13430 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13431 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13432 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13433 break 2
13436 done
13437 done
13438 IFS="$ac_save_IFS"
13439 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13441 esac
13443 XGETTEXT="$ac_cv_path_XGETTEXT"
13444 if test "$XGETTEXT" != ":"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13446 $as_echo "$XGETTEXT" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13452 rm -f messages.po
13454 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13455 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13456 *) XGETTEXT_015=$XGETTEXT ;;
13457 esac
13461 # Prepare PATH_SEPARATOR.
13462 # The user is always right.
13463 if test "${PATH_SEPARATOR+set}" != set; then
13464 echo "#! /bin/sh" >conf$$.sh
13465 echo "exit 0" >>conf$$.sh
13466 chmod +x conf$$.sh
13467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13468 PATH_SEPARATOR=';'
13469 else
13470 PATH_SEPARATOR=:
13472 rm -f conf$$.sh
13475 # Find out how to test for executable files. Don't use a zero-byte file,
13476 # as systems may use methods other than mode bits to determine executability.
13477 cat >conf$$.file <<_ASEOF
13478 #! /bin/sh
13479 exit 0
13480 _ASEOF
13481 chmod +x conf$$.file
13482 if test -x conf$$.file >/dev/null 2>&1; then
13483 ac_executable_p="test -x"
13484 else
13485 ac_executable_p="test -f"
13487 rm -f conf$$.file
13489 # Extract the first word of "msgmerge", so it can be a program name with args.
13490 set dummy msgmerge; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_MSGMERGE+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 case "$MSGMERGE" in
13497 [\\/]* | ?:[\\/]*)
13498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13502 for ac_dir in $PATH; do
13503 IFS="$ac_save_IFS"
13504 test -z "$ac_dir" && ac_dir=.
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13510 break 2
13513 done
13514 done
13515 IFS="$ac_save_IFS"
13516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13518 esac
13520 MSGMERGE="$ac_cv_path_MSGMERGE"
13521 if test "$MSGMERGE" != ":"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13523 $as_echo "$MSGMERGE" >&6; }
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13530 test -n "$localedir" || localedir='${datadir}/locale'
13533 ac_config_commands="$ac_config_commands po-directories"
13537 if test "X$prefix" = "XNONE"; then
13538 acl_final_prefix="$ac_default_prefix"
13539 else
13540 acl_final_prefix="$prefix"
13542 if test "X$exec_prefix" = "XNONE"; then
13543 acl_final_exec_prefix='${prefix}'
13544 else
13545 acl_final_exec_prefix="$exec_prefix"
13547 acl_save_prefix="$prefix"
13548 prefix="$acl_final_prefix"
13549 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13550 prefix="$acl_save_prefix"
13553 # Check whether --with-gnu-ld was given.
13554 if test "${with_gnu_ld+set}" = set; then :
13555 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13556 else
13557 with_gnu_ld=no
13560 # Prepare PATH_SEPARATOR.
13561 # The user is always right.
13562 if test "${PATH_SEPARATOR+set}" != set; then
13563 echo "#! /bin/sh" >conf$$.sh
13564 echo "exit 0" >>conf$$.sh
13565 chmod +x conf$$.sh
13566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13567 PATH_SEPARATOR=';'
13568 else
13569 PATH_SEPARATOR=:
13571 rm -f conf$$.sh
13573 ac_prog=ld
13574 if test "$GCC" = yes; then
13575 # Check if gcc -print-prog-name=ld gives a path.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13577 $as_echo_n "checking for ld used by GCC... " >&6; }
13578 case $host in
13579 *-*-mingw*)
13580 # gcc leaves a trailing carriage return which upsets mingw
13581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13584 esac
13585 case $ac_prog in
13586 # Accept absolute paths.
13587 [\\/]* | [A-Za-z]:[\\/]*)
13588 re_direlt='/[^/][^/]*/\.\./'
13589 # Canonicalize the path of ld
13590 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13591 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13592 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13593 done
13594 test -z "$LD" && LD="$ac_prog"
13597 # If it fails, then pretend we aren't using GCC.
13598 ac_prog=ld
13601 # If it is relative, then search for the first ld in PATH.
13602 with_gnu_ld=unknown
13604 esac
13605 elif test "$with_gnu_ld" = yes; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13607 $as_echo_n "checking for GNU ld... " >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13610 $as_echo_n "checking for non-GNU ld... " >&6; }
13612 if ${acl_cv_path_LD+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -z "$LD"; then
13616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13617 for ac_dir in $PATH; do
13618 test -z "$ac_dir" && ac_dir=.
13619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13620 acl_cv_path_LD="$ac_dir/$ac_prog"
13621 # Check to see if the program is GNU ld. I'd rather use --version,
13622 # but apparently some GNU ld's only accept -v.
13623 # Break only if it was the GNU/non-GNU ld that we prefer.
13624 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13625 *GNU* | *'with BFD'*)
13626 test "$with_gnu_ld" != no && break ;;
13628 test "$with_gnu_ld" != yes && break ;;
13629 esac
13631 done
13632 IFS="$ac_save_ifs"
13633 else
13634 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13638 LD="$acl_cv_path_LD"
13639 if test -n "$LD"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13641 $as_echo "$LD" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13646 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13649 if ${acl_cv_prog_gnu_ld+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13653 case `$LD -v 2>&1 </dev/null` in
13654 *GNU* | *'with BFD'*)
13655 acl_cv_prog_gnu_ld=yes ;;
13657 acl_cv_prog_gnu_ld=no ;;
13658 esac
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13661 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13662 with_gnu_ld=$acl_cv_prog_gnu_ld
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13668 $as_echo_n "checking for shared library run path origin... " >&6; }
13669 if ${acl_cv_rpath+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13673 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13674 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13675 . ./conftest.sh
13676 rm -f ./conftest.sh
13677 acl_cv_rpath=done
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13681 $as_echo "$acl_cv_rpath" >&6; }
13682 wl="$acl_cv_wl"
13683 libext="$acl_cv_libext"
13684 shlibext="$acl_cv_shlibext"
13685 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13686 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13687 hardcode_direct="$acl_cv_hardcode_direct"
13688 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13689 # Check whether --enable-rpath was given.
13690 if test "${enable_rpath+set}" = set; then :
13691 enableval=$enable_rpath; :
13692 else
13693 enable_rpath=yes
13698 acl_libdirstem=lib
13699 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13700 if test -n "$searchpath"; then
13701 acl_save_IFS="${IFS= }"; IFS=":"
13702 for searchdir in $searchpath; do
13703 if test -d "$searchdir"; then
13704 case "$searchdir" in
13705 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13706 *) searchdir=`cd "$searchdir" && pwd`
13707 case "$searchdir" in
13708 */lib64 ) acl_libdirstem=lib64 ;;
13709 esac ;;
13710 esac
13712 done
13713 IFS="$acl_save_IFS"
13723 use_additional=yes
13725 acl_save_prefix="$prefix"
13726 prefix="$acl_final_prefix"
13727 acl_save_exec_prefix="$exec_prefix"
13728 exec_prefix="$acl_final_exec_prefix"
13730 eval additional_includedir=\"$includedir\"
13731 eval additional_libdir=\"$libdir\"
13733 exec_prefix="$acl_save_exec_prefix"
13734 prefix="$acl_save_prefix"
13737 # Check whether --with-libiconv-prefix was given.
13738 if test "${with_libiconv_prefix+set}" = set; then :
13739 withval=$with_libiconv_prefix;
13740 if test "X$withval" = "Xno"; then
13741 use_additional=no
13742 else
13743 if test "X$withval" = "X"; then
13745 acl_save_prefix="$prefix"
13746 prefix="$acl_final_prefix"
13747 acl_save_exec_prefix="$exec_prefix"
13748 exec_prefix="$acl_final_exec_prefix"
13750 eval additional_includedir=\"$includedir\"
13751 eval additional_libdir=\"$libdir\"
13753 exec_prefix="$acl_save_exec_prefix"
13754 prefix="$acl_save_prefix"
13756 else
13757 additional_includedir="$withval/include"
13758 additional_libdir="$withval/$acl_libdirstem"
13764 LIBICONV=
13765 LTLIBICONV=
13766 INCICONV=
13767 rpathdirs=
13768 ltrpathdirs=
13769 names_already_handled=
13770 names_next_round='iconv '
13771 while test -n "$names_next_round"; do
13772 names_this_round="$names_next_round"
13773 names_next_round=
13774 for name in $names_this_round; do
13775 already_handled=
13776 for n in $names_already_handled; do
13777 if test "$n" = "$name"; then
13778 already_handled=yes
13779 break
13781 done
13782 if test -z "$already_handled"; then
13783 names_already_handled="$names_already_handled $name"
13784 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13785 eval value=\"\$HAVE_LIB$uppername\"
13786 if test -n "$value"; then
13787 if test "$value" = yes; then
13788 eval value=\"\$LIB$uppername\"
13789 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13790 eval value=\"\$LTLIB$uppername\"
13791 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13792 else
13795 else
13796 found_dir=
13797 found_la=
13798 found_so=
13799 found_a=
13800 if test $use_additional = yes; then
13801 if test -n "$shlibext" \
13802 && { test -f "$additional_libdir/lib$name.$shlibext" \
13803 || { test "$shlibext" = dll \
13804 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13805 found_dir="$additional_libdir"
13806 if test -f "$additional_libdir/lib$name.$shlibext"; then
13807 found_so="$additional_libdir/lib$name.$shlibext"
13808 else
13809 found_so="$additional_libdir/lib$name.dll.a"
13811 if test -f "$additional_libdir/lib$name.la"; then
13812 found_la="$additional_libdir/lib$name.la"
13814 else
13815 if test -f "$additional_libdir/lib$name.$libext"; then
13816 found_dir="$additional_libdir"
13817 found_a="$additional_libdir/lib$name.$libext"
13818 if test -f "$additional_libdir/lib$name.la"; then
13819 found_la="$additional_libdir/lib$name.la"
13824 if test "X$found_dir" = "X"; then
13825 for x in $LDFLAGS $LTLIBICONV; do
13827 acl_save_prefix="$prefix"
13828 prefix="$acl_final_prefix"
13829 acl_save_exec_prefix="$exec_prefix"
13830 exec_prefix="$acl_final_exec_prefix"
13831 eval x=\"$x\"
13832 exec_prefix="$acl_save_exec_prefix"
13833 prefix="$acl_save_prefix"
13835 case "$x" in
13836 -L*)
13837 dir=`echo "X$x" | sed -e 's/^X-L//'`
13838 if test -n "$shlibext" \
13839 && { test -f "$dir/lib$name.$shlibext" \
13840 || { test "$shlibext" = dll \
13841 && test -f "$dir/lib$name.dll.a"; }; }; then
13842 found_dir="$dir"
13843 if test -f "$dir/lib$name.$shlibext"; then
13844 found_so="$dir/lib$name.$shlibext"
13845 else
13846 found_so="$dir/lib$name.dll.a"
13848 if test -f "$dir/lib$name.la"; then
13849 found_la="$dir/lib$name.la"
13851 else
13852 if test -f "$dir/lib$name.$libext"; then
13853 found_dir="$dir"
13854 found_a="$dir/lib$name.$libext"
13855 if test -f "$dir/lib$name.la"; then
13856 found_la="$dir/lib$name.la"
13861 esac
13862 if test "X$found_dir" != "X"; then
13863 break
13865 done
13867 if test "X$found_dir" != "X"; then
13868 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13869 if test "X$found_so" != "X"; then
13870 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13872 else
13873 haveit=
13874 for x in $ltrpathdirs; do
13875 if test "X$x" = "X$found_dir"; then
13876 haveit=yes
13877 break
13879 done
13880 if test -z "$haveit"; then
13881 ltrpathdirs="$ltrpathdirs $found_dir"
13883 if test "$hardcode_direct" = yes; then
13884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13885 else
13886 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13887 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13888 haveit=
13889 for x in $rpathdirs; do
13890 if test "X$x" = "X$found_dir"; then
13891 haveit=yes
13892 break
13894 done
13895 if test -z "$haveit"; then
13896 rpathdirs="$rpathdirs $found_dir"
13898 else
13899 haveit=
13900 for x in $LDFLAGS $LIBICONV; do
13902 acl_save_prefix="$prefix"
13903 prefix="$acl_final_prefix"
13904 acl_save_exec_prefix="$exec_prefix"
13905 exec_prefix="$acl_final_exec_prefix"
13906 eval x=\"$x\"
13907 exec_prefix="$acl_save_exec_prefix"
13908 prefix="$acl_save_prefix"
13910 if test "X$x" = "X-L$found_dir"; then
13911 haveit=yes
13912 break
13914 done
13915 if test -z "$haveit"; then
13916 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13918 if test "$hardcode_minus_L" != no; then
13919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13920 else
13921 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13926 else
13927 if test "X$found_a" != "X"; then
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13929 else
13930 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13933 additional_includedir=
13934 case "$found_dir" in
13935 */$acl_libdirstem | */$acl_libdirstem/)
13936 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13937 additional_includedir="$basedir/include"
13939 esac
13940 if test "X$additional_includedir" != "X"; then
13941 if test "X$additional_includedir" != "X/usr/include"; then
13942 haveit=
13943 if test "X$additional_includedir" = "X/usr/local/include"; then
13944 if test -n "$GCC"; then
13945 case $host_os in
13946 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13947 esac
13950 if test -z "$haveit"; then
13951 for x in $CPPFLAGS $INCICONV; do
13953 acl_save_prefix="$prefix"
13954 prefix="$acl_final_prefix"
13955 acl_save_exec_prefix="$exec_prefix"
13956 exec_prefix="$acl_final_exec_prefix"
13957 eval x=\"$x\"
13958 exec_prefix="$acl_save_exec_prefix"
13959 prefix="$acl_save_prefix"
13961 if test "X$x" = "X-I$additional_includedir"; then
13962 haveit=yes
13963 break
13965 done
13966 if test -z "$haveit"; then
13967 if test -d "$additional_includedir"; then
13968 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13974 if test -n "$found_la"; then
13975 save_libdir="$libdir"
13976 case "$found_la" in
13977 */* | *\\*) . "$found_la" ;;
13978 *) . "./$found_la" ;;
13979 esac
13980 libdir="$save_libdir"
13981 for dep in $dependency_libs; do
13982 case "$dep" in
13983 -L*)
13984 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13985 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13986 haveit=
13987 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13988 if test -n "$GCC"; then
13989 case $host_os in
13990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13991 esac
13994 if test -z "$haveit"; then
13995 haveit=
13996 for x in $LDFLAGS $LIBICONV; do
13998 acl_save_prefix="$prefix"
13999 prefix="$acl_final_prefix"
14000 acl_save_exec_prefix="$exec_prefix"
14001 exec_prefix="$acl_final_exec_prefix"
14002 eval x=\"$x\"
14003 exec_prefix="$acl_save_exec_prefix"
14004 prefix="$acl_save_prefix"
14006 if test "X$x" = "X-L$additional_libdir"; then
14007 haveit=yes
14008 break
14010 done
14011 if test -z "$haveit"; then
14012 if test -d "$additional_libdir"; then
14013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14016 haveit=
14017 for x in $LDFLAGS $LTLIBICONV; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14023 eval x=\"$x\"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14027 if test "X$x" = "X-L$additional_libdir"; then
14028 haveit=yes
14029 break
14031 done
14032 if test -z "$haveit"; then
14033 if test -d "$additional_libdir"; then
14034 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14040 -R*)
14041 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14042 if test "$enable_rpath" != no; then
14043 haveit=
14044 for x in $rpathdirs; do
14045 if test "X$x" = "X$dir"; then
14046 haveit=yes
14047 break
14049 done
14050 if test -z "$haveit"; then
14051 rpathdirs="$rpathdirs $dir"
14053 haveit=
14054 for x in $ltrpathdirs; do
14055 if test "X$x" = "X$dir"; then
14056 haveit=yes
14057 break
14059 done
14060 if test -z "$haveit"; then
14061 ltrpathdirs="$ltrpathdirs $dir"
14065 -l*)
14066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14068 *.la)
14069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14072 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14075 esac
14076 done
14078 else
14079 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14084 done
14085 done
14086 if test "X$rpathdirs" != "X"; then
14087 if test -n "$hardcode_libdir_separator"; then
14088 alldirs=
14089 for found_dir in $rpathdirs; do
14090 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14091 done
14092 acl_save_libdir="$libdir"
14093 libdir="$alldirs"
14094 eval flag=\"$hardcode_libdir_flag_spec\"
14095 libdir="$acl_save_libdir"
14096 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14097 else
14098 for found_dir in $rpathdirs; do
14099 acl_save_libdir="$libdir"
14100 libdir="$found_dir"
14101 eval flag=\"$hardcode_libdir_flag_spec\"
14102 libdir="$acl_save_libdir"
14103 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14104 done
14107 if test "X$ltrpathdirs" != "X"; then
14108 for found_dir in $ltrpathdirs; do
14109 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14110 done
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14138 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14139 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 gt_save_LIBS="$LIBS"
14143 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <CoreFoundation/CFPreferences.h>
14148 main ()
14150 CFPreferencesCopyAppValue(NULL, NULL)
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 gt_cv_func_CFPreferencesCopyAppValue=yes
14157 else
14158 gt_cv_func_CFPreferencesCopyAppValue=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS="$gt_save_LIBS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14165 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14166 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14168 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14172 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14173 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 gt_save_LIBS="$LIBS"
14177 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #include <CoreFoundation/CFLocale.h>
14182 main ()
14184 CFLocaleCopyCurrent();
14186 return 0;
14188 _ACEOF
14189 if ac_fn_c_try_link "$LINENO"; then :
14190 gt_cv_func_CFLocaleCopyCurrent=yes
14191 else
14192 gt_cv_func_CFLocaleCopyCurrent=no
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS="$gt_save_LIBS"
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14199 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14200 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14202 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14205 INTL_MACOSX_LIBS=
14206 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14207 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14215 LIBINTL=
14216 LTLIBINTL=
14217 POSUB=
14219 case " $gt_needs " in
14220 *" need-formatstring-macros "*) gt_api_version=3 ;;
14221 *" need-ngettext "*) gt_api_version=2 ;;
14222 *) gt_api_version=1 ;;
14223 esac
14224 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14225 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14227 if test "$USE_NLS" = "yes"; then
14228 gt_use_preinstalled_gnugettext=no
14231 if test $gt_api_version -ge 3; then
14232 gt_revision_test_code='
14233 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14234 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14235 #endif
14236 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14238 else
14239 gt_revision_test_code=
14241 if test $gt_api_version -ge 2; then
14242 gt_expression_test_code=' + * ngettext ("", "", 0)'
14243 else
14244 gt_expression_test_code=
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14248 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14249 if eval \${$gt_func_gnugettext_libc+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 #include <libintl.h>
14255 $gt_revision_test_code
14256 extern int _nl_msg_cat_cntr;
14257 extern int *_nl_domain_bindings;
14259 main ()
14261 bindtextdomain ("", "");
14262 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14264 return 0;
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 eval "$gt_func_gnugettext_libc=yes"
14269 else
14270 eval "$gt_func_gnugettext_libc=no"
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14275 eval ac_res=\$$gt_func_gnugettext_libc
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14277 $as_echo "$ac_res" >&6; }
14279 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14285 am_save_CPPFLAGS="$CPPFLAGS"
14287 for element in $INCICONV; do
14288 haveit=
14289 for x in $CPPFLAGS; do
14291 acl_save_prefix="$prefix"
14292 prefix="$acl_final_prefix"
14293 acl_save_exec_prefix="$exec_prefix"
14294 exec_prefix="$acl_final_exec_prefix"
14295 eval x=\"$x\"
14296 exec_prefix="$acl_save_exec_prefix"
14297 prefix="$acl_save_prefix"
14299 if test "X$x" = "X$element"; then
14300 haveit=yes
14301 break
14303 done
14304 if test -z "$haveit"; then
14305 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14307 done
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14311 $as_echo_n "checking for iconv... " >&6; }
14312 if ${am_cv_func_iconv+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14316 am_cv_func_iconv="no, consider installing GNU libiconv"
14317 am_cv_lib_iconv=no
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320 #include <stdlib.h>
14321 #include <iconv.h>
14323 main ()
14325 iconv_t cd = iconv_open("","");
14326 iconv(cd,NULL,NULL,NULL,NULL);
14327 iconv_close(cd);
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 am_cv_func_iconv=yes
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 if test "$am_cv_func_iconv" != yes; then
14338 am_save_LIBS="$LIBS"
14339 LIBS="$LIBS $LIBICONV"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 #include <stdlib.h>
14343 #include <iconv.h>
14345 main ()
14347 iconv_t cd = iconv_open("","");
14348 iconv(cd,NULL,NULL,NULL,NULL);
14349 iconv_close(cd);
14351 return 0;
14353 _ACEOF
14354 if ac_fn_c_try_link "$LINENO"; then :
14355 am_cv_lib_iconv=yes
14356 am_cv_func_iconv=yes
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS="$am_save_LIBS"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14365 $as_echo "$am_cv_func_iconv" >&6; }
14366 if test "$am_cv_func_iconv" = yes; then
14368 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14371 if test "$am_cv_lib_iconv" = yes; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14373 $as_echo_n "checking how to link with libiconv... " >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14375 $as_echo "$LIBICONV" >&6; }
14376 else
14377 CPPFLAGS="$am_save_CPPFLAGS"
14378 LIBICONV=
14379 LTLIBICONV=
14388 use_additional=yes
14390 acl_save_prefix="$prefix"
14391 prefix="$acl_final_prefix"
14392 acl_save_exec_prefix="$exec_prefix"
14393 exec_prefix="$acl_final_exec_prefix"
14395 eval additional_includedir=\"$includedir\"
14396 eval additional_libdir=\"$libdir\"
14398 exec_prefix="$acl_save_exec_prefix"
14399 prefix="$acl_save_prefix"
14402 # Check whether --with-libintl-prefix was given.
14403 if test "${with_libintl_prefix+set}" = set; then :
14404 withval=$with_libintl_prefix;
14405 if test "X$withval" = "Xno"; then
14406 use_additional=no
14407 else
14408 if test "X$withval" = "X"; then
14410 acl_save_prefix="$prefix"
14411 prefix="$acl_final_prefix"
14412 acl_save_exec_prefix="$exec_prefix"
14413 exec_prefix="$acl_final_exec_prefix"
14415 eval additional_includedir=\"$includedir\"
14416 eval additional_libdir=\"$libdir\"
14418 exec_prefix="$acl_save_exec_prefix"
14419 prefix="$acl_save_prefix"
14421 else
14422 additional_includedir="$withval/include"
14423 additional_libdir="$withval/$acl_libdirstem"
14429 LIBINTL=
14430 LTLIBINTL=
14431 INCINTL=
14432 rpathdirs=
14433 ltrpathdirs=
14434 names_already_handled=
14435 names_next_round='intl '
14436 while test -n "$names_next_round"; do
14437 names_this_round="$names_next_round"
14438 names_next_round=
14439 for name in $names_this_round; do
14440 already_handled=
14441 for n in $names_already_handled; do
14442 if test "$n" = "$name"; then
14443 already_handled=yes
14444 break
14446 done
14447 if test -z "$already_handled"; then
14448 names_already_handled="$names_already_handled $name"
14449 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14450 eval value=\"\$HAVE_LIB$uppername\"
14451 if test -n "$value"; then
14452 if test "$value" = yes; then
14453 eval value=\"\$LIB$uppername\"
14454 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14455 eval value=\"\$LTLIB$uppername\"
14456 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14457 else
14460 else
14461 found_dir=
14462 found_la=
14463 found_so=
14464 found_a=
14465 if test $use_additional = yes; then
14466 if test -n "$shlibext" \
14467 && { test -f "$additional_libdir/lib$name.$shlibext" \
14468 || { test "$shlibext" = dll \
14469 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14470 found_dir="$additional_libdir"
14471 if test -f "$additional_libdir/lib$name.$shlibext"; then
14472 found_so="$additional_libdir/lib$name.$shlibext"
14473 else
14474 found_so="$additional_libdir/lib$name.dll.a"
14476 if test -f "$additional_libdir/lib$name.la"; then
14477 found_la="$additional_libdir/lib$name.la"
14479 else
14480 if test -f "$additional_libdir/lib$name.$libext"; then
14481 found_dir="$additional_libdir"
14482 found_a="$additional_libdir/lib$name.$libext"
14483 if test -f "$additional_libdir/lib$name.la"; then
14484 found_la="$additional_libdir/lib$name.la"
14489 if test "X$found_dir" = "X"; then
14490 for x in $LDFLAGS $LTLIBINTL; do
14492 acl_save_prefix="$prefix"
14493 prefix="$acl_final_prefix"
14494 acl_save_exec_prefix="$exec_prefix"
14495 exec_prefix="$acl_final_exec_prefix"
14496 eval x=\"$x\"
14497 exec_prefix="$acl_save_exec_prefix"
14498 prefix="$acl_save_prefix"
14500 case "$x" in
14501 -L*)
14502 dir=`echo "X$x" | sed -e 's/^X-L//'`
14503 if test -n "$shlibext" \
14504 && { test -f "$dir/lib$name.$shlibext" \
14505 || { test "$shlibext" = dll \
14506 && test -f "$dir/lib$name.dll.a"; }; }; then
14507 found_dir="$dir"
14508 if test -f "$dir/lib$name.$shlibext"; then
14509 found_so="$dir/lib$name.$shlibext"
14510 else
14511 found_so="$dir/lib$name.dll.a"
14513 if test -f "$dir/lib$name.la"; then
14514 found_la="$dir/lib$name.la"
14516 else
14517 if test -f "$dir/lib$name.$libext"; then
14518 found_dir="$dir"
14519 found_a="$dir/lib$name.$libext"
14520 if test -f "$dir/lib$name.la"; then
14521 found_la="$dir/lib$name.la"
14526 esac
14527 if test "X$found_dir" != "X"; then
14528 break
14530 done
14532 if test "X$found_dir" != "X"; then
14533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14534 if test "X$found_so" != "X"; then
14535 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14537 else
14538 haveit=
14539 for x in $ltrpathdirs; do
14540 if test "X$x" = "X$found_dir"; then
14541 haveit=yes
14542 break
14544 done
14545 if test -z "$haveit"; then
14546 ltrpathdirs="$ltrpathdirs $found_dir"
14548 if test "$hardcode_direct" = yes; then
14549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14550 else
14551 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14553 haveit=
14554 for x in $rpathdirs; do
14555 if test "X$x" = "X$found_dir"; then
14556 haveit=yes
14557 break
14559 done
14560 if test -z "$haveit"; then
14561 rpathdirs="$rpathdirs $found_dir"
14563 else
14564 haveit=
14565 for x in $LDFLAGS $LIBINTL; do
14567 acl_save_prefix="$prefix"
14568 prefix="$acl_final_prefix"
14569 acl_save_exec_prefix="$exec_prefix"
14570 exec_prefix="$acl_final_exec_prefix"
14571 eval x=\"$x\"
14572 exec_prefix="$acl_save_exec_prefix"
14573 prefix="$acl_save_prefix"
14575 if test "X$x" = "X-L$found_dir"; then
14576 haveit=yes
14577 break
14579 done
14580 if test -z "$haveit"; then
14581 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14583 if test "$hardcode_minus_L" != no; then
14584 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14585 else
14586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14591 else
14592 if test "X$found_a" != "X"; then
14593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14594 else
14595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14598 additional_includedir=
14599 case "$found_dir" in
14600 */$acl_libdirstem | */$acl_libdirstem/)
14601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14602 additional_includedir="$basedir/include"
14604 esac
14605 if test "X$additional_includedir" != "X"; then
14606 if test "X$additional_includedir" != "X/usr/include"; then
14607 haveit=
14608 if test "X$additional_includedir" = "X/usr/local/include"; then
14609 if test -n "$GCC"; then
14610 case $host_os in
14611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14612 esac
14615 if test -z "$haveit"; then
14616 for x in $CPPFLAGS $INCINTL; do
14618 acl_save_prefix="$prefix"
14619 prefix="$acl_final_prefix"
14620 acl_save_exec_prefix="$exec_prefix"
14621 exec_prefix="$acl_final_exec_prefix"
14622 eval x=\"$x\"
14623 exec_prefix="$acl_save_exec_prefix"
14624 prefix="$acl_save_prefix"
14626 if test "X$x" = "X-I$additional_includedir"; then
14627 haveit=yes
14628 break
14630 done
14631 if test -z "$haveit"; then
14632 if test -d "$additional_includedir"; then
14633 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14639 if test -n "$found_la"; then
14640 save_libdir="$libdir"
14641 case "$found_la" in
14642 */* | *\\*) . "$found_la" ;;
14643 *) . "./$found_la" ;;
14644 esac
14645 libdir="$save_libdir"
14646 for dep in $dependency_libs; do
14647 case "$dep" in
14648 -L*)
14649 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14650 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14651 haveit=
14652 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14653 if test -n "$GCC"; then
14654 case $host_os in
14655 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14656 esac
14659 if test -z "$haveit"; then
14660 haveit=
14661 for x in $LDFLAGS $LIBINTL; do
14663 acl_save_prefix="$prefix"
14664 prefix="$acl_final_prefix"
14665 acl_save_exec_prefix="$exec_prefix"
14666 exec_prefix="$acl_final_exec_prefix"
14667 eval x=\"$x\"
14668 exec_prefix="$acl_save_exec_prefix"
14669 prefix="$acl_save_prefix"
14671 if test "X$x" = "X-L$additional_libdir"; then
14672 haveit=yes
14673 break
14675 done
14676 if test -z "$haveit"; then
14677 if test -d "$additional_libdir"; then
14678 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14681 haveit=
14682 for x in $LDFLAGS $LTLIBINTL; do
14684 acl_save_prefix="$prefix"
14685 prefix="$acl_final_prefix"
14686 acl_save_exec_prefix="$exec_prefix"
14687 exec_prefix="$acl_final_exec_prefix"
14688 eval x=\"$x\"
14689 exec_prefix="$acl_save_exec_prefix"
14690 prefix="$acl_save_prefix"
14692 if test "X$x" = "X-L$additional_libdir"; then
14693 haveit=yes
14694 break
14696 done
14697 if test -z "$haveit"; then
14698 if test -d "$additional_libdir"; then
14699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14705 -R*)
14706 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14707 if test "$enable_rpath" != no; then
14708 haveit=
14709 for x in $rpathdirs; do
14710 if test "X$x" = "X$dir"; then
14711 haveit=yes
14712 break
14714 done
14715 if test -z "$haveit"; then
14716 rpathdirs="$rpathdirs $dir"
14718 haveit=
14719 for x in $ltrpathdirs; do
14720 if test "X$x" = "X$dir"; then
14721 haveit=yes
14722 break
14724 done
14725 if test -z "$haveit"; then
14726 ltrpathdirs="$ltrpathdirs $dir"
14730 -l*)
14731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14733 *.la)
14734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14737 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14740 esac
14741 done
14743 else
14744 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14745 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14749 done
14750 done
14751 if test "X$rpathdirs" != "X"; then
14752 if test -n "$hardcode_libdir_separator"; then
14753 alldirs=
14754 for found_dir in $rpathdirs; do
14755 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14756 done
14757 acl_save_libdir="$libdir"
14758 libdir="$alldirs"
14759 eval flag=\"$hardcode_libdir_flag_spec\"
14760 libdir="$acl_save_libdir"
14761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14762 else
14763 for found_dir in $rpathdirs; do
14764 acl_save_libdir="$libdir"
14765 libdir="$found_dir"
14766 eval flag=\"$hardcode_libdir_flag_spec\"
14767 libdir="$acl_save_libdir"
14768 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14769 done
14772 if test "X$ltrpathdirs" != "X"; then
14773 for found_dir in $ltrpathdirs; do
14774 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14775 done
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14779 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14780 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14783 gt_save_CPPFLAGS="$CPPFLAGS"
14784 CPPFLAGS="$CPPFLAGS $INCINTL"
14785 gt_save_LIBS="$LIBS"
14786 LIBS="$LIBS $LIBINTL"
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 #include <libintl.h>
14790 $gt_revision_test_code
14791 extern int _nl_msg_cat_cntr;
14792 extern
14793 #ifdef __cplusplus
14795 #endif
14796 const char *_nl_expand_alias (const char *);
14798 main ()
14800 bindtextdomain ("", "");
14801 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14803 return 0;
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 eval "$gt_func_gnugettext_libintl=yes"
14808 else
14809 eval "$gt_func_gnugettext_libintl=no"
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14814 LIBS="$LIBS $LIBICONV"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 #include <libintl.h>
14818 $gt_revision_test_code
14819 extern int _nl_msg_cat_cntr;
14820 extern
14821 #ifdef __cplusplus
14823 #endif
14824 const char *_nl_expand_alias (const char *);
14826 main ()
14828 bindtextdomain ("", "");
14829 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14831 return 0;
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835 LIBINTL="$LIBINTL $LIBICONV"
14836 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14837 eval "$gt_func_gnugettext_libintl=yes"
14840 rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14843 CPPFLAGS="$gt_save_CPPFLAGS"
14844 LIBS="$gt_save_LIBS"
14846 eval ac_res=\$$gt_func_gnugettext_libintl
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14848 $as_echo "$ac_res" >&6; }
14851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14852 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14853 && test "$PACKAGE" != gettext-runtime \
14854 && test "$PACKAGE" != gettext-tools; }; then
14855 gt_use_preinstalled_gnugettext=yes
14856 else
14857 LIBINTL=
14858 LTLIBINTL=
14859 INCINTL=
14864 if test -n "$INTL_MACOSX_LIBS"; then
14865 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14866 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14867 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14868 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14872 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14873 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14875 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14877 else
14878 USE_NLS=no
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14883 $as_echo_n "checking whether to use NLS... " >&6; }
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14885 $as_echo "$USE_NLS" >&6; }
14886 if test "$USE_NLS" = "yes"; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14888 $as_echo_n "checking where the gettext function comes from... " >&6; }
14889 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14890 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14891 gt_source="external libintl"
14892 else
14893 gt_source="libc"
14895 else
14896 gt_source="included intl directory"
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14899 $as_echo "$gt_source" >&6; }
14902 if test "$USE_NLS" = "yes"; then
14904 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14905 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14907 $as_echo_n "checking how to link with libintl... " >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14909 $as_echo "$LIBINTL" >&6; }
14911 for element in $INCINTL; do
14912 haveit=
14913 for x in $CPPFLAGS; do
14915 acl_save_prefix="$prefix"
14916 prefix="$acl_final_prefix"
14917 acl_save_exec_prefix="$exec_prefix"
14918 exec_prefix="$acl_final_exec_prefix"
14919 eval x=\"$x\"
14920 exec_prefix="$acl_save_exec_prefix"
14921 prefix="$acl_save_prefix"
14923 if test "X$x" = "X$element"; then
14924 haveit=yes
14925 break
14927 done
14928 if test -z "$haveit"; then
14929 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14931 done
14936 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14939 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14943 POSUB=po
14948 INTLLIBS="$LIBINTL"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14957 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14958 # Check whether --enable-dmalloc was given.
14959 if test "${enable_dmalloc+set}" = set; then :
14960 enableval=$enable_dmalloc;
14963 if test x$enable_dmalloc = "xyes" ; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14965 $as_echo "yes" >&6; }
14966 else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14972 # Check whether --with-dmalloc-dir was given.
14973 if test "${with_dmalloc_dir+set}" = set; then :
14974 withval=$with_dmalloc_dir;
14975 if test "x$withval" != "xno" ; then
14976 enable_dmalloc = "yes"
14977 CPPFLAGS="$CPPFLAGS -I${withval}"
14978 LDFLAGS="$LDFLAGS -L${withval}"
14984 if test x$enable_dmalloc = "xyes" ; then
14986 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14990 ALPINE_datestamp=`date`
14992 # Check whether --with-date-stamp was given.
14993 if test "${with_date_stamp+set}" = set; then :
14994 withval=$with_date_stamp;
14995 if test "x$withval" != "xno" ; then
14996 ALPINE_datestamp=$withval
15001 ALPINE_DATESTAMP=$ALPINE_datestamp
15004 ALPINE_hoststamp=`hostname`
15006 # Check whether --with-host-stamp was given.
15007 if test "${with_host_stamp+set}" = set; then :
15008 withval=$with_host_stamp;
15009 if test "x$withval" != "xno" ; then
15010 ALPINE_hoststamp="$withval"
15015 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15018 case $host in
15019 *apple-darwin*)
15020 if test -d /opt/local ; then
15021 localedir="/opt/local/share/locale"
15022 else
15023 localedir="\${datadir}/locale"
15026 *-*-cygwin)
15027 localedir="/usr/share"
15030 localedir="\${datadir}/locale"
15032 esac
15035 # Check whether --with-localedir was given.
15036 if test "${with_localedir+set}" = set; then :
15037 withval=$with_localedir;
15038 case $withval in
15039 yes)
15044 localedir=$withval
15046 esac
15050 localedir="$localedir"
15053 # Setup OS-Specific features
15054 case "$host" in
15055 *darwin*)
15056 # Check whether --enable-osx-universal-binaries was given.
15057 if test "${enable_osx_universal_binaries+set}" = set; then :
15058 enableval=$enable_osx_universal_binaries;
15061 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15062 if test "x$enable_dependency_tracking" != xno ; then
15063 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15064 Please re-run configure with these options:
15065 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15067 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15068 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15069 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15070 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15071 else
15072 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15074 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15075 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15076 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15077 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15078 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15079 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15082 esac
15085 # Check whether --with-include-path was given.
15086 if test "${with_include_path+set}" = set; then :
15087 withval=$with_include_path;
15088 case $withval in
15091 yes)
15094 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15095 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15096 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15098 esac
15104 # Check whether --with-lib-path was given.
15105 if test "${with_lib_path+set}" = set; then :
15106 withval=$with_lib_path;
15107 case $withval in
15110 yes)
15113 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15114 LDFLAGS="$LDFLAGS $new_ldflags"
15115 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15117 esac
15123 # Check whether --with-pubcookie was given.
15124 if test "${with_pubcookie+set}" = set; then :
15125 withval=$with_pubcookie;
15126 if test "x$withval" != "xno" ; then
15127 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15135 # Check whether --with-web-bin was given.
15136 if test "${with_web_bin+set}" = set; then :
15137 withval=$with_web_bin;
15138 case "$withval" in
15141 yes)
15144 WEB_BINDIR=$withval
15146 esac
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15152 $as_echo_n "checking option: debugging is enabled... " >&6; }
15153 # Check whether --enable-debug was given.
15154 if test "${enable_debug+set}" = set; then :
15155 enableval=$enable_debug;
15158 if test x$enable_debug != "xno" ; then
15159 AM_CFLAGS="$AM_CFLAGS -g"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 $as_echo "yes" >&6; }
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15167 $as_echo "#define DEBUG 1" >>confdefs.h
15170 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15175 $as_echo_n "checking option: optimization is enabled... " >&6; }
15176 # Check whether --enable-optimization was given.
15177 if test "${enable_optimization+set}" = set; then :
15178 enableval=$enable_optimization;
15181 if test x$enable_optimization != "xno" ; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184 else
15185 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15186 alpine_c_client_gccoptlevel="-O0"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15192 $as_echo_n "checking option: mouse support enabled... " >&6; }
15193 # Check whether --enable-mouse was given.
15194 if test "${enable_mouse+set}" = set; then :
15195 enableval=$enable_mouse;
15198 if test x$enable_mouse != "xno" ; then
15200 $as_echo "#define MOUSE /**/" >>confdefs.h
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15203 $as_echo "yes" >&6; }
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206 $as_echo "no" >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15210 $as_echo_n "checking option: quotas enabled... " >&6; }
15211 # Check whether --enable-quotas was given.
15212 if test "${enable_quotas+set}" = set; then :
15213 enableval=$enable_quotas;
15216 if test x$enable_quotas = "xyes" ; then
15218 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15221 $as_echo "yes" >&6; }
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15228 $as_echo_n "checking option: From changing enabled... " >&6; }
15229 # Check whether --enable-from_changing was given.
15230 if test "${enable_from_changing+set}" = set; then :
15231 enableval=$enable_from_changing;
15234 if test x$enable_from_changing != "xno" ; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236 $as_echo "yes" >&6; }
15237 else
15239 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15246 $as_echo_n "checking option: background post enabled... " >&6; }
15247 # Check whether --enable-background-post was given.
15248 if test "${enable_background_post+set}" = set; then :
15249 enableval=$enable_background_post;
15252 if test x$enable_background_post != "xno" ; then
15254 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15257 $as_echo "yes" >&6; }
15258 else
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15260 $as_echo "no" >&6; }
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15264 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15265 # Check whether --enable-keyboard-lock was given.
15266 if test "${enable_keyboard_lock+set}" = set; then :
15267 enableval=$enable_keyboard_lock;
15270 if test x$enable_keyboard_lock != "xno" ; then
15272 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15275 $as_echo "yes" >&6; }
15276 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15282 $as_echo_n "checking option: from encoding enabled... " >&6; }
15283 # Check whether --enable-from-encoding was given.
15284 if test "${enable_from_encoding+set}" = set; then :
15285 enableval=$enable_from_encoding;
15288 if test x$enable_from_encoding = "xyes" ; then
15290 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293 $as_echo "yes" >&6; }
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15300 # Check whether --with-smtp-msa was given.
15301 if test "${with_smtp_msa+set}" = set; then :
15302 withval=$with_smtp_msa;
15303 case "$withval" in
15306 yes)
15307 # Extract the first word of "sendmail", so it can be a program name with args.
15308 set dummy sendmail; ac_word=$2
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15310 $as_echo_n "checking for $ac_word... " >&6; }
15311 if ${ac_cv_path_SENDMAIL+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 case $SENDMAIL in
15315 [\\/]* | ?:[\\/]*)
15316 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 as_dummy="$PATH:/usr/sbin:/usr/lib"
15321 for as_dir in $as_dummy
15323 IFS=$as_save_IFS
15324 test -z "$as_dir" && as_dir=.
15325 for ac_exec_ext in '' $ac_executable_extensions; do
15326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15327 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15329 break 2
15331 done
15332 done
15333 IFS=$as_save_IFS
15335 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15337 esac
15339 SENDMAIL=$ac_cv_path_SENDMAIL
15340 if test -n "$SENDMAIL"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15342 $as_echo "$SENDMAIL" >&6; }
15343 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15351 SENDMAIL=$withval
15353 esac
15355 else
15357 # Extract the first word of "sendmail", so it can be a program name with args.
15358 set dummy sendmail; ac_word=$2
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15360 $as_echo_n "checking for $ac_word... " >&6; }
15361 if ${ac_cv_path_SENDMAIL+:} false; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 case $SENDMAIL in
15365 [\\/]* | ?:[\\/]*)
15366 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370 as_dummy="$PATH:/usr/sbin:/usr/lib"
15371 for as_dir in $as_dummy
15373 IFS=$as_save_IFS
15374 test -z "$as_dir" && as_dir=.
15375 for ac_exec_ext in '' $ac_executable_extensions; do
15376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15377 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15379 break 2
15381 done
15382 done
15383 IFS=$as_save_IFS
15385 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15387 esac
15389 SENDMAIL=$ac_cv_path_SENDMAIL
15390 if test -n "$SENDMAIL"; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15392 $as_echo "$SENDMAIL" >&6; }
15393 else
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 $as_echo "no" >&6; }
15402 if test -n "$SENDMAIL" ; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define SENDMAIL "$SENDMAIL"
15406 _ACEOF
15410 smtp_msa_flags="-bs -odb -oem"
15412 # Check whether --with-smtp-msa-flags was given.
15413 if test "${with_smtp_msa_flags+set}" = set; then :
15414 withval=$with_smtp_msa_flags;
15415 if test "x$withval" != "xno" ; then
15416 smtp_msa_flags=$withval
15422 cat >>confdefs.h <<_ACEOF
15423 #define SENDMAILFLAGS "$smtp_msa_flags"
15424 _ACEOF
15427 npa="inews"
15429 # Check whether --with-npa was given.
15430 if test "${with_npa+set}" = set; then :
15431 withval=$with_npa;
15432 case "$withval" in
15435 yes)
15436 # Extract the first word of "inews", so it can be a program name with args.
15437 set dummy inews; ac_word=$2
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439 $as_echo_n "checking for $ac_word... " >&6; }
15440 if ${ac_cv_path_NPA_PROG+:} false; then :
15441 $as_echo_n "(cached) " >&6
15442 else
15443 case $NPA_PROG in
15444 [\\/]* | ?:[\\/]*)
15445 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 as_dummy="$PATH:/usr/sbin:/usr/lib"
15450 for as_dir in $as_dummy
15452 IFS=$as_save_IFS
15453 test -z "$as_dir" && as_dir=.
15454 for ac_exec_ext in '' $ac_executable_extensions; do
15455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15458 break 2
15460 done
15461 done
15462 IFS=$as_save_IFS
15464 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15466 esac
15468 NPA_PROG=$ac_cv_path_NPA_PROG
15469 if test -n "$NPA_PROG"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15471 $as_echo "$NPA_PROG" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15480 NPA_PROG=$withval
15482 esac
15484 else
15486 # Extract the first word of "inews", so it can be a program name with args.
15487 set dummy inews; ac_word=$2
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15489 $as_echo_n "checking for $ac_word... " >&6; }
15490 if ${ac_cv_path_NPA_PROG+:} false; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 case $NPA_PROG in
15494 [\\/]* | ?:[\\/]*)
15495 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15499 as_dummy="$PATH:/usr/sbin:/usr/lib"
15500 for as_dir in $as_dummy
15502 IFS=$as_save_IFS
15503 test -z "$as_dir" && as_dir=.
15504 for ac_exec_ext in '' $ac_executable_extensions; do
15505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15506 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15508 break 2
15510 done
15511 done
15512 IFS=$as_save_IFS
15514 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15516 esac
15518 NPA_PROG=$ac_cv_path_NPA_PROG
15519 if test -n "$NPA_PROG"; then
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15521 $as_echo "$NPA_PROG" >&6; }
15522 else
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15524 $as_echo "no" >&6; }
15532 npa_flags="-h"
15534 # Check whether --with-npa-flags was given.
15535 if test "${with_npa_flags+set}" = set; then :
15536 withval=$with_npa_flags;
15537 if test "x$withval" != "xno" ; then
15538 npa_flags=$withval
15543 if test -n "$NPA_PROG" ; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define SENDNEWS "$NPA_PROG $npa_flags"
15547 _ACEOF
15552 # Check whether --with-password-prog was given.
15553 if test "${with_password_prog+set}" = set; then :
15554 withval=$with_password_prog;
15555 case "$withval" in
15558 yes)
15559 # Extract the first word of "passwd", so it can be a program name with args.
15560 set dummy passwd; ac_word=$2
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15562 $as_echo_n "checking for $ac_word... " >&6; }
15563 if ${ac_cv_path_PWPROG+:} false; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 case $PWPROG in
15567 [\\/]* | ?:[\\/]*)
15568 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 as_dummy="$PATH:/usr/sbin:/usr/lib"
15573 for as_dir in $as_dummy
15575 IFS=$as_save_IFS
15576 test -z "$as_dir" && as_dir=.
15577 for ac_exec_ext in '' $ac_executable_extensions; do
15578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15579 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15581 break 2
15583 done
15584 done
15585 IFS=$as_save_IFS
15587 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15589 esac
15591 PWPROG=$ac_cv_path_PWPROG
15592 if test -n "$PWPROG"; then
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15594 $as_echo "$PWPROG" >&6; }
15595 else
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597 $as_echo "no" >&6; }
15603 # Extract the first word of "$withval", so it can be a program name with args.
15604 set dummy $withval; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PWPROG+:} false; then :
15608 $as_echo_n "(cached) " >&6
15609 else
15610 case $PWPROG in
15611 [\\/]* | ?:[\\/]*)
15612 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 as_dummy="$PATH:/usr/sbin:/usr/lib"
15617 for as_dir in $as_dummy
15619 IFS=$as_save_IFS
15620 test -z "$as_dir" && as_dir=.
15621 for ac_exec_ext in '' $ac_executable_extensions; do
15622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15623 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15625 break 2
15627 done
15628 done
15629 IFS=$as_save_IFS
15631 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15633 esac
15635 PWPROG=$ac_cv_path_PWPROG
15636 if test -n "$PWPROG"; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15638 $as_echo "$PWPROG" >&6; }
15639 else
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641 $as_echo "no" >&6; }
15646 esac
15648 else
15650 # Extract the first word of "passwd", so it can be a program name with args.
15651 set dummy passwd; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 $as_echo_n "checking for $ac_word... " >&6; }
15654 if ${ac_cv_path_PWPROG+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656 else
15657 case $PWPROG in
15658 [\\/]* | ?:[\\/]*)
15659 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 as_dummy="$PATH:/usr/sbin:/usr/lib"
15664 for as_dir in $as_dummy
15666 IFS=$as_save_IFS
15667 test -z "$as_dir" && as_dir=.
15668 for ac_exec_ext in '' $ac_executable_extensions; do
15669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672 break 2
15674 done
15675 done
15676 IFS=$as_save_IFS
15678 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15680 esac
15682 PWPROG=$ac_cv_path_PWPROG
15683 if test -n "$PWPROG"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15685 $as_echo "$PWPROG" >&6; }
15686 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688 $as_echo "no" >&6; }
15695 if test -n "$PWPROG" ; then
15697 cat >>confdefs.h <<_ACEOF
15698 #define PASSWD_PROG "$PWPROG"
15699 _ACEOF
15704 # Check whether --with-simple-spellcheck was given.
15705 if test "${with_simple_spellcheck+set}" = set; then :
15706 withval=$with_simple_spellcheck;
15707 if test "x$withval" != "xno" ; then
15708 SPELLPROG=$withval
15711 else
15713 # Extract the first word of "hunspell", so it can be a program name with args.
15714 set dummy hunspell; ac_word=$2
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15716 $as_echo_n "checking for $ac_word... " >&6; }
15717 if ${ac_cv_prog_SPELLPROG+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 if test -n "$SPELLPROG"; then
15721 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15722 else
15723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15724 for as_dir in $PATH
15726 IFS=$as_save_IFS
15727 test -z "$as_dir" && as_dir=.
15728 for ac_exec_ext in '' $ac_executable_extensions; do
15729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15730 ac_cv_prog_SPELLPROG="hunspell"
15731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15732 break 2
15734 done
15735 done
15736 IFS=$as_save_IFS
15740 SPELLPROG=$ac_cv_prog_SPELLPROG
15741 if test -n "$SPELLPROG"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15743 $as_echo "$SPELLPROG" >&6; }
15744 else
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15750 if test -z "$SPELLPROG" ; then
15751 # Extract the first word of "aspell", so it can be a program name with args.
15752 set dummy aspell; ac_word=$2
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15754 $as_echo_n "checking for $ac_word... " >&6; }
15755 if ${ac_cv_prog_SPELLPROG+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 if test -n "$SPELLPROG"; then
15759 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15760 else
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_SPELLPROG="aspell"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 break 2
15772 done
15773 done
15774 IFS=$as_save_IFS
15778 SPELLPROG=$ac_cv_prog_SPELLPROG
15779 if test -n "$SPELLPROG"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15781 $as_echo "$SPELLPROG" >&6; }
15782 else
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15788 if test -z "$SPELLPROG" ; then
15789 # Extract the first word of "ispell", so it can be a program name with args.
15790 set dummy ispell; ac_word=$2
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15792 $as_echo_n "checking for $ac_word... " >&6; }
15793 if ${ac_cv_prog_SPELLPROG+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 if test -n "$SPELLPROG"; then
15797 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15798 else
15799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15800 for as_dir in $PATH
15802 IFS=$as_save_IFS
15803 test -z "$as_dir" && as_dir=.
15804 for ac_exec_ext in '' $ac_executable_extensions; do
15805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15806 ac_cv_prog_SPELLPROG="ispell"
15807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 break 2
15810 done
15811 done
15812 IFS=$as_save_IFS
15816 SPELLPROG=$ac_cv_prog_SPELLPROG
15817 if test -n "$SPELLPROG"; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15819 $as_echo "$SPELLPROG" >&6; }
15820 else
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15822 $as_echo "no" >&6; }
15826 if test -z "$SPELLPROG" ; then
15827 SPELLPROG="spell"
15835 if test "x$SPELLPROG" != "xno" ; then
15836 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15837 set dummy $SPELLPROG; ac_word=$2
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15839 $as_echo_n "checking for $ac_word... " >&6; }
15840 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842 else
15843 case $alpine_simple_spellcheck in
15844 [\\/]* | ?:[\\/]*)
15845 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15849 for as_dir in $PATH
15851 IFS=$as_save_IFS
15852 test -z "$as_dir" && as_dir=.
15853 for ac_exec_ext in '' $ac_executable_extensions; do
15854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15855 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15857 break 2
15859 done
15860 done
15861 IFS=$as_save_IFS
15864 esac
15866 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15867 if test -n "$alpine_simple_spellcheck"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15869 $as_echo "$alpine_simple_spellcheck" >&6; }
15870 else
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15876 if test -n "$alpine_simple_spellcheck" ; then
15877 case "$SPELLPROG" in
15878 hunspell)
15879 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15881 aspell)
15882 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15884 ispell)
15885 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15889 esac
15894 # Check whether --with-interactive-spellcheck was given.
15895 if test "${with_interactive_spellcheck+set}" = set; then :
15896 withval=$with_interactive_spellcheck;
15897 if test "x$withval" != "xno" ; then
15898 ISPELLPROG=$withval
15901 else
15903 # Extract the first word of "hunspell", so it can be a program name with args.
15904 set dummy hunspell; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 if test -n "$ISPELLPROG"; then
15911 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_prog_ISPELLPROG="hunspell"
15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 break 2
15924 done
15925 done
15926 IFS=$as_save_IFS
15930 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15931 if test -n "$ISPELLPROG"; then
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15933 $as_echo "$ISPELLPROG" >&6; }
15934 else
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936 $as_echo "no" >&6; }
15940 if test -z "$ISPELLPROG" ; then
15941 # Extract the first word of "aspell", so it can be a program name with args.
15942 set dummy aspell; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15944 $as_echo_n "checking for $ac_word... " >&6; }
15945 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if test -n "$ISPELLPROG"; then
15949 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_ISPELLPROG="aspell"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 break 2
15962 done
15963 done
15964 IFS=$as_save_IFS
15968 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15969 if test -n "$ISPELLPROG"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15971 $as_echo "$ISPELLPROG" >&6; }
15972 else
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15978 if test -z "$SPELLPROG" ; then
15979 ISPELLPROG="ispell"
15986 if test "x$ISPELLPROG" != "xno" ; then
15987 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15988 set dummy $ISPELLPROG; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15990 $as_echo_n "checking for $ac_word... " >&6; }
15991 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 case $alpine_interactive_spellcheck in
15995 [\\/]* | ?:[\\/]*)
15996 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16000 for as_dir in $PATH
16002 IFS=$as_save_IFS
16003 test -z "$as_dir" && as_dir=.
16004 for ac_exec_ext in '' $ac_executable_extensions; do
16005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16006 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16008 break 2
16010 done
16011 done
16012 IFS=$as_save_IFS
16015 esac
16017 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16018 if test -n "$alpine_interactive_spellcheck"; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16020 $as_echo "$alpine_interactive_spellcheck" >&6; }
16021 else
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023 $as_echo "no" >&6; }
16027 if test -n "$alpine_interactive_spellcheck" ; then
16028 case "$ISPELLPROG" in
16029 aspell)
16030 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16034 esac
16038 if test -n "$alpine_interactive_spellcheck" ; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16042 _ACEOF
16046 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16047 alpine_simple_spellcheck=test
16050 cat >>confdefs.h <<_ACEOF
16051 #define SPELLER "$alpine_simple_spellcheck"
16052 _ACEOF
16055 case "$prefix" in
16056 NONE) dpv=/usr/local/lib/pine.conf ;;
16057 *) dpv=${prefix}/lib/pine.conf ;;
16058 esac
16060 # Check whether --with-system-pinerc was given.
16061 if test "${with_system_pinerc+set}" = set; then :
16062 withval=$with_system_pinerc;
16063 case "$withval" in
16066 yes)
16069 dpv=$withval
16071 esac
16076 cat >>confdefs.h <<_ACEOF
16077 #define SYSTEM_PINERC "$dpv"
16078 _ACEOF
16081 case "$prefix" in
16082 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16083 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16084 esac
16086 # Check whether --with-system-fixed-pinerc was given.
16087 if test "${with_system_fixed_pinerc+set}" = set; then :
16088 withval=$with_system_fixed_pinerc;
16089 case "$withval" in
16092 yes)
16095 dpv=$withval
16097 esac
16102 cat >>confdefs.h <<_ACEOF
16103 #define SYSTEM_PINERC_FIXED "$dpv"
16104 _ACEOF
16107 case "$prefix" in
16108 NONE) dpv=/usr/local/lib/pine.info ;;
16109 *) dpv=${prefix}/lib/pine.info ;;
16110 esac
16112 # Check whether --with-local-support-info was given.
16113 if test "${with_local_support_info+set}" = set; then :
16114 withval=$with_local_support_info;
16115 case "$withval" in
16118 yes)
16121 dpv=$withval
16123 esac
16128 cat >>confdefs.h <<_ACEOF
16129 #define SYSTEM_PINE_INFO_PATH "$dpv"
16130 _ACEOF
16138 dpv=150
16140 # Check whether --with-mailcheck-interval was given.
16141 if test "${with_mailcheck_interval+set}" = set; then :
16142 withval=$with_mailcheck_interval;
16143 if test "x$withval" != "xno" ; then
16144 dpv=$withval
16150 cat >>confdefs.h <<_ACEOF
16151 #define DF_MAILCHECK "$dpv"
16152 _ACEOF
16156 dpv=420
16158 # Check whether --with-checkpoint-interval was given.
16159 if test "${with_checkpoint_interval+set}" = set; then :
16160 withval=$with_checkpoint_interval;
16161 if test "x$withval" != "xno" ; then
16162 dpv=$withval
16168 cat >>confdefs.h <<_ACEOF
16169 #define CHECK_POINT_TIME $dpv
16170 _ACEOF
16174 dpv=12
16176 # Check whether --with-checkpoint-frequency was given.
16177 if test "${with_checkpoint_frequency+set}" = set; then :
16178 withval=$with_checkpoint_frequency;
16179 if test "x$withval" != "xno" ; then
16180 dpv=$withval
16186 cat >>confdefs.h <<_ACEOF
16187 #define CHECK_POINT_FREQ $dpv
16188 _ACEOF
16192 dpv=24
16194 # Check whether --with-display-rows was given.
16195 if test "${with_display_rows+set}" = set; then :
16196 withval=$with_display_rows;
16197 if test "x$withval" != "xno" ; then
16198 dpv=$withval
16204 cat >>confdefs.h <<_ACEOF
16205 #define DEFAULT_LINES_ON_TERMINAL $dpv
16206 _ACEOF
16210 dpv=80
16212 # Check whether --with-display-columns was given.
16213 if test "${with_display_columns+set}" = set; then :
16214 withval=$with_display_columns;
16215 if test "x$withval" != "xno" ; then
16216 dpv=$withval
16222 cat >>confdefs.h <<_ACEOF
16223 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16224 _ACEOF
16228 dpv=200
16230 # Check whether --with-max-display-rows was given.
16231 if test "${with_max_display_rows+set}" = set; then :
16232 withval=$with_max_display_rows;
16233 if test "x$withval" != "xno" ; then
16234 dpv=$withval
16240 cat >>confdefs.h <<_ACEOF
16241 #define MAX_SCREEN_ROWS $dpv
16242 _ACEOF
16246 dpv=500
16248 # Check whether --with-max-display-columns was given.
16249 if test "${with_max_display_columns+set}" = set; then :
16250 withval=$with_max_display_columns;
16251 if test "x$withval" != "xno" ; then
16252 dpv=$withval
16258 cat >>confdefs.h <<_ACEOF
16259 #define MAX_SCREEN_COLS $dpv
16260 _ACEOF
16264 dpv=74
16266 # Check whether --with-fill-column was given.
16267 if test "${with_fill_column+set}" = set; then :
16268 withval=$with_fill_column;
16269 if test "x$withval" != "xno" ; then
16270 dpv=$withval
16276 cat >>confdefs.h <<_ACEOF
16277 #define DF_FILLCOL "$dpv"
16278 _ACEOF
16282 dpv=80
16284 # Check whether --with-max_fill-column was given.
16285 if test "${with_max_fill_column+set}" = set; then :
16286 withval=$with_max_fill_column;
16287 if test "x$withval" != "xno" ; then
16288 dpv=$withval
16294 cat >>confdefs.h <<_ACEOF
16295 #define MAX_FILLCOL $dpv
16296 _ACEOF
16300 dpv=2
16302 # Check whether --with-debug-level was given.
16303 if test "${with_debug_level+set}" = set; then :
16304 withval=$with_debug_level;
16305 if test "x$withval" != "xno" ; then
16306 dpv=$withval
16312 cat >>confdefs.h <<_ACEOF
16313 #define DEFAULT_DEBUG $dpv
16314 _ACEOF
16318 dpv=4
16320 # Check whether --with-debug-files was given.
16321 if test "${with_debug_files+set}" = set; then :
16322 withval=$with_debug_files;
16323 if test "x$withval" != "xno" ; then
16324 dpv=$withval
16330 cat >>confdefs.h <<_ACEOF
16331 #define NUMDEBUGFILES $dpv
16332 _ACEOF
16336 dpv=.pine-debug
16338 # Check whether --with-debug-file was given.
16339 if test "${with_debug_file+set}" = set; then :
16340 withval=$with_debug_file;
16341 if test "x$withval" != "xno" ; then
16342 dpv=$withval
16348 cat >>confdefs.h <<_ACEOF
16349 #define DEBUGFILE "$dpv"
16350 _ACEOF
16354 dpv="\$Forwarded"
16356 # Check whether --with-forwarded-keyword was given.
16357 if test "${with_forwarded_keyword+set}" = set; then :
16358 withval=$with_forwarded_keyword;
16359 if test "x$withval" != "xno" ; then
16360 dpv=$withval
16366 cat >>confdefs.h <<_ACEOF
16367 #define FORWARDED_FLAG "$dpv"
16368 _ACEOF
16372 dpv=2
16374 # Check whether --with-display-overlap was given.
16375 if test "${with_display_overlap+set}" = set; then :
16376 withval=$with_display_overlap;
16377 if test "x$withval" != "xno" ; then
16378 dpv=$withval
16384 cat >>confdefs.h <<_ACEOF
16385 #define DF_OVERLAP "$dpv"
16386 _ACEOF
16390 dpv=0
16392 # Check whether --with-display-margin was given.
16393 if test "${with_display_margin+set}" = set; then :
16394 withval=$with_display_margin;
16395 if test "x$withval" != "xno" ; then
16396 dpv=$withval
16402 cat >>confdefs.h <<_ACEOF
16403 #define DF_MARGIN "$dpv"
16404 _ACEOF
16408 dpv=sent-mail
16410 # Check whether --with-default-fcc was given.
16411 if test "${with_default_fcc+set}" = set; then :
16412 withval=$with_default_fcc;
16413 if test "x$withval" != "xno" ; then
16414 dpv=$withval
16420 cat >>confdefs.h <<_ACEOF
16421 #define DF_DEFAULT_FCC "$dpv"
16422 _ACEOF
16426 dpv=saved-messages
16428 # Check whether --with-default-save-folder was given.
16429 if test "${with_default_save_folder+set}" = set; then :
16430 withval=$with_default_save_folder;
16431 if test "x$withval" != "xno" ; then
16432 dpv=$withval
16438 cat >>confdefs.h <<_ACEOF
16439 #define DEFAULT_SAVE "$dpv"
16440 _ACEOF
16444 dpv=postponed-mail
16446 # Check whether --with-default-legacy-postponed-folder was given.
16447 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16448 withval=$with_default_legacy_postponed_folder;
16449 if test "x$withval" != "xno" ; then
16450 dpv=$withval
16456 cat >>confdefs.h <<_ACEOF
16457 #define POSTPONED_MAIL "$dpv"
16458 _ACEOF
16462 dpv=postponed-msgs
16464 # Check whether --with-default-postponed-folder was given.
16465 if test "${with_default_postponed_folder+set}" = set; then :
16466 withval=$with_default_postponed_folder;
16467 if test "x$withval" != "xno" ; then
16468 dpv=$withval
16474 cat >>confdefs.h <<_ACEOF
16475 #define POSTPONED_MSGS "$dpv"
16476 _ACEOF
16480 dpv=Trash
16482 # Check whether --with-default-trash-folder was given.
16483 if test "${with_default_trash_folder+set}" = set; then :
16484 withval=$with_default_trash_folder;
16485 if test "x$withval" != "xno" ; then
16486 dpv=$withval
16492 cat >>confdefs.h <<_ACEOF
16493 #define TRASH_FOLDER "$dpv"
16494 _ACEOF
16498 dpv=.pine-interrupted-mail
16500 # Check whether --with-default-interrupted-mail was given.
16501 if test "${with_default_interrupted_mail+set}" = set; then :
16502 withval=$with_default_interrupted_mail;
16503 if test "x$withval" != "xno" ; then
16504 dpv=$withval
16510 cat >>confdefs.h <<_ACEOF
16511 #define INTERRUPTED_MAIL "$dpv"
16512 _ACEOF
16516 dpv=dead.letter
16518 # Check whether --with-default-dead-letter-folder was given.
16519 if test "${with_default_dead_letter_folder+set}" = set; then :
16520 withval=$with_default_dead_letter_folder;
16521 if test "x$withval" != "xno" ; then
16522 dpv=$withval
16528 cat >>confdefs.h <<_ACEOF
16529 #define DEADLETTER "$dpv"
16530 _ACEOF
16534 dpv=mail
16536 # Check whether --with-default-mail-directory was given.
16537 if test "${with_default_mail_directory+set}" = set; then :
16538 withval=$with_default_mail_directory;
16539 if test "x$withval" != "xno" ; then
16540 dpv=$withval
16546 cat >>confdefs.h <<_ACEOF
16547 #define DF_MAIL_DIRECTORY "$dpv"
16548 _ACEOF
16552 dpv=INBOX
16554 # Check whether --with-default-inbox-name was given.
16555 if test "${with_default_inbox_name+set}" = set; then :
16556 withval=$with_default_inbox_name;
16557 if test "x$withval" != "xno" ; then
16558 dpv=$withval
16564 cat >>confdefs.h <<_ACEOF
16565 #define INBOX_NAME "$dpv"
16566 _ACEOF
16570 dpv=.signature
16572 # Check whether --with-default-signature-file was given.
16573 if test "${with_default_signature_file+set}" = set; then :
16574 withval=$with_default_signature_file;
16575 if test "x$withval" != "xno" ; then
16576 dpv=$withval
16582 cat >>confdefs.h <<_ACEOF
16583 #define DF_SIGNATURE_FILE "$dpv"
16584 _ACEOF
16588 dpv=no
16590 # Check whether --with-default-elm-style-save was given.
16591 if test "${with_default_elm_style_save+set}" = set; then :
16592 withval=$with_default_elm_style_save;
16593 if test "x$withval" != "xno" ; then
16594 dpv=$withval
16600 cat >>confdefs.h <<_ACEOF
16601 #define DF_ELM_STYLE_SAVE "$dpv"
16602 _ACEOF
16606 dpv=no
16608 # Check whether --with-default-header-in-reply was given.
16609 if test "${with_default_header_in_reply+set}" = set; then :
16610 withval=$with_default_header_in_reply;
16611 if test "x$withval" != "xno" ; then
16612 dpv=$withval
16618 cat >>confdefs.h <<_ACEOF
16619 #define DF_HEADER_IN_REPLY "$dpv"
16620 _ACEOF
16624 dpv=no
16626 # Check whether --with-default-old-style-reply was given.
16627 if test "${with_default_old_style_reply+set}" = set; then :
16628 withval=$with_default_old_style_reply;
16629 if test "x$withval" != "xno" ; then
16630 dpv=$withval
16636 cat >>confdefs.h <<_ACEOF
16637 #define DF_OLD_STYLE_REPLY "$dpv"
16638 _ACEOF
16642 dpv=no
16644 # Check whether --with-default-use-only-domain-name was given.
16645 if test "${with_default_use_only_domain_name+set}" = set; then :
16646 withval=$with_default_use_only_domain_name;
16647 if test "x$withval" != "xno" ; then
16648 dpv=$withval
16654 cat >>confdefs.h <<_ACEOF
16655 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16656 _ACEOF
16660 dpv=no
16662 # Check whether --with-default-save-by-sender was given.
16663 if test "${with_default_save_by_sender+set}" = set; then :
16664 withval=$with_default_save_by_sender;
16665 if test "x$withval" != "xno" ; then
16666 dpv=$withval
16672 cat >>confdefs.h <<_ACEOF
16673 #define DF_SAVE_BY_SENDER "$dpv"
16674 _ACEOF
16678 dpv=arrival
16680 # Check whether --with-default-sort-key was given.
16681 if test "${with_default_sort_key+set}" = set; then :
16682 withval=$with_default_sort_key;
16683 if test "x$withval" != "xno" ; then
16684 dpv=$withval
16690 cat >>confdefs.h <<_ACEOF
16691 #define DF_SORT_KEY "$dpv"
16692 _ACEOF
16696 dpv=fullname-with-lists-last
16698 # Check whether --with-default-addressbook-sort-rule was given.
16699 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16700 withval=$with_default_addressbook_sort_rule;
16701 if test "x$withval" != "xno" ; then
16702 dpv=$withval
16708 cat >>confdefs.h <<_ACEOF
16709 #define DF_AB_SORT_RULE "$dpv"
16710 _ACEOF
16714 dpv=alphabetical
16716 # Check whether --with-default-folder-sort-rule was given.
16717 if test "${with_default_folder_sort_rule+set}" = set; then :
16718 withval=$with_default_folder_sort_rule;
16719 if test "x$withval" != "xno" ; then
16720 dpv=$withval
16726 cat >>confdefs.h <<_ACEOF
16727 #define DF_FLD_SORT_RULE "$dpv"
16728 _ACEOF
16732 dpv=default-folder
16734 # Check whether --with-default-saved-message-name-rule was given.
16735 if test "${with_default_saved_message_name_rule+set}" = set; then :
16736 withval=$with_default_saved_message_name_rule;
16737 if test "x$withval" != "xno" ; then
16738 dpv=$withval
16744 cat >>confdefs.h <<_ACEOF
16745 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16746 _ACEOF
16750 dpv=default-fcc
16752 # Check whether --with-default-fcc-rule was given.
16753 if test "${with_default_fcc_rule+set}" = set; then :
16754 withval=$with_default_fcc_rule;
16755 if test "x$withval" != "xno" ; then
16756 dpv=$withval
16762 cat >>confdefs.h <<_ACEOF
16763 #define DF_FCC_RULE "$dpv"
16764 _ACEOF
16768 dpv=lpr
16770 # Check whether --with-default-standard-printer was given.
16771 if test "${with_default_standard_printer+set}" = set; then :
16772 withval=$with_default_standard_printer;
16773 if test "x$withval" != "xno" ; then
16774 dpv=$withval
16780 cat >>confdefs.h <<_ACEOF
16781 #define DF_STANDARD_PRINTER "$dpv"
16782 _ACEOF
16786 dpv=attached-to-ansi
16788 # Check whether --with-default-ansi-printer was given.
16789 if test "${with_default_ansi_printer+set}" = set; then :
16790 withval=$with_default_ansi_printer;
16791 if test "x$withval" != "xno" ; then
16792 dpv=$withval
16798 cat >>confdefs.h <<_ACEOF
16799 #define ANSI_PRINTER "$dpv"
16800 _ACEOF
16804 dpv=.addressbook
16806 # Check whether --with-default-addressbook was given.
16807 if test "${with_default_addressbook+set}" = set; then :
16808 withval=$with_default_addressbook;
16809 if test "x$withval" != "xno" ; then
16810 dpv=$withval
16816 cat >>confdefs.h <<_ACEOF
16817 #define DF_ADDRESSBOOK "$dpv"
16818 _ACEOF
16822 dpv="Local Support"
16824 # Check whether --with-default-local-fullname was given.
16825 if test "${with_default_local_fullname+set}" = set; then :
16826 withval=$with_default_local_fullname;
16827 if test "x$withval" != "xno" ; then
16828 dpv=$withval
16834 cat >>confdefs.h <<_ACEOF
16835 #define DF_LOCAL_FULLNAME "$dpv"
16836 _ACEOF
16840 dpv=postmaster
16842 # Check whether --with-default-local-address was given.
16843 if test "${with_default_local_address+set}" = set; then :
16844 withval=$with_default_local_address;
16845 if test "x$withval" != "xno" ; then
16846 dpv=$withval
16852 cat >>confdefs.h <<_ACEOF
16853 #define DF_LOCAL_ADDRESS "$dpv"
16854 _ACEOF
16858 dpv=1
16860 # Check whether --with-default-keyboard-lock-count was given.
16861 if test "${with_default_keyboard_lock_count+set}" = set; then :
16862 withval=$with_default_keyboard_lock_count;
16863 if test "x$withval" != "xno" ; then
16864 dpv=$withval
16870 cat >>confdefs.h <<_ACEOF
16871 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16872 _ACEOF
16876 dpv=3
16878 # Check whether --with-default-remote-addressbook-history was given.
16879 if test "${with_default_remote_addressbook_history+set}" = set; then :
16880 withval=$with_default_remote_addressbook_history;
16881 if test "x$withval" != "xno" ; then
16882 dpv=$withval
16888 cat >>confdefs.h <<_ACEOF
16889 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16890 _ACEOF
16894 dpv=.alpine-html
16896 # Check whether --with-default-html-directory was given.
16897 if test "${with_default_html_directory+set}" = set; then :
16898 withval=$with_default_html_directory;
16899 if test "x$withval" != "xno" ; then
16900 dpv=$withval
16906 cat >>confdefs.h <<_ACEOF
16907 #define DF_HTML_DIRECTORY "$dpv"
16908 _ACEOF
16912 dpv=.alpine-smime/public
16914 # Check whether --with-smime-public-cert-directory was given.
16915 if test "${with_smime_public_cert_directory+set}" = set; then :
16916 withval=$with_smime_public_cert_directory;
16917 if test "x$withval" != "xno" ; then
16918 dpv=$withval
16924 cat >>confdefs.h <<_ACEOF
16925 #define DF_PUBLICCERT_DIR "$dpv"
16926 _ACEOF
16930 dpv=.alpine-smime/private
16932 # Check whether --with-smime-private-key-directory was given.
16933 if test "${with_smime_private_key_directory+set}" = set; then :
16934 withval=$with_smime_private_key_directory;
16935 if test "x$withval" != "xno" ; then
16936 dpv=$withval
16942 cat >>confdefs.h <<_ACEOF
16943 #define DF_PRIVATEKEY_DIR "$dpv"
16944 _ACEOF
16948 dpv=.alpine-smime/ca
16950 # Check whether --with-smime-cacert-directory was given.
16951 if test "${with_smime_cacert_directory+set}" = set; then :
16952 withval=$with_smime_cacert_directory;
16953 if test "x$withval" != "xno" ; then
16954 dpv=$withval
16960 cat >>confdefs.h <<_ACEOF
16961 #define DF_CACERT_DIR "$dpv"
16962 _ACEOF
16966 dpv=ANSI_PRINTER
16968 # Check whether --with-default-printer was given.
16969 if test "${with_default_printer+set}" = set; then :
16970 withval=$with_default_printer;
16971 if test "x$withval" != "xno" ; then
16972 dpv=$withval
16978 cat >>confdefs.h <<_ACEOF
16979 #define DF_DEFAULT_PRINTER $dpv
16980 _ACEOF
16985 cat >>confdefs.h <<_ACEOF
16986 #define DF_PUBLIC_CONTAINER "PublicContainer"
16987 _ACEOF
16990 cat >>confdefs.h <<_ACEOF
16991 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16992 _ACEOF
16995 cat >>confdefs.h <<_ACEOF
16996 #define DF_CA_CONTAINER "CAContainer"
16997 _ACEOF
17001 # Check whether --with-passfile was given.
17002 if test "${with_passfile+set}" = set; then :
17003 withval=$with_passfile;
17004 case "$withval" in
17007 yes)
17010 alpine_PASSFILE=$withval
17012 esac
17019 # Check whether --with-local-password-cache was given.
17020 if test "${with_local_password_cache+set}" = set; then :
17021 withval=$with_local_password_cache;
17022 alpine_os_credential_cache=$withval
17028 # Check whether --with-local-password-cache-method was given.
17029 if test "${with_local_password_cache_method+set}" = set; then :
17030 withval=$with_local_password_cache_method;
17031 alpine_os_credential_cache_method=$withval
17036 if test -n "$alpine_PASSFILE" ; then
17037 case $alpine_os_credential_cache in
17041 alpine_os_credential_cache="no"
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17043 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17045 esac
17047 cat >>confdefs.h <<_ACEOF
17048 #define PASSFILE "$alpine_PASSFILE"
17049 _ACEOF
17054 # Check whether --with-default-sshpath was given.
17055 if test "${with_default_sshpath+set}" = set; then :
17056 withval=$with_default_sshpath;
17057 case "$withval" in
17060 yes)
17064 cat >>confdefs.h <<_ACEOF
17065 #define DF_SSHPATH "$withval"
17066 _ACEOF
17069 esac
17075 # Check whether --with-default-sshcmd was given.
17076 if test "${with_default_sshcmd+set}" = set; then :
17077 withval=$with_default_sshcmd;
17078 case "$withval" in
17081 yes)
17085 cat >>confdefs.h <<_ACEOF
17086 #define DF_SSHCMD "$withval"
17087 _ACEOF
17090 esac
17096 # Check whether --with-ssl was given.
17097 if test "${with_ssl+set}" = set; then :
17098 withval=$with_ssl; with_ssl=$withval
17102 if test "x$with_ssl" = "xno" ; then
17103 alpine_SSLTYPE="none"
17104 elif test -d /usr/local/ssl ; then
17105 alpine_SSLDIR="/usr/local/ssl"
17106 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17107 alpine_SSLLIB="$alpine_SSLDIR/lib"
17108 else
17109 case $host in
17110 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17111 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17112 alpine_SSLTYPE="nopwd"
17113 if test -d /etc/pki/tls ; then
17114 alpine_SSLDIR="/etc/pki/tls"
17115 else
17116 alpine_SSLDIR="/usr/share/ssl"
17118 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17119 alpine_SSLKEYS="$alpine_SSLDIR/private"
17120 alpine_SSLINCLUDE="/usr/include/openssl"
17121 alpine_SSLLIB="/usr/lib"
17122 elif test -f /etc/mandrake-release ; then
17123 alpine_SSLDIR="/usr/lib/ssl"
17124 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17125 alpine_SSLKEYS="$alpine_SSLDIR/private"
17126 alpine_SSLINCLUDE="/usr/include/openssl"
17127 alpine_SSLLIB="/usr/lib"
17128 elif test -f /etc/SuSE-release ; then
17129 alpine_SSLTYPE="nopwd"
17130 alpine_SSLDIR="/etc/ssl"
17131 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17132 alpine_SSLKEYS="$alpine_SSLDIR/private"
17133 alpine_SSLINCLUDE="/usr/include/openssl"
17134 alpine_SSLLIB="/usr/lib"
17135 elif test -d /etc/osso-af-init ; then
17136 alpine_SSLTYPE="nopwd"
17137 alpine_SSLDIR="/usr"
17138 alpine_SSLCERTS="/usr/share/certs"
17139 alpine_SSLINCLUDE="/usr/include/openssl"
17140 alpine_SSLLIB="/usr/lib"
17141 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17142 if test ! -d /etc/osso-af-init ; then
17143 alpine_SSLDIR="/etc/ssl"
17144 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17145 alpine_SSLKEYS="$alpine_SSLDIR/private"
17146 alpine_SSLINCLUDE="/usr/include/openssl"
17147 alpine_SSLLIB="/usr/lib"
17149 elif test -f /etc/manjaro-release ; then
17150 alpine_SSLDIR="/etc/ssl"
17151 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17152 alpine_SSLKEYS="$alpine_SSLDIR/private"
17153 alpine_SSLINCLUDE="/usr/include/openssl"
17154 alpine_SSLLIB="/usr/lib"
17155 else
17156 alpine_SSLTYPE="nopwd"
17157 alpine_SSLDIR="/usr"
17158 alpine_SSLCERTS="/etc/ssl/certs"
17161 *-apple-darwin*)
17162 alpine_SSLTYPE="nopwd"
17163 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17164 if test -d /usr/local/opt/openssl ; then
17165 alpine_SSLDIR="/usr/local/opt/openssl"
17166 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17167 alpine_SSLLIB="$alpine_SSLDIR/lib"
17168 alpine_SSLCERTS="/usr/local/etc/openssl"
17169 alpine_SSLKEYS="$alpine_SSLDIR/private"
17170 elif test -d /opt/local/etc/openssl ; then
17171 alpine_SSLDIR="/opt/local"
17172 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17173 alpine_SSLLIB="$alpine_SSLDIR/lib"
17174 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17175 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17176 elif test -d /sw/etc/ssl ; then
17177 alpine_SSLDIR="/sw/etc/ssl"
17178 alpine_SSLINCLUDE="/sw/include"
17179 alpine_SSLLIB="/sw/lib"
17180 alpine_SSLCERTS="/sw/etc/ssl/certs"
17181 alpine_SSLKEYS="/sw/etc/ssl/private"
17182 elif test -d /usr/local/ssl ; then
17183 alpine_SSLDIR="/usr/local/ssl"
17184 elif test -d /System/Library/OpenSSL ; then
17185 alpine_SSLDIR="/System/Library/OpenSSL"
17186 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17187 alpine_SSLKEYS="$alpine_SSLDIR/private"
17188 alpine_SSLLIB="/usr/lib"
17189 alpine_SSLINCLUDE="/usr/include/openssl"
17192 *-*-netbsd*)
17193 alpine_SSLDIR="/etc/openssl"
17194 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17195 alpine_SSLKEYS="$alpine_SSLDIR/private"
17196 alpine_SSLINCLUDE="/usr/include/openssl"
17197 alpine_SSLLIB="/usr/lib"
17199 *-*-dragonfly*)
17200 alpine_SSLDIR="/etc/openssl"
17201 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17202 alpine_SSLKEYS="$alpine_SSLDIR/private"
17203 alpine_SSLINCLUDE="/usr/include/openssl"
17204 alpine_SSLLIB="/usr/lib"
17206 *-openbsd*)
17207 alpine_SSLTYPE="nopwd"
17208 alpine_SSLDIR="/usr"
17209 alpine_SSLCERTS="/etc/ssl/certs"
17211 *-*-freebsd*)
17212 alpine_SSLDIR="/etc/ssl"
17213 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17214 alpine_SSLKEYS="$alpine_SSLDIR/private"
17215 if test -d /usr/local/include/openssl ; then
17216 alpine_SSLINCLUDE="/usr/local/include/openssl"
17217 alpine_SSLLIB="/usr/local/lib"
17218 else
17219 alpine_SSLINCLUDE="/usr/include/openssl"
17220 alpine_SSLLIB="/usr/lib"
17223 *-*-openbsd*)
17224 alpine_SSLDIR="/etc/ssl"
17225 alpine_SSLINCLUDE="/usr/include/openssl"
17226 alpine_SSLLIB="/usr/lib"
17227 alpine_SSLCERTS="/etc/ssl"
17228 alpine_SSLKEYS="/etc/ssl/private"
17230 *-*-cygwin)
17231 alpine_SSLDIR="/usr/ssl"
17232 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17233 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17234 alpine_SSLINCLUDE="/usr/include/openssl"
17235 alpine_SSLLIB="/usr/lib"
17237 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17238 alpine_SSLTYPE="sco.nopwd"
17239 alpine_SSLDIR="/usr/local/ssl"
17241 *-*-solaris*)
17242 if test -d /usr/include/openssl ; then
17243 alpine_SSLINCLUDE="/usr/include/openssl"
17244 elif test -d /usr/sfw/include/openssl ; then
17245 alpine_SSLDIR="/usr/sfw"
17246 elif test -d /opt/csw/include/openssl ; then
17247 alpine_SSLDIR="/opt/csw"
17248 if test -d /opt/csw/ssl/certs ; then
17249 alpine_SSLCERTS="/opt/csw/ssl/certs"
17252 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17253 alpine_SSLCERTS="/etc/certs"
17257 alpine_SSLTYPE="nopwd"
17258 alpine_SSLDIR="/usr/local/ssl"
17260 esac
17263 if test "x$alpine_SSLTYPE" != "xnone" ; then
17265 # Check whether --with-ssl-dir was given.
17266 if test "${with_ssl_dir+set}" = set; then :
17267 withval=$with_ssl_dir;
17268 if test "x$withval" != "xno" ; then
17269 alpine_SSLDIR=$withval
17270 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17271 alpine_SSLLIB=$alpine_SSLDIR/lib
17278 # Check whether --with-ssl-certs-dir was given.
17279 if test "${with_ssl_certs_dir+set}" = set; then :
17280 withval=$with_ssl_certs_dir;
17281 if test "x$withval" != "xno" ; then
17282 alpine_SSLCERTS=$withval
17289 # Check whether --with-ssl-include-dir was given.
17290 if test "${with_ssl_include_dir+set}" = set; then :
17291 withval=$with_ssl_include_dir;
17292 if test "x$withval" != "xno" ; then
17293 alpine_SSLINCLUDE=$withval
17300 # Check whether --with-ssl-lib-dir was given.
17301 if test "${with_ssl_lib_dir+set}" = set; then :
17302 withval=$with_ssl_lib_dir;
17303 if test "x$withval" != "xno" ; then
17304 alpine_SSLLIB=$withval
17310 if test -n "$alpine_SSLINCLUDE" ; then
17311 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17312 elif test -n "$alpine_SSLDIR" ; then
17313 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17315 if test -n "$alpine_SSLLIB" ; then
17316 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17317 elif test -n "$alpine_SSLDIR" ; then
17318 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17322 if test "x$alpine_SSLTYPE" != "xnone" ; then
17323 alpine_default_SSLMIN="no_min"
17324 alpine_default_SSLMAX="no_max"
17325 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17326 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17327 alpine_SSLMIN="$alpine_default_SSLMIN"
17328 alpine_SSLMAX="$alpine_default_SSLMAX"
17329 alpine_RANGE="$alpine_default_RANGE"
17331 # Check whether --with-encryption-minimum-version was given.
17332 if test "${with_encryption_minimum_version+set}" = set; then :
17333 withval=$with_encryption_minimum_version;
17334 if test "x$withval" != "xno" ; then
17335 alpine_SSLMIN=$withval
17341 # Check whether --with-encryption-maximum-version was given.
17342 if test "${with_encryption_maximum_version+set}" = set; then :
17343 withval=$with_encryption_maximum_version;
17344 if test "x$withval" != "xno" ; then
17345 alpine_SSLMAX=$withval
17350 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17351 for range in ${alpine_RANGE} ; do
17352 for encryption in ${alpine_ENCRYPTION} ; do
17353 if test "x$range" = "x$encryption" ; then
17354 if test -z $alpine_min ; then
17355 alpine_min="yes"
17356 else
17357 alpine_max="yes"
17360 done
17361 done
17363 if test -z $alpine_max ; then
17364 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17367 if test -z $alpine_min ; then
17368 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17371 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17372 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17373 if test -n "$alpine_RANGE_FEASIBLE" ; then
17374 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17375 else
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17377 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17378 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17380 else
17381 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17383 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17384 alpine_SSLMAX="$alpine_default_SSLMAX"
17386 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17388 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17389 alpine_SSLMIN="$alpine_default_SSLMIN"
17391 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17394 dpv=$alpine_RANGE
17396 # Check whether --with-encryption-range was given.
17397 if test "${with_encryption_range+set}" = set; then :
17398 withval=$with_encryption_range;
17399 if test "x$withval" != "xno" ; then
17400 dpv=$withval
17406 cat >>confdefs.h <<_ACEOF
17407 #define DF_ENCRYPTION_RANGE "$dpv"
17408 _ACEOF
17414 # Check whether --with-krb5 was given.
17415 if test "${with_krb5+set}" = set; then :
17416 withval=$with_krb5; with_krb5=$withval
17420 if test "x$with_krb5" = "xno" ; then
17421 alpine_GSSTYPE="none"
17422 else
17423 alpine_GSSTYPE=
17426 # Check whether --with-krb5-dir was given.
17427 if test "${with_krb5_dir+set}" = set; then :
17428 withval=$with_krb5_dir;
17429 if test "x$withval" != "xno" ; then
17430 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17431 LDFLAGS="$LDFLAGS -L${withval}/lib"
17438 # Check whether --with-krb5-include-dir was given.
17439 if test "${with_krb5_include_dir+set}" = set; then :
17440 withval=$with_krb5_include_dir;
17441 if test "x$withval" != "xno" ; then
17442 CPPFLAGS="$CPPFLAGS -I$withval"
17449 # Check whether --with-krb5-lib-dir was given.
17450 if test "${with_krb5_lib_dir+set}" = set; then :
17451 withval=$with_krb5_lib_dir;
17452 if test "x$withval" != "xno" ; then
17453 LDFLAGS="$LDFLAGS -L$withval"
17461 # Check whether --with-ldap was given.
17462 if test "${with_ldap+set}" = set; then :
17463 withval=$with_ldap; with_ldap=$withval
17467 if test "x$with_ldap" = "xno" ; then
17468 alpine_with_ldap=
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17470 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17471 else
17473 case $host in
17474 *-*-freebsd*)
17475 alpine_LDAPDIR="/usr/local"
17476 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17477 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17479 esac;
17481 alpine_with_ldap=yes
17484 # Check whether --with-ldap-dir was given.
17485 if test "${with_ldap_dir+set}" = set; then :
17486 withval=$with_ldap_dir;
17487 if test "x$withval" != "xno" ; then
17488 alpine_LDAPDIR="${withval}"
17489 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17490 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17497 # Check whether --with-ldap-include-dir was given.
17498 if test "${with_ldap_include_dir+set}" = set; then :
17499 withval=$with_ldap_include_dir;
17500 if test "x$withval" != "xno" ; then
17501 alpine_LDAPINCLUDE="$withval"
17508 # Check whether --with-ldap-lib-dir was given.
17509 if test "${with_ldap_lib_dir+set}" = set; then :
17510 withval=$with_ldap_lib_dir;
17511 if test "x$withval" != "xno" ; then
17512 alpine_LDAPLIB="${withval}"
17518 if test -n "$alpine_LDAPINCLUDE" ; then
17519 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17521 if test -n "$alpine_LDAPLIB" ; then
17522 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17527 # Check whether --with-smime was given.
17528 if test "${with_smime+set}" = set; then :
17529 withval=$with_smime; with_smime=$withval
17534 # Check whether --with-tcl was given.
17535 if test "${with_tcl+set}" = set; then :
17536 withval=$with_tcl; with_tcl=$withval
17540 if test "x$with_tcl" = "xno" ; then
17541 WEB_BUILD=
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17543 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17544 else
17546 # Check whether --with-tcl-lib-dir was given.
17547 if test "${with_tcl_lib_dir+set}" = set; then :
17548 withval=$with_tcl_lib_dir;
17549 if test "x$withval" != "xno" ; then
17550 alpine_TCLLIBDIR=$withval
17551 if test -n "$alpine_TCLLIBDIR" ; then
17552 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17559 # Check whether --with-tcl-lib was given.
17560 if test "${with_tcl_lib+set}" = set; then :
17561 withval=$with_tcl_lib;
17562 if test "x$withval" != "xno" ; then
17563 alpine_TCLLIB=$withval
17569 # Check whether --with-tcl-include was given.
17570 if test "${with_tcl_include+set}" = set; then :
17571 withval=$with_tcl_include;
17572 if test "x$withval" != "xno" ; then
17573 CPPFLAGS="$CPPFLAGS -I$withval"
17574 alpine_TCLINC=$withval
17582 # Check whether --with-supplied-regex was given.
17583 if test "${with_supplied_regex+set}" = set; then :
17584 withval=$with_supplied_regex; alpine_REGEX=$withval
17589 # Check whether --with-pthread was given.
17590 if test "${with_pthread+set}" = set; then :
17591 withval=$with_pthread; with_pthread=$withval
17596 # Check whether --with-system-mail-directory was given.
17597 if test "${with_system_mail_directory+set}" = set; then :
17598 withval=$with_system_mail_directory;
17599 if test "x$withval" != "xno" ; then
17600 alpine_with_local_maildir="$withval"
17607 # Check whether --with-c-client-target was given.
17608 if test "${with_c_client_target+set}" = set; then :
17609 withval=$with_c_client_target;
17610 if test "x$withval" != "xno" ;then
17611 alpine_with_c_client_target="$withval"
17618 alpine_c_client_bundled="no"
17620 # Check whether --with-bundled-tools was given.
17621 if test "${with_bundled_tools+set}" = set; then :
17622 withval=$with_bundled_tools;
17623 if test "x$withval" = "xyes" ; then
17624 alpine_c_client_bundled=""
17630 alpine_PAM="none"
17632 case "$host" in
17633 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17634 alpine_path_delim="/"
17635 alpine_mode_readonly="(0600)"
17636 if test -f /etc/fedora-release ; then
17637 systype="LFD"
17638 alpine_PAM="yes"
17639 if test -d /etc/pki/tls ; then
17640 alpine_c_client_target="lfd"
17641 else
17642 alpine_c_client_target="lrh"
17644 elif test -f /etc/mandrake-release ; then
17645 systype="LMD"
17646 alpine_c_client_target="lmd"
17647 alpine_PAM="yes"
17648 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17649 systype="LRH"
17650 alpine_PAM="yes"
17651 if test -d /etc/pki/tls ; then
17652 alpine_c_client_target="lr5"
17653 else
17654 alpine_c_client_target="lrh"
17656 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17657 if test -d /etc/osso-af-init ; then
17658 systype="LN8"
17659 alpine_c_client_target="ln8"
17660 else
17661 systype="DEB"
17662 alpine_c_client_target="ldb"
17663 alpine_PAM="yes"
17665 elif test -f /etc/SuSE-release; then
17666 systype="LSU"
17667 alpine_c_client_target="lsu"
17668 alpine_PAM="yes"
17669 else
17670 systype="LNX"
17671 if test -z "$alpine_c_client_bundled" ; then
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17673 $as_echo_n "checking for am_start in -lpam... " >&6; }
17674 if ${ac_cv_lib_pam_am_start+:} false; then :
17675 $as_echo_n "(cached) " >&6
17676 else
17677 ac_check_lib_save_LIBS=$LIBS
17678 LIBS="-lpam $LIBS"
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17685 #ifdef __cplusplus
17686 extern "C"
17687 #endif
17688 char am_start ();
17690 main ()
17692 return am_start ();
17694 return 0;
17696 _ACEOF
17697 if ac_fn_c_try_link "$LINENO"; then :
17698 ac_cv_lib_pam_am_start=yes
17699 else
17700 ac_cv_lib_pam_am_start=no
17702 rm -f core conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
17704 LIBS=$ac_check_lib_save_LIBS
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17707 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17708 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17710 alpine_c_client_target="lnp"
17711 alpine_PAM="yes"
17713 else
17715 if test -f /etc/shadow ; then
17716 alpine_c_client_target="slx"
17717 else
17718 alpine_c_client_target="lnx"
17723 else
17724 if test -f /etc/shadow ; then
17725 alpine_c_client_target="slx"
17726 else
17727 alpine_c_client_target="lnx"
17732 *-apple-darwin*)
17733 systype="OSX"
17734 alpine_path_delim="/"
17735 alpine_mode_readonly="(0600)"
17736 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17737 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17739 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17741 case "$alpine_os_credential_cache" in
17746 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17749 esac
17750 if test -z "$alpine_c_client_bundled" ; then
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17752 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17753 if ${ac_cv_lib_pam_pam_start+:} false; then :
17754 $as_echo_n "(cached) " >&6
17755 else
17756 ac_check_lib_save_LIBS=$LIBS
17757 LIBS="-lpam $LIBS"
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17761 /* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17764 #ifdef __cplusplus
17765 extern "C"
17766 #endif
17767 char pam_start ();
17769 main ()
17771 return pam_start ();
17773 return 0;
17775 _ACEOF
17776 if ac_fn_c_try_link "$LINENO"; then :
17777 ac_cv_lib_pam_pam_start=yes
17778 else
17779 ac_cv_lib_pam_pam_start=no
17781 rm -f core conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17786 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17787 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17789 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17790 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17792 alpine_PAM="yes"
17793 alpine_c_client_target="oxs"
17795 else
17796 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17797 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17799 alpine_PAM="yes"
17800 alpine_c_client_target="oxp"
17802 else
17804 alpine_PAM="none"
17805 alpine_pam_none_reason="header files not found"
17815 else
17817 alpine_c_client_target="osx"
17821 else
17822 alpine_c_client_target="osx"
17825 *-*-solaris*)
17826 if test x$GCC = "xyes" ; then
17827 systype="GSO"
17828 alpine_c_client_target="gso"
17829 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17830 else
17831 systype="SOC"
17832 alpine_c_client_target="soc"
17834 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17837 alpine_path_delim="/"
17838 alpine_mode_readonly="(0600)"
17840 *-*-sunos4*)
17841 systype="SUN"
17842 alpine_path_delim="/"
17843 alpine_mode_readonly="(0600)"
17844 alpine_c_client_target="s40"
17846 *-*-sco3.2v5*)
17847 if test x$GCC = "xyes" ; then
17848 systype="GO5"
17849 alpine_c_client_target="go5"
17850 else
17851 systype="SC5"
17852 alpine_c_client_target="sc5"
17854 alpine_path_delim="/"
17855 alpine_mode_readonly="(0600)"
17857 *-next-*)
17858 systype="NXT"
17859 alpine_path_delim="/"
17860 alpine_mode_readonly="(0600)"
17861 alpine_c_client_target="nx3"
17863 *-*-netbsd*)
17864 systype="NEB"
17865 alpine_path_delim="/"
17866 alpine_mode_readonly="(0600)"
17867 alpine_c_client_target="neb"
17869 *-*-dragonfly*)
17870 systype="DFB"
17871 alpine_path_delim="/"
17872 alpine_mode_readonly="(0600)"
17873 alpine_c_client_target="neb"
17875 *-*-bsdi*)
17876 systype="BSI"
17877 alpine_path_delim="/"
17878 alpine_mode_readonly="(0600)"
17879 alpine_c_client_target="bsi"
17881 *-*-freebsd*)
17882 systype="BSF"
17883 alpine_path_delim="/"
17884 alpine_mode_readonly="(0600)"
17885 alpine_c_client_target="bsf"
17886 LIBS="$LIBS $LIBINTL"
17888 *-*-openbsd*)
17889 systype="BSO"
17890 alpine_path_delim="/"
17891 alpine_mode_readonly="(0600)"
17892 alpine_c_client_target="bso"
17893 LIBS="$LIBS $LIBINTL"
17895 *-*-aix5*)
17896 systype="A52"
17897 alpine_path_delim="/"
17898 alpine_mode_readonly="(0600)"
17899 alpine_c_client_target="a52"
17901 *-*-aix4*)
17902 systype="A41"
17903 alpine_path_delim="/"
17904 alpine_mode_readonly="(0600)"
17905 alpine_c_client_target="a41"
17907 *-*-aix3*)
17908 systype="A32"
17909 alpine_path_delim="/"
17910 alpine_mode_readonly="(0600)"
17911 alpine_c_client_target="a32"
17913 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17914 systype="UW2"
17915 alpine_path_delim="/"
17916 alpine_mode_readonly="(0600)"
17917 alpine_c_client_target="uw2"
17919 *-*-osf5*)
17920 systype="OSF"
17921 alpine_path_delim="/"
17922 alpine_mode_readonly="(0600)"
17923 alpine_c_client_target="osf"
17925 *-*-cygwin)
17926 systype="CYG"
17927 alpine_path_delim="/"
17928 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17929 alpine_c_client_target="cyg"
17930 LIBS="$LIBS $LIBINTL"
17932 windows* | *-*-pw32*)
17933 systype="WNT"
17934 alpine_path_delim="\\"
17935 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17936 alpine_c_client_target="wnt"
17938 $as_echo "#define _WINDOWS 1" >>confdefs.h
17942 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17944 esac
17947 # Check whether --with-ipv6 was given.
17948 if test "${with_ipv6+set}" = set; then :
17949 withval=$with_ipv6; with_ipv6=$withval
17953 if test "x$with_ipv6" = "xno" ; then
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17955 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17956 c_client_specials="${c_client_specials}IP6=4 "
17957 c_client_ip6="true"
17958 else
17959 c_client_ip6="touch imap/ip6"
17964 if test x$enable_dmalloc = "xyes" ; then
17965 if test "x$with_pthread" = "xyes" ; then
17966 dmalloc_lib=dmallocth
17967 else
17968 dmalloc_lib=dmalloc
17971 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17973 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17974 if eval \${$as_ac_Lib+:} false; then :
17975 $as_echo_n "(cached) " >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-l$dmalloc_lib $LIBS"
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 char dmalloc_shutdown ();
17990 main ()
17992 return dmalloc_shutdown ();
17994 return 0;
17996 _ACEOF
17997 if ac_fn_c_try_link "$LINENO"; then :
17998 eval "$as_ac_Lib=yes"
17999 else
18000 eval "$as_ac_Lib=no"
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18006 eval ac_res=\$$as_ac_Lib
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18008 $as_echo "$ac_res" >&6; }
18009 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18010 cat >>confdefs.h <<_ACEOF
18011 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18012 _ACEOF
18014 LIBS="-l$dmalloc_lib $LIBS"
18016 else
18018 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18025 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18026 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18027 $as_echo_n "(cached) " >&6
18028 else
18029 ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-ltinfo $LIBS"
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char setupterm ();
18042 main ()
18044 return setupterm ();
18046 return 0;
18048 _ACEOF
18049 if ac_fn_c_try_link "$LINENO"; then :
18050 ac_cv_lib_tinfo_setupterm=yes
18051 else
18052 ac_cv_lib_tinfo_setupterm=no
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18059 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18060 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18062 alpine_termdata=info
18063 LIBS="$LIBS -ltinfo"
18065 else
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18068 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18069 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18070 $as_echo_n "(cached) " >&6
18071 else
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lncurses $LIBS"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char setupterm ();
18085 main ()
18087 return setupterm ();
18089 return 0;
18091 _ACEOF
18092 if ac_fn_c_try_link "$LINENO"; then :
18093 ac_cv_lib_ncurses_setupterm=yes
18094 else
18095 ac_cv_lib_ncurses_setupterm=no
18097 rm -f core conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18099 LIBS=$ac_check_lib_save_LIBS
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18102 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18103 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18105 alpine_termdata=info
18106 LIBS="$LIBS -lncurses"
18108 else
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18111 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18112 if ${ac_cv_lib_curses_setupterm+:} false; then :
18113 $as_echo_n "(cached) " >&6
18114 else
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lcurses $LIBS"
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18123 #ifdef __cplusplus
18124 extern "C"
18125 #endif
18126 char setupterm ();
18128 main ()
18130 return setupterm ();
18132 return 0;
18134 _ACEOF
18135 if ac_fn_c_try_link "$LINENO"; then :
18136 ac_cv_lib_curses_setupterm=yes
18137 else
18138 ac_cv_lib_curses_setupterm=no
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18145 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18146 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18148 alpine_termdata=info
18149 LIBS="$LIBS -lcurses"
18151 else
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18154 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18155 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18156 $as_echo_n "(cached) " >&6
18157 else
18158 ac_check_lib_save_LIBS=$LIBS
18159 LIBS="-ltermlib $LIBS"
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18163 /* Override any GCC internal prototype to avoid an error.
18164 Use char because int might match the return type of a GCC
18165 builtin and then its argument prototype would still apply. */
18166 #ifdef __cplusplus
18167 extern "C"
18168 #endif
18169 char tgetent ();
18171 main ()
18173 return tgetent ();
18175 return 0;
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18179 ac_cv_lib_termlib_tgetent=yes
18180 else
18181 ac_cv_lib_termlib_tgetent=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18188 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18189 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18191 alpine_termdata=cap
18192 LIBS="$LIBS -ltermlib"
18194 else
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18197 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18198 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18199 $as_echo_n "(cached) " >&6
18200 else
18201 ac_check_lib_save_LIBS=$LIBS
18202 LIBS="-ltermcap $LIBS"
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18209 #ifdef __cplusplus
18210 extern "C"
18211 #endif
18212 char tgetent ();
18214 main ()
18216 return tgetent ();
18218 return 0;
18220 _ACEOF
18221 if ac_fn_c_try_link "$LINENO"; then :
18222 ac_cv_lib_termcap_tgetent=yes
18223 else
18224 ac_cv_lib_termcap_tgetent=no
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18231 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18232 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18234 alpine_termdata=cap
18235 LIBS="$LIBS -ltermcap"
18237 else
18239 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18255 case $alpine_termdata in
18256 info)
18258 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18261 cap)
18263 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18266 esac
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18269 $as_echo_n "checking for library containing dlopen... " >&6; }
18270 if ${ac_cv_search_dlopen+:} false; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 ac_func_search_save_LIBS=$LIBS
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18277 /* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 char dlopen ();
18285 main ()
18287 return dlopen ();
18289 return 0;
18291 _ACEOF
18292 for ac_lib in '' dl dld; do
18293 if test -z "$ac_lib"; then
18294 ac_res="none required"
18295 else
18296 ac_res=-l$ac_lib
18297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18299 if ac_fn_c_try_link "$LINENO"; then :
18300 ac_cv_search_dlopen=$ac_res
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext
18304 if ${ac_cv_search_dlopen+:} false; then :
18305 break
18307 done
18308 if ${ac_cv_search_dlopen+:} false; then :
18310 else
18311 ac_cv_search_dlopen=no
18313 rm conftest.$ac_ext
18314 LIBS=$ac_func_search_save_LIBS
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18317 $as_echo "$ac_cv_search_dlopen" >&6; }
18318 ac_res=$ac_cv_search_dlopen
18319 if test "$ac_res" != no; then :
18320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18322 else
18323 alpine_DL="none"
18326 if test "x$alpine_DL" = "xnone" ; then
18327 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18328 exit 1
18331 if test "x$alpine_SSLTYPE" != "xnone" ; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18333 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18337 #include <stdio.h>
18338 #include <stdlib.h>
18339 #if HAVE_STDINT_H
18340 #include <stdint.h>
18341 #endif /* HAVE_STDINT_H */
18342 #include <openssl/ssl.h>
18345 main ()
18348 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18349 #error
18350 #endif
18353 return 0;
18355 _ACEOF
18356 if ac_fn_c_try_compile "$LINENO"; then :
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358 $as_echo "yes" >&6; }
18359 alpine_SSLPROVIDER="libressl"
18361 else
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18363 $as_echo "no" >&6; }
18366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18371 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18375 #include <stdio.h>
18376 #include <stdlib.h>
18377 #if HAVE_STDINT_H
18378 #include <stdint.h>
18379 #endif /* HAVE_STDINT_H */
18380 #include <openssl/ssl.h>
18383 main ()
18386 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18387 #error
18388 #endif
18391 return 0;
18393 _ACEOF
18394 if ac_fn_c_try_compile "$LINENO"; then :
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 $as_echo "yes" >&6; }
18397 alpine_SSLPROVIDER="openssl"
18399 else
18400 alpine_SSLTYPE="none"
18402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18404 if test "x$alpine_SSLTYPE" = "xnone" ; then
18405 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18406 exit 1
18410 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18412 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18416 #include <stdio.h>
18417 #include <stdlib.h>
18418 #if HAVE_STDINT_H
18419 #include <stdint.h>
18420 #endif /* HAVE_STDINT_H */
18421 #include <openssl/ssl.h>
18424 main ()
18427 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18428 #error
18429 #endif
18432 return 0;
18434 _ACEOF
18435 if ac_fn_c_try_compile "$LINENO"; then :
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18437 $as_echo "yes" >&6; }
18438 alpine_SSLVERSION="new"
18439 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18441 else
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443 $as_echo "no" >&6; }
18444 alpine_SSLVERSION="old"
18446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449 if test "x$alpine_SSLTYPE" != "xnone" ; then
18450 if test "x$alpine_SSLVERSION" = "xold" ; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18452 $as_echo_n "checking for library containing SSLeay... " >&6; }
18453 if ${ac_cv_search_SSLeay+:} false; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18456 ac_func_search_save_LIBS=$LIBS
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char SSLeay ();
18468 main ()
18470 return SSLeay ();
18472 return 0;
18474 _ACEOF
18475 for ac_lib in '' crypto; do
18476 if test -z "$ac_lib"; then
18477 ac_res="none required"
18478 else
18479 ac_res=-l$ac_lib
18480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 ac_cv_search_SSLeay=$ac_res
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext
18487 if ${ac_cv_search_SSLeay+:} false; then :
18488 break
18490 done
18491 if ${ac_cv_search_SSLeay+:} false; then :
18493 else
18494 ac_cv_search_SSLeay=no
18496 rm conftest.$ac_ext
18497 LIBS=$ac_func_search_save_LIBS
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18500 $as_echo "$ac_cv_search_SSLeay" >&6; }
18501 ac_res=$ac_cv_search_SSLeay
18502 if test "$ac_res" != no; then :
18503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18505 else
18506 alpine_CRYPTO="none"
18509 else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18511 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18512 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 ac_func_search_save_LIBS=$LIBS
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18522 #ifdef __cplusplus
18523 extern "C"
18524 #endif
18525 char OpenSSL_version_num ();
18527 main ()
18529 return OpenSSL_version_num ();
18531 return 0;
18533 _ACEOF
18534 for ac_lib in '' crypto; do
18535 if test -z "$ac_lib"; then
18536 ac_res="none required"
18537 else
18538 ac_res=-l$ac_lib
18539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18541 if ac_fn_c_try_link "$LINENO"; then :
18542 ac_cv_search_OpenSSL_version_num=$ac_res
18544 rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext
18546 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18547 break
18549 done
18550 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18552 else
18553 ac_cv_search_OpenSSL_version_num=no
18555 rm conftest.$ac_ext
18556 LIBS=$ac_func_search_save_LIBS
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18559 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18560 ac_res=$ac_cv_search_OpenSSL_version_num
18561 if test "$ac_res" != no; then :
18562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18564 else
18565 alpine_CRYPTO="none"
18569 if test "x$alpine_CRYPTO" = "xnone" ; then
18570 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18571 exit 1
18573 case $host in
18574 *-*-cygwin)
18575 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18576 if test "x$ac_cv_header_crypto_h" = xyes; then :
18578 else
18579 alpine_CRYPTO_DEVEL="none"
18583 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18584 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
18585 exit 1
18588 *) ;;
18589 esac
18592 if test "x$alpine_SSLTYPE" != "xnone" ; then
18593 if test "x$alpine_SSLVERSION" = "xold" ; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18595 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18596 if ${ac_cv_search_SSL_library_init+:} false; then :
18597 $as_echo_n "(cached) " >&6
18598 else
18599 ac_func_search_save_LIBS=$LIBS
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18603 /* Override any GCC internal prototype to avoid an error.
18604 Use char because int might match the return type of a GCC
18605 builtin and then its argument prototype would still apply. */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char SSL_library_init ();
18611 main ()
18613 return SSL_library_init ();
18615 return 0;
18617 _ACEOF
18618 for ac_lib in '' ssl; do
18619 if test -z "$ac_lib"; then
18620 ac_res="none required"
18621 else
18622 ac_res=-l$ac_lib
18623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18625 if ac_fn_c_try_link "$LINENO"; then :
18626 ac_cv_search_SSL_library_init=$ac_res
18628 rm -f core conftest.err conftest.$ac_objext \
18629 conftest$ac_exeext
18630 if ${ac_cv_search_SSL_library_init+:} false; then :
18631 break
18633 done
18634 if ${ac_cv_search_SSL_library_init+:} false; then :
18636 else
18637 ac_cv_search_SSL_library_init=no
18639 rm conftest.$ac_ext
18640 LIBS=$ac_func_search_save_LIBS
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18643 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18644 ac_res=$ac_cv_search_SSL_library_init
18645 if test "$ac_res" != no; then :
18646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18648 else
18649 alpine_SSLTYPE="none"
18652 if test "x$alpine_SSLTYPE" = "xnone" ; then
18653 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18654 exit 1
18656 else
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18658 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18659 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18660 $as_echo_n "(cached) " >&6
18661 else
18662 ac_func_search_save_LIBS=$LIBS
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char OPENSSL_init_ssl ();
18674 main ()
18676 return OPENSSL_init_ssl ();
18678 return 0;
18680 _ACEOF
18681 for ac_lib in '' ssl; do
18682 if test -z "$ac_lib"; then
18683 ac_res="none required"
18684 else
18685 ac_res=-l$ac_lib
18686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18688 if ac_fn_c_try_link "$LINENO"; then :
18689 ac_cv_search_OPENSSL_init_ssl=$ac_res
18691 rm -f core conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext
18693 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18694 break
18696 done
18697 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18699 else
18700 ac_cv_search_OPENSSL_init_ssl=no
18702 rm conftest.$ac_ext
18703 LIBS=$ac_func_search_save_LIBS
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18706 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18707 ac_res=$ac_cv_search_OPENSSL_init_ssl
18708 if test "$ac_res" != no; then :
18709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18711 else
18712 alpine_SSLTYPE="none"
18715 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18716 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18717 exit 1
18722 if test "$alpine_with_ldap" = "yes" ; then
18723 alpine_has_ldap=
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18725 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18726 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18727 $as_echo_n "(cached) " >&6
18728 else
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-llber $LIBS"
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char ber_alloc ();
18742 main ()
18744 return ber_alloc ();
18746 return 0;
18748 _ACEOF
18749 if ac_fn_c_try_link "$LINENO"; then :
18750 ac_cv_lib_lber_ber_alloc=yes
18751 else
18752 ac_cv_lib_lber_ber_alloc=no
18754 rm -f core conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18759 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18760 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18762 LIBS="$LIBS -llber"
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18767 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18768 if ${ac_cv_search_ldap_initialize+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 ac_func_search_save_LIBS=$LIBS
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18775 /* Override any GCC internal prototype to avoid an error.
18776 Use char because int might match the return type of a GCC
18777 builtin and then its argument prototype would still apply. */
18778 #ifdef __cplusplus
18779 extern "C"
18780 #endif
18781 char ldap_initialize ();
18783 main ()
18785 return ldap_initialize ();
18787 return 0;
18789 _ACEOF
18790 for ac_lib in '' ldap; do
18791 if test -z "$ac_lib"; then
18792 ac_res="none required"
18793 else
18794 ac_res=-l$ac_lib
18795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18797 if ac_fn_c_try_link "$LINENO"; then :
18798 ac_cv_search_ldap_initialize=$ac_res
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext
18802 if ${ac_cv_search_ldap_initialize+:} false; then :
18803 break
18805 done
18806 if ${ac_cv_search_ldap_initialize+:} false; then :
18808 else
18809 ac_cv_search_ldap_initialize=no
18811 rm conftest.$ac_ext
18812 LIBS=$ac_func_search_save_LIBS
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18815 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18816 ac_res=$ac_cv_search_ldap_initialize
18817 if test "$ac_res" != no; then :
18818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18820 alpine_has_ldap=yes
18822 else
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18825 $as_echo_n "checking for library containing ldap_open... " >&6; }
18826 if ${ac_cv_search_ldap_open+:} false; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829 ac_func_search_save_LIBS=$LIBS
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char ldap_open ();
18841 main ()
18843 return ldap_open ();
18845 return 0;
18847 _ACEOF
18848 for ac_lib in '' ldap; do
18849 if test -z "$ac_lib"; then
18850 ac_res="none required"
18851 else
18852 ac_res=-l$ac_lib
18853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18855 if ac_fn_c_try_link "$LINENO"; then :
18856 ac_cv_search_ldap_open=$ac_res
18858 rm -f core conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext
18860 if ${ac_cv_search_ldap_open+:} false; then :
18861 break
18863 done
18864 if ${ac_cv_search_ldap_open+:} false; then :
18866 else
18867 ac_cv_search_ldap_open=no
18869 rm conftest.$ac_ext
18870 LIBS=$ac_func_search_save_LIBS
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18873 $as_echo "$ac_cv_search_ldap_open" >&6; }
18874 ac_res=$ac_cv_search_ldap_open
18875 if test "$ac_res" != no; then :
18876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18878 alpine_has_ldap=yes
18886 if test "$alpine_has_ldap" = "yes" ; then
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18888 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18890 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18895 if test -z "$alpine_c_client_bundled" ; then
18896 if test "x$alpine_PAM" != "xnone" ; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18898 $as_echo_n "checking for library containing pam_start... " >&6; }
18899 if ${ac_cv_search_pam_start+:} false; then :
18900 $as_echo_n "(cached) " >&6
18901 else
18902 ac_func_search_save_LIBS=$LIBS
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 char pam_start ();
18914 main ()
18916 return pam_start ();
18918 return 0;
18920 _ACEOF
18921 for ac_lib in '' pam; do
18922 if test -z "$ac_lib"; then
18923 ac_res="none required"
18924 else
18925 ac_res=-l$ac_lib
18926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18928 if ac_fn_c_try_link "$LINENO"; then :
18929 ac_cv_search_pam_start=$ac_res
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext
18933 if ${ac_cv_search_pam_start+:} false; then :
18934 break
18936 done
18937 if ${ac_cv_search_pam_start+:} false; then :
18939 else
18940 ac_cv_search_pam_start=no
18942 rm conftest.$ac_ext
18943 LIBS=$ac_func_search_save_LIBS
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18946 $as_echo "$ac_cv_search_pam_start" >&6; }
18947 ac_res=$ac_cv_search_pam_start
18948 if test "$ac_res" != no; then :
18949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18951 LIBS="$LIBS -lpam"
18952 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18953 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18955 alpine_PAM="yes"
18957 else
18958 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18959 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18961 alpine_PAM="yes"
18962 if test "x$alpine_c_client_target" != "xoxp" ; then
18963 alpine_PAM="none"
18964 alpine_pam_none_reason="header files not in security/ directory"
18967 else
18969 alpine_PAM="none"
18970 alpine_pam_none_reason="header files not found"
18980 else
18982 alpine_PAM="none"
18983 alpine_pam_none_reason="library files not found"
18987 if test -n "$alpine_pam_none_reason" ; then
18988 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
18993 if test -n "$alpine_c_client_bundled" ; then
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18995 $as_echo_n "checking for library containing crypt... " >&6; }
18996 if ${ac_cv_search_crypt+:} false; then :
18997 $as_echo_n "(cached) " >&6
18998 else
18999 ac_func_search_save_LIBS=$LIBS
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19003 /* Override any GCC internal prototype to avoid an error.
19004 Use char because int might match the return type of a GCC
19005 builtin and then its argument prototype would still apply. */
19006 #ifdef __cplusplus
19007 extern "C"
19008 #endif
19009 char crypt ();
19011 main ()
19013 return crypt ();
19015 return 0;
19017 _ACEOF
19018 for ac_lib in '' crypt; do
19019 if test -z "$ac_lib"; then
19020 ac_res="none required"
19021 else
19022 ac_res=-l$ac_lib
19023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19025 if ac_fn_c_try_link "$LINENO"; then :
19026 ac_cv_search_crypt=$ac_res
19028 rm -f core conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext
19030 if ${ac_cv_search_crypt+:} false; then :
19031 break
19033 done
19034 if ${ac_cv_search_crypt+:} false; then :
19036 else
19037 ac_cv_search_crypt=no
19039 rm conftest.$ac_ext
19040 LIBS=$ac_func_search_save_LIBS
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19043 $as_echo "$ac_cv_search_crypt" >&6; }
19044 ac_res=$ac_cv_search_crypt
19045 if test "$ac_res" != no; then :
19046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19048 else
19050 as_fn_error $? "crypt library not found." "$LINENO" 5
19056 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19059 if test "x$alpine_GSSTYPE" != "xnone" ; then
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19061 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19062 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19063 $as_echo_n "(cached) " >&6
19064 else
19065 ac_func_search_save_LIBS=$LIBS
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19069 /* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19072 #ifdef __cplusplus
19073 extern "C"
19074 #endif
19075 char gss_init_sec_context ();
19077 main ()
19079 return gss_init_sec_context ();
19081 return 0;
19083 _ACEOF
19084 for ac_lib in '' gss gssapi gssapi_krb5; do
19085 if test -z "$ac_lib"; then
19086 ac_res="none required"
19087 else
19088 ac_res=-l$ac_lib
19089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19091 if ac_fn_c_try_link "$LINENO"; then :
19092 ac_cv_search_gss_init_sec_context=$ac_res
19094 rm -f core conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext
19096 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19097 break
19099 done
19100 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19102 else
19103 ac_cv_search_gss_init_sec_context=no
19105 rm conftest.$ac_ext
19106 LIBS=$ac_func_search_save_LIBS
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19109 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19110 ac_res=$ac_cv_search_gss_init_sec_context
19111 if test "$ac_res" != no; then :
19112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19114 LIBS="$LIBS -lkrb5"
19115 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19116 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19118 else
19120 if test ! -d /usr/kerberos/include ; then
19121 alpine_GSSTYPE="none"
19122 alpine_gss_none_reason="header files not found"
19129 else
19131 alpine_GSSTYPE="none"
19132 alpine_gss_none_reason="libraries not found"
19136 if test -n "$alpine_gss_none_reason" ; then
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19138 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19143 # Check whether --with-ntlm was given.
19144 if test "${with_ntlm+set}" = set; then :
19145 withval=$with_ntlm; with_ntlm=$withval
19149 if test "x$with_ntlm" = "xno" ; then
19150 alpine_NTLM="none"
19151 else
19152 alpine_NTLM=
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19155 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19156 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159 ac_func_search_save_LIBS=$LIBS
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 char buildSmbNtlmAuthRequest ();
19171 main ()
19173 return buildSmbNtlmAuthRequest ();
19175 return 0;
19177 _ACEOF
19178 for ac_lib in '' ntlm; do
19179 if test -z "$ac_lib"; then
19180 ac_res="none required"
19181 else
19182 ac_res=-l$ac_lib
19183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19185 if ac_fn_c_try_link "$LINENO"; then :
19186 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext
19190 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19191 break
19193 done
19194 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19196 else
19197 ac_cv_search_buildSmbNtlmAuthRequest=no
19199 rm conftest.$ac_ext
19200 LIBS=$ac_func_search_save_LIBS
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19203 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19204 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19205 if test "$ac_res" != no; then :
19206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19208 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19209 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19211 extra_auth_ntlm=ntl
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19213 $as_echo "$as_me: including NTLM support" >&6;}
19215 else
19217 alpine_NTLM="none"
19218 alpine_ntlm_none_reason="header file ntlm.h not found"
19224 else
19226 alpine_NTLM="none"
19227 alpine_ntlm_none_reason="ntlm library not found"
19231 if test -n "$alpine_ntlm_none_reason" ; then
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19233 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19237 if test -n "$WEB_BUILD" ; then
19238 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19239 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19240 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19241 if test -n "$alpine_TCLINC" ; then
19242 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19243 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19246 else
19248 WEB_BUILD=
19253 if test -z "$WEB_BUILD" ; then
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19255 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19257 else
19258 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19259 if test "x$ac_cv_header_tcl_h" = xyes; then :
19261 else
19263 for base in /usr /usr/local ; do
19264 for dir in ${TCL_VERSIONS} ; do
19265 if test -f $base/include/$dir/tcl.h ; then
19266 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19267 found=yes
19268 break
19270 done
19271 if test "x$found" = "xyes" ; then
19272 break
19274 done
19275 if test "$found" != "yes" ; then
19276 WEB_BUILD=
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19278 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19285 if test -n "$WEB_BUILD" ; then
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19287 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19288 if ${ac_cv_search_Tcl_Eval+:} false; then :
19289 $as_echo_n "(cached) " >&6
19290 else
19291 ac_func_search_save_LIBS=$LIBS
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char Tcl_Eval ();
19303 main ()
19305 return Tcl_Eval ();
19307 return 0;
19309 _ACEOF
19310 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19311 if test -z "$ac_lib"; then
19312 ac_res="none required"
19313 else
19314 ac_res=-l$ac_lib
19315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19317 if ac_fn_c_try_link "$LINENO"; then :
19318 ac_cv_search_Tcl_Eval=$ac_res
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext
19322 if ${ac_cv_search_Tcl_Eval+:} false; then :
19323 break
19325 done
19326 if ${ac_cv_search_Tcl_Eval+:} false; then :
19328 else
19329 ac_cv_search_Tcl_Eval=no
19331 rm conftest.$ac_ext
19332 LIBS=$ac_func_search_save_LIBS
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19335 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19336 ac_res=$ac_cv_search_Tcl_Eval
19337 if test "$ac_res" != no; then :
19338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19340 else
19342 WEB_BUILD=
19349 if test "x$alpine_REGEX" != "xyes" ; then
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19351 $as_echo_n "checking for library containing regcomp... " >&6; }
19352 if ${ac_cv_search_regcomp+:} false; then :
19353 $as_echo_n "(cached) " >&6
19354 else
19355 ac_func_search_save_LIBS=$LIBS
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19359 /* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19362 #ifdef __cplusplus
19363 extern "C"
19364 #endif
19365 char regcomp ();
19367 main ()
19369 return regcomp ();
19371 return 0;
19373 _ACEOF
19374 for ac_lib in '' posix regexp regex re; do
19375 if test -z "$ac_lib"; then
19376 ac_res="none required"
19377 else
19378 ac_res=-l$ac_lib
19379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19381 if ac_fn_c_try_link "$LINENO"; then :
19382 ac_cv_search_regcomp=$ac_res
19384 rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext
19386 if ${ac_cv_search_regcomp+:} false; then :
19387 break
19389 done
19390 if ${ac_cv_search_regcomp+:} false; then :
19392 else
19393 ac_cv_search_regcomp=no
19395 rm conftest.$ac_ext
19396 LIBS=$ac_func_search_save_LIBS
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19399 $as_echo "$ac_cv_search_regcomp" >&6; }
19400 ac_res=$ac_cv_search_regcomp
19401 if test "$ac_res" != no; then :
19402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19404 else
19406 if test x$alpine_REGEX = "xno" ; then
19407 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19408 else
19409 alpine_REGEX=yes
19415 if test "x$alpine_REGEX" != "xyes" ; then
19416 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19417 if test "x$ac_cv_header_regex_h" = xyes; then :
19419 else
19421 if test x$alpine_REGEX = "xno" ; then
19422 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19423 else
19424 alpine_REGEX=yes
19432 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19434 if test "x$alpine_REGEX" = "xyes" ; then
19435 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19436 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19437 REGEX_BUILD=regex
19438 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19441 if test "x$with_pthread" != "xno" ; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19443 $as_echo_n "checking for pthread support... " >&6; }
19447 ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19453 acx_pthread_ok=no
19455 # We used to check for pthread.h first, but this fails if pthread.h
19456 # requires special compiler flags (e.g. on True64 or Sequent).
19457 # It gets checked for in the link test anyway.
19459 # First of all, check if the user has set any of the PTHREAD_LIBS,
19460 # etcetera environment variables, and if threads linking works using
19461 # them:
19462 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19463 save_CFLAGS="$CFLAGS"
19464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19465 save_LIBS="$LIBS"
19466 LIBS="$PTHREAD_LIBS $LIBS"
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19468 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19470 /* end confdefs.h. */
19472 /* Override any GCC internal prototype to avoid an error.
19473 Use char because int might match the return type of a GCC
19474 builtin and then its argument prototype would still apply. */
19475 #ifdef __cplusplus
19476 extern "C"
19477 #endif
19478 char pthread_join ();
19480 main ()
19482 return pthread_join ();
19484 return 0;
19486 _ACEOF
19487 if ac_fn_c_try_link "$LINENO"; then :
19488 acx_pthread_ok=yes
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19493 $as_echo "$acx_pthread_ok" >&6; }
19494 if test x"$acx_pthread_ok" = xno; then
19495 PTHREAD_LIBS=""
19496 PTHREAD_CFLAGS=""
19498 LIBS="$save_LIBS"
19499 CFLAGS="$save_CFLAGS"
19502 # We must check for the threads library under a number of different
19503 # names; the ordering is very important because some systems
19504 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19505 # libraries is broken (non-POSIX).
19507 # Create a list of thread flags to try. Items starting with a "-" are
19508 # C compiler flags, and other items are library names, except for "none"
19509 # which indicates that we try without any flags at all, and "pthread-config"
19510 # which is a program returning the flags for the Pth emulation library.
19512 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19514 # The ordering *is* (sometimes) important. Some notes on the
19515 # individual items follow:
19517 # pthreads: AIX (must check this before -lpthread)
19518 # none: in case threads are in libc; should be tried before -Kthread and
19519 # other compiler flags to prevent continual compiler warnings
19520 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19521 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19522 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19523 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19524 # -pthreads: Solaris/gcc
19525 # -mthreads: Mingw32/gcc, Lynx/gcc
19526 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19527 # doesn't hurt to check since this sometimes defines pthreads too;
19528 # also defines -D_REENTRANT)
19529 # ... -mt is also the pthreads flag for HP/aCC
19530 # pthread: Linux, etcetera
19531 # --thread-safe: KAI C++
19532 # pthread-config: use pthread-config program (for GNU Pth library)
19534 case "${host_cpu}-${host_os}" in
19535 *solaris*)
19537 # On Solaris (at least, for some versions), libc contains stubbed
19538 # (non-functional) versions of the pthreads routines, so link-based
19539 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19540 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19541 # a function called by this macro, so we could check for that, but
19542 # who knows whether they'll stub that too in a future libc.) So,
19543 # we'll just look for -pthreads and -lpthread first:
19545 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19547 esac
19549 if test x"$acx_pthread_ok" = xno; then
19550 for flag in $acx_pthread_flags; do
19552 case $flag in
19553 none)
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19555 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19560 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19561 PTHREAD_CFLAGS="$flag"
19564 pthread-config)
19565 # Extract the first word of "pthread-config", so it can be a program name with args.
19566 set dummy pthread-config; ac_word=$2
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19568 $as_echo_n "checking for $ac_word... " >&6; }
19569 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19570 $as_echo_n "(cached) " >&6
19571 else
19572 if test -n "$acx_pthread_config"; then
19573 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19574 else
19575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19576 for as_dir in $PATH
19578 IFS=$as_save_IFS
19579 test -z "$as_dir" && as_dir=.
19580 for ac_exec_ext in '' $ac_executable_extensions; do
19581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19582 ac_cv_prog_acx_pthread_config="yes"
19583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19584 break 2
19586 done
19587 done
19588 IFS=$as_save_IFS
19590 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19593 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19594 if test -n "$acx_pthread_config"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19596 $as_echo "$acx_pthread_config" >&6; }
19597 else
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19599 $as_echo "no" >&6; }
19603 if test x"$acx_pthread_config" = xno; then continue; fi
19604 PTHREAD_CFLAGS="`pthread-config --cflags`"
19605 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19610 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19611 PTHREAD_LIBS="-l$flag"
19613 esac
19615 save_LIBS="$LIBS"
19616 save_CFLAGS="$CFLAGS"
19617 LIBS="$PTHREAD_LIBS $LIBS"
19618 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19620 # Check for various functions. We must include pthread.h,
19621 # since some functions may be macros. (On the Sequent, we
19622 # need a special flag -Kthread to make this header compile.)
19623 # We check for pthread_join because it is in -lpthread on IRIX
19624 # while pthread_create is in libc. We check for pthread_attr_init
19625 # due to DEC craziness with -lpthreads. We check for
19626 # pthread_cleanup_push because it is one of the few pthread
19627 # functions on Solaris that doesn't have a non-functional libc stub.
19628 # We try pthread_create on general principles.
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19631 #include <pthread.h>
19633 main ()
19635 pthread_t th; pthread_join(th, 0);
19636 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19637 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19639 return 0;
19641 _ACEOF
19642 if ac_fn_c_try_link "$LINENO"; then :
19643 acx_pthread_ok=yes
19645 rm -f core conftest.err conftest.$ac_objext \
19646 conftest$ac_exeext conftest.$ac_ext
19648 LIBS="$save_LIBS"
19649 CFLAGS="$save_CFLAGS"
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19652 $as_echo "$acx_pthread_ok" >&6; }
19653 if test "x$acx_pthread_ok" = xyes; then
19654 break;
19657 PTHREAD_LIBS=""
19658 PTHREAD_CFLAGS=""
19659 done
19662 # Various other checks:
19663 if test "x$acx_pthread_ok" = xyes; then
19664 save_LIBS="$LIBS"
19665 LIBS="$PTHREAD_LIBS $LIBS"
19666 save_CFLAGS="$CFLAGS"
19667 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19669 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19671 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19672 attr_name=unknown
19673 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19676 #include <pthread.h>
19678 main ()
19680 int attr=$attr; return attr;
19682 return 0;
19684 _ACEOF
19685 if ac_fn_c_try_link "$LINENO"; then :
19686 attr_name=$attr; break
19688 rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 done
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19692 $as_echo "$attr_name" >&6; }
19693 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19695 cat >>confdefs.h <<_ACEOF
19696 #define PTHREAD_CREATE_JOINABLE $attr_name
19697 _ACEOF
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19702 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19703 flag=no
19704 case "${host_cpu}-${host_os}" in
19705 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19706 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19707 esac
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19709 $as_echo "${flag}" >&6; }
19710 if test "x$flag" != xno; then
19711 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19714 LIBS="$save_LIBS"
19715 CFLAGS="$save_CFLAGS"
19717 # More AIX lossage: must compile with xlc_r or cc_r
19718 if test x"$GCC" != xyes; then
19719 for ac_prog in xlc_r cc_r
19721 # Extract the first word of "$ac_prog", so it can be a program name with args.
19722 set dummy $ac_prog; ac_word=$2
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19724 $as_echo_n "checking for $ac_word... " >&6; }
19725 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19726 $as_echo_n "(cached) " >&6
19727 else
19728 if test -n "$PTHREAD_CC"; then
19729 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19730 else
19731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 for as_dir in $PATH
19734 IFS=$as_save_IFS
19735 test -z "$as_dir" && as_dir=.
19736 for ac_exec_ext in '' $ac_executable_extensions; do
19737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19738 ac_cv_prog_PTHREAD_CC="$ac_prog"
19739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19740 break 2
19742 done
19743 done
19744 IFS=$as_save_IFS
19748 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19749 if test -n "$PTHREAD_CC"; then
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19751 $as_echo "$PTHREAD_CC" >&6; }
19752 else
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19754 $as_echo "no" >&6; }
19758 test -n "$PTHREAD_CC" && break
19759 done
19760 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19762 else
19763 PTHREAD_CC=$CC
19765 else
19766 PTHREAD_CC="$CC"
19773 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19774 if test x"$acx_pthread_ok" = xyes; then
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19777 $as_echo "yes" >&6; }
19778 case "$target" in
19779 *openbsd*)
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19781 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19782 AM_CFLAGS="$AM_CFLAGS -pthread"
19784 esac
19785 LIBS="$PTHREAD_LIBS $LIBS"
19786 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19787 CC="$PTHREAD_CC"
19789 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19793 else
19794 acx_pthread_ok=no
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19800 ac_ext=c
19801 ac_cpp='$CPP $CPPFLAGS'
19802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19809 $as_echo_n "checking for library containing nanosleep... " >&6; }
19810 if ${ac_cv_search_nanosleep+:} false; then :
19811 $as_echo_n "(cached) " >&6
19812 else
19813 ac_func_search_save_LIBS=$LIBS
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19817 /* Override any GCC internal prototype to avoid an error.
19818 Use char because int might match the return type of a GCC
19819 builtin and then its argument prototype would still apply. */
19820 #ifdef __cplusplus
19821 extern "C"
19822 #endif
19823 char nanosleep ();
19825 main ()
19827 return nanosleep ();
19829 return 0;
19831 _ACEOF
19832 for ac_lib in '' rt posix4; do
19833 if test -z "$ac_lib"; then
19834 ac_res="none required"
19835 else
19836 ac_res=-l$ac_lib
19837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19839 if ac_fn_c_try_link "$LINENO"; then :
19840 ac_cv_search_nanosleep=$ac_res
19842 rm -f core conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext
19844 if ${ac_cv_search_nanosleep+:} false; then :
19845 break
19847 done
19848 if ${ac_cv_search_nanosleep+:} false; then :
19850 else
19851 ac_cv_search_nanosleep=no
19853 rm conftest.$ac_ext
19854 LIBS=$ac_func_search_save_LIBS
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19857 $as_echo "$ac_cv_search_nanosleep" >&6; }
19858 ac_res=$ac_cv_search_nanosleep
19859 if test "$ac_res" != no; then :
19860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19863 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19874 $as_echo_n "checking for ANSI C header files... " >&6; }
19875 if ${ac_cv_header_stdc+:} false; then :
19876 $as_echo_n "(cached) " >&6
19877 else
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19880 #include <stdlib.h>
19881 #include <stdarg.h>
19882 #include <string.h>
19883 #include <float.h>
19886 main ()
19890 return 0;
19892 _ACEOF
19893 if ac_fn_c_try_compile "$LINENO"; then :
19894 ac_cv_header_stdc=yes
19895 else
19896 ac_cv_header_stdc=no
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 if test $ac_cv_header_stdc = yes; then
19901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904 #include <string.h>
19906 _ACEOF
19907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19908 $EGREP "memchr" >/dev/null 2>&1; then :
19910 else
19911 ac_cv_header_stdc=no
19913 rm -f conftest*
19917 if test $ac_cv_header_stdc = yes; then
19918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19921 #include <stdlib.h>
19923 _ACEOF
19924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19925 $EGREP "free" >/dev/null 2>&1; then :
19927 else
19928 ac_cv_header_stdc=no
19930 rm -f conftest*
19934 if test $ac_cv_header_stdc = yes; then
19935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19936 if test "$cross_compiling" = yes; then :
19938 else
19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19941 #include <ctype.h>
19942 #include <stdlib.h>
19943 #if ((' ' & 0x0FF) == 0x020)
19944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19946 #else
19947 # define ISLOWER(c) \
19948 (('a' <= (c) && (c) <= 'i') \
19949 || ('j' <= (c) && (c) <= 'r') \
19950 || ('s' <= (c) && (c) <= 'z'))
19951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19952 #endif
19954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19956 main ()
19958 int i;
19959 for (i = 0; i < 256; i++)
19960 if (XOR (islower (i), ISLOWER (i))
19961 || toupper (i) != TOUPPER (i))
19962 return 2;
19963 return 0;
19965 _ACEOF
19966 if ac_fn_c_try_run "$LINENO"; then :
19968 else
19969 ac_cv_header_stdc=no
19971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19972 conftest.$ac_objext conftest.beam conftest.$ac_ext
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19978 $as_echo "$ac_cv_header_stdc" >&6; }
19979 if test $ac_cv_header_stdc = yes; then
19981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19985 ac_header_dirent=no
19986 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19987 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19989 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19990 if eval \${$as_ac_Header+:} false; then :
19991 $as_echo_n "(cached) " >&6
19992 else
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19995 #include <sys/types.h>
19996 #include <$ac_hdr>
19999 main ()
20001 if ((DIR *) 0)
20002 return 0;
20004 return 0;
20006 _ACEOF
20007 if ac_fn_c_try_compile "$LINENO"; then :
20008 eval "$as_ac_Header=yes"
20009 else
20010 eval "$as_ac_Header=no"
20012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 eval ac_res=\$$as_ac_Header
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20016 $as_echo "$ac_res" >&6; }
20017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20018 cat >>confdefs.h <<_ACEOF
20019 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20020 _ACEOF
20022 ac_header_dirent=$ac_hdr; break
20025 done
20026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20027 if test $ac_header_dirent = dirent.h; then
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20029 $as_echo_n "checking for library containing opendir... " >&6; }
20030 if ${ac_cv_search_opendir+:} false; then :
20031 $as_echo_n "(cached) " >&6
20032 else
20033 ac_func_search_save_LIBS=$LIBS
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20040 #ifdef __cplusplus
20041 extern "C"
20042 #endif
20043 char opendir ();
20045 main ()
20047 return opendir ();
20049 return 0;
20051 _ACEOF
20052 for ac_lib in '' dir; do
20053 if test -z "$ac_lib"; then
20054 ac_res="none required"
20055 else
20056 ac_res=-l$ac_lib
20057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20059 if ac_fn_c_try_link "$LINENO"; then :
20060 ac_cv_search_opendir=$ac_res
20062 rm -f core conftest.err conftest.$ac_objext \
20063 conftest$ac_exeext
20064 if ${ac_cv_search_opendir+:} false; then :
20065 break
20067 done
20068 if ${ac_cv_search_opendir+:} false; then :
20070 else
20071 ac_cv_search_opendir=no
20073 rm conftest.$ac_ext
20074 LIBS=$ac_func_search_save_LIBS
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20077 $as_echo "$ac_cv_search_opendir" >&6; }
20078 ac_res=$ac_cv_search_opendir
20079 if test "$ac_res" != no; then :
20080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20084 else
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20086 $as_echo_n "checking for library containing opendir... " >&6; }
20087 if ${ac_cv_search_opendir+:} false; then :
20088 $as_echo_n "(cached) " >&6
20089 else
20090 ac_func_search_save_LIBS=$LIBS
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 char opendir ();
20102 main ()
20104 return opendir ();
20106 return 0;
20108 _ACEOF
20109 for ac_lib in '' x; do
20110 if test -z "$ac_lib"; then
20111 ac_res="none required"
20112 else
20113 ac_res=-l$ac_lib
20114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20116 if ac_fn_c_try_link "$LINENO"; then :
20117 ac_cv_search_opendir=$ac_res
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext
20121 if ${ac_cv_search_opendir+:} false; then :
20122 break
20124 done
20125 if ${ac_cv_search_opendir+:} false; then :
20127 else
20128 ac_cv_search_opendir=no
20130 rm conftest.$ac_ext
20131 LIBS=$ac_func_search_save_LIBS
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20134 $as_echo "$ac_cv_search_opendir" >&6; }
20135 ac_res=$ac_cv_search_opendir
20136 if test "$ac_res" != no; then :
20137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20144 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20145 if ${ac_cv_header_stat_broken+:} false; then :
20146 $as_echo_n "(cached) " >&6
20147 else
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20150 #include <sys/types.h>
20151 #include <sys/stat.h>
20153 #if defined S_ISBLK && defined S_IFDIR
20154 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20155 #endif
20157 #if defined S_ISBLK && defined S_IFCHR
20158 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20159 #endif
20161 #if defined S_ISLNK && defined S_IFREG
20162 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20163 #endif
20165 #if defined S_ISSOCK && defined S_IFREG
20166 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20167 #endif
20169 _ACEOF
20170 if ac_fn_c_try_compile "$LINENO"; then :
20171 ac_cv_header_stat_broken=no
20172 else
20173 ac_cv_header_stat_broken=yes
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20178 $as_echo "$ac_cv_header_stat_broken" >&6; }
20179 if test $ac_cv_header_stat_broken = yes; then
20181 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20186 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20187 if ${ac_cv_header_sys_wait_h+:} false; then :
20188 $as_echo_n "(cached) " >&6
20189 else
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192 #include <sys/types.h>
20193 #include <sys/wait.h>
20194 #ifndef WEXITSTATUS
20195 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20196 #endif
20197 #ifndef WIFEXITED
20198 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20199 #endif
20202 main ()
20204 int s;
20205 wait (&s);
20206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20208 return 0;
20210 _ACEOF
20211 if ac_fn_c_try_compile "$LINENO"; then :
20212 ac_cv_header_sys_wait_h=yes
20213 else
20214 ac_cv_header_sys_wait_h=no
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20219 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20220 if test $ac_cv_header_sys_wait_h = yes; then
20222 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20227 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20228 if ${ac_cv_header_time+:} false; then :
20229 $as_echo_n "(cached) " >&6
20230 else
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20233 #include <sys/types.h>
20234 #include <sys/time.h>
20235 #include <time.h>
20238 main ()
20240 if ((struct tm *) 0)
20241 return 0;
20243 return 0;
20245 _ACEOF
20246 if ac_fn_c_try_compile "$LINENO"; then :
20247 ac_cv_header_time=yes
20248 else
20249 ac_cv_header_time=no
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20254 $as_echo "$ac_cv_header_time" >&6; }
20255 if test $ac_cv_header_time = yes; then
20257 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20262 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20263 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20264 $as_echo_n "(cached) " >&6
20265 else
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h. */
20268 #include <sys/types.h>
20269 #include <termios.h>
20270 #ifdef TIOCGWINSZ
20272 #endif
20274 _ACEOF
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276 $EGREP "yes" >/dev/null 2>&1; then :
20277 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20278 else
20279 ac_cv_sys_tiocgwinsz_in_termios_h=no
20281 rm -f conftest*
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20285 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20287 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20289 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20290 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20291 $as_echo_n "(cached) " >&6
20292 else
20293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h. */
20295 #include <sys/types.h>
20296 #include <sys/ioctl.h>
20297 #ifdef TIOCGWINSZ
20299 #endif
20301 _ACEOF
20302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20303 $EGREP "yes" >/dev/null 2>&1; then :
20304 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20305 else
20306 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20308 rm -f conftest*
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20312 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20314 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20316 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20322 for ac_header in unistd.h
20323 do :
20324 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20325 if test "x$ac_cv_header_unistd_h" = xyes; then :
20326 cat >>confdefs.h <<_ACEOF
20327 #define HAVE_UNISTD_H 1
20328 _ACEOF
20332 done
20335 for ac_header in errno.h \
20336 ctype.h \
20337 fcntl.h \
20338 signal.h \
20339 setjmp.h \
20340 memory.h \
20341 sys/ioctl.h \
20342 sys/param.h \
20343 sys/socket.h \
20344 sys/uio.h \
20345 sys/un.h \
20346 limits.h \
20347 wchar.h \
20348 sys/poll.h \
20349 stropts.h \
20350 netdb.h \
20351 syslog.h \
20352 sys/syslog.h \
20353 locale.h \
20354 langinfo.h \
20355 utime.h \
20356 sys/utime.h \
20357 pthread.h \
20358 pwd.h \
20359 assert.h
20360 do :
20361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20362 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20364 cat >>confdefs.h <<_ACEOF
20365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20366 _ACEOF
20370 done
20373 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20374 if test "x$ac_cv_header_termios_h" = xyes; then :
20376 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20378 else
20380 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20381 if test "x$ac_cv_header_termio_h" = xyes; then :
20383 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20385 else
20387 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20388 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20390 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20392 else
20394 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20411 $as_echo_n "checking return type of signal handlers... " >&6; }
20412 if ${ac_cv_type_signal+:} false; then :
20413 $as_echo_n "(cached) " >&6
20414 else
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417 #include <sys/types.h>
20418 #include <signal.h>
20421 main ()
20423 return *(signal (0, 0)) (0) == 1;
20425 return 0;
20427 _ACEOF
20428 if ac_fn_c_try_compile "$LINENO"; then :
20429 ac_cv_type_signal=int
20430 else
20431 ac_cv_type_signal=void
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20436 $as_echo "$ac_cv_type_signal" >&6; }
20438 cat >>confdefs.h <<_ACEOF
20439 #define RETSIGTYPE $ac_cv_type_signal
20440 _ACEOF
20443 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20444 if test "x$ac_cv_type_size_t" = xyes; then :
20446 else
20448 cat >>confdefs.h <<_ACEOF
20449 #define size_t unsigned int
20450 _ACEOF
20454 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20455 if test "x$ac_cv_type_mode_t" = xyes; then :
20457 else
20459 cat >>confdefs.h <<_ACEOF
20460 #define mode_t int
20461 _ACEOF
20465 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20466 if test "x$ac_cv_type_pid_t" = xyes; then :
20468 else
20470 cat >>confdefs.h <<_ACEOF
20471 #define pid_t int
20472 _ACEOF
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20477 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20478 if ${ac_cv_type_uid_t+:} false; then :
20479 $as_echo_n "(cached) " >&6
20480 else
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20483 #include <sys/types.h>
20485 _ACEOF
20486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20487 $EGREP "uid_t" >/dev/null 2>&1; then :
20488 ac_cv_type_uid_t=yes
20489 else
20490 ac_cv_type_uid_t=no
20492 rm -f conftest*
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20496 $as_echo "$ac_cv_type_uid_t" >&6; }
20497 if test $ac_cv_type_uid_t = no; then
20499 $as_echo "#define uid_t int" >>confdefs.h
20502 $as_echo "#define gid_t int" >>confdefs.h
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20507 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20508 if ${ac_cv_struct_tm+:} false; then :
20509 $as_echo_n "(cached) " >&6
20510 else
20511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20512 /* end confdefs.h. */
20513 #include <sys/types.h>
20514 #include <time.h>
20517 main ()
20519 struct tm tm;
20520 int *p = &tm.tm_sec;
20521 return !p;
20523 return 0;
20525 _ACEOF
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527 ac_cv_struct_tm=time.h
20528 else
20529 ac_cv_struct_tm=sys/time.h
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20534 $as_echo "$ac_cv_struct_tm" >&6; }
20535 if test $ac_cv_struct_tm = sys/time.h; then
20537 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20542 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20543 if test "x$ac_cv_type_union_wait" = xyes; then :
20545 cat >>confdefs.h <<_ACEOF
20546 #define HAVE_UNION_WAIT 1
20547 _ACEOF
20553 for ac_header in stdint.h
20554 do :
20555 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20556 if test "x$ac_cv_header_stdint_h" = xyes; then :
20557 cat >>confdefs.h <<_ACEOF
20558 #define HAVE_STDINT_H 1
20559 _ACEOF
20560 uint16=uint16_t
20561 else
20563 for ac_header in inttypes.h
20564 do :
20565 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20566 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_INTTYPES_H 1
20569 _ACEOF
20570 uint16=uint16_t
20571 else
20573 for ac_header in sys/types.h
20574 do :
20575 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20576 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20577 cat >>confdefs.h <<_ACEOF
20578 #define HAVE_SYS_TYPES_H 1
20579 _ACEOF
20580 uint16=u_int16_t
20581 else
20583 # The cast to long int works around a bug in the HP C Compiler
20584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20586 # This bug is HP SR number 8606223364.
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20588 $as_echo_n "checking size of unsigned short... " >&6; }
20589 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20590 $as_echo_n "(cached) " >&6
20591 else
20592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20594 else
20595 if test "$ac_cv_type_unsigned_short" = yes; then
20596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20598 as_fn_error 77 "cannot compute sizeof (unsigned short)
20599 See \`config.log' for more details" "$LINENO" 5; }
20600 else
20601 ac_cv_sizeof_unsigned_short=0
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20607 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20611 cat >>confdefs.h <<_ACEOF
20612 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20613 _ACEOF
20616 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20617 uint16="unsigned short"
20618 else
20619 # The cast to long int works around a bug in the HP C Compiler
20620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20622 # This bug is HP SR number 8606223364.
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20624 $as_echo_n "checking size of unsigned int... " >&6; }
20625 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20626 $as_echo_n "(cached) " >&6
20627 else
20628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20630 else
20631 if test "$ac_cv_type_unsigned_int" = yes; then
20632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20634 as_fn_error 77 "cannot compute sizeof (unsigned int)
20635 See \`config.log' for more details" "$LINENO" 5; }
20636 else
20637 ac_cv_sizeof_unsigned_int=0
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20643 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20647 cat >>confdefs.h <<_ACEOF
20648 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20649 _ACEOF
20652 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20653 uint16="unsigned int"
20654 else
20655 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20661 done
20666 done
20671 done
20674 cat >>confdefs.h <<_ACEOF
20675 #define UINT16 $uint16
20676 _ACEOF
20679 for ac_header in stdint.h
20680 do :
20681 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20682 if test "x$ac_cv_header_stdint_h" = xyes; then :
20683 cat >>confdefs.h <<_ACEOF
20684 #define HAVE_STDINT_H 1
20685 _ACEOF
20686 uint32=uint32_t
20687 else
20689 for ac_header in inttypes.h
20690 do :
20691 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20692 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_INTTYPES_H 1
20695 _ACEOF
20696 uint32=uint32_t
20697 else
20699 for ac_header in sys/types.h
20700 do :
20701 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20702 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define HAVE_SYS_TYPES_H 1
20705 _ACEOF
20706 uint32=u_int32_t
20707 else
20709 # The cast to long int works around a bug in the HP C Compiler
20710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20712 # This bug is HP SR number 8606223364.
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20714 $as_echo_n "checking size of unsigned int... " >&6; }
20715 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20716 $as_echo_n "(cached) " >&6
20717 else
20718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20720 else
20721 if test "$ac_cv_type_unsigned_int" = yes; then
20722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20724 as_fn_error 77 "cannot compute sizeof (unsigned int)
20725 See \`config.log' for more details" "$LINENO" 5; }
20726 else
20727 ac_cv_sizeof_unsigned_int=0
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20733 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20737 cat >>confdefs.h <<_ACEOF
20738 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20739 _ACEOF
20742 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20743 uint32="unsigned int"
20744 else
20745 # The cast to long int works around a bug in the HP C Compiler
20746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20748 # This bug is HP SR number 8606223364.
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20750 $as_echo_n "checking size of unsigned long... " >&6; }
20751 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20752 $as_echo_n "(cached) " >&6
20753 else
20754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20756 else
20757 if test "$ac_cv_type_unsigned_long" = yes; then
20758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20760 as_fn_error 77 "cannot compute sizeof (unsigned long)
20761 See \`config.log' for more details" "$LINENO" 5; }
20762 else
20763 ac_cv_sizeof_unsigned_long=0
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20769 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20773 cat >>confdefs.h <<_ACEOF
20774 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20775 _ACEOF
20778 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20779 uint32="unsigned long"
20780 else
20781 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20787 done
20792 done
20797 done
20800 cat >>confdefs.h <<_ACEOF
20801 #define UINT32 $uint32
20802 _ACEOF
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20806 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20807 if ${ac_cv_func_qsort_argtype+:} false; then :
20808 $as_echo_n "(cached) " >&6
20809 else
20810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811 /* end confdefs.h. */
20813 #if HAVE_STDLIB_H
20814 #include "stdlib.h"
20815 #endif
20817 extern void *base;
20818 extern sortf(const void *, const void *);
20819 int sortf(a, b)
20820 const void *a;
20821 const void *b; { return 0; }
20824 main ()
20827 qsort(base, 2, sizeof(char *), sortf);
20830 return 0;
20832 _ACEOF
20833 if ac_fn_c_try_compile "$LINENO"; then :
20834 ac_cv_func_qsort_argtype=void
20835 else
20836 ac_cv_func_qsort_argtype=char
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20842 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20844 cat >>confdefs.h <<_ACEOF
20845 #define qsort_t $ac_cv_func_qsort_argtype
20846 _ACEOF
20850 for ac_header in sys/select.h sys/socket.h
20851 do :
20852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20855 cat >>confdefs.h <<_ACEOF
20856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20857 _ACEOF
20861 done
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20864 $as_echo_n "checking types of arguments for select... " >&6; }
20865 if ${ac_cv_func_select_args+:} false; then :
20866 $as_echo_n "(cached) " >&6
20867 else
20868 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20869 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20870 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #ifdef HAVE_SYS_SELECT_H
20875 # include <sys/select.h>
20876 #endif
20877 #ifdef HAVE_SYS_SOCKET_H
20878 # include <sys/socket.h>
20879 #endif
20882 main ()
20884 extern int select ($ac_arg1,
20885 $ac_arg234, $ac_arg234, $ac_arg234,
20886 $ac_arg5);
20888 return 0;
20890 _ACEOF
20891 if ac_fn_c_try_compile "$LINENO"; then :
20892 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 done
20896 done
20897 done
20898 # Provide a safe default value.
20899 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20903 $as_echo "$ac_cv_func_select_args" >&6; }
20904 ac_save_IFS=$IFS; IFS=','
20905 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20906 IFS=$ac_save_IFS
20907 shift
20909 cat >>confdefs.h <<_ACEOF
20910 #define SELECT_TYPE_ARG1 $1
20911 _ACEOF
20914 cat >>confdefs.h <<_ACEOF
20915 #define SELECT_TYPE_ARG234 ($2)
20916 _ACEOF
20919 cat >>confdefs.h <<_ACEOF
20920 #define SELECT_TYPE_ARG5 ($3)
20921 _ACEOF
20923 rm -f conftest*
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20927 $as_echo_n "checking for working strcoll... " >&6; }
20928 if ${ac_cv_func_strcoll_works+:} false; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 if test "$cross_compiling" = yes; then :
20932 ac_cv_func_strcoll_works=no
20933 else
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20936 $ac_includes_default
20938 main ()
20940 return (strcoll ("abc", "def") >= 0 ||
20941 strcoll ("ABC", "DEF") >= 0 ||
20942 strcoll ("123", "456") >= 0)
20944 return 0;
20946 _ACEOF
20947 if ac_fn_c_try_run "$LINENO"; then :
20948 ac_cv_func_strcoll_works=yes
20949 else
20950 ac_cv_func_strcoll_works=no
20952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20953 conftest.$ac_objext conftest.beam conftest.$ac_ext
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20958 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20959 if test $ac_cv_func_strcoll_works = yes; then
20961 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20967 for ac_header in vfork.h
20968 do :
20969 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20970 if test "x$ac_cv_header_vfork_h" = xyes; then :
20971 cat >>confdefs.h <<_ACEOF
20972 #define HAVE_VFORK_H 1
20973 _ACEOF
20977 done
20979 for ac_func in fork vfork
20980 do :
20981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20984 cat >>confdefs.h <<_ACEOF
20985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20986 _ACEOF
20989 done
20991 if test "x$ac_cv_func_fork" = xyes; then
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20993 $as_echo_n "checking for working fork... " >&6; }
20994 if ${ac_cv_func_fork_works+:} false; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20997 if test "$cross_compiling" = yes; then :
20998 ac_cv_func_fork_works=cross
20999 else
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21002 $ac_includes_default
21004 main ()
21007 /* By Ruediger Kuhlmann. */
21008 return fork () < 0;
21011 return 0;
21013 _ACEOF
21014 if ac_fn_c_try_run "$LINENO"; then :
21015 ac_cv_func_fork_works=yes
21016 else
21017 ac_cv_func_fork_works=no
21019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21020 conftest.$ac_objext conftest.beam conftest.$ac_ext
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21025 $as_echo "$ac_cv_func_fork_works" >&6; }
21027 else
21028 ac_cv_func_fork_works=$ac_cv_func_fork
21030 if test "x$ac_cv_func_fork_works" = xcross; then
21031 case $host in
21032 *-*-amigaos* | *-*-msdosdjgpp*)
21033 # Override, as these systems have only a dummy fork() stub
21034 ac_cv_func_fork_works=no
21037 ac_cv_func_fork_works=yes
21039 esac
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21041 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21043 ac_cv_func_vfork_works=$ac_cv_func_vfork
21044 if test "x$ac_cv_func_vfork" = xyes; then
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21046 $as_echo_n "checking for working vfork... " >&6; }
21047 if ${ac_cv_func_vfork_works+:} false; then :
21048 $as_echo_n "(cached) " >&6
21049 else
21050 if test "$cross_compiling" = yes; then :
21051 ac_cv_func_vfork_works=cross
21052 else
21053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h. */
21055 /* Thanks to Paul Eggert for this test. */
21056 $ac_includes_default
21057 #include <sys/wait.h>
21058 #ifdef HAVE_VFORK_H
21059 # include <vfork.h>
21060 #endif
21061 /* On some sparc systems, changes by the child to local and incoming
21062 argument registers are propagated back to the parent. The compiler
21063 is told about this with #include <vfork.h>, but some compilers
21064 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21065 static variable whose address is put into a register that is
21066 clobbered by the vfork. */
21067 static void
21068 #ifdef __cplusplus
21069 sparc_address_test (int arg)
21070 # else
21071 sparc_address_test (arg) int arg;
21072 #endif
21074 static pid_t child;
21075 if (!child) {
21076 child = vfork ();
21077 if (child < 0) {
21078 perror ("vfork");
21079 _exit(2);
21081 if (!child) {
21082 arg = getpid();
21083 write(-1, "", 0);
21084 _exit (arg);
21090 main ()
21092 pid_t parent = getpid ();
21093 pid_t child;
21095 sparc_address_test (0);
21097 child = vfork ();
21099 if (child == 0) {
21100 /* Here is another test for sparc vfork register problems. This
21101 test uses lots of local variables, at least as many local
21102 variables as main has allocated so far including compiler
21103 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21104 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21105 reuse the register of parent for one of the local variables,
21106 since it will think that parent can't possibly be used any more
21107 in this routine. Assigning to the local variable will thus
21108 munge parent in the parent process. */
21109 pid_t
21110 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21111 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21112 /* Convince the compiler that p..p7 are live; otherwise, it might
21113 use the same hardware register for all 8 local variables. */
21114 if (p != p1 || p != p2 || p != p3 || p != p4
21115 || p != p5 || p != p6 || p != p7)
21116 _exit(1);
21118 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21119 from child file descriptors. If the child closes a descriptor
21120 before it execs or exits, this munges the parent's descriptor
21121 as well. Test for this by closing stdout in the child. */
21122 _exit(close(fileno(stdout)) != 0);
21123 } else {
21124 int status;
21125 struct stat st;
21127 while (wait(&status) != child)
21129 return (
21130 /* Was there some problem with vforking? */
21131 child < 0
21133 /* Did the child fail? (This shouldn't happen.) */
21134 || status
21136 /* Did the vfork/compiler bug occur? */
21137 || parent != getpid()
21139 /* Did the file descriptor bug occur? */
21140 || fstat(fileno(stdout), &st) != 0
21144 _ACEOF
21145 if ac_fn_c_try_run "$LINENO"; then :
21146 ac_cv_func_vfork_works=yes
21147 else
21148 ac_cv_func_vfork_works=no
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21151 conftest.$ac_objext conftest.beam conftest.$ac_ext
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21156 $as_echo "$ac_cv_func_vfork_works" >&6; }
21159 if test "x$ac_cv_func_fork_works" = xcross; then
21160 ac_cv_func_vfork_works=$ac_cv_func_vfork
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21162 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21165 if test "x$ac_cv_func_vfork_works" = xyes; then
21167 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21169 else
21171 $as_echo "#define vfork fork" >>confdefs.h
21174 if test "x$ac_cv_func_fork_works" = xyes; then
21176 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21180 for ac_func in strchr \
21181 memcpy \
21182 strtol \
21183 strtoul \
21184 select \
21185 poll \
21186 qsort \
21187 getuid \
21188 getpwuid \
21189 getpwnam \
21190 gettimeofday \
21191 tmpfile \
21192 uname \
21193 rename \
21194 read \
21195 signal \
21196 setjmp \
21197 chown \
21198 wait4 \
21199 waitpid \
21200 wait \
21201 srandom \
21202 popen \
21203 pclose \
21204 fsync \
21205 truncate \
21206 listen \
21207 wcwidth \
21208 mbstowcs \
21209 wcrtomb \
21210 putenv \
21211 setenv
21212 do :
21213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21216 cat >>confdefs.h <<_ACEOF
21217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21218 _ACEOF
21221 done
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21225 $as_echo_n "checking for library containing gethostname... " >&6; }
21226 if ${ac_cv_search_gethostname+:} false; then :
21227 $as_echo_n "(cached) " >&6
21228 else
21229 ac_func_search_save_LIBS=$LIBS
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21233 /* Override any GCC internal prototype to avoid an error.
21234 Use char because int might match the return type of a GCC
21235 builtin and then its argument prototype would still apply. */
21236 #ifdef __cplusplus
21237 extern "C"
21238 #endif
21239 char gethostname ();
21241 main ()
21243 return gethostname ();
21245 return 0;
21247 _ACEOF
21248 for ac_lib in '' nsl; do
21249 if test -z "$ac_lib"; then
21250 ac_res="none required"
21251 else
21252 ac_res=-l$ac_lib
21253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21255 if ac_fn_c_try_link "$LINENO"; then :
21256 ac_cv_search_gethostname=$ac_res
21258 rm -f core conftest.err conftest.$ac_objext \
21259 conftest$ac_exeext
21260 if ${ac_cv_search_gethostname+:} false; then :
21261 break
21263 done
21264 if ${ac_cv_search_gethostname+:} false; then :
21266 else
21267 ac_cv_search_gethostname=no
21269 rm conftest.$ac_ext
21270 LIBS=$ac_func_search_save_LIBS
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21273 $as_echo "$ac_cv_search_gethostname" >&6; }
21274 ac_res=$ac_cv_search_gethostname
21275 if test "$ac_res" != no; then :
21276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21282 $as_echo_n "checking for library containing socket... " >&6; }
21283 if ${ac_cv_search_socket+:} false; then :
21284 $as_echo_n "(cached) " >&6
21285 else
21286 ac_func_search_save_LIBS=$LIBS
21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* end confdefs.h. */
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char socket ();
21298 main ()
21300 return socket ();
21302 return 0;
21304 _ACEOF
21305 for ac_lib in '' socket; do
21306 if test -z "$ac_lib"; then
21307 ac_res="none required"
21308 else
21309 ac_res=-l$ac_lib
21310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21312 if ac_fn_c_try_link "$LINENO"; then :
21313 ac_cv_search_socket=$ac_res
21315 rm -f core conftest.err conftest.$ac_objext \
21316 conftest$ac_exeext
21317 if ${ac_cv_search_socket+:} false; then :
21318 break
21320 done
21321 if ${ac_cv_search_socket+:} false; then :
21323 else
21324 ac_cv_search_socket=no
21326 rm conftest.$ac_ext
21327 LIBS=$ac_func_search_save_LIBS
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21330 $as_echo "$ac_cv_search_socket" >&6; }
21331 ac_res=$ac_cv_search_socket
21332 if test "$ac_res" != no; then :
21333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21335 else
21337 WEB_BUILD=
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21343 $as_echo_n "checking for library containing bind... " >&6; }
21344 if ${ac_cv_search_bind+:} false; then :
21345 $as_echo_n "(cached) " >&6
21346 else
21347 ac_func_search_save_LIBS=$LIBS
21348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349 /* end confdefs.h. */
21351 /* Override any GCC internal prototype to avoid an error.
21352 Use char because int might match the return type of a GCC
21353 builtin and then its argument prototype would still apply. */
21354 #ifdef __cplusplus
21355 extern "C"
21356 #endif
21357 char bind ();
21359 main ()
21361 return bind ();
21363 return 0;
21365 _ACEOF
21366 for ac_lib in '' bind; do
21367 if test -z "$ac_lib"; then
21368 ac_res="none required"
21369 else
21370 ac_res=-l$ac_lib
21371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21373 if ac_fn_c_try_link "$LINENO"; then :
21374 ac_cv_search_bind=$ac_res
21376 rm -f core conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext
21378 if ${ac_cv_search_bind+:} false; then :
21379 break
21381 done
21382 if ${ac_cv_search_bind+:} false; then :
21384 else
21385 ac_cv_search_bind=no
21387 rm conftest.$ac_ext
21388 LIBS=$ac_func_search_save_LIBS
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21391 $as_echo "$ac_cv_search_bind" >&6; }
21392 ac_res=$ac_cv_search_bind
21393 if test "$ac_res" != no; then :
21394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21396 else
21398 WEB_BUILD=
21403 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21404 do :
21405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21408 cat >>confdefs.h <<_ACEOF
21409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21410 _ACEOF
21413 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21416 else
21418 for ac_func in sigset sigrelse
21419 do :
21420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21422 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21423 cat >>confdefs.h <<_ACEOF
21424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21425 _ACEOF
21428 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21432 done
21436 done
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21440 $as_echo_n "checking for library containing syslog... " >&6; }
21441 if ${ac_cv_search_syslog+:} false; then :
21442 $as_echo_n "(cached) " >&6
21443 else
21444 ac_func_search_save_LIBS=$LIBS
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h. */
21448 /* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21451 #ifdef __cplusplus
21452 extern "C"
21453 #endif
21454 char syslog ();
21456 main ()
21458 return syslog ();
21460 return 0;
21462 _ACEOF
21463 for ac_lib in '' bsd socket inet; do
21464 if test -z "$ac_lib"; then
21465 ac_res="none required"
21466 else
21467 ac_res=-l$ac_lib
21468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21470 if ac_fn_c_try_link "$LINENO"; then :
21471 ac_cv_search_syslog=$ac_res
21473 rm -f core conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext
21475 if ${ac_cv_search_syslog+:} false; then :
21476 break
21478 done
21479 if ${ac_cv_search_syslog+:} false; then :
21481 else
21482 ac_cv_search_syslog=no
21484 rm conftest.$ac_ext
21485 LIBS=$ac_func_search_save_LIBS
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21488 $as_echo "$ac_cv_search_syslog" >&6; }
21489 ac_res=$ac_cv_search_syslog
21490 if test "$ac_res" != no; then :
21491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21494 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21501 if test -n "$alpine_with_local_maildir" ; then
21502 alpine_local_maildir=$alpine_with_local_maildir
21503 elif test -d /var/spool/mail ; then
21504 alpine_local_maildir="/var/spool/mail"
21505 elif test -d /var/mail ; then
21506 alpine_local_maildir="/var/mail"
21507 else
21508 alpine_local_maildir="/usr/spool/mail"
21511 if test -n "$alpine_with_c_client_target" ; then
21512 alpine_c_client_target=$alpine_with_c_client_target
21516 cat >>confdefs.h <<_ACEOF
21517 #define SYSTYPE "$systype"
21518 _ACEOF
21521 cat >>confdefs.h <<_ACEOF
21522 #define C_FILESEP '$alpine_path_delim'
21523 _ACEOF
21526 cat >>confdefs.h <<_ACEOF
21527 #define S_FILESEP "$alpine_path_delim"
21528 _ACEOF
21531 cat >>confdefs.h <<_ACEOF
21532 #define MAILDIR "$alpine_local_maildir"
21533 _ACEOF
21536 cat >>confdefs.h <<_ACEOF
21537 #define MODE_READONLY $alpine_mode_readonly
21538 _ACEOF
21541 cat >>confdefs.h <<_ACEOF
21542 #define HTML_EXT "html"
21543 _ACEOF
21546 C_CLIENT_TARGET=$alpine_c_client_target
21548 C_CLIENT_WITH_IPV6=$c_client_ip6
21550 if test "x$alpine_SSLTYPE" = "xnone" ; then
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21552 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21553 c_client_specials="${c_client_specials}SSLTYPE=none "
21554 else
21556 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21557 certdir="$alpine_SSLCERTS"
21558 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21559 certdir="${alpine_SSLDIR}/certs"
21560 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21561 certdir="${alpine_SSLDIR}/ssl/certs"
21562 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21563 certdir="$alpine_SSLCERTS_ORIG"
21564 elif test -n "$alpine_SSLCERTS" ; then
21565 certdir="$alpine_SSLCERTS"
21566 else
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21568 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21571 if test "x$with_smime" != "xno" ; then
21572 if test -n "$certdir" ; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21574 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21576 $as_echo "#define SMIME /**/" >>confdefs.h
21579 cat >>confdefs.h <<_ACEOF
21580 #define SMIME_SSLCERTS "$certdir"
21581 _ACEOF
21587 SSL_CERT_LINK="no"
21588 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21589 SSL_BUNDLE_EXISTS="no"
21590 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21591 for SSL_BUNDLE in $SSL_PEM
21593 if test -f ${certdir}/${SSL_BUNDLE} ; then
21594 SSL_BUNDLE_EXISTS="yes"
21596 done
21597 else
21598 SSL_CERT_LINK="yes"
21601 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21603 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21605 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21607 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21609 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21612 if test -n "$alpine_SSLINCLUDE" ; then
21613 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21616 if test -n "$alpine_SSLLIB" ; then
21617 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21620 if test -n "$alpine_SSLDIR" ; then
21621 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21624 if test -n "$certdir" ; then
21625 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21628 if test -n "$alpine_SSLKEYS" ; then
21629 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21633 extra_auth_gss=
21634 if test "x$alpine_GSSTYPE" != "xnone" ; then
21635 extra_auth_gss=gss
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21637 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21640 extra_auth_ntlm=
21641 if test "x$alpine_NTLM" != "xnone" ; then
21642 extra_auth_ntlm=ntl
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21644 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21647 if test -n "$CPPFLAGS" ; then
21648 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21650 if test -n "$CFLAGS" ; then
21651 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21654 if test -n "$alpine_c_client_cflags" ; then
21655 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21659 if test -n "$LDFLAGS" ; then
21660 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21662 if test -n "$LIBS" ; then
21663 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21666 if test -n "$alpine_c_client_ldflags" ; then
21667 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21671 if test -n "$alpine_c_client_gccoptlevel" ; then
21672 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21676 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21677 C_CLIENT_AUTHS=$c_client_auths
21680 C_CLIENT_SPECIALS=$c_client_specials
21683 if test -z "$WEB_BUILD" ; then
21684 WEB_PUBCOOKIE_BUILD=
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21686 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21688 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21689 else
21690 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21691 if test "x$alpine_GSSTYPE" = "xnone" ; then
21692 WEB_PUBCOOKIE_BUILD=
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21694 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21696 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21697 elif test -z "$WEB_BINDIR" ; then
21698 WEB_PUBCOOKIE_BUILD=
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21700 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21701 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21702 Please re-run configure with these options:
21703 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21704 else
21706 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21708 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21709 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21725 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"
21727 cat >confcache <<\_ACEOF
21728 # This file is a shell script that caches the results of configure
21729 # tests run on this system so they can be shared between configure
21730 # scripts and configure runs, see configure's option --config-cache.
21731 # It is not useful on other systems. If it contains results you don't
21732 # want to keep, you may remove or edit it.
21734 # config.status only pays attention to the cache file if you give it
21735 # the --recheck option to rerun configure.
21737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21739 # following values.
21741 _ACEOF
21743 # The following way of writing the cache mishandles newlines in values,
21744 # but we know of no workaround that is simple, portable, and efficient.
21745 # So, we kill variables containing newlines.
21746 # Ultrix sh set writes to stderr and can't be redirected directly,
21747 # and sets the high bit in the cache file unless we assign to the vars.
21749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21750 eval ac_val=\$$ac_var
21751 case $ac_val in #(
21752 *${as_nl}*)
21753 case $ac_var in #(
21754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21756 esac
21757 case $ac_var in #(
21758 _ | IFS | as_nl) ;; #(
21759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21760 *) { eval $ac_var=; unset $ac_var;} ;;
21761 esac ;;
21762 esac
21763 done
21765 (set) 2>&1 |
21766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21767 *${as_nl}ac_space=\ *)
21768 # `set' does not quote correctly, so add quotes: double-quote
21769 # substitution turns \\\\ into \\, and sed turns \\ into \.
21770 sed -n \
21771 "s/'/'\\\\''/g;
21772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21773 ;; #(
21775 # `set' quotes correctly as required by POSIX, so do not add quotes.
21776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21778 esac |
21779 sort
21781 sed '
21782 /^ac_cv_env_/b end
21783 t clear
21784 :clear
21785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21786 t end
21787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21788 :end' >>confcache
21789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21790 if test -w "$cache_file"; then
21791 if test "x$cache_file" != "x/dev/null"; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21793 $as_echo "$as_me: updating cache $cache_file" >&6;}
21794 if test ! -f "$cache_file" || test -h "$cache_file"; then
21795 cat confcache >"$cache_file"
21796 else
21797 case $cache_file in #(
21798 */* | ?:*)
21799 mv -f confcache "$cache_file"$$ &&
21800 mv -f "$cache_file"$$ "$cache_file" ;; #(
21802 mv -f confcache "$cache_file" ;;
21803 esac
21806 else
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21811 rm -f confcache
21813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21814 # Let make expand exec_prefix.
21815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21817 DEFS=-DHAVE_CONFIG_H
21819 ac_libobjs=
21820 ac_ltlibobjs=
21822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21823 # 1. Remove the extension, and $U if already installed.
21824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21827 # will be set to the directory where LIBOBJS objects are built.
21828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21830 done
21831 LIBOBJS=$ac_libobjs
21833 LTLIBOBJS=$ac_ltlibobjs
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21837 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21838 if test -n "$am_sleep_pid"; then
21839 # Hide warnings about reused PIDs.
21840 wait $am_sleep_pid 2>/dev/null
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21843 $as_echo "done" >&6; }
21844 if test -n "$EXEEXT"; then
21845 am__EXEEXT_TRUE=
21846 am__EXEEXT_FALSE='#'
21847 else
21848 am__EXEEXT_TRUE='#'
21849 am__EXEEXT_FALSE=
21852 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21853 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21856 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21857 as_fn_error $? "conditional \"AMDEP\" was never defined.
21858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21860 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21861 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21865 : "${CONFIG_STATUS=./config.status}"
21866 ac_write_fail=0
21867 ac_clean_files_save=$ac_clean_files
21868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21871 as_write_fail=0
21872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21873 #! $SHELL
21874 # Generated by $as_me.
21875 # Run this file to recreate the current configuration.
21876 # Compiler output produced by configure, useful for debugging
21877 # configure, is in config.log if it exists.
21879 debug=false
21880 ac_cs_recheck=false
21881 ac_cs_silent=false
21883 SHELL=\${CONFIG_SHELL-$SHELL}
21884 export SHELL
21885 _ASEOF
21886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21887 ## -------------------- ##
21888 ## M4sh Initialization. ##
21889 ## -------------------- ##
21891 # Be more Bourne compatible
21892 DUALCASE=1; export DUALCASE # for MKS sh
21893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21894 emulate sh
21895 NULLCMD=:
21896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21897 # is contrary to our usage. Disable this feature.
21898 alias -g '${1+"$@"}'='"$@"'
21899 setopt NO_GLOB_SUBST
21900 else
21901 case `(set -o) 2>/dev/null` in #(
21902 *posix*) :
21903 set -o posix ;; #(
21904 *) :
21906 esac
21910 as_nl='
21912 export as_nl
21913 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21917 # Prefer a ksh shell builtin over an external printf program on Solaris,
21918 # but without wasting forks for bash or zsh.
21919 if test -z "$BASH_VERSION$ZSH_VERSION" \
21920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21921 as_echo='print -r --'
21922 as_echo_n='print -rn --'
21923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21924 as_echo='printf %s\n'
21925 as_echo_n='printf %s'
21926 else
21927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21929 as_echo_n='/usr/ucb/echo -n'
21930 else
21931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21932 as_echo_n_body='eval
21933 arg=$1;
21934 case $arg in #(
21935 *"$as_nl"*)
21936 expr "X$arg" : "X\\(.*\\)$as_nl";
21937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21938 esac;
21939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21941 export as_echo_n_body
21942 as_echo_n='sh -c $as_echo_n_body as_echo'
21944 export as_echo_body
21945 as_echo='sh -c $as_echo_body as_echo'
21948 # The user is always right.
21949 if test "${PATH_SEPARATOR+set}" != set; then
21950 PATH_SEPARATOR=:
21951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21953 PATH_SEPARATOR=';'
21958 # IFS
21959 # We need space, tab and new line, in precisely that order. Quoting is
21960 # there to prevent editors from complaining about space-tab.
21961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21962 # splitting by setting IFS to empty value.)
21963 IFS=" "" $as_nl"
21965 # Find who we are. Look in the path if we contain no directory separator.
21966 as_myself=
21967 case $0 in #((
21968 *[\\/]* ) as_myself=$0 ;;
21969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21970 for as_dir in $PATH
21972 IFS=$as_save_IFS
21973 test -z "$as_dir" && as_dir=.
21974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21975 done
21976 IFS=$as_save_IFS
21979 esac
21980 # We did not find ourselves, most probably we were run as `sh COMMAND'
21981 # in which case we are not to be found in the path.
21982 if test "x$as_myself" = x; then
21983 as_myself=$0
21985 if test ! -f "$as_myself"; then
21986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21987 exit 1
21990 # Unset variables that we do not need and which cause bugs (e.g. in
21991 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21992 # suppresses any "Segmentation fault" message there. '((' could
21993 # trigger a bug in pdksh 5.2.14.
21994 for as_var in BASH_ENV ENV MAIL MAILPATH
21995 do eval test x\${$as_var+set} = xset \
21996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21997 done
21998 PS1='$ '
21999 PS2='> '
22000 PS4='+ '
22002 # NLS nuisances.
22003 LC_ALL=C
22004 export LC_ALL
22005 LANGUAGE=C
22006 export LANGUAGE
22008 # CDPATH.
22009 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22012 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22013 # ----------------------------------------
22014 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22015 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22016 # script with STATUS, using 1 if that was 0.
22017 as_fn_error ()
22019 as_status=$1; test $as_status -eq 0 && as_status=1
22020 if test "$4"; then
22021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22024 $as_echo "$as_me: error: $2" >&2
22025 as_fn_exit $as_status
22026 } # as_fn_error
22029 # as_fn_set_status STATUS
22030 # -----------------------
22031 # Set $? to STATUS, without forking.
22032 as_fn_set_status ()
22034 return $1
22035 } # as_fn_set_status
22037 # as_fn_exit STATUS
22038 # -----------------
22039 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22040 as_fn_exit ()
22042 set +e
22043 as_fn_set_status $1
22044 exit $1
22045 } # as_fn_exit
22047 # as_fn_unset VAR
22048 # ---------------
22049 # Portably unset VAR.
22050 as_fn_unset ()
22052 { eval $1=; unset $1;}
22054 as_unset=as_fn_unset
22055 # as_fn_append VAR VALUE
22056 # ----------------------
22057 # Append the text in VALUE to the end of the definition contained in VAR. Take
22058 # advantage of any shell optimizations that allow amortized linear growth over
22059 # repeated appends, instead of the typical quadratic growth present in naive
22060 # implementations.
22061 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22062 eval 'as_fn_append ()
22064 eval $1+=\$2
22066 else
22067 as_fn_append ()
22069 eval $1=\$$1\$2
22071 fi # as_fn_append
22073 # as_fn_arith ARG...
22074 # ------------------
22075 # Perform arithmetic evaluation on the ARGs, and store the result in the
22076 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22077 # must be portable across $(()) and expr.
22078 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22079 eval 'as_fn_arith ()
22081 as_val=$(( $* ))
22083 else
22084 as_fn_arith ()
22086 as_val=`expr "$@" || test $? -eq 1`
22088 fi # as_fn_arith
22091 if expr a : '\(a\)' >/dev/null 2>&1 &&
22092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22093 as_expr=expr
22094 else
22095 as_expr=false
22098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22099 as_basename=basename
22100 else
22101 as_basename=false
22104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22105 as_dirname=dirname
22106 else
22107 as_dirname=false
22110 as_me=`$as_basename -- "$0" ||
22111 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22112 X"$0" : 'X\(//\)$' \| \
22113 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22114 $as_echo X/"$0" |
22115 sed '/^.*\/\([^/][^/]*\)\/*$/{
22116 s//\1/
22119 /^X\/\(\/\/\)$/{
22120 s//\1/
22123 /^X\/\(\/\).*/{
22124 s//\1/
22127 s/.*/./; q'`
22129 # Avoid depending upon Character Ranges.
22130 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22131 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22132 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22133 as_cr_digits='0123456789'
22134 as_cr_alnum=$as_cr_Letters$as_cr_digits
22136 ECHO_C= ECHO_N= ECHO_T=
22137 case `echo -n x` in #(((((
22138 -n*)
22139 case `echo 'xy\c'` in
22140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22141 xy) ECHO_C='\c';;
22142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22143 ECHO_T=' ';;
22144 esac;;
22146 ECHO_N='-n';;
22147 esac
22149 rm -f conf$$ conf$$.exe conf$$.file
22150 if test -d conf$$.dir; then
22151 rm -f conf$$.dir/conf$$.file
22152 else
22153 rm -f conf$$.dir
22154 mkdir conf$$.dir 2>/dev/null
22156 if (echo >conf$$.file) 2>/dev/null; then
22157 if ln -s conf$$.file conf$$ 2>/dev/null; then
22158 as_ln_s='ln -s'
22159 # ... but there are two gotchas:
22160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22162 # In both cases, we have to default to `cp -pR'.
22163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22164 as_ln_s='cp -pR'
22165 elif ln conf$$.file conf$$ 2>/dev/null; then
22166 as_ln_s=ln
22167 else
22168 as_ln_s='cp -pR'
22170 else
22171 as_ln_s='cp -pR'
22173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22174 rmdir conf$$.dir 2>/dev/null
22177 # as_fn_mkdir_p
22178 # -------------
22179 # Create "$as_dir" as a directory, including parents if necessary.
22180 as_fn_mkdir_p ()
22183 case $as_dir in #(
22184 -*) as_dir=./$as_dir;;
22185 esac
22186 test -d "$as_dir" || eval $as_mkdir_p || {
22187 as_dirs=
22188 while :; do
22189 case $as_dir in #(
22190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22191 *) as_qdir=$as_dir;;
22192 esac
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199 $as_echo X"$as_dir" |
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201 s//\1/
22204 /^X\(\/\/\)[^/].*/{
22205 s//\1/
22208 /^X\(\/\/\)$/{
22209 s//\1/
22212 /^X\(\/\).*/{
22213 s//\1/
22216 s/.*/./; q'`
22217 test -d "$as_dir" && break
22218 done
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22223 } # as_fn_mkdir_p
22224 if mkdir -p . 2>/dev/null; then
22225 as_mkdir_p='mkdir -p "$as_dir"'
22226 else
22227 test -d ./-p && rmdir ./-p
22228 as_mkdir_p=false
22232 # as_fn_executable_p FILE
22233 # -----------------------
22234 # Test if FILE is an executable regular file.
22235 as_fn_executable_p ()
22237 test -f "$1" && test -x "$1"
22238 } # as_fn_executable_p
22239 as_test_x='test -x'
22240 as_executable_p=as_fn_executable_p
22242 # Sed expression to map a string onto a valid CPP name.
22243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22245 # Sed expression to map a string onto a valid variable name.
22246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22249 exec 6>&1
22250 ## ----------------------------------- ##
22251 ## Main body of $CONFIG_STATUS script. ##
22252 ## ----------------------------------- ##
22253 _ASEOF
22254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257 # Save the log message, to keep $0 and so on meaningful, and to
22258 # report actual input values of CONFIG_FILES etc. instead of their
22259 # values after options handling.
22260 ac_log="
22261 This file was extended by alpine $as_me 2.23.2, which was
22262 generated by GNU Autoconf 2.69. Invocation command line was
22264 CONFIG_FILES = $CONFIG_FILES
22265 CONFIG_HEADERS = $CONFIG_HEADERS
22266 CONFIG_LINKS = $CONFIG_LINKS
22267 CONFIG_COMMANDS = $CONFIG_COMMANDS
22268 $ $0 $@
22270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22273 _ACEOF
22275 case $ac_config_files in *"
22276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22277 esac
22279 case $ac_config_headers in *"
22280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22281 esac
22284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22285 # Files that config.status was made for.
22286 config_files="$ac_config_files"
22287 config_headers="$ac_config_headers"
22288 config_commands="$ac_config_commands"
22290 _ACEOF
22292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22293 ac_cs_usage="\
22294 \`$as_me' instantiates files and other configuration actions
22295 from templates according to the current configuration. Unless the files
22296 and actions are specified as TAGs, all are instantiated by default.
22298 Usage: $0 [OPTION]... [TAG]...
22300 -h, --help print this help, then exit
22301 -V, --version print version number and configuration settings, then exit
22302 --config print configuration, then exit
22303 -q, --quiet, --silent
22304 do not print progress messages
22305 -d, --debug don't remove temporary files
22306 --recheck update $as_me by reconfiguring in the same conditions
22307 --file=FILE[:TEMPLATE]
22308 instantiate the configuration file FILE
22309 --header=FILE[:TEMPLATE]
22310 instantiate the configuration header FILE
22312 Configuration files:
22313 $config_files
22315 Configuration headers:
22316 $config_headers
22318 Configuration commands:
22319 $config_commands
22321 Report bugs to <chappa@washington.edu>."
22323 _ACEOF
22324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22325 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22326 ac_cs_version="\\
22327 alpine config.status 2.23.2
22328 configured by $0, generated by GNU Autoconf 2.69,
22329 with options \\"\$ac_cs_config\\"
22331 Copyright (C) 2012 Free Software Foundation, Inc.
22332 This config.status script is free software; the Free Software Foundation
22333 gives unlimited permission to copy, distribute and modify it."
22335 ac_pwd='$ac_pwd'
22336 srcdir='$srcdir'
22337 INSTALL='$INSTALL'
22338 MKDIR_P='$MKDIR_P'
22339 AWK='$AWK'
22340 test -n "\$AWK" || AWK=awk
22341 _ACEOF
22343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22344 # The default lists apply if the user does not specify any file.
22345 ac_need_defaults=:
22346 while test $# != 0
22348 case $1 in
22349 --*=?*)
22350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22352 ac_shift=:
22354 --*=)
22355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22356 ac_optarg=
22357 ac_shift=:
22360 ac_option=$1
22361 ac_optarg=$2
22362 ac_shift=shift
22364 esac
22366 case $ac_option in
22367 # Handling of the options.
22368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22369 ac_cs_recheck=: ;;
22370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22371 $as_echo "$ac_cs_version"; exit ;;
22372 --config | --confi | --conf | --con | --co | --c )
22373 $as_echo "$ac_cs_config"; exit ;;
22374 --debug | --debu | --deb | --de | --d | -d )
22375 debug=: ;;
22376 --file | --fil | --fi | --f )
22377 $ac_shift
22378 case $ac_optarg in
22379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22380 '') as_fn_error $? "missing file argument" ;;
22381 esac
22382 as_fn_append CONFIG_FILES " '$ac_optarg'"
22383 ac_need_defaults=false;;
22384 --header | --heade | --head | --hea )
22385 $ac_shift
22386 case $ac_optarg in
22387 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22388 esac
22389 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22390 ac_need_defaults=false;;
22391 --he | --h)
22392 # Conflict between --help and --header
22393 as_fn_error $? "ambiguous option: \`$1'
22394 Try \`$0 --help' for more information.";;
22395 --help | --hel | -h )
22396 $as_echo "$ac_cs_usage"; exit ;;
22397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22399 ac_cs_silent=: ;;
22401 # This is an error.
22402 -*) as_fn_error $? "unrecognized option: \`$1'
22403 Try \`$0 --help' for more information." ;;
22405 *) as_fn_append ac_config_targets " $1"
22406 ac_need_defaults=false ;;
22408 esac
22409 shift
22410 done
22412 ac_configure_extra_args=
22414 if $ac_cs_silent; then
22415 exec 6>/dev/null
22416 ac_configure_extra_args="$ac_configure_extra_args --silent"
22419 _ACEOF
22420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22421 if \$ac_cs_recheck; then
22422 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22423 shift
22424 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22425 CONFIG_SHELL='$SHELL'
22426 export CONFIG_SHELL
22427 exec "\$@"
22430 _ACEOF
22431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22432 exec 5>>config.log
22434 echo
22435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22436 ## Running $as_me. ##
22437 _ASBOX
22438 $as_echo "$ac_log"
22439 } >&5
22441 _ACEOF
22442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22444 # INIT-COMMANDS
22446 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22449 # The HP-UX ksh and POSIX shell print the target directory to stdout
22450 # if CDPATH is set.
22451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22453 sed_quote_subst='$sed_quote_subst'
22454 double_quote_subst='$double_quote_subst'
22455 delay_variable_subst='$delay_variable_subst'
22456 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22457 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22458 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22459 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22460 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22461 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22462 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22463 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22464 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22465 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22466 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22467 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22468 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22469 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22470 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22471 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22472 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22473 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22474 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22475 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22476 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22477 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22478 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22479 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22480 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22481 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22482 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22483 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22484 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22485 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22486 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22487 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22498 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22499 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22512 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22513 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22514 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"`'
22515 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22516 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22517 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22518 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22519 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22520 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22521 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22522 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22523 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22524 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22525 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22526 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22527 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22528 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22529 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22530 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22531 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22532 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22533 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22534 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22535 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22536 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22537 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22538 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22539 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22540 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22541 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22542 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22543 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22544 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22545 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22546 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22547 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22548 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22549 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22550 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22551 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22552 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22553 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22554 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22555 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22556 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22557 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22558 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22559 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22560 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22561 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22562 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22563 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22564 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22565 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22566 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22567 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22568 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22569 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22570 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22571 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22572 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22573 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22574 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22575 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22576 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22577 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22578 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22579 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22580 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22581 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22582 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22583 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22584 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22585 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22586 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22587 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22588 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22589 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22590 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22592 LTCC='$LTCC'
22593 LTCFLAGS='$LTCFLAGS'
22594 compiler='$compiler_DEFAULT'
22596 # A function that is used when there is no print builtin or printf.
22597 func_fallback_echo ()
22599 eval 'cat <<_LTECHO_EOF
22601 _LTECHO_EOF'
22604 # Quote evaled strings.
22605 for var in SHELL \
22606 ECHO \
22607 PATH_SEPARATOR \
22608 SED \
22609 GREP \
22610 EGREP \
22611 FGREP \
22612 LD \
22613 NM \
22614 LN_S \
22615 lt_SP2NL \
22616 lt_NL2SP \
22617 reload_flag \
22618 OBJDUMP \
22619 deplibs_check_method \
22620 file_magic_cmd \
22621 file_magic_glob \
22622 want_nocaseglob \
22623 DLLTOOL \
22624 sharedlib_from_linklib_cmd \
22625 AR \
22626 AR_FLAGS \
22627 archiver_list_spec \
22628 STRIP \
22629 RANLIB \
22630 CC \
22631 CFLAGS \
22632 compiler \
22633 lt_cv_sys_global_symbol_pipe \
22634 lt_cv_sys_global_symbol_to_cdecl \
22635 lt_cv_sys_global_symbol_to_import \
22636 lt_cv_sys_global_symbol_to_c_name_address \
22637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22638 lt_cv_nm_interface \
22639 nm_file_list_spec \
22640 lt_cv_truncate_bin \
22641 lt_prog_compiler_no_builtin_flag \
22642 lt_prog_compiler_pic \
22643 lt_prog_compiler_wl \
22644 lt_prog_compiler_static \
22645 lt_cv_prog_compiler_c_o \
22646 need_locks \
22647 MANIFEST_TOOL \
22648 DSYMUTIL \
22649 NMEDIT \
22650 LIPO \
22651 OTOOL \
22652 OTOOL64 \
22653 shrext_cmds \
22654 export_dynamic_flag_spec \
22655 whole_archive_flag_spec \
22656 compiler_needs_object \
22657 with_gnu_ld \
22658 allow_undefined_flag \
22659 no_undefined_flag \
22660 hardcode_libdir_flag_spec \
22661 hardcode_libdir_separator \
22662 exclude_expsyms \
22663 include_expsyms \
22664 file_list_spec \
22665 variables_saved_for_relink \
22666 libname_spec \
22667 library_names_spec \
22668 soname_spec \
22669 install_override_mode \
22670 finish_eval \
22671 old_striplib \
22672 striplib; do
22673 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22674 *[\\\\\\\`\\"\\\$]*)
22675 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22678 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22680 esac
22681 done
22683 # Double-quote double-evaled strings.
22684 for var in reload_cmds \
22685 old_postinstall_cmds \
22686 old_postuninstall_cmds \
22687 old_archive_cmds \
22688 extract_expsyms_cmds \
22689 old_archive_from_new_cmds \
22690 old_archive_from_expsyms_cmds \
22691 archive_cmds \
22692 archive_expsym_cmds \
22693 module_cmds \
22694 module_expsym_cmds \
22695 export_symbols_cmds \
22696 prelink_cmds \
22697 postlink_cmds \
22698 postinstall_cmds \
22699 postuninstall_cmds \
22700 finish_cmds \
22701 sys_lib_search_path_spec \
22702 configure_time_dlsearch_path \
22703 configure_time_lt_sys_library_path; do
22704 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22705 *[\\\\\\\`\\"\\\$]*)
22706 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22709 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22711 esac
22712 done
22714 ac_aux_dir='$ac_aux_dir'
22716 # See if we are running on zsh, and set the options that allow our
22717 # commands through without removal of \ escapes INIT.
22718 if test -n "\${ZSH_VERSION+set}"; then
22719 setopt NO_GLOB_SUBST
22723 PACKAGE='$PACKAGE'
22724 VERSION='$VERSION'
22725 RM='$RM'
22726 ofile='$ofile'
22730 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22731 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22732 # from automake < 1.5.
22733 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22734 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22735 LINGUAS="${LINGUAS-%UNSET%}"
22738 _ACEOF
22740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22742 # Handling of arguments.
22743 for ac_config_target in $ac_config_targets
22745 case $ac_config_target in
22746 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22748 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22749 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22750 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22751 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22752 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22753 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22754 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22755 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22756 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22757 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22758 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22759 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22760 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22761 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22762 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22765 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22766 esac
22767 done
22770 # If the user did not use the arguments to specify the items to instantiate,
22771 # then the envvar interface is used. Set only those that are not.
22772 # We use the long form for the default assignment because of an extremely
22773 # bizarre bug on SunOS 4.1.3.
22774 if $ac_need_defaults; then
22775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22780 # Have a temporary directory for convenience. Make it in the build tree
22781 # simply because there is no reason against having it here, and in addition,
22782 # creating and moving files from /tmp can sometimes cause problems.
22783 # Hook for its removal unless debugging.
22784 # Note that there is a small window in which the directory will not be cleaned:
22785 # after its creation but before its name has been assigned to `$tmp'.
22786 $debug ||
22788 tmp= ac_tmp=
22789 trap 'exit_status=$?
22790 : "${ac_tmp:=$tmp}"
22791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22793 trap 'as_fn_exit 1' 1 2 13 15
22795 # Create a (secure) tmp directory for tmp files.
22798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22799 test -d "$tmp"
22800 } ||
22802 tmp=./conf$$-$RANDOM
22803 (umask 077 && mkdir "$tmp")
22804 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22805 ac_tmp=$tmp
22807 # Set up the scripts for CONFIG_FILES section.
22808 # No need to generate them if there are no CONFIG_FILES.
22809 # This happens for instance with `./config.status config.h'.
22810 if test -n "$CONFIG_FILES"; then
22813 ac_cr=`echo X | tr X '\015'`
22814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22815 # But we know of no other shell where ac_cr would be empty at this
22816 # point, so we can use a bashism as a fallback.
22817 if test "x$ac_cr" = x; then
22818 eval ac_cr=\$\'\\r\'
22820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22822 ac_cs_awk_cr='\\r'
22823 else
22824 ac_cs_awk_cr=$ac_cr
22827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22828 _ACEOF
22832 echo "cat >conf$$subs.awk <<_ACEOF" &&
22833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22834 echo "_ACEOF"
22835 } >conf$$subs.sh ||
22836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22838 ac_delim='%!_!# '
22839 for ac_last_try in false false false false false :; do
22840 . ./conf$$subs.sh ||
22841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22844 if test $ac_delim_n = $ac_delim_num; then
22845 break
22846 elif $ac_last_try; then
22847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22848 else
22849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22851 done
22852 rm -f conf$$subs.sh
22854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22855 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22856 _ACEOF
22857 sed -n '
22859 s/^/S["/; s/!.*/"]=/
22862 s/^[^!]*!//
22863 :repl
22864 t repl
22865 s/'"$ac_delim"'$//
22866 t delim
22869 s/\(.\{148\}\)..*/\1/
22870 t more1
22871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22874 b repl
22875 :more1
22876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22879 s/.\{148\}//
22880 t nl
22881 :delim
22883 s/\(.\{148\}\)..*/\1/
22884 t more2
22885 s/["\\]/\\&/g; s/^/"/; s/$/"/
22888 :more2
22889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22892 s/.\{148\}//
22893 t delim
22894 ' <conf$$subs.awk | sed '
22895 /^[^""]/{
22897 s/\n//
22899 ' >>$CONFIG_STATUS || ac_write_fail=1
22900 rm -f conf$$subs.awk
22901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22902 _ACAWK
22903 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22904 for (key in S) S_is_set[key] = 1
22905 FS = "\a"
22909 line = $ 0
22910 nfields = split(line, field, "@")
22911 substed = 0
22912 len = length(field[1])
22913 for (i = 2; i < nfields; i++) {
22914 key = field[i]
22915 keylen = length(key)
22916 if (S_is_set[key]) {
22917 value = S[key]
22918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22919 len += length(value) + length(field[++i])
22920 substed = 1
22921 } else
22922 len += 1 + keylen
22925 print line
22928 _ACAWK
22929 _ACEOF
22930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22933 else
22935 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22937 _ACEOF
22939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22941 # trailing colons and then remove the whole line if VPATH becomes empty
22942 # (actually we leave an empty line to preserve line numbers).
22943 if test "x$srcdir" = x.; then
22944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22946 s///
22947 s/^/:/
22948 s/[ ]*$/:/
22949 s/:\$(srcdir):/:/g
22950 s/:\${srcdir}:/:/g
22951 s/:@srcdir@:/:/g
22952 s/^:*//
22953 s/:*$//
22955 s/\(=[ ]*\).*/\1/
22957 s/\n//
22958 s/^[^=]*=[ ]*$//
22962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22963 fi # test -n "$CONFIG_FILES"
22965 # Set up the scripts for CONFIG_HEADERS section.
22966 # No need to generate them if there are no CONFIG_HEADERS.
22967 # This happens for instance with `./config.status Makefile'.
22968 if test -n "$CONFIG_HEADERS"; then
22969 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22970 BEGIN {
22971 _ACEOF
22973 # Transform confdefs.h into an awk script `defines.awk', embedded as
22974 # here-document in config.status, that substitutes the proper values into
22975 # config.h.in to produce config.h.
22977 # Create a delimiter string that does not exist in confdefs.h, to ease
22978 # handling of long lines.
22979 ac_delim='%!_!# '
22980 for ac_last_try in false false :; do
22981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22982 if test -z "$ac_tt"; then
22983 break
22984 elif $ac_last_try; then
22985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22986 else
22987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22989 done
22991 # For the awk script, D is an array of macro values keyed by name,
22992 # likewise P contains macro parameters if any. Preserve backslash
22993 # newline sequences.
22995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22996 sed -n '
22997 s/.\{148\}/&'"$ac_delim"'/g
22998 t rset
22999 :rset
23000 s/^[ ]*#[ ]*define[ ][ ]*/ /
23001 t def
23003 :def
23004 s/\\$//
23005 t bsnl
23006 s/["\\]/\\&/g
23007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23008 D["\1"]=" \3"/p
23009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23011 :bsnl
23012 s/["\\]/\\&/g
23013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23014 D["\1"]=" \3\\\\\\n"\\/p
23015 t cont
23016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23017 t cont
23019 :cont
23021 s/.\{148\}/&'"$ac_delim"'/g
23022 t clear
23023 :clear
23024 s/\\$//
23025 t bsnlc
23026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23028 :bsnlc
23029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23030 b cont
23031 ' <confdefs.h | sed '
23032 s/'"$ac_delim"'/"\\\
23033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23036 for (key in D) D_is_set[key] = 1
23037 FS = "\a"
23039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23040 line = \$ 0
23041 split(line, arg, " ")
23042 if (arg[1] == "#") {
23043 defundef = arg[2]
23044 mac1 = arg[3]
23045 } else {
23046 defundef = substr(arg[1], 2)
23047 mac1 = arg[2]
23049 split(mac1, mac2, "(") #)
23050 macro = mac2[1]
23051 prefix = substr(line, 1, index(line, defundef) - 1)
23052 if (D_is_set[macro]) {
23053 # Preserve the white space surrounding the "#".
23054 print prefix "define", macro P[macro] D[macro]
23055 next
23056 } else {
23057 # Replace #undef with comments. This is necessary, for example,
23058 # in the case of _POSIX_SOURCE, which is predefined and required
23059 # on some systems where configure will not decide to define it.
23060 if (defundef == "undef") {
23061 print "/*", prefix defundef, macro, "*/"
23062 next
23066 { print }
23067 _ACAWK
23068 _ACEOF
23069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23071 fi # test -n "$CONFIG_HEADERS"
23074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23075 shift
23076 for ac_tag
23078 case $ac_tag in
23079 :[FHLC]) ac_mode=$ac_tag; continue;;
23080 esac
23081 case $ac_mode$ac_tag in
23082 :[FHL]*:*);;
23083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23084 :[FH]-) ac_tag=-:-;;
23085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23086 esac
23087 ac_save_IFS=$IFS
23088 IFS=:
23089 set x $ac_tag
23090 IFS=$ac_save_IFS
23091 shift
23092 ac_file=$1
23093 shift
23095 case $ac_mode in
23096 :L) ac_source=$1;;
23097 :[FH])
23098 ac_file_inputs=
23099 for ac_f
23101 case $ac_f in
23102 -) ac_f="$ac_tmp/stdin";;
23103 *) # Look for the file first in the build tree, then in the source tree
23104 # (if the path is not absolute). The absolute path cannot be DOS-style,
23105 # because $ac_f cannot contain `:'.
23106 test -f "$ac_f" ||
23107 case $ac_f in
23108 [\\/$]*) false;;
23109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23110 esac ||
23111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23112 esac
23113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23114 as_fn_append ac_file_inputs " '$ac_f'"
23115 done
23117 # Let's still pretend it is `configure' which instantiates (i.e., don't
23118 # use $as_me), people would be surprised to read:
23119 # /* config.h. Generated by config.status. */
23120 configure_input='Generated from '`
23121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23122 `' by configure.'
23123 if test x"$ac_file" != x-; then
23124 configure_input="$ac_file. $configure_input"
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23126 $as_echo "$as_me: creating $ac_file" >&6;}
23128 # Neutralize special characters interpreted by sed in replacement strings.
23129 case $configure_input in #(
23130 *\&* | *\|* | *\\* )
23131 ac_sed_conf_input=`$as_echo "$configure_input" |
23132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23133 *) ac_sed_conf_input=$configure_input;;
23134 esac
23136 case $ac_tag in
23137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23139 esac
23141 esac
23143 ac_dir=`$as_dirname -- "$ac_file" ||
23144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23145 X"$ac_file" : 'X\(//\)[^/]' \| \
23146 X"$ac_file" : 'X\(//\)$' \| \
23147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23148 $as_echo X"$ac_file" |
23149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23150 s//\1/
23153 /^X\(\/\/\)[^/].*/{
23154 s//\1/
23157 /^X\(\/\/\)$/{
23158 s//\1/
23161 /^X\(\/\).*/{
23162 s//\1/
23165 s/.*/./; q'`
23166 as_dir="$ac_dir"; as_fn_mkdir_p
23167 ac_builddir=.
23169 case "$ac_dir" in
23170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23173 # A ".." for each directory in $ac_dir_suffix.
23174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23175 case $ac_top_builddir_sub in
23176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23178 esac ;;
23179 esac
23180 ac_abs_top_builddir=$ac_pwd
23181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23182 # for backward compatibility:
23183 ac_top_builddir=$ac_top_build_prefix
23185 case $srcdir in
23186 .) # We are building in place.
23187 ac_srcdir=.
23188 ac_top_srcdir=$ac_top_builddir_sub
23189 ac_abs_top_srcdir=$ac_pwd ;;
23190 [\\/]* | ?:[\\/]* ) # Absolute name.
23191 ac_srcdir=$srcdir$ac_dir_suffix;
23192 ac_top_srcdir=$srcdir
23193 ac_abs_top_srcdir=$srcdir ;;
23194 *) # Relative name.
23195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23196 ac_top_srcdir=$ac_top_build_prefix$srcdir
23197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23198 esac
23199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23202 case $ac_mode in
23205 # CONFIG_FILE
23208 case $INSTALL in
23209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23211 esac
23212 ac_MKDIR_P=$MKDIR_P
23213 case $MKDIR_P in
23214 [\\/$]* | ?:[\\/]* ) ;;
23215 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23216 esac
23217 _ACEOF
23219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23220 # If the template does not know about datarootdir, expand it.
23221 # FIXME: This hack should be removed a few years after 2.60.
23222 ac_datarootdir_hack=; ac_datarootdir_seen=
23223 ac_sed_dataroot='
23224 /datarootdir/ {
23228 /@datadir@/p
23229 /@docdir@/p
23230 /@infodir@/p
23231 /@localedir@/p
23232 /@mandir@/p'
23233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23234 *datarootdir*) ac_datarootdir_seen=yes;;
23235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23237 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23238 _ACEOF
23239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23240 ac_datarootdir_hack='
23241 s&@datadir@&$datadir&g
23242 s&@docdir@&$docdir&g
23243 s&@infodir@&$infodir&g
23244 s&@localedir@&$localedir&g
23245 s&@mandir@&$mandir&g
23246 s&\\\${datarootdir}&$datarootdir&g' ;;
23247 esac
23248 _ACEOF
23250 # Neutralize VPATH when `$srcdir' = `.'.
23251 # Shell code in configure.ac might set extrasub.
23252 # FIXME: do we really want to maintain this feature?
23253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23254 ac_sed_extra="$ac_vpsub
23255 $extrasub
23256 _ACEOF
23257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23260 s|@configure_input@|$ac_sed_conf_input|;t t
23261 s&@top_builddir@&$ac_top_builddir_sub&;t t
23262 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23263 s&@srcdir@&$ac_srcdir&;t t
23264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23265 s&@top_srcdir@&$ac_top_srcdir&;t t
23266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23267 s&@builddir@&$ac_builddir&;t t
23268 s&@abs_builddir@&$ac_abs_builddir&;t t
23269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23270 s&@INSTALL@&$ac_INSTALL&;t t
23271 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23272 $ac_datarootdir_hack
23274 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23277 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23280 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23282 which seems to be undefined. Please make sure it is defined" >&5
23283 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23284 which seems to be undefined. Please make sure it is defined" >&2;}
23286 rm -f "$ac_tmp/stdin"
23287 case $ac_file in
23288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23290 esac \
23291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23295 # CONFIG_HEADER
23297 if test x"$ac_file" != x-; then
23299 $as_echo "/* $configure_input */" \
23300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23301 } >"$ac_tmp/config.h" \
23302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23305 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23306 else
23307 rm -f "$ac_file"
23308 mv "$ac_tmp/config.h" "$ac_file" \
23309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23311 else
23312 $as_echo "/* $configure_input */" \
23313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23314 || as_fn_error $? "could not create -" "$LINENO" 5
23316 # Compute "$ac_file"'s index in $config_headers.
23317 _am_arg="$ac_file"
23318 _am_stamp_count=1
23319 for _am_header in $config_headers :; do
23320 case $_am_header in
23321 $_am_arg | $_am_arg:* )
23322 break ;;
23324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23325 esac
23326 done
23327 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23328 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$_am_arg" : 'X\(//\)[^/]' \| \
23330 X"$_am_arg" : 'X\(//\)$' \| \
23331 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23332 $as_echo X"$_am_arg" |
23333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23334 s//\1/
23337 /^X\(\/\/\)[^/].*/{
23338 s//\1/
23341 /^X\(\/\/\)$/{
23342 s//\1/
23345 /^X\(\/\).*/{
23346 s//\1/
23349 s/.*/./; q'`/stamp-h$_am_stamp_count
23352 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23353 $as_echo "$as_me: executing $ac_file commands" >&6;}
23355 esac
23358 case $ac_file$ac_mode in
23359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23360 # Older Autoconf quotes --file arguments for eval, but not when files
23361 # are listed without --file. Let's play safe and only enable the eval
23362 # if we detect the quoting.
23363 case $CONFIG_FILES in
23364 *\'*) eval set x "$CONFIG_FILES" ;;
23365 *) set x $CONFIG_FILES ;;
23366 esac
23367 shift
23368 for mf
23370 # Strip MF so we end up with the name of the file.
23371 mf=`echo "$mf" | sed -e 's/:.*$//'`
23372 # Check whether this is an Automake generated Makefile or not.
23373 # We used to match only the files named 'Makefile.in', but
23374 # some people rename them; so instead we look at the file content.
23375 # Grep'ing the first line is not enough: some people post-process
23376 # each Makefile.in and add a new line on top of each file to say so.
23377 # Grep'ing the whole file is not good either: AIX grep has a line
23378 # limit of 2048, but all sed's we know have understand at least 4000.
23379 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23380 dirpart=`$as_dirname -- "$mf" ||
23381 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382 X"$mf" : 'X\(//\)[^/]' \| \
23383 X"$mf" : 'X\(//\)$' \| \
23384 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23385 $as_echo X"$mf" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23387 s//\1/
23390 /^X\(\/\/\)[^/].*/{
23391 s//\1/
23394 /^X\(\/\/\)$/{
23395 s//\1/
23398 /^X\(\/\).*/{
23399 s//\1/
23402 s/.*/./; q'`
23403 else
23404 continue
23406 # Extract the definition of DEPDIR, am__include, and am__quote
23407 # from the Makefile without running 'make'.
23408 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23409 test -z "$DEPDIR" && continue
23410 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23411 test -z "$am__include" && continue
23412 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23413 # Find all dependency output files, they are included files with
23414 # $(DEPDIR) in their names. We invoke sed twice because it is the
23415 # simplest approach to changing $(DEPDIR) to its actual value in the
23416 # expansion.
23417 for file in `sed -n "
23418 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23419 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23420 # Make sure the directory exists.
23421 test -f "$dirpart/$file" && continue
23422 fdir=`$as_dirname -- "$file" ||
23423 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23424 X"$file" : 'X\(//\)[^/]' \| \
23425 X"$file" : 'X\(//\)$' \| \
23426 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23427 $as_echo X"$file" |
23428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23429 s//\1/
23432 /^X\(\/\/\)[^/].*/{
23433 s//\1/
23436 /^X\(\/\/\)$/{
23437 s//\1/
23440 /^X\(\/\).*/{
23441 s//\1/
23444 s/.*/./; q'`
23445 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23446 # echo "creating $dirpart/$file"
23447 echo '# dummy' > "$dirpart/$file"
23448 done
23449 done
23452 "libtool":C)
23454 # See if we are running on zsh, and set the options that allow our
23455 # commands through without removal of \ escapes.
23456 if test -n "${ZSH_VERSION+set}"; then
23457 setopt NO_GLOB_SUBST
23460 cfgfile=${ofile}T
23461 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23462 $RM "$cfgfile"
23464 cat <<_LT_EOF >> "$cfgfile"
23465 #! $SHELL
23466 # Generated automatically by $as_me ($PACKAGE) $VERSION
23467 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23469 # Provide generalized library-building support services.
23470 # Written by Gordon Matzigkeit, 1996
23472 # Copyright (C) 2014 Free Software Foundation, Inc.
23473 # This is free software; see the source for copying conditions. There is NO
23474 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23476 # GNU Libtool is free software; you can redistribute it and/or modify
23477 # it under the terms of the GNU General Public License as published by
23478 # the Free Software Foundation; either version 2 of of the License, or
23479 # (at your option) any later version.
23481 # As a special exception to the GNU General Public License, if you
23482 # distribute this file as part of a program or library that is built
23483 # using GNU Libtool, you may include this file under the same
23484 # distribution terms that you use for the rest of that program.
23486 # GNU Libtool is distributed in the hope that it will be useful, but
23487 # WITHOUT ANY WARRANTY; without even the implied warranty of
23488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23489 # GNU General Public License for more details.
23491 # You should have received a copy of the GNU General Public License
23492 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23495 # The names of the tagged configurations supported by this script.
23496 available_tags=''
23498 # Configured defaults for sys_lib_dlsearch_path munging.
23499 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23501 # ### BEGIN LIBTOOL CONFIG
23503 # Which release of libtool.m4 was used?
23504 macro_version=$macro_version
23505 macro_revision=$macro_revision
23507 # Whether or not to build shared libraries.
23508 build_libtool_libs=$enable_shared
23510 # Whether or not to build static libraries.
23511 build_old_libs=$enable_static
23513 # What type of objects to build.
23514 pic_mode=$pic_mode
23516 # Whether or not to optimize for fast installation.
23517 fast_install=$enable_fast_install
23519 # Shared archive member basename,for filename based shared library versioning on AIX.
23520 shared_archive_member_spec=$shared_archive_member_spec
23522 # Shell to use when invoking shell scripts.
23523 SHELL=$lt_SHELL
23525 # An echo program that protects backslashes.
23526 ECHO=$lt_ECHO
23528 # The PATH separator for the build system.
23529 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23531 # The host system.
23532 host_alias=$host_alias
23533 host=$host
23534 host_os=$host_os
23536 # The build system.
23537 build_alias=$build_alias
23538 build=$build
23539 build_os=$build_os
23541 # A sed program that does not truncate output.
23542 SED=$lt_SED
23544 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23545 Xsed="\$SED -e 1s/^X//"
23547 # A grep program that handles long lines.
23548 GREP=$lt_GREP
23550 # An ERE matcher.
23551 EGREP=$lt_EGREP
23553 # A literal string matcher.
23554 FGREP=$lt_FGREP
23556 # A BSD- or MS-compatible name lister.
23557 NM=$lt_NM
23559 # Whether we need soft or hard links.
23560 LN_S=$lt_LN_S
23562 # What is the maximum length of a command?
23563 max_cmd_len=$max_cmd_len
23565 # Object file suffix (normally "o").
23566 objext=$ac_objext
23568 # Executable file suffix (normally "").
23569 exeext=$exeext
23571 # whether the shell understands "unset".
23572 lt_unset=$lt_unset
23574 # turn spaces into newlines.
23575 SP2NL=$lt_lt_SP2NL
23577 # turn newlines into spaces.
23578 NL2SP=$lt_lt_NL2SP
23580 # convert \$build file names to \$host format.
23581 to_host_file_cmd=$lt_cv_to_host_file_cmd
23583 # convert \$build files to toolchain format.
23584 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23586 # An object symbol dumper.
23587 OBJDUMP=$lt_OBJDUMP
23589 # Method to check whether dependent libraries are shared objects.
23590 deplibs_check_method=$lt_deplibs_check_method
23592 # Command to use when deplibs_check_method = "file_magic".
23593 file_magic_cmd=$lt_file_magic_cmd
23595 # How to find potential files when deplibs_check_method = "file_magic".
23596 file_magic_glob=$lt_file_magic_glob
23598 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23599 want_nocaseglob=$lt_want_nocaseglob
23601 # DLL creation program.
23602 DLLTOOL=$lt_DLLTOOL
23604 # Command to associate shared and link libraries.
23605 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23607 # The archiver.
23608 AR=$lt_AR
23610 # Flags to create an archive.
23611 AR_FLAGS=$lt_AR_FLAGS
23613 # How to feed a file listing to the archiver.
23614 archiver_list_spec=$lt_archiver_list_spec
23616 # A symbol stripping program.
23617 STRIP=$lt_STRIP
23619 # Commands used to install an old-style archive.
23620 RANLIB=$lt_RANLIB
23621 old_postinstall_cmds=$lt_old_postinstall_cmds
23622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23624 # Whether to use a lock for old archive extraction.
23625 lock_old_archive_extraction=$lock_old_archive_extraction
23627 # A C compiler.
23628 LTCC=$lt_CC
23630 # LTCC compiler flags.
23631 LTCFLAGS=$lt_CFLAGS
23633 # Take the output of nm and produce a listing of raw symbols and C names.
23634 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23636 # Transform the output of nm in a proper C declaration.
23637 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23639 # Transform the output of nm into a list of symbols to manually relocate.
23640 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23642 # Transform the output of nm in a C name address pair.
23643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23645 # Transform the output of nm in a C name address pair when lib prefix is needed.
23646 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23648 # The name lister interface.
23649 nm_interface=$lt_lt_cv_nm_interface
23651 # Specify filename containing input files for \$NM.
23652 nm_file_list_spec=$lt_nm_file_list_spec
23654 # The root where to search for dependent libraries,and where our libraries should be installed.
23655 lt_sysroot=$lt_sysroot
23657 # Command to truncate a binary pipe.
23658 lt_truncate_bin=$lt_lt_cv_truncate_bin
23660 # The name of the directory that contains temporary libtool files.
23661 objdir=$objdir
23663 # Used to examine libraries when file_magic_cmd begins with "file".
23664 MAGIC_CMD=$MAGIC_CMD
23666 # Must we lock files when doing compilation?
23667 need_locks=$lt_need_locks
23669 # Manifest tool.
23670 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23672 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23673 DSYMUTIL=$lt_DSYMUTIL
23675 # Tool to change global to local symbols on Mac OS X.
23676 NMEDIT=$lt_NMEDIT
23678 # Tool to manipulate fat objects and archives on Mac OS X.
23679 LIPO=$lt_LIPO
23681 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23682 OTOOL=$lt_OTOOL
23684 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23685 OTOOL64=$lt_OTOOL64
23687 # Old archive suffix (normally "a").
23688 libext=$libext
23690 # Shared library suffix (normally ".so").
23691 shrext_cmds=$lt_shrext_cmds
23693 # The commands to extract the exported symbol list from a shared archive.
23694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23696 # Variables whose values should be saved in libtool wrapper scripts and
23697 # restored at link time.
23698 variables_saved_for_relink=$lt_variables_saved_for_relink
23700 # Do we need the "lib" prefix for modules?
23701 need_lib_prefix=$need_lib_prefix
23703 # Do we need a version for libraries?
23704 need_version=$need_version
23706 # Library versioning type.
23707 version_type=$version_type
23709 # Shared library runtime path variable.
23710 runpath_var=$runpath_var
23712 # Shared library path variable.
23713 shlibpath_var=$shlibpath_var
23715 # Is shlibpath searched before the hard-coded library search path?
23716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23718 # Format of library name prefix.
23719 libname_spec=$lt_libname_spec
23721 # List of archive names. First name is the real one, the rest are links.
23722 # The last name is the one that the linker finds with -lNAME
23723 library_names_spec=$lt_library_names_spec
23725 # The coded name of the library, if different from the real name.
23726 soname_spec=$lt_soname_spec
23728 # Permission mode override for installation of shared libraries.
23729 install_override_mode=$lt_install_override_mode
23731 # Command to use after installation of a shared archive.
23732 postinstall_cmds=$lt_postinstall_cmds
23734 # Command to use after uninstallation of a shared archive.
23735 postuninstall_cmds=$lt_postuninstall_cmds
23737 # Commands used to finish a libtool library installation in a directory.
23738 finish_cmds=$lt_finish_cmds
23740 # As "finish_cmds", except a single script fragment to be evaled but
23741 # not shown.
23742 finish_eval=$lt_finish_eval
23744 # Whether we should hardcode library paths into libraries.
23745 hardcode_into_libs=$hardcode_into_libs
23747 # Compile-time system search path for libraries.
23748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23750 # Detected run-time system search path for libraries.
23751 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23753 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23754 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23756 # Whether dlopen is supported.
23757 dlopen_support=$enable_dlopen
23759 # Whether dlopen of programs is supported.
23760 dlopen_self=$enable_dlopen_self
23762 # Whether dlopen of statically linked programs is supported.
23763 dlopen_self_static=$enable_dlopen_self_static
23765 # Commands to strip libraries.
23766 old_striplib=$lt_old_striplib
23767 striplib=$lt_striplib
23770 # The linker used to build libraries.
23771 LD=$lt_LD
23773 # How to create reloadable object files.
23774 reload_flag=$lt_reload_flag
23775 reload_cmds=$lt_reload_cmds
23777 # Commands used to build an old-style archive.
23778 old_archive_cmds=$lt_old_archive_cmds
23780 # A language specific compiler.
23781 CC=$lt_compiler
23783 # Is the compiler the GNU compiler?
23784 with_gcc=$GCC
23786 # Compiler flag to turn off builtin functions.
23787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23789 # Additional compiler flags for building library objects.
23790 pic_flag=$lt_lt_prog_compiler_pic
23792 # How to pass a linker flag through the compiler.
23793 wl=$lt_lt_prog_compiler_wl
23795 # Compiler flag to prevent dynamic linking.
23796 link_static_flag=$lt_lt_prog_compiler_static
23798 # Does compiler simultaneously support -c and -o options?
23799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23801 # Whether or not to add -lc for building shared libraries.
23802 build_libtool_need_lc=$archive_cmds_need_lc
23804 # Whether or not to disallow shared libs when runtime libs are static.
23805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23807 # Compiler flag to allow reflexive dlopens.
23808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23810 # Compiler flag to generate shared objects directly from archives.
23811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23813 # Whether the compiler copes with passing no objects directly.
23814 compiler_needs_object=$lt_compiler_needs_object
23816 # Create an old-style archive from a shared archive.
23817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23819 # Create a temporary old-style archive to link instead of a shared archive.
23820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23822 # Commands used to build a shared archive.
23823 archive_cmds=$lt_archive_cmds
23824 archive_expsym_cmds=$lt_archive_expsym_cmds
23826 # Commands used to build a loadable module if different from building
23827 # a shared archive.
23828 module_cmds=$lt_module_cmds
23829 module_expsym_cmds=$lt_module_expsym_cmds
23831 # Whether we are building with GNU ld or not.
23832 with_gnu_ld=$lt_with_gnu_ld
23834 # Flag that allows shared libraries with undefined symbols to be built.
23835 allow_undefined_flag=$lt_allow_undefined_flag
23837 # Flag that enforces no undefined symbols.
23838 no_undefined_flag=$lt_no_undefined_flag
23840 # Flag to hardcode \$libdir into a binary during linking.
23841 # This must work even if \$libdir does not exist
23842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23844 # Whether we need a single "-rpath" flag with a separated argument.
23845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23847 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23848 # DIR into the resulting binary.
23849 hardcode_direct=$hardcode_direct
23851 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23852 # DIR into the resulting binary and the resulting library dependency is
23853 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23854 # library is relocated.
23855 hardcode_direct_absolute=$hardcode_direct_absolute
23857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23858 # into the resulting binary.
23859 hardcode_minus_L=$hardcode_minus_L
23861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23862 # into the resulting binary.
23863 hardcode_shlibpath_var=$hardcode_shlibpath_var
23865 # Set to "yes" if building a shared library automatically hardcodes DIR
23866 # into the library and all subsequent libraries and executables linked
23867 # against it.
23868 hardcode_automatic=$hardcode_automatic
23870 # Set to yes if linker adds runtime paths of dependent libraries
23871 # to runtime path list.
23872 inherit_rpath=$inherit_rpath
23874 # Whether libtool must link a program against all its dependency libraries.
23875 link_all_deplibs=$link_all_deplibs
23877 # Set to "yes" if exported symbols are required.
23878 always_export_symbols=$always_export_symbols
23880 # The commands to list exported symbols.
23881 export_symbols_cmds=$lt_export_symbols_cmds
23883 # Symbols that should not be listed in the preloaded symbols.
23884 exclude_expsyms=$lt_exclude_expsyms
23886 # Symbols that must always be exported.
23887 include_expsyms=$lt_include_expsyms
23889 # Commands necessary for linking programs (against libraries) with templates.
23890 prelink_cmds=$lt_prelink_cmds
23892 # Commands necessary for finishing linking programs.
23893 postlink_cmds=$lt_postlink_cmds
23895 # Specify filename containing input files.
23896 file_list_spec=$lt_file_list_spec
23898 # How to hardcode a shared library path into an executable.
23899 hardcode_action=$hardcode_action
23901 # ### END LIBTOOL CONFIG
23903 _LT_EOF
23905 cat <<'_LT_EOF' >> "$cfgfile"
23907 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23909 # func_munge_path_list VARIABLE PATH
23910 # -----------------------------------
23911 # VARIABLE is name of variable containing _space_ separated list of
23912 # directories to be munged by the contents of PATH, which is string
23913 # having a format:
23914 # "DIR[:DIR]:"
23915 # string "DIR[ DIR]" will be prepended to VARIABLE
23916 # ":DIR[:DIR]"
23917 # string "DIR[ DIR]" will be appended to VARIABLE
23918 # "DIRP[:DIRP]::[DIRA:]DIRA"
23919 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23920 # "DIRA[ DIRA]" will be appended to VARIABLE
23921 # "DIR[:DIR]"
23922 # VARIABLE will be replaced by "DIR[ DIR]"
23923 func_munge_path_list ()
23925 case x$2 in
23929 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23931 x:*)
23932 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23934 *::*)
23935 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23936 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23941 esac
23945 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23946 func_cc_basename ()
23948 for cc_temp in $*""; do
23949 case $cc_temp in
23950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23952 \-*) ;;
23953 *) break;;
23954 esac
23955 done
23956 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23960 # ### END FUNCTIONS SHARED WITH CONFIGURE
23962 _LT_EOF
23964 case $host_os in
23965 aix3*)
23966 cat <<\_LT_EOF >> "$cfgfile"
23967 # AIX sometimes has problems with the GCC collect2 program. For some
23968 # reason, if we set the COLLECT_NAMES environment variable, the problems
23969 # vanish in a puff of smoke.
23970 if test set != "${COLLECT_NAMES+set}"; then
23971 COLLECT_NAMES=
23972 export COLLECT_NAMES
23974 _LT_EOF
23976 esac
23979 ltmain=$ac_aux_dir/ltmain.sh
23982 # We use sed instead of cat because bash on DJGPP gets confused if
23983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23984 # text mode, it properly converts lines to CR/LF. This bash problem
23985 # is reportedly fixed, but why not run on old versions too?
23986 sed '$q' "$ltmain" >> "$cfgfile" \
23987 || (rm -f "$cfgfile"; exit 1)
23989 mv -f "$cfgfile" "$ofile" ||
23990 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23991 chmod +x "$ofile"
23994 "po-directories":C)
23995 for ac_file in $CONFIG_FILES; do
23996 # Support "outfile[:infile[:infile...]]"
23997 case "$ac_file" in
23998 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23999 esac
24000 # PO directories have a Makefile.in generated from Makefile.in.in.
24001 case "$ac_file" in */Makefile.in)
24002 # Adjust a relative srcdir.
24003 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24004 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24005 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24006 # In autoconf-2.13 it is called $ac_given_srcdir.
24007 # In autoconf-2.50 it is called $srcdir.
24008 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24009 case "$ac_given_srcdir" in
24010 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24011 /*) top_srcdir="$ac_given_srcdir" ;;
24012 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24013 esac
24014 # Treat a directory as a PO directory if and only if it has a
24015 # POTFILES.in file. This allows packages to have multiple PO
24016 # directories under different names or in different locations.
24017 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24018 rm -f "$ac_dir/POTFILES"
24019 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24020 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24021 POMAKEFILEDEPS="POTFILES.in"
24022 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24023 # on $ac_dir but don't depend on user-specified configuration
24024 # parameters.
24025 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24026 # The LINGUAS file contains the set of available languages.
24027 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24028 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24030 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24031 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24032 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24033 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24034 else
24035 # The set of available languages was given in configure.in.
24036 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24037 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24039 # Compute POFILES
24040 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24041 # Compute UPDATEPOFILES
24042 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24043 # Compute DUMMYPOFILES
24044 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24045 # Compute GMOFILES
24046 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24047 case "$ac_given_srcdir" in
24048 .) srcdirpre= ;;
24049 *) srcdirpre='$(srcdir)/' ;;
24050 esac
24051 POFILES=
24052 UPDATEPOFILES=
24053 DUMMYPOFILES=
24054 GMOFILES=
24055 for lang in $ALL_LINGUAS; do
24056 POFILES="$POFILES $srcdirpre$lang.po"
24057 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24058 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24059 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24060 done
24061 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24062 # environment variable.
24063 INST_LINGUAS=
24064 if test -n "$ALL_LINGUAS"; then
24065 for presentlang in $ALL_LINGUAS; do
24066 useit=no
24067 if test "%UNSET%" != "$LINGUAS"; then
24068 desiredlanguages="$LINGUAS"
24069 else
24070 desiredlanguages="$ALL_LINGUAS"
24072 for desiredlang in $desiredlanguages; do
24073 # Use the presentlang catalog if desiredlang is
24074 # a. equal to presentlang, or
24075 # b. a variant of presentlang (because in this case,
24076 # presentlang can be used as a fallback for messages
24077 # which are not translated in the desiredlang catalog).
24078 case "$desiredlang" in
24079 "$presentlang"*) useit=yes;;
24080 esac
24081 done
24082 if test $useit = yes; then
24083 INST_LINGUAS="$INST_LINGUAS $presentlang"
24085 done
24087 CATALOGS=
24088 if test -n "$INST_LINGUAS"; then
24089 for lang in $INST_LINGUAS; do
24090 CATALOGS="$CATALOGS $lang.gmo"
24091 done
24093 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24094 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"
24095 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24096 if test -f "$f"; then
24097 case "$f" in
24098 *.orig | *.bak | *~) ;;
24099 *) cat "$f" >> "$ac_dir/Makefile" ;;
24100 esac
24102 done
24105 esac
24106 done ;;
24108 esac
24109 done # for ac_tag
24112 as_fn_exit 0
24113 _ACEOF
24114 ac_clean_files=$ac_clean_files_save
24116 test $ac_write_fail = 0 ||
24117 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24120 # configure is writing to config.log, and then calls config.status.
24121 # config.status does its own redirection, appending to config.log.
24122 # Unfortunately, on DOS this fails, as config.log is still kept open
24123 # by configure, so config.status won't be able to write to it; its
24124 # output is simply discarded. So we exec the FD to /dev/null,
24125 # effectively closing config.log, so it can be properly (re)opened and
24126 # appended to by config.status. When coming back to configure, we
24127 # need to make the FD available again.
24128 if test "$no_create" != yes; then
24129 ac_cs_success=:
24130 ac_config_status_args=
24131 test "$silent" = yes &&
24132 ac_config_status_args="$ac_config_status_args --quiet"
24133 exec 5>/dev/null
24134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24135 exec 5>>config.log
24136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24137 # would make configure fail if this is the last instruction.
24138 $ac_cs_success || as_fn_exit 1
24140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}