* Avoid error messages or tcp timeouts when cancelling imap authentication.
[alpine.git] / configure
blob6217a065b640dbf601a722a71b08a457438a0cd4
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.22.
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.22'
595 PACKAGE_STRING='alpine 2.22'
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
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 ac_ct_AR
700 DLLTOOL
701 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
707 EGREP
708 GREP
710 LIBTOOL
711 LN_S
712 LDFLAGS_FOR_BUILD
713 CPPFLAGS_FOR_BUILD
714 CFLAGS_FOR_BUILD
715 BUILD_OBJEXT
716 BUILD_EXEEXT
717 CPP_FOR_BUILD
718 ac_ct_CC_FOR_BUILD
719 CC_FOR_BUILD
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_maintainer_mode
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_nls
828 enable_rpath
829 with_libiconv_prefix
830 with_libintl_prefix
831 enable_dmalloc
832 with_dmalloc_dir
833 with_date_stamp
834 with_host_stamp
835 with_localedir
836 enable_osx_universal_binaries
837 with_include_path
838 with_lib_path
839 with_pubcookie
840 with_web_bin
841 enable_debug
842 enable_optimization
843 enable_mouse
844 enable_quotas
845 enable_from_changing
846 enable_background_post
847 enable_keyboard_lock
848 enable_from_encoding
849 with_smtp_msa
850 with_smtp_msa_flags
851 with_npa
852 with_npa_flags
853 with_password_prog
854 with_simple_spellcheck
855 with_interactive_spellcheck
856 with_system_pinerc
857 with_system_fixed_pinerc
858 with_local_support_info
859 with_mailcheck_interval
860 with_checkpoint_interval
861 with_checkpoint_frequency
862 with_display_rows
863 with_display_columns
864 with_max_display_rows
865 with_max_display_columns
866 with_fill_column
867 with_max_fill_column
868 with_debug_level
869 with_debug_files
870 with_debug_file
871 with_forwarded_keyword
872 with_display_overlap
873 with_display_margin
874 with_default_fcc
875 with_default_save_folder
876 with_default_legacy_postponed_folder
877 with_default_postponed_folder
878 with_default_trash_folder
879 with_default_interrupted_mail
880 with_default_dead_letter_folder
881 with_default_mail_directory
882 with_default_inbox_name
883 with_default_signature_file
884 with_default_elm_style_save
885 with_default_header_in_reply
886 with_default_old_style_reply
887 with_default_use_only_domain_name
888 with_default_save_by_sender
889 with_default_sort_key
890 with_default_addressbook_sort_rule
891 with_default_folder_sort_rule
892 with_default_saved_message_name_rule
893 with_default_fcc_rule
894 with_default_standard_printer
895 with_default_ansi_printer
896 with_default_addressbook
897 with_default_local_fullname
898 with_default_local_address
899 with_default_keyboard_lock_count
900 with_default_remote_addressbook_history
901 with_smime_public_cert_directory
902 with_smime_private_key_directory
903 with_smime_cacert_directory
904 with_default_printer
905 with_passfile
906 with_local_password_cache
907 with_local_password_cache_method
908 with_default_sshpath
909 with_default_sshcmd
910 with_ssl
911 with_ssl_dir
912 with_ssl_certs_dir
913 with_ssl_include_dir
914 with_ssl_lib_dir
915 with_encryption_minimum_version
916 with_encryption_maximum_version
917 with_encryption_range
918 with_krb5
919 with_krb5_dir
920 with_krb5_include_dir
921 with_krb5_lib_dir
922 with_ldap
923 with_ldap_dir
924 with_ldap_include_dir
925 with_ldap_lib_dir
926 with_smime
927 with_tcl
928 with_tcl_lib_dir
929 with_tcl_lib
930 with_tcl_include
931 with_supplied_regex
932 with_pthread
933 with_system_mail_directory
934 with_c_client_target
935 with_bundled_tools
936 with_ipv6
937 with_ntlm
939 ac_precious_vars='build_alias
940 host_alias
941 target_alias
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
947 CPP'
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1009 case $ac_option in
1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *=) ac_optarg= ;;
1012 *) ac_optarg=yes ;;
1013 esac
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1019 ac_dashdash=yes ;;
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355 esac
1356 done
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures alpine 2.22 to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of alpine 2.22:";;
1559 esac
1560 cat <<\_ACEOF
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-silent-rules less verbose build output (undo: "make V=1")
1567 --disable-silent-rules verbose build output (undo: "make V=0")
1568 --enable-maintainer-mode
1569 enable make rules and dependencies not useful (and
1570 sometimes confusing) to the casual installer
1571 --enable-dependency-tracking
1572 do not reject slow dependency extractors
1573 --disable-dependency-tracking
1574 speeds up one-time build
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-static[=PKGS] build static libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-nls do not use Native Language Support
1581 --disable-rpath do not hardcode runtime library paths
1582 --enable-dmalloc Enable dmalloc debugging
1583 --enable-osx-universal-binaries
1584 Produce universal binaries under OS X [[default=no]]
1585 --disable-debug Exclude debug messages from source
1586 --disable-optimization Exclude optimizing compiler flags
1587 --disable-mouse Disable mouse support
1588 --enable-quotas Enable disk quota checking on startup
1589 --disable-from-changing Disallow users changing From addresss
1590 --disable-background-post
1591 Disable background posting
1592 --disable-keyboard-lock Disable keyboard locking
1593 --enable-from-encoding Enable From encoding in sent messages
1595 Optional Packages:
1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1599 both]
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot=DIR Search for dependent libraries within DIR
1602 (or the compiler's sysroot if not specified).
1603 --with-gnu-ld assume the C compiler uses GNU ld default=no
1604 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1605 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1606 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1607 --without-libintl-prefix don't search for libintl in includedir and libdir
1608 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1609 --with-date-stamp=DATE Set this as the date this program was built.
1610 Default: output of `date`
1611 --with-host-stamp=HOST Set name of computer for compilation. Default:
1612 output of `hostname`
1613 --with-localedir=DIR Name of gettext locale directory
1614 --with-include-path=PATHS
1615 Colon-separated list of directories used for include
1616 file search
1617 --with-lib-path=PATHS Colon-separated list of directories used for library
1618 search
1619 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1620 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1621 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1622 --with-smtp-msa-flags=FLAGS
1623 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1624 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1625 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1626 --with-password-prog=PATH
1627 Password change program (/bin/passwd)
1628 --with-simple-spellcheck=PROG
1629 Spellcheck program reads stdin, emits misspellings
1630 on stdout
1631 --with-interactive-spellcheck=PROG
1632 Interactive, filewise spell checker
1633 --with-system-pinerc=VALUE
1634 System pinerc (/usr/local/lib/pine.conf)
1635 --with-system-fixed-pinerc=VALUE
1636 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1637 --with-local-support-info=VALUE
1638 Local Support Info File (/usr/local/lib/pine.info)
1639 --with-mailcheck-interval=VALUE
1640 Specify default mail-check-interval (150)
1641 --with-checkpoint-interval=VALUE
1642 Specify default checkpoint-interval (420)
1643 --with-checkpoint-frequency=VALUE
1644 State change count before checkpoint (12)
1645 --with-display-rows=VALUE
1646 Initial rows on display (24)
1647 --with-display-columns=VALUE
1648 Initial columns on display (80)
1649 --with-max-display-rows=VALUE
1650 Maximum display rows (200)
1651 --with-max-display-columns=VALUE
1652 Maximum display columns (500)
1653 --with-fill-column=VALUE
1654 Default fill column (74)
1655 --with-max_fill-column=VALUE
1656 Maximum fill column (80)
1657 --with-debug-level=VALUE
1658 Specify default debug verbosity level (2)
1659 --with-debug-files=VALUE
1660 Specify number of debug files (4)
1661 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1662 --with-forwarded-keyword=VALUE
1663 IMAP (c-client) keyword to store forwarded status
1664 ("\$Forwarded")
1665 --with-display-overlap=VALUE
1666 Lines preserved while paging (2)
1667 --with-display-margin=VALUE
1668 Lines visible while scrolling (0)
1669 --with-default-fcc=VALUE
1670 Default sent mail folder (sent-mail)
1671 --with-default-save-folder=VALUE
1672 Default save folder (saved-messages)
1673 --with-default-legacy-postponed-folder=VALUE
1674 Pre Pine 3.90 postponed folder (postponed-mail)
1675 --with-default-postponed-folder=VALUE
1676 Default postponed folder (postponed-msgs)
1677 --with-default-trash-folder=VALUE
1678 Default Trash folder for Web Alpine (Trash)
1679 --with-default-interrupted-mail=VALUE
1680 Default folder for interrupted mail
1681 (.pine-interrupted-mail)
1682 --with-default-dead-letter-folder=VALUE
1683 Default dead letter folder (dead.letter)
1684 --with-default-mail-directory=VALUE
1685 Default mail directory (mail)
1686 --with-default-inbox-name=VALUE
1687 Default inbox name (INBOX)
1688 --with-default-signature-file=VALUE
1689 Default signature file (.signature)
1690 --with-default-elm-style-save=VALUE
1691 Default to Elm style save (no)
1692 --with-default-header-in-reply=VALUE
1693 Include header in reply (no)
1694 --with-default-old-style-reply=VALUE
1695 Default to old style reply (no)
1696 --with-default-use-only-domain-name=VALUE
1697 Default to using only the domain name (no)
1698 --with-default-save-by-sender=VALUE
1699 Default to save by sender (no)
1700 --with-default-sort-key=VALUE
1701 Default sort key (arrival)
1702 --with-default-addressbook-sort-rule=VALUE
1703 Default addressbook sort rule
1704 (fullname-with-lists-last)
1705 --with-default-folder-sort-rule=VALUE
1706 Default folder sort rule (alphabetical)
1707 --with-default-saved-message-name-rule=VALUE
1708 Default saved message name rule (default-folder)
1709 --with-default-fcc-rule=VALUE
1710 Default fcc rule (default-fcc)
1711 --with-default-standard-printer=VALUE
1712 Default standard printern (lpr)
1713 --with-default-ansi-printer=VALUE
1714 ANSI printer definition (attached-to-ansi)
1715 --with-default-addressbook=VALUE
1716 Default addressbook name (.addressbook)
1717 --with-default-local-fullname=VALUE
1718 Default local support fullname ("Local Support")
1719 --with-default-local-address=VALUE
1720 Default local support address (postmaster)
1721 --with-default-keyboard-lock-count=VALUE
1722 Default keyboard lock count (1)
1723 --with-default-remote-addressbook-history=VALUE
1724 Default address book history count (3)
1725 --with-smime-public-cert-directory=VALUE
1726 Default Public Cert Directory (.alpine-smime/public)
1727 --with-smime-private-key-directory=VALUE
1728 Default Private Key Directory
1729 (.alpine-smime/private)
1730 --with-smime-cacert-directory=VALUE
1731 Default Cert Authority Directory (.alpine-smime/ca)
1732 --with-default-printer=VALUE
1733 Default printer (ANSI_PRINTER)
1734 --with-passfile=FILENAME
1735 Password cache file (recommended when S/MIME is
1736 enabled and configured)
1737 --without-local-password-cache
1738 Disable OS-specific password cache, if supported
1739 --with-local-password-cache-method
1740 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1741 Windows=WINCRED)
1742 --with-default-sshpath=FILENAME
1743 set default value of ssh command path (defining
1744 should cause ssh to be preferred to rsh)
1745 --with-default-sshcmd=PERCENT_S_STRING
1746 set default value of ssh command string (usually "%s
1747 %s -l %s exec /etc/r%sd")
1748 --without-ssl Disable SSL support (OpenSSL)
1749 --with-ssl-dir=DIR Root of SSL lib/include path
1750 --with-ssl-certs-dir=DIR
1751 Path to SSL certificate directory
1752 --with-ssl-include-dir=DIR
1753 SSL include file path
1754 --with-ssl-lib-dir=DIR SSL library path
1755 --encryption-minimum-version=VERSION
1756 Minimum SSL encryption version. Default: no_min
1757 --encryption-maximum-version=VERSION
1758 Maximum SSL encryption version. Default: no_max
1759 --with-encryption-range=VALUE
1760 Default Encryption Range ($alpine_RANGE )
1761 --without-krb5 Disable Kerberos support
1762 --with-krb5-dir=DIR Root of Kerberos lib/include path
1763 --with-krb5-include-dir=DIR
1764 Kerberos include file path
1765 --with-krb5-lib-dir=DIR Kerberos library path
1766 --without-ldap Disable LDAP query support
1767 --with-ldap-dir=DIR Root of LDAP lib/include path
1768 --with-ldap-include-dir=DIR
1769 Directory containing LDAP include files
1770 --with-ldap-lib-dir=DIR LDAP library path
1771 --without-smime Disable S/MIME
1772 --without-tcl Disable TCL, thus Web Alpine support
1773 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1774 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1775 --with-tcl-include=DIR Directory containing TCL include files
1776 --with-supplied-regex Use regex library supplied with alpine
1777 --without-pthread Do NOT test for nor build with POSIX thread support
1778 --with-system-mail-directory=DIR
1779 Directory where local mail is delivered
1780 --with-c-client-target=TARGET
1781 IMAP build target (see imap/Makefile)
1782 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1783 --with-bundled-tools=no
1784 --without-ipv6 Disable IPv6, primarily to work around resolver
1785 problems
1786 --without-ntlm Disable NTLM client support
1788 Some influential environment variables:
1789 CC C compiler command
1790 CFLAGS C compiler flags
1791 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1792 nonstandard directory <lib dir>
1793 LIBS libraries to pass to the linker, e.g. -l<library>
1794 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1795 you have headers in a nonstandard directory <include dir>
1796 CPP C preprocessor
1798 Use these variables to override the choices made by `configure' or to help
1799 it to find libraries and programs with nonstandard names/locations.
1801 Report bugs to <chappa@washington.edu>.
1802 _ACEOF
1803 ac_status=$?
1806 if test "$ac_init_help" = "recursive"; then
1807 # If there are subdirs, report their specific --help.
1808 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1809 test -d "$ac_dir" ||
1810 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1811 continue
1812 ac_builddir=.
1814 case "$ac_dir" in
1815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1817 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1818 # A ".." for each directory in $ac_dir_suffix.
1819 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1820 case $ac_top_builddir_sub in
1821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1823 esac ;;
1824 esac
1825 ac_abs_top_builddir=$ac_pwd
1826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1827 # for backward compatibility:
1828 ac_top_builddir=$ac_top_build_prefix
1830 case $srcdir in
1831 .) # We are building in place.
1832 ac_srcdir=.
1833 ac_top_srcdir=$ac_top_builddir_sub
1834 ac_abs_top_srcdir=$ac_pwd ;;
1835 [\\/]* | ?:[\\/]* ) # Absolute name.
1836 ac_srcdir=$srcdir$ac_dir_suffix;
1837 ac_top_srcdir=$srcdir
1838 ac_abs_top_srcdir=$srcdir ;;
1839 *) # Relative name.
1840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1841 ac_top_srcdir=$ac_top_build_prefix$srcdir
1842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1843 esac
1844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1846 cd "$ac_dir" || { ac_status=$?; continue; }
1847 # Check for guested configure.
1848 if test -f "$ac_srcdir/configure.gnu"; then
1849 echo &&
1850 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1851 elif test -f "$ac_srcdir/configure"; then
1852 echo &&
1853 $SHELL "$ac_srcdir/configure" --help=recursive
1854 else
1855 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1856 fi || ac_status=$?
1857 cd "$ac_pwd" || { ac_status=$?; break; }
1858 done
1861 test -n "$ac_init_help" && exit $ac_status
1862 if $ac_init_version; then
1863 cat <<\_ACEOF
1864 alpine configure 2.22
1865 generated by GNU Autoconf 2.69
1867 Copyright (C) 2012 Free Software Foundation, Inc.
1868 This configure script is free software; the Free Software Foundation
1869 gives unlimited permission to copy, distribute and modify it.
1870 _ACEOF
1871 exit
1874 ## ------------------------ ##
1875 ## Autoconf initialization. ##
1876 ## ------------------------ ##
1878 # ac_fn_c_try_compile LINENO
1879 # --------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_compile
1916 # ac_fn_c_try_cpp LINENO
1917 # ----------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_cpp ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } > conftest.i && {
1938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1951 } # ac_fn_c_try_cpp
1953 # ac_fn_c_try_link LINENO
1954 # -----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_link ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext conftest$ac_exeext
1960 if { { ac_try="$ac_link"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest$ac_exeext && {
1979 test "$cross_compiling" = yes ||
1980 test -x conftest$ac_exeext
1981 }; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 ac_retval=1
1989 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991 # interfere with the next link command; also delete a directory that is
1992 # left behind by Apple's compiler. We do this before executing the actions.
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1997 } # ac_fn_c_try_link
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$3=yes"
2018 else
2019 eval "$3=no"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_header_compile
2030 # ac_fn_c_try_run LINENO
2031 # ----------------------
2032 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2033 # that executables *can* be run.
2034 ac_fn_c_try_run ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if { { ac_try="$ac_link"
2038 case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_link") 2>&5
2045 ac_status=$?
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2048 { { case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_try") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; }; }; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: program exited with status $ac_status" >&5
2061 $as_echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 ac_retval=$ac_status
2066 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_c_try_run
2072 # ac_fn_c_check_func LINENO FUNC VAR
2073 # ----------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_c_check_func ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 #define $2 innocuous_$2
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
2094 #ifdef __STDC__
2095 # include <limits.h>
2096 #else
2097 # include <assert.h>
2098 #endif
2100 #undef $2
2102 /* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2105 #ifdef __cplusplus
2106 extern "C"
2107 #endif
2108 char $2 ();
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined __stub_$2 || defined __stub___$2
2113 choke me
2114 #endif
2117 main ()
2119 return $2 ();
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_link "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2129 rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_func
2139 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2140 # -------------------------------------------------------
2141 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2142 # the include files in INCLUDES and setting the cache variable VAR
2143 # accordingly.
2144 ac_fn_c_check_header_mongrel ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if eval \${$3+:} false; then :
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 else
2157 # Is the header compilable?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2159 $as_echo_n "checking $2 usability... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2163 #include <$2>
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_header_compiler=yes
2167 else
2168 ac_header_compiler=no
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2172 $as_echo "$ac_header_compiler" >&6; }
2174 # Is the header present?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2176 $as_echo_n "checking $2 presence... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 #include <$2>
2180 _ACEOF
2181 if ac_fn_c_try_cpp "$LINENO"; then :
2182 ac_header_preproc=yes
2183 else
2184 ac_header_preproc=no
2186 rm -f conftest.err conftest.i conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 $as_echo "$ac_header_preproc" >&6; }
2190 # So? What about this header?
2191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2192 yes:no: )
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2194 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 no:yes:* )
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2200 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2202 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2204 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2206 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 ( $as_echo "## ------------------------------------ ##
2210 ## Report this to chappa@washington.edu ##
2211 ## ------------------------------------ ##"
2212 ) | sed "s/^/$as_me: WARNING: /" >&2
2214 esac
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216 $as_echo_n "checking for $2... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 eval "$3=\$ac_header_compiler"
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_header_mongrel
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=no"
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2247 main ()
2249 if (sizeof ($2))
2250 return 0;
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2260 main ()
2262 if (sizeof (($2)))
2263 return 0;
2265 return 0;
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2270 else
2271 eval "$3=yes"
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_c_check_type
2284 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2285 # --------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_c_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2424 main ()
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2437 else
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_c_compute_int
2466 cat >config.log <<_ACEOF
2467 This file contains any messages produced by compilers while
2468 running configure, to aid debugging if configure makes a mistake.
2470 It was created by alpine $as_me 2.22, which was
2471 generated by GNU Autoconf 2.69. Invocation command line was
2473 $ $0 $@
2475 _ACEOF
2476 exec 5>>config.log
2478 cat <<_ASUNAME
2479 ## --------- ##
2480 ## Platform. ##
2481 ## --------- ##
2483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2490 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2492 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2493 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2495 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2496 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2497 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2498 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2500 _ASUNAME
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 $as_echo "PATH: $as_dir"
2508 done
2509 IFS=$as_save_IFS
2511 } >&5
2513 cat >&5 <<_ACEOF
2516 ## ----------- ##
2517 ## Core tests. ##
2518 ## ----------- ##
2520 _ACEOF
2523 # Keep a trace of the command line.
2524 # Strip out --no-create and --no-recursion so they do not pile up.
2525 # Strip out --silent because we don't want to record it for future runs.
2526 # Also quote any args containing shell meta-characters.
2527 # Make two passes to allow for proper duplicate-argument suppression.
2528 ac_configure_args=
2529 ac_configure_args0=
2530 ac_configure_args1=
2531 ac_must_keep_next=false
2532 for ac_pass in 1 2
2534 for ac_arg
2536 case $ac_arg in
2537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2539 | -silent | --silent | --silen | --sile | --sil)
2540 continue ;;
2541 *\'*)
2542 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 esac
2544 case $ac_pass in
2545 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2547 as_fn_append ac_configure_args1 " '$ac_arg'"
2548 if test $ac_must_keep_next = true; then
2549 ac_must_keep_next=false # Got value, back to normal.
2550 else
2551 case $ac_arg in
2552 *=* | --config-cache | -C | -disable-* | --disable-* \
2553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2555 | -with-* | --with-* | -without-* | --without-* | --x)
2556 case "$ac_configure_args0 " in
2557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2558 esac
2560 -* ) ac_must_keep_next=true ;;
2561 esac
2563 as_fn_append ac_configure_args " '$ac_arg'"
2565 esac
2566 done
2567 done
2568 { ac_configure_args0=; unset ac_configure_args0;}
2569 { ac_configure_args1=; unset ac_configure_args1;}
2571 # When interrupted or exit'd, cleanup temporary files, and complete
2572 # config.log. We remove comments because anyway the quotes in there
2573 # would cause problems or look ugly.
2574 # WARNING: Use '\'' to represent an apostrophe within the trap.
2575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2576 trap 'exit_status=$?
2577 # Save into config.log some information that might help in debugging.
2579 echo
2581 $as_echo "## ---------------- ##
2582 ## Cache variables. ##
2583 ## ---------------- ##"
2584 echo
2585 # The following way of writing the cache mishandles newlines in values,
2587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2588 eval ac_val=\$$ac_var
2589 case $ac_val in #(
2590 *${as_nl}*)
2591 case $ac_var in #(
2592 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2594 esac
2595 case $ac_var in #(
2596 _ | IFS | as_nl) ;; #(
2597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2598 *) { eval $ac_var=; unset $ac_var;} ;;
2599 esac ;;
2600 esac
2601 done
2602 (set) 2>&1 |
2603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2604 *${as_nl}ac_space=\ *)
2605 sed -n \
2606 "s/'\''/'\''\\\\'\'''\''/g;
2607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2608 ;; #(
2610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2612 esac |
2613 sort
2615 echo
2617 $as_echo "## ----------------- ##
2618 ## Output variables. ##
2619 ## ----------------- ##"
2620 echo
2621 for ac_var in $ac_subst_vars
2623 eval ac_val=\$$ac_var
2624 case $ac_val in
2625 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626 esac
2627 $as_echo "$ac_var='\''$ac_val'\''"
2628 done | sort
2629 echo
2631 if test -n "$ac_subst_files"; then
2632 $as_echo "## ------------------- ##
2633 ## File substitutions. ##
2634 ## ------------------- ##"
2635 echo
2636 for ac_var in $ac_subst_files
2638 eval ac_val=\$$ac_var
2639 case $ac_val in
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 esac
2642 $as_echo "$ac_var='\''$ac_val'\''"
2643 done | sort
2644 echo
2647 if test -s confdefs.h; then
2648 $as_echo "## ----------- ##
2649 ## confdefs.h. ##
2650 ## ----------- ##"
2651 echo
2652 cat confdefs.h
2653 echo
2655 test "$ac_signal" != 0 &&
2656 $as_echo "$as_me: caught signal $ac_signal"
2657 $as_echo "$as_me: exit $exit_status"
2658 } >&5
2659 rm -f core *.core core.conftest.* &&
2660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661 exit $exit_status
2663 for ac_signal in 1 2 13 15; do
2664 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2665 done
2666 ac_signal=0
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2671 $as_echo "/* confdefs.h */" > confdefs.h
2673 # Predefined preprocessor variables.
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_NAME "$PACKAGE_NAME"
2677 _ACEOF
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2685 _ACEOF
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_STRING "$PACKAGE_STRING"
2689 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_URL "$PACKAGE_URL"
2697 _ACEOF
2700 # Let the site file select an alternate cache file if it wants to.
2701 # Prefer an explicitly selected file to automatically selected ones.
2702 ac_site_file1=NONE
2703 ac_site_file2=NONE
2704 if test -n "$CONFIG_SITE"; then
2705 # We do not want a PATH search for config.site.
2706 case $CONFIG_SITE in #((
2707 -*) ac_site_file1=./$CONFIG_SITE;;
2708 */*) ac_site_file1=$CONFIG_SITE;;
2709 *) ac_site_file1=./$CONFIG_SITE;;
2710 esac
2711 elif test "x$prefix" != xNONE; then
2712 ac_site_file1=$prefix/share/config.site
2713 ac_site_file2=$prefix/etc/config.site
2714 else
2715 ac_site_file1=$ac_default_prefix/share/config.site
2716 ac_site_file2=$ac_default_prefix/etc/config.site
2718 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2720 test "x$ac_site_file" = xNONE && continue
2721 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2723 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2724 sed 's/^/| /' "$ac_site_file" >&5
2725 . "$ac_site_file" \
2726 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728 as_fn_error $? "failed to load site script $ac_site_file
2729 See \`config.log' for more details" "$LINENO" 5; }
2731 done
2733 if test -r "$cache_file"; then
2734 # Some versions of bash will fail to source /dev/null (special files
2735 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2736 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2738 $as_echo "$as_me: loading cache $cache_file" >&6;}
2739 case $cache_file in
2740 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2741 *) . "./$cache_file";;
2742 esac
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2746 $as_echo "$as_me: creating cache $cache_file" >&6;}
2747 >$cache_file
2750 gt_needs="$gt_needs "
2751 # Check that the precious variables saved in the cache have kept the same
2752 # value.
2753 ac_cache_corrupted=false
2754 for ac_var in $ac_precious_vars; do
2755 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2756 eval ac_new_set=\$ac_env_${ac_var}_set
2757 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2758 eval ac_new_val=\$ac_env_${ac_var}_value
2759 case $ac_old_set,$ac_new_set in
2760 set,)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2762 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2763 ac_cache_corrupted=: ;;
2764 ,set)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2766 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2767 ac_cache_corrupted=: ;;
2768 ,);;
2770 if test "x$ac_old_val" != "x$ac_new_val"; then
2771 # differences in whitespace do not lead to failure.
2772 ac_old_val_w=`echo x $ac_old_val`
2773 ac_new_val_w=`echo x $ac_new_val`
2774 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2776 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2777 ac_cache_corrupted=:
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2780 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2781 eval $ac_var=\$ac_old_val
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2784 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2786 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2787 fi;;
2788 esac
2789 # Pass precious variables to config.status.
2790 if test "$ac_new_set" = set; then
2791 case $ac_new_val in
2792 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2793 *) ac_arg=$ac_var=$ac_new_val ;;
2794 esac
2795 case " $ac_configure_args " in
2796 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2797 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2798 esac
2800 done
2801 if $ac_cache_corrupted; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2805 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2806 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2808 ## -------------------- ##
2809 ## Main body of script. ##
2810 ## -------------------- ##
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821 ac_config_headers="$ac_config_headers include/config.h"
2824 am__api_version='1.13'
2826 ac_aux_dir=
2827 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2828 if test -f "$ac_dir/install-sh"; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2831 break
2832 elif 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/shtool"; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2841 done
2842 if test -z "$ac_aux_dir"; then
2843 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 ./ | .// | /[cC]/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885 /usr/ucb/* ) ;;
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2889 # by default.
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2901 else
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one > conftest.one
2904 echo two > conftest.two
2905 mkdir conftest.dir
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907 test -s conftest.one && test -s conftest.two &&
2908 test -s conftest.dir/conftest.one &&
2909 test -s conftest.dir/conftest.two
2910 then
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912 break 3
2916 done
2917 done
2919 esac
2921 done
2922 IFS=$as_save_IFS
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL=$ac_cv_path_install
2929 else
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Reject unsafe characters in $srcdir or the absolute working directory
2951 # name. Accept space and tab only in the latter.
2952 am_lf='
2954 case `pwd` in
2955 *[\\\"\#\$\&\'\`$am_lf]*)
2956 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2957 esac
2958 case $srcdir in
2959 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2960 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2961 esac
2963 # Do 'set' in a subshell so we don't clobber the current shell's
2964 # arguments. Must try -L first in case configure is actually a
2965 # symlink; some systems play weird games with the mod time of symlinks
2966 # (eg FreeBSD returns the mod time of the symlink's containing
2967 # directory).
2968 if (
2969 am_has_slept=no
2970 for am_try in 1 2; do
2971 echo "timestamp, slept: $am_has_slept" > conftest.file
2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2974 # -L didn't work.
2975 set X `ls -t "$srcdir/configure" conftest.file`
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2985 alias in your environment" "$LINENO" 5
2987 if test "$2" = conftest.file || test $am_try -eq 2; then
2988 break
2990 # Just in case.
2991 sleep 1
2992 am_has_slept=yes
2993 done
2994 test "$2" = conftest.file
2996 then
2997 # Ok.
2999 else
3000 as_fn_error $? "newly created file is older than distributed files!
3001 Check your system clock" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005 # If we didn't sleep, we still need to ensure time stamps of config.status and
3006 # generated files are strictly newer.
3007 am_sleep_pid=
3008 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3009 ( sleep 1 ) &
3010 am_sleep_pid=$!
3013 rm -f conftest.file
3015 test "$program_prefix" != NONE &&
3016 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3017 # Use a double $ so make ignores it.
3018 test "$program_suffix" != NONE &&
3019 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3020 # Double any \ or $.
3021 # By default was `s,x,x', remove it if useless.
3022 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3023 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3025 # expand $ac_aux_dir to an absolute path
3026 am_aux_dir=`cd $ac_aux_dir && pwd`
3028 if test x"${MISSING+set}" != xset; then
3029 case $am_aux_dir in
3030 *\ * | *\ *)
3031 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3033 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3034 esac
3036 # Use eval to expand $SHELL
3037 if eval "$MISSING --is-lightweight"; then
3038 am_missing_run="$MISSING "
3039 else
3040 am_missing_run=
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3042 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3045 if test x"${install_sh}" != xset; then
3046 case $am_aux_dir in
3047 *\ * | *\ *)
3048 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3050 install_sh="\${SHELL} $am_aux_dir/install-sh"
3051 esac
3054 # Installed binaries are usually stripped using 'strip' when the user
3055 # run "make install-strip". However 'strip' might not be the right
3056 # tool to use in cross-compilation environments, therefore Automake
3057 # will honor the 'STRIP' environment variable to overrule this program.
3058 if test "$cross_compiling" != no; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}strip; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_STRIP+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090 $as_echo "$STRIP" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$ac_cv_prog_STRIP"; then
3099 ac_ct_STRIP=$STRIP
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP="strip"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3123 IFS=$as_save_IFS
3127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3130 $as_echo "$ac_ct_STRIP" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3136 if test "x$ac_ct_STRIP" = x; then
3137 STRIP=":"
3138 else
3139 case $cross_compiling:$ac_tool_warned in
3140 yes:)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 STRIP=$ac_ct_STRIP
3147 else
3148 STRIP="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3155 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3156 if test -z "$MKDIR_P"; then
3157 if ${ac_cv_path_mkdir+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_prog in mkdir gmkdir; do
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3169 'mkdir (GNU coreutils) '* | \
3170 'mkdir (coreutils) '* | \
3171 'mkdir (fileutils) '4.1*)
3172 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3173 break 3;;
3174 esac
3175 done
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 test -d ./--version && rmdir ./--version
3183 if test "${ac_cv_path_mkdir+set}" = set; then
3184 MKDIR_P="$ac_cv_path_mkdir -p"
3185 else
3186 # As a last resort, use the slow shell script. Don't cache a
3187 # value for MKDIR_P within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the value is a relative name.
3190 MKDIR_P="$ac_install_sh -d"
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194 $as_echo "$MKDIR_P" >&6; }
3196 for ac_prog in gawk mawk nawk awk
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_AWK+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$AWK"; then
3206 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_AWK="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 AWK=$ac_cv_prog_AWK
3226 if test -n "$AWK"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3228 $as_echo "$AWK" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$AWK" && break
3236 done
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3239 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3240 set x ${MAKE-make}
3241 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3242 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 cat >conftest.make <<\_ACEOF
3246 SHELL = /bin/sh
3247 all:
3248 @echo '@@@%%%=$(MAKE)=@@@%%%'
3249 _ACEOF
3250 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3251 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3252 *@@@%%%=?*=@@@%%%*)
3253 eval ac_cv_prog_make_${ac_make}_set=yes;;
3255 eval ac_cv_prog_make_${ac_make}_set=no;;
3256 esac
3257 rm -f conftest.make
3259 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 SET_MAKE=
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 SET_MAKE="MAKE=${MAKE-make}"
3269 rm -rf .tst 2>/dev/null
3270 mkdir .tst 2>/dev/null
3271 if test -d .tst; then
3272 am__leading_dot=.
3273 else
3274 am__leading_dot=_
3276 rmdir .tst 2>/dev/null
3278 # Check whether --enable-silent-rules was given.
3279 if test "${enable_silent_rules+set}" = set; then :
3280 enableval=$enable_silent_rules;
3283 case $enable_silent_rules in # (((
3284 yes) AM_DEFAULT_VERBOSITY=0;;
3285 no) AM_DEFAULT_VERBOSITY=1;;
3286 *) AM_DEFAULT_VERBOSITY=1;;
3287 esac
3288 am_make=${MAKE-make}
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3291 if ${am_cv_make_support_nested_variables+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if $as_echo 'TRUE=$(BAR$(V))
3295 BAR0=false
3296 BAR1=true
3298 am__doit:
3299 @$(TRUE)
3300 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3301 am_cv_make_support_nested_variables=yes
3302 else
3303 am_cv_make_support_nested_variables=no
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3308 if test $am_cv_make_support_nested_variables = yes; then
3309 AM_V='$(V)'
3310 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3311 else
3312 AM_V=$AM_DEFAULT_VERBOSITY
3313 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3315 AM_BACKSLASH='\'
3317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3318 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3319 # is not polluted with repeated "-I."
3320 am__isrc=' -I$(srcdir)'
3321 # test to see if srcdir already configured
3322 if test -f $srcdir/config.status; then
3323 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3327 # test whether we have cygpath
3328 if test -z "$CYGPATH_W"; then
3329 if (cygpath --version) >/dev/null 2>/dev/null; then
3330 CYGPATH_W='cygpath -w'
3331 else
3332 CYGPATH_W=echo
3337 # Define the identity of the package.
3338 PACKAGE='alpine'
3339 VERSION='2.22'
3342 cat >>confdefs.h <<_ACEOF
3343 #define PACKAGE "$PACKAGE"
3344 _ACEOF
3347 cat >>confdefs.h <<_ACEOF
3348 #define VERSION "$VERSION"
3349 _ACEOF
3351 # Some tools Automake needs.
3353 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3356 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3359 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3362 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3365 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3367 # For better backward compatibility. To be removed once Automake 1.9.x
3368 # dies out for good. For more background, see:
3369 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3371 mkdir_p='$(MKDIR_P)'
3373 # We need awk for the "check" target. The system "awk" is bad on
3374 # some platforms.
3375 # Always define AMTAR for backward compatibility. Yes, it's still used
3376 # in the wild :-( We should find a proper way to deprecate it ...
3377 AMTAR='$${TAR-tar}'
3380 # We'll loop over all known methods to create a tar archive until one works.
3381 _am_tools='gnutar pax cpio none'
3383 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3393 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3394 # Check whether --enable-maintainer-mode was given.
3395 if test "${enable_maintainer_mode+set}" = set; then :
3396 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3397 else
3398 USE_MAINTAINER_MODE=no
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3402 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3403 if test $USE_MAINTAINER_MODE = yes; then
3404 MAINTAINER_MODE_TRUE=
3405 MAINTAINER_MODE_FALSE='#'
3406 else
3407 MAINTAINER_MODE_TRUE='#'
3408 MAINTAINER_MODE_FALSE=
3411 MAINT=$MAINTAINER_MODE_TRUE
3415 # Make sure we can run config.sub.
3416 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3417 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3420 $as_echo_n "checking build system type... " >&6; }
3421 if ${ac_cv_build+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_build_alias=$build_alias
3425 test "x$ac_build_alias" = x &&
3426 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3427 test "x$ac_build_alias" = x &&
3428 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3429 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3434 $as_echo "$ac_cv_build" >&6; }
3435 case $ac_cv_build in
3436 *-*-*) ;;
3437 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3438 esac
3439 build=$ac_cv_build
3440 ac_save_IFS=$IFS; IFS='-'
3441 set x $ac_cv_build
3442 shift
3443 build_cpu=$1
3444 build_vendor=$2
3445 shift; shift
3446 # Remember, the first character of IFS is used to create $*,
3447 # except with old shells:
3448 build_os=$*
3449 IFS=$ac_save_IFS
3450 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3454 $as_echo_n "checking host system type... " >&6; }
3455 if ${ac_cv_host+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test "x$host_alias" = x; then
3459 ac_cv_host=$ac_cv_build
3460 else
3461 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3467 $as_echo "$ac_cv_host" >&6; }
3468 case $ac_cv_host in
3469 *-*-*) ;;
3470 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3471 esac
3472 host=$ac_cv_host
3473 ac_save_IFS=$IFS; IFS='-'
3474 set x $ac_cv_host
3475 shift
3476 host_cpu=$1
3477 host_vendor=$2
3478 shift; shift
3479 # Remember, the first character of IFS is used to create $*,
3480 # except with old shells:
3481 host_os=$*
3482 IFS=$ac_save_IFS
3483 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3495 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3497 # start out with intent to build Web Alpine
3498 WEB_BUILD=web/src/alpined.d
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3545 if test -z "$ac_cv_prog_CC"; then
3546 ac_ct_CC=$CC
3547 # Extract the first word of "gcc", so it can be a program name with args.
3548 set dummy gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3583 if test "x$ac_ct_CC" = x; then
3584 CC=""
3585 else
3586 case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592 CC=$ac_ct_CC
3594 else
3595 CC="$ac_cv_prog_CC"
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}cc; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_CC+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_CC="${ac_tool_prefix}cc"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3621 done
3622 done
3623 IFS=$as_save_IFS
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3639 if test -z "$CC"; then
3640 # Extract the first word of "cc", so it can be a program name with args.
3641 set dummy cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 ac_prog_rejected=no
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3659 ac_prog_rejected=yes
3660 continue
3662 ac_cv_prog_CC="cc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3670 if test $ac_prog_rejected = yes; then
3671 # We found a bogon in the path, so make sure we never use it.
3672 set dummy $ac_cv_prog_CC
3673 shift
3674 if test $# != 0; then
3675 # We chose a different compiler from the bogus one.
3676 # However, it has the same basename, so the bogon will be chosen
3677 # first if we set CC to just the basename; use the full file name.
3678 shift
3679 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$CC"; then
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in cl.exe
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CC+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CC"; then
3707 ac_cv_prog_CC="$CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CC" && break
3737 done
3739 if test -z "$CC"; then
3740 ac_ct_CC=$CC
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CC="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CC" && break
3781 done
3783 if test "x$ac_ct_CC" = x; then
3784 CC=""
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CC=$ac_ct_CC
3799 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "no acceptable C compiler found in \$PATH
3802 See \`config.log' for more details" "$LINENO" 5; }
3804 # Provide some information about the compiler.
3805 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3806 set X $ac_compile
3807 ac_compiler=$2
3808 for ac_option in --version -v -V -qversion; do
3809 { { ac_try="$ac_compiler $ac_option >&5"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 ac_status=$?
3818 if test -s conftest.err; then
3819 sed '10a\
3820 ... rest of stderr output deleted ...
3821 10q' conftest.err >conftest.er1
3822 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }
3827 done
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 ac_clean_files_save=$ac_clean_files
3841 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3842 # Try to create an executable without -o first, disregard a.out.
3843 # It will help us diagnose broken compilers, and finding out an intuition
3844 # of exeext.
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3846 $as_echo_n "checking whether the C compiler works... " >&6; }
3847 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849 # The possible output files:
3850 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852 ac_rmfiles=
3853 for ac_file in $ac_files
3855 case $ac_file in
3856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3857 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 esac
3859 done
3860 rm -f $ac_rmfiles
3862 if { { ac_try="$ac_link_default"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_link_default") 2>&5
3870 ac_status=$?
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; then :
3873 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3874 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3875 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3876 # so that the user can short-circuit this test for compilers unknown to
3877 # Autoconf.
3878 for ac_file in $ac_files ''
3880 test -f "$ac_file" || continue
3881 case $ac_file in
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3884 [ab].out )
3885 # We found the default executable, but exeext='' is most
3886 # certainly right.
3887 break;;
3888 *.* )
3889 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3890 then :; else
3891 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893 # We set ac_cv_exeext here because the later test for it is not
3894 # safe: cross compilers may not add the suffix if given an `-o'
3895 # argument, so we may need to know it at that point already.
3896 # Even if this section looks crufty: it has the advantage of
3897 # actually working.
3898 break;;
3900 break;;
3901 esac
3902 done
3903 test "$ac_cv_exeext" = no && ac_cv_exeext=
3905 else
3906 ac_file=''
3908 if test -z "$ac_file"; then :
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3911 $as_echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error 77 "C compiler cannot create executables
3917 See \`config.log' for more details" "$LINENO" 5; }
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3923 $as_echo_n "checking for C compiler default output file name... " >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3925 $as_echo "$ac_file" >&6; }
3926 ac_exeext=$ac_cv_exeext
3928 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3931 $as_echo_n "checking for suffix of executables... " >&6; }
3932 if { { ac_try="$ac_link"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_link") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; then :
3943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3945 # work properly (i.e., refer to `conftest.exe'), while it won't with
3946 # `rm'.
3947 for ac_file in conftest.exe conftest conftest.*; do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952 break;;
3953 * ) break;;
3954 esac
3955 done
3956 else
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest conftest$ac_cv_exeext
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964 $as_echo "$ac_cv_exeext" >&6; }
3966 rm -f conftest.$ac_ext
3967 EXEEXT=$ac_cv_exeext
3968 ac_exeext=$EXEEXT
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdio.h>
3973 main ()
3975 FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3979 return 0;
3981 _ACEOF
3982 ac_clean_files="$ac_clean_files conftest.out"
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 if test "$cross_compiling" != yes; then
3988 { { ac_try="$ac_link"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if { ac_try='./conftest$ac_cv_exeext'
4000 { { case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; }; then
4010 cross_compiling=no
4011 else
4012 if test "$cross_compiling" = maybe; then
4013 cross_compiling=yes
4014 else
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error $? "cannot run C compiled programs.
4018 If you meant to cross compile, use \`--host'.
4019 See \`config.log' for more details" "$LINENO" 5; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024 $as_echo "$cross_compiling" >&6; }
4026 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027 ac_clean_files=$ac_clean_files_save
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 $as_echo_n "checking for suffix of object files... " >&6; }
4030 if ${ac_cv_objext+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 rm -f conftest.o conftest.obj
4045 if { { ac_try="$ac_compile"
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_compile") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 for ac_file in conftest.o conftest.obj conftest.*; do
4057 test -f "$ac_file" || continue;
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4061 break;;
4062 esac
4063 done
4064 else
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "cannot compute suffix of object files: cannot compile
4071 See \`config.log' for more details" "$LINENO" 5; }
4073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4076 $as_echo "$ac_cv_objext" >&6; }
4077 OBJEXT=$ac_cv_objext
4078 ac_objext=$OBJEXT
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081 if ${ac_cv_c_compiler_gnu+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main ()
4090 #ifndef __GNUC__
4091 choke me
4092 #endif
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_compiler_gnu=yes
4100 else
4101 ac_compiler_gnu=no
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109 if test $ac_compiler_gnu = yes; then
4110 GCC=yes
4111 else
4112 GCC=
4114 ac_test_CFLAGS=${CFLAGS+set}
4115 ac_save_CFLAGS=$CFLAGS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118 if ${ac_cv_prog_cc_g+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4123 ac_cv_prog_cc_g=no
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 main ()
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4138 else
4139 CFLAGS=""
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4148 return 0;
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4153 else
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4187 else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if ${ac_cv_prog_cc_c89+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 ac_cv_prog_cc_c89=no
4200 ac_save_CC=$CC
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdarg.h>
4204 #include <stdio.h>
4205 struct stat;
4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207 struct buf { int x; };
4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209 static char *e (p, i)
4210 char **p;
4211 int i;
4213 return p[i];
4215 static char *f (char * (*g) (char **, int), char **p, ...)
4217 char *s;
4218 va_list v;
4219 va_start (v,p);
4220 s = g (p, va_arg (v,int));
4221 va_end (v);
4222 return s;
4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4236 #define FOO(x) 'x'
4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239 int test (int i, double x);
4240 struct s1 {int (*f) (int a);};
4241 struct s2 {int (*f) (double a);};
4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243 int argc;
4244 char **argv;
4246 main ()
4248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 return 0;
4252 _ACEOF
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4260 rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4267 # AC_CACHE_VAL
4268 case "x$ac_cv_prog_cc_c89" in
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 $as_echo "none needed" >&6; } ;;
4272 xno)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274 $as_echo "unsupported" >&6; } ;;
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279 esac
4280 if test "x$ac_cv_prog_cc_c89" != xno; then :
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 DEPDIR="${am__leading_dot}deps"
4291 ac_config_commands="$ac_config_commands depfiles"
4294 am_make=${MAKE-make}
4295 cat > confinc << 'END'
4296 am__doit:
4297 @echo this is the am__doit target
4298 .PHONY: am__doit
4300 # If we don't find an include directive, just comment out the code.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4302 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4303 am__include="#"
4304 am__quote=
4305 _am_result=none
4306 # First try GNU make style include.
4307 echo "include confinc" > confmf
4308 # Ignore all kinds of additional output from 'make'.
4309 case `$am_make -s -f confmf 2> /dev/null` in #(
4310 *the\ am__doit\ target*)
4311 am__include=include
4312 am__quote=
4313 _am_result=GNU
4315 esac
4316 # Now try BSD make style include.
4317 if test "$am__include" = "#"; then
4318 echo '.include "confinc"' > confmf
4319 case `$am_make -s -f confmf 2> /dev/null` in #(
4320 *the\ am__doit\ target*)
4321 am__include=.include
4322 am__quote="\""
4323 _am_result=BSD
4325 esac
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4330 $as_echo "$_am_result" >&6; }
4331 rm -f confinc confmf
4333 # Check whether --enable-dependency-tracking was given.
4334 if test "${enable_dependency_tracking+set}" = set; then :
4335 enableval=$enable_dependency_tracking;
4338 if test "x$enable_dependency_tracking" != xno; then
4339 am_depcomp="$ac_aux_dir/depcomp"
4340 AMDEPBACKSLASH='\'
4341 am__nodep='_no'
4343 if test "x$enable_dependency_tracking" != xno; then
4344 AMDEP_TRUE=
4345 AMDEP_FALSE='#'
4346 else
4347 AMDEP_TRUE='#'
4348 AMDEP_FALSE=
4353 depcc="$CC" am_compiler_list=
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named 'D' -- because '-MD' means "put the output
4365 # in D".
4366 rm -rf conftest.dir
4367 mkdir conftest.dir
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4371 cd conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4377 # directory.
4378 mkdir sub
4380 am_cv_CC_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 am__universal=false
4385 case " $depcc " in #(
4386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4387 esac
4389 for depmode in $am_compiler_list; do
4390 # Setup a source with many dependencies, because some compilers
4391 # like to wrap large dependency lists on column 80 (with \), and
4392 # we should not choose a depcomp mode which is confused by this.
4394 # We need to recreate these files for each test, as the compiler may
4395 # overwrite some of them when testing with obscure command lines.
4396 # This happens at least with the AIX C compiler.
4397 : > sub/conftest.c
4398 for i in 1 2 3 4 5 6; do
4399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4400 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4401 # Solaris 10 /bin/sh.
4402 echo '/* dummy */' > sub/conftst$i.h
4403 done
4404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4406 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle '-M -o', and we need to detect this. Also, some Intel
4409 # versions had trouble with output in subdirs.
4410 am__obj=sub/conftest.${OBJEXT-o}
4411 am__minus_obj="-o $am__obj"
4412 case $depmode in
4413 gcc)
4414 # This depmode causes a compiler race in universal mode.
4415 test "$am__universal" = false || continue
4417 nosideeffect)
4418 # After this tag, mechanisms are not by side-effect, so they'll
4419 # only be used when explicitly requested.
4420 if test "x$enable_dependency_tracking" = xyes; then
4421 continue
4422 else
4423 break
4426 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4427 # This compiler won't grok '-c -o', but also, the minuso test has
4428 # not run yet. These depmodes are late enough in the game, and
4429 # so weak that their functioning should not be impacted.
4430 am__obj=conftest.${OBJEXT-o}
4431 am__minus_obj=
4433 none) break ;;
4434 esac
4435 if depmode=$depmode \
4436 source=sub/conftest.c object=$am__obj \
4437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4439 >/dev/null 2>conftest.err &&
4440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4454 break
4457 done
4459 cd ..
4460 rm -rf conftest.dir
4461 else
4462 am_cv_CC_dependencies_compiler_type=none
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4471 test "x$enable_dependency_tracking" != xno \
4472 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4473 am__fastdepCC_TRUE=
4474 am__fastdepCC_FALSE='#'
4475 else
4476 am__fastdepCC_TRUE='#'
4477 am__fastdepCC_FALSE=
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4487 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4488 # On Suns, sometimes $CPP names a directory.
4489 if test -n "$CPP" && test -d "$CPP"; then
4490 CPP=
4492 if test -z "$CPP"; then
4493 if ${ac_cv_prog_CPP+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 # Double quotes because CPP needs to be expanded
4497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499 ac_preproc_ok=false
4500 for ac_c_preproc_warn_flag in '' yes
4502 # Use a header file that comes with gcc, so configuring glibc
4503 # with a fresh cross-compiler works.
4504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 # <limits.h> exists even on freestanding compilers.
4506 # On the NeXT, cc -E runs the code through the compiler's parser,
4507 # not just through cpp. "Syntax error" is here to catch this case.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #ifdef __STDC__
4511 # include <limits.h>
4512 #else
4513 # include <assert.h>
4514 #endif
4515 Syntax error
4516 _ACEOF
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4519 else
4520 # Broken: fails on valid input.
4521 continue
4523 rm -f conftest.err conftest.i conftest.$ac_ext
4525 # OK, works on sane cases. Now check whether nonexistent headers
4526 # can be detected and how.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <ac_nonexistent.h>
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532 # Broken: success on invalid input.
4533 continue
4534 else
4535 # Passes both tests.
4536 ac_preproc_ok=:
4537 break
4539 rm -f conftest.err conftest.i conftest.$ac_ext
4541 done
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.i conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then :
4545 break
4548 done
4549 ac_cv_prog_CPP=$CPP
4552 CPP=$ac_cv_prog_CPP
4553 else
4554 ac_cv_prog_CPP=$CPP
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4557 $as_echo "$CPP" >&6; }
4558 ac_preproc_ok=false
4559 for ac_c_preproc_warn_flag in '' yes
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #ifdef __STDC__
4570 # include <limits.h>
4571 #else
4572 # include <assert.h>
4573 #endif
4574 Syntax error
4575 _ACEOF
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4578 else
4579 # Broken: fails on valid input.
4580 continue
4582 rm -f conftest.err conftest.i conftest.$ac_ext
4584 # OK, works on sane cases. Now check whether nonexistent headers
4585 # can be detected and how.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4589 _ACEOF
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4591 # Broken: success on invalid input.
4592 continue
4593 else
4594 # Passes both tests.
4595 ac_preproc_ok=:
4596 break
4598 rm -f conftest.err conftest.i conftest.$ac_ext
4600 done
4601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602 rm -f conftest.i conftest.err conftest.$ac_ext
4603 if $ac_preproc_ok; then :
4605 else
4606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4608 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details" "$LINENO" 5; }
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 save_cross_compiling=$cross_compiling
4622 save_ac_tool_prefix=$ac_tool_prefix
4623 cross_compiling=no
4624 ac_tool_prefix=
4626 ac_ext=c
4627 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4628 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4629 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC_FOR_BUILD"; then
4640 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4660 if test -n "$CC_FOR_BUILD"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4662 $as_echo "$CC_FOR_BUILD" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4670 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4671 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4672 # Extract the first word of "gcc", so it can be a program name with args.
4673 set dummy gcc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$ac_ct_CC_FOR_BUILD"; then
4680 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4700 if test -n "$ac_ct_CC_FOR_BUILD"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4702 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4708 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4709 CC_FOR_BUILD=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4719 else
4720 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4723 if test -z "$CC_FOR_BUILD"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$CC_FOR_BUILD"; then
4733 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4753 if test -n "$CC_FOR_BUILD"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4755 $as_echo "$CC_FOR_BUILD" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4764 if test -z "$CC_FOR_BUILD"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$CC_FOR_BUILD"; then
4773 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4787 ac_cv_prog_CC_FOR_BUILD="cc"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC_FOR_BUILD
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4809 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4810 if test -n "$CC_FOR_BUILD"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4812 $as_echo "$CC_FOR_BUILD" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$CC_FOR_BUILD"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$CC_FOR_BUILD"; then
4832 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4852 if test -n "$CC_FOR_BUILD"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4854 $as_echo "$CC_FOR_BUILD" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4861 test -n "$CC_FOR_BUILD" && break
4862 done
4864 if test -z "$CC_FOR_BUILD"; then
4865 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_CC_FOR_BUILD"; then
4876 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4896 if test -n "$ac_ct_CC_FOR_BUILD"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4898 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 test -n "$ac_ct_CC_FOR_BUILD" && break
4906 done
4908 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4909 CC_FOR_BUILD=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4924 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error $? "no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details" "$LINENO" 5; }
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4931 set X $ac_build_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 ac_status=$?
4943 if test -s conftest.err; then
4944 sed '10a\
4945 ... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4949 rm -f conftest.er1 conftest.err
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 done
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4956 if ${ac_cv_c_compiler_gnu+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4963 main ()
4965 #ifndef __GNUC__
4966 choke me
4967 #endif
4970 return 0;
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_compiler_gnu=yes
4975 else
4976 ac_compiler_gnu=no
4978 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4984 if test $ac_compiler_gnu = yes; then
4985 GCC=yes
4986 else
4987 GCC=
4989 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
4990 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
4992 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
4993 if ${ac_cv_build_prog_cc_g+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_save_c_werror_flag=$ac_c_werror_flag
4997 ac_c_werror_flag=yes
4998 ac_cv_build_prog_cc_g=no
4999 CFLAGS_FOR_BUILD="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5004 main ()
5008 return 0;
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_build_prog_cc_g=yes
5013 else
5014 CFLAGS_FOR_BUILD=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 main ()
5023 return 0;
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5028 else
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5030 CFLAGS_FOR_BUILD="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5035 main ()
5039 return 0;
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_build_prog_cc_g=yes
5045 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5049 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5053 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5054 if test "$ac_test_CFLAGS" = set; then
5055 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5056 elif test $ac_cv_build_prog_cc_g = yes; then
5057 if test "$GCC" = yes; then
5058 CFLAGS_FOR_BUILD="-g -O2"
5059 else
5060 CFLAGS_FOR_BUILD="-g"
5062 else
5063 if test "$GCC" = yes; then
5064 CFLAGS_FOR_BUILD="-O2"
5065 else
5066 CFLAGS_FOR_BUILD=
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5070 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5071 if ${ac_cv_prog_cc_c89+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_cv_prog_cc_c89=no
5075 ac_save_CC=$CC_FOR_BUILD
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <stdarg.h>
5079 #include <stdio.h>
5080 struct stat;
5081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5082 struct buf { int x; };
5083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5084 static char *e (p, i)
5085 char **p;
5086 int i;
5088 return p[i];
5090 static char *f (char * (*g) (char **, int), char **p, ...)
5092 char *s;
5093 va_list v;
5094 va_start (v,p);
5095 s = g (p, va_arg (v,int));
5096 va_end (v);
5097 return s;
5100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5101 function prototypes and stuff, but not '\xHH' hex character constants.
5102 These don't provoke an error unfortunately, instead are silently treated
5103 as 'x'. The following induces an error, until -std is added to get
5104 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5105 array size at least. It's necessary to write '\x00'==0 to get something
5106 that's true only with -std. */
5107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5110 inside strings and character constants. */
5111 #define FOO(x) 'x'
5112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5114 int test (int i, double x);
5115 struct s1 {int (*f) (int a);};
5116 struct s2 {int (*f) (double a);};
5117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5118 int argc;
5119 char **argv;
5121 main ()
5123 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5125 return 0;
5127 _ACEOF
5128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5129 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5131 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_prog_cc_c89=$ac_arg
5135 rm -f core conftest.err conftest.$ac_build_objext
5136 test "x$ac_cv_prog_cc_c89" != "xno" && break
5137 done
5138 rm -f conftest.$ac_ext
5139 CC_FOR_BUILD=$ac_save_CC
5142 # AC_CACHE_VAL
5143 case "x$ac_cv_prog_cc_c89" in
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5146 $as_echo "none needed" >&6; } ;;
5147 xno)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5149 $as_echo "unsupported" >&6; } ;;
5151 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5153 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5154 esac
5155 if test "x$ac_cv_prog_cc_c89" != xno; then :
5159 ac_ext=c
5160 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5161 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5162 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165 depcc="$CC_FOR_BUILD" am_compiler_list=
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5168 $as_echo_n "checking dependency style of $depcc... " >&6; }
5169 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5173 # We make a subdir and do the tests there. Otherwise we can end up
5174 # making bogus files that we don't know about and never remove. For
5175 # instance it was reported that on HP-UX the gcc test will end up
5176 # making a dummy file named 'D' -- because '-MD' means "put the output
5177 # in D".
5178 rm -rf conftest.dir
5179 mkdir conftest.dir
5180 # Copy depcomp to subdir because otherwise we won't find it if we're
5181 # using a relative directory.
5182 cp "$am_depcomp" conftest.dir
5183 cd conftest.dir
5184 # We will build objects and dependencies in a subdirectory because
5185 # it helps to detect inapplicable dependency modes. For instance
5186 # both Tru64's cc and ICC support -MD to output dependencies as a
5187 # side effect of compilation, but ICC will put the dependencies in
5188 # the current directory while Tru64 will put them in the object
5189 # directory.
5190 mkdir sub
5192 am_cv_CC_dependencies_compiler_type=none
5193 if test "$am_compiler_list" = ""; then
5194 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5196 am__universal=false
5197 case " $depcc " in #(
5198 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5199 esac
5201 for depmode in $am_compiler_list; do
5202 # Setup a source with many dependencies, because some compilers
5203 # like to wrap large dependency lists on column 80 (with \), and
5204 # we should not choose a depcomp mode which is confused by this.
5206 # We need to recreate these files for each test, as the compiler may
5207 # overwrite some of them when testing with obscure command lines.
5208 # This happens at least with the AIX C compiler.
5209 : > sub/conftest.c
5210 for i in 1 2 3 4 5 6; do
5211 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5212 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5213 # Solaris 10 /bin/sh.
5214 echo '/* dummy */' > sub/conftst$i.h
5215 done
5216 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5218 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5219 # mode. It turns out that the SunPro C++ compiler does not properly
5220 # handle '-M -o', and we need to detect this. Also, some Intel
5221 # versions had trouble with output in subdirs.
5222 am__obj=sub/conftest.${OBJEXT-o}
5223 am__minus_obj="-o $am__obj"
5224 case $depmode in
5225 gcc)
5226 # This depmode causes a compiler race in universal mode.
5227 test "$am__universal" = false || continue
5229 nosideeffect)
5230 # After this tag, mechanisms are not by side-effect, so they'll
5231 # only be used when explicitly requested.
5232 if test "x$enable_dependency_tracking" = xyes; then
5233 continue
5234 else
5235 break
5238 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5239 # This compiler won't grok '-c -o', but also, the minuso test has
5240 # not run yet. These depmodes are late enough in the game, and
5241 # so weak that their functioning should not be impacted.
5242 am__obj=conftest.${OBJEXT-o}
5243 am__minus_obj=
5245 none) break ;;
5246 esac
5247 if depmode=$depmode \
5248 source=sub/conftest.c object=$am__obj \
5249 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5250 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5251 >/dev/null 2>conftest.err &&
5252 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5253 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5254 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5255 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5256 # icc doesn't choke on unknown options, it will just issue warnings
5257 # or remarks (even with -Werror). So we grep stderr for any message
5258 # that says an option was ignored or not supported.
5259 # When given -MP, icc 7.0 and 7.1 complain thusly:
5260 # icc: Command line warning: ignoring option '-M'; no argument required
5261 # The diagnosis changed in icc 8.0:
5262 # icc: Command line remark: option '-MP' not supported
5263 if (grep 'ignoring option' conftest.err ||
5264 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5265 am_cv_CC_dependencies_compiler_type=$depmode
5266 break
5269 done
5271 cd ..
5272 rm -rf conftest.dir
5273 else
5274 am_cv_CC_dependencies_compiler_type=none
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5279 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5280 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5283 test "x$enable_dependency_tracking" != xno \
5284 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5285 am__fastdepCC_TRUE=
5286 am__fastdepCC_FALSE='#'
5287 else
5288 am__fastdepCC_TRUE='#'
5289 am__fastdepCC_FALSE=
5293 ac_ext=c
5294 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5295 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5296 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5299 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5300 # On Suns, sometimes $CPP names a directory.
5301 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5302 CPP_FOR_BUILD=
5304 if test -z "$CPP_FOR_BUILD"; then
5305 if ${ac_cv_build_prog_CPP+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 # Double quotes because CPP needs to be expanded
5309 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5311 ac_preproc_ok=false
5312 for ac_c_preproc_warn_flag in '' yes
5314 # Use a header file that comes with gcc, so configuring glibc
5315 # with a fresh cross-compiler works.
5316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317 # <limits.h> exists even on freestanding compilers.
5318 # On the NeXT, cc -E runs the code through the compiler's parser,
5319 # not just through cpp. "Syntax error" is here to catch this case.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #ifdef __STDC__
5323 # include <limits.h>
5324 #else
5325 # include <assert.h>
5326 #endif
5327 Syntax error
5328 _ACEOF
5329 if ac_fn_c_try_cpp "$LINENO"; then :
5331 else
5332 # Broken: fails on valid input.
5333 continue
5335 rm -f conftest.err conftest.i conftest.$ac_ext
5337 # OK, works on sane cases. Now check whether nonexistent headers
5338 # can be detected and how.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <ac_nonexistent.h>
5342 _ACEOF
5343 if ac_fn_c_try_cpp "$LINENO"; then :
5344 # Broken: success on invalid input.
5345 continue
5346 else
5347 # Passes both tests.
5348 ac_preproc_ok=:
5349 break
5351 rm -f conftest.err conftest.i conftest.$ac_ext
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.i conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then :
5357 break
5360 done
5361 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5364 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5365 else
5366 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5369 $as_echo "$CPP_FOR_BUILD" >&6; }
5370 ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #ifdef __STDC__
5382 # include <limits.h>
5383 #else
5384 # include <assert.h>
5385 #endif
5386 Syntax error
5387 _ACEOF
5388 if ac_fn_c_try_cpp "$LINENO"; then :
5390 else
5391 # Broken: fails on valid input.
5392 continue
5394 rm -f conftest.err conftest.i conftest.$ac_ext
5396 # OK, works on sane cases. Now check whether nonexistent headers
5397 # can be detected and how.
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 #include <ac_nonexistent.h>
5401 _ACEOF
5402 if ac_fn_c_try_cpp "$LINENO"; then :
5403 # Broken: success on invalid input.
5404 continue
5405 else
5406 # Passes both tests.
5407 ac_preproc_ok=:
5408 break
5410 rm -f conftest.err conftest.i conftest.$ac_ext
5412 done
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.i conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then :
5417 else
5418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5420 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5421 See \`config.log' for more details" "$LINENO" 5; }
5424 ac_ext=c
5425 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5426 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5427 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 ac_tool_prefix=$save_ac_tool_prefix
5433 cross_compiling=$save_cross_compiling
5436 BUILD_EXEEXT=$ac_build_exeext
5437 BUILD_OBJEXT=$ac_build_objext
5439 case $ac_cv_prog_cc_stdc in #(
5440 no) :
5441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5442 *) :
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5444 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5445 if ${ac_cv_prog_cc_c99+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_prog_cc_c99=no
5449 ac_save_CC=$CC
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #include <stdarg.h>
5453 #include <stdbool.h>
5454 #include <stdlib.h>
5455 #include <wchar.h>
5456 #include <stdio.h>
5458 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5459 #define debug(...) fprintf (stderr, __VA_ARGS__)
5460 #define showlist(...) puts (#__VA_ARGS__)
5461 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5462 static void
5463 test_varargs_macros (void)
5465 int x = 1234;
5466 int y = 5678;
5467 debug ("Flag");
5468 debug ("X = %d\n", x);
5469 showlist (The first, second, and third items.);
5470 report (x>y, "x is %d but y is %d", x, y);
5473 // Check long long types.
5474 #define BIG64 18446744073709551615ull
5475 #define BIG32 4294967295ul
5476 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5477 #if !BIG_OK
5478 your preprocessor is broken;
5479 #endif
5480 #if BIG_OK
5481 #else
5482 your preprocessor is broken;
5483 #endif
5484 static long long int bignum = -9223372036854775807LL;
5485 static unsigned long long int ubignum = BIG64;
5487 struct incomplete_array
5489 int datasize;
5490 double data[];
5493 struct named_init {
5494 int number;
5495 const wchar_t *name;
5496 double average;
5499 typedef const char *ccp;
5501 static inline int
5502 test_restrict (ccp restrict text)
5504 // See if C++-style comments work.
5505 // Iterate through items via the restricted pointer.
5506 // Also check for declarations in for loops.
5507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5508 continue;
5509 return 0;
5512 // Check varargs and va_copy.
5513 static void
5514 test_varargs (const char *format, ...)
5516 va_list args;
5517 va_start (args, format);
5518 va_list args_copy;
5519 va_copy (args_copy, args);
5521 const char *str;
5522 int number;
5523 float fnumber;
5525 while (*format)
5527 switch (*format++)
5529 case 's': // string
5530 str = va_arg (args_copy, const char *);
5531 break;
5532 case 'd': // int
5533 number = va_arg (args_copy, int);
5534 break;
5535 case 'f': // float
5536 fnumber = va_arg (args_copy, double);
5537 break;
5538 default:
5539 break;
5542 va_end (args_copy);
5543 va_end (args);
5547 main ()
5550 // Check bool.
5551 _Bool success = false;
5553 // Check restrict.
5554 if (test_restrict ("String literal") == 0)
5555 success = true;
5556 char *restrict newvar = "Another string";
5558 // Check varargs.
5559 test_varargs ("s, d' f .", "string", 65, 34.234);
5560 test_varargs_macros ();
5562 // Check flexible array members.
5563 struct incomplete_array *ia =
5564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5565 ia->datasize = 10;
5566 for (int i = 0; i < ia->datasize; ++i)
5567 ia->data[i] = i * 1.234;
5569 // Check named initializers.
5570 struct named_init ni = {
5571 .number = 34,
5572 .name = L"Test wide string",
5573 .average = 543.34343,
5576 ni.number = 58;
5578 int dynamic_array[ni.number];
5579 dynamic_array[ni.number - 1] = 543;
5581 // work around unused variable warnings
5582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5583 || dynamic_array[ni.number - 1] != 543);
5586 return 0;
5588 _ACEOF
5589 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5591 CC="$ac_save_CC $ac_arg"
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_prog_cc_c99=$ac_arg
5595 rm -f core conftest.err conftest.$ac_objext
5596 test "x$ac_cv_prog_cc_c99" != "xno" && break
5597 done
5598 rm -f conftest.$ac_ext
5599 CC=$ac_save_CC
5602 # AC_CACHE_VAL
5603 case "x$ac_cv_prog_cc_c99" in
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5606 $as_echo "none needed" >&6; } ;;
5607 xno)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5609 $as_echo "unsupported" >&6; } ;;
5611 CC="$CC $ac_cv_prog_cc_c99"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5613 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5614 esac
5615 if test "x$ac_cv_prog_cc_c99" != xno; then :
5616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5620 if ${ac_cv_prog_cc_c89+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 ac_cv_prog_cc_c89=no
5624 ac_save_CC=$CC
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <stdarg.h>
5628 #include <stdio.h>
5629 struct stat;
5630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5631 struct buf { int x; };
5632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5633 static char *e (p, i)
5634 char **p;
5635 int i;
5637 return p[i];
5639 static char *f (char * (*g) (char **, int), char **p, ...)
5641 char *s;
5642 va_list v;
5643 va_start (v,p);
5644 s = g (p, va_arg (v,int));
5645 va_end (v);
5646 return s;
5649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5650 function prototypes and stuff, but not '\xHH' hex character constants.
5651 These don't provoke an error unfortunately, instead are silently treated
5652 as 'x'. The following induces an error, until -std is added to get
5653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5654 array size at least. It's necessary to write '\x00'==0 to get something
5655 that's true only with -std. */
5656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5659 inside strings and character constants. */
5660 #define FOO(x) 'x'
5661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5663 int test (int i, double x);
5664 struct s1 {int (*f) (int a);};
5665 struct s2 {int (*f) (double a);};
5666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5667 int argc;
5668 char **argv;
5670 main ()
5672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 return 0;
5676 _ACEOF
5677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5680 CC="$ac_save_CC $ac_arg"
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 ac_cv_prog_cc_c89=$ac_arg
5684 rm -f core conftest.err conftest.$ac_objext
5685 test "x$ac_cv_prog_cc_c89" != "xno" && break
5686 done
5687 rm -f conftest.$ac_ext
5688 CC=$ac_save_CC
5691 # AC_CACHE_VAL
5692 case "x$ac_cv_prog_cc_c89" in
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5695 $as_echo "none needed" >&6; } ;;
5696 xno)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5698 $as_echo "unsupported" >&6; } ;;
5700 CC="$CC $ac_cv_prog_cc_c89"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5703 esac
5704 if test "x$ac_cv_prog_cc_c89" != xno; then :
5705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5706 else
5707 ac_cv_prog_cc_stdc=no
5712 esac
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5714 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5715 if ${ac_cv_prog_cc_stdc+:} false; then :
5716 $as_echo_n "(cached) " >&6
5719 case $ac_cv_prog_cc_stdc in #(
5720 no) :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5722 $as_echo "unsupported" >&6; } ;; #(
5723 '') :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5725 $as_echo "none needed" >&6; } ;; #(
5726 *) :
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5728 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5729 esac
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5734 set x ${MAKE-make}
5735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5736 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 cat >conftest.make <<\_ACEOF
5740 SHELL = /bin/sh
5741 all:
5742 @echo '@@@%%%=$(MAKE)=@@@%%%'
5743 _ACEOF
5744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5746 *@@@%%%=?*=@@@%%%*)
5747 eval ac_cv_prog_make_${ac_make}_set=yes;;
5749 eval ac_cv_prog_make_${ac_make}_set=no;;
5750 esac
5751 rm -f conftest.make
5753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 SET_MAKE=
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 SET_MAKE="MAKE=${MAKE-make}"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5764 $as_echo_n "checking whether ln -s works... " >&6; }
5765 LN_S=$as_ln_s
5766 if test "$LN_S" = "ln -s"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 $as_echo "yes" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5771 $as_echo "no, using $LN_S" >&6; }
5774 for ac_prog in gawk mawk nawk awk
5776 # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_AWK+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$AWK"; then
5784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_AWK="$ac_prog"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5797 done
5798 done
5799 IFS=$as_save_IFS
5803 AWK=$ac_cv_prog_AWK
5804 if test -n "$AWK"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5806 $as_echo "$AWK" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5813 test -n "$AWK" && break
5814 done
5816 case `pwd` in
5817 *\ * | *\ *)
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5819 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5820 esac
5824 macro_version='2.4.2'
5825 macro_revision='1.3337'
5839 ltmain="$ac_aux_dir/ltmain.sh"
5841 # Backslashify metacharacters that are still active within
5842 # double-quoted strings.
5843 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5845 # Same as above, but do not quote variable references.
5846 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5848 # Sed substitution to delay expansion of an escaped shell variable in a
5849 # double_quote_subst'ed string.
5850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5852 # Sed substitution to delay expansion of an escaped single quote.
5853 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5855 # Sed substitution to avoid accidental globbing in evaled expressions
5856 no_glob_subst='s/\*/\\\*/g'
5858 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5859 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5860 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5863 $as_echo_n "checking how to print strings... " >&6; }
5864 # Test print first, because it will be a builtin if present.
5865 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5866 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5867 ECHO='print -r --'
5868 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5869 ECHO='printf %s\n'
5870 else
5871 # Use this function as a fallback that always works.
5872 func_fallback_echo ()
5874 eval 'cat <<_LTECHO_EOF
5876 _LTECHO_EOF'
5878 ECHO='func_fallback_echo'
5881 # func_echo_all arg...
5882 # Invoke $ECHO with all args, space-separated.
5883 func_echo_all ()
5885 $ECHO ""
5888 case "$ECHO" in
5889 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5890 $as_echo "printf" >&6; } ;;
5891 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5892 $as_echo "print -r" >&6; } ;;
5893 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5894 $as_echo "cat" >&6; } ;;
5895 esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5911 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5912 if ${ac_cv_path_SED+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5916 for ac_i in 1 2 3 4 5 6 7; do
5917 ac_script="$ac_script$as_nl$ac_script"
5918 done
5919 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5920 { ac_script=; unset ac_script;}
5921 if test -z "$SED"; then
5922 ac_path_SED_found=false
5923 # Loop through the user's path and test for each of PROGNAME-LIST
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_prog in sed gsed; do
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5932 as_fn_executable_p "$ac_path_SED" || continue
5933 # Check for GNU ac_path_SED and select it if it is found.
5934 # Check for GNU $ac_path_SED
5935 case `"$ac_path_SED" --version 2>&1` in
5936 *GNU*)
5937 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5939 ac_count=0
5940 $as_echo_n 0123456789 >"conftest.in"
5941 while :
5943 cat "conftest.in" "conftest.in" >"conftest.tmp"
5944 mv "conftest.tmp" "conftest.in"
5945 cp "conftest.in" "conftest.nl"
5946 $as_echo '' >> "conftest.nl"
5947 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5949 as_fn_arith $ac_count + 1 && ac_count=$as_val
5950 if test $ac_count -gt ${ac_path_SED_max-0}; then
5951 # Best one so far, save it but keep looking for a better one
5952 ac_cv_path_SED="$ac_path_SED"
5953 ac_path_SED_max=$ac_count
5955 # 10*(2^10) chars as input seems more than enough
5956 test $ac_count -gt 10 && break
5957 done
5958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5959 esac
5961 $ac_path_SED_found && break 3
5962 done
5963 done
5964 done
5965 IFS=$as_save_IFS
5966 if test -z "$ac_cv_path_SED"; then
5967 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5969 else
5970 ac_cv_path_SED=$SED
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5975 $as_echo "$ac_cv_path_SED" >&6; }
5976 SED="$ac_cv_path_SED"
5977 rm -f conftest.sed
5979 test -z "$SED" && SED=sed
5980 Xsed="$SED -e 1s/^X//"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5993 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5994 if ${ac_cv_path_GREP+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -z "$GREP"; then
5998 ac_path_GREP_found=false
5999 # Loop through the user's path and test for each of PROGNAME-LIST
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_prog in grep ggrep; do
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6008 as_fn_executable_p "$ac_path_GREP" || continue
6009 # Check for GNU ac_path_GREP and select it if it is found.
6010 # Check for GNU $ac_path_GREP
6011 case `"$ac_path_GREP" --version 2>&1` in
6012 *GNU*)
6013 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6015 ac_count=0
6016 $as_echo_n 0123456789 >"conftest.in"
6017 while :
6019 cat "conftest.in" "conftest.in" >"conftest.tmp"
6020 mv "conftest.tmp" "conftest.in"
6021 cp "conftest.in" "conftest.nl"
6022 $as_echo 'GREP' >> "conftest.nl"
6023 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6025 as_fn_arith $ac_count + 1 && ac_count=$as_val
6026 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6027 # Best one so far, save it but keep looking for a better one
6028 ac_cv_path_GREP="$ac_path_GREP"
6029 ac_path_GREP_max=$ac_count
6031 # 10*(2^10) chars as input seems more than enough
6032 test $ac_count -gt 10 && break
6033 done
6034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 esac
6037 $ac_path_GREP_found && break 3
6038 done
6039 done
6040 done
6041 IFS=$as_save_IFS
6042 if test -z "$ac_cv_path_GREP"; then
6043 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045 else
6046 ac_cv_path_GREP=$GREP
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6051 $as_echo "$ac_cv_path_GREP" >&6; }
6052 GREP="$ac_cv_path_GREP"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6056 $as_echo_n "checking for egrep... " >&6; }
6057 if ${ac_cv_path_EGREP+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6061 then ac_cv_path_EGREP="$GREP -E"
6062 else
6063 if test -z "$EGREP"; then
6064 ac_path_EGREP_found=false
6065 # Loop through the user's path and test for each of PROGNAME-LIST
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_prog in egrep; do
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6074 as_fn_executable_p "$ac_path_EGREP" || continue
6075 # Check for GNU ac_path_EGREP and select it if it is found.
6076 # Check for GNU $ac_path_EGREP
6077 case `"$ac_path_EGREP" --version 2>&1` in
6078 *GNU*)
6079 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6081 ac_count=0
6082 $as_echo_n 0123456789 >"conftest.in"
6083 while :
6085 cat "conftest.in" "conftest.in" >"conftest.tmp"
6086 mv "conftest.tmp" "conftest.in"
6087 cp "conftest.in" "conftest.nl"
6088 $as_echo 'EGREP' >> "conftest.nl"
6089 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6091 as_fn_arith $ac_count + 1 && ac_count=$as_val
6092 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6093 # Best one so far, save it but keep looking for a better one
6094 ac_cv_path_EGREP="$ac_path_EGREP"
6095 ac_path_EGREP_max=$ac_count
6097 # 10*(2^10) chars as input seems more than enough
6098 test $ac_count -gt 10 && break
6099 done
6100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6101 esac
6103 $ac_path_EGREP_found && break 3
6104 done
6105 done
6106 done
6107 IFS=$as_save_IFS
6108 if test -z "$ac_cv_path_EGREP"; then
6109 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6111 else
6112 ac_cv_path_EGREP=$EGREP
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6118 $as_echo "$ac_cv_path_EGREP" >&6; }
6119 EGREP="$ac_cv_path_EGREP"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6123 $as_echo_n "checking for fgrep... " >&6; }
6124 if ${ac_cv_path_FGREP+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6128 then ac_cv_path_FGREP="$GREP -F"
6129 else
6130 if test -z "$FGREP"; then
6131 ac_path_FGREP_found=false
6132 # Loop through the user's path and test for each of PROGNAME-LIST
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_prog in fgrep; do
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6141 as_fn_executable_p "$ac_path_FGREP" || continue
6142 # Check for GNU ac_path_FGREP and select it if it is found.
6143 # Check for GNU $ac_path_FGREP
6144 case `"$ac_path_FGREP" --version 2>&1` in
6145 *GNU*)
6146 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6148 ac_count=0
6149 $as_echo_n 0123456789 >"conftest.in"
6150 while :
6152 cat "conftest.in" "conftest.in" >"conftest.tmp"
6153 mv "conftest.tmp" "conftest.in"
6154 cp "conftest.in" "conftest.nl"
6155 $as_echo 'FGREP' >> "conftest.nl"
6156 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6158 as_fn_arith $ac_count + 1 && ac_count=$as_val
6159 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6160 # Best one so far, save it but keep looking for a better one
6161 ac_cv_path_FGREP="$ac_path_FGREP"
6162 ac_path_FGREP_max=$ac_count
6164 # 10*(2^10) chars as input seems more than enough
6165 test $ac_count -gt 10 && break
6166 done
6167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6168 esac
6170 $ac_path_FGREP_found && break 3
6171 done
6172 done
6173 done
6174 IFS=$as_save_IFS
6175 if test -z "$ac_cv_path_FGREP"; then
6176 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6178 else
6179 ac_cv_path_FGREP=$FGREP
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6185 $as_echo "$ac_cv_path_FGREP" >&6; }
6186 FGREP="$ac_cv_path_FGREP"
6189 test -z "$GREP" && GREP=grep
6209 # Check whether --with-gnu-ld was given.
6210 if test "${with_gnu_ld+set}" = set; then :
6211 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6212 else
6213 with_gnu_ld=no
6216 ac_prog=ld
6217 if test "$GCC" = yes; then
6218 # Check if gcc -print-prog-name=ld gives a path.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6220 $as_echo_n "checking for ld used by $CC... " >&6; }
6221 case $host in
6222 *-*-mingw*)
6223 # gcc leaves a trailing carriage return which upsets mingw
6224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6227 esac
6228 case $ac_prog in
6229 # Accept absolute paths.
6230 [\\/]* | ?:[\\/]*)
6231 re_direlt='/[^/][^/]*/\.\./'
6232 # Canonicalize the pathname of ld
6233 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6234 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6235 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6236 done
6237 test -z "$LD" && LD="$ac_prog"
6240 # If it fails, then pretend we aren't using GCC.
6241 ac_prog=ld
6244 # If it is relative, then search for the first ld in PATH.
6245 with_gnu_ld=unknown
6247 esac
6248 elif test "$with_gnu_ld" = yes; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6250 $as_echo_n "checking for GNU ld... " >&6; }
6251 else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6253 $as_echo_n "checking for non-GNU ld... " >&6; }
6255 if ${lt_cv_path_LD+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if test -z "$LD"; then
6259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6260 for ac_dir in $PATH; do
6261 IFS="$lt_save_ifs"
6262 test -z "$ac_dir" && ac_dir=.
6263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6264 lt_cv_path_LD="$ac_dir/$ac_prog"
6265 # Check to see if the program is GNU ld. I'd rather use --version,
6266 # but apparently some variants of GNU ld only accept -v.
6267 # Break only if it was the GNU/non-GNU ld that we prefer.
6268 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6269 *GNU* | *'with BFD'*)
6270 test "$with_gnu_ld" != no && break
6273 test "$with_gnu_ld" != yes && break
6275 esac
6277 done
6278 IFS="$lt_save_ifs"
6279 else
6280 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6284 LD="$lt_cv_path_LD"
6285 if test -n "$LD"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6287 $as_echo "$LD" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6292 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6294 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6295 if ${lt_cv_prog_gnu_ld+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6299 case `$LD -v 2>&1 </dev/null` in
6300 *GNU* | *'with BFD'*)
6301 lt_cv_prog_gnu_ld=yes
6304 lt_cv_prog_gnu_ld=no
6306 esac
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6309 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6310 with_gnu_ld=$lt_cv_prog_gnu_ld
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6321 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6322 if ${lt_cv_path_NM+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$NM"; then
6326 # Let the user override the test.
6327 lt_cv_path_NM="$NM"
6328 else
6329 lt_nm_to_check="${ac_tool_prefix}nm"
6330 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6331 lt_nm_to_check="$lt_nm_to_check nm"
6333 for lt_tmp_nm in $lt_nm_to_check; do
6334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6335 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6336 IFS="$lt_save_ifs"
6337 test -z "$ac_dir" && ac_dir=.
6338 tmp_nm="$ac_dir/$lt_tmp_nm"
6339 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6340 # Check to see if the nm accepts a BSD-compat flag.
6341 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6342 # nm: unknown option "B" ignored
6343 # Tru64's nm complains that /dev/null is an invalid object file
6344 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6345 */dev/null* | *'Invalid file or object type'*)
6346 lt_cv_path_NM="$tmp_nm -B"
6347 break
6350 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6351 */dev/null*)
6352 lt_cv_path_NM="$tmp_nm -p"
6353 break
6356 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6357 continue # so that we can try to find one that supports BSD flags
6359 esac
6361 esac
6363 done
6364 IFS="$lt_save_ifs"
6365 done
6366 : ${lt_cv_path_NM=no}
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6370 $as_echo "$lt_cv_path_NM" >&6; }
6371 if test "$lt_cv_path_NM" != "no"; then
6372 NM="$lt_cv_path_NM"
6373 else
6374 # Didn't find any BSD compatible name lister, look for dumpbin.
6375 if test -n "$DUMPBIN"; then :
6376 # Let the user override the test.
6377 else
6378 if test -n "$ac_tool_prefix"; then
6379 for ac_prog in dumpbin "link -dump"
6381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_DUMPBIN+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$DUMPBIN"; then
6389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6408 DUMPBIN=$ac_cv_prog_DUMPBIN
6409 if test -n "$DUMPBIN"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6411 $as_echo "$DUMPBIN" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6418 test -n "$DUMPBIN" && break
6419 done
6421 if test -z "$DUMPBIN"; then
6422 ac_ct_DUMPBIN=$DUMPBIN
6423 for ac_prog in dumpbin "link -dump"
6425 # Extract the first word of "$ac_prog", so it can be a program name with args.
6426 set dummy $ac_prog; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -n "$ac_ct_DUMPBIN"; then
6433 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6446 done
6447 done
6448 IFS=$as_save_IFS
6452 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6453 if test -n "$ac_ct_DUMPBIN"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6455 $as_echo "$ac_ct_DUMPBIN" >&6; }
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6462 test -n "$ac_ct_DUMPBIN" && break
6463 done
6465 if test "x$ac_ct_DUMPBIN" = x; then
6466 DUMPBIN=":"
6467 else
6468 case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474 DUMPBIN=$ac_ct_DUMPBIN
6478 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6479 *COFF*)
6480 DUMPBIN="$DUMPBIN -symbols"
6483 DUMPBIN=:
6485 esac
6488 if test "$DUMPBIN" != ":"; then
6489 NM="$DUMPBIN"
6492 test -z "$NM" && NM=nm
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6500 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6501 if ${lt_cv_nm_interface+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 lt_cv_nm_interface="BSD nm"
6505 echo "int some_variable = 0;" > conftest.$ac_ext
6506 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6507 (eval "$ac_compile" 2>conftest.err)
6508 cat conftest.err >&5
6509 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6510 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6511 cat conftest.err >&5
6512 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6513 cat conftest.out >&5
6514 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6515 lt_cv_nm_interface="MS dumpbin"
6517 rm -f conftest*
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6520 $as_echo "$lt_cv_nm_interface" >&6; }
6522 # find the maximum length of command line arguments
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6524 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6525 if ${lt_cv_sys_max_cmd_len+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6529 teststring="ABCD"
6531 case $build_os in
6532 msdosdjgpp*)
6533 # On DJGPP, this test can blow up pretty badly due to problems in libc
6534 # (any single argument exceeding 2000 bytes causes a buffer overrun
6535 # during glob expansion). Even if it were fixed, the result of this
6536 # check would be larger than it should be.
6537 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6540 gnu*)
6541 # Under GNU Hurd, this test is not required because there is
6542 # no limit to the length of command line arguments.
6543 # Libtool will interpret -1 as no limit whatsoever
6544 lt_cv_sys_max_cmd_len=-1;
6547 cygwin* | mingw* | cegcc*)
6548 # On Win9x/ME, this test blows up -- it succeeds, but takes
6549 # about 5 minutes as the teststring grows exponentially.
6550 # Worse, since 9x/ME are not pre-emptively multitasking,
6551 # you end up with a "frozen" computer, even though with patience
6552 # the test eventually succeeds (with a max line length of 256k).
6553 # Instead, let's just punt: use the minimum linelength reported by
6554 # all of the supported platforms: 8192 (on NT/2K/XP).
6555 lt_cv_sys_max_cmd_len=8192;
6558 mint*)
6559 # On MiNT this can take a long time and run out of memory.
6560 lt_cv_sys_max_cmd_len=8192;
6563 amigaos*)
6564 # On AmigaOS with pdksh, this test takes hours, literally.
6565 # So we just punt and use a minimum line length of 8192.
6566 lt_cv_sys_max_cmd_len=8192;
6569 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6570 # This has been around since 386BSD, at least. Likely further.
6571 if test -x /sbin/sysctl; then
6572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6573 elif test -x /usr/sbin/sysctl; then
6574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6575 else
6576 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6578 # And add a safety zone
6579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6583 interix*)
6584 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6585 lt_cv_sys_max_cmd_len=196608
6588 os2*)
6589 # The test takes a long time on OS/2.
6590 lt_cv_sys_max_cmd_len=8192
6593 osf*)
6594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6596 # nice to cause kernel panics so lets avoid the loop below.
6597 # First set a reasonable default.
6598 lt_cv_sys_max_cmd_len=16384
6600 if test -x /sbin/sysconfig; then
6601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6603 esac
6606 sco3.2v5*)
6607 lt_cv_sys_max_cmd_len=102400
6609 sysv5* | sco5v6* | sysv4.2uw2*)
6610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6611 if test -n "$kargmax"; then
6612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6613 else
6614 lt_cv_sys_max_cmd_len=32768
6618 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6619 if test -n "$lt_cv_sys_max_cmd_len"; then
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6622 else
6623 # Make teststring a little bigger before we do anything with it.
6624 # a 1K string should be a reasonable start.
6625 for i in 1 2 3 4 5 6 7 8 ; do
6626 teststring=$teststring$teststring
6627 done
6628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6629 # If test is not a shell built-in, we'll probably end up computing a
6630 # maximum length that is only half of the actual maximum length, but
6631 # we can't tell.
6632 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6633 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6634 test $i != 17 # 1/2 MB should be enough
6636 i=`expr $i + 1`
6637 teststring=$teststring$teststring
6638 done
6639 # Only check the string length outside the loop.
6640 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6641 teststring=
6642 # Add a significant safety factor because C++ compilers can tack on
6643 # massive amounts of additional arguments before passing them to the
6644 # linker. It appears as though 1/2 is a usable value.
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6648 esac
6652 if test -n $lt_cv_sys_max_cmd_len ; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6654 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6657 $as_echo "none" >&6; }
6659 max_cmd_len=$lt_cv_sys_max_cmd_len
6666 : ${CP="cp -f"}
6667 : ${MV="mv -f"}
6668 : ${RM="rm -f"}
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6671 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6672 # Try some XSI features
6673 xsi_shell=no
6674 ( _lt_dummy="a/b/c"
6675 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6676 = c,a/b,b/c, \
6677 && eval 'test $(( 1 + 1 )) -eq 2 \
6678 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6679 && xsi_shell=yes
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6681 $as_echo "$xsi_shell" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6685 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6686 lt_shell_append=no
6687 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6688 >/dev/null 2>&1 \
6689 && lt_shell_append=yes
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6691 $as_echo "$lt_shell_append" >&6; }
6694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6695 lt_unset=unset
6696 else
6697 lt_unset=false
6704 # test EBCDIC or ASCII
6705 case `echo X|tr X '\101'` in
6706 A) # ASCII based system
6707 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6708 lt_SP2NL='tr \040 \012'
6709 lt_NL2SP='tr \015\012 \040\040'
6711 *) # EBCDIC based system
6712 lt_SP2NL='tr \100 \n'
6713 lt_NL2SP='tr \r\n \100\100'
6715 esac
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6726 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6727 if ${lt_cv_to_host_file_cmd+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 case $host in
6731 *-*-mingw* )
6732 case $build in
6733 *-*-mingw* ) # actually msys
6734 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6736 *-*-cygwin* )
6737 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6739 * ) # otherwise, assume *nix
6740 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6742 esac
6744 *-*-cygwin* )
6745 case $build in
6746 *-*-mingw* ) # actually msys
6747 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6749 *-*-cygwin* )
6750 lt_cv_to_host_file_cmd=func_convert_file_noop
6752 * ) # otherwise, assume *nix
6753 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6755 esac
6757 * ) # unhandled hosts (and "normal" native builds)
6758 lt_cv_to_host_file_cmd=func_convert_file_noop
6760 esac
6764 to_host_file_cmd=$lt_cv_to_host_file_cmd
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6766 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6773 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6774 if ${lt_cv_to_tool_file_cmd+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 #assume ordinary cross tools, or native build.
6778 lt_cv_to_tool_file_cmd=func_convert_file_noop
6779 case $host in
6780 *-*-mingw* )
6781 case $build in
6782 *-*-mingw* ) # actually msys
6783 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6785 esac
6787 esac
6791 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6793 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6800 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6801 if ${lt_cv_ld_reload_flag+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 lt_cv_ld_reload_flag='-r'
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6807 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6808 reload_flag=$lt_cv_ld_reload_flag
6809 case $reload_flag in
6810 "" | " "*) ;;
6811 *) reload_flag=" $reload_flag" ;;
6812 esac
6813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6814 case $host_os in
6815 cygwin* | mingw* | pw32* | cegcc*)
6816 if test "$GCC" != yes; then
6817 reload_cmds=false
6820 darwin*)
6821 if test "$GCC" = yes; then
6822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6823 else
6824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6827 esac
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_OBJDUMP+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$OBJDUMP"; then
6846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6865 OBJDUMP=$ac_cv_prog_OBJDUMP
6866 if test -n "$OBJDUMP"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6868 $as_echo "$OBJDUMP" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6876 if test -z "$ac_cv_prog_OBJDUMP"; then
6877 ac_ct_OBJDUMP=$OBJDUMP
6878 # Extract the first word of "objdump", so it can be a program name with args.
6879 set dummy objdump; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 if test -n "$ac_ct_OBJDUMP"; then
6886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6899 done
6900 done
6901 IFS=$as_save_IFS
6905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6906 if test -n "$ac_ct_OBJDUMP"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6908 $as_echo "$ac_ct_OBJDUMP" >&6; }
6909 else
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6914 if test "x$ac_ct_OBJDUMP" = x; then
6915 OBJDUMP="false"
6916 else
6917 case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923 OBJDUMP=$ac_ct_OBJDUMP
6925 else
6926 OBJDUMP="$ac_cv_prog_OBJDUMP"
6929 test -z "$OBJDUMP" && OBJDUMP=objdump
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6940 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6941 if ${lt_cv_deplibs_check_method+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 lt_cv_file_magic_cmd='$MAGIC_CMD'
6945 lt_cv_file_magic_test_file=
6946 lt_cv_deplibs_check_method='unknown'
6947 # Need to set the preceding variable on all platforms that support
6948 # interlibrary dependencies.
6949 # 'none' -- dependencies not supported.
6950 # `unknown' -- same as none, but documents that we really don't know.
6951 # 'pass_all' -- all dependencies passed with no checks.
6952 # 'test_compile' -- check by making test program.
6953 # 'file_magic [[regex]]' -- check by looking for files in library path
6954 # which responds to the $file_magic_cmd with a given extended regex.
6955 # If you have `file' or equivalent on your system and you're not sure
6956 # whether `pass_all' will *always* work, you probably want this one.
6958 case $host_os in
6959 aix[4-9]*)
6960 lt_cv_deplibs_check_method=pass_all
6963 beos*)
6964 lt_cv_deplibs_check_method=pass_all
6967 bsdi[45]*)
6968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6969 lt_cv_file_magic_cmd='/usr/bin/file -L'
6970 lt_cv_file_magic_test_file=/shlib/libc.so
6973 cygwin*)
6974 # func_win32_libid is a shell function defined in ltmain.sh
6975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6976 lt_cv_file_magic_cmd='func_win32_libid'
6979 mingw* | pw32*)
6980 # Base MSYS/MinGW do not provide the 'file' command needed by
6981 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6982 # unless we find 'file', for example because we are cross-compiling.
6983 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6984 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6986 lt_cv_file_magic_cmd='func_win32_libid'
6987 else
6988 # Keep this pattern in sync with the one in func_win32_libid.
6989 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6990 lt_cv_file_magic_cmd='$OBJDUMP -f'
6994 cegcc*)
6995 # use the weaker test based on 'objdump'. See mingw*.
6996 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6997 lt_cv_file_magic_cmd='$OBJDUMP -f'
7000 darwin* | rhapsody*)
7001 lt_cv_deplibs_check_method=pass_all
7004 freebsd* | dragonfly*)
7005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7006 case $host_cpu in
7007 i*86 )
7008 # Not sure whether the presence of OpenBSD here was a mistake.
7009 # Let's accept both of them until this is cleared up.
7010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7011 lt_cv_file_magic_cmd=/usr/bin/file
7012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7014 esac
7015 else
7016 lt_cv_deplibs_check_method=pass_all
7020 gnu*)
7021 lt_cv_deplibs_check_method=pass_all
7024 haiku*)
7025 lt_cv_deplibs_check_method=pass_all
7028 hpux10.20* | hpux11*)
7029 lt_cv_file_magic_cmd=/usr/bin/file
7030 case $host_cpu in
7031 ia64*)
7032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7035 hppa*64*)
7036 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]'
7037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7043 esac
7046 interix[3-9]*)
7047 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7051 irix5* | irix6* | nonstopux*)
7052 case $LD in
7053 *-32|*"-32 ") libmagic=32-bit;;
7054 *-n32|*"-n32 ") libmagic=N32;;
7055 *-64|*"-64 ") libmagic=64-bit;;
7056 *) libmagic=never-match;;
7057 esac
7058 lt_cv_deplibs_check_method=pass_all
7061 # This must be glibc/ELF.
7062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7063 lt_cv_deplibs_check_method=pass_all
7066 netbsd*)
7067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7069 else
7070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7074 newos6*)
7075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7076 lt_cv_file_magic_cmd=/usr/bin/file
7077 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7080 *nto* | *qnx*)
7081 lt_cv_deplibs_check_method=pass_all
7084 openbsd*)
7085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7087 else
7088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7092 osf3* | osf4* | osf5*)
7093 lt_cv_deplibs_check_method=pass_all
7096 rdos*)
7097 lt_cv_deplibs_check_method=pass_all
7100 solaris*)
7101 lt_cv_deplibs_check_method=pass_all
7104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7105 lt_cv_deplibs_check_method=pass_all
7108 sysv4 | sysv4.3*)
7109 case $host_vendor in
7110 motorola)
7111 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]'
7112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7114 ncr)
7115 lt_cv_deplibs_check_method=pass_all
7117 sequent)
7118 lt_cv_file_magic_cmd='/bin/file'
7119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7121 sni)
7122 lt_cv_file_magic_cmd='/bin/file'
7123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7124 lt_cv_file_magic_test_file=/lib/libc.so
7126 siemens)
7127 lt_cv_deplibs_check_method=pass_all
7130 lt_cv_deplibs_check_method=pass_all
7132 esac
7135 tpf*)
7136 lt_cv_deplibs_check_method=pass_all
7138 esac
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7142 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7144 file_magic_glob=
7145 want_nocaseglob=no
7146 if test "$build" = "$host"; then
7147 case $host_os in
7148 mingw* | pw32*)
7149 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7150 want_nocaseglob=yes
7151 else
7152 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7155 esac
7158 file_magic_cmd=$lt_cv_file_magic_cmd
7159 deplibs_check_method=$lt_cv_deplibs_check_method
7160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_DLLTOOL+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test -n "$DLLTOOL"; then
7192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7205 done
7206 done
7207 IFS=$as_save_IFS
7211 DLLTOOL=$ac_cv_prog_DLLTOOL
7212 if test -n "$DLLTOOL"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7214 $as_echo "$DLLTOOL" >&6; }
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7222 if test -z "$ac_cv_prog_DLLTOOL"; then
7223 ac_ct_DLLTOOL=$DLLTOOL
7224 # Extract the first word of "dlltool", so it can be a program name with args.
7225 set dummy dlltool; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$ac_ct_DLLTOOL"; then
7232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7251 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7252 if test -n "$ac_ct_DLLTOOL"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7254 $as_echo "$ac_ct_DLLTOOL" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7260 if test "x$ac_ct_DLLTOOL" = x; then
7261 DLLTOOL="false"
7262 else
7263 case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269 DLLTOOL=$ac_ct_DLLTOOL
7271 else
7272 DLLTOOL="$ac_cv_prog_DLLTOOL"
7275 test -z "$DLLTOOL" && DLLTOOL=dlltool
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7287 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7288 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 lt_cv_sharedlib_from_linklib_cmd='unknown'
7293 case $host_os in
7294 cygwin* | mingw* | pw32* | cegcc*)
7295 # two different shell functions defined in ltmain.sh
7296 # decide which to use based on capabilities of $DLLTOOL
7297 case `$DLLTOOL --help 2>&1` in
7298 *--identify-strict*)
7299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7302 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7304 esac
7307 # fallback: assume linklib IS sharedlib
7308 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7310 esac
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7314 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7315 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7316 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7325 if test -n "$ac_tool_prefix"; then
7326 for ac_prog in ar
7328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_AR+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$AR"; then
7336 ac_cv_prog_AR="$AR" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7355 AR=$ac_cv_prog_AR
7356 if test -n "$AR"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7358 $as_echo "$AR" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7365 test -n "$AR" && break
7366 done
7368 if test -z "$AR"; then
7369 ac_ct_AR=$AR
7370 for ac_prog in ar
7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$ac_ct_AR"; then
7380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_ac_ct_AR="$ac_prog"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7393 done
7394 done
7395 IFS=$as_save_IFS
7399 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7400 if test -n "$ac_ct_AR"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7402 $as_echo "$ac_ct_AR" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 test -n "$ac_ct_AR" && break
7410 done
7412 if test "x$ac_ct_AR" = x; then
7413 AR="false"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 AR=$ac_ct_AR
7425 : ${AR=ar}
7426 : ${AR_FLAGS=cru}
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7439 $as_echo_n "checking for archiver @FILE support... " >&6; }
7440 if ${lt_cv_ar_at_file+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 lt_cv_ar_at_file=no
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7448 main ()
7452 return 0;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 echo conftest.$ac_objext > conftest.lst
7457 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7459 (eval $lt_ar_try) 2>&5
7460 ac_status=$?
7461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462 test $ac_status = 0; }
7463 if test "$ac_status" -eq 0; then
7464 # Ensure the archiver fails upon bogus file names.
7465 rm -f conftest.$ac_objext libconftest.a
7466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7467 (eval $lt_ar_try) 2>&5
7468 ac_status=$?
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }
7471 if test "$ac_status" -ne 0; then
7472 lt_cv_ar_at_file=@
7475 rm -f conftest.* libconftest.a
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7482 $as_echo "$lt_cv_ar_at_file" >&6; }
7484 if test "x$lt_cv_ar_at_file" = xno; then
7485 archiver_list_spec=
7486 else
7487 archiver_list_spec=$lt_cv_ar_at_file
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}strip; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_prog_STRIP+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 if test -n "$STRIP"; then
7505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7518 done
7519 done
7520 IFS=$as_save_IFS
7524 STRIP=$ac_cv_prog_STRIP
7525 if test -n "$STRIP"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7527 $as_echo "$STRIP" >&6; }
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7535 if test -z "$ac_cv_prog_STRIP"; then
7536 ac_ct_STRIP=$STRIP
7537 # Extract the first word of "strip", so it can be a program name with args.
7538 set dummy strip; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$ac_ct_STRIP"; then
7545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_ac_ct_STRIP="strip"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7565 if test -n "$ac_ct_STRIP"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7567 $as_echo "$ac_ct_STRIP" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7573 if test "x$ac_ct_STRIP" = x; then
7574 STRIP=":"
7575 else
7576 case $cross_compiling:$ac_tool_warned in
7577 yes:)
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7581 esac
7582 STRIP=$ac_ct_STRIP
7584 else
7585 STRIP="$ac_cv_prog_STRIP"
7588 test -z "$STRIP" && STRIP=:
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_RANLIB+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$RANLIB"; then
7604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7617 done
7618 done
7619 IFS=$as_save_IFS
7623 RANLIB=$ac_cv_prog_RANLIB
7624 if test -n "$RANLIB"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7626 $as_echo "$RANLIB" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_RANLIB"; then
7635 ac_ct_RANLIB=$RANLIB
7636 # Extract the first word of "ranlib", so it can be a program name with args.
7637 set dummy ranlib; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_RANLIB"; then
7644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_RANLIB="ranlib"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7664 if test -n "$ac_ct_RANLIB"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7666 $as_echo "$ac_ct_RANLIB" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_RANLIB" = x; then
7673 RANLIB=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 RANLIB=$ac_ct_RANLIB
7683 else
7684 RANLIB="$ac_cv_prog_RANLIB"
7687 test -z "$RANLIB" && RANLIB=:
7694 # Determine commands to create old-style static archives.
7695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7696 old_postinstall_cmds='chmod 644 $oldlib'
7697 old_postuninstall_cmds=
7699 if test -n "$RANLIB"; then
7700 case $host_os in
7701 openbsd*)
7702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7707 esac
7708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7711 case $host_os in
7712 darwin*)
7713 lock_old_archive_extraction=yes ;;
7715 lock_old_archive_extraction=no ;;
7716 esac
7756 # If no C compiler was specified, use CC.
7757 LTCC=${LTCC-"$CC"}
7759 # If no C compiler flags were specified, use CFLAGS.
7760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7762 # Allow CC to be a program name with arguments.
7763 compiler=$CC
7766 # Check for command to grab the raw symbol name followed by C symbol from nm.
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7768 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7769 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7773 # These are sane defaults that work on at least a few old systems.
7774 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7776 # Character class describing NM global symbol codes.
7777 symcode='[BCDEGRST]'
7779 # Regexp to match symbols that can be accessed directly from C.
7780 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7782 # Define system-specific variables.
7783 case $host_os in
7784 aix*)
7785 symcode='[BCDT]'
7787 cygwin* | mingw* | pw32* | cegcc*)
7788 symcode='[ABCDGISTW]'
7790 hpux*)
7791 if test "$host_cpu" = ia64; then
7792 symcode='[ABCDEGRST]'
7795 irix* | nonstopux*)
7796 symcode='[BCDEGRST]'
7798 osf*)
7799 symcode='[BCDEGQRST]'
7801 solaris*)
7802 symcode='[BDRT]'
7804 sco3.2v5*)
7805 symcode='[DT]'
7807 sysv4.2uw2*)
7808 symcode='[DT]'
7810 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7811 symcode='[ABDT]'
7813 sysv4)
7814 symcode='[DFNSTU]'
7816 esac
7818 # If we're using GNU nm, then use its standard symbol codes.
7819 case `$NM -V 2>&1` in
7820 *GNU* | *'with BFD'*)
7821 symcode='[ABCDGIRSTW]' ;;
7822 esac
7824 # Transform an extracted symbol line into a proper C declaration.
7825 # Some systems (esp. on ia64) link data and code symbols differently,
7826 # so use this general approach.
7827 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7829 # Transform an extracted symbol line into symbol name and symbol address
7830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7831 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7833 # Handle CRLF in mingw tool chain
7834 opt_cr=
7835 case $build_os in
7836 mingw*)
7837 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7839 esac
7841 # Try without a prefix underscore, then with it.
7842 for ac_symprfx in "" "_"; do
7844 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7845 symxfrm="\\1 $ac_symprfx\\2 \\2"
7847 # Write the raw and C identifiers.
7848 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7849 # Fake it for dumpbin and say T for any non-static function
7850 # and D for any global variable.
7851 # Also find C++ and __fastcall symbols from MSVC++,
7852 # which start with @ or ?.
7853 lt_cv_sys_global_symbol_pipe="$AWK '"\
7854 " {last_section=section; section=\$ 3};"\
7855 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7856 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7857 " \$ 0!~/External *\|/{next};"\
7858 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7859 " {if(hide[section]) next};"\
7860 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7861 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7862 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7863 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7864 " ' prfx=^$ac_symprfx"
7865 else
7866 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7868 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7870 # Check to see that the pipe works correctly.
7871 pipe_works=no
7873 rm -f conftest*
7874 cat > conftest.$ac_ext <<_LT_EOF
7875 #ifdef __cplusplus
7876 extern "C" {
7877 #endif
7878 char nm_test_var;
7879 void nm_test_func(void);
7880 void nm_test_func(void){}
7881 #ifdef __cplusplus
7883 #endif
7884 int main(){nm_test_var='a';nm_test_func();return(0);}
7885 _LT_EOF
7887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7888 (eval $ac_compile) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 # Now try to grab the symbols.
7893 nlist=conftest.nm
7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7895 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7896 ac_status=$?
7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; } && test -s "$nlist"; then
7899 # Try sorting and uniquifying the output.
7900 if sort "$nlist" | uniq > "$nlist"T; then
7901 mv -f "$nlist"T "$nlist"
7902 else
7903 rm -f "$nlist"T
7906 # Make sure that we snagged all the symbols we need.
7907 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7908 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7909 cat <<_LT_EOF > conftest.$ac_ext
7910 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7911 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7912 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7913 relocations are performed -- see ld's documentation on pseudo-relocs. */
7914 # define LT_DLSYM_CONST
7915 #elif defined(__osf__)
7916 /* This system does not cope well with relocations in const data. */
7917 # define LT_DLSYM_CONST
7918 #else
7919 # define LT_DLSYM_CONST const
7920 #endif
7922 #ifdef __cplusplus
7923 extern "C" {
7924 #endif
7926 _LT_EOF
7927 # Now generate the symbol file.
7928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7930 cat <<_LT_EOF >> conftest.$ac_ext
7932 /* The mapping between symbol names and symbols. */
7933 LT_DLSYM_CONST struct {
7934 const char *name;
7935 void *address;
7937 lt__PROGRAM__LTX_preloaded_symbols[] =
7939 { "@PROGRAM@", (void *) 0 },
7940 _LT_EOF
7941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7942 cat <<\_LT_EOF >> conftest.$ac_ext
7943 {0, (void *) 0}
7946 /* This works around a problem in FreeBSD linker */
7947 #ifdef FREEBSD_WORKAROUND
7948 static const void *lt_preloaded_setup() {
7949 return lt__PROGRAM__LTX_preloaded_symbols;
7951 #endif
7953 #ifdef __cplusplus
7955 #endif
7956 _LT_EOF
7957 # Now try linking the two files.
7958 mv conftest.$ac_objext conftstm.$ac_objext
7959 lt_globsym_save_LIBS=$LIBS
7960 lt_globsym_save_CFLAGS=$CFLAGS
7961 LIBS="conftstm.$ac_objext"
7962 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7964 (eval $ac_link) 2>&5
7965 ac_status=$?
7966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7968 pipe_works=yes
7970 LIBS=$lt_globsym_save_LIBS
7971 CFLAGS=$lt_globsym_save_CFLAGS
7972 else
7973 echo "cannot find nm_test_func in $nlist" >&5
7975 else
7976 echo "cannot find nm_test_var in $nlist" >&5
7978 else
7979 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7981 else
7982 echo "$progname: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 rm -rf conftest* conftst*
7987 # Do not use the global_symbol_pipe unless it works.
7988 if test "$pipe_works" = yes; then
7989 break
7990 else
7991 lt_cv_sys_global_symbol_pipe=
7993 done
7997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7998 lt_cv_sys_global_symbol_to_cdecl=
8000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8002 $as_echo "failed" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8005 $as_echo "ok" >&6; }
8008 # Response file support.
8009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8010 nm_file_list_spec='@'
8011 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8012 nm_file_list_spec='@'
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8042 $as_echo_n "checking for sysroot... " >&6; }
8044 # Check whether --with-sysroot was given.
8045 if test "${with_sysroot+set}" = set; then :
8046 withval=$with_sysroot;
8047 else
8048 with_sysroot=no
8052 lt_sysroot=
8053 case ${with_sysroot} in #(
8054 yes)
8055 if test "$GCC" = yes; then
8056 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8058 ;; #(
8060 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8061 ;; #(
8062 no|'')
8063 ;; #(
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8066 $as_echo "${with_sysroot}" >&6; }
8067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8069 esac
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8072 $as_echo "${lt_sysroot:-no}" >&6; }
8078 # Check whether --enable-libtool-lock was given.
8079 if test "${enable_libtool_lock+set}" = set; then :
8080 enableval=$enable_libtool_lock;
8083 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8085 # Some flags need to be propagated to the compiler or linker for good
8086 # libtool support.
8087 case $host in
8088 ia64-*-hpux*)
8089 # Find out which ABI we are using.
8090 echo 'int i;' > conftest.$ac_ext
8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8092 (eval $ac_compile) 2>&5
8093 ac_status=$?
8094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8095 test $ac_status = 0; }; then
8096 case `/usr/bin/file conftest.$ac_objext` in
8097 *ELF-32*)
8098 HPUX_IA64_MODE="32"
8100 *ELF-64*)
8101 HPUX_IA64_MODE="64"
8103 esac
8105 rm -rf conftest*
8107 *-*-irix6*)
8108 # Find out which ABI we are using.
8109 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111 (eval $ac_compile) 2>&5
8112 ac_status=$?
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }; then
8115 if test "$lt_cv_prog_gnu_ld" = yes; then
8116 case `/usr/bin/file conftest.$ac_objext` in
8117 *32-bit*)
8118 LD="${LD-ld} -melf32bsmip"
8120 *N32*)
8121 LD="${LD-ld} -melf32bmipn32"
8123 *64-bit*)
8124 LD="${LD-ld} -melf64bmip"
8126 esac
8127 else
8128 case `/usr/bin/file conftest.$ac_objext` in
8129 *32-bit*)
8130 LD="${LD-ld} -32"
8132 *N32*)
8133 LD="${LD-ld} -n32"
8135 *64-bit*)
8136 LD="${LD-ld} -64"
8138 esac
8141 rm -rf conftest*
8144 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8145 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8146 # Find out which ABI we are using.
8147 echo 'int i;' > conftest.$ac_ext
8148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8149 (eval $ac_compile) 2>&5
8150 ac_status=$?
8151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152 test $ac_status = 0; }; then
8153 case `/usr/bin/file conftest.o` in
8154 *32-bit*)
8155 case $host in
8156 x86_64-*kfreebsd*-gnu)
8157 LD="${LD-ld} -m elf_i386_fbsd"
8159 x86_64-*linux*)
8160 LD="${LD-ld} -m elf_i386"
8162 ppc64-*linux*|powerpc64-*linux*)
8163 LD="${LD-ld} -m elf32ppclinux"
8165 s390x-*linux*)
8166 LD="${LD-ld} -m elf_s390"
8168 sparc64-*linux*)
8169 LD="${LD-ld} -m elf32_sparc"
8171 esac
8173 *64-bit*)
8174 case $host in
8175 x86_64-*kfreebsd*-gnu)
8176 LD="${LD-ld} -m elf_x86_64_fbsd"
8178 x86_64-*linux*)
8179 LD="${LD-ld} -m elf_x86_64"
8181 ppc*-*linux*|powerpc*-*linux*)
8182 LD="${LD-ld} -m elf64ppc"
8184 s390*-*linux*|s390*-*tpf*)
8185 LD="${LD-ld} -m elf64_s390"
8187 sparc*-*linux*)
8188 LD="${LD-ld} -m elf64_sparc"
8190 esac
8192 esac
8194 rm -rf conftest*
8197 *-*-sco3.2v5*)
8198 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8199 SAVE_CFLAGS="$CFLAGS"
8200 CFLAGS="$CFLAGS -belf"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8202 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8203 if ${lt_cv_cc_needs_belf+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 ac_ext=c
8207 ac_cpp='$CPP $CPPFLAGS'
8208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8216 main ()
8220 return 0;
8222 _ACEOF
8223 if ac_fn_c_try_link "$LINENO"; then :
8224 lt_cv_cc_needs_belf=yes
8225 else
8226 lt_cv_cc_needs_belf=no
8228 rm -f core conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 ac_ext=c
8231 ac_cpp='$CPP $CPPFLAGS'
8232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8238 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8241 CFLAGS="$SAVE_CFLAGS"
8244 *-*solaris*)
8245 # Find out which ABI we are using.
8246 echo 'int i;' > conftest.$ac_ext
8247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8248 (eval $ac_compile) 2>&5
8249 ac_status=$?
8250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; }; then
8252 case `/usr/bin/file conftest.o` in
8253 *64-bit*)
8254 case $lt_cv_prog_gnu_ld in
8255 yes*)
8256 case $host in
8257 i?86-*-solaris*)
8258 LD="${LD-ld} -m elf_x86_64"
8260 sparc*-*-solaris*)
8261 LD="${LD-ld} -m elf64_sparc"
8263 esac
8264 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8265 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8266 LD="${LD-ld}_sol2"
8270 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8271 LD="${LD-ld} -64"
8274 esac
8276 esac
8278 rm -rf conftest*
8280 esac
8282 need_locks="$enable_libtool_lock"
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}mt; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$MANIFEST_TOOL"; then
8293 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8312 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8313 if test -n "$MANIFEST_TOOL"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8315 $as_echo "$MANIFEST_TOOL" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8323 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8324 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8325 # Extract the first word of "mt", so it can be a program name with args.
8326 set dummy mt; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$ac_ct_MANIFEST_TOOL"; then
8333 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8346 done
8347 done
8348 IFS=$as_save_IFS
8352 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8353 if test -n "$ac_ct_MANIFEST_TOOL"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8355 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8361 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8362 MANIFEST_TOOL=":"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8372 else
8373 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8376 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8378 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8379 if ${lt_cv_path_mainfest_tool+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 lt_cv_path_mainfest_tool=no
8383 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8384 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8385 cat conftest.err >&5
8386 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8387 lt_cv_path_mainfest_tool=yes
8389 rm -f conftest*
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8392 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8393 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8394 MANIFEST_TOOL=:
8402 case $host_os in
8403 rhapsody* | darwin*)
8404 if test -n "$ac_tool_prefix"; then
8405 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8406 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$DSYMUTIL"; then
8413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8432 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8433 if test -n "$DSYMUTIL"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8435 $as_echo "$DSYMUTIL" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_prog_DSYMUTIL"; then
8444 ac_ct_DSYMUTIL=$DSYMUTIL
8445 # Extract the first word of "dsymutil", so it can be a program name with args.
8446 set dummy dsymutil; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$ac_ct_DSYMUTIL"; then
8453 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8472 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8473 if test -n "$ac_ct_DSYMUTIL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8475 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8481 if test "x$ac_ct_DSYMUTIL" = x; then
8482 DSYMUTIL=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 DSYMUTIL=$ac_ct_DSYMUTIL
8492 else
8493 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_NMEDIT+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$NMEDIT"; then
8505 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8520 IFS=$as_save_IFS
8524 NMEDIT=$ac_cv_prog_NMEDIT
8525 if test -n "$NMEDIT"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8527 $as_echo "$NMEDIT" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8535 if test -z "$ac_cv_prog_NMEDIT"; then
8536 ac_ct_NMEDIT=$NMEDIT
8537 # Extract the first word of "nmedit", so it can be a program name with args.
8538 set dummy nmedit; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$ac_ct_NMEDIT"; then
8545 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8565 if test -n "$ac_ct_NMEDIT"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8567 $as_echo "$ac_ct_NMEDIT" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8573 if test "x$ac_ct_NMEDIT" = x; then
8574 NMEDIT=":"
8575 else
8576 case $cross_compiling:$ac_tool_warned in
8577 yes:)
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8580 ac_tool_warned=yes ;;
8581 esac
8582 NMEDIT=$ac_ct_NMEDIT
8584 else
8585 NMEDIT="$ac_cv_prog_NMEDIT"
8588 if test -n "$ac_tool_prefix"; then
8589 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8590 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_LIPO+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$LIPO"; then
8597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8610 done
8611 done
8612 IFS=$as_save_IFS
8616 LIPO=$ac_cv_prog_LIPO
8617 if test -n "$LIPO"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8619 $as_echo "$LIPO" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8627 if test -z "$ac_cv_prog_LIPO"; then
8628 ac_ct_LIPO=$LIPO
8629 # Extract the first word of "lipo", so it can be a program name with args.
8630 set dummy lipo; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$ac_ct_LIPO"; then
8637 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_ac_ct_LIPO="lipo"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8656 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8657 if test -n "$ac_ct_LIPO"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8659 $as_echo "$ac_ct_LIPO" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8665 if test "x$ac_ct_LIPO" = x; then
8666 LIPO=":"
8667 else
8668 case $cross_compiling:$ac_tool_warned in
8669 yes:)
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8672 ac_tool_warned=yes ;;
8673 esac
8674 LIPO=$ac_ct_LIPO
8676 else
8677 LIPO="$ac_cv_prog_LIPO"
8680 if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8682 set dummy ${ac_tool_prefix}otool; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_OTOOL+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$OTOOL"; then
8689 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8708 OTOOL=$ac_cv_prog_OTOOL
8709 if test -n "$OTOOL"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8711 $as_echo "$OTOOL" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 if test -z "$ac_cv_prog_OTOOL"; then
8720 ac_ct_OTOOL=$OTOOL
8721 # Extract the first word of "otool", so it can be a program name with args.
8722 set dummy otool; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$ac_ct_OTOOL"; then
8729 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_OTOOL="otool"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8742 done
8743 done
8744 IFS=$as_save_IFS
8748 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8749 if test -n "$ac_ct_OTOOL"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8751 $as_echo "$ac_ct_OTOOL" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8757 if test "x$ac_ct_OTOOL" = x; then
8758 OTOOL=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761 yes:)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8765 esac
8766 OTOOL=$ac_ct_OTOOL
8768 else
8769 OTOOL="$ac_cv_prog_OTOOL"
8772 if test -n "$ac_tool_prefix"; then
8773 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8774 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_OTOOL64+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 if test -n "$OTOOL64"; then
8781 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8794 done
8795 done
8796 IFS=$as_save_IFS
8800 OTOOL64=$ac_cv_prog_OTOOL64
8801 if test -n "$OTOOL64"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8803 $as_echo "$OTOOL64" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8811 if test -z "$ac_cv_prog_OTOOL64"; then
8812 ac_ct_OTOOL64=$OTOOL64
8813 # Extract the first word of "otool64", so it can be a program name with args.
8814 set dummy otool64; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 if test -n "$ac_ct_OTOOL64"; then
8821 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_ac_ct_OTOOL64="otool64"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8840 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8841 if test -n "$ac_ct_OTOOL64"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8843 $as_echo "$ac_ct_OTOOL64" >&6; }
8844 else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8849 if test "x$ac_ct_OTOOL64" = x; then
8850 OTOOL64=":"
8851 else
8852 case $cross_compiling:$ac_tool_warned in
8853 yes:)
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8856 ac_tool_warned=yes ;;
8857 esac
8858 OTOOL64=$ac_ct_OTOOL64
8860 else
8861 OTOOL64="$ac_cv_prog_OTOOL64"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8891 $as_echo_n "checking for -single_module linker flag... " >&6; }
8892 if ${lt_cv_apple_cc_single_mod+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_apple_cc_single_mod=no
8896 if test -z "${LT_MULTI_MODULE}"; then
8897 # By default we will add the -single_module flag. You can override
8898 # by either setting the environment variable LT_MULTI_MODULE
8899 # non-empty at configure time, or by adding -multi_module to the
8900 # link flags.
8901 rm -rf libconftest.dylib*
8902 echo "int foo(void){return 1;}" > conftest.c
8903 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8904 -dynamiclib -Wl,-single_module conftest.c" >&5
8905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8906 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8907 _lt_result=$?
8908 # If there is a non-empty error log, and "single_module"
8909 # appears in it, assume the flag caused a linker warning
8910 if test -s conftest.err && $GREP single_module conftest.err; then
8911 cat conftest.err >&5
8912 # Otherwise, if the output was created with a 0 exit code from
8913 # the compiler, it worked.
8914 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8915 lt_cv_apple_cc_single_mod=yes
8916 else
8917 cat conftest.err >&5
8919 rm -rf libconftest.dylib*
8920 rm -f conftest.*
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8927 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8928 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_ld_exported_symbols_list=no
8932 save_LDFLAGS=$LDFLAGS
8933 echo "_main" > conftest.sym
8934 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8939 main ()
8943 return 0;
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 lt_cv_ld_exported_symbols_list=yes
8948 else
8949 lt_cv_ld_exported_symbols_list=no
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LDFLAGS="$save_LDFLAGS"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8957 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8960 $as_echo_n "checking for -force_load linker flag... " >&6; }
8961 if ${lt_cv_ld_force_load+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 lt_cv_ld_force_load=no
8965 cat > conftest.c << _LT_EOF
8966 int forced_loaded() { return 2;}
8967 _LT_EOF
8968 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8969 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8970 echo "$AR cru libconftest.a conftest.o" >&5
8971 $AR cru libconftest.a conftest.o 2>&5
8972 echo "$RANLIB libconftest.a" >&5
8973 $RANLIB libconftest.a 2>&5
8974 cat > conftest.c << _LT_EOF
8975 int main() { return 0;}
8976 _LT_EOF
8977 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8978 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8979 _lt_result=$?
8980 if test -s conftest.err && $GREP force_load conftest.err; then
8981 cat conftest.err >&5
8982 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8983 lt_cv_ld_force_load=yes
8984 else
8985 cat conftest.err >&5
8987 rm -f conftest.err libconftest.a conftest conftest.c
8988 rm -rf conftest.dSYM
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8992 $as_echo "$lt_cv_ld_force_load" >&6; }
8993 case $host_os in
8994 rhapsody* | darwin1.[012])
8995 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8996 darwin1.*)
8997 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8998 darwin*) # darwin 5.x on
8999 # if running on 10.5 or later, the deployment target defaults
9000 # to the OS version, if on x86, and 10.4, the deployment
9001 # target defaults to 10.4. Don't you love it?
9002 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9003 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9004 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9005 10.[012]*)
9006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9007 10.*)
9008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9009 esac
9011 esac
9012 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9013 _lt_dar_single_mod='$single_module'
9015 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9016 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9017 else
9018 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9020 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9021 _lt_dsymutil='~$DSYMUTIL $lib || :'
9022 else
9023 _lt_dsymutil=
9026 esac
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9030 $as_echo_n "checking for ANSI C header files... " >&6; }
9031 if ${ac_cv_header_stdc+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #include <stdlib.h>
9037 #include <stdarg.h>
9038 #include <string.h>
9039 #include <float.h>
9042 main ()
9046 return 0;
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050 ac_cv_header_stdc=yes
9051 else
9052 ac_cv_header_stdc=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 if test $ac_cv_header_stdc = yes; then
9057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 #include <string.h>
9062 _ACEOF
9063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9064 $EGREP "memchr" >/dev/null 2>&1; then :
9066 else
9067 ac_cv_header_stdc=no
9069 rm -f conftest*
9073 if test $ac_cv_header_stdc = yes; then
9074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 #include <stdlib.h>
9079 _ACEOF
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081 $EGREP "free" >/dev/null 2>&1; then :
9083 else
9084 ac_cv_header_stdc=no
9086 rm -f conftest*
9090 if test $ac_cv_header_stdc = yes; then
9091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9092 if test "$cross_compiling" = yes; then :
9094 else
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <ctype.h>
9098 #include <stdlib.h>
9099 #if ((' ' & 0x0FF) == 0x020)
9100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9102 #else
9103 # define ISLOWER(c) \
9104 (('a' <= (c) && (c) <= 'i') \
9105 || ('j' <= (c) && (c) <= 'r') \
9106 || ('s' <= (c) && (c) <= 'z'))
9107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9108 #endif
9110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9112 main ()
9114 int i;
9115 for (i = 0; i < 256; i++)
9116 if (XOR (islower (i), ISLOWER (i))
9117 || toupper (i) != TOUPPER (i))
9118 return 2;
9119 return 0;
9121 _ACEOF
9122 if ac_fn_c_try_run "$LINENO"; then :
9124 else
9125 ac_cv_header_stdc=no
9127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9128 conftest.$ac_objext conftest.beam conftest.$ac_ext
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9134 $as_echo "$ac_cv_header_stdc" >&6; }
9135 if test $ac_cv_header_stdc = yes; then
9137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9143 inttypes.h stdint.h unistd.h
9144 do :
9145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9149 cat >>confdefs.h <<_ACEOF
9150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9151 _ACEOF
9155 done
9158 for ac_header in dlfcn.h
9159 do :
9160 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9162 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_DLFCN_H 1
9165 _ACEOF
9169 done
9175 # Set options
9179 enable_dlopen=no
9182 enable_win32_dll=no
9185 # Check whether --enable-shared was given.
9186 if test "${enable_shared+set}" = set; then :
9187 enableval=$enable_shared; p=${PACKAGE-default}
9188 case $enableval in
9189 yes) enable_shared=yes ;;
9190 no) enable_shared=no ;;
9192 enable_shared=no
9193 # Look at the argument we got. We use all the common list separators.
9194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9195 for pkg in $enableval; do
9196 IFS="$lt_save_ifs"
9197 if test "X$pkg" = "X$p"; then
9198 enable_shared=yes
9200 done
9201 IFS="$lt_save_ifs"
9203 esac
9204 else
9205 enable_shared=yes
9216 # Check whether --enable-static was given.
9217 if test "${enable_static+set}" = set; then :
9218 enableval=$enable_static; p=${PACKAGE-default}
9219 case $enableval in
9220 yes) enable_static=yes ;;
9221 no) enable_static=no ;;
9223 enable_static=no
9224 # Look at the argument we got. We use all the common list separators.
9225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226 for pkg in $enableval; do
9227 IFS="$lt_save_ifs"
9228 if test "X$pkg" = "X$p"; then
9229 enable_static=yes
9231 done
9232 IFS="$lt_save_ifs"
9234 esac
9235 else
9236 enable_static=yes
9248 # Check whether --with-pic was given.
9249 if test "${with_pic+set}" = set; then :
9250 withval=$with_pic; lt_p=${PACKAGE-default}
9251 case $withval in
9252 yes|no) pic_mode=$withval ;;
9254 pic_mode=default
9255 # Look at the argument we got. We use all the common list separators.
9256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9257 for lt_pkg in $withval; do
9258 IFS="$lt_save_ifs"
9259 if test "X$lt_pkg" = "X$lt_p"; then
9260 pic_mode=yes
9262 done
9263 IFS="$lt_save_ifs"
9265 esac
9266 else
9267 pic_mode=default
9271 test -z "$pic_mode" && pic_mode=default
9279 # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281 enableval=$enable_fast_install; p=${PACKAGE-default}
9282 case $enableval in
9283 yes) enable_fast_install=yes ;;
9284 no) enable_fast_install=no ;;
9286 enable_fast_install=no
9287 # Look at the argument we got. We use all the common list separators.
9288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289 for pkg in $enableval; do
9290 IFS="$lt_save_ifs"
9291 if test "X$pkg" = "X$p"; then
9292 enable_fast_install=yes
9294 done
9295 IFS="$lt_save_ifs"
9297 esac
9298 else
9299 enable_fast_install=yes
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9347 test -z "$LN_S" && LN_S="ln -s"
9362 if test -n "${ZSH_VERSION+set}" ; then
9363 setopt NO_GLOB_SUBST
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374 lt_cv_objdir=.libs
9375 else
9376 # MS-DOS does not allow filenames that begin with a dot.
9377 lt_cv_objdir=_libs
9379 rmdir .libs 2>/dev/null
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9391 _ACEOF
9396 case $host_os in
9397 aix3*)
9398 # AIX sometimes has problems with the GCC collect2 program. For some
9399 # reason, if we set the COLLECT_NAMES environment variable, the problems
9400 # vanish in a puff of smoke.
9401 if test "X${COLLECT_NAMES+set}" != Xset; then
9402 COLLECT_NAMES=
9403 export COLLECT_NAMES
9406 esac
9408 # Global variables:
9409 ofile=libtool
9410 can_build_shared=yes
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9414 libext=a
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9418 old_CC="$CC"
9419 old_CFLAGS="$CFLAGS"
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9428 for cc_temp in $compiler""; do
9429 case $cc_temp in
9430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9432 \-*) ;;
9433 *) break;;
9434 esac
9435 done
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9442 file_magic*)
9443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 case $MAGIC_CMD in
9450 [\\/*] | ?:[\\/]*)
9451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9454 lt_save_MAGIC_CMD="$MAGIC_CMD"
9455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457 for ac_dir in $ac_dummy; do
9458 IFS="$lt_save_ifs"
9459 test -z "$ac_dir" && ac_dir=.
9460 if test -f $ac_dir/${ac_tool_prefix}file; then
9461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462 if test -n "$file_magic_test_file"; then
9463 case $deplibs_check_method in
9464 "file_magic "*)
9465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468 $EGREP "$file_magic_regex" > /dev/null; then
9470 else
9471 cat <<_LT_EOF 1>&2
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such. This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem. Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9482 _LT_EOF
9483 fi ;;
9484 esac
9486 break
9488 done
9489 IFS="$lt_save_ifs"
9490 MAGIC_CMD="$lt_save_MAGIC_CMD"
9492 esac
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509 if test -n "$ac_tool_prefix"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $MAGIC_CMD in
9516 [\\/*] | ?:[\\/]*)
9517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9520 lt_save_MAGIC_CMD="$MAGIC_CMD"
9521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523 for ac_dir in $ac_dummy; do
9524 IFS="$lt_save_ifs"
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f $ac_dir/file; then
9527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528 if test -n "$file_magic_test_file"; then
9529 case $deplibs_check_method in
9530 "file_magic "*)
9531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534 $EGREP "$file_magic_regex" > /dev/null; then
9536 else
9537 cat <<_LT_EOF 1>&2
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such. This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem. Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9548 _LT_EOF
9549 fi ;;
9550 esac
9552 break
9554 done
9555 IFS="$lt_save_ifs"
9556 MAGIC_CMD="$lt_save_MAGIC_CMD"
9558 esac
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9571 else
9572 MAGIC_CMD=:
9578 esac
9580 # Use C for the default configuration in the libtool script
9582 lt_save_CC="$CC"
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 # Source file extension for C test sources.
9591 ac_ext=c
9593 # Object file extension for compiled C test sources.
9594 objext=o
9595 objext=$objext
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9609 # If no C compiler was specified, use CC.
9610 LTCC=${LTCC-"$CC"}
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9615 # Allow CC to be a program name with arguments.
9616 compiler=$CC
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9627 $RM conftest*
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9633 $RM -r conftest*
9636 ## CAVEAT EMPTOR:
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9642 lt_prog_compiler_no_builtin_flag=
9644 if test "$GCC" = yes; then
9645 case $cc_basename in
9646 nvcc*)
9647 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9649 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9650 esac
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 lt_cv_prog_compiler_rtti_exceptions=no
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660 lt_compiler_flag="-fno-rtti -fno-exceptions"
9661 # Insert the option either (1) after the last *FLAGS variable, or
9662 # (2) before a word containing "conftest.", or (3) at the end.
9663 # Note that $ac_compile itself does not contain backslashes and begins
9664 # with a dollar sign (not a hyphen), so the echo should work correctly.
9665 # The option is referenced via a variable to avoid confusing sed.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>conftest.err)
9672 ac_status=$?
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 if (exit $ac_status) && test -s "$ac_outfile"; then
9676 # The compiler can only warn and ignore the option if not recognized
9677 # So say no if there are warnings other than the usual output.
9678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681 lt_cv_prog_compiler_rtti_exceptions=yes
9684 $RM conftest*
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9692 else
9703 lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9708 if test "$GCC" = yes; then
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_static='-static'
9712 case $host_os in
9713 aix*)
9714 # All AIX code is PIC.
9715 if test "$host_cpu" = ia64; then
9716 # AIX 5 now supports IA64 processor
9717 lt_prog_compiler_static='-Bstatic'
9721 amigaos*)
9722 case $host_cpu in
9723 powerpc)
9724 # see comment about AmigaOS4 .so support
9725 lt_prog_compiler_pic='-fPIC'
9727 m68k)
9728 # FIXME: we need at least 68020 code to build shared libraries, but
9729 # adding the `-m68020' flag to GCC prevents building anything better,
9730 # like `-m68040'.
9731 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9733 esac
9736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9737 # PIC is the default for these OSes.
9740 mingw* | cygwin* | pw32* | os2* | cegcc*)
9741 # This hack is so that the source file can tell whether it is being
9742 # built for inclusion in a dll (and should export symbols for example).
9743 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9744 # (--disable-auto-import) libraries
9745 lt_prog_compiler_pic='-DDLL_EXPORT'
9748 darwin* | rhapsody*)
9749 # PIC is the default on this platform
9750 # Common symbols not allowed in MH_DYLIB files
9751 lt_prog_compiler_pic='-fno-common'
9754 haiku*)
9755 # PIC is the default for Haiku.
9756 # The "-static" flag exists, but is broken.
9757 lt_prog_compiler_static=
9760 hpux*)
9761 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9762 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9763 # sets the default TLS model and affects inlining.
9764 case $host_cpu in
9765 hppa*64*)
9766 # +Z the default
9769 lt_prog_compiler_pic='-fPIC'
9771 esac
9774 interix[3-9]*)
9775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9776 # Instead, we relocate shared libraries at runtime.
9779 msdosdjgpp*)
9780 # Just because we use GCC doesn't mean we suddenly get shared libraries
9781 # on systems that don't support them.
9782 lt_prog_compiler_can_build_shared=no
9783 enable_shared=no
9786 *nto* | *qnx*)
9787 # QNX uses GNU C++, but need to define -shared option too, otherwise
9788 # it will coredump.
9789 lt_prog_compiler_pic='-fPIC -shared'
9792 sysv4*MP*)
9793 if test -d /usr/nec; then
9794 lt_prog_compiler_pic=-Kconform_pic
9799 lt_prog_compiler_pic='-fPIC'
9801 esac
9803 case $cc_basename in
9804 nvcc*) # Cuda Compiler Driver 2.2
9805 lt_prog_compiler_wl='-Xlinker '
9806 if test -n "$lt_prog_compiler_pic"; then
9807 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9810 esac
9811 else
9812 # PORTME Check for flag to pass linker flags through the system compiler.
9813 case $host_os in
9814 aix*)
9815 lt_prog_compiler_wl='-Wl,'
9816 if test "$host_cpu" = ia64; then
9817 # AIX 5 now supports IA64 processor
9818 lt_prog_compiler_static='-Bstatic'
9819 else
9820 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9824 mingw* | cygwin* | pw32* | os2* | cegcc*)
9825 # This hack is so that the source file can tell whether it is being
9826 # built for inclusion in a dll (and should export symbols for example).
9827 lt_prog_compiler_pic='-DDLL_EXPORT'
9830 hpux9* | hpux10* | hpux11*)
9831 lt_prog_compiler_wl='-Wl,'
9832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9833 # not for PA HP-UX.
9834 case $host_cpu in
9835 hppa*64*|ia64*)
9836 # +Z the default
9839 lt_prog_compiler_pic='+Z'
9841 esac
9842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9843 lt_prog_compiler_static='${wl}-a ${wl}archive'
9846 irix5* | irix6* | nonstopux*)
9847 lt_prog_compiler_wl='-Wl,'
9848 # PIC (with -KPIC) is the default.
9849 lt_prog_compiler_static='-non_shared'
9852 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9853 case $cc_basename in
9854 # old Intel for x86_64 which still supported -KPIC.
9855 ecc*)
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-KPIC'
9858 lt_prog_compiler_static='-static'
9860 # icc used to be incompatible with GCC.
9861 # ICC 10 doesn't accept -KPIC any more.
9862 icc* | ifort*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-fPIC'
9865 lt_prog_compiler_static='-static'
9867 # Lahey Fortran 8.1.
9868 lf95*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='--shared'
9871 lt_prog_compiler_static='--static'
9873 nagfor*)
9874 # NAG Fortran compiler
9875 lt_prog_compiler_wl='-Wl,-Wl,,'
9876 lt_prog_compiler_pic='-PIC'
9877 lt_prog_compiler_static='-Bstatic'
9879 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9880 # Portland Group compilers (*not* the Pentium gcc compiler,
9881 # which looks to be a dead project)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-fpic'
9884 lt_prog_compiler_static='-Bstatic'
9886 ccc*)
9887 lt_prog_compiler_wl='-Wl,'
9888 # All Alpha code is PIC.
9889 lt_prog_compiler_static='-non_shared'
9891 xl* | bgxl* | bgf* | mpixl*)
9892 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-qpic'
9895 lt_prog_compiler_static='-qstaticlink'
9898 case `$CC -V 2>&1 | sed 5q` in
9899 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9900 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-Bstatic'
9903 lt_prog_compiler_wl=''
9905 *Sun\ F* | *Sun*Fortran*)
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl='-Qoption ld '
9910 *Sun\ C*)
9911 # Sun C 5.9
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl='-Wl,'
9916 *Intel*\ [CF]*Compiler*)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-fPIC'
9919 lt_prog_compiler_static='-static'
9921 *Portland\ Group*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fpic'
9924 lt_prog_compiler_static='-Bstatic'
9926 esac
9928 esac
9931 newsos6)
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9936 *nto* | *qnx*)
9937 # QNX uses GNU C++, but need to define -shared option too, otherwise
9938 # it will coredump.
9939 lt_prog_compiler_pic='-fPIC -shared'
9942 osf3* | osf4* | osf5*)
9943 lt_prog_compiler_wl='-Wl,'
9944 # All OSF/1 code is PIC.
9945 lt_prog_compiler_static='-non_shared'
9948 rdos*)
9949 lt_prog_compiler_static='-non_shared'
9952 solaris*)
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 case $cc_basename in
9956 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9957 lt_prog_compiler_wl='-Qoption ld ';;
9959 lt_prog_compiler_wl='-Wl,';;
9960 esac
9963 sunos4*)
9964 lt_prog_compiler_wl='-Qoption ld '
9965 lt_prog_compiler_pic='-PIC'
9966 lt_prog_compiler_static='-Bstatic'
9969 sysv4 | sysv4.2uw2* | sysv4.3*)
9970 lt_prog_compiler_wl='-Wl,'
9971 lt_prog_compiler_pic='-KPIC'
9972 lt_prog_compiler_static='-Bstatic'
9975 sysv4*MP*)
9976 if test -d /usr/nec ;then
9977 lt_prog_compiler_pic='-Kconform_pic'
9978 lt_prog_compiler_static='-Bstatic'
9982 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_pic='-KPIC'
9985 lt_prog_compiler_static='-Bstatic'
9988 unicos*)
9989 lt_prog_compiler_wl='-Wl,'
9990 lt_prog_compiler_can_build_shared=no
9993 uts4*)
9994 lt_prog_compiler_pic='-pic'
9995 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_can_build_shared=no
10001 esac
10004 case $host_os in
10005 # For platforms which do not support PIC, -DPIC is meaningless:
10006 *djgpp*)
10007 lt_prog_compiler_pic=
10010 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10012 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016 if ${lt_cv_prog_compiler_pic+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10022 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10023 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10026 # Check to make sure the PIC flag actually works.
10028 if test -n "$lt_prog_compiler_pic"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10030 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10031 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 lt_cv_prog_compiler_pic_works=no
10035 ac_outfile=conftest.$ac_objext
10036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10037 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10038 # Insert the option either (1) after the last *FLAGS variable, or
10039 # (2) before a word containing "conftest.", or (3) at the end.
10040 # Note that $ac_compile itself does not contain backslashes and begins
10041 # with a dollar sign (not a hyphen), so the echo should work correctly.
10042 # The option is referenced via a variable to avoid confusing sed.
10043 lt_compile=`echo "$ac_compile" | $SED \
10044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046 -e 's:$: $lt_compiler_flag:'`
10047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10048 (eval "$lt_compile" 2>conftest.err)
10049 ac_status=$?
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 if (exit $ac_status) && test -s "$ac_outfile"; then
10053 # The compiler can only warn and ignore the option if not recognized
10054 # So say no if there are warnings other than the usual output.
10055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058 lt_cv_prog_compiler_pic_works=yes
10061 $RM conftest*
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10067 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10068 case $lt_prog_compiler_pic in
10069 "" | " "*) ;;
10070 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10071 esac
10072 else
10073 lt_prog_compiler_pic=
10074 lt_prog_compiler_can_build_shared=no
10090 # Check to make sure the static flag actually works.
10092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10095 if ${lt_cv_prog_compiler_static_works+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 lt_cv_prog_compiler_static_works=no
10099 save_LDFLAGS="$LDFLAGS"
10100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103 # The linker can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 if test -s conftest.err; then
10106 # Append any errors to the config.log.
10107 cat conftest.err 1>&5
10108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_static_works=yes
10113 else
10114 lt_cv_prog_compiler_static_works=yes
10117 $RM -r conftest*
10118 LDFLAGS="$save_LDFLAGS"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10126 else
10127 lt_prog_compiler_static=
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10138 if ${lt_cv_prog_compiler_c_o+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 lt_cv_prog_compiler_c_o=no
10142 $RM -r conftest 2>/dev/null
10143 mkdir conftest
10144 cd conftest
10145 mkdir out
10146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10148 lt_compiler_flag="-o out/conftest2.$ac_objext"
10149 # Insert the option either (1) after the last *FLAGS variable, or
10150 # (2) before a word containing "conftest.", or (3) at the end.
10151 # Note that $ac_compile itself does not contain backslashes and begins
10152 # with a dollar sign (not a hyphen), so the echo should work correctly.
10153 lt_compile=`echo "$ac_compile" | $SED \
10154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156 -e 's:$: $lt_compiler_flag:'`
10157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158 (eval "$lt_compile" 2>out/conftest.err)
10159 ac_status=$?
10160 cat out/conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10163 then
10164 # The compiler can only warn and ignore the option if not recognized
10165 # So say no if there are warnings
10166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10169 lt_cv_prog_compiler_c_o=yes
10172 chmod u+w . 2>&5
10173 $RM conftest*
10174 # SGI C++ compiler will create directory out/ii_files/ for
10175 # template instantiation
10176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10177 $RM out/* && rmdir out
10178 cd ..
10179 $RM -r conftest
10180 $RM conftest*
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10193 if ${lt_cv_prog_compiler_c_o+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 lt_cv_prog_compiler_c_o=no
10197 $RM -r conftest 2>/dev/null
10198 mkdir conftest
10199 cd conftest
10200 mkdir out
10201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="-o out/conftest2.$ac_objext"
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 lt_compile=`echo "$ac_compile" | $SED \
10209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211 -e 's:$: $lt_compiler_flag:'`
10212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213 (eval "$lt_compile" 2>out/conftest.err)
10214 ac_status=$?
10215 cat out/conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10218 then
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_c_o=yes
10227 chmod u+w . 2>&5
10228 $RM conftest*
10229 # SGI C++ compiler will create directory out/ii_files/ for
10230 # template instantiation
10231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10232 $RM out/* && rmdir out
10233 cd ..
10234 $RM -r conftest
10235 $RM conftest*
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10244 hard_links="nottested"
10245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10246 # do not overwrite the value of need_locks provided by the user
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10248 $as_echo_n "checking if we can lock with hard links... " >&6; }
10249 hard_links=yes
10250 $RM conftest*
10251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10252 touch conftest.a
10253 ln conftest.a conftest.b 2>&5 || hard_links=no
10254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10256 $as_echo "$hard_links" >&6; }
10257 if test "$hard_links" = no; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10260 need_locks=warn
10262 else
10263 need_locks=no
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10274 runpath_var=
10275 allow_undefined_flag=
10276 always_export_symbols=no
10277 archive_cmds=
10278 archive_expsym_cmds=
10279 compiler_needs_object=no
10280 enable_shared_with_static_runtimes=no
10281 export_dynamic_flag_spec=
10282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10283 hardcode_automatic=no
10284 hardcode_direct=no
10285 hardcode_direct_absolute=no
10286 hardcode_libdir_flag_spec=
10287 hardcode_libdir_separator=
10288 hardcode_minus_L=no
10289 hardcode_shlibpath_var=unsupported
10290 inherit_rpath=no
10291 link_all_deplibs=unknown
10292 module_cmds=
10293 module_expsym_cmds=
10294 old_archive_from_new_cmds=
10295 old_archive_from_expsyms_cmds=
10296 thread_safe_flag_spec=
10297 whole_archive_flag_spec=
10298 # include_expsyms should be a list of space-separated symbols to be *always*
10299 # included in the symbol list
10300 include_expsyms=
10301 # exclude_expsyms can be an extended regexp of symbols to exclude
10302 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10303 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10304 # as well as any symbol that contains `d'.
10305 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10306 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10307 # platforms (ab)use it in PIC code, but their linkers get confused if
10308 # the symbol is explicitly referenced. Since portable code cannot
10309 # rely on this symbol name, it's probably fine to never include it in
10310 # preloaded symbol tables.
10311 # Exclude shared library initialization/finalization symbols.
10312 extract_expsyms_cmds=
10314 case $host_os in
10315 cygwin* | mingw* | pw32* | cegcc*)
10316 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10317 # When not using gcc, we currently assume that we are using
10318 # Microsoft Visual C++.
10319 if test "$GCC" != yes; then
10320 with_gnu_ld=no
10323 interix*)
10324 # we just hope/assume this is gcc and not c89 (= MSVC++)
10325 with_gnu_ld=yes
10327 openbsd*)
10328 with_gnu_ld=no
10330 esac
10332 ld_shlibs=yes
10334 # On some targets, GNU ld is compatible enough with the native linker
10335 # that we're better off using the native interface for both.
10336 lt_use_gnu_ld_interface=no
10337 if test "$with_gnu_ld" = yes; then
10338 case $host_os in
10339 aix*)
10340 # The AIX port of GNU ld has always aspired to compatibility
10341 # with the native linker. However, as the warning in the GNU ld
10342 # block says, versions before 2.19.5* couldn't really create working
10343 # shared libraries, regardless of the interface used.
10344 case `$LD -v 2>&1` in
10345 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10346 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10347 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10349 lt_use_gnu_ld_interface=yes
10351 esac
10354 lt_use_gnu_ld_interface=yes
10356 esac
10359 if test "$lt_use_gnu_ld_interface" = yes; then
10360 # If archive_cmds runs LD, not CC, wlarc should be empty
10361 wlarc='${wl}'
10363 # Set some defaults for GNU ld with shared library support. These
10364 # are reset later if shared libraries are not supported. Putting them
10365 # here allows them to be overridden if necessary.
10366 runpath_var=LD_RUN_PATH
10367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10368 export_dynamic_flag_spec='${wl}--export-dynamic'
10369 # ancient GNU ld didn't support --whole-archive et. al.
10370 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10372 else
10373 whole_archive_flag_spec=
10375 supports_anon_versioning=no
10376 case `$LD -v 2>&1` in
10377 *GNU\ gold*) supports_anon_versioning=yes ;;
10378 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10379 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10380 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10381 *\ 2.11.*) ;; # other 2.11 versions
10382 *) supports_anon_versioning=yes ;;
10383 esac
10385 # See if GNU ld supports shared libraries.
10386 case $host_os in
10387 aix[3-9]*)
10388 # On AIX/PPC, the GNU linker is very broken
10389 if test "$host_cpu" != ia64; then
10390 ld_shlibs=no
10391 cat <<_LT_EOF 1>&2
10393 *** Warning: the GNU linker, at least up to release 2.19, is reported
10394 *** to be unable to reliably create shared libraries on AIX.
10395 *** Therefore, libtool is disabling shared libraries support. If you
10396 *** really care for shared libraries, you may want to install binutils
10397 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10398 *** You will then need to restart the configuration process.
10400 _LT_EOF
10404 amigaos*)
10405 case $host_cpu in
10406 powerpc)
10407 # see comment about AmigaOS4 .so support
10408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10409 archive_expsym_cmds=''
10411 m68k)
10412 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)'
10413 hardcode_libdir_flag_spec='-L$libdir'
10414 hardcode_minus_L=yes
10416 esac
10419 beos*)
10420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10421 allow_undefined_flag=unsupported
10422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10423 # support --undefined. This deserves some investigation. FIXME
10424 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 else
10426 ld_shlibs=no
10430 cygwin* | mingw* | pw32* | cegcc*)
10431 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10432 # as there is no search path for DLLs.
10433 hardcode_libdir_flag_spec='-L$libdir'
10434 export_dynamic_flag_spec='${wl}--export-all-symbols'
10435 allow_undefined_flag=unsupported
10436 always_export_symbols=no
10437 enable_shared_with_static_runtimes=yes
10438 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'
10439 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10443 # If the export-symbols file already is a .def file (1st line
10444 # is EXPORTS), use it as is; otherwise, prepend...
10445 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10446 cp $export_symbols $output_objdir/$soname.def;
10447 else
10448 echo EXPORTS > $output_objdir/$soname.def;
10449 cat $export_symbols >> $output_objdir/$soname.def;
10451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452 else
10453 ld_shlibs=no
10457 haiku*)
10458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10459 link_all_deplibs=yes
10462 interix[3-9]*)
10463 hardcode_direct=no
10464 hardcode_shlibpath_var=no
10465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10466 export_dynamic_flag_spec='${wl}-E'
10467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10468 # Instead, shared libraries are loaded at an image base (0x10000000 by
10469 # default) and relocated if they conflict, which is a slow very memory
10470 # consuming and fragmenting process. To avoid this, we pick a random,
10471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10474 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'
10477 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10478 tmp_diet=no
10479 if test "$host_os" = linux-dietlibc; then
10480 case $cc_basename in
10481 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10482 esac
10484 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10485 && test "$tmp_diet" = no
10486 then
10487 tmp_addflag=' $pic_flag'
10488 tmp_sharedflag='-shared'
10489 case $cc_basename,$host_cpu in
10490 pgcc*) # Portland Group C compiler
10491 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'
10492 tmp_addflag=' $pic_flag'
10494 pgf77* | pgf90* | pgf95* | pgfortran*)
10495 # Portland Group f77 and f90 compilers
10496 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'
10497 tmp_addflag=' $pic_flag -Mnomain' ;;
10498 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10499 tmp_addflag=' -i_dynamic' ;;
10500 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10501 tmp_addflag=' -i_dynamic -nofor_main' ;;
10502 ifc* | ifort*) # Intel Fortran compiler
10503 tmp_addflag=' -nofor_main' ;;
10504 lf95*) # Lahey Fortran 8.1
10505 whole_archive_flag_spec=
10506 tmp_sharedflag='--shared' ;;
10507 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10508 tmp_sharedflag='-qmkshrobj'
10509 tmp_addflag= ;;
10510 nvcc*) # Cuda Compiler Driver 2.2
10511 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'
10512 compiler_needs_object=yes
10514 esac
10515 case `$CC -V 2>&1 | sed 5q` in
10516 *Sun\ C*) # Sun C 5.9
10517 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'
10518 compiler_needs_object=yes
10519 tmp_sharedflag='-G' ;;
10520 *Sun\ F*) # Sun Fortran 8.3
10521 tmp_sharedflag='-G' ;;
10522 esac
10523 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10525 if test "x$supports_anon_versioning" = xyes; then
10526 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10528 echo "local: *; };" >> $output_objdir/$libname.ver~
10529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10532 case $cc_basename in
10533 xlf* | bgf* | bgxlf* | mpixlf*)
10534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10535 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10537 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10538 if test "x$supports_anon_versioning" = xyes; then
10539 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10541 echo "local: *; };" >> $output_objdir/$libname.ver~
10542 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10545 esac
10546 else
10547 ld_shlibs=no
10551 netbsd*)
10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10553 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10554 wlarc=
10555 else
10556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10561 solaris*)
10562 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10563 ld_shlibs=no
10564 cat <<_LT_EOF 1>&2
10566 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10567 *** create shared libraries on Solaris systems. Therefore, libtool
10568 *** is disabling shared libraries support. We urge you to upgrade GNU
10569 *** binutils to release 2.9.1 or newer. Another option is to modify
10570 *** your PATH or compiler configuration so that the native linker is
10571 *** used, and then restart.
10573 _LT_EOF
10574 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10577 else
10578 ld_shlibs=no
10582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10583 case `$LD -v 2>&1` in
10584 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10585 ld_shlibs=no
10586 cat <<_LT_EOF 1>&2
10588 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10589 *** reliably create shared libraries on SCO systems. Therefore, libtool
10590 *** is disabling shared libraries support. We urge you to upgrade GNU
10591 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10592 *** your PATH or compiler configuration so that the native linker is
10593 *** used, and then restart.
10595 _LT_EOF
10598 # For security reasons, it is highly recommended that you always
10599 # use absolute paths for naming shared libraries, and exclude the
10600 # DT_RUNPATH tag from executables and libraries. But doing so
10601 # requires that you compile everything twice, which is a pain.
10602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10606 else
10607 ld_shlibs=no
10610 esac
10613 sunos4*)
10614 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10615 wlarc=
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10624 else
10625 ld_shlibs=no
10628 esac
10630 if test "$ld_shlibs" = no; then
10631 runpath_var=
10632 hardcode_libdir_flag_spec=
10633 export_dynamic_flag_spec=
10634 whole_archive_flag_spec=
10636 else
10637 # PORTME fill in a description of your system's linker (not GNU ld)
10638 case $host_os in
10639 aix3*)
10640 allow_undefined_flag=unsupported
10641 always_export_symbols=yes
10642 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'
10643 # Note: this linker hardcodes the directories in LIBPATH if there
10644 # are no directories specified by -L.
10645 hardcode_minus_L=yes
10646 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10647 # Neither direct hardcoding nor static linking is supported with a
10648 # broken collect2.
10649 hardcode_direct=unsupported
10653 aix[4-9]*)
10654 if test "$host_cpu" = ia64; then
10655 # On IA64, the linker does run time linking by default, so we don't
10656 # have to do anything special.
10657 aix_use_runtimelinking=no
10658 exp_sym_flag='-Bexport'
10659 no_entry_flag=""
10660 else
10661 # If we're using GNU nm, then we don't want the "-C" option.
10662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10663 # Also, AIX nm treats weak defined symbols like other global
10664 # defined symbols, whereas GNU nm marks them as "W".
10665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10666 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10667 else
10668 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10670 aix_use_runtimelinking=no
10672 # Test if we are trying to use run time linking or normal
10673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10674 # need to do runtime linking.
10675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10676 for ld_flag in $LDFLAGS; do
10677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10678 aix_use_runtimelinking=yes
10679 break
10681 done
10683 esac
10685 exp_sym_flag='-bexport'
10686 no_entry_flag='-bnoentry'
10689 # When large executables or shared objects are built, AIX ld can
10690 # have problems creating the table of contents. If linking a library
10691 # or program results in "error TOC overflow" add -mminimal-toc to
10692 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10693 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10695 archive_cmds=''
10696 hardcode_direct=yes
10697 hardcode_direct_absolute=yes
10698 hardcode_libdir_separator=':'
10699 link_all_deplibs=yes
10700 file_list_spec='${wl}-f,'
10702 if test "$GCC" = yes; then
10703 case $host_os in aix4.[012]|aix4.[012].*)
10704 # We only want to do this on AIX 4.2 and lower, the check
10705 # below for broken collect2 doesn't work under 4.3+
10706 collect2name=`${CC} -print-prog-name=collect2`
10707 if test -f "$collect2name" &&
10708 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10709 then
10710 # We have reworked collect2
10712 else
10713 # We have old collect2
10714 hardcode_direct=unsupported
10715 # It fails to find uninstalled libraries when the uninstalled
10716 # path is not listed in the libpath. Setting hardcode_minus_L
10717 # to unsupported forces relinking
10718 hardcode_minus_L=yes
10719 hardcode_libdir_flag_spec='-L$libdir'
10720 hardcode_libdir_separator=
10723 esac
10724 shared_flag='-shared'
10725 if test "$aix_use_runtimelinking" = yes; then
10726 shared_flag="$shared_flag "'${wl}-G'
10728 else
10729 # not using gcc
10730 if test "$host_cpu" = ia64; then
10731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10732 # chokes on -Wl,-G. The following line is correct:
10733 shared_flag='-G'
10734 else
10735 if test "$aix_use_runtimelinking" = yes; then
10736 shared_flag='${wl}-G'
10737 else
10738 shared_flag='${wl}-bM:SRE'
10743 export_dynamic_flag_spec='${wl}-bexpall'
10744 # It seems that -bexpall does not export symbols beginning with
10745 # underscore (_), so it is better to generate a list of symbols to export.
10746 always_export_symbols=yes
10747 if test "$aix_use_runtimelinking" = yes; then
10748 # Warning - without using the other runtime loading flags (-brtl),
10749 # -berok will link without error, but may produce a broken library.
10750 allow_undefined_flag='-berok'
10751 # Determine the default libpath from the value encoded in an
10752 # empty executable.
10753 if test "${lt_cv_aix_libpath+set}" = set; then
10754 aix_libpath=$lt_cv_aix_libpath
10755 else
10756 if ${lt_cv_aix_libpath_+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10763 main ()
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10772 lt_aix_libpath_sed='
10773 /Import File Strings/,/^$/ {
10774 /^0/ {
10775 s/^0 *\([^ ]*\) *$/\1/
10779 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780 # Check for a 64-bit object if we didn't find anything.
10781 if test -z "$lt_cv_aix_libpath_"; then
10782 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 if test -z "$lt_cv_aix_libpath_"; then
10788 lt_cv_aix_libpath_="/usr/lib:/lib"
10793 aix_libpath=$lt_cv_aix_libpath_
10796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10797 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10798 else
10799 if test "$host_cpu" = ia64; then
10800 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10801 allow_undefined_flag="-z nodefs"
10802 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"
10803 else
10804 # Determine the default libpath from the value encoded in an
10805 # empty executable.
10806 if test "${lt_cv_aix_libpath+set}" = set; then
10807 aix_libpath=$lt_cv_aix_libpath
10808 else
10809 if ${lt_cv_aix_libpath_+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10816 main ()
10820 return 0;
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10825 lt_aix_libpath_sed='
10826 /Import File Strings/,/^$/ {
10827 /^0/ {
10828 s/^0 *\([^ ]*\) *$/\1/
10832 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 if test -z "$lt_cv_aix_libpath_"; then
10841 lt_cv_aix_libpath_="/usr/lib:/lib"
10846 aix_libpath=$lt_cv_aix_libpath_
10849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10850 # Warning - without using the other run time loading flags,
10851 # -berok will link without error, but may produce a broken library.
10852 no_undefined_flag=' ${wl}-bernotok'
10853 allow_undefined_flag=' ${wl}-berok'
10854 if test "$with_gnu_ld" = yes; then
10855 # We only use this code for GNU lds that support --whole-archive.
10856 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10857 else
10858 # Exported symbols can be pulled into shared objects from archives
10859 whole_archive_flag_spec='$convenience'
10861 archive_cmds_need_lc=yes
10862 # This is similar to how AIX traditionally builds its shared libraries.
10863 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10868 amigaos*)
10869 case $host_cpu in
10870 powerpc)
10871 # see comment about AmigaOS4 .so support
10872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10873 archive_expsym_cmds=''
10875 m68k)
10876 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)'
10877 hardcode_libdir_flag_spec='-L$libdir'
10878 hardcode_minus_L=yes
10880 esac
10883 bsdi[45]*)
10884 export_dynamic_flag_spec=-rdynamic
10887 cygwin* | mingw* | pw32* | cegcc*)
10888 # When not using gcc, we currently assume that we are using
10889 # Microsoft Visual C++.
10890 # hardcode_libdir_flag_spec is actually meaningless, as there is
10891 # no search path for DLLs.
10892 case $cc_basename in
10893 cl*)
10894 # Native MSVC
10895 hardcode_libdir_flag_spec=' '
10896 allow_undefined_flag=unsupported
10897 always_export_symbols=yes
10898 file_list_spec='@'
10899 # Tell ltmain to make .lib files, not .a files.
10900 libext=lib
10901 # Tell ltmain to make .dll files, not .so files.
10902 shrext_cmds=".dll"
10903 # FIXME: Setting linknames here is a bad hack.
10904 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10905 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10906 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10907 else
10908 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10910 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10911 linknames='
10912 # The linker will not automatically build a static lib if we build a DLL.
10913 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10914 enable_shared_with_static_runtimes=yes
10915 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10917 # Don't use ranlib
10918 old_postinstall_cmds='chmod 644 $oldlib'
10919 postlink_cmds='lt_outputfile="@OUTPUT@"~
10920 lt_tool_outputfile="@TOOL_OUTPUT@"~
10921 case $lt_outputfile in
10922 *.exe|*.EXE) ;;
10924 lt_outputfile="$lt_outputfile.exe"
10925 lt_tool_outputfile="$lt_tool_outputfile.exe"
10927 esac~
10928 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10929 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10930 $RM "$lt_outputfile.manifest";
10934 # Assume MSVC wrapper
10935 hardcode_libdir_flag_spec=' '
10936 allow_undefined_flag=unsupported
10937 # Tell ltmain to make .lib files, not .a files.
10938 libext=lib
10939 # Tell ltmain to make .dll files, not .so files.
10940 shrext_cmds=".dll"
10941 # FIXME: Setting linknames here is a bad hack.
10942 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10943 # The linker will automatically build a .lib file if we build a DLL.
10944 old_archive_from_new_cmds='true'
10945 # FIXME: Should let the user specify the lib program.
10946 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10947 enable_shared_with_static_runtimes=yes
10949 esac
10952 darwin* | rhapsody*)
10955 archive_cmds_need_lc=no
10956 hardcode_direct=no
10957 hardcode_automatic=yes
10958 hardcode_shlibpath_var=unsupported
10959 if test "$lt_cv_ld_force_load" = "yes"; then
10960 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\"`'
10962 else
10963 whole_archive_flag_spec=''
10965 link_all_deplibs=yes
10966 allow_undefined_flag="$_lt_dar_allow_undefined"
10967 case $cc_basename in
10968 ifort*) _lt_dar_can_shared=yes ;;
10969 *) _lt_dar_can_shared=$GCC ;;
10970 esac
10971 if test "$_lt_dar_can_shared" = "yes"; then
10972 output_verbose_link_cmd=func_echo_all
10973 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10974 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10975 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}"
10976 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}"
10978 else
10979 ld_shlibs=no
10984 dgux*)
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_libdir_flag_spec='-L$libdir'
10987 hardcode_shlibpath_var=no
10990 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10991 # support. Future versions do this automatically, but an explicit c++rt0.o
10992 # does not break anything, and helps significantly (at the cost of a little
10993 # extra space).
10994 freebsd2.2*)
10995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10996 hardcode_libdir_flag_spec='-R$libdir'
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
11001 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11002 freebsd2.*)
11003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11004 hardcode_direct=yes
11005 hardcode_minus_L=yes
11006 hardcode_shlibpath_var=no
11009 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11010 freebsd* | dragonfly*)
11011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11012 hardcode_libdir_flag_spec='-R$libdir'
11013 hardcode_direct=yes
11014 hardcode_shlibpath_var=no
11017 hpux9*)
11018 if test "$GCC" = yes; then
11019 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11020 else
11021 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11024 hardcode_libdir_separator=:
11025 hardcode_direct=yes
11027 # hardcode_minus_L: Not really in the search PATH,
11028 # but as the default location of the library.
11029 hardcode_minus_L=yes
11030 export_dynamic_flag_spec='${wl}-E'
11033 hpux10*)
11034 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11036 else
11037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039 if test "$with_gnu_ld" = no; then
11040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 hardcode_direct=yes
11043 hardcode_direct_absolute=yes
11044 export_dynamic_flag_spec='${wl}-E'
11045 # hardcode_minus_L: Not really in the search PATH,
11046 # but as the default location of the library.
11047 hardcode_minus_L=yes
11051 hpux11*)
11052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11053 case $host_cpu in
11054 hppa*64*)
11055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 ia64*)
11058 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063 esac
11064 else
11065 case $host_cpu in
11066 hppa*64*)
11067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11069 ia64*)
11070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074 # Older versions of the 11.00 compiler do not understand -b yet
11075 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11077 $as_echo_n "checking if $CC understands -b... " >&6; }
11078 if ${lt_cv_prog_compiler__b+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 lt_cv_prog_compiler__b=no
11082 save_LDFLAGS="$LDFLAGS"
11083 LDFLAGS="$LDFLAGS -b"
11084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11086 # The linker can only warn and ignore the option if not recognized
11087 # So say no if there are warnings
11088 if test -s conftest.err; then
11089 # Append any errors to the config.log.
11090 cat conftest.err 1>&5
11091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11093 if diff conftest.exp conftest.er2 >/dev/null; then
11094 lt_cv_prog_compiler__b=yes
11096 else
11097 lt_cv_prog_compiler__b=yes
11100 $RM -r conftest*
11101 LDFLAGS="$save_LDFLAGS"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11107 if test x"$lt_cv_prog_compiler__b" = xyes; then
11108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11109 else
11110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11114 esac
11116 if test "$with_gnu_ld" = no; then
11117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11118 hardcode_libdir_separator=:
11120 case $host_cpu in
11121 hppa*64*|ia64*)
11122 hardcode_direct=no
11123 hardcode_shlibpath_var=no
11126 hardcode_direct=yes
11127 hardcode_direct_absolute=yes
11128 export_dynamic_flag_spec='${wl}-E'
11130 # hardcode_minus_L: Not really in the search PATH,
11131 # but as the default location of the library.
11132 hardcode_minus_L=yes
11134 esac
11138 irix5* | irix6* | nonstopux*)
11139 if test "$GCC" = yes; then
11140 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'
11141 # Try to use the -exported_symbol ld option, if it does not
11142 # work, assume that -exports_file does not work either and
11143 # implicitly export all symbols.
11144 # This should be the same for all languages, so no per-tag cache variable.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11146 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11147 if ${lt_cv_irix_exported_symbol+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 save_LDFLAGS="$LDFLAGS"
11151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154 int foo (void) { return 0; }
11155 _ACEOF
11156 if ac_fn_c_try_link "$LINENO"; then :
11157 lt_cv_irix_exported_symbol=yes
11158 else
11159 lt_cv_irix_exported_symbol=no
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LDFLAGS="$save_LDFLAGS"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11166 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11167 if test "$lt_cv_irix_exported_symbol" = yes; then
11168 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'
11170 else
11171 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'
11172 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'
11174 archive_cmds_need_lc='no'
11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176 hardcode_libdir_separator=:
11177 inherit_rpath=yes
11178 link_all_deplibs=yes
11181 netbsd*)
11182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11184 else
11185 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11187 hardcode_libdir_flag_spec='-R$libdir'
11188 hardcode_direct=yes
11189 hardcode_shlibpath_var=no
11192 newsos6)
11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_direct=yes
11195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196 hardcode_libdir_separator=:
11197 hardcode_shlibpath_var=no
11200 *nto* | *qnx*)
11203 openbsd*)
11204 if test -f /usr/libexec/ld.so; then
11205 hardcode_direct=yes
11206 hardcode_shlibpath_var=no
11207 hardcode_direct_absolute=yes
11208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212 export_dynamic_flag_spec='${wl}-E'
11213 else
11214 case $host_os in
11215 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_libdir_flag_spec='-R$libdir'
11220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11223 esac
11225 else
11226 ld_shlibs=no
11230 os2*)
11231 hardcode_libdir_flag_spec='-L$libdir'
11232 hardcode_minus_L=yes
11233 allow_undefined_flag=unsupported
11234 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11235 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11238 osf3*)
11239 if test "$GCC" = yes; then
11240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11241 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'
11242 else
11243 allow_undefined_flag=' -expect_unresolved \*'
11244 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'
11246 archive_cmds_need_lc='no'
11247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11248 hardcode_libdir_separator=:
11251 osf4* | osf5*) # as osf3* with the addition of -msym flag
11252 if test "$GCC" = yes; then
11253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254 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'
11255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11256 else
11257 allow_undefined_flag=' -expect_unresolved \*'
11258 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'
11259 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~
11260 $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'
11262 # Both c and cxx compiler support -rpath directly
11263 hardcode_libdir_flag_spec='-rpath $libdir'
11265 archive_cmds_need_lc='no'
11266 hardcode_libdir_separator=:
11269 solaris*)
11270 no_undefined_flag=' -z defs'
11271 if test "$GCC" = yes; then
11272 wlarc='${wl}'
11273 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11275 $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'
11276 else
11277 case `$CC -V 2>&1` in
11278 *"Compilers 5.0"*)
11279 wlarc=''
11280 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11285 wlarc='${wl}'
11286 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11290 esac
11292 hardcode_libdir_flag_spec='-R$libdir'
11293 hardcode_shlibpath_var=no
11294 case $host_os in
11295 solaris2.[0-5] | solaris2.[0-5].*) ;;
11297 # The compiler driver will combine and reorder linker options,
11298 # but understands `-z linker_flag'. GCC discards it without `$wl',
11299 # but is careful enough not to reorder.
11300 # Supported since Solaris 2.6 (maybe 2.5.1?)
11301 if test "$GCC" = yes; then
11302 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11303 else
11304 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11307 esac
11308 link_all_deplibs=yes
11311 sunos4*)
11312 if test "x$host_vendor" = xsequent; then
11313 # Use $CC to link under sequent, because it throws in some extra .o
11314 # files that make .init and .fini sections work.
11315 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11316 else
11317 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11319 hardcode_libdir_flag_spec='-L$libdir'
11320 hardcode_direct=yes
11321 hardcode_minus_L=yes
11322 hardcode_shlibpath_var=no
11325 sysv4)
11326 case $host_vendor in
11327 sni)
11328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329 hardcode_direct=yes # is this really true???
11331 siemens)
11332 ## LD is ld it makes a PLAMLIB
11333 ## CC just makes a GrossModule.
11334 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11335 reload_cmds='$CC -r -o $output$reload_objs'
11336 hardcode_direct=no
11338 motorola)
11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11342 esac
11343 runpath_var='LD_RUN_PATH'
11344 hardcode_shlibpath_var=no
11347 sysv4.3*)
11348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_shlibpath_var=no
11350 export_dynamic_flag_spec='-Bexport'
11353 sysv4*MP*)
11354 if test -d /usr/nec; then
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_shlibpath_var=no
11357 runpath_var=LD_RUN_PATH
11358 hardcode_runpath_var=yes
11359 ld_shlibs=yes
11363 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11364 no_undefined_flag='${wl}-z,text'
11365 archive_cmds_need_lc=no
11366 hardcode_shlibpath_var=no
11367 runpath_var='LD_RUN_PATH'
11369 if test "$GCC" = yes; then
11370 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 else
11373 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 sysv5* | sco3.2v5* | sco5v6*)
11379 # Note: We can NOT use -z defs as we might desire, because we do not
11380 # link with -lc, and that would cause any symbols used from libc to
11381 # always be unresolved, which means just about no library would
11382 # ever link correctly. If we're not using GNU ld we use -z text
11383 # though, which does catch some bad symbols but isn't as heavy-handed
11384 # as -z defs.
11385 no_undefined_flag='${wl}-z,text'
11386 allow_undefined_flag='${wl}-z,nodefs'
11387 archive_cmds_need_lc=no
11388 hardcode_shlibpath_var=no
11389 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11390 hardcode_libdir_separator=':'
11391 link_all_deplibs=yes
11392 export_dynamic_flag_spec='${wl}-Bexport'
11393 runpath_var='LD_RUN_PATH'
11395 if test "$GCC" = yes; then
11396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 else
11399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 uts4*)
11405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406 hardcode_libdir_flag_spec='-L$libdir'
11407 hardcode_shlibpath_var=no
11411 ld_shlibs=no
11413 esac
11415 if test x$host_vendor = xsni; then
11416 case $host in
11417 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11418 export_dynamic_flag_spec='${wl}-Blargedynsym'
11420 esac
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11425 $as_echo "$ld_shlibs" >&6; }
11426 test "$ld_shlibs" = no && can_build_shared=no
11428 with_gnu_ld=$with_gnu_ld
11445 # Do we need to explicitly link libc?
11447 case "x$archive_cmds_need_lc" in
11448 x|xyes)
11449 # Assume -lc should be added
11450 archive_cmds_need_lc=yes
11452 if test "$enable_shared" = yes && test "$GCC" = yes; then
11453 case $archive_cmds in
11454 *'~'*)
11455 # FIXME: we may have to deal with multi-command sequences.
11457 '$CC '*)
11458 # Test whether the compiler implicitly links with -lc since on some
11459 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11460 # to ld, don't add -lc before -lgcc.
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11463 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 $RM conftest*
11467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11470 (eval $ac_compile) 2>&5
11471 ac_status=$?
11472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473 test $ac_status = 0; } 2>conftest.err; then
11474 soname=conftest
11475 lib=conftest
11476 libobjs=conftest.$ac_objext
11477 deplibs=
11478 wl=$lt_prog_compiler_wl
11479 pic_flag=$lt_prog_compiler_pic
11480 compiler_flags=-v
11481 linker_flags=-v
11482 verstring=
11483 output_objdir=.
11484 libname=conftest
11485 lt_save_allow_undefined_flag=$allow_undefined_flag
11486 allow_undefined_flag=
11487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11488 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11489 ac_status=$?
11490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491 test $ac_status = 0; }
11492 then
11493 lt_cv_archive_cmds_need_lc=no
11494 else
11495 lt_cv_archive_cmds_need_lc=yes
11497 allow_undefined_flag=$lt_save_allow_undefined_flag
11498 else
11499 cat conftest.err 1>&5
11501 $RM conftest*
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11505 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11506 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11508 esac
11511 esac
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11667 if test "$GCC" = yes; then
11668 case $host_os in
11669 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11670 *) lt_awk_arg="/^libraries:/" ;;
11671 esac
11672 case $host_os in
11673 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11674 *) lt_sed_strip_eq="s,=/,/,g" ;;
11675 esac
11676 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11677 case $lt_search_path_spec in
11678 *\;*)
11679 # if the path contains ";" then we assume it to be the separator
11680 # otherwise default to the standard path separator (i.e. ":") - it is
11681 # assumed that no part of a normal pathname contains ";" but that should
11682 # okay in the real world where ";" in dirpaths is itself problematic.
11683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11688 esac
11689 # Ok, now we have the path, separated by spaces, we can step through it
11690 # and add multilib dir if necessary.
11691 lt_tmp_lt_search_path_spec=
11692 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11693 for lt_sys_path in $lt_search_path_spec; do
11694 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11695 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11696 else
11697 test -d "$lt_sys_path" && \
11698 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11700 done
11701 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11702 BEGIN {RS=" "; FS="/|\n";} {
11703 lt_foo="";
11704 lt_count=0;
11705 for (lt_i = NF; lt_i > 0; lt_i--) {
11706 if ($lt_i != "" && $lt_i != ".") {
11707 if ($lt_i == "..") {
11708 lt_count++;
11709 } else {
11710 if (lt_count == 0) {
11711 lt_foo="/" $lt_i lt_foo;
11712 } else {
11713 lt_count--;
11718 if (lt_foo != "") { lt_freq[lt_foo]++; }
11719 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11721 # AWK program above erroneously prepends '/' to C:/dos/paths
11722 # for these hosts.
11723 case $host_os in
11724 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11725 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11726 esac
11727 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11728 else
11729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11731 library_names_spec=
11732 libname_spec='lib$name'
11733 soname_spec=
11734 shrext_cmds=".so"
11735 postinstall_cmds=
11736 postuninstall_cmds=
11737 finish_cmds=
11738 finish_eval=
11739 shlibpath_var=
11740 shlibpath_overrides_runpath=unknown
11741 version_type=none
11742 dynamic_linker="$host_os ld.so"
11743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11744 need_lib_prefix=unknown
11745 hardcode_into_libs=no
11747 # when you set need_version to no, make sure it does not cause -set_version
11748 # flags to be left without arguments
11749 need_version=unknown
11751 case $host_os in
11752 aix3*)
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11755 shlibpath_var=LIBPATH
11757 # AIX 3 has no versioning support, so we append a major version to the name.
11758 soname_spec='${libname}${release}${shared_ext}$major'
11761 aix[4-9]*)
11762 version_type=linux # correct to gnu/linux during the next big refactor
11763 need_lib_prefix=no
11764 need_version=no
11765 hardcode_into_libs=yes
11766 if test "$host_cpu" = ia64; then
11767 # AIX 5 supports IA64
11768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 else
11771 # With GCC up to 2.95.x, collect2 would create an import file
11772 # for dependence libraries. The import file would start with
11773 # the line `#! .'. This would cause the generated library to
11774 # depend on `.', always an invalid library. This was fixed in
11775 # development snapshots of GCC prior to 3.0.
11776 case $host_os in
11777 aix4 | aix4.[01] | aix4.[01].*)
11778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11779 echo ' yes '
11780 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11782 else
11783 can_build_shared=no
11786 esac
11787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11788 # soname into executable. Probably we can add versioning support to
11789 # collect2, so additional links can be useful in future.
11790 if test "$aix_use_runtimelinking" = yes; then
11791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11792 # instead of lib<name>.a to let people know that these are not
11793 # typical AIX shared libraries.
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 else
11796 # We preserve .a as extension for shared libraries through AIX4.2
11797 # and later when we are not doing run time linking.
11798 library_names_spec='${libname}${release}.a $libname.a'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LIBPATH
11805 amigaos*)
11806 case $host_cpu in
11807 powerpc)
11808 # Since July 2007 AmigaOS4 officially supports .so libraries.
11809 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 m68k)
11813 library_names_spec='$libname.ixlibrary $libname.a'
11814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11815 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11817 esac
11820 beos*)
11821 library_names_spec='${libname}${shared_ext}'
11822 dynamic_linker="$host_os ld.so"
11823 shlibpath_var=LIBRARY_PATH
11826 bsdi[45]*)
11827 version_type=linux # correct to gnu/linux during the next big refactor
11828 need_version=no
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11835 # the default ld.so.conf also contains /usr/contrib/lib and
11836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11837 # libtool to hard-code these into programs
11840 cygwin* | mingw* | pw32* | cegcc*)
11841 version_type=windows
11842 shrext_cmds=".dll"
11843 need_version=no
11844 need_lib_prefix=no
11846 case $GCC,$cc_basename in
11847 yes,*)
11848 # gcc
11849 library_names_spec='$libname.dll.a'
11850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851 postinstall_cmds='base_file=`basename \${file}`~
11852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11853 dldir=$destdir/`dirname \$dlpath`~
11854 test -d \$dldir || mkdir -p \$dldir~
11855 $install_prog $dir/$dlname \$dldir/$dlname~
11856 chmod a+x \$dldir/$dlname~
11857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11861 dlpath=$dir/\$dldll~
11862 $RM \$dlpath'
11863 shlibpath_overrides_runpath=yes
11865 case $host_os in
11866 cygwin*)
11867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11870 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11872 mingw* | cegcc*)
11873 # MinGW DLLs use traditional 'lib' prefix
11874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11876 pw32*)
11877 # pw32 DLLs use 'pw' prefix rather than 'lib'
11878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11880 esac
11881 dynamic_linker='Win32 ld.exe'
11884 *,cl*)
11885 # Native MSVC
11886 libname_spec='$name'
11887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 library_names_spec='${libname}.dll.lib'
11890 case $build_os in
11891 mingw*)
11892 sys_lib_search_path_spec=
11893 lt_save_ifs=$IFS
11894 IFS=';'
11895 for lt_path in $LIB
11897 IFS=$lt_save_ifs
11898 # Let DOS variable expansion print the short 8.3 style file name.
11899 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11900 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11901 done
11902 IFS=$lt_save_ifs
11903 # Convert to MSYS style.
11904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11906 cygwin*)
11907 # Convert to unix form, then to dos form, then back to unix form
11908 # but this time dos style (no spaces!) so that the unix form looks
11909 # like /cygdrive/c/PROGRA~1:/cygdr...
11910 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11911 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11912 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11915 sys_lib_search_path_spec="$LIB"
11916 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11917 # It is most probably a Windows format PATH.
11918 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919 else
11920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11922 # FIXME: find the short name or the path components, as spaces are
11923 # common. (e.g. "Program Files" -> "PROGRA~1")
11925 esac
11927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11928 postinstall_cmds='base_file=`basename \${file}`~
11929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11930 dldir=$destdir/`dirname \$dlpath`~
11931 test -d \$dldir || mkdir -p \$dldir~
11932 $install_prog $dir/$dlname \$dldir/$dlname'
11933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11934 dlpath=$dir/\$dldll~
11935 $RM \$dlpath'
11936 shlibpath_overrides_runpath=yes
11937 dynamic_linker='Win32 link.exe'
11941 # Assume MSVC wrapper
11942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11943 dynamic_linker='Win32 ld.exe'
11945 esac
11946 # FIXME: first we should search . and the directory the executable is in
11947 shlibpath_var=PATH
11950 darwin* | rhapsody*)
11951 dynamic_linker="$host_os dyld"
11952 version_type=darwin
11953 need_lib_prefix=no
11954 need_version=no
11955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11956 soname_spec='${libname}${release}${major}$shared_ext'
11957 shlibpath_overrides_runpath=yes
11958 shlibpath_var=DYLD_LIBRARY_PATH
11959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11965 dgux*)
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 need_lib_prefix=no
11968 need_version=no
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11974 freebsd* | dragonfly*)
11975 # DragonFly does not have aout. When/if they implement a new
11976 # versioning mechanism, adjust this.
11977 if test -x /usr/bin/objformat; then
11978 objformat=`/usr/bin/objformat`
11979 else
11980 case $host_os in
11981 freebsd[23].*) objformat=aout ;;
11982 *) objformat=elf ;;
11983 esac
11985 version_type=freebsd-$objformat
11986 case $version_type in
11987 freebsd-elf*)
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11989 need_version=no
11990 need_lib_prefix=no
11992 freebsd-*)
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11994 need_version=yes
11996 esac
11997 shlibpath_var=LD_LIBRARY_PATH
11998 case $host_os in
11999 freebsd2.*)
12000 shlibpath_overrides_runpath=yes
12002 freebsd3.[01]* | freebsdelf3.[01]*)
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008 shlibpath_overrides_runpath=no
12009 hardcode_into_libs=yes
12011 *) # from 4.6 on, and DragonFly
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12015 esac
12018 gnu*)
12019 version_type=linux # correct to gnu/linux during the next big refactor
12020 need_lib_prefix=no
12021 need_version=no
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=no
12026 hardcode_into_libs=yes
12029 haiku*)
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 need_lib_prefix=no
12032 need_version=no
12033 dynamic_linker="$host_os runtime_loader"
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12035 soname_spec='${libname}${release}${shared_ext}$major'
12036 shlibpath_var=LIBRARY_PATH
12037 shlibpath_overrides_runpath=yes
12038 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12039 hardcode_into_libs=yes
12042 hpux9* | hpux10* | hpux11*)
12043 # Give a soname corresponding to the major version so that dld.sl refuses to
12044 # link against other versions.
12045 version_type=sunos
12046 need_lib_prefix=no
12047 need_version=no
12048 case $host_cpu in
12049 ia64*)
12050 shrext_cmds='.so'
12051 hardcode_into_libs=yes
12052 dynamic_linker="$host_os dld.so"
12053 shlibpath_var=LD_LIBRARY_PATH
12054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 if test "X$HPUX_IA64_MODE" = X32; then
12058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12059 else
12060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064 hppa*64*)
12065 shrext_cmds='.sl'
12066 hardcode_into_libs=yes
12067 dynamic_linker="$host_os dld.sl"
12068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 soname_spec='${libname}${release}${shared_ext}$major'
12072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076 shrext_cmds='.sl'
12077 dynamic_linker="$host_os dld.sl"
12078 shlibpath_var=SHLIB_PATH
12079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 soname_spec='${libname}${release}${shared_ext}$major'
12083 esac
12084 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12085 postinstall_cmds='chmod 555 $lib'
12086 # or fails outright, so override atomically:
12087 install_override_mode=555
12090 interix[3-9]*)
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 shlibpath_overrides_runpath=no
12099 hardcode_into_libs=yes
12102 irix5* | irix6* | nonstopux*)
12103 case $host_os in
12104 nonstopux*) version_type=nonstopux ;;
12106 if test "$lt_cv_prog_gnu_ld" = yes; then
12107 version_type=linux # correct to gnu/linux during the next big refactor
12108 else
12109 version_type=irix
12110 fi ;;
12111 esac
12112 need_lib_prefix=no
12113 need_version=no
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12116 case $host_os in
12117 irix5* | nonstopux*)
12118 libsuff= shlibsuff=
12121 case $LD in # libtool.m4 will add one of these switches to LD
12122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12123 libsuff= shlibsuff= libmagic=32-bit;;
12124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12125 libsuff=32 shlibsuff=N32 libmagic=N32;;
12126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12128 *) libsuff= shlibsuff= libmagic=never-match;;
12129 esac
12131 esac
12132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12133 shlibpath_overrides_runpath=no
12134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12136 hardcode_into_libs=yes
12139 # No shared lib support for Linux oldld, aout, or coff.
12140 linux*oldld* | linux*aout* | linux*coff*)
12141 dynamic_linker=no
12144 # This must be glibc/ELF.
12145 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12146 version_type=linux # correct to gnu/linux during the next big refactor
12147 need_lib_prefix=no
12148 need_version=no
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12155 # Some binutils ld are patched to set DT_RUNPATH
12156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 lt_cv_shlibpath_overrides_runpath=no
12160 save_LDFLAGS=$LDFLAGS
12161 save_libdir=$libdir
12162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12168 main ()
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12177 lt_cv_shlibpath_overrides_runpath=yes
12180 rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12182 LDFLAGS=$save_LDFLAGS
12183 libdir=$save_libdir
12187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12189 # This implies no fast_install, which is unacceptable.
12190 # Some rework will be needed to allow for fast_install
12191 # before this can be enabled.
12192 hardcode_into_libs=yes
12194 # Append ld.so.conf contents to the search path
12195 if test -f /etc/ld.so.conf; then
12196 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' ' '`
12197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12200 # We used to test for /lib/ld.so.1 and disable shared libraries on
12201 # powerpc, because MkLinux only supported shared libraries with the
12202 # GNU dynamic linker. Since this was broken with cross compilers,
12203 # most powerpc-linux boxes support dynamic linking these days and
12204 # people can always --disable-shared, the test was removed, and we
12205 # assume the GNU/Linux dynamic linker is in use.
12206 dynamic_linker='GNU/Linux ld.so'
12209 netbsd*)
12210 version_type=sunos
12211 need_lib_prefix=no
12212 need_version=no
12213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12216 dynamic_linker='NetBSD (a.out) ld.so'
12217 else
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12219 soname_spec='${libname}${release}${shared_ext}$major'
12220 dynamic_linker='NetBSD ld.elf_so'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12224 hardcode_into_libs=yes
12227 newsos6)
12228 version_type=linux # correct to gnu/linux during the next big refactor
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12234 *nto* | *qnx*)
12235 version_type=qnx
12236 need_lib_prefix=no
12237 need_version=no
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=no
12242 hardcode_into_libs=yes
12243 dynamic_linker='ldqnx.so'
12246 openbsd*)
12247 version_type=sunos
12248 sys_lib_dlsearch_path_spec="/usr/lib"
12249 need_lib_prefix=no
12250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12251 case $host_os in
12252 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12253 *) need_version=no ;;
12254 esac
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12259 case $host_os in
12260 openbsd2.[89] | openbsd2.[89].*)
12261 shlibpath_overrides_runpath=no
12264 shlibpath_overrides_runpath=yes
12266 esac
12267 else
12268 shlibpath_overrides_runpath=yes
12272 os2*)
12273 libname_spec='$name'
12274 shrext_cmds=".dll"
12275 need_lib_prefix=no
12276 library_names_spec='$libname${shared_ext} $libname.a'
12277 dynamic_linker='OS/2 ld.exe'
12278 shlibpath_var=LIBPATH
12281 osf3* | osf4* | osf5*)
12282 version_type=osf
12283 need_lib_prefix=no
12284 need_version=no
12285 soname_spec='${libname}${release}${shared_ext}$major'
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 shlibpath_var=LD_LIBRARY_PATH
12288 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12289 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12292 rdos*)
12293 dynamic_linker=no
12296 solaris*)
12297 version_type=linux # correct to gnu/linux during the next big refactor
12298 need_lib_prefix=no
12299 need_version=no
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=yes
12304 hardcode_into_libs=yes
12305 # ldd complains unless libraries are executable
12306 postinstall_cmds='chmod +x $lib'
12309 sunos4*)
12310 version_type=sunos
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=yes
12315 if test "$with_gnu_ld" = yes; then
12316 need_lib_prefix=no
12318 need_version=yes
12321 sysv4 | sysv4.3*)
12322 version_type=linux # correct to gnu/linux during the next big refactor
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324 soname_spec='${libname}${release}${shared_ext}$major'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 case $host_vendor in
12327 sni)
12328 shlibpath_overrides_runpath=no
12329 need_lib_prefix=no
12330 runpath_var=LD_RUN_PATH
12332 siemens)
12333 need_lib_prefix=no
12335 motorola)
12336 need_lib_prefix=no
12337 need_version=no
12338 shlibpath_overrides_runpath=no
12339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12341 esac
12344 sysv4*MP*)
12345 if test -d /usr/nec ;then
12346 version_type=linux # correct to gnu/linux during the next big refactor
12347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12348 soname_spec='$libname${shared_ext}.$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12354 version_type=freebsd-elf
12355 need_lib_prefix=no
12356 need_version=no
12357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12358 soname_spec='${libname}${release}${shared_ext}$major'
12359 shlibpath_var=LD_LIBRARY_PATH
12360 shlibpath_overrides_runpath=yes
12361 hardcode_into_libs=yes
12362 if test "$with_gnu_ld" = yes; then
12363 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12364 else
12365 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12366 case $host_os in
12367 sco3.2v5*)
12368 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12370 esac
12372 sys_lib_dlsearch_path_spec='/usr/lib'
12375 tpf*)
12376 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12377 version_type=linux # correct to gnu/linux during the next big refactor
12378 need_lib_prefix=no
12379 need_version=no
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 shlibpath_overrides_runpath=no
12383 hardcode_into_libs=yes
12386 uts4*)
12387 version_type=linux # correct to gnu/linux during the next big refactor
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12389 soname_spec='${libname}${release}${shared_ext}$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12394 dynamic_linker=no
12396 esac
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12398 $as_echo "$dynamic_linker" >&6; }
12399 test "$dynamic_linker" = no && can_build_shared=no
12401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12402 if test "$GCC" = yes; then
12403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12406 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12407 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12409 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12410 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12506 hardcode_action=
12507 if test -n "$hardcode_libdir_flag_spec" ||
12508 test -n "$runpath_var" ||
12509 test "X$hardcode_automatic" = "Xyes" ; then
12511 # We can hardcode non-existent directories.
12512 if test "$hardcode_direct" != no &&
12513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12514 # have to relink, otherwise we might link with an installed library
12515 # when we should be linking with a yet-to-be-installed one
12516 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12517 test "$hardcode_minus_L" != no; then
12518 # Linking always hardcodes the temporary library directory.
12519 hardcode_action=relink
12520 else
12521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12522 hardcode_action=immediate
12524 else
12525 # We cannot hardcode anything, or else we can only hardcode existing
12526 # directories.
12527 hardcode_action=unsupported
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12530 $as_echo "$hardcode_action" >&6; }
12532 if test "$hardcode_action" = relink ||
12533 test "$inherit_rpath" = yes; then
12534 # Fast installation is not supported
12535 enable_fast_install=no
12536 elif test "$shlibpath_overrides_runpath" = yes ||
12537 test "$enable_shared" = no; then
12538 # Fast installation is not necessary
12539 enable_fast_install=needless
12547 if test "x$enable_dlopen" != xyes; then
12548 enable_dlopen=unknown
12549 enable_dlopen_self=unknown
12550 enable_dlopen_self_static=unknown
12551 else
12552 lt_cv_dlopen=no
12553 lt_cv_dlopen_libs=
12555 case $host_os in
12556 beos*)
12557 lt_cv_dlopen="load_add_on"
12558 lt_cv_dlopen_libs=
12559 lt_cv_dlopen_self=yes
12562 mingw* | pw32* | cegcc*)
12563 lt_cv_dlopen="LoadLibrary"
12564 lt_cv_dlopen_libs=
12567 cygwin*)
12568 lt_cv_dlopen="dlopen"
12569 lt_cv_dlopen_libs=
12572 darwin*)
12573 # if libdl is installed we need to link against it
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12575 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12576 if ${ac_cv_lib_dl_dlopen+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-ldl $LIBS"
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char dlopen ();
12592 main ()
12594 return dlopen ();
12596 return 0;
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_dl_dlopen=yes
12601 else
12602 ac_cv_lib_dl_dlopen=no
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12609 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12610 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12612 else
12614 lt_cv_dlopen="dyld"
12615 lt_cv_dlopen_libs=
12616 lt_cv_dlopen_self=yes
12623 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12624 if test "x$ac_cv_func_shl_load" = xyes; then :
12625 lt_cv_dlopen="shl_load"
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12628 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12629 if ${ac_cv_lib_dld_shl_load+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-ldld $LIBS"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 char shl_load ();
12645 main ()
12647 return shl_load ();
12649 return 0;
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_lib_dld_shl_load=yes
12654 else
12655 ac_cv_lib_dld_shl_load=no
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12662 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12663 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12664 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12665 else
12666 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12667 if test "x$ac_cv_func_dlopen" = xyes; then :
12668 lt_cv_dlopen="dlopen"
12669 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12672 if ${ac_cv_lib_dl_dlopen+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-ldl $LIBS"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char dlopen ();
12688 main ()
12690 return dlopen ();
12692 return 0;
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_dl_dlopen=yes
12697 else
12698 ac_cv_lib_dl_dlopen=no
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12706 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12710 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12711 if ${ac_cv_lib_svld_dlopen+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lsvld $LIBS"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char dlopen ();
12727 main ()
12729 return dlopen ();
12731 return 0;
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 ac_cv_lib_svld_dlopen=yes
12736 else
12737 ac_cv_lib_svld_dlopen=no
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 LIBS=$ac_check_lib_save_LIBS
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12744 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12745 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12749 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12750 if ${ac_cv_lib_dld_dld_link+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-ldld $LIBS"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char dld_link ();
12766 main ()
12768 return dld_link ();
12770 return 0;
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 ac_cv_lib_dld_dld_link=yes
12775 else
12776 ac_cv_lib_dld_dld_link=no
12778 rm -f core conftest.err conftest.$ac_objext \
12779 conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12783 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12784 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12785 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12804 esac
12806 if test "x$lt_cv_dlopen" != xno; then
12807 enable_dlopen=yes
12808 else
12809 enable_dlopen=no
12812 case $lt_cv_dlopen in
12813 dlopen)
12814 save_CPPFLAGS="$CPPFLAGS"
12815 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12817 save_LDFLAGS="$LDFLAGS"
12818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12820 save_LIBS="$LIBS"
12821 LIBS="$lt_cv_dlopen_libs $LIBS"
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12824 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12825 if ${lt_cv_dlopen_self+:} false; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 if test "$cross_compiling" = yes; then :
12829 lt_cv_dlopen_self=cross
12830 else
12831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12832 lt_status=$lt_dlunknown
12833 cat > conftest.$ac_ext <<_LT_EOF
12834 #line $LINENO "configure"
12835 #include "confdefs.h"
12837 #if HAVE_DLFCN_H
12838 #include <dlfcn.h>
12839 #endif
12841 #include <stdio.h>
12843 #ifdef RTLD_GLOBAL
12844 # define LT_DLGLOBAL RTLD_GLOBAL
12845 #else
12846 # ifdef DL_GLOBAL
12847 # define LT_DLGLOBAL DL_GLOBAL
12848 # else
12849 # define LT_DLGLOBAL 0
12850 # endif
12851 #endif
12853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12854 find out it does not work in some platform. */
12855 #ifndef LT_DLLAZY_OR_NOW
12856 # ifdef RTLD_LAZY
12857 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12858 # else
12859 # ifdef DL_LAZY
12860 # define LT_DLLAZY_OR_NOW DL_LAZY
12861 # else
12862 # ifdef RTLD_NOW
12863 # define LT_DLLAZY_OR_NOW RTLD_NOW
12864 # else
12865 # ifdef DL_NOW
12866 # define LT_DLLAZY_OR_NOW DL_NOW
12867 # else
12868 # define LT_DLLAZY_OR_NOW 0
12869 # endif
12870 # endif
12871 # endif
12872 # endif
12873 #endif
12875 /* When -fvisbility=hidden is used, assume the code has been annotated
12876 correspondingly for the symbols needed. */
12877 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12878 int fnord () __attribute__((visibility("default")));
12879 #endif
12881 int fnord () { return 42; }
12882 int main ()
12884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12885 int status = $lt_dlunknown;
12887 if (self)
12889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12890 else
12892 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12893 else puts (dlerror ());
12895 /* dlclose (self); */
12897 else
12898 puts (dlerror ());
12900 return status;
12902 _LT_EOF
12903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12904 (eval $ac_link) 2>&5
12905 ac_status=$?
12906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12907 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12908 (./conftest; exit; ) >&5 2>/dev/null
12909 lt_status=$?
12910 case x$lt_status in
12911 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12912 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12913 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12914 esac
12915 else :
12916 # compilation failed
12917 lt_cv_dlopen_self=no
12920 rm -fr conftest*
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12925 $as_echo "$lt_cv_dlopen_self" >&6; }
12927 if test "x$lt_cv_dlopen_self" = xyes; then
12928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12930 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12931 if ${lt_cv_dlopen_self_static+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 if test "$cross_compiling" = yes; then :
12935 lt_cv_dlopen_self_static=cross
12936 else
12937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12938 lt_status=$lt_dlunknown
12939 cat > conftest.$ac_ext <<_LT_EOF
12940 #line $LINENO "configure"
12941 #include "confdefs.h"
12943 #if HAVE_DLFCN_H
12944 #include <dlfcn.h>
12945 #endif
12947 #include <stdio.h>
12949 #ifdef RTLD_GLOBAL
12950 # define LT_DLGLOBAL RTLD_GLOBAL
12951 #else
12952 # ifdef DL_GLOBAL
12953 # define LT_DLGLOBAL DL_GLOBAL
12954 # else
12955 # define LT_DLGLOBAL 0
12956 # endif
12957 #endif
12959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12960 find out it does not work in some platform. */
12961 #ifndef LT_DLLAZY_OR_NOW
12962 # ifdef RTLD_LAZY
12963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12964 # else
12965 # ifdef DL_LAZY
12966 # define LT_DLLAZY_OR_NOW DL_LAZY
12967 # else
12968 # ifdef RTLD_NOW
12969 # define LT_DLLAZY_OR_NOW RTLD_NOW
12970 # else
12971 # ifdef DL_NOW
12972 # define LT_DLLAZY_OR_NOW DL_NOW
12973 # else
12974 # define LT_DLLAZY_OR_NOW 0
12975 # endif
12976 # endif
12977 # endif
12978 # endif
12979 #endif
12981 /* When -fvisbility=hidden is used, assume the code has been annotated
12982 correspondingly for the symbols needed. */
12983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12984 int fnord () __attribute__((visibility("default")));
12985 #endif
12987 int fnord () { return 42; }
12988 int main ()
12990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12991 int status = $lt_dlunknown;
12993 if (self)
12995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12996 else
12998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12999 else puts (dlerror ());
13001 /* dlclose (self); */
13003 else
13004 puts (dlerror ());
13006 return status;
13008 _LT_EOF
13009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13010 (eval $ac_link) 2>&5
13011 ac_status=$?
13012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13013 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13014 (./conftest; exit; ) >&5 2>/dev/null
13015 lt_status=$?
13016 case x$lt_status in
13017 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13018 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13019 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13020 esac
13021 else :
13022 # compilation failed
13023 lt_cv_dlopen_self_static=no
13026 rm -fr conftest*
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13031 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13034 CPPFLAGS="$save_CPPFLAGS"
13035 LDFLAGS="$save_LDFLAGS"
13036 LIBS="$save_LIBS"
13038 esac
13040 case $lt_cv_dlopen_self in
13041 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13042 *) enable_dlopen_self=unknown ;;
13043 esac
13045 case $lt_cv_dlopen_self_static in
13046 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13047 *) enable_dlopen_self_static=unknown ;;
13048 esac
13067 striplib=
13068 old_striplib=
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13070 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13071 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13072 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13073 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13075 $as_echo "yes" >&6; }
13076 else
13077 # FIXME - insert some real tests, host_os isn't really good enough
13078 case $host_os in
13079 darwin*)
13080 if test -n "$STRIP" ; then
13081 striplib="$STRIP -x"
13082 old_striplib="$STRIP -S"
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13094 esac
13108 # Report which library types will actually be built
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13110 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13112 $as_echo "$can_build_shared" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13115 $as_echo_n "checking whether to build shared libraries... " >&6; }
13116 test "$can_build_shared" = "no" && enable_shared=no
13118 # On AIX, shared libraries and static libraries use the same namespace, and
13119 # are all built from PIC.
13120 case $host_os in
13121 aix3*)
13122 test "$enable_shared" = yes && enable_static=no
13123 if test -n "$RANLIB"; then
13124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13125 postinstall_cmds='$RANLIB $lib'
13129 aix[4-9]*)
13130 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13131 test "$enable_shared" = yes && enable_static=no
13134 esac
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13136 $as_echo "$enable_shared" >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13139 $as_echo_n "checking whether to build static libraries... " >&6; }
13140 # Make sure either enable_shared or enable_static is yes.
13141 test "$enable_shared" = yes || enable_static=yes
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13143 $as_echo "$enable_static" >&6; }
13149 ac_ext=c
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155 CC="$lt_save_CC"
13171 ac_config_commands="$ac_config_commands libtool"
13176 # Only expand once:
13181 # Extract the first word of "ar", so it can be a program name with args.
13182 set dummy ar; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_path_AR+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 case $AR in
13189 [\\/]* | ?:[\\/]*)
13190 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13204 done
13205 done
13206 IFS=$as_save_IFS
13208 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13210 esac
13212 AR=$ac_cv_path_AR
13213 if test -n "$AR"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13215 $as_echo "$AR" >&6; }
13216 else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13222 # Extract the first word of "rm", so it can be a program name with args.
13223 set dummy rm; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_path_RM+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 case $RM in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13247 IFS=$as_save_IFS
13249 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13251 esac
13253 RM=$ac_cv_path_RM
13254 if test -n "$RM"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13256 $as_echo "$RM" >&6; }
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13263 # Extract the first word of "cp", so it can be a program name with args.
13264 set dummy cp; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_path_CP+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 case $CP in
13271 [\\/]* | ?:[\\/]*)
13272 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13286 done
13287 done
13288 IFS=$as_save_IFS
13290 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13292 esac
13294 CP=$ac_cv_path_CP
13295 if test -n "$CP"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13297 $as_echo "$CP" >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13304 # Extract the first word of "ln", so it can be a program name with args.
13305 set dummy ln; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_path_LN+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 case $LN in
13312 [\\/]* | ?:[\\/]*)
13313 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317 for as_dir in $PATH
13319 IFS=$as_save_IFS
13320 test -z "$as_dir" && as_dir=.
13321 for ac_exec_ext in '' $ac_executable_extensions; do
13322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13323 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 break 2
13327 done
13328 done
13329 IFS=$as_save_IFS
13331 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13333 esac
13335 LN=$ac_cv_path_LN
13336 if test -n "$LN"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13338 $as_echo "$LN" >&6; }
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13345 # Extract the first word of "ls", so it can be a program name with args.
13346 set dummy ls; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_LS+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 case $LS in
13353 [\\/]* | ?:[\\/]*)
13354 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13364 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13368 done
13369 done
13370 IFS=$as_save_IFS
13372 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13374 esac
13376 LS=$ac_cv_path_LS
13377 if test -n "$LS"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13379 $as_echo "$LS" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13386 # Extract the first word of "sed", so it can be a program name with args.
13387 set dummy sed; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_path_SED+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 case $SED in
13394 [\\/]* | ?:[\\/]*)
13395 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13409 done
13410 done
13411 IFS=$as_save_IFS
13413 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13415 esac
13417 SED=$ac_cv_path_SED
13418 if test -n "$SED"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13420 $as_echo "$SED" >&6; }
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13427 # Extract the first word of "make", so it can be a program name with args.
13428 set dummy make; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_path_MAKE+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 case $MAKE in
13435 [\\/]* | ?:[\\/]*)
13436 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 break 2
13450 done
13451 done
13452 IFS=$as_save_IFS
13455 esac
13457 MAKE=$ac_cv_path_MAKE
13458 if test -n "$MAKE"; then
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13460 $as_echo "$MAKE" >&6; }
13461 else
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 $as_echo "no" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13472 $as_echo_n "checking whether NLS is requested... " >&6; }
13473 # Check whether --enable-nls was given.
13474 if test "${enable_nls+set}" = set; then :
13475 enableval=$enable_nls; USE_NLS=$enableval
13476 else
13477 USE_NLS=yes
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13481 $as_echo "$USE_NLS" >&6; }
13488 # Prepare PATH_SEPARATOR.
13489 # The user is always right.
13490 if test "${PATH_SEPARATOR+set}" != set; then
13491 echo "#! /bin/sh" >conf$$.sh
13492 echo "exit 0" >>conf$$.sh
13493 chmod +x conf$$.sh
13494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13495 PATH_SEPARATOR=';'
13496 else
13497 PATH_SEPARATOR=:
13499 rm -f conf$$.sh
13502 # Find out how to test for executable files. Don't use a zero-byte file,
13503 # as systems may use methods other than mode bits to determine executability.
13504 cat >conf$$.file <<_ASEOF
13505 #! /bin/sh
13506 exit 0
13507 _ASEOF
13508 chmod +x conf$$.file
13509 if test -x conf$$.file >/dev/null 2>&1; then
13510 ac_executable_p="test -x"
13511 else
13512 ac_executable_p="test -f"
13514 rm -f conf$$.file
13516 # Extract the first word of "msgfmt", so it can be a program name with args.
13517 set dummy msgfmt; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if ${ac_cv_path_MSGFMT+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 case "$MSGFMT" in
13524 [\\/]* | ?:[\\/]*)
13525 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13528 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13529 for ac_dir in $PATH; do
13530 IFS="$ac_save_IFS"
13531 test -z "$ac_dir" && ac_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13534 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13535 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13536 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13537 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13538 break 2
13541 done
13542 done
13543 IFS="$ac_save_IFS"
13544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13546 esac
13548 MSGFMT="$ac_cv_path_MSGFMT"
13549 if test "$MSGFMT" != ":"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13551 $as_echo "$MSGFMT" >&6; }
13552 else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13557 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13558 set dummy gmsgfmt; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_path_GMSGFMT+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 case $GMSGFMT in
13565 [\\/]* | ?:[\\/]*)
13566 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13580 done
13581 done
13582 IFS=$as_save_IFS
13584 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13586 esac
13588 GMSGFMT=$ac_cv_path_GMSGFMT
13589 if test -n "$GMSGFMT"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13591 $as_echo "$GMSGFMT" >&6; }
13592 else
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13599 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13600 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13601 *) MSGFMT_015=$MSGFMT ;;
13602 esac
13604 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13605 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13606 *) GMSGFMT_015=$GMSGFMT ;;
13607 esac
13611 # Prepare PATH_SEPARATOR.
13612 # The user is always right.
13613 if test "${PATH_SEPARATOR+set}" != set; then
13614 echo "#! /bin/sh" >conf$$.sh
13615 echo "exit 0" >>conf$$.sh
13616 chmod +x conf$$.sh
13617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13618 PATH_SEPARATOR=';'
13619 else
13620 PATH_SEPARATOR=:
13622 rm -f conf$$.sh
13625 # Find out how to test for executable files. Don't use a zero-byte file,
13626 # as systems may use methods other than mode bits to determine executability.
13627 cat >conf$$.file <<_ASEOF
13628 #! /bin/sh
13629 exit 0
13630 _ASEOF
13631 chmod +x conf$$.file
13632 if test -x conf$$.file >/dev/null 2>&1; then
13633 ac_executable_p="test -x"
13634 else
13635 ac_executable_p="test -f"
13637 rm -f conf$$.file
13639 # Extract the first word of "xgettext", so it can be a program name with args.
13640 set dummy xgettext; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_path_XGETTEXT+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 case "$XGETTEXT" in
13647 [\\/]* | ?:[\\/]*)
13648 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13651 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13652 for ac_dir in $PATH; do
13653 IFS="$ac_save_IFS"
13654 test -z "$ac_dir" && ac_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13657 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13658 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13659 (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
13660 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13661 break 2
13664 done
13665 done
13666 IFS="$ac_save_IFS"
13667 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13669 esac
13671 XGETTEXT="$ac_cv_path_XGETTEXT"
13672 if test "$XGETTEXT" != ":"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13674 $as_echo "$XGETTEXT" >&6; }
13675 else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13680 rm -f messages.po
13682 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13683 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13684 *) XGETTEXT_015=$XGETTEXT ;;
13685 esac
13689 # Prepare PATH_SEPARATOR.
13690 # The user is always right.
13691 if test "${PATH_SEPARATOR+set}" != set; then
13692 echo "#! /bin/sh" >conf$$.sh
13693 echo "exit 0" >>conf$$.sh
13694 chmod +x conf$$.sh
13695 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13696 PATH_SEPARATOR=';'
13697 else
13698 PATH_SEPARATOR=:
13700 rm -f conf$$.sh
13703 # Find out how to test for executable files. Don't use a zero-byte file,
13704 # as systems may use methods other than mode bits to determine executability.
13705 cat >conf$$.file <<_ASEOF
13706 #! /bin/sh
13707 exit 0
13708 _ASEOF
13709 chmod +x conf$$.file
13710 if test -x conf$$.file >/dev/null 2>&1; then
13711 ac_executable_p="test -x"
13712 else
13713 ac_executable_p="test -f"
13715 rm -f conf$$.file
13717 # Extract the first word of "msgmerge", so it can be a program name with args.
13718 set dummy msgmerge; ac_word=$2
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13720 $as_echo_n "checking for $ac_word... " >&6; }
13721 if ${ac_cv_path_MSGMERGE+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 case "$MSGMERGE" in
13725 [\\/]* | ?:[\\/]*)
13726 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13729 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13730 for ac_dir in $PATH; do
13731 IFS="$ac_save_IFS"
13732 test -z "$ac_dir" && ac_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13735 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13736 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13737 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13738 break 2
13741 done
13742 done
13743 IFS="$ac_save_IFS"
13744 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13746 esac
13748 MSGMERGE="$ac_cv_path_MSGMERGE"
13749 if test "$MSGMERGE" != ":"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13751 $as_echo "$MSGMERGE" >&6; }
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "no" >&6; }
13758 test -n "$localedir" || localedir='${datadir}/locale'
13761 ac_config_commands="$ac_config_commands po-directories"
13765 if test "X$prefix" = "XNONE"; then
13766 acl_final_prefix="$ac_default_prefix"
13767 else
13768 acl_final_prefix="$prefix"
13770 if test "X$exec_prefix" = "XNONE"; then
13771 acl_final_exec_prefix='${prefix}'
13772 else
13773 acl_final_exec_prefix="$exec_prefix"
13775 acl_save_prefix="$prefix"
13776 prefix="$acl_final_prefix"
13777 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13778 prefix="$acl_save_prefix"
13781 # Check whether --with-gnu-ld was given.
13782 if test "${with_gnu_ld+set}" = set; then :
13783 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13784 else
13785 with_gnu_ld=no
13788 # Prepare PATH_SEPARATOR.
13789 # The user is always right.
13790 if test "${PATH_SEPARATOR+set}" != set; then
13791 echo "#! /bin/sh" >conf$$.sh
13792 echo "exit 0" >>conf$$.sh
13793 chmod +x conf$$.sh
13794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13795 PATH_SEPARATOR=';'
13796 else
13797 PATH_SEPARATOR=:
13799 rm -f conf$$.sh
13801 ac_prog=ld
13802 if test "$GCC" = yes; then
13803 # Check if gcc -print-prog-name=ld gives a path.
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13805 $as_echo_n "checking for ld used by GCC... " >&6; }
13806 case $host in
13807 *-*-mingw*)
13808 # gcc leaves a trailing carriage return which upsets mingw
13809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13812 esac
13813 case $ac_prog in
13814 # Accept absolute paths.
13815 [\\/]* | [A-Za-z]:[\\/]*)
13816 re_direlt='/[^/][^/]*/\.\./'
13817 # Canonicalize the path of ld
13818 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13819 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13820 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13821 done
13822 test -z "$LD" && LD="$ac_prog"
13825 # If it fails, then pretend we aren't using GCC.
13826 ac_prog=ld
13829 # If it is relative, then search for the first ld in PATH.
13830 with_gnu_ld=unknown
13832 esac
13833 elif test "$with_gnu_ld" = yes; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13835 $as_echo_n "checking for GNU ld... " >&6; }
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13838 $as_echo_n "checking for non-GNU ld... " >&6; }
13840 if ${acl_cv_path_LD+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 if test -z "$LD"; then
13844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13845 for ac_dir in $PATH; do
13846 test -z "$ac_dir" && ac_dir=.
13847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13848 acl_cv_path_LD="$ac_dir/$ac_prog"
13849 # Check to see if the program is GNU ld. I'd rather use --version,
13850 # but apparently some GNU ld's only accept -v.
13851 # Break only if it was the GNU/non-GNU ld that we prefer.
13852 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13853 *GNU* | *'with BFD'*)
13854 test "$with_gnu_ld" != no && break ;;
13856 test "$with_gnu_ld" != yes && break ;;
13857 esac
13859 done
13860 IFS="$ac_save_ifs"
13861 else
13862 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13866 LD="$acl_cv_path_LD"
13867 if test -n "$LD"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13869 $as_echo "$LD" >&6; }
13870 else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13874 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13876 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13877 if ${acl_cv_prog_gnu_ld+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13881 case `$LD -v 2>&1 </dev/null` in
13882 *GNU* | *'with BFD'*)
13883 acl_cv_prog_gnu_ld=yes ;;
13885 acl_cv_prog_gnu_ld=no ;;
13886 esac
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13889 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13890 with_gnu_ld=$acl_cv_prog_gnu_ld
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13896 $as_echo_n "checking for shared library run path origin... " >&6; }
13897 if ${acl_cv_rpath+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13901 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13902 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13903 . ./conftest.sh
13904 rm -f ./conftest.sh
13905 acl_cv_rpath=done
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13909 $as_echo "$acl_cv_rpath" >&6; }
13910 wl="$acl_cv_wl"
13911 libext="$acl_cv_libext"
13912 shlibext="$acl_cv_shlibext"
13913 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13914 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13915 hardcode_direct="$acl_cv_hardcode_direct"
13916 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13917 # Check whether --enable-rpath was given.
13918 if test "${enable_rpath+set}" = set; then :
13919 enableval=$enable_rpath; :
13920 else
13921 enable_rpath=yes
13926 acl_libdirstem=lib
13927 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13928 if test -n "$searchpath"; then
13929 acl_save_IFS="${IFS= }"; IFS=":"
13930 for searchdir in $searchpath; do
13931 if test -d "$searchdir"; then
13932 case "$searchdir" in
13933 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13934 *) searchdir=`cd "$searchdir" && pwd`
13935 case "$searchdir" in
13936 */lib64 ) acl_libdirstem=lib64 ;;
13937 esac ;;
13938 esac
13940 done
13941 IFS="$acl_save_IFS"
13951 use_additional=yes
13953 acl_save_prefix="$prefix"
13954 prefix="$acl_final_prefix"
13955 acl_save_exec_prefix="$exec_prefix"
13956 exec_prefix="$acl_final_exec_prefix"
13958 eval additional_includedir=\"$includedir\"
13959 eval additional_libdir=\"$libdir\"
13961 exec_prefix="$acl_save_exec_prefix"
13962 prefix="$acl_save_prefix"
13965 # Check whether --with-libiconv-prefix was given.
13966 if test "${with_libiconv_prefix+set}" = set; then :
13967 withval=$with_libiconv_prefix;
13968 if test "X$withval" = "Xno"; then
13969 use_additional=no
13970 else
13971 if test "X$withval" = "X"; then
13973 acl_save_prefix="$prefix"
13974 prefix="$acl_final_prefix"
13975 acl_save_exec_prefix="$exec_prefix"
13976 exec_prefix="$acl_final_exec_prefix"
13978 eval additional_includedir=\"$includedir\"
13979 eval additional_libdir=\"$libdir\"
13981 exec_prefix="$acl_save_exec_prefix"
13982 prefix="$acl_save_prefix"
13984 else
13985 additional_includedir="$withval/include"
13986 additional_libdir="$withval/$acl_libdirstem"
13992 LIBICONV=
13993 LTLIBICONV=
13994 INCICONV=
13995 rpathdirs=
13996 ltrpathdirs=
13997 names_already_handled=
13998 names_next_round='iconv '
13999 while test -n "$names_next_round"; do
14000 names_this_round="$names_next_round"
14001 names_next_round=
14002 for name in $names_this_round; do
14003 already_handled=
14004 for n in $names_already_handled; do
14005 if test "$n" = "$name"; then
14006 already_handled=yes
14007 break
14009 done
14010 if test -z "$already_handled"; then
14011 names_already_handled="$names_already_handled $name"
14012 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14013 eval value=\"\$HAVE_LIB$uppername\"
14014 if test -n "$value"; then
14015 if test "$value" = yes; then
14016 eval value=\"\$LIB$uppername\"
14017 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14018 eval value=\"\$LTLIB$uppername\"
14019 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14020 else
14023 else
14024 found_dir=
14025 found_la=
14026 found_so=
14027 found_a=
14028 if test $use_additional = yes; then
14029 if test -n "$shlibext" \
14030 && { test -f "$additional_libdir/lib$name.$shlibext" \
14031 || { test "$shlibext" = dll \
14032 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14033 found_dir="$additional_libdir"
14034 if test -f "$additional_libdir/lib$name.$shlibext"; then
14035 found_so="$additional_libdir/lib$name.$shlibext"
14036 else
14037 found_so="$additional_libdir/lib$name.dll.a"
14039 if test -f "$additional_libdir/lib$name.la"; then
14040 found_la="$additional_libdir/lib$name.la"
14042 else
14043 if test -f "$additional_libdir/lib$name.$libext"; then
14044 found_dir="$additional_libdir"
14045 found_a="$additional_libdir/lib$name.$libext"
14046 if test -f "$additional_libdir/lib$name.la"; then
14047 found_la="$additional_libdir/lib$name.la"
14052 if test "X$found_dir" = "X"; then
14053 for x in $LDFLAGS $LTLIBICONV; do
14055 acl_save_prefix="$prefix"
14056 prefix="$acl_final_prefix"
14057 acl_save_exec_prefix="$exec_prefix"
14058 exec_prefix="$acl_final_exec_prefix"
14059 eval x=\"$x\"
14060 exec_prefix="$acl_save_exec_prefix"
14061 prefix="$acl_save_prefix"
14063 case "$x" in
14064 -L*)
14065 dir=`echo "X$x" | sed -e 's/^X-L//'`
14066 if test -n "$shlibext" \
14067 && { test -f "$dir/lib$name.$shlibext" \
14068 || { test "$shlibext" = dll \
14069 && test -f "$dir/lib$name.dll.a"; }; }; then
14070 found_dir="$dir"
14071 if test -f "$dir/lib$name.$shlibext"; then
14072 found_so="$dir/lib$name.$shlibext"
14073 else
14074 found_so="$dir/lib$name.dll.a"
14076 if test -f "$dir/lib$name.la"; then
14077 found_la="$dir/lib$name.la"
14079 else
14080 if test -f "$dir/lib$name.$libext"; then
14081 found_dir="$dir"
14082 found_a="$dir/lib$name.$libext"
14083 if test -f "$dir/lib$name.la"; then
14084 found_la="$dir/lib$name.la"
14089 esac
14090 if test "X$found_dir" != "X"; then
14091 break
14093 done
14095 if test "X$found_dir" != "X"; then
14096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14097 if test "X$found_so" != "X"; then
14098 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14099 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14100 else
14101 haveit=
14102 for x in $ltrpathdirs; do
14103 if test "X$x" = "X$found_dir"; then
14104 haveit=yes
14105 break
14107 done
14108 if test -z "$haveit"; then
14109 ltrpathdirs="$ltrpathdirs $found_dir"
14111 if test "$hardcode_direct" = yes; then
14112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14113 else
14114 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14115 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14116 haveit=
14117 for x in $rpathdirs; do
14118 if test "X$x" = "X$found_dir"; then
14119 haveit=yes
14120 break
14122 done
14123 if test -z "$haveit"; then
14124 rpathdirs="$rpathdirs $found_dir"
14126 else
14127 haveit=
14128 for x in $LDFLAGS $LIBICONV; do
14130 acl_save_prefix="$prefix"
14131 prefix="$acl_final_prefix"
14132 acl_save_exec_prefix="$exec_prefix"
14133 exec_prefix="$acl_final_exec_prefix"
14134 eval x=\"$x\"
14135 exec_prefix="$acl_save_exec_prefix"
14136 prefix="$acl_save_prefix"
14138 if test "X$x" = "X-L$found_dir"; then
14139 haveit=yes
14140 break
14142 done
14143 if test -z "$haveit"; then
14144 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14146 if test "$hardcode_minus_L" != no; then
14147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14148 else
14149 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14154 else
14155 if test "X$found_a" != "X"; then
14156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14157 else
14158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14161 additional_includedir=
14162 case "$found_dir" in
14163 */$acl_libdirstem | */$acl_libdirstem/)
14164 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14165 additional_includedir="$basedir/include"
14167 esac
14168 if test "X$additional_includedir" != "X"; then
14169 if test "X$additional_includedir" != "X/usr/include"; then
14170 haveit=
14171 if test "X$additional_includedir" = "X/usr/local/include"; then
14172 if test -n "$GCC"; then
14173 case $host_os in
14174 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14175 esac
14178 if test -z "$haveit"; then
14179 for x in $CPPFLAGS $INCICONV; do
14181 acl_save_prefix="$prefix"
14182 prefix="$acl_final_prefix"
14183 acl_save_exec_prefix="$exec_prefix"
14184 exec_prefix="$acl_final_exec_prefix"
14185 eval x=\"$x\"
14186 exec_prefix="$acl_save_exec_prefix"
14187 prefix="$acl_save_prefix"
14189 if test "X$x" = "X-I$additional_includedir"; then
14190 haveit=yes
14191 break
14193 done
14194 if test -z "$haveit"; then
14195 if test -d "$additional_includedir"; then
14196 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14202 if test -n "$found_la"; then
14203 save_libdir="$libdir"
14204 case "$found_la" in
14205 */* | *\\*) . "$found_la" ;;
14206 *) . "./$found_la" ;;
14207 esac
14208 libdir="$save_libdir"
14209 for dep in $dependency_libs; do
14210 case "$dep" in
14211 -L*)
14212 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14213 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14214 haveit=
14215 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14216 if test -n "$GCC"; then
14217 case $host_os in
14218 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14219 esac
14222 if test -z "$haveit"; then
14223 haveit=
14224 for x in $LDFLAGS $LIBICONV; do
14226 acl_save_prefix="$prefix"
14227 prefix="$acl_final_prefix"
14228 acl_save_exec_prefix="$exec_prefix"
14229 exec_prefix="$acl_final_exec_prefix"
14230 eval x=\"$x\"
14231 exec_prefix="$acl_save_exec_prefix"
14232 prefix="$acl_save_prefix"
14234 if test "X$x" = "X-L$additional_libdir"; then
14235 haveit=yes
14236 break
14238 done
14239 if test -z "$haveit"; then
14240 if test -d "$additional_libdir"; then
14241 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14244 haveit=
14245 for x in $LDFLAGS $LTLIBICONV; do
14247 acl_save_prefix="$prefix"
14248 prefix="$acl_final_prefix"
14249 acl_save_exec_prefix="$exec_prefix"
14250 exec_prefix="$acl_final_exec_prefix"
14251 eval x=\"$x\"
14252 exec_prefix="$acl_save_exec_prefix"
14253 prefix="$acl_save_prefix"
14255 if test "X$x" = "X-L$additional_libdir"; then
14256 haveit=yes
14257 break
14259 done
14260 if test -z "$haveit"; then
14261 if test -d "$additional_libdir"; then
14262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14268 -R*)
14269 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14270 if test "$enable_rpath" != no; then
14271 haveit=
14272 for x in $rpathdirs; do
14273 if test "X$x" = "X$dir"; then
14274 haveit=yes
14275 break
14277 done
14278 if test -z "$haveit"; then
14279 rpathdirs="$rpathdirs $dir"
14281 haveit=
14282 for x in $ltrpathdirs; do
14283 if test "X$x" = "X$dir"; then
14284 haveit=yes
14285 break
14287 done
14288 if test -z "$haveit"; then
14289 ltrpathdirs="$ltrpathdirs $dir"
14293 -l*)
14294 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14296 *.la)
14297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14300 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14301 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14303 esac
14304 done
14306 else
14307 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14308 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14312 done
14313 done
14314 if test "X$rpathdirs" != "X"; then
14315 if test -n "$hardcode_libdir_separator"; then
14316 alldirs=
14317 for found_dir in $rpathdirs; do
14318 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14319 done
14320 acl_save_libdir="$libdir"
14321 libdir="$alldirs"
14322 eval flag=\"$hardcode_libdir_flag_spec\"
14323 libdir="$acl_save_libdir"
14324 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14325 else
14326 for found_dir in $rpathdirs; do
14327 acl_save_libdir="$libdir"
14328 libdir="$found_dir"
14329 eval flag=\"$hardcode_libdir_flag_spec\"
14330 libdir="$acl_save_libdir"
14331 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14332 done
14335 if test "X$ltrpathdirs" != "X"; then
14336 for found_dir in $ltrpathdirs; do
14337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14338 done
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14366 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14367 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 gt_save_LIBS="$LIBS"
14371 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 #include <CoreFoundation/CFPreferences.h>
14376 main ()
14378 CFPreferencesCopyAppValue(NULL, NULL)
14380 return 0;
14382 _ACEOF
14383 if ac_fn_c_try_link "$LINENO"; then :
14384 gt_cv_func_CFPreferencesCopyAppValue=yes
14385 else
14386 gt_cv_func_CFPreferencesCopyAppValue=no
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LIBS="$gt_save_LIBS"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14393 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14394 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14396 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14400 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14401 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 gt_save_LIBS="$LIBS"
14405 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 #include <CoreFoundation/CFLocale.h>
14410 main ()
14412 CFLocaleCopyCurrent();
14414 return 0;
14416 _ACEOF
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 gt_cv_func_CFLocaleCopyCurrent=yes
14419 else
14420 gt_cv_func_CFLocaleCopyCurrent=no
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LIBS="$gt_save_LIBS"
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14427 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14428 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14430 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14433 INTL_MACOSX_LIBS=
14434 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14435 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14443 LIBINTL=
14444 LTLIBINTL=
14445 POSUB=
14447 case " $gt_needs " in
14448 *" need-formatstring-macros "*) gt_api_version=3 ;;
14449 *" need-ngettext "*) gt_api_version=2 ;;
14450 *) gt_api_version=1 ;;
14451 esac
14452 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14453 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14455 if test "$USE_NLS" = "yes"; then
14456 gt_use_preinstalled_gnugettext=no
14459 if test $gt_api_version -ge 3; then
14460 gt_revision_test_code='
14461 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14462 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14463 #endif
14464 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14466 else
14467 gt_revision_test_code=
14469 if test $gt_api_version -ge 2; then
14470 gt_expression_test_code=' + * ngettext ("", "", 0)'
14471 else
14472 gt_expression_test_code=
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14476 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14477 if eval \${$gt_func_gnugettext_libc+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <libintl.h>
14483 $gt_revision_test_code
14484 extern int _nl_msg_cat_cntr;
14485 extern int *_nl_domain_bindings;
14487 main ()
14489 bindtextdomain ("", "");
14490 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14492 return 0;
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 eval "$gt_func_gnugettext_libc=yes"
14497 else
14498 eval "$gt_func_gnugettext_libc=no"
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14503 eval ac_res=\$$gt_func_gnugettext_libc
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14505 $as_echo "$ac_res" >&6; }
14507 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14513 am_save_CPPFLAGS="$CPPFLAGS"
14515 for element in $INCICONV; do
14516 haveit=
14517 for x in $CPPFLAGS; do
14519 acl_save_prefix="$prefix"
14520 prefix="$acl_final_prefix"
14521 acl_save_exec_prefix="$exec_prefix"
14522 exec_prefix="$acl_final_exec_prefix"
14523 eval x=\"$x\"
14524 exec_prefix="$acl_save_exec_prefix"
14525 prefix="$acl_save_prefix"
14527 if test "X$x" = "X$element"; then
14528 haveit=yes
14529 break
14531 done
14532 if test -z "$haveit"; then
14533 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14535 done
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14539 $as_echo_n "checking for iconv... " >&6; }
14540 if ${am_cv_func_iconv+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14544 am_cv_func_iconv="no, consider installing GNU libiconv"
14545 am_cv_lib_iconv=no
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <stdlib.h>
14549 #include <iconv.h>
14551 main ()
14553 iconv_t cd = iconv_open("","");
14554 iconv(cd,NULL,NULL,NULL,NULL);
14555 iconv_close(cd);
14557 return 0;
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561 am_cv_func_iconv=yes
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 if test "$am_cv_func_iconv" != yes; then
14566 am_save_LIBS="$LIBS"
14567 LIBS="$LIBS $LIBICONV"
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 #include <stdlib.h>
14571 #include <iconv.h>
14573 main ()
14575 iconv_t cd = iconv_open("","");
14576 iconv(cd,NULL,NULL,NULL,NULL);
14577 iconv_close(cd);
14579 return 0;
14581 _ACEOF
14582 if ac_fn_c_try_link "$LINENO"; then :
14583 am_cv_lib_iconv=yes
14584 am_cv_func_iconv=yes
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS="$am_save_LIBS"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14593 $as_echo "$am_cv_func_iconv" >&6; }
14594 if test "$am_cv_func_iconv" = yes; then
14596 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14599 if test "$am_cv_lib_iconv" = yes; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14601 $as_echo_n "checking how to link with libiconv... " >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14603 $as_echo "$LIBICONV" >&6; }
14604 else
14605 CPPFLAGS="$am_save_CPPFLAGS"
14606 LIBICONV=
14607 LTLIBICONV=
14616 use_additional=yes
14618 acl_save_prefix="$prefix"
14619 prefix="$acl_final_prefix"
14620 acl_save_exec_prefix="$exec_prefix"
14621 exec_prefix="$acl_final_exec_prefix"
14623 eval additional_includedir=\"$includedir\"
14624 eval additional_libdir=\"$libdir\"
14626 exec_prefix="$acl_save_exec_prefix"
14627 prefix="$acl_save_prefix"
14630 # Check whether --with-libintl-prefix was given.
14631 if test "${with_libintl_prefix+set}" = set; then :
14632 withval=$with_libintl_prefix;
14633 if test "X$withval" = "Xno"; then
14634 use_additional=no
14635 else
14636 if test "X$withval" = "X"; then
14638 acl_save_prefix="$prefix"
14639 prefix="$acl_final_prefix"
14640 acl_save_exec_prefix="$exec_prefix"
14641 exec_prefix="$acl_final_exec_prefix"
14643 eval additional_includedir=\"$includedir\"
14644 eval additional_libdir=\"$libdir\"
14646 exec_prefix="$acl_save_exec_prefix"
14647 prefix="$acl_save_prefix"
14649 else
14650 additional_includedir="$withval/include"
14651 additional_libdir="$withval/$acl_libdirstem"
14657 LIBINTL=
14658 LTLIBINTL=
14659 INCINTL=
14660 rpathdirs=
14661 ltrpathdirs=
14662 names_already_handled=
14663 names_next_round='intl '
14664 while test -n "$names_next_round"; do
14665 names_this_round="$names_next_round"
14666 names_next_round=
14667 for name in $names_this_round; do
14668 already_handled=
14669 for n in $names_already_handled; do
14670 if test "$n" = "$name"; then
14671 already_handled=yes
14672 break
14674 done
14675 if test -z "$already_handled"; then
14676 names_already_handled="$names_already_handled $name"
14677 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14678 eval value=\"\$HAVE_LIB$uppername\"
14679 if test -n "$value"; then
14680 if test "$value" = yes; then
14681 eval value=\"\$LIB$uppername\"
14682 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14683 eval value=\"\$LTLIB$uppername\"
14684 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14685 else
14688 else
14689 found_dir=
14690 found_la=
14691 found_so=
14692 found_a=
14693 if test $use_additional = yes; then
14694 if test -n "$shlibext" \
14695 && { test -f "$additional_libdir/lib$name.$shlibext" \
14696 || { test "$shlibext" = dll \
14697 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14698 found_dir="$additional_libdir"
14699 if test -f "$additional_libdir/lib$name.$shlibext"; then
14700 found_so="$additional_libdir/lib$name.$shlibext"
14701 else
14702 found_so="$additional_libdir/lib$name.dll.a"
14704 if test -f "$additional_libdir/lib$name.la"; then
14705 found_la="$additional_libdir/lib$name.la"
14707 else
14708 if test -f "$additional_libdir/lib$name.$libext"; then
14709 found_dir="$additional_libdir"
14710 found_a="$additional_libdir/lib$name.$libext"
14711 if test -f "$additional_libdir/lib$name.la"; then
14712 found_la="$additional_libdir/lib$name.la"
14717 if test "X$found_dir" = "X"; then
14718 for x in $LDFLAGS $LTLIBINTL; do
14720 acl_save_prefix="$prefix"
14721 prefix="$acl_final_prefix"
14722 acl_save_exec_prefix="$exec_prefix"
14723 exec_prefix="$acl_final_exec_prefix"
14724 eval x=\"$x\"
14725 exec_prefix="$acl_save_exec_prefix"
14726 prefix="$acl_save_prefix"
14728 case "$x" in
14729 -L*)
14730 dir=`echo "X$x" | sed -e 's/^X-L//'`
14731 if test -n "$shlibext" \
14732 && { test -f "$dir/lib$name.$shlibext" \
14733 || { test "$shlibext" = dll \
14734 && test -f "$dir/lib$name.dll.a"; }; }; then
14735 found_dir="$dir"
14736 if test -f "$dir/lib$name.$shlibext"; then
14737 found_so="$dir/lib$name.$shlibext"
14738 else
14739 found_so="$dir/lib$name.dll.a"
14741 if test -f "$dir/lib$name.la"; then
14742 found_la="$dir/lib$name.la"
14744 else
14745 if test -f "$dir/lib$name.$libext"; then
14746 found_dir="$dir"
14747 found_a="$dir/lib$name.$libext"
14748 if test -f "$dir/lib$name.la"; then
14749 found_la="$dir/lib$name.la"
14754 esac
14755 if test "X$found_dir" != "X"; then
14756 break
14758 done
14760 if test "X$found_dir" != "X"; then
14761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14762 if test "X$found_so" != "X"; then
14763 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14765 else
14766 haveit=
14767 for x in $ltrpathdirs; do
14768 if test "X$x" = "X$found_dir"; then
14769 haveit=yes
14770 break
14772 done
14773 if test -z "$haveit"; then
14774 ltrpathdirs="$ltrpathdirs $found_dir"
14776 if test "$hardcode_direct" = yes; then
14777 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14778 else
14779 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14780 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14781 haveit=
14782 for x in $rpathdirs; do
14783 if test "X$x" = "X$found_dir"; then
14784 haveit=yes
14785 break
14787 done
14788 if test -z "$haveit"; then
14789 rpathdirs="$rpathdirs $found_dir"
14791 else
14792 haveit=
14793 for x in $LDFLAGS $LIBINTL; do
14795 acl_save_prefix="$prefix"
14796 prefix="$acl_final_prefix"
14797 acl_save_exec_prefix="$exec_prefix"
14798 exec_prefix="$acl_final_exec_prefix"
14799 eval x=\"$x\"
14800 exec_prefix="$acl_save_exec_prefix"
14801 prefix="$acl_save_prefix"
14803 if test "X$x" = "X-L$found_dir"; then
14804 haveit=yes
14805 break
14807 done
14808 if test -z "$haveit"; then
14809 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14811 if test "$hardcode_minus_L" != no; then
14812 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14813 else
14814 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14819 else
14820 if test "X$found_a" != "X"; then
14821 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14822 else
14823 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14826 additional_includedir=
14827 case "$found_dir" in
14828 */$acl_libdirstem | */$acl_libdirstem/)
14829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14830 additional_includedir="$basedir/include"
14832 esac
14833 if test "X$additional_includedir" != "X"; then
14834 if test "X$additional_includedir" != "X/usr/include"; then
14835 haveit=
14836 if test "X$additional_includedir" = "X/usr/local/include"; then
14837 if test -n "$GCC"; then
14838 case $host_os in
14839 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14840 esac
14843 if test -z "$haveit"; then
14844 for x in $CPPFLAGS $INCINTL; do
14846 acl_save_prefix="$prefix"
14847 prefix="$acl_final_prefix"
14848 acl_save_exec_prefix="$exec_prefix"
14849 exec_prefix="$acl_final_exec_prefix"
14850 eval x=\"$x\"
14851 exec_prefix="$acl_save_exec_prefix"
14852 prefix="$acl_save_prefix"
14854 if test "X$x" = "X-I$additional_includedir"; then
14855 haveit=yes
14856 break
14858 done
14859 if test -z "$haveit"; then
14860 if test -d "$additional_includedir"; then
14861 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14867 if test -n "$found_la"; then
14868 save_libdir="$libdir"
14869 case "$found_la" in
14870 */* | *\\*) . "$found_la" ;;
14871 *) . "./$found_la" ;;
14872 esac
14873 libdir="$save_libdir"
14874 for dep in $dependency_libs; do
14875 case "$dep" in
14876 -L*)
14877 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14878 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14879 haveit=
14880 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14881 if test -n "$GCC"; then
14882 case $host_os in
14883 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14884 esac
14887 if test -z "$haveit"; then
14888 haveit=
14889 for x in $LDFLAGS $LIBINTL; do
14891 acl_save_prefix="$prefix"
14892 prefix="$acl_final_prefix"
14893 acl_save_exec_prefix="$exec_prefix"
14894 exec_prefix="$acl_final_exec_prefix"
14895 eval x=\"$x\"
14896 exec_prefix="$acl_save_exec_prefix"
14897 prefix="$acl_save_prefix"
14899 if test "X$x" = "X-L$additional_libdir"; then
14900 haveit=yes
14901 break
14903 done
14904 if test -z "$haveit"; then
14905 if test -d "$additional_libdir"; then
14906 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14909 haveit=
14910 for x in $LDFLAGS $LTLIBINTL; do
14912 acl_save_prefix="$prefix"
14913 prefix="$acl_final_prefix"
14914 acl_save_exec_prefix="$exec_prefix"
14915 exec_prefix="$acl_final_exec_prefix"
14916 eval x=\"$x\"
14917 exec_prefix="$acl_save_exec_prefix"
14918 prefix="$acl_save_prefix"
14920 if test "X$x" = "X-L$additional_libdir"; then
14921 haveit=yes
14922 break
14924 done
14925 if test -z "$haveit"; then
14926 if test -d "$additional_libdir"; then
14927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14933 -R*)
14934 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14935 if test "$enable_rpath" != no; then
14936 haveit=
14937 for x in $rpathdirs; do
14938 if test "X$x" = "X$dir"; then
14939 haveit=yes
14940 break
14942 done
14943 if test -z "$haveit"; then
14944 rpathdirs="$rpathdirs $dir"
14946 haveit=
14947 for x in $ltrpathdirs; do
14948 if test "X$x" = "X$dir"; then
14949 haveit=yes
14950 break
14952 done
14953 if test -z "$haveit"; then
14954 ltrpathdirs="$ltrpathdirs $dir"
14958 -l*)
14959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14961 *.la)
14962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14965 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14968 esac
14969 done
14971 else
14972 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14973 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14977 done
14978 done
14979 if test "X$rpathdirs" != "X"; then
14980 if test -n "$hardcode_libdir_separator"; then
14981 alldirs=
14982 for found_dir in $rpathdirs; do
14983 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14984 done
14985 acl_save_libdir="$libdir"
14986 libdir="$alldirs"
14987 eval flag=\"$hardcode_libdir_flag_spec\"
14988 libdir="$acl_save_libdir"
14989 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14990 else
14991 for found_dir in $rpathdirs; do
14992 acl_save_libdir="$libdir"
14993 libdir="$found_dir"
14994 eval flag=\"$hardcode_libdir_flag_spec\"
14995 libdir="$acl_save_libdir"
14996 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14997 done
15000 if test "X$ltrpathdirs" != "X"; then
15001 for found_dir in $ltrpathdirs; do
15002 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15003 done
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15007 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15008 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15009 $as_echo_n "(cached) " >&6
15010 else
15011 gt_save_CPPFLAGS="$CPPFLAGS"
15012 CPPFLAGS="$CPPFLAGS $INCINTL"
15013 gt_save_LIBS="$LIBS"
15014 LIBS="$LIBS $LIBINTL"
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 #include <libintl.h>
15018 $gt_revision_test_code
15019 extern int _nl_msg_cat_cntr;
15020 extern
15021 #ifdef __cplusplus
15023 #endif
15024 const char *_nl_expand_alias (const char *);
15026 main ()
15028 bindtextdomain ("", "");
15029 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15031 return 0;
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"; then :
15035 eval "$gt_func_gnugettext_libintl=yes"
15036 else
15037 eval "$gt_func_gnugettext_libintl=no"
15039 rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15041 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15042 LIBS="$LIBS $LIBICONV"
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #include <libintl.h>
15046 $gt_revision_test_code
15047 extern int _nl_msg_cat_cntr;
15048 extern
15049 #ifdef __cplusplus
15051 #endif
15052 const char *_nl_expand_alias (const char *);
15054 main ()
15056 bindtextdomain ("", "");
15057 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15059 return 0;
15061 _ACEOF
15062 if ac_fn_c_try_link "$LINENO"; then :
15063 LIBINTL="$LIBINTL $LIBICONV"
15064 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15065 eval "$gt_func_gnugettext_libintl=yes"
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15071 CPPFLAGS="$gt_save_CPPFLAGS"
15072 LIBS="$gt_save_LIBS"
15074 eval ac_res=\$$gt_func_gnugettext_libintl
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15076 $as_echo "$ac_res" >&6; }
15079 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15080 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15081 && test "$PACKAGE" != gettext-runtime \
15082 && test "$PACKAGE" != gettext-tools; }; then
15083 gt_use_preinstalled_gnugettext=yes
15084 else
15085 LIBINTL=
15086 LTLIBINTL=
15087 INCINTL=
15092 if test -n "$INTL_MACOSX_LIBS"; then
15093 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15094 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15095 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15096 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15100 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15101 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15103 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15105 else
15106 USE_NLS=no
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15111 $as_echo_n "checking whether to use NLS... " >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15113 $as_echo "$USE_NLS" >&6; }
15114 if test "$USE_NLS" = "yes"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15116 $as_echo_n "checking where the gettext function comes from... " >&6; }
15117 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15118 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15119 gt_source="external libintl"
15120 else
15121 gt_source="libc"
15123 else
15124 gt_source="included intl directory"
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15127 $as_echo "$gt_source" >&6; }
15130 if test "$USE_NLS" = "yes"; then
15132 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15133 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15135 $as_echo_n "checking how to link with libintl... " >&6; }
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15137 $as_echo "$LIBINTL" >&6; }
15139 for element in $INCINTL; do
15140 haveit=
15141 for x in $CPPFLAGS; do
15143 acl_save_prefix="$prefix"
15144 prefix="$acl_final_prefix"
15145 acl_save_exec_prefix="$exec_prefix"
15146 exec_prefix="$acl_final_exec_prefix"
15147 eval x=\"$x\"
15148 exec_prefix="$acl_save_exec_prefix"
15149 prefix="$acl_save_prefix"
15151 if test "X$x" = "X$element"; then
15152 haveit=yes
15153 break
15155 done
15156 if test -z "$haveit"; then
15157 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15159 done
15164 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15167 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15171 POSUB=po
15176 INTLLIBS="$LIBINTL"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15185 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15186 # Check whether --enable-dmalloc was given.
15187 if test "${enable_dmalloc+set}" = set; then :
15188 enableval=$enable_dmalloc;
15191 if test x$enable_dmalloc = "xyes" ; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15193 $as_echo "yes" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15200 # Check whether --with-dmalloc-dir was given.
15201 if test "${with_dmalloc_dir+set}" = set; then :
15202 withval=$with_dmalloc_dir;
15203 if test "x$withval" != "xno" ; then
15204 enable_dmalloc = "yes"
15205 CPPFLAGS="$CPPFLAGS -I${withval}"
15206 LDFLAGS="$LDFLAGS -L${withval}"
15212 if test x$enable_dmalloc = "xyes" ; then
15214 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15218 ALPINE_datestamp=`date`
15220 # Check whether --with-date-stamp was given.
15221 if test "${with_date_stamp+set}" = set; then :
15222 withval=$with_date_stamp;
15223 if test "x$withval" != "xno" ; then
15224 ALPINE_datestamp=$withval
15229 ALPINE_DATESTAMP=$ALPINE_datestamp
15232 ALPINE_hoststamp=`hostname`
15234 # Check whether --with-host-stamp was given.
15235 if test "${with_host_stamp+set}" = set; then :
15236 withval=$with_host_stamp;
15237 if test "x$withval" != "xno" ; then
15238 ALPINE_hoststamp="$withval"
15243 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15246 case $host in
15247 *apple-darwin*)
15248 if test -d /opt/local ; then
15249 localedir="/opt/local/share/locale"
15250 else
15251 localedir="\${datadir}/locale"
15254 *-*-cygwin)
15255 localedir="/usr/share"
15258 localedir="\${datadir}/locale"
15260 esac
15263 # Check whether --with-localedir was given.
15264 if test "${with_localedir+set}" = set; then :
15265 withval=$with_localedir;
15266 case $withval in
15267 yes)
15272 localedir=$withval
15274 esac
15278 localedir="$localedir"
15281 # Setup OS-Specific features
15282 case "$host" in
15283 *darwin*)
15284 # Check whether --enable-osx-universal-binaries was given.
15285 if test "${enable_osx_universal_binaries+set}" = set; then :
15286 enableval=$enable_osx_universal_binaries;
15289 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15290 if test "x$enable_dependency_tracking" != xno ; then
15291 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15292 Please re-run configure with these options:
15293 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15295 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15296 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15297 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15298 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15299 else
15300 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15302 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15303 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15304 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15305 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15306 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15307 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15310 esac
15313 # Check whether --with-include-path was given.
15314 if test "${with_include_path+set}" = set; then :
15315 withval=$with_include_path;
15316 case $withval in
15319 yes)
15322 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15323 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15324 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15326 esac
15332 # Check whether --with-lib-path was given.
15333 if test "${with_lib_path+set}" = set; then :
15334 withval=$with_lib_path;
15335 case $withval in
15338 yes)
15341 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15342 LDFLAGS="$LDFLAGS $new_ldflags"
15343 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15345 esac
15351 # Check whether --with-pubcookie was given.
15352 if test "${with_pubcookie+set}" = set; then :
15353 withval=$with_pubcookie;
15354 if test "x$withval" != "xno" ; then
15355 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15363 # Check whether --with-web-bin was given.
15364 if test "${with_web_bin+set}" = set; then :
15365 withval=$with_web_bin;
15366 case "$withval" in
15369 yes)
15372 WEB_BINDIR=$withval
15374 esac
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15380 $as_echo_n "checking option: debugging is enabled... " >&6; }
15381 # Check whether --enable-debug was given.
15382 if test "${enable_debug+set}" = set; then :
15383 enableval=$enable_debug;
15386 if test x$enable_debug != "xno" ; then
15387 AM_CFLAGS="$AM_CFLAGS -g"
15389 $as_echo "#define DEBUG 1" >>confdefs.h
15392 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15395 $as_echo "yes" >&6; }
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398 $as_echo "no" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15402 $as_echo_n "checking option: optimization is enabled... " >&6; }
15403 # Check whether --enable-optimization was given.
15404 if test "${enable_optimization+set}" = set; then :
15405 enableval=$enable_optimization;
15408 if test x$enable_optimization != "xno" ; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15410 $as_echo "yes" >&6; }
15411 else
15412 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15413 alpine_c_client_gccoptlevel="-O0"
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15419 $as_echo_n "checking option: mouse support enabled... " >&6; }
15420 # Check whether --enable-mouse was given.
15421 if test "${enable_mouse+set}" = set; then :
15422 enableval=$enable_mouse;
15425 if test x$enable_mouse != "xno" ; then
15427 $as_echo "#define MOUSE /**/" >>confdefs.h
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15430 $as_echo "yes" >&6; }
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15437 $as_echo_n "checking option: quotas enabled... " >&6; }
15438 # Check whether --enable-quotas was given.
15439 if test "${enable_quotas+set}" = set; then :
15440 enableval=$enable_quotas;
15443 if test x$enable_quotas = "xyes" ; then
15445 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15448 $as_echo "yes" >&6; }
15449 else
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15455 $as_echo_n "checking option: From changing enabled... " >&6; }
15456 # Check whether --enable-from_changing was given.
15457 if test "${enable_from_changing+set}" = set; then :
15458 enableval=$enable_from_changing;
15461 if test x$enable_from_changing != "xno" ; then
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15463 $as_echo "yes" >&6; }
15464 else
15466 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469 $as_echo "no" >&6; }
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15473 $as_echo_n "checking option: background post enabled... " >&6; }
15474 # Check whether --enable-background-post was given.
15475 if test "${enable_background_post+set}" = set; then :
15476 enableval=$enable_background_post;
15479 if test x$enable_background_post != "xno" ; then
15481 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15484 $as_echo "yes" >&6; }
15485 else
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 $as_echo "no" >&6; }
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15491 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15492 # Check whether --enable-keyboard-lock was given.
15493 if test "${enable_keyboard_lock+set}" = set; then :
15494 enableval=$enable_keyboard_lock;
15497 if test x$enable_keyboard_lock != "xno" ; then
15499 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15502 $as_echo "yes" >&6; }
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15505 $as_echo "no" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15509 $as_echo_n "checking option: from encoding enabled... " >&6; }
15510 # Check whether --enable-from-encoding was given.
15511 if test "${enable_from_encoding+set}" = set; then :
15512 enableval=$enable_from_encoding;
15515 if test x$enable_from_encoding = "xyes" ; then
15517 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15520 $as_echo "yes" >&6; }
15521 else
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15523 $as_echo "no" >&6; }
15527 # Check whether --with-smtp-msa was given.
15528 if test "${with_smtp_msa+set}" = set; then :
15529 withval=$with_smtp_msa;
15530 case "$withval" in
15533 yes)
15534 # Extract the first word of "sendmail", so it can be a program name with args.
15535 set dummy sendmail; ac_word=$2
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537 $as_echo_n "checking for $ac_word... " >&6; }
15538 if ${ac_cv_path_SENDMAIL+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 case $SENDMAIL in
15542 [\\/]* | ?:[\\/]*)
15543 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 as_dummy="$PATH:/usr/sbin:/usr/lib"
15548 for as_dir in $as_dummy
15550 IFS=$as_save_IFS
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15556 break 2
15558 done
15559 done
15560 IFS=$as_save_IFS
15562 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15564 esac
15566 SENDMAIL=$ac_cv_path_SENDMAIL
15567 if test -n "$SENDMAIL"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15569 $as_echo "$SENDMAIL" >&6; }
15570 else
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15578 SENDMAIL=$withval
15580 esac
15582 else
15584 # Extract the first word of "sendmail", so it can be a program name with args.
15585 set dummy sendmail; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_path_SENDMAIL+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 case $SENDMAIL in
15592 [\\/]* | ?:[\\/]*)
15593 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15597 as_dummy="$PATH:/usr/sbin:/usr/lib"
15598 for as_dir in $as_dummy
15600 IFS=$as_save_IFS
15601 test -z "$as_dir" && as_dir=.
15602 for ac_exec_ext in '' $ac_executable_extensions; do
15603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15604 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15606 break 2
15608 done
15609 done
15610 IFS=$as_save_IFS
15612 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15614 esac
15616 SENDMAIL=$ac_cv_path_SENDMAIL
15617 if test -n "$SENDMAIL"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15619 $as_echo "$SENDMAIL" >&6; }
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15629 if test -n "$SENDMAIL" ; then
15631 cat >>confdefs.h <<_ACEOF
15632 #define SENDMAIL "$SENDMAIL"
15633 _ACEOF
15637 smtp_msa_flags="-bs -odb -oem"
15639 # Check whether --with-smtp-msa-flags was given.
15640 if test "${with_smtp_msa_flags+set}" = set; then :
15641 withval=$with_smtp_msa_flags;
15642 if test "x$withval" != "xno" ; then
15643 smtp_msa_flags=$withval
15649 cat >>confdefs.h <<_ACEOF
15650 #define SENDMAILFLAGS "$smtp_msa_flags"
15651 _ACEOF
15654 npa="inews"
15656 # Check whether --with-npa was given.
15657 if test "${with_npa+set}" = set; then :
15658 withval=$with_npa;
15659 case "$withval" in
15662 yes)
15663 # Extract the first word of "inews", so it can be a program name with args.
15664 set dummy inews; ac_word=$2
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15666 $as_echo_n "checking for $ac_word... " >&6; }
15667 if ${ac_cv_path_NPA_PROG+:} false; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 case $NPA_PROG in
15671 [\\/]* | ?:[\\/]*)
15672 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15676 as_dummy="$PATH:/usr/sbin:/usr/lib"
15677 for as_dir in $as_dummy
15679 IFS=$as_save_IFS
15680 test -z "$as_dir" && as_dir=.
15681 for ac_exec_ext in '' $ac_executable_extensions; do
15682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15683 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15685 break 2
15687 done
15688 done
15689 IFS=$as_save_IFS
15691 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15693 esac
15695 NPA_PROG=$ac_cv_path_NPA_PROG
15696 if test -n "$NPA_PROG"; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15698 $as_echo "$NPA_PROG" >&6; }
15699 else
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15707 NPA_PROG=$withval
15709 esac
15711 else
15713 # Extract the first word of "inews", so it can be a program name with args.
15714 set dummy inews; 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_path_NPA_PROG+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 case $NPA_PROG in
15721 [\\/]* | ?:[\\/]*)
15722 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 as_dummy="$PATH:/usr/sbin:/usr/lib"
15727 for as_dir in $as_dummy
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15737 done
15738 done
15739 IFS=$as_save_IFS
15741 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15743 esac
15745 NPA_PROG=$ac_cv_path_NPA_PROG
15746 if test -n "$NPA_PROG"; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15748 $as_echo "$NPA_PROG" >&6; }
15749 else
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15751 $as_echo "no" >&6; }
15759 npa_flags="-h"
15761 # Check whether --with-npa-flags was given.
15762 if test "${with_npa_flags+set}" = set; then :
15763 withval=$with_npa_flags;
15764 if test "x$withval" != "xno" ; then
15765 npa_flags=$withval
15770 if test -n "$NPA_PROG" ; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define SENDNEWS "$NPA_PROG $npa_flags"
15774 _ACEOF
15779 # Check whether --with-password-prog was given.
15780 if test "${with_password_prog+set}" = set; then :
15781 withval=$with_password_prog;
15782 case "$withval" in
15785 yes)
15786 # Extract the first word of "passwd", so it can be a program name with args.
15787 set dummy passwd; ac_word=$2
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15789 $as_echo_n "checking for $ac_word... " >&6; }
15790 if ${ac_cv_path_PWPROG+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15793 case $PWPROG in
15794 [\\/]* | ?:[\\/]*)
15795 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799 as_dummy="$PATH:/usr/sbin:/usr/lib"
15800 for as_dir in $as_dummy
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_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
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
15814 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15816 esac
15818 PWPROG=$ac_cv_path_PWPROG
15819 if test -n "$PWPROG"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15821 $as_echo "$PWPROG" >&6; }
15822 else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15830 # Extract the first word of "$withval", so it can be a program name with args.
15831 set dummy $withval; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_path_PWPROG+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 case $PWPROG in
15838 [\\/]* | ?:[\\/]*)
15839 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15843 as_dummy="$PATH:/usr/sbin:/usr/lib"
15844 for as_dir in $as_dummy
15846 IFS=$as_save_IFS
15847 test -z "$as_dir" && as_dir=.
15848 for ac_exec_ext in '' $ac_executable_extensions; do
15849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15850 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15852 break 2
15854 done
15855 done
15856 IFS=$as_save_IFS
15858 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15860 esac
15862 PWPROG=$ac_cv_path_PWPROG
15863 if test -n "$PWPROG"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15865 $as_echo "$PWPROG" >&6; }
15866 else
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15873 esac
15875 else
15877 # Extract the first word of "passwd", so it can be a program name with args.
15878 set dummy passwd; ac_word=$2
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15880 $as_echo_n "checking for $ac_word... " >&6; }
15881 if ${ac_cv_path_PWPROG+:} false; then :
15882 $as_echo_n "(cached) " >&6
15883 else
15884 case $PWPROG in
15885 [\\/]* | ?:[\\/]*)
15886 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 as_dummy="$PATH:/usr/sbin:/usr/lib"
15891 for as_dir in $as_dummy
15893 IFS=$as_save_IFS
15894 test -z "$as_dir" && as_dir=.
15895 for ac_exec_ext in '' $ac_executable_extensions; do
15896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15897 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15899 break 2
15901 done
15902 done
15903 IFS=$as_save_IFS
15905 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15907 esac
15909 PWPROG=$ac_cv_path_PWPROG
15910 if test -n "$PWPROG"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15912 $as_echo "$PWPROG" >&6; }
15913 else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15922 if test -n "$PWPROG" ; then
15924 cat >>confdefs.h <<_ACEOF
15925 #define PASSWD_PROG "$PWPROG"
15926 _ACEOF
15931 # Check whether --with-simple-spellcheck was given.
15932 if test "${with_simple_spellcheck+set}" = set; then :
15933 withval=$with_simple_spellcheck;
15934 if test "x$withval" != "xno" ; then
15935 SPELLPROG=$withval
15938 else
15940 # Extract the first word of "hunspell", so it can be a program name with args.
15941 set dummy hunspell; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if ${ac_cv_prog_SPELLPROG+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 if test -n "$SPELLPROG"; then
15948 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15949 else
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_prog_SPELLPROG="hunspell"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15961 done
15962 done
15963 IFS=$as_save_IFS
15967 SPELLPROG=$ac_cv_prog_SPELLPROG
15968 if test -n "$SPELLPROG"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15970 $as_echo "$SPELLPROG" >&6; }
15971 else
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 $as_echo "no" >&6; }
15977 if test -z "$SPELLPROG" ; then
15978 # Extract the first word of "aspell", so it can be a program name with args.
15979 set dummy aspell; ac_word=$2
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15981 $as_echo_n "checking for $ac_word... " >&6; }
15982 if ${ac_cv_prog_SPELLPROG+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 if test -n "$SPELLPROG"; then
15986 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15987 else
15988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15991 IFS=$as_save_IFS
15992 test -z "$as_dir" && as_dir=.
15993 for ac_exec_ext in '' $ac_executable_extensions; do
15994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15995 ac_cv_prog_SPELLPROG="aspell"
15996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15997 break 2
15999 done
16000 done
16001 IFS=$as_save_IFS
16005 SPELLPROG=$ac_cv_prog_SPELLPROG
16006 if test -n "$SPELLPROG"; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16008 $as_echo "$SPELLPROG" >&6; }
16009 else
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011 $as_echo "no" >&6; }
16015 if test -z "$SPELLPROG" ; then
16016 # Extract the first word of "ispell", so it can be a program name with args.
16017 set dummy ispell; ac_word=$2
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16019 $as_echo_n "checking for $ac_word... " >&6; }
16020 if ${ac_cv_prog_SPELLPROG+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 if test -n "$SPELLPROG"; then
16024 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16025 else
16026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16027 for as_dir in $PATH
16029 IFS=$as_save_IFS
16030 test -z "$as_dir" && as_dir=.
16031 for ac_exec_ext in '' $ac_executable_extensions; do
16032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16033 ac_cv_prog_SPELLPROG="ispell"
16034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16035 break 2
16037 done
16038 done
16039 IFS=$as_save_IFS
16043 SPELLPROG=$ac_cv_prog_SPELLPROG
16044 if test -n "$SPELLPROG"; then
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16046 $as_echo "$SPELLPROG" >&6; }
16047 else
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16053 if test -z "$SPELLPROG" ; then
16054 SPELLPROG="spell"
16062 if test "x$SPELLPROG" != "xno" ; then
16063 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
16064 set dummy $SPELLPROG; ac_word=$2
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16066 $as_echo_n "checking for $ac_word... " >&6; }
16067 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 case $alpine_simple_spellcheck in
16071 [\\/]* | ?:[\\/]*)
16072 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
16075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16076 for as_dir in $PATH
16078 IFS=$as_save_IFS
16079 test -z "$as_dir" && as_dir=.
16080 for ac_exec_ext in '' $ac_executable_extensions; do
16081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16082 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16084 break 2
16086 done
16087 done
16088 IFS=$as_save_IFS
16091 esac
16093 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
16094 if test -n "$alpine_simple_spellcheck"; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
16096 $as_echo "$alpine_simple_spellcheck" >&6; }
16097 else
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16099 $as_echo "no" >&6; }
16103 if test -n "$alpine_simple_spellcheck" ; then
16104 case "$SPELLPROG" in
16105 hunspell)
16106 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16108 aspell)
16109 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
16111 ispell)
16112 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16116 esac
16121 # Check whether --with-interactive-spellcheck was given.
16122 if test "${with_interactive_spellcheck+set}" = set; then :
16123 withval=$with_interactive_spellcheck;
16124 if test "x$withval" != "xno" ; then
16125 ISPELLPROG=$withval
16128 else
16130 # Extract the first word of "hunspell", so it can be a program name with args.
16131 set dummy hunspell; ac_word=$2
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16133 $as_echo_n "checking for $ac_word... " >&6; }
16134 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137 if test -n "$ISPELLPROG"; then
16138 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16139 else
16140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16141 for as_dir in $PATH
16143 IFS=$as_save_IFS
16144 test -z "$as_dir" && as_dir=.
16145 for ac_exec_ext in '' $ac_executable_extensions; do
16146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16147 ac_cv_prog_ISPELLPROG="hunspell"
16148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16149 break 2
16151 done
16152 done
16153 IFS=$as_save_IFS
16157 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16158 if test -n "$ISPELLPROG"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16160 $as_echo "$ISPELLPROG" >&6; }
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16167 if test -z "$ISPELLPROG" ; then
16168 # Extract the first word of "aspell", so it can be a program name with args.
16169 set dummy aspell; ac_word=$2
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16171 $as_echo_n "checking for $ac_word... " >&6; }
16172 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 if test -n "$ISPELLPROG"; then
16176 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16177 else
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179 for as_dir in $PATH
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16185 ac_cv_prog_ISPELLPROG="aspell"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16187 break 2
16189 done
16190 done
16191 IFS=$as_save_IFS
16195 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16196 if test -n "$ISPELLPROG"; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16198 $as_echo "$ISPELLPROG" >&6; }
16199 else
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201 $as_echo "no" >&6; }
16205 if test -z "$SPELLPROG" ; then
16206 ISPELLPROG="ispell"
16213 if test "x$ISPELLPROG" != "xno" ; then
16214 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16215 set dummy $ISPELLPROG; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 case $alpine_interactive_spellcheck in
16222 [\\/]* | ?:[\\/]*)
16223 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16227 for as_dir in $PATH
16229 IFS=$as_save_IFS
16230 test -z "$as_dir" && as_dir=.
16231 for ac_exec_ext in '' $ac_executable_extensions; do
16232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16233 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16235 break 2
16237 done
16238 done
16239 IFS=$as_save_IFS
16242 esac
16244 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16245 if test -n "$alpine_interactive_spellcheck"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16247 $as_echo "$alpine_interactive_spellcheck" >&6; }
16248 else
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16254 if test -n "$alpine_interactive_spellcheck" ; then
16255 case "$ISPELLPROG" in
16256 aspell)
16257 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16261 esac
16265 if test -n "$alpine_interactive_spellcheck" ; then
16267 cat >>confdefs.h <<_ACEOF
16268 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16269 _ACEOF
16273 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16274 alpine_simple_spellcheck=test
16277 cat >>confdefs.h <<_ACEOF
16278 #define SPELLER "$alpine_simple_spellcheck"
16279 _ACEOF
16282 case "$prefix" in
16283 NONE) dpv=/usr/local/lib/pine.conf ;;
16284 *) dpv=${prefix}/lib/pine.conf ;;
16285 esac
16287 # Check whether --with-system-pinerc was given.
16288 if test "${with_system_pinerc+set}" = set; then :
16289 withval=$with_system_pinerc;
16290 case "$withval" in
16293 yes)
16296 dpv=$withval
16298 esac
16303 cat >>confdefs.h <<_ACEOF
16304 #define SYSTEM_PINERC "$dpv"
16305 _ACEOF
16308 case "$prefix" in
16309 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16310 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16311 esac
16313 # Check whether --with-system-fixed-pinerc was given.
16314 if test "${with_system_fixed_pinerc+set}" = set; then :
16315 withval=$with_system_fixed_pinerc;
16316 case "$withval" in
16319 yes)
16322 dpv=$withval
16324 esac
16329 cat >>confdefs.h <<_ACEOF
16330 #define SYSTEM_PINERC_FIXED "$dpv"
16331 _ACEOF
16334 case "$prefix" in
16335 NONE) dpv=/usr/local/lib/pine.info ;;
16336 *) dpv=${prefix}/lib/pine.info ;;
16337 esac
16339 # Check whether --with-local-support-info was given.
16340 if test "${with_local_support_info+set}" = set; then :
16341 withval=$with_local_support_info;
16342 case "$withval" in
16345 yes)
16348 dpv=$withval
16350 esac
16355 cat >>confdefs.h <<_ACEOF
16356 #define SYSTEM_PINE_INFO_PATH "$dpv"
16357 _ACEOF
16365 dpv=150
16367 # Check whether --with-mailcheck-interval was given.
16368 if test "${with_mailcheck_interval+set}" = set; then :
16369 withval=$with_mailcheck_interval;
16370 if test "x$withval" != "xno" ; then
16371 dpv=$withval
16377 cat >>confdefs.h <<_ACEOF
16378 #define DF_MAILCHECK "$dpv"
16379 _ACEOF
16383 dpv=420
16385 # Check whether --with-checkpoint-interval was given.
16386 if test "${with_checkpoint_interval+set}" = set; then :
16387 withval=$with_checkpoint_interval;
16388 if test "x$withval" != "xno" ; then
16389 dpv=$withval
16395 cat >>confdefs.h <<_ACEOF
16396 #define CHECK_POINT_TIME $dpv
16397 _ACEOF
16401 dpv=12
16403 # Check whether --with-checkpoint-frequency was given.
16404 if test "${with_checkpoint_frequency+set}" = set; then :
16405 withval=$with_checkpoint_frequency;
16406 if test "x$withval" != "xno" ; then
16407 dpv=$withval
16413 cat >>confdefs.h <<_ACEOF
16414 #define CHECK_POINT_FREQ $dpv
16415 _ACEOF
16419 dpv=24
16421 # Check whether --with-display-rows was given.
16422 if test "${with_display_rows+set}" = set; then :
16423 withval=$with_display_rows;
16424 if test "x$withval" != "xno" ; then
16425 dpv=$withval
16431 cat >>confdefs.h <<_ACEOF
16432 #define DEFAULT_LINES_ON_TERMINAL $dpv
16433 _ACEOF
16437 dpv=80
16439 # Check whether --with-display-columns was given.
16440 if test "${with_display_columns+set}" = set; then :
16441 withval=$with_display_columns;
16442 if test "x$withval" != "xno" ; then
16443 dpv=$withval
16449 cat >>confdefs.h <<_ACEOF
16450 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16451 _ACEOF
16455 dpv=200
16457 # Check whether --with-max-display-rows was given.
16458 if test "${with_max_display_rows+set}" = set; then :
16459 withval=$with_max_display_rows;
16460 if test "x$withval" != "xno" ; then
16461 dpv=$withval
16467 cat >>confdefs.h <<_ACEOF
16468 #define MAX_SCREEN_ROWS $dpv
16469 _ACEOF
16473 dpv=500
16475 # Check whether --with-max-display-columns was given.
16476 if test "${with_max_display_columns+set}" = set; then :
16477 withval=$with_max_display_columns;
16478 if test "x$withval" != "xno" ; then
16479 dpv=$withval
16485 cat >>confdefs.h <<_ACEOF
16486 #define MAX_SCREEN_COLS $dpv
16487 _ACEOF
16491 dpv=74
16493 # Check whether --with-fill-column was given.
16494 if test "${with_fill_column+set}" = set; then :
16495 withval=$with_fill_column;
16496 if test "x$withval" != "xno" ; then
16497 dpv=$withval
16503 cat >>confdefs.h <<_ACEOF
16504 #define DF_FILLCOL "$dpv"
16505 _ACEOF
16509 dpv=80
16511 # Check whether --with-max_fill-column was given.
16512 if test "${with_max_fill_column+set}" = set; then :
16513 withval=$with_max_fill_column;
16514 if test "x$withval" != "xno" ; then
16515 dpv=$withval
16521 cat >>confdefs.h <<_ACEOF
16522 #define MAX_FILLCOL $dpv
16523 _ACEOF
16527 dpv=2
16529 # Check whether --with-debug-level was given.
16530 if test "${with_debug_level+set}" = set; then :
16531 withval=$with_debug_level;
16532 if test "x$withval" != "xno" ; then
16533 dpv=$withval
16539 cat >>confdefs.h <<_ACEOF
16540 #define DEFAULT_DEBUG $dpv
16541 _ACEOF
16545 dpv=4
16547 # Check whether --with-debug-files was given.
16548 if test "${with_debug_files+set}" = set; then :
16549 withval=$with_debug_files;
16550 if test "x$withval" != "xno" ; then
16551 dpv=$withval
16557 cat >>confdefs.h <<_ACEOF
16558 #define NUMDEBUGFILES $dpv
16559 _ACEOF
16563 dpv=.pine-debug
16565 # Check whether --with-debug-file was given.
16566 if test "${with_debug_file+set}" = set; then :
16567 withval=$with_debug_file;
16568 if test "x$withval" != "xno" ; then
16569 dpv=$withval
16575 cat >>confdefs.h <<_ACEOF
16576 #define DEBUGFILE "$dpv"
16577 _ACEOF
16581 dpv="\$Forwarded"
16583 # Check whether --with-forwarded-keyword was given.
16584 if test "${with_forwarded_keyword+set}" = set; then :
16585 withval=$with_forwarded_keyword;
16586 if test "x$withval" != "xno" ; then
16587 dpv=$withval
16593 cat >>confdefs.h <<_ACEOF
16594 #define FORWARDED_FLAG "$dpv"
16595 _ACEOF
16599 dpv=2
16601 # Check whether --with-display-overlap was given.
16602 if test "${with_display_overlap+set}" = set; then :
16603 withval=$with_display_overlap;
16604 if test "x$withval" != "xno" ; then
16605 dpv=$withval
16611 cat >>confdefs.h <<_ACEOF
16612 #define DF_OVERLAP "$dpv"
16613 _ACEOF
16617 dpv=0
16619 # Check whether --with-display-margin was given.
16620 if test "${with_display_margin+set}" = set; then :
16621 withval=$with_display_margin;
16622 if test "x$withval" != "xno" ; then
16623 dpv=$withval
16629 cat >>confdefs.h <<_ACEOF
16630 #define DF_MARGIN "$dpv"
16631 _ACEOF
16635 dpv=sent-mail
16637 # Check whether --with-default-fcc was given.
16638 if test "${with_default_fcc+set}" = set; then :
16639 withval=$with_default_fcc;
16640 if test "x$withval" != "xno" ; then
16641 dpv=$withval
16647 cat >>confdefs.h <<_ACEOF
16648 #define DF_DEFAULT_FCC "$dpv"
16649 _ACEOF
16653 dpv=saved-messages
16655 # Check whether --with-default-save-folder was given.
16656 if test "${with_default_save_folder+set}" = set; then :
16657 withval=$with_default_save_folder;
16658 if test "x$withval" != "xno" ; then
16659 dpv=$withval
16665 cat >>confdefs.h <<_ACEOF
16666 #define DEFAULT_SAVE "$dpv"
16667 _ACEOF
16671 dpv=postponed-mail
16673 # Check whether --with-default-legacy-postponed-folder was given.
16674 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16675 withval=$with_default_legacy_postponed_folder;
16676 if test "x$withval" != "xno" ; then
16677 dpv=$withval
16683 cat >>confdefs.h <<_ACEOF
16684 #define POSTPONED_MAIL "$dpv"
16685 _ACEOF
16689 dpv=postponed-msgs
16691 # Check whether --with-default-postponed-folder was given.
16692 if test "${with_default_postponed_folder+set}" = set; then :
16693 withval=$with_default_postponed_folder;
16694 if test "x$withval" != "xno" ; then
16695 dpv=$withval
16701 cat >>confdefs.h <<_ACEOF
16702 #define POSTPONED_MSGS "$dpv"
16703 _ACEOF
16707 dpv=Trash
16709 # Check whether --with-default-trash-folder was given.
16710 if test "${with_default_trash_folder+set}" = set; then :
16711 withval=$with_default_trash_folder;
16712 if test "x$withval" != "xno" ; then
16713 dpv=$withval
16719 cat >>confdefs.h <<_ACEOF
16720 #define TRASH_FOLDER "$dpv"
16721 _ACEOF
16725 dpv=.pine-interrupted-mail
16727 # Check whether --with-default-interrupted-mail was given.
16728 if test "${with_default_interrupted_mail+set}" = set; then :
16729 withval=$with_default_interrupted_mail;
16730 if test "x$withval" != "xno" ; then
16731 dpv=$withval
16737 cat >>confdefs.h <<_ACEOF
16738 #define INTERRUPTED_MAIL "$dpv"
16739 _ACEOF
16743 dpv=dead.letter
16745 # Check whether --with-default-dead-letter-folder was given.
16746 if test "${with_default_dead_letter_folder+set}" = set; then :
16747 withval=$with_default_dead_letter_folder;
16748 if test "x$withval" != "xno" ; then
16749 dpv=$withval
16755 cat >>confdefs.h <<_ACEOF
16756 #define DEADLETTER "$dpv"
16757 _ACEOF
16761 dpv=mail
16763 # Check whether --with-default-mail-directory was given.
16764 if test "${with_default_mail_directory+set}" = set; then :
16765 withval=$with_default_mail_directory;
16766 if test "x$withval" != "xno" ; then
16767 dpv=$withval
16773 cat >>confdefs.h <<_ACEOF
16774 #define DF_MAIL_DIRECTORY "$dpv"
16775 _ACEOF
16779 dpv=INBOX
16781 # Check whether --with-default-inbox-name was given.
16782 if test "${with_default_inbox_name+set}" = set; then :
16783 withval=$with_default_inbox_name;
16784 if test "x$withval" != "xno" ; then
16785 dpv=$withval
16791 cat >>confdefs.h <<_ACEOF
16792 #define INBOX_NAME "$dpv"
16793 _ACEOF
16797 dpv=.signature
16799 # Check whether --with-default-signature-file was given.
16800 if test "${with_default_signature_file+set}" = set; then :
16801 withval=$with_default_signature_file;
16802 if test "x$withval" != "xno" ; then
16803 dpv=$withval
16809 cat >>confdefs.h <<_ACEOF
16810 #define DF_SIGNATURE_FILE "$dpv"
16811 _ACEOF
16815 dpv=no
16817 # Check whether --with-default-elm-style-save was given.
16818 if test "${with_default_elm_style_save+set}" = set; then :
16819 withval=$with_default_elm_style_save;
16820 if test "x$withval" != "xno" ; then
16821 dpv=$withval
16827 cat >>confdefs.h <<_ACEOF
16828 #define DF_ELM_STYLE_SAVE "$dpv"
16829 _ACEOF
16833 dpv=no
16835 # Check whether --with-default-header-in-reply was given.
16836 if test "${with_default_header_in_reply+set}" = set; then :
16837 withval=$with_default_header_in_reply;
16838 if test "x$withval" != "xno" ; then
16839 dpv=$withval
16845 cat >>confdefs.h <<_ACEOF
16846 #define DF_HEADER_IN_REPLY "$dpv"
16847 _ACEOF
16851 dpv=no
16853 # Check whether --with-default-old-style-reply was given.
16854 if test "${with_default_old_style_reply+set}" = set; then :
16855 withval=$with_default_old_style_reply;
16856 if test "x$withval" != "xno" ; then
16857 dpv=$withval
16863 cat >>confdefs.h <<_ACEOF
16864 #define DF_OLD_STYLE_REPLY "$dpv"
16865 _ACEOF
16869 dpv=no
16871 # Check whether --with-default-use-only-domain-name was given.
16872 if test "${with_default_use_only_domain_name+set}" = set; then :
16873 withval=$with_default_use_only_domain_name;
16874 if test "x$withval" != "xno" ; then
16875 dpv=$withval
16881 cat >>confdefs.h <<_ACEOF
16882 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16883 _ACEOF
16887 dpv=no
16889 # Check whether --with-default-save-by-sender was given.
16890 if test "${with_default_save_by_sender+set}" = set; then :
16891 withval=$with_default_save_by_sender;
16892 if test "x$withval" != "xno" ; then
16893 dpv=$withval
16899 cat >>confdefs.h <<_ACEOF
16900 #define DF_SAVE_BY_SENDER "$dpv"
16901 _ACEOF
16905 dpv=arrival
16907 # Check whether --with-default-sort-key was given.
16908 if test "${with_default_sort_key+set}" = set; then :
16909 withval=$with_default_sort_key;
16910 if test "x$withval" != "xno" ; then
16911 dpv=$withval
16917 cat >>confdefs.h <<_ACEOF
16918 #define DF_SORT_KEY "$dpv"
16919 _ACEOF
16923 dpv=fullname-with-lists-last
16925 # Check whether --with-default-addressbook-sort-rule was given.
16926 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16927 withval=$with_default_addressbook_sort_rule;
16928 if test "x$withval" != "xno" ; then
16929 dpv=$withval
16935 cat >>confdefs.h <<_ACEOF
16936 #define DF_AB_SORT_RULE "$dpv"
16937 _ACEOF
16941 dpv=alphabetical
16943 # Check whether --with-default-folder-sort-rule was given.
16944 if test "${with_default_folder_sort_rule+set}" = set; then :
16945 withval=$with_default_folder_sort_rule;
16946 if test "x$withval" != "xno" ; then
16947 dpv=$withval
16953 cat >>confdefs.h <<_ACEOF
16954 #define DF_FLD_SORT_RULE "$dpv"
16955 _ACEOF
16959 dpv=default-folder
16961 # Check whether --with-default-saved-message-name-rule was given.
16962 if test "${with_default_saved_message_name_rule+set}" = set; then :
16963 withval=$with_default_saved_message_name_rule;
16964 if test "x$withval" != "xno" ; then
16965 dpv=$withval
16971 cat >>confdefs.h <<_ACEOF
16972 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16973 _ACEOF
16977 dpv=default-fcc
16979 # Check whether --with-default-fcc-rule was given.
16980 if test "${with_default_fcc_rule+set}" = set; then :
16981 withval=$with_default_fcc_rule;
16982 if test "x$withval" != "xno" ; then
16983 dpv=$withval
16989 cat >>confdefs.h <<_ACEOF
16990 #define DF_FCC_RULE "$dpv"
16991 _ACEOF
16995 dpv=lpr
16997 # Check whether --with-default-standard-printer was given.
16998 if test "${with_default_standard_printer+set}" = set; then :
16999 withval=$with_default_standard_printer;
17000 if test "x$withval" != "xno" ; then
17001 dpv=$withval
17007 cat >>confdefs.h <<_ACEOF
17008 #define DF_STANDARD_PRINTER "$dpv"
17009 _ACEOF
17013 dpv=attached-to-ansi
17015 # Check whether --with-default-ansi-printer was given.
17016 if test "${with_default_ansi_printer+set}" = set; then :
17017 withval=$with_default_ansi_printer;
17018 if test "x$withval" != "xno" ; then
17019 dpv=$withval
17025 cat >>confdefs.h <<_ACEOF
17026 #define ANSI_PRINTER "$dpv"
17027 _ACEOF
17031 dpv=.addressbook
17033 # Check whether --with-default-addressbook was given.
17034 if test "${with_default_addressbook+set}" = set; then :
17035 withval=$with_default_addressbook;
17036 if test "x$withval" != "xno" ; then
17037 dpv=$withval
17043 cat >>confdefs.h <<_ACEOF
17044 #define DF_ADDRESSBOOK "$dpv"
17045 _ACEOF
17049 dpv="Local Support"
17051 # Check whether --with-default-local-fullname was given.
17052 if test "${with_default_local_fullname+set}" = set; then :
17053 withval=$with_default_local_fullname;
17054 if test "x$withval" != "xno" ; then
17055 dpv=$withval
17061 cat >>confdefs.h <<_ACEOF
17062 #define DF_LOCAL_FULLNAME "$dpv"
17063 _ACEOF
17067 dpv=postmaster
17069 # Check whether --with-default-local-address was given.
17070 if test "${with_default_local_address+set}" = set; then :
17071 withval=$with_default_local_address;
17072 if test "x$withval" != "xno" ; then
17073 dpv=$withval
17079 cat >>confdefs.h <<_ACEOF
17080 #define DF_LOCAL_ADDRESS "$dpv"
17081 _ACEOF
17085 dpv=1
17087 # Check whether --with-default-keyboard-lock-count was given.
17088 if test "${with_default_keyboard_lock_count+set}" = set; then :
17089 withval=$with_default_keyboard_lock_count;
17090 if test "x$withval" != "xno" ; then
17091 dpv=$withval
17097 cat >>confdefs.h <<_ACEOF
17098 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
17099 _ACEOF
17103 dpv=3
17105 # Check whether --with-default-remote-addressbook-history was given.
17106 if test "${with_default_remote_addressbook_history+set}" = set; then :
17107 withval=$with_default_remote_addressbook_history;
17108 if test "x$withval" != "xno" ; then
17109 dpv=$withval
17115 cat >>confdefs.h <<_ACEOF
17116 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
17117 _ACEOF
17121 dpv=.alpine-smime/public
17123 # Check whether --with-smime-public-cert-directory was given.
17124 if test "${with_smime_public_cert_directory+set}" = set; then :
17125 withval=$with_smime_public_cert_directory;
17126 if test "x$withval" != "xno" ; then
17127 dpv=$withval
17133 cat >>confdefs.h <<_ACEOF
17134 #define DF_PUBLICCERT_DIR "$dpv"
17135 _ACEOF
17139 dpv=.alpine-smime/private
17141 # Check whether --with-smime-private-key-directory was given.
17142 if test "${with_smime_private_key_directory+set}" = set; then :
17143 withval=$with_smime_private_key_directory;
17144 if test "x$withval" != "xno" ; then
17145 dpv=$withval
17151 cat >>confdefs.h <<_ACEOF
17152 #define DF_PRIVATEKEY_DIR "$dpv"
17153 _ACEOF
17157 dpv=.alpine-smime/ca
17159 # Check whether --with-smime-cacert-directory was given.
17160 if test "${with_smime_cacert_directory+set}" = set; then :
17161 withval=$with_smime_cacert_directory;
17162 if test "x$withval" != "xno" ; then
17163 dpv=$withval
17169 cat >>confdefs.h <<_ACEOF
17170 #define DF_CACERT_DIR "$dpv"
17171 _ACEOF
17175 dpv=ANSI_PRINTER
17177 # Check whether --with-default-printer was given.
17178 if test "${with_default_printer+set}" = set; then :
17179 withval=$with_default_printer;
17180 if test "x$withval" != "xno" ; then
17181 dpv=$withval
17187 cat >>confdefs.h <<_ACEOF
17188 #define DF_DEFAULT_PRINTER $dpv
17189 _ACEOF
17194 cat >>confdefs.h <<_ACEOF
17195 #define DF_PUBLIC_CONTAINER "PublicContainer"
17196 _ACEOF
17199 cat >>confdefs.h <<_ACEOF
17200 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17201 _ACEOF
17204 cat >>confdefs.h <<_ACEOF
17205 #define DF_CA_CONTAINER "CAContainer"
17206 _ACEOF
17210 # Check whether --with-passfile was given.
17211 if test "${with_passfile+set}" = set; then :
17212 withval=$with_passfile;
17213 case "$withval" in
17216 yes)
17219 alpine_PASSFILE=$withval
17221 esac
17228 # Check whether --with-local-password-cache was given.
17229 if test "${with_local_password_cache+set}" = set; then :
17230 withval=$with_local_password_cache;
17231 alpine_os_credential_cache=$withval
17237 # Check whether --with-local-password-cache-method was given.
17238 if test "${with_local_password_cache_method+set}" = set; then :
17239 withval=$with_local_password_cache_method;
17240 alpine_os_credential_cache_method=$withval
17245 if test -n "$alpine_PASSFILE" ; then
17246 case $alpine_os_credential_cache in
17250 alpine_os_credential_cache="no"
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17252 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17254 esac
17256 cat >>confdefs.h <<_ACEOF
17257 #define PASSFILE "$alpine_PASSFILE"
17258 _ACEOF
17263 # Check whether --with-default-sshpath was given.
17264 if test "${with_default_sshpath+set}" = set; then :
17265 withval=$with_default_sshpath;
17266 case "$withval" in
17269 yes)
17273 cat >>confdefs.h <<_ACEOF
17274 #define DF_SSHPATH "$withval"
17275 _ACEOF
17278 esac
17284 # Check whether --with-default-sshcmd was given.
17285 if test "${with_default_sshcmd+set}" = set; then :
17286 withval=$with_default_sshcmd;
17287 case "$withval" in
17290 yes)
17294 cat >>confdefs.h <<_ACEOF
17295 #define DF_SSHCMD "$withval"
17296 _ACEOF
17299 esac
17305 # Check whether --with-ssl was given.
17306 if test "${with_ssl+set}" = set; then :
17307 withval=$with_ssl; with_ssl=$withval
17311 if test "x$with_ssl" = "xno" ; then
17312 alpine_SSLTYPE="none"
17313 elif test -d /usr/local/ssl ; then
17314 alpine_SSLDIR="/usr/local/ssl"
17315 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17316 alpine_SSLLIB="$alpine_SSLDIR/lib"
17317 else
17318 case $host in
17319 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17320 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17321 alpine_SSLTYPE="nopwd"
17322 if test -d /etc/pki/tls ; then
17323 alpine_SSLDIR="/etc/pki/tls"
17324 else
17325 alpine_SSLDIR="/usr/share/ssl"
17327 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17328 alpine_SSLKEYS="$alpine_SSLDIR/private"
17329 alpine_SSLINCLUDE="/usr/include/openssl"
17330 alpine_SSLLIB="/usr/lib"
17331 elif test -f /etc/mandrake-release ; then
17332 alpine_SSLDIR="/usr/lib/ssl"
17333 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17334 alpine_SSLKEYS="$alpine_SSLDIR/private"
17335 alpine_SSLINCLUDE="/usr/include/openssl"
17336 alpine_SSLLIB="/usr/lib"
17337 elif test -f /etc/SuSE-release ; then
17338 alpine_SSLTYPE="nopwd"
17339 alpine_SSLDIR="/etc/ssl"
17340 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17341 alpine_SSLKEYS="$alpine_SSLDIR/private"
17342 alpine_SSLINCLUDE="/usr/include/openssl"
17343 alpine_SSLLIB="/usr/lib"
17344 elif test -d /etc/osso-af-init ; then
17345 alpine_SSLTYPE="nopwd"
17346 alpine_SSLDIR="/usr"
17347 alpine_SSLCERTS="/usr/share/certs"
17348 alpine_SSLINCLUDE="/usr/include/openssl"
17349 alpine_SSLLIB="/usr/lib"
17350 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17351 if test ! -d /etc/osso-af-init ; then
17352 alpine_SSLDIR="/etc/ssl"
17353 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17354 alpine_SSLKEYS="$alpine_SSLDIR/private"
17355 alpine_SSLINCLUDE="/usr/include/openssl"
17356 alpine_SSLLIB="/usr/lib"
17358 elif test -f /etc/manjaro-release ; then
17359 alpine_SSLDIR="/etc/ssl"
17360 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17361 alpine_SSLKEYS="$alpine_SSLDIR/private"
17362 alpine_SSLINCLUDE="/usr/include/openssl"
17363 alpine_SSLLIB="/usr/lib"
17364 else
17365 alpine_SSLTYPE="nopwd"
17366 alpine_SSLDIR="/usr"
17367 alpine_SSLCERTS="/etc/ssl/certs"
17370 *-apple-darwin*)
17371 alpine_SSLTYPE="nopwd"
17372 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17373 if test -d /usr/local/opt/openssl ; then
17374 alpine_SSLDIR="/usr/local/opt/openssl"
17375 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17376 alpine_SSLLIB="$alpine_SSLDIR/lib"
17377 alpine_SSLCERTS="/usr/local/etc/openssl"
17378 alpine_SSLKEYS="$alpine_SSLDIR/private"
17379 elif test -d /opt/local/etc/openssl ; then
17380 alpine_SSLDIR="/opt/local"
17381 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17382 alpine_SSLLIB="$alpine_SSLDIR/lib"
17383 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17384 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17385 elif test -d /sw/etc/ssl ; then
17386 alpine_SSLDIR="/sw/etc/ssl"
17387 alpine_SSLINCLUDE="/sw/include"
17388 alpine_SSLLIB="/sw/lib"
17389 alpine_SSLCERTS="/sw/etc/ssl/certs"
17390 alpine_SSLKEYS="/sw/etc/ssl/private"
17391 elif test -d /usr/local/ssl ; then
17392 alpine_SSLDIR="/usr/local/ssl"
17393 elif test -d /System/Library/OpenSSL ; then
17394 alpine_SSLDIR="/System/Library/OpenSSL"
17395 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17396 alpine_SSLKEYS="$alpine_SSLDIR/private"
17397 alpine_SSLLIB="/usr/lib"
17398 alpine_SSLINCLUDE="/usr/include/openssl"
17401 *-*-netbsd*)
17402 alpine_SSLDIR="/etc/openssl"
17403 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17404 alpine_SSLKEYS="$alpine_SSLDIR/private"
17405 alpine_SSLINCLUDE="/usr/include/openssl"
17406 alpine_SSLLIB="/usr/lib"
17408 *-*-dragonfly*)
17409 alpine_SSLDIR="/etc/openssl"
17410 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17411 alpine_SSLKEYS="$alpine_SSLDIR/private"
17412 alpine_SSLINCLUDE="/usr/include/openssl"
17413 alpine_SSLLIB="/usr/lib"
17415 *-openbsd*)
17416 alpine_SSLTYPE="nopwd"
17417 alpine_SSLDIR="/usr"
17418 alpine_SSLCERTS="/etc/ssl/certs"
17420 *-*-freebsd*)
17421 alpine_SSLDIR="/etc/ssl"
17422 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17423 alpine_SSLKEYS="$alpine_SSLDIR/private"
17424 if test -d /usr/local/include/openssl ; then
17425 alpine_SSLINCLUDE="/usr/local/include/openssl"
17426 alpine_SSLLIB="/usr/local/lib"
17427 else
17428 alpine_SSLINCLUDE="/usr/include/openssl"
17429 alpine_SSLLIB="/usr/lib"
17432 *-*-openbsd*)
17433 alpine_SSLDIR="/etc/ssl"
17434 alpine_SSLINCLUDE="/usr/include/openssl"
17435 alpine_SSLLIB="/usr/lib"
17436 alpine_SSLCERTS="/etc/ssl"
17437 alpine_SSLKEYS="/etc/ssl/private"
17439 *-*-cygwin)
17440 alpine_SSLDIR="/usr/ssl"
17441 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17442 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17443 alpine_SSLINCLUDE="/usr/include/openssl"
17444 alpine_SSLLIB="/usr/lib"
17446 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17447 alpine_SSLTYPE="sco.nopwd"
17448 alpine_SSLDIR="/usr/local/ssl"
17450 *-*-solaris*)
17451 if test -d /usr/include/openssl ; then
17452 alpine_SSLINCLUDE="/usr/include/openssl"
17453 elif test -d /usr/sfw/include/openssl ; then
17454 alpine_SSLDIR="/usr/sfw"
17455 elif test -d /opt/csw/include/openssl ; then
17456 alpine_SSLDIR="/opt/csw"
17457 if test -d /opt/csw/ssl/certs ; then
17458 alpine_SSLCERTS="/opt/csw/ssl/certs"
17461 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17462 alpine_SSLCERTS="/etc/certs"
17466 alpine_SSLTYPE="nopwd"
17467 alpine_SSLDIR="/usr/local/ssl"
17469 esac
17472 if test "x$alpine_SSLTYPE" != "xnone" ; then
17474 # Check whether --with-ssl-dir was given.
17475 if test "${with_ssl_dir+set}" = set; then :
17476 withval=$with_ssl_dir;
17477 if test "x$withval" != "xno" ; then
17478 alpine_SSLDIR=$withval
17479 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17480 alpine_SSLLIB=$alpine_SSLDIR/lib
17487 # Check whether --with-ssl-certs-dir was given.
17488 if test "${with_ssl_certs_dir+set}" = set; then :
17489 withval=$with_ssl_certs_dir;
17490 if test "x$withval" != "xno" ; then
17491 alpine_SSLCERTS=$withval
17498 # Check whether --with-ssl-include-dir was given.
17499 if test "${with_ssl_include_dir+set}" = set; then :
17500 withval=$with_ssl_include_dir;
17501 if test "x$withval" != "xno" ; then
17502 alpine_SSLINCLUDE=$withval
17509 # Check whether --with-ssl-lib-dir was given.
17510 if test "${with_ssl_lib_dir+set}" = set; then :
17511 withval=$with_ssl_lib_dir;
17512 if test "x$withval" != "xno" ; then
17513 alpine_SSLLIB=$withval
17519 if test -n "$alpine_SSLINCLUDE" ; then
17520 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17521 elif test -n "$alpine_SSLDIR" ; then
17522 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17524 if test -n "$alpine_SSLLIB" ; then
17525 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17526 elif test -n "$alpine_SSLDIR" ; then
17527 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17531 if test "x$alpine_SSLTYPE" != "xnone" ; then
17532 alpine_default_SSLMIN="no_min"
17533 alpine_default_SSLMAX="no_max"
17534 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17535 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17536 alpine_SSLMIN="$alpine_default_SSLMIN"
17537 alpine_SSLMAX="$alpine_default_SSLMAX"
17538 alpine_RANGE="$alpine_default_RANGE"
17540 # Check whether --with-encryption-minimum-version was given.
17541 if test "${with_encryption_minimum_version+set}" = set; then :
17542 withval=$with_encryption_minimum_version;
17543 if test "x$withval" != "xno" ; then
17544 alpine_SSLMIN=$withval
17550 # Check whether --with-encryption-maximum-version was given.
17551 if test "${with_encryption_maximum_version+set}" = set; then :
17552 withval=$with_encryption_maximum_version;
17553 if test "x$withval" != "xno" ; then
17554 alpine_SSLMAX=$withval
17559 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17560 for range in ${alpine_RANGE} ; do
17561 for encryption in ${alpine_ENCRYPTION} ; do
17562 if test "x$range" = "x$encryption" ; then
17563 if test -z $alpine_min ; then
17564 alpine_min="yes"
17565 else
17566 alpine_max="yes"
17569 done
17570 done
17572 if test -z $alpine_max ; then
17573 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17576 if test -z $alpine_min ; then
17577 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17580 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17581 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17582 if test -n "$alpine_RANGE_FEASIBLE" ; then
17583 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17584 else
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17586 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17587 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17589 else
17590 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17592 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17593 alpine_SSLMAX="$alpine_default_SSLMAX"
17595 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17597 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17598 alpine_SSLMIN="$alpine_default_SSLMIN"
17600 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17603 dpv=$alpine_RANGE
17605 # Check whether --with-encryption-range was given.
17606 if test "${with_encryption_range+set}" = set; then :
17607 withval=$with_encryption_range;
17608 if test "x$withval" != "xno" ; then
17609 dpv=$withval
17615 cat >>confdefs.h <<_ACEOF
17616 #define DF_ENCRYPTION_RANGE "$dpv"
17617 _ACEOF
17623 # Check whether --with-krb5 was given.
17624 if test "${with_krb5+set}" = set; then :
17625 withval=$with_krb5; with_krb5=$withval
17629 if test "x$with_krb5" = "xno" ; then
17630 alpine_GSSTYPE="none"
17631 else
17632 alpine_GSSTYPE=
17635 # Check whether --with-krb5-dir was given.
17636 if test "${with_krb5_dir+set}" = set; then :
17637 withval=$with_krb5_dir;
17638 if test "x$withval" != "xno" ; then
17639 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17640 LDFLAGS="$LDFLAGS -L${withval}/lib"
17647 # Check whether --with-krb5-include-dir was given.
17648 if test "${with_krb5_include_dir+set}" = set; then :
17649 withval=$with_krb5_include_dir;
17650 if test "x$withval" != "xno" ; then
17651 CPPFLAGS="$CPPFLAGS -I$withval"
17658 # Check whether --with-krb5-lib-dir was given.
17659 if test "${with_krb5_lib_dir+set}" = set; then :
17660 withval=$with_krb5_lib_dir;
17661 if test "x$withval" != "xno" ; then
17662 LDFLAGS="$LDFLAGS -L$withval"
17670 # Check whether --with-ldap was given.
17671 if test "${with_ldap+set}" = set; then :
17672 withval=$with_ldap; with_ldap=$withval
17676 if test "x$with_ldap" = "xno" ; then
17677 alpine_with_ldap=
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17679 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17680 else
17682 case $host in
17683 *-*-freebsd*)
17684 alpine_LDAPDIR="/usr/local"
17685 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17686 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17688 esac;
17690 alpine_with_ldap=yes
17693 # Check whether --with-ldap-dir was given.
17694 if test "${with_ldap_dir+set}" = set; then :
17695 withval=$with_ldap_dir;
17696 if test "x$withval" != "xno" ; then
17697 alpine_LDAPDIR="${withval}"
17698 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17699 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17706 # Check whether --with-ldap-include-dir was given.
17707 if test "${with_ldap_include_dir+set}" = set; then :
17708 withval=$with_ldap_include_dir;
17709 if test "x$withval" != "xno" ; then
17710 alpine_LDAPINCLUDE="$withval"
17717 # Check whether --with-ldap-lib-dir was given.
17718 if test "${with_ldap_lib_dir+set}" = set; then :
17719 withval=$with_ldap_lib_dir;
17720 if test "x$withval" != "xno" ; then
17721 alpine_LDAPLIB="${withval}"
17727 if test -n "$alpine_LDAPINCLUDE" ; then
17728 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17730 if test -n "$alpine_LDAPLIB" ; then
17731 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17736 # Check whether --with-smime was given.
17737 if test "${with_smime+set}" = set; then :
17738 withval=$with_smime; with_smime=$withval
17743 # Check whether --with-tcl was given.
17744 if test "${with_tcl+set}" = set; then :
17745 withval=$with_tcl; with_tcl=$withval
17749 if test "x$with_tcl" = "xno" ; then
17750 WEB_BUILD=
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17752 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17753 else
17755 # Check whether --with-tcl-lib-dir was given.
17756 if test "${with_tcl_lib_dir+set}" = set; then :
17757 withval=$with_tcl_lib_dir;
17758 if test "x$withval" != "xno" ; then
17759 alpine_TCLLIBDIR=$withval
17760 if test -n "$alpine_TCLLIBDIR" ; then
17761 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17768 # Check whether --with-tcl-lib was given.
17769 if test "${with_tcl_lib+set}" = set; then :
17770 withval=$with_tcl_lib;
17771 if test "x$withval" != "xno" ; then
17772 alpine_TCLLIB=$withval
17778 # Check whether --with-tcl-include was given.
17779 if test "${with_tcl_include+set}" = set; then :
17780 withval=$with_tcl_include;
17781 if test "x$withval" != "xno" ; then
17782 CPPFLAGS="$CPPFLAGS -I$withval"
17783 alpine_TCLINC=$withval
17791 # Check whether --with-supplied-regex was given.
17792 if test "${with_supplied_regex+set}" = set; then :
17793 withval=$with_supplied_regex; alpine_REGEX=$withval
17798 # Check whether --with-pthread was given.
17799 if test "${with_pthread+set}" = set; then :
17800 withval=$with_pthread; with_pthread=$withval
17805 # Check whether --with-system-mail-directory was given.
17806 if test "${with_system_mail_directory+set}" = set; then :
17807 withval=$with_system_mail_directory;
17808 if test "x$withval" != "xno" ; then
17809 alpine_with_local_maildir="$withval"
17816 # Check whether --with-c-client-target was given.
17817 if test "${with_c_client_target+set}" = set; then :
17818 withval=$with_c_client_target;
17819 if test "x$withval" != "xno" ;then
17820 alpine_with_c_client_target="$withval"
17827 alpine_c_client_bundled="no"
17829 # Check whether --with-bundled-tools was given.
17830 if test "${with_bundled_tools+set}" = set; then :
17831 withval=$with_bundled_tools;
17832 if test "x$withval" = "xyes" ; then
17833 alpine_c_client_bundled=""
17839 alpine_PAM="none"
17841 case "$host" in
17842 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17843 alpine_path_delim="/"
17844 alpine_mode_readonly="(0600)"
17845 if test -f /etc/fedora-release ; then
17846 systype="LFD"
17847 alpine_PAM="yes"
17848 if test -d /etc/pki/tls ; then
17849 alpine_c_client_target="lfd"
17850 else
17851 alpine_c_client_target="lrh"
17853 elif test -f /etc/mandrake-release ; then
17854 systype="LMD"
17855 alpine_c_client_target="lmd"
17856 alpine_PAM="yes"
17857 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17858 systype="LRH"
17859 alpine_PAM="yes"
17860 if test -d /etc/pki/tls ; then
17861 alpine_c_client_target="lr5"
17862 else
17863 alpine_c_client_target="lrh"
17865 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17866 if test -d /etc/osso-af-init ; then
17867 systype="LN8"
17868 alpine_c_client_target="ln8"
17869 else
17870 systype="DEB"
17871 alpine_c_client_target="ldb"
17872 alpine_PAM="yes"
17874 elif test -f /etc/SuSE-release; then
17875 systype="LSU"
17876 alpine_c_client_target="lsu"
17877 alpine_PAM="yes"
17878 else
17879 systype="LNX"
17880 if test -z "$alpine_c_client_bundled" ; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17882 $as_echo_n "checking for am_start in -lpam... " >&6; }
17883 if ${ac_cv_lib_pam_am_start+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 ac_check_lib_save_LIBS=$LIBS
17887 LIBS="-lpam $LIBS"
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894 #ifdef __cplusplus
17895 extern "C"
17896 #endif
17897 char am_start ();
17899 main ()
17901 return am_start ();
17903 return 0;
17905 _ACEOF
17906 if ac_fn_c_try_link "$LINENO"; then :
17907 ac_cv_lib_pam_am_start=yes
17908 else
17909 ac_cv_lib_pam_am_start=no
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17913 LIBS=$ac_check_lib_save_LIBS
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17916 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17917 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17919 alpine_c_client_target="lnp"
17920 alpine_PAM="yes"
17922 else
17924 if test -f /etc/shadow ; then
17925 alpine_c_client_target="slx"
17926 else
17927 alpine_c_client_target="lnx"
17932 else
17933 if test -f /etc/shadow ; then
17934 alpine_c_client_target="slx"
17935 else
17936 alpine_c_client_target="lnx"
17941 *-apple-darwin*)
17942 systype="OSX"
17943 alpine_path_delim="/"
17944 alpine_mode_readonly="(0600)"
17945 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17946 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17948 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17950 case "$alpine_os_credential_cache" in
17955 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17958 esac
17959 if test -z "$alpine_c_client_bundled" ; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17961 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17962 if ${ac_cv_lib_pam_pam_start+:} false; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-lpam $LIBS"
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17970 /* Override any GCC internal prototype to avoid an error.
17971 Use char because int might match the return type of a GCC
17972 builtin and then its argument prototype would still apply. */
17973 #ifdef __cplusplus
17974 extern "C"
17975 #endif
17976 char pam_start ();
17978 main ()
17980 return pam_start ();
17982 return 0;
17984 _ACEOF
17985 if ac_fn_c_try_link "$LINENO"; then :
17986 ac_cv_lib_pam_pam_start=yes
17987 else
17988 ac_cv_lib_pam_pam_start=no
17990 rm -f core conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17995 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17996 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17998 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17999 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18001 alpine_PAM="yes"
18002 alpine_c_client_target="oxs"
18004 else
18005 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18006 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18008 alpine_PAM="yes"
18009 alpine_c_client_target="oxp"
18011 else
18013 alpine_PAM="none"
18014 alpine_pam_none_reason="header files not found"
18024 else
18026 alpine_c_client_target="osx"
18030 else
18031 alpine_c_client_target="osx"
18034 *-*-solaris*)
18035 if test x$GCC = "xyes" ; then
18036 systype="GSO"
18037 alpine_c_client_target="gso"
18038 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
18039 else
18040 systype="SOC"
18041 alpine_c_client_target="soc"
18043 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18046 alpine_path_delim="/"
18047 alpine_mode_readonly="(0600)"
18049 *-*-sunos4*)
18050 systype="SUN"
18051 alpine_path_delim="/"
18052 alpine_mode_readonly="(0600)"
18053 alpine_c_client_target="s40"
18055 *-*-sco3.2v5*)
18056 if test x$GCC = "xyes" ; then
18057 systype="GO5"
18058 alpine_c_client_target="go5"
18059 else
18060 systype="SC5"
18061 alpine_c_client_target="sc5"
18063 alpine_path_delim="/"
18064 alpine_mode_readonly="(0600)"
18066 *-next-*)
18067 systype="NXT"
18068 alpine_path_delim="/"
18069 alpine_mode_readonly="(0600)"
18070 alpine_c_client_target="nx3"
18072 *-*-netbsd*)
18073 systype="NEB"
18074 alpine_path_delim="/"
18075 alpine_mode_readonly="(0600)"
18076 alpine_c_client_target="neb"
18078 *-*-dragonfly*)
18079 systype="DFB"
18080 alpine_path_delim="/"
18081 alpine_mode_readonly="(0600)"
18082 alpine_c_client_target="neb"
18084 *-*-bsdi*)
18085 systype="BSI"
18086 alpine_path_delim="/"
18087 alpine_mode_readonly="(0600)"
18088 alpine_c_client_target="bsi"
18090 *-*-freebsd*)
18091 systype="BSF"
18092 alpine_path_delim="/"
18093 alpine_mode_readonly="(0600)"
18094 alpine_c_client_target="bsf"
18095 LIBS="$LIBS $LIBINTL"
18097 *-*-openbsd*)
18098 systype="BSO"
18099 alpine_path_delim="/"
18100 alpine_mode_readonly="(0600)"
18101 alpine_c_client_target="bso"
18102 LIBS="$LIBS $LIBINTL"
18104 *-*-aix5*)
18105 systype="A52"
18106 alpine_path_delim="/"
18107 alpine_mode_readonly="(0600)"
18108 alpine_c_client_target="a52"
18110 *-*-aix4*)
18111 systype="A41"
18112 alpine_path_delim="/"
18113 alpine_mode_readonly="(0600)"
18114 alpine_c_client_target="a41"
18116 *-*-aix3*)
18117 systype="A32"
18118 alpine_path_delim="/"
18119 alpine_mode_readonly="(0600)"
18120 alpine_c_client_target="a32"
18122 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
18123 systype="UW2"
18124 alpine_path_delim="/"
18125 alpine_mode_readonly="(0600)"
18126 alpine_c_client_target="uw2"
18128 *-*-osf5*)
18129 systype="OSF"
18130 alpine_path_delim="/"
18131 alpine_mode_readonly="(0600)"
18132 alpine_c_client_target="osf"
18134 *-*-cygwin)
18135 systype="CYG"
18136 alpine_path_delim="/"
18137 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18138 alpine_c_client_target="cyg"
18139 LIBS="$LIBS $LIBINTL"
18141 windows* | *-*-pw32*)
18142 systype="WNT"
18143 alpine_path_delim="\\"
18144 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18145 alpine_c_client_target="wnt"
18147 $as_echo "#define _WINDOWS 1" >>confdefs.h
18151 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
18153 esac
18156 # Check whether --with-ipv6 was given.
18157 if test "${with_ipv6+set}" = set; then :
18158 withval=$with_ipv6; with_ipv6=$withval
18162 if test "x$with_ipv6" = "xno" ; then
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
18164 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
18165 c_client_specials="${c_client_specials}IP6=4 "
18166 c_client_ip6="true"
18167 else
18168 c_client_ip6="touch imap/ip6"
18173 if test x$enable_dmalloc = "xyes" ; then
18174 if test "x$with_pthread" = "xyes" ; then
18175 dmalloc_lib=dmallocth
18176 else
18177 dmalloc_lib=dmalloc
18180 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
18182 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
18183 if eval \${$as_ac_Lib+:} false; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 ac_check_lib_save_LIBS=$LIBS
18187 LIBS="-l$dmalloc_lib $LIBS"
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char dmalloc_shutdown ();
18199 main ()
18201 return dmalloc_shutdown ();
18203 return 0;
18205 _ACEOF
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 eval "$as_ac_Lib=yes"
18208 else
18209 eval "$as_ac_Lib=no"
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 eval ac_res=\$$as_ac_Lib
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18217 $as_echo "$ac_res" >&6; }
18218 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18219 cat >>confdefs.h <<_ACEOF
18220 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18221 _ACEOF
18223 LIBS="-l$dmalloc_lib $LIBS"
18225 else
18227 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18234 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18235 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-ltinfo $LIBS"
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 char setupterm ();
18251 main ()
18253 return setupterm ();
18255 return 0;
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 ac_cv_lib_tinfo_setupterm=yes
18260 else
18261 ac_cv_lib_tinfo_setupterm=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18268 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18269 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18271 alpine_termdata=info
18272 LIBS="$LIBS -ltinfo"
18274 else
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18277 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18278 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18279 $as_echo_n "(cached) " >&6
18280 else
18281 ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lncurses $LIBS"
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18286 /* Override any GCC internal prototype to avoid an error.
18287 Use char because int might match the return type of a GCC
18288 builtin and then its argument prototype would still apply. */
18289 #ifdef __cplusplus
18290 extern "C"
18291 #endif
18292 char setupterm ();
18294 main ()
18296 return setupterm ();
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"; then :
18302 ac_cv_lib_ncurses_setupterm=yes
18303 else
18304 ac_cv_lib_ncurses_setupterm=no
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 LIBS=$ac_check_lib_save_LIBS
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18311 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18312 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18314 alpine_termdata=info
18315 LIBS="$LIBS -lncurses"
18317 else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18320 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18321 if ${ac_cv_lib_curses_setupterm+:} false; then :
18322 $as_echo_n "(cached) " >&6
18323 else
18324 ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lcurses $LIBS"
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 /* Override any GCC internal prototype to avoid an error.
18330 Use char because int might match the return type of a GCC
18331 builtin and then its argument prototype would still apply. */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 char setupterm ();
18337 main ()
18339 return setupterm ();
18341 return 0;
18343 _ACEOF
18344 if ac_fn_c_try_link "$LINENO"; then :
18345 ac_cv_lib_curses_setupterm=yes
18346 else
18347 ac_cv_lib_curses_setupterm=no
18349 rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18354 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18355 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18357 alpine_termdata=info
18358 LIBS="$LIBS -lcurses"
18360 else
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18363 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18364 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18365 $as_echo_n "(cached) " >&6
18366 else
18367 ac_check_lib_save_LIBS=$LIBS
18368 LIBS="-ltermlib $LIBS"
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18372 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 char tgetent ();
18380 main ()
18382 return tgetent ();
18384 return 0;
18386 _ACEOF
18387 if ac_fn_c_try_link "$LINENO"; then :
18388 ac_cv_lib_termlib_tgetent=yes
18389 else
18390 ac_cv_lib_termlib_tgetent=no
18392 rm -f core conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18394 LIBS=$ac_check_lib_save_LIBS
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18397 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18398 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18400 alpine_termdata=cap
18401 LIBS="$LIBS -ltermlib"
18403 else
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18406 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18407 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18408 $as_echo_n "(cached) " >&6
18409 else
18410 ac_check_lib_save_LIBS=$LIBS
18411 LIBS="-ltermcap $LIBS"
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h. */
18415 /* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18418 #ifdef __cplusplus
18419 extern "C"
18420 #endif
18421 char tgetent ();
18423 main ()
18425 return tgetent ();
18427 return 0;
18429 _ACEOF
18430 if ac_fn_c_try_link "$LINENO"; then :
18431 ac_cv_lib_termcap_tgetent=yes
18432 else
18433 ac_cv_lib_termcap_tgetent=no
18435 rm -f core conftest.err conftest.$ac_objext \
18436 conftest$ac_exeext conftest.$ac_ext
18437 LIBS=$ac_check_lib_save_LIBS
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18440 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18441 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18443 alpine_termdata=cap
18444 LIBS="$LIBS -ltermcap"
18446 else
18448 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18464 case $alpine_termdata in
18465 info)
18467 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18470 cap)
18472 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18475 esac
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18478 $as_echo_n "checking for library containing dlopen... " >&6; }
18479 if ${ac_cv_search_dlopen+:} false; then :
18480 $as_echo_n "(cached) " >&6
18481 else
18482 ac_func_search_save_LIBS=$LIBS
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char dlopen ();
18494 main ()
18496 return dlopen ();
18498 return 0;
18500 _ACEOF
18501 for ac_lib in '' dl dld; do
18502 if test -z "$ac_lib"; then
18503 ac_res="none required"
18504 else
18505 ac_res=-l$ac_lib
18506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18508 if ac_fn_c_try_link "$LINENO"; then :
18509 ac_cv_search_dlopen=$ac_res
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext
18513 if ${ac_cv_search_dlopen+:} false; then :
18514 break
18516 done
18517 if ${ac_cv_search_dlopen+:} false; then :
18519 else
18520 ac_cv_search_dlopen=no
18522 rm conftest.$ac_ext
18523 LIBS=$ac_func_search_save_LIBS
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18526 $as_echo "$ac_cv_search_dlopen" >&6; }
18527 ac_res=$ac_cv_search_dlopen
18528 if test "$ac_res" != no; then :
18529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18531 else
18532 alpine_DL="none"
18535 if test "x$alpine_DL" = "xnone" ; then
18536 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18537 exit 1
18540 if test "x$alpine_SSLTYPE" != "xnone" ; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18542 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18546 #include <stdio.h>
18547 #include <stdlib.h>
18548 #if HAVE_STDINT_H
18549 #include <stdint.h>
18550 #endif /* HAVE_STDINT_H */
18551 #include <openssl/ssl.h>
18554 main ()
18557 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18558 #error
18559 #endif
18562 return 0;
18564 _ACEOF
18565 if ac_fn_c_try_compile "$LINENO"; then :
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18567 $as_echo "yes" >&6; }
18568 alpine_SSLPROVIDER="libressl"
18570 else
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18572 $as_echo "no" >&6; }
18575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18580 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18584 #include <stdio.h>
18585 #include <stdlib.h>
18586 #if HAVE_STDINT_H
18587 #include <stdint.h>
18588 #endif /* HAVE_STDINT_H */
18589 #include <openssl/ssl.h>
18592 main ()
18595 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18596 #error
18597 #endif
18600 return 0;
18602 _ACEOF
18603 if ac_fn_c_try_compile "$LINENO"; then :
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18605 $as_echo "yes" >&6; }
18606 alpine_SSLPROVIDER="openssl"
18608 else
18609 alpine_SSLTYPE="none"
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 if test "x$alpine_SSLTYPE" = "xnone" ; then
18614 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18615 exit 1
18619 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18621 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18625 #include <stdio.h>
18626 #include <stdlib.h>
18627 #if HAVE_STDINT_H
18628 #include <stdint.h>
18629 #endif /* HAVE_STDINT_H */
18630 #include <openssl/ssl.h>
18633 main ()
18636 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18637 #error
18638 #endif
18641 return 0;
18643 _ACEOF
18644 if ac_fn_c_try_compile "$LINENO"; then :
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18646 $as_echo "yes" >&6; }
18647 alpine_SSLVERSION="new"
18648 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18650 else
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652 $as_echo "no" >&6; }
18653 alpine_SSLVERSION="old"
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 if test "x$alpine_SSLTYPE" != "xnone" ; then
18659 if test "x$alpine_SSLVERSION" = "xold" ; then
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18661 $as_echo_n "checking for library containing SSLeay... " >&6; }
18662 if ${ac_cv_search_SSLeay+:} false; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665 ac_func_search_save_LIBS=$LIBS
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18669 /* Override any GCC internal prototype to avoid an error.
18670 Use char because int might match the return type of a GCC
18671 builtin and then its argument prototype would still apply. */
18672 #ifdef __cplusplus
18673 extern "C"
18674 #endif
18675 char SSLeay ();
18677 main ()
18679 return SSLeay ();
18681 return 0;
18683 _ACEOF
18684 for ac_lib in '' crypto; do
18685 if test -z "$ac_lib"; then
18686 ac_res="none required"
18687 else
18688 ac_res=-l$ac_lib
18689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18691 if ac_fn_c_try_link "$LINENO"; then :
18692 ac_cv_search_SSLeay=$ac_res
18694 rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext
18696 if ${ac_cv_search_SSLeay+:} false; then :
18697 break
18699 done
18700 if ${ac_cv_search_SSLeay+:} false; then :
18702 else
18703 ac_cv_search_SSLeay=no
18705 rm conftest.$ac_ext
18706 LIBS=$ac_func_search_save_LIBS
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18709 $as_echo "$ac_cv_search_SSLeay" >&6; }
18710 ac_res=$ac_cv_search_SSLeay
18711 if test "$ac_res" != no; then :
18712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18714 else
18715 alpine_CRYPTO="none"
18718 else
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18720 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18721 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18722 $as_echo_n "(cached) " >&6
18723 else
18724 ac_func_search_save_LIBS=$LIBS
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18728 /* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18731 #ifdef __cplusplus
18732 extern "C"
18733 #endif
18734 char OpenSSL_version_num ();
18736 main ()
18738 return OpenSSL_version_num ();
18740 return 0;
18742 _ACEOF
18743 for ac_lib in '' crypto; do
18744 if test -z "$ac_lib"; then
18745 ac_res="none required"
18746 else
18747 ac_res=-l$ac_lib
18748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18750 if ac_fn_c_try_link "$LINENO"; then :
18751 ac_cv_search_OpenSSL_version_num=$ac_res
18753 rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext
18755 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18756 break
18758 done
18759 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18761 else
18762 ac_cv_search_OpenSSL_version_num=no
18764 rm conftest.$ac_ext
18765 LIBS=$ac_func_search_save_LIBS
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18768 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18769 ac_res=$ac_cv_search_OpenSSL_version_num
18770 if test "$ac_res" != no; then :
18771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18773 else
18774 alpine_CRYPTO="none"
18778 if test "x$alpine_CRYPTO" = "xnone" ; then
18779 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18780 exit 1
18782 case $host in
18783 *-*-cygwin)
18784 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18785 if test "x$ac_cv_header_crypto_h" = xyes; then :
18787 else
18788 alpine_CRYPTO_DEVEL="none"
18792 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18793 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
18794 exit 1
18797 *) ;;
18798 esac
18801 if test "x$alpine_SSLTYPE" != "xnone" ; then
18802 if test "x$alpine_SSLVERSION" = "xold" ; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18804 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18805 if ${ac_cv_search_SSL_library_init+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808 ac_func_search_save_LIBS=$LIBS
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char SSL_library_init ();
18820 main ()
18822 return SSL_library_init ();
18824 return 0;
18826 _ACEOF
18827 for ac_lib in '' ssl; do
18828 if test -z "$ac_lib"; then
18829 ac_res="none required"
18830 else
18831 ac_res=-l$ac_lib
18832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18834 if ac_fn_c_try_link "$LINENO"; then :
18835 ac_cv_search_SSL_library_init=$ac_res
18837 rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext
18839 if ${ac_cv_search_SSL_library_init+:} false; then :
18840 break
18842 done
18843 if ${ac_cv_search_SSL_library_init+:} false; then :
18845 else
18846 ac_cv_search_SSL_library_init=no
18848 rm conftest.$ac_ext
18849 LIBS=$ac_func_search_save_LIBS
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18852 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18853 ac_res=$ac_cv_search_SSL_library_init
18854 if test "$ac_res" != no; then :
18855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18857 else
18858 alpine_SSLTYPE="none"
18861 if test "x$alpine_SSLTYPE" = "xnone" ; then
18862 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18863 exit 1
18865 else
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18867 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18868 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18869 $as_echo_n "(cached) " >&6
18870 else
18871 ac_func_search_save_LIBS=$LIBS
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18878 #ifdef __cplusplus
18879 extern "C"
18880 #endif
18881 char OPENSSL_init_ssl ();
18883 main ()
18885 return OPENSSL_init_ssl ();
18887 return 0;
18889 _ACEOF
18890 for ac_lib in '' ssl; do
18891 if test -z "$ac_lib"; then
18892 ac_res="none required"
18893 else
18894 ac_res=-l$ac_lib
18895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18897 if ac_fn_c_try_link "$LINENO"; then :
18898 ac_cv_search_OPENSSL_init_ssl=$ac_res
18900 rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext
18902 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18903 break
18905 done
18906 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18908 else
18909 ac_cv_search_OPENSSL_init_ssl=no
18911 rm conftest.$ac_ext
18912 LIBS=$ac_func_search_save_LIBS
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18915 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18916 ac_res=$ac_cv_search_OPENSSL_init_ssl
18917 if test "$ac_res" != no; then :
18918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18920 else
18921 alpine_SSLTYPE="none"
18924 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18925 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18926 exit 1
18931 if test "$alpine_with_ldap" = "yes" ; then
18932 alpine_has_ldap=
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18934 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18935 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18936 $as_echo_n "(cached) " >&6
18937 else
18938 ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-llber $LIBS"
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char ber_alloc ();
18951 main ()
18953 return ber_alloc ();
18955 return 0;
18957 _ACEOF
18958 if ac_fn_c_try_link "$LINENO"; then :
18959 ac_cv_lib_lber_ber_alloc=yes
18960 else
18961 ac_cv_lib_lber_ber_alloc=no
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18968 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18969 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18971 LIBS="$LIBS -llber"
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18976 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18977 if ${ac_cv_search_ldap_initialize+:} false; then :
18978 $as_echo_n "(cached) " >&6
18979 else
18980 ac_func_search_save_LIBS=$LIBS
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18987 #ifdef __cplusplus
18988 extern "C"
18989 #endif
18990 char ldap_initialize ();
18992 main ()
18994 return ldap_initialize ();
18996 return 0;
18998 _ACEOF
18999 for ac_lib in '' ldap; do
19000 if test -z "$ac_lib"; then
19001 ac_res="none required"
19002 else
19003 ac_res=-l$ac_lib
19004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19006 if ac_fn_c_try_link "$LINENO"; then :
19007 ac_cv_search_ldap_initialize=$ac_res
19009 rm -f core conftest.err conftest.$ac_objext \
19010 conftest$ac_exeext
19011 if ${ac_cv_search_ldap_initialize+:} false; then :
19012 break
19014 done
19015 if ${ac_cv_search_ldap_initialize+:} false; then :
19017 else
19018 ac_cv_search_ldap_initialize=no
19020 rm conftest.$ac_ext
19021 LIBS=$ac_func_search_save_LIBS
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
19024 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
19025 ac_res=$ac_cv_search_ldap_initialize
19026 if test "$ac_res" != no; then :
19027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19029 alpine_has_ldap=yes
19031 else
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
19034 $as_echo_n "checking for library containing ldap_open... " >&6; }
19035 if ${ac_cv_search_ldap_open+:} false; then :
19036 $as_echo_n "(cached) " >&6
19037 else
19038 ac_func_search_save_LIBS=$LIBS
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19042 /* Override any GCC internal prototype to avoid an error.
19043 Use char because int might match the return type of a GCC
19044 builtin and then its argument prototype would still apply. */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 char ldap_open ();
19050 main ()
19052 return ldap_open ();
19054 return 0;
19056 _ACEOF
19057 for ac_lib in '' ldap; do
19058 if test -z "$ac_lib"; then
19059 ac_res="none required"
19060 else
19061 ac_res=-l$ac_lib
19062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19064 if ac_fn_c_try_link "$LINENO"; then :
19065 ac_cv_search_ldap_open=$ac_res
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext
19069 if ${ac_cv_search_ldap_open+:} false; then :
19070 break
19072 done
19073 if ${ac_cv_search_ldap_open+:} false; then :
19075 else
19076 ac_cv_search_ldap_open=no
19078 rm conftest.$ac_ext
19079 LIBS=$ac_func_search_save_LIBS
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
19082 $as_echo "$ac_cv_search_ldap_open" >&6; }
19083 ac_res=$ac_cv_search_ldap_open
19084 if test "$ac_res" != no; then :
19085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19087 alpine_has_ldap=yes
19095 if test "$alpine_has_ldap" = "yes" ; then
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19097 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19099 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19104 if test -z "$alpine_c_client_bundled" ; then
19105 if test "x$alpine_PAM" != "xnone" ; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19107 $as_echo_n "checking for library containing pam_start... " >&6; }
19108 if ${ac_cv_search_pam_start+:} false; then :
19109 $as_echo_n "(cached) " >&6
19110 else
19111 ac_func_search_save_LIBS=$LIBS
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char pam_start ();
19123 main ()
19125 return pam_start ();
19127 return 0;
19129 _ACEOF
19130 for ac_lib in '' pam; do
19131 if test -z "$ac_lib"; then
19132 ac_res="none required"
19133 else
19134 ac_res=-l$ac_lib
19135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19137 if ac_fn_c_try_link "$LINENO"; then :
19138 ac_cv_search_pam_start=$ac_res
19140 rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext
19142 if ${ac_cv_search_pam_start+:} false; then :
19143 break
19145 done
19146 if ${ac_cv_search_pam_start+:} false; then :
19148 else
19149 ac_cv_search_pam_start=no
19151 rm conftest.$ac_ext
19152 LIBS=$ac_func_search_save_LIBS
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19155 $as_echo "$ac_cv_search_pam_start" >&6; }
19156 ac_res=$ac_cv_search_pam_start
19157 if test "$ac_res" != no; then :
19158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19160 LIBS="$LIBS -lpam"
19161 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19162 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19164 alpine_PAM="yes"
19166 else
19167 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19168 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19170 alpine_PAM="yes"
19171 if test "x$alpine_c_client_target" != "xoxp" ; then
19172 alpine_PAM="none"
19173 alpine_pam_none_reason="header files not in security/ directory"
19176 else
19178 alpine_PAM="none"
19179 alpine_pam_none_reason="header files not found"
19189 else
19191 alpine_PAM="none"
19192 alpine_pam_none_reason="library files not found"
19196 if test -n "$alpine_pam_none_reason" ; then
19197 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
19202 if test -n "$alpine_c_client_bundled" ; then
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19204 $as_echo_n "checking for library containing crypt... " >&6; }
19205 if ${ac_cv_search_crypt+:} false; then :
19206 $as_echo_n "(cached) " >&6
19207 else
19208 ac_func_search_save_LIBS=$LIBS
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19212 /* Override any GCC internal prototype to avoid an error.
19213 Use char because int might match the return type of a GCC
19214 builtin and then its argument prototype would still apply. */
19215 #ifdef __cplusplus
19216 extern "C"
19217 #endif
19218 char crypt ();
19220 main ()
19222 return crypt ();
19224 return 0;
19226 _ACEOF
19227 for ac_lib in '' crypt; do
19228 if test -z "$ac_lib"; then
19229 ac_res="none required"
19230 else
19231 ac_res=-l$ac_lib
19232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19234 if ac_fn_c_try_link "$LINENO"; then :
19235 ac_cv_search_crypt=$ac_res
19237 rm -f core conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext
19239 if ${ac_cv_search_crypt+:} false; then :
19240 break
19242 done
19243 if ${ac_cv_search_crypt+:} false; then :
19245 else
19246 ac_cv_search_crypt=no
19248 rm conftest.$ac_ext
19249 LIBS=$ac_func_search_save_LIBS
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19252 $as_echo "$ac_cv_search_crypt" >&6; }
19253 ac_res=$ac_cv_search_crypt
19254 if test "$ac_res" != no; then :
19255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19257 else
19259 as_fn_error $? "crypt library not found." "$LINENO" 5
19265 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19268 if test "x$alpine_GSSTYPE" != "xnone" ; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19270 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19271 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19272 $as_echo_n "(cached) " >&6
19273 else
19274 ac_func_search_save_LIBS=$LIBS
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19281 #ifdef __cplusplus
19282 extern "C"
19283 #endif
19284 char gss_init_sec_context ();
19286 main ()
19288 return gss_init_sec_context ();
19290 return 0;
19292 _ACEOF
19293 for ac_lib in '' gss gssapi gssapi_krb5; do
19294 if test -z "$ac_lib"; then
19295 ac_res="none required"
19296 else
19297 ac_res=-l$ac_lib
19298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19300 if ac_fn_c_try_link "$LINENO"; then :
19301 ac_cv_search_gss_init_sec_context=$ac_res
19303 rm -f core conftest.err conftest.$ac_objext \
19304 conftest$ac_exeext
19305 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19306 break
19308 done
19309 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19311 else
19312 ac_cv_search_gss_init_sec_context=no
19314 rm conftest.$ac_ext
19315 LIBS=$ac_func_search_save_LIBS
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19318 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19319 ac_res=$ac_cv_search_gss_init_sec_context
19320 if test "$ac_res" != no; then :
19321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19323 LIBS="$LIBS -lkrb5"
19324 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19325 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19327 else
19329 if test ! -d /usr/kerberos/include ; then
19330 alpine_GSSTYPE="none"
19331 alpine_gss_none_reason="header files not found"
19338 else
19340 alpine_GSSTYPE="none"
19341 alpine_gss_none_reason="libraries not found"
19345 if test -n "$alpine_gss_none_reason" ; then
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19347 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19352 # Check whether --with-ntlm was given.
19353 if test "${with_ntlm+set}" = set; then :
19354 withval=$with_ntlm; with_ntlm=$withval
19358 if test "x$with_ntlm" = "xno" ; then
19359 alpine_NTLM="none"
19360 else
19361 alpine_NTLM=
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19364 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19365 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19366 $as_echo_n "(cached) " >&6
19367 else
19368 ac_func_search_save_LIBS=$LIBS
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19372 /* Override any GCC internal prototype to avoid an error.
19373 Use char because int might match the return type of a GCC
19374 builtin and then its argument prototype would still apply. */
19375 #ifdef __cplusplus
19376 extern "C"
19377 #endif
19378 char buildSmbNtlmAuthRequest ();
19380 main ()
19382 return buildSmbNtlmAuthRequest ();
19384 return 0;
19386 _ACEOF
19387 for ac_lib in '' ntlm; do
19388 if test -z "$ac_lib"; then
19389 ac_res="none required"
19390 else
19391 ac_res=-l$ac_lib
19392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19394 if ac_fn_c_try_link "$LINENO"; then :
19395 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19397 rm -f core conftest.err conftest.$ac_objext \
19398 conftest$ac_exeext
19399 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19400 break
19402 done
19403 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19405 else
19406 ac_cv_search_buildSmbNtlmAuthRequest=no
19408 rm conftest.$ac_ext
19409 LIBS=$ac_func_search_save_LIBS
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19412 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19413 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19414 if test "$ac_res" != no; then :
19415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19417 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19418 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19420 extra_auth_ntlm=ntl
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19422 $as_echo "$as_me: including NTLM support" >&6;}
19424 else
19426 alpine_NTLM="none"
19427 alpine_ntlm_none_reason="header file ntlm.h not found"
19433 else
19435 alpine_NTLM="none"
19436 alpine_ntlm_none_reason="ntlm library not found"
19440 if test -n "$alpine_ntlm_none_reason" ; then
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19442 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19446 if test -n "$WEB_BUILD" ; then
19447 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19448 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19449 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19451 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19452 if ${ac_cv_search_Tcl_Eval+:} false; then :
19453 $as_echo_n "(cached) " >&6
19454 else
19455 ac_func_search_save_LIBS=$LIBS
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 /* Override any GCC internal prototype to avoid an error.
19460 Use char because int might match the return type of a GCC
19461 builtin and then its argument prototype would still apply. */
19462 #ifdef __cplusplus
19463 extern "C"
19464 #endif
19465 char Tcl_Eval ();
19467 main ()
19469 return Tcl_Eval ();
19471 return 0;
19473 _ACEOF
19474 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19475 if test -z "$ac_lib"; then
19476 ac_res="none required"
19477 else
19478 ac_res=-l$ac_lib
19479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19481 if ac_fn_c_try_link "$LINENO"; then :
19482 ac_cv_search_Tcl_Eval=$ac_res
19484 rm -f core conftest.err conftest.$ac_objext \
19485 conftest$ac_exeext
19486 if ${ac_cv_search_Tcl_Eval+:} false; then :
19487 break
19489 done
19490 if ${ac_cv_search_Tcl_Eval+:} false; then :
19492 else
19493 ac_cv_search_Tcl_Eval=no
19495 rm conftest.$ac_ext
19496 LIBS=$ac_func_search_save_LIBS
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19499 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19500 ac_res=$ac_cv_search_Tcl_Eval
19501 if test "$ac_res" != no; then :
19502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19504 else
19506 WEB_BUILD=
19511 if test -n "$alpine_TCLINC" ; then
19512 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19513 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19516 else
19518 WEB_BUILD=
19523 if test -z "$WEB_BUILD" ; then
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19525 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19527 else
19528 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19529 if test "x$ac_cv_header_tcl_h" = xyes; then :
19531 else
19533 for base in /usr /usr/local ; do
19534 for dir in ${TCL_VERSIONS} ; do
19535 if test -f $base/include/$dir/tcl.h ; then
19536 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19537 found=yes
19538 break
19540 done
19541 if test "x$found" = "xyes" ; then
19542 break
19544 done
19545 if test "$found" != "yes" ; then
19546 WEB_BUILD=
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19548 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19557 if test "x$alpine_REGEX" != "xyes" ; then
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19559 $as_echo_n "checking for library containing regcomp... " >&6; }
19560 if ${ac_cv_search_regcomp+:} false; then :
19561 $as_echo_n "(cached) " >&6
19562 else
19563 ac_func_search_save_LIBS=$LIBS
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19570 #ifdef __cplusplus
19571 extern "C"
19572 #endif
19573 char regcomp ();
19575 main ()
19577 return regcomp ();
19579 return 0;
19581 _ACEOF
19582 for ac_lib in '' posix regexp regex re; do
19583 if test -z "$ac_lib"; then
19584 ac_res="none required"
19585 else
19586 ac_res=-l$ac_lib
19587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19589 if ac_fn_c_try_link "$LINENO"; then :
19590 ac_cv_search_regcomp=$ac_res
19592 rm -f core conftest.err conftest.$ac_objext \
19593 conftest$ac_exeext
19594 if ${ac_cv_search_regcomp+:} false; then :
19595 break
19597 done
19598 if ${ac_cv_search_regcomp+:} false; then :
19600 else
19601 ac_cv_search_regcomp=no
19603 rm conftest.$ac_ext
19604 LIBS=$ac_func_search_save_LIBS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19607 $as_echo "$ac_cv_search_regcomp" >&6; }
19608 ac_res=$ac_cv_search_regcomp
19609 if test "$ac_res" != no; then :
19610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19612 else
19614 if test x$alpine_REGEX = "xno" ; then
19615 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19616 else
19617 alpine_REGEX=yes
19623 if test "x$alpine_REGEX" != "xyes" ; then
19624 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19625 if test "x$ac_cv_header_regex_h" = xyes; then :
19627 else
19629 if test x$alpine_REGEX = "xno" ; then
19630 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19631 else
19632 alpine_REGEX=yes
19640 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19642 if test "x$alpine_REGEX" = "xyes" ; then
19643 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19644 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19645 REGEX_BUILD=regex
19646 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19649 if test "x$with_pthread" != "xno" ; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19651 $as_echo_n "checking for pthread support... " >&6; }
19655 ac_ext=c
19656 ac_cpp='$CPP $CPPFLAGS'
19657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661 acx_pthread_ok=no
19663 # We used to check for pthread.h first, but this fails if pthread.h
19664 # requires special compiler flags (e.g. on True64 or Sequent).
19665 # It gets checked for in the link test anyway.
19667 # First of all, check if the user has set any of the PTHREAD_LIBS,
19668 # etcetera environment variables, and if threads linking works using
19669 # them:
19670 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19671 save_CFLAGS="$CFLAGS"
19672 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19673 save_LIBS="$LIBS"
19674 LIBS="$PTHREAD_LIBS $LIBS"
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19676 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char pthread_join ();
19688 main ()
19690 return pthread_join ();
19692 return 0;
19694 _ACEOF
19695 if ac_fn_c_try_link "$LINENO"; then :
19696 acx_pthread_ok=yes
19698 rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19701 $as_echo "$acx_pthread_ok" >&6; }
19702 if test x"$acx_pthread_ok" = xno; then
19703 PTHREAD_LIBS=""
19704 PTHREAD_CFLAGS=""
19706 LIBS="$save_LIBS"
19707 CFLAGS="$save_CFLAGS"
19710 # We must check for the threads library under a number of different
19711 # names; the ordering is very important because some systems
19712 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19713 # libraries is broken (non-POSIX).
19715 # Create a list of thread flags to try. Items starting with a "-" are
19716 # C compiler flags, and other items are library names, except for "none"
19717 # which indicates that we try without any flags at all, and "pthread-config"
19718 # which is a program returning the flags for the Pth emulation library.
19720 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19722 # The ordering *is* (sometimes) important. Some notes on the
19723 # individual items follow:
19725 # pthreads: AIX (must check this before -lpthread)
19726 # none: in case threads are in libc; should be tried before -Kthread and
19727 # other compiler flags to prevent continual compiler warnings
19728 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19729 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19730 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19731 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19732 # -pthreads: Solaris/gcc
19733 # -mthreads: Mingw32/gcc, Lynx/gcc
19734 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19735 # doesn't hurt to check since this sometimes defines pthreads too;
19736 # also defines -D_REENTRANT)
19737 # ... -mt is also the pthreads flag for HP/aCC
19738 # pthread: Linux, etcetera
19739 # --thread-safe: KAI C++
19740 # pthread-config: use pthread-config program (for GNU Pth library)
19742 case "${host_cpu}-${host_os}" in
19743 *solaris*)
19745 # On Solaris (at least, for some versions), libc contains stubbed
19746 # (non-functional) versions of the pthreads routines, so link-based
19747 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19748 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19749 # a function called by this macro, so we could check for that, but
19750 # who knows whether they'll stub that too in a future libc.) So,
19751 # we'll just look for -pthreads and -lpthread first:
19753 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19755 esac
19757 if test x"$acx_pthread_ok" = xno; then
19758 for flag in $acx_pthread_flags; do
19760 case $flag in
19761 none)
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19763 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19768 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19769 PTHREAD_CFLAGS="$flag"
19772 pthread-config)
19773 # Extract the first word of "pthread-config", so it can be a program name with args.
19774 set dummy pthread-config; ac_word=$2
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19776 $as_echo_n "checking for $ac_word... " >&6; }
19777 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 if test -n "$acx_pthread_config"; then
19781 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19782 else
19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19786 IFS=$as_save_IFS
19787 test -z "$as_dir" && as_dir=.
19788 for ac_exec_ext in '' $ac_executable_extensions; do
19789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790 ac_cv_prog_acx_pthread_config="yes"
19791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19792 break 2
19794 done
19795 done
19796 IFS=$as_save_IFS
19798 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19801 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19802 if test -n "$acx_pthread_config"; then
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19804 $as_echo "$acx_pthread_config" >&6; }
19805 else
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19807 $as_echo "no" >&6; }
19811 if test x"$acx_pthread_config" = xno; then continue; fi
19812 PTHREAD_CFLAGS="`pthread-config --cflags`"
19813 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19818 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19819 PTHREAD_LIBS="-l$flag"
19821 esac
19823 save_LIBS="$LIBS"
19824 save_CFLAGS="$CFLAGS"
19825 LIBS="$PTHREAD_LIBS $LIBS"
19826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19828 # Check for various functions. We must include pthread.h,
19829 # since some functions may be macros. (On the Sequent, we
19830 # need a special flag -Kthread to make this header compile.)
19831 # We check for pthread_join because it is in -lpthread on IRIX
19832 # while pthread_create is in libc. We check for pthread_attr_init
19833 # due to DEC craziness with -lpthreads. We check for
19834 # pthread_cleanup_push because it is one of the few pthread
19835 # functions on Solaris that doesn't have a non-functional libc stub.
19836 # We try pthread_create on general principles.
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 #include <pthread.h>
19841 main ()
19843 pthread_t th; pthread_join(th, 0);
19844 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19845 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19847 return 0;
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 acx_pthread_ok=yes
19853 rm -f core conftest.err conftest.$ac_objext \
19854 conftest$ac_exeext conftest.$ac_ext
19856 LIBS="$save_LIBS"
19857 CFLAGS="$save_CFLAGS"
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19860 $as_echo "$acx_pthread_ok" >&6; }
19861 if test "x$acx_pthread_ok" = xyes; then
19862 break;
19865 PTHREAD_LIBS=""
19866 PTHREAD_CFLAGS=""
19867 done
19870 # Various other checks:
19871 if test "x$acx_pthread_ok" = xyes; then
19872 save_LIBS="$LIBS"
19873 LIBS="$PTHREAD_LIBS $LIBS"
19874 save_CFLAGS="$CFLAGS"
19875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19877 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19879 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19880 attr_name=unknown
19881 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h. */
19884 #include <pthread.h>
19886 main ()
19888 int attr=$attr; return attr;
19890 return 0;
19892 _ACEOF
19893 if ac_fn_c_try_link "$LINENO"; then :
19894 attr_name=$attr; break
19896 rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898 done
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19900 $as_echo "$attr_name" >&6; }
19901 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19903 cat >>confdefs.h <<_ACEOF
19904 #define PTHREAD_CREATE_JOINABLE $attr_name
19905 _ACEOF
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19910 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19911 flag=no
19912 case "${host_cpu}-${host_os}" in
19913 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19914 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19915 esac
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19917 $as_echo "${flag}" >&6; }
19918 if test "x$flag" != xno; then
19919 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19922 LIBS="$save_LIBS"
19923 CFLAGS="$save_CFLAGS"
19925 # More AIX lossage: must compile with xlc_r or cc_r
19926 if test x"$GCC" != xyes; then
19927 for ac_prog in xlc_r cc_r
19929 # Extract the first word of "$ac_prog", so it can be a program name with args.
19930 set dummy $ac_prog; ac_word=$2
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19932 $as_echo_n "checking for $ac_word... " >&6; }
19933 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19934 $as_echo_n "(cached) " >&6
19935 else
19936 if test -n "$PTHREAD_CC"; then
19937 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19938 else
19939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19940 for as_dir in $PATH
19942 IFS=$as_save_IFS
19943 test -z "$as_dir" && as_dir=.
19944 for ac_exec_ext in '' $ac_executable_extensions; do
19945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19946 ac_cv_prog_PTHREAD_CC="$ac_prog"
19947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19948 break 2
19950 done
19951 done
19952 IFS=$as_save_IFS
19956 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19957 if test -n "$PTHREAD_CC"; then
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19959 $as_echo "$PTHREAD_CC" >&6; }
19960 else
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19966 test -n "$PTHREAD_CC" && break
19967 done
19968 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19970 else
19971 PTHREAD_CC=$CC
19973 else
19974 PTHREAD_CC="$CC"
19981 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19982 if test x"$acx_pthread_ok" = xyes; then
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19985 $as_echo "yes" >&6; }
19986 case "$target" in
19987 *openbsd*)
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19989 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19990 AM_CFLAGS="$AM_CFLAGS -pthread"
19992 esac
19993 LIBS="$PTHREAD_LIBS $LIBS"
19994 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19995 CC="$PTHREAD_CC"
19997 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20001 else
20002 acx_pthread_ok=no
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005 $as_echo "no" >&6; }
20008 ac_ext=c
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
20017 $as_echo_n "checking for library containing nanosleep... " >&6; }
20018 if ${ac_cv_search_nanosleep+:} false; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 ac_func_search_save_LIBS=$LIBS
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char nanosleep ();
20033 main ()
20035 return nanosleep ();
20037 return 0;
20039 _ACEOF
20040 for ac_lib in '' rt posix4; do
20041 if test -z "$ac_lib"; then
20042 ac_res="none required"
20043 else
20044 ac_res=-l$ac_lib
20045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20047 if ac_fn_c_try_link "$LINENO"; then :
20048 ac_cv_search_nanosleep=$ac_res
20050 rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext
20052 if ${ac_cv_search_nanosleep+:} false; then :
20053 break
20055 done
20056 if ${ac_cv_search_nanosleep+:} false; then :
20058 else
20059 ac_cv_search_nanosleep=no
20061 rm conftest.$ac_ext
20062 LIBS=$ac_func_search_save_LIBS
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
20065 $as_echo "$ac_cv_search_nanosleep" >&6; }
20066 ac_res=$ac_cv_search_nanosleep
20067 if test "$ac_res" != no; then :
20068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20071 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20082 $as_echo_n "checking for ANSI C header files... " >&6; }
20083 if ${ac_cv_header_stdc+:} false; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20088 #include <stdlib.h>
20089 #include <stdarg.h>
20090 #include <string.h>
20091 #include <float.h>
20094 main ()
20098 return 0;
20100 _ACEOF
20101 if ac_fn_c_try_compile "$LINENO"; then :
20102 ac_cv_header_stdc=yes
20103 else
20104 ac_cv_header_stdc=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 if test $ac_cv_header_stdc = yes; then
20109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20112 #include <string.h>
20114 _ACEOF
20115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20116 $EGREP "memchr" >/dev/null 2>&1; then :
20118 else
20119 ac_cv_header_stdc=no
20121 rm -f conftest*
20125 if test $ac_cv_header_stdc = yes; then
20126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129 #include <stdlib.h>
20131 _ACEOF
20132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20133 $EGREP "free" >/dev/null 2>&1; then :
20135 else
20136 ac_cv_header_stdc=no
20138 rm -f conftest*
20142 if test $ac_cv_header_stdc = yes; then
20143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20144 if test "$cross_compiling" = yes; then :
20146 else
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20149 #include <ctype.h>
20150 #include <stdlib.h>
20151 #if ((' ' & 0x0FF) == 0x020)
20152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20154 #else
20155 # define ISLOWER(c) \
20156 (('a' <= (c) && (c) <= 'i') \
20157 || ('j' <= (c) && (c) <= 'r') \
20158 || ('s' <= (c) && (c) <= 'z'))
20159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20160 #endif
20162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20164 main ()
20166 int i;
20167 for (i = 0; i < 256; i++)
20168 if (XOR (islower (i), ISLOWER (i))
20169 || toupper (i) != TOUPPER (i))
20170 return 2;
20171 return 0;
20173 _ACEOF
20174 if ac_fn_c_try_run "$LINENO"; then :
20176 else
20177 ac_cv_header_stdc=no
20179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20180 conftest.$ac_objext conftest.beam conftest.$ac_ext
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20186 $as_echo "$ac_cv_header_stdc" >&6; }
20187 if test $ac_cv_header_stdc = yes; then
20189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20193 ac_header_dirent=no
20194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20195 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20197 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20198 if eval \${$as_ac_Header+:} false; then :
20199 $as_echo_n "(cached) " >&6
20200 else
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20203 #include <sys/types.h>
20204 #include <$ac_hdr>
20207 main ()
20209 if ((DIR *) 0)
20210 return 0;
20212 return 0;
20214 _ACEOF
20215 if ac_fn_c_try_compile "$LINENO"; then :
20216 eval "$as_ac_Header=yes"
20217 else
20218 eval "$as_ac_Header=no"
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 eval ac_res=\$$as_ac_Header
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20224 $as_echo "$ac_res" >&6; }
20225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20226 cat >>confdefs.h <<_ACEOF
20227 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20228 _ACEOF
20230 ac_header_dirent=$ac_hdr; break
20233 done
20234 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20235 if test $ac_header_dirent = dirent.h; then
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20237 $as_echo_n "checking for library containing opendir... " >&6; }
20238 if ${ac_cv_search_opendir+:} false; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 ac_func_search_save_LIBS=$LIBS
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char opendir ();
20253 main ()
20255 return opendir ();
20257 return 0;
20259 _ACEOF
20260 for ac_lib in '' dir; do
20261 if test -z "$ac_lib"; then
20262 ac_res="none required"
20263 else
20264 ac_res=-l$ac_lib
20265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20267 if ac_fn_c_try_link "$LINENO"; then :
20268 ac_cv_search_opendir=$ac_res
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext
20272 if ${ac_cv_search_opendir+:} false; then :
20273 break
20275 done
20276 if ${ac_cv_search_opendir+:} false; then :
20278 else
20279 ac_cv_search_opendir=no
20281 rm conftest.$ac_ext
20282 LIBS=$ac_func_search_save_LIBS
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20285 $as_echo "$ac_cv_search_opendir" >&6; }
20286 ac_res=$ac_cv_search_opendir
20287 if test "$ac_res" != no; then :
20288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20292 else
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20294 $as_echo_n "checking for library containing opendir... " >&6; }
20295 if ${ac_cv_search_opendir+:} false; then :
20296 $as_echo_n "(cached) " >&6
20297 else
20298 ac_func_search_save_LIBS=$LIBS
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char opendir ();
20310 main ()
20312 return opendir ();
20314 return 0;
20316 _ACEOF
20317 for ac_lib in '' x; do
20318 if test -z "$ac_lib"; then
20319 ac_res="none required"
20320 else
20321 ac_res=-l$ac_lib
20322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20324 if ac_fn_c_try_link "$LINENO"; then :
20325 ac_cv_search_opendir=$ac_res
20327 rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext
20329 if ${ac_cv_search_opendir+:} false; then :
20330 break
20332 done
20333 if ${ac_cv_search_opendir+:} false; then :
20335 else
20336 ac_cv_search_opendir=no
20338 rm conftest.$ac_ext
20339 LIBS=$ac_func_search_save_LIBS
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20342 $as_echo "$ac_cv_search_opendir" >&6; }
20343 ac_res=$ac_cv_search_opendir
20344 if test "$ac_res" != no; then :
20345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20352 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20353 if ${ac_cv_header_stat_broken+:} false; then :
20354 $as_echo_n "(cached) " >&6
20355 else
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20358 #include <sys/types.h>
20359 #include <sys/stat.h>
20361 #if defined S_ISBLK && defined S_IFDIR
20362 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20363 #endif
20365 #if defined S_ISBLK && defined S_IFCHR
20366 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20367 #endif
20369 #if defined S_ISLNK && defined S_IFREG
20370 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20371 #endif
20373 #if defined S_ISSOCK && defined S_IFREG
20374 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20375 #endif
20377 _ACEOF
20378 if ac_fn_c_try_compile "$LINENO"; then :
20379 ac_cv_header_stat_broken=no
20380 else
20381 ac_cv_header_stat_broken=yes
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20386 $as_echo "$ac_cv_header_stat_broken" >&6; }
20387 if test $ac_cv_header_stat_broken = yes; then
20389 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20394 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20395 if ${ac_cv_header_sys_wait_h+:} false; then :
20396 $as_echo_n "(cached) " >&6
20397 else
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20400 #include <sys/types.h>
20401 #include <sys/wait.h>
20402 #ifndef WEXITSTATUS
20403 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20404 #endif
20405 #ifndef WIFEXITED
20406 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20407 #endif
20410 main ()
20412 int s;
20413 wait (&s);
20414 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20416 return 0;
20418 _ACEOF
20419 if ac_fn_c_try_compile "$LINENO"; then :
20420 ac_cv_header_sys_wait_h=yes
20421 else
20422 ac_cv_header_sys_wait_h=no
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20427 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20428 if test $ac_cv_header_sys_wait_h = yes; then
20430 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20435 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20436 if ${ac_cv_header_time+:} false; then :
20437 $as_echo_n "(cached) " >&6
20438 else
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h. */
20441 #include <sys/types.h>
20442 #include <sys/time.h>
20443 #include <time.h>
20446 main ()
20448 if ((struct tm *) 0)
20449 return 0;
20451 return 0;
20453 _ACEOF
20454 if ac_fn_c_try_compile "$LINENO"; then :
20455 ac_cv_header_time=yes
20456 else
20457 ac_cv_header_time=no
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20462 $as_echo "$ac_cv_header_time" >&6; }
20463 if test $ac_cv_header_time = yes; then
20465 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20470 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20471 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20472 $as_echo_n "(cached) " >&6
20473 else
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476 #include <sys/types.h>
20477 #include <termios.h>
20478 #ifdef TIOCGWINSZ
20480 #endif
20482 _ACEOF
20483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20484 $EGREP "yes" >/dev/null 2>&1; then :
20485 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20486 else
20487 ac_cv_sys_tiocgwinsz_in_termios_h=no
20489 rm -f conftest*
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20493 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20495 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20497 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20498 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20499 $as_echo_n "(cached) " >&6
20500 else
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20503 #include <sys/types.h>
20504 #include <sys/ioctl.h>
20505 #ifdef TIOCGWINSZ
20507 #endif
20509 _ACEOF
20510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20511 $EGREP "yes" >/dev/null 2>&1; then :
20512 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20513 else
20514 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20516 rm -f conftest*
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20520 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20522 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20524 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20530 for ac_header in unistd.h
20531 do :
20532 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20533 if test "x$ac_cv_header_unistd_h" = xyes; then :
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_UNISTD_H 1
20536 _ACEOF
20540 done
20543 for ac_header in errno.h \
20544 ctype.h \
20545 fcntl.h \
20546 signal.h \
20547 setjmp.h \
20548 memory.h \
20549 sys/ioctl.h \
20550 sys/param.h \
20551 sys/socket.h \
20552 sys/uio.h \
20553 sys/un.h \
20554 limits.h \
20555 wchar.h \
20556 sys/poll.h \
20557 stropts.h \
20558 netdb.h \
20559 syslog.h \
20560 sys/syslog.h \
20561 locale.h \
20562 langinfo.h \
20563 utime.h \
20564 sys/utime.h \
20565 pthread.h \
20566 pwd.h \
20567 assert.h
20568 do :
20569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20570 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20572 cat >>confdefs.h <<_ACEOF
20573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20574 _ACEOF
20578 done
20581 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20582 if test "x$ac_cv_header_termios_h" = xyes; then :
20584 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20586 else
20588 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20589 if test "x$ac_cv_header_termio_h" = xyes; then :
20591 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20593 else
20595 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20596 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20598 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20600 else
20602 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20619 $as_echo_n "checking return type of signal handlers... " >&6; }
20620 if ${ac_cv_type_signal+:} false; then :
20621 $as_echo_n "(cached) " >&6
20622 else
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20625 #include <sys/types.h>
20626 #include <signal.h>
20629 main ()
20631 return *(signal (0, 0)) (0) == 1;
20633 return 0;
20635 _ACEOF
20636 if ac_fn_c_try_compile "$LINENO"; then :
20637 ac_cv_type_signal=int
20638 else
20639 ac_cv_type_signal=void
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20644 $as_echo "$ac_cv_type_signal" >&6; }
20646 cat >>confdefs.h <<_ACEOF
20647 #define RETSIGTYPE $ac_cv_type_signal
20648 _ACEOF
20651 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20652 if test "x$ac_cv_type_size_t" = xyes; then :
20654 else
20656 cat >>confdefs.h <<_ACEOF
20657 #define size_t unsigned int
20658 _ACEOF
20662 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20663 if test "x$ac_cv_type_mode_t" = xyes; then :
20665 else
20667 cat >>confdefs.h <<_ACEOF
20668 #define mode_t int
20669 _ACEOF
20673 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20674 if test "x$ac_cv_type_pid_t" = xyes; then :
20676 else
20678 cat >>confdefs.h <<_ACEOF
20679 #define pid_t int
20680 _ACEOF
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20685 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20686 if ${ac_cv_type_uid_t+:} false; then :
20687 $as_echo_n "(cached) " >&6
20688 else
20689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h. */
20691 #include <sys/types.h>
20693 _ACEOF
20694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20695 $EGREP "uid_t" >/dev/null 2>&1; then :
20696 ac_cv_type_uid_t=yes
20697 else
20698 ac_cv_type_uid_t=no
20700 rm -f conftest*
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20704 $as_echo "$ac_cv_type_uid_t" >&6; }
20705 if test $ac_cv_type_uid_t = no; then
20707 $as_echo "#define uid_t int" >>confdefs.h
20710 $as_echo "#define gid_t int" >>confdefs.h
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20715 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20716 if ${ac_cv_struct_tm+:} false; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721 #include <sys/types.h>
20722 #include <time.h>
20725 main ()
20727 struct tm tm;
20728 int *p = &tm.tm_sec;
20729 return !p;
20731 return 0;
20733 _ACEOF
20734 if ac_fn_c_try_compile "$LINENO"; then :
20735 ac_cv_struct_tm=time.h
20736 else
20737 ac_cv_struct_tm=sys/time.h
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20742 $as_echo "$ac_cv_struct_tm" >&6; }
20743 if test $ac_cv_struct_tm = sys/time.h; then
20745 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20750 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20751 if test "x$ac_cv_type_union_wait" = xyes; then :
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_UNION_WAIT 1
20755 _ACEOF
20761 for ac_header in stdint.h
20762 do :
20763 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20764 if test "x$ac_cv_header_stdint_h" = xyes; then :
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_STDINT_H 1
20767 _ACEOF
20768 uint16=uint16_t
20769 else
20771 for ac_header in inttypes.h
20772 do :
20773 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20774 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_INTTYPES_H 1
20777 _ACEOF
20778 uint16=uint16_t
20779 else
20781 for ac_header in sys/types.h
20782 do :
20783 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20784 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20785 cat >>confdefs.h <<_ACEOF
20786 #define HAVE_SYS_TYPES_H 1
20787 _ACEOF
20788 uint16=u_int16_t
20789 else
20791 # The cast to long int works around a bug in the HP C Compiler
20792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20794 # This bug is HP SR number 8606223364.
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20796 $as_echo_n "checking size of unsigned short... " >&6; }
20797 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20798 $as_echo_n "(cached) " >&6
20799 else
20800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20802 else
20803 if test "$ac_cv_type_unsigned_short" = yes; then
20804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20806 as_fn_error 77 "cannot compute sizeof (unsigned short)
20807 See \`config.log' for more details" "$LINENO" 5; }
20808 else
20809 ac_cv_sizeof_unsigned_short=0
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20815 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20819 cat >>confdefs.h <<_ACEOF
20820 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20821 _ACEOF
20824 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20825 uint16="unsigned short"
20826 else
20827 # The cast to long int works around a bug in the HP C Compiler
20828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20830 # This bug is HP SR number 8606223364.
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20832 $as_echo_n "checking size of unsigned int... " >&6; }
20833 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20838 else
20839 if test "$ac_cv_type_unsigned_int" = yes; then
20840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20842 as_fn_error 77 "cannot compute sizeof (unsigned int)
20843 See \`config.log' for more details" "$LINENO" 5; }
20844 else
20845 ac_cv_sizeof_unsigned_int=0
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20851 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20855 cat >>confdefs.h <<_ACEOF
20856 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20857 _ACEOF
20860 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20861 uint16="unsigned int"
20862 else
20863 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20869 done
20874 done
20879 done
20882 cat >>confdefs.h <<_ACEOF
20883 #define UINT16 $uint16
20884 _ACEOF
20887 for ac_header in stdint.h
20888 do :
20889 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20890 if test "x$ac_cv_header_stdint_h" = xyes; then :
20891 cat >>confdefs.h <<_ACEOF
20892 #define HAVE_STDINT_H 1
20893 _ACEOF
20894 uint32=uint32_t
20895 else
20897 for ac_header in inttypes.h
20898 do :
20899 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20900 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20901 cat >>confdefs.h <<_ACEOF
20902 #define HAVE_INTTYPES_H 1
20903 _ACEOF
20904 uint32=uint32_t
20905 else
20907 for ac_header in sys/types.h
20908 do :
20909 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20910 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20911 cat >>confdefs.h <<_ACEOF
20912 #define HAVE_SYS_TYPES_H 1
20913 _ACEOF
20914 uint32=u_int32_t
20915 else
20917 # The cast to long int works around a bug in the HP C Compiler
20918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20920 # This bug is HP SR number 8606223364.
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20922 $as_echo_n "checking size of unsigned int... " >&6; }
20923 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20924 $as_echo_n "(cached) " >&6
20925 else
20926 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20928 else
20929 if test "$ac_cv_type_unsigned_int" = yes; then
20930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20932 as_fn_error 77 "cannot compute sizeof (unsigned int)
20933 See \`config.log' for more details" "$LINENO" 5; }
20934 else
20935 ac_cv_sizeof_unsigned_int=0
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20941 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20945 cat >>confdefs.h <<_ACEOF
20946 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20947 _ACEOF
20950 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20951 uint32="unsigned int"
20952 else
20953 # The cast to long int works around a bug in the HP C Compiler
20954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20956 # This bug is HP SR number 8606223364.
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20958 $as_echo_n "checking size of unsigned long... " >&6; }
20959 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20960 $as_echo_n "(cached) " >&6
20961 else
20962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20964 else
20965 if test "$ac_cv_type_unsigned_long" = yes; then
20966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20968 as_fn_error 77 "cannot compute sizeof (unsigned long)
20969 See \`config.log' for more details" "$LINENO" 5; }
20970 else
20971 ac_cv_sizeof_unsigned_long=0
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20977 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20981 cat >>confdefs.h <<_ACEOF
20982 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20983 _ACEOF
20986 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20987 uint32="unsigned long"
20988 else
20989 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20995 done
21000 done
21005 done
21008 cat >>confdefs.h <<_ACEOF
21009 #define UINT32 $uint32
21010 _ACEOF
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
21014 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
21015 if ${ac_cv_func_qsort_argtype+:} false; then :
21016 $as_echo_n "(cached) " >&6
21017 else
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h. */
21021 #if HAVE_STDLIB_H
21022 #include "stdlib.h"
21023 #endif
21025 extern void *base;
21026 extern sortf(const void *, const void *);
21027 int sortf(a, b)
21028 const void *a;
21029 const void *b; { return 0; }
21032 main ()
21035 qsort(base, 2, sizeof(char *), sortf);
21038 return 0;
21040 _ACEOF
21041 if ac_fn_c_try_compile "$LINENO"; then :
21042 ac_cv_func_qsort_argtype=void
21043 else
21044 ac_cv_func_qsort_argtype=char
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21050 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21052 cat >>confdefs.h <<_ACEOF
21053 #define qsort_t $ac_cv_func_qsort_argtype
21054 _ACEOF
21058 for ac_header in sys/select.h sys/socket.h
21059 do :
21060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21063 cat >>confdefs.h <<_ACEOF
21064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065 _ACEOF
21069 done
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21072 $as_echo_n "checking types of arguments for select... " >&6; }
21073 if ${ac_cv_func_select_args+:} false; then :
21074 $as_echo_n "(cached) " >&6
21075 else
21076 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21077 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21078 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21081 $ac_includes_default
21082 #ifdef HAVE_SYS_SELECT_H
21083 # include <sys/select.h>
21084 #endif
21085 #ifdef HAVE_SYS_SOCKET_H
21086 # include <sys/socket.h>
21087 #endif
21090 main ()
21092 extern int select ($ac_arg1,
21093 $ac_arg234, $ac_arg234, $ac_arg234,
21094 $ac_arg5);
21096 return 0;
21098 _ACEOF
21099 if ac_fn_c_try_compile "$LINENO"; then :
21100 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 done
21104 done
21105 done
21106 # Provide a safe default value.
21107 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21111 $as_echo "$ac_cv_func_select_args" >&6; }
21112 ac_save_IFS=$IFS; IFS=','
21113 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21114 IFS=$ac_save_IFS
21115 shift
21117 cat >>confdefs.h <<_ACEOF
21118 #define SELECT_TYPE_ARG1 $1
21119 _ACEOF
21122 cat >>confdefs.h <<_ACEOF
21123 #define SELECT_TYPE_ARG234 ($2)
21124 _ACEOF
21127 cat >>confdefs.h <<_ACEOF
21128 #define SELECT_TYPE_ARG5 ($3)
21129 _ACEOF
21131 rm -f conftest*
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21135 $as_echo_n "checking for working strcoll... " >&6; }
21136 if ${ac_cv_func_strcoll_works+:} false; then :
21137 $as_echo_n "(cached) " >&6
21138 else
21139 if test "$cross_compiling" = yes; then :
21140 ac_cv_func_strcoll_works=no
21141 else
21142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143 /* end confdefs.h. */
21144 $ac_includes_default
21146 main ()
21148 return (strcoll ("abc", "def") >= 0 ||
21149 strcoll ("ABC", "DEF") >= 0 ||
21150 strcoll ("123", "456") >= 0)
21152 return 0;
21154 _ACEOF
21155 if ac_fn_c_try_run "$LINENO"; then :
21156 ac_cv_func_strcoll_works=yes
21157 else
21158 ac_cv_func_strcoll_works=no
21160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21161 conftest.$ac_objext conftest.beam conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21166 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21167 if test $ac_cv_func_strcoll_works = yes; then
21169 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21175 for ac_header in vfork.h
21176 do :
21177 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21178 if test "x$ac_cv_header_vfork_h" = xyes; then :
21179 cat >>confdefs.h <<_ACEOF
21180 #define HAVE_VFORK_H 1
21181 _ACEOF
21185 done
21187 for ac_func in fork vfork
21188 do :
21189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21192 cat >>confdefs.h <<_ACEOF
21193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21194 _ACEOF
21197 done
21199 if test "x$ac_cv_func_fork" = xyes; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21201 $as_echo_n "checking for working fork... " >&6; }
21202 if ${ac_cv_func_fork_works+:} false; then :
21203 $as_echo_n "(cached) " >&6
21204 else
21205 if test "$cross_compiling" = yes; then :
21206 ac_cv_func_fork_works=cross
21207 else
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210 $ac_includes_default
21212 main ()
21215 /* By Ruediger Kuhlmann. */
21216 return fork () < 0;
21219 return 0;
21221 _ACEOF
21222 if ac_fn_c_try_run "$LINENO"; then :
21223 ac_cv_func_fork_works=yes
21224 else
21225 ac_cv_func_fork_works=no
21227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21228 conftest.$ac_objext conftest.beam conftest.$ac_ext
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21233 $as_echo "$ac_cv_func_fork_works" >&6; }
21235 else
21236 ac_cv_func_fork_works=$ac_cv_func_fork
21238 if test "x$ac_cv_func_fork_works" = xcross; then
21239 case $host in
21240 *-*-amigaos* | *-*-msdosdjgpp*)
21241 # Override, as these systems have only a dummy fork() stub
21242 ac_cv_func_fork_works=no
21245 ac_cv_func_fork_works=yes
21247 esac
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21249 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21251 ac_cv_func_vfork_works=$ac_cv_func_vfork
21252 if test "x$ac_cv_func_vfork" = xyes; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21254 $as_echo_n "checking for working vfork... " >&6; }
21255 if ${ac_cv_func_vfork_works+:} false; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 if test "$cross_compiling" = yes; then :
21259 ac_cv_func_vfork_works=cross
21260 else
21261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21262 /* end confdefs.h. */
21263 /* Thanks to Paul Eggert for this test. */
21264 $ac_includes_default
21265 #include <sys/wait.h>
21266 #ifdef HAVE_VFORK_H
21267 # include <vfork.h>
21268 #endif
21269 /* On some sparc systems, changes by the child to local and incoming
21270 argument registers are propagated back to the parent. The compiler
21271 is told about this with #include <vfork.h>, but some compilers
21272 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21273 static variable whose address is put into a register that is
21274 clobbered by the vfork. */
21275 static void
21276 #ifdef __cplusplus
21277 sparc_address_test (int arg)
21278 # else
21279 sparc_address_test (arg) int arg;
21280 #endif
21282 static pid_t child;
21283 if (!child) {
21284 child = vfork ();
21285 if (child < 0) {
21286 perror ("vfork");
21287 _exit(2);
21289 if (!child) {
21290 arg = getpid();
21291 write(-1, "", 0);
21292 _exit (arg);
21298 main ()
21300 pid_t parent = getpid ();
21301 pid_t child;
21303 sparc_address_test (0);
21305 child = vfork ();
21307 if (child == 0) {
21308 /* Here is another test for sparc vfork register problems. This
21309 test uses lots of local variables, at least as many local
21310 variables as main has allocated so far including compiler
21311 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21312 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21313 reuse the register of parent for one of the local variables,
21314 since it will think that parent can't possibly be used any more
21315 in this routine. Assigning to the local variable will thus
21316 munge parent in the parent process. */
21317 pid_t
21318 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21319 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21320 /* Convince the compiler that p..p7 are live; otherwise, it might
21321 use the same hardware register for all 8 local variables. */
21322 if (p != p1 || p != p2 || p != p3 || p != p4
21323 || p != p5 || p != p6 || p != p7)
21324 _exit(1);
21326 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21327 from child file descriptors. If the child closes a descriptor
21328 before it execs or exits, this munges the parent's descriptor
21329 as well. Test for this by closing stdout in the child. */
21330 _exit(close(fileno(stdout)) != 0);
21331 } else {
21332 int status;
21333 struct stat st;
21335 while (wait(&status) != child)
21337 return (
21338 /* Was there some problem with vforking? */
21339 child < 0
21341 /* Did the child fail? (This shouldn't happen.) */
21342 || status
21344 /* Did the vfork/compiler bug occur? */
21345 || parent != getpid()
21347 /* Did the file descriptor bug occur? */
21348 || fstat(fileno(stdout), &st) != 0
21352 _ACEOF
21353 if ac_fn_c_try_run "$LINENO"; then :
21354 ac_cv_func_vfork_works=yes
21355 else
21356 ac_cv_func_vfork_works=no
21358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21359 conftest.$ac_objext conftest.beam conftest.$ac_ext
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21364 $as_echo "$ac_cv_func_vfork_works" >&6; }
21367 if test "x$ac_cv_func_fork_works" = xcross; then
21368 ac_cv_func_vfork_works=$ac_cv_func_vfork
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21370 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21373 if test "x$ac_cv_func_vfork_works" = xyes; then
21375 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21377 else
21379 $as_echo "#define vfork fork" >>confdefs.h
21382 if test "x$ac_cv_func_fork_works" = xyes; then
21384 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21388 for ac_func in strchr \
21389 memcpy \
21390 strtol \
21391 strtoul \
21392 select \
21393 poll \
21394 qsort \
21395 getuid \
21396 getpwuid \
21397 getpwnam \
21398 gettimeofday \
21399 tmpfile \
21400 uname \
21401 rename \
21402 read \
21403 signal \
21404 setjmp \
21405 chown \
21406 wait4 \
21407 waitpid \
21408 wait \
21409 srandom \
21410 popen \
21411 pclose \
21412 fsync \
21413 truncate \
21414 listen \
21415 wcwidth \
21416 mbstowcs \
21417 wcrtomb \
21418 putenv \
21419 setenv
21420 do :
21421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21424 cat >>confdefs.h <<_ACEOF
21425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21426 _ACEOF
21429 done
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21433 $as_echo_n "checking for library containing gethostname... " >&6; }
21434 if ${ac_cv_search_gethostname+:} false; then :
21435 $as_echo_n "(cached) " >&6
21436 else
21437 ac_func_search_save_LIBS=$LIBS
21438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21439 /* end confdefs.h. */
21441 /* Override any GCC internal prototype to avoid an error.
21442 Use char because int might match the return type of a GCC
21443 builtin and then its argument prototype would still apply. */
21444 #ifdef __cplusplus
21445 extern "C"
21446 #endif
21447 char gethostname ();
21449 main ()
21451 return gethostname ();
21453 return 0;
21455 _ACEOF
21456 for ac_lib in '' nsl; do
21457 if test -z "$ac_lib"; then
21458 ac_res="none required"
21459 else
21460 ac_res=-l$ac_lib
21461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21463 if ac_fn_c_try_link "$LINENO"; then :
21464 ac_cv_search_gethostname=$ac_res
21466 rm -f core conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext
21468 if ${ac_cv_search_gethostname+:} false; then :
21469 break
21471 done
21472 if ${ac_cv_search_gethostname+:} false; then :
21474 else
21475 ac_cv_search_gethostname=no
21477 rm conftest.$ac_ext
21478 LIBS=$ac_func_search_save_LIBS
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21481 $as_echo "$ac_cv_search_gethostname" >&6; }
21482 ac_res=$ac_cv_search_gethostname
21483 if test "$ac_res" != no; then :
21484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21490 $as_echo_n "checking for library containing socket... " >&6; }
21491 if ${ac_cv_search_socket+:} false; then :
21492 $as_echo_n "(cached) " >&6
21493 else
21494 ac_func_search_save_LIBS=$LIBS
21495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496 /* end confdefs.h. */
21498 /* Override any GCC internal prototype to avoid an error.
21499 Use char because int might match the return type of a GCC
21500 builtin and then its argument prototype would still apply. */
21501 #ifdef __cplusplus
21502 extern "C"
21503 #endif
21504 char socket ();
21506 main ()
21508 return socket ();
21510 return 0;
21512 _ACEOF
21513 for ac_lib in '' socket; do
21514 if test -z "$ac_lib"; then
21515 ac_res="none required"
21516 else
21517 ac_res=-l$ac_lib
21518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21520 if ac_fn_c_try_link "$LINENO"; then :
21521 ac_cv_search_socket=$ac_res
21523 rm -f core conftest.err conftest.$ac_objext \
21524 conftest$ac_exeext
21525 if ${ac_cv_search_socket+:} false; then :
21526 break
21528 done
21529 if ${ac_cv_search_socket+:} false; then :
21531 else
21532 ac_cv_search_socket=no
21534 rm conftest.$ac_ext
21535 LIBS=$ac_func_search_save_LIBS
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21538 $as_echo "$ac_cv_search_socket" >&6; }
21539 ac_res=$ac_cv_search_socket
21540 if test "$ac_res" != no; then :
21541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21543 else
21545 WEB_BUILD=
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21551 $as_echo_n "checking for library containing bind... " >&6; }
21552 if ${ac_cv_search_bind+:} false; then :
21553 $as_echo_n "(cached) " >&6
21554 else
21555 ac_func_search_save_LIBS=$LIBS
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21559 /* Override any GCC internal prototype to avoid an error.
21560 Use char because int might match the return type of a GCC
21561 builtin and then its argument prototype would still apply. */
21562 #ifdef __cplusplus
21563 extern "C"
21564 #endif
21565 char bind ();
21567 main ()
21569 return bind ();
21571 return 0;
21573 _ACEOF
21574 for ac_lib in '' bind; do
21575 if test -z "$ac_lib"; then
21576 ac_res="none required"
21577 else
21578 ac_res=-l$ac_lib
21579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21581 if ac_fn_c_try_link "$LINENO"; then :
21582 ac_cv_search_bind=$ac_res
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext
21586 if ${ac_cv_search_bind+:} false; then :
21587 break
21589 done
21590 if ${ac_cv_search_bind+:} false; then :
21592 else
21593 ac_cv_search_bind=no
21595 rm conftest.$ac_ext
21596 LIBS=$ac_func_search_save_LIBS
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21599 $as_echo "$ac_cv_search_bind" >&6; }
21600 ac_res=$ac_cv_search_bind
21601 if test "$ac_res" != no; then :
21602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21604 else
21606 WEB_BUILD=
21611 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21612 do :
21613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21616 cat >>confdefs.h <<_ACEOF
21617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21618 _ACEOF
21621 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21624 else
21626 for ac_func in sigset sigrelse
21627 do :
21628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21629 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21630 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21631 cat >>confdefs.h <<_ACEOF
21632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21633 _ACEOF
21636 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21640 done
21644 done
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21648 $as_echo_n "checking for library containing syslog... " >&6; }
21649 if ${ac_cv_search_syslog+:} false; then :
21650 $as_echo_n "(cached) " >&6
21651 else
21652 ac_func_search_save_LIBS=$LIBS
21653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21654 /* end confdefs.h. */
21656 /* Override any GCC internal prototype to avoid an error.
21657 Use char because int might match the return type of a GCC
21658 builtin and then its argument prototype would still apply. */
21659 #ifdef __cplusplus
21660 extern "C"
21661 #endif
21662 char syslog ();
21664 main ()
21666 return syslog ();
21668 return 0;
21670 _ACEOF
21671 for ac_lib in '' bsd socket inet; do
21672 if test -z "$ac_lib"; then
21673 ac_res="none required"
21674 else
21675 ac_res=-l$ac_lib
21676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 ac_cv_search_syslog=$ac_res
21681 rm -f core conftest.err conftest.$ac_objext \
21682 conftest$ac_exeext
21683 if ${ac_cv_search_syslog+:} false; then :
21684 break
21686 done
21687 if ${ac_cv_search_syslog+:} false; then :
21689 else
21690 ac_cv_search_syslog=no
21692 rm conftest.$ac_ext
21693 LIBS=$ac_func_search_save_LIBS
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21696 $as_echo "$ac_cv_search_syslog" >&6; }
21697 ac_res=$ac_cv_search_syslog
21698 if test "$ac_res" != no; then :
21699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21702 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21709 if test -n "$alpine_with_local_maildir" ; then
21710 alpine_local_maildir=$alpine_with_local_maildir
21711 elif test -d /var/spool/mail ; then
21712 alpine_local_maildir="/var/spool/mail"
21713 elif test -d /var/mail ; then
21714 alpine_local_maildir="/var/mail"
21715 else
21716 alpine_local_maildir="/usr/spool/mail"
21719 if test -n "$alpine_with_c_client_target" ; then
21720 alpine_c_client_target=$alpine_with_c_client_target
21724 cat >>confdefs.h <<_ACEOF
21725 #define SYSTYPE "$systype"
21726 _ACEOF
21729 cat >>confdefs.h <<_ACEOF
21730 #define C_FILESEP '$alpine_path_delim'
21731 _ACEOF
21734 cat >>confdefs.h <<_ACEOF
21735 #define S_FILESEP "$alpine_path_delim"
21736 _ACEOF
21739 cat >>confdefs.h <<_ACEOF
21740 #define MAILDIR "$alpine_local_maildir"
21741 _ACEOF
21744 cat >>confdefs.h <<_ACEOF
21745 #define MODE_READONLY $alpine_mode_readonly
21746 _ACEOF
21749 C_CLIENT_TARGET=$alpine_c_client_target
21751 C_CLIENT_WITH_IPV6=$c_client_ip6
21753 if test "x$alpine_SSLTYPE" = "xnone" ; then
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21755 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21756 c_client_specials="${c_client_specials}SSLTYPE=none "
21757 else
21759 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21760 certdir="$alpine_SSLCERTS"
21761 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21762 certdir="${alpine_SSLDIR}/certs"
21763 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21764 certdir="${alpine_SSLDIR}/ssl/certs"
21765 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21766 certdir="$alpine_SSLCERTS_ORIG"
21767 elif test -n "$alpine_SSLCERTS" ; then
21768 certdir="$alpine_SSLCERTS"
21769 else
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21771 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21774 if test "x$with_smime" != "xno" ; then
21775 if test -n "$certdir" ; then
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21777 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21779 $as_echo "#define SMIME /**/" >>confdefs.h
21782 cat >>confdefs.h <<_ACEOF
21783 #define SMIME_SSLCERTS "$certdir"
21784 _ACEOF
21790 SSL_CERT_LINK="no"
21791 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21792 SSL_BUNDLE_EXISTS="no"
21793 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21794 for SSL_BUNDLE in $SSL_PEM
21796 if test -f ${certdir}/${SSL_BUNDLE} ; then
21797 SSL_BUNDLE_EXISTS="yes"
21799 done
21800 else
21801 SSL_CERT_LINK="yes"
21804 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21806 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21808 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21810 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21812 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21815 if test -n "$alpine_SSLINCLUDE" ; then
21816 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21819 if test -n "$alpine_SSLLIB" ; then
21820 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21823 if test -n "$alpine_SSLDIR" ; then
21824 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21827 if test -n "$certdir" ; then
21828 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21831 if test -n "$alpine_SSLKEYS" ; then
21832 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21836 extra_auth_gss=
21837 if test "x$alpine_GSSTYPE" != "xnone" ; then
21838 extra_auth_gss=gss
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21840 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21843 extra_auth_ntlm=
21844 if test "x$alpine_NTLM" != "xnone" ; then
21845 extra_auth_ntlm=ntl
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21847 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21850 if test -n "$CPPFLAGS" ; then
21851 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21853 if test -n "$CFLAGS" ; then
21854 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21857 if test -n "$alpine_c_client_cflags" ; then
21858 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21862 if test -n "$LDFLAGS" ; then
21863 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21865 if test -n "$LIBS" ; then
21866 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21869 if test -n "$alpine_c_client_ldflags" ; then
21870 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21874 if test -n "$alpine_c_client_gccoptlevel" ; then
21875 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21879 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21880 C_CLIENT_AUTHS=$c_client_auths
21883 C_CLIENT_SPECIALS=$c_client_specials
21886 if test -z "$WEB_BUILD" ; then
21887 WEB_PUBCOOKIE_BUILD=
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21889 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21891 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21892 else
21893 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21894 if test "x$alpine_GSSTYPE" = "xnone" ; then
21895 WEB_PUBCOOKIE_BUILD=
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21897 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21899 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21900 elif test -z "$WEB_BINDIR" ; then
21901 WEB_PUBCOOKIE_BUILD=
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21903 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21904 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21905 Please re-run configure with these options:
21906 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21907 else
21909 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21911 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21912 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21928 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"
21930 cat >confcache <<\_ACEOF
21931 # This file is a shell script that caches the results of configure
21932 # tests run on this system so they can be shared between configure
21933 # scripts and configure runs, see configure's option --config-cache.
21934 # It is not useful on other systems. If it contains results you don't
21935 # want to keep, you may remove or edit it.
21937 # config.status only pays attention to the cache file if you give it
21938 # the --recheck option to rerun configure.
21940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21942 # following values.
21944 _ACEOF
21946 # The following way of writing the cache mishandles newlines in values,
21947 # but we know of no workaround that is simple, portable, and efficient.
21948 # So, we kill variables containing newlines.
21949 # Ultrix sh set writes to stderr and can't be redirected directly,
21950 # and sets the high bit in the cache file unless we assign to the vars.
21952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21953 eval ac_val=\$$ac_var
21954 case $ac_val in #(
21955 *${as_nl}*)
21956 case $ac_var in #(
21957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21959 esac
21960 case $ac_var in #(
21961 _ | IFS | as_nl) ;; #(
21962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21963 *) { eval $ac_var=; unset $ac_var;} ;;
21964 esac ;;
21965 esac
21966 done
21968 (set) 2>&1 |
21969 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21970 *${as_nl}ac_space=\ *)
21971 # `set' does not quote correctly, so add quotes: double-quote
21972 # substitution turns \\\\ into \\, and sed turns \\ into \.
21973 sed -n \
21974 "s/'/'\\\\''/g;
21975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21976 ;; #(
21978 # `set' quotes correctly as required by POSIX, so do not add quotes.
21979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21981 esac |
21982 sort
21984 sed '
21985 /^ac_cv_env_/b end
21986 t clear
21987 :clear
21988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21989 t end
21990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21991 :end' >>confcache
21992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21993 if test -w "$cache_file"; then
21994 if test "x$cache_file" != "x/dev/null"; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21996 $as_echo "$as_me: updating cache $cache_file" >&6;}
21997 if test ! -f "$cache_file" || test -h "$cache_file"; then
21998 cat confcache >"$cache_file"
21999 else
22000 case $cache_file in #(
22001 */* | ?:*)
22002 mv -f confcache "$cache_file"$$ &&
22003 mv -f "$cache_file"$$ "$cache_file" ;; #(
22005 mv -f confcache "$cache_file" ;;
22006 esac
22009 else
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22011 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22014 rm -f confcache
22016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22017 # Let make expand exec_prefix.
22018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22020 DEFS=-DHAVE_CONFIG_H
22022 ac_libobjs=
22023 ac_ltlibobjs=
22025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22026 # 1. Remove the extension, and $U if already installed.
22027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22028 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22030 # will be set to the directory where LIBOBJS objects are built.
22031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22033 done
22034 LIBOBJS=$ac_libobjs
22036 LTLIBOBJS=$ac_ltlibobjs
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22040 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22041 if test -n "$am_sleep_pid"; then
22042 # Hide warnings about reused PIDs.
22043 wait $am_sleep_pid 2>/dev/null
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22046 $as_echo "done" >&6; }
22047 if test -n "$EXEEXT"; then
22048 am__EXEEXT_TRUE=
22049 am__EXEEXT_FALSE='#'
22050 else
22051 am__EXEEXT_TRUE='#'
22052 am__EXEEXT_FALSE=
22055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22056 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22060 as_fn_error $? "conditional \"AMDEP\" was never defined.
22061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22064 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22068 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22072 : "${CONFIG_STATUS=./config.status}"
22073 ac_write_fail=0
22074 ac_clean_files_save=$ac_clean_files
22075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22078 as_write_fail=0
22079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22080 #! $SHELL
22081 # Generated by $as_me.
22082 # Run this file to recreate the current configuration.
22083 # Compiler output produced by configure, useful for debugging
22084 # configure, is in config.log if it exists.
22086 debug=false
22087 ac_cs_recheck=false
22088 ac_cs_silent=false
22090 SHELL=\${CONFIG_SHELL-$SHELL}
22091 export SHELL
22092 _ASEOF
22093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22094 ## -------------------- ##
22095 ## M4sh Initialization. ##
22096 ## -------------------- ##
22098 # Be more Bourne compatible
22099 DUALCASE=1; export DUALCASE # for MKS sh
22100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22101 emulate sh
22102 NULLCMD=:
22103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22104 # is contrary to our usage. Disable this feature.
22105 alias -g '${1+"$@"}'='"$@"'
22106 setopt NO_GLOB_SUBST
22107 else
22108 case `(set -o) 2>/dev/null` in #(
22109 *posix*) :
22110 set -o posix ;; #(
22111 *) :
22113 esac
22117 as_nl='
22119 export as_nl
22120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22124 # Prefer a ksh shell builtin over an external printf program on Solaris,
22125 # but without wasting forks for bash or zsh.
22126 if test -z "$BASH_VERSION$ZSH_VERSION" \
22127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22128 as_echo='print -r --'
22129 as_echo_n='print -rn --'
22130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22131 as_echo='printf %s\n'
22132 as_echo_n='printf %s'
22133 else
22134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22136 as_echo_n='/usr/ucb/echo -n'
22137 else
22138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22139 as_echo_n_body='eval
22140 arg=$1;
22141 case $arg in #(
22142 *"$as_nl"*)
22143 expr "X$arg" : "X\\(.*\\)$as_nl";
22144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22145 esac;
22146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22148 export as_echo_n_body
22149 as_echo_n='sh -c $as_echo_n_body as_echo'
22151 export as_echo_body
22152 as_echo='sh -c $as_echo_body as_echo'
22155 # The user is always right.
22156 if test "${PATH_SEPARATOR+set}" != set; then
22157 PATH_SEPARATOR=:
22158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22160 PATH_SEPARATOR=';'
22165 # IFS
22166 # We need space, tab and new line, in precisely that order. Quoting is
22167 # there to prevent editors from complaining about space-tab.
22168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22169 # splitting by setting IFS to empty value.)
22170 IFS=" "" $as_nl"
22172 # Find who we are. Look in the path if we contain no directory separator.
22173 as_myself=
22174 case $0 in #((
22175 *[\\/]* ) as_myself=$0 ;;
22176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22177 for as_dir in $PATH
22179 IFS=$as_save_IFS
22180 test -z "$as_dir" && as_dir=.
22181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22182 done
22183 IFS=$as_save_IFS
22186 esac
22187 # We did not find ourselves, most probably we were run as `sh COMMAND'
22188 # in which case we are not to be found in the path.
22189 if test "x$as_myself" = x; then
22190 as_myself=$0
22192 if test ! -f "$as_myself"; then
22193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22194 exit 1
22197 # Unset variables that we do not need and which cause bugs (e.g. in
22198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22199 # suppresses any "Segmentation fault" message there. '((' could
22200 # trigger a bug in pdksh 5.2.14.
22201 for as_var in BASH_ENV ENV MAIL MAILPATH
22202 do eval test x\${$as_var+set} = xset \
22203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22204 done
22205 PS1='$ '
22206 PS2='> '
22207 PS4='+ '
22209 # NLS nuisances.
22210 LC_ALL=C
22211 export LC_ALL
22212 LANGUAGE=C
22213 export LANGUAGE
22215 # CDPATH.
22216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22220 # ----------------------------------------
22221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22223 # script with STATUS, using 1 if that was 0.
22224 as_fn_error ()
22226 as_status=$1; test $as_status -eq 0 && as_status=1
22227 if test "$4"; then
22228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22231 $as_echo "$as_me: error: $2" >&2
22232 as_fn_exit $as_status
22233 } # as_fn_error
22236 # as_fn_set_status STATUS
22237 # -----------------------
22238 # Set $? to STATUS, without forking.
22239 as_fn_set_status ()
22241 return $1
22242 } # as_fn_set_status
22244 # as_fn_exit STATUS
22245 # -----------------
22246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22247 as_fn_exit ()
22249 set +e
22250 as_fn_set_status $1
22251 exit $1
22252 } # as_fn_exit
22254 # as_fn_unset VAR
22255 # ---------------
22256 # Portably unset VAR.
22257 as_fn_unset ()
22259 { eval $1=; unset $1;}
22261 as_unset=as_fn_unset
22262 # as_fn_append VAR VALUE
22263 # ----------------------
22264 # Append the text in VALUE to the end of the definition contained in VAR. Take
22265 # advantage of any shell optimizations that allow amortized linear growth over
22266 # repeated appends, instead of the typical quadratic growth present in naive
22267 # implementations.
22268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22269 eval 'as_fn_append ()
22271 eval $1+=\$2
22273 else
22274 as_fn_append ()
22276 eval $1=\$$1\$2
22278 fi # as_fn_append
22280 # as_fn_arith ARG...
22281 # ------------------
22282 # Perform arithmetic evaluation on the ARGs, and store the result in the
22283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22284 # must be portable across $(()) and expr.
22285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22286 eval 'as_fn_arith ()
22288 as_val=$(( $* ))
22290 else
22291 as_fn_arith ()
22293 as_val=`expr "$@" || test $? -eq 1`
22295 fi # as_fn_arith
22298 if expr a : '\(a\)' >/dev/null 2>&1 &&
22299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22300 as_expr=expr
22301 else
22302 as_expr=false
22305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22306 as_basename=basename
22307 else
22308 as_basename=false
22311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22312 as_dirname=dirname
22313 else
22314 as_dirname=false
22317 as_me=`$as_basename -- "$0" ||
22318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22319 X"$0" : 'X\(//\)$' \| \
22320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22321 $as_echo X/"$0" |
22322 sed '/^.*\/\([^/][^/]*\)\/*$/{
22323 s//\1/
22326 /^X\/\(\/\/\)$/{
22327 s//\1/
22330 /^X\/\(\/\).*/{
22331 s//\1/
22334 s/.*/./; q'`
22336 # Avoid depending upon Character Ranges.
22337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22340 as_cr_digits='0123456789'
22341 as_cr_alnum=$as_cr_Letters$as_cr_digits
22343 ECHO_C= ECHO_N= ECHO_T=
22344 case `echo -n x` in #(((((
22345 -n*)
22346 case `echo 'xy\c'` in
22347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22348 xy) ECHO_C='\c';;
22349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22350 ECHO_T=' ';;
22351 esac;;
22353 ECHO_N='-n';;
22354 esac
22356 rm -f conf$$ conf$$.exe conf$$.file
22357 if test -d conf$$.dir; then
22358 rm -f conf$$.dir/conf$$.file
22359 else
22360 rm -f conf$$.dir
22361 mkdir conf$$.dir 2>/dev/null
22363 if (echo >conf$$.file) 2>/dev/null; then
22364 if ln -s conf$$.file conf$$ 2>/dev/null; then
22365 as_ln_s='ln -s'
22366 # ... but there are two gotchas:
22367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22369 # In both cases, we have to default to `cp -pR'.
22370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22371 as_ln_s='cp -pR'
22372 elif ln conf$$.file conf$$ 2>/dev/null; then
22373 as_ln_s=ln
22374 else
22375 as_ln_s='cp -pR'
22377 else
22378 as_ln_s='cp -pR'
22380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22381 rmdir conf$$.dir 2>/dev/null
22384 # as_fn_mkdir_p
22385 # -------------
22386 # Create "$as_dir" as a directory, including parents if necessary.
22387 as_fn_mkdir_p ()
22390 case $as_dir in #(
22391 -*) as_dir=./$as_dir;;
22392 esac
22393 test -d "$as_dir" || eval $as_mkdir_p || {
22394 as_dirs=
22395 while :; do
22396 case $as_dir in #(
22397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22398 *) as_qdir=$as_dir;;
22399 esac
22400 as_dirs="'$as_qdir' $as_dirs"
22401 as_dir=`$as_dirname -- "$as_dir" ||
22402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22403 X"$as_dir" : 'X\(//\)[^/]' \| \
22404 X"$as_dir" : 'X\(//\)$' \| \
22405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22406 $as_echo X"$as_dir" |
22407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22408 s//\1/
22411 /^X\(\/\/\)[^/].*/{
22412 s//\1/
22415 /^X\(\/\/\)$/{
22416 s//\1/
22419 /^X\(\/\).*/{
22420 s//\1/
22423 s/.*/./; q'`
22424 test -d "$as_dir" && break
22425 done
22426 test -z "$as_dirs" || eval "mkdir $as_dirs"
22427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22430 } # as_fn_mkdir_p
22431 if mkdir -p . 2>/dev/null; then
22432 as_mkdir_p='mkdir -p "$as_dir"'
22433 else
22434 test -d ./-p && rmdir ./-p
22435 as_mkdir_p=false
22439 # as_fn_executable_p FILE
22440 # -----------------------
22441 # Test if FILE is an executable regular file.
22442 as_fn_executable_p ()
22444 test -f "$1" && test -x "$1"
22445 } # as_fn_executable_p
22446 as_test_x='test -x'
22447 as_executable_p=as_fn_executable_p
22449 # Sed expression to map a string onto a valid CPP name.
22450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22452 # Sed expression to map a string onto a valid variable name.
22453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22456 exec 6>&1
22457 ## ----------------------------------- ##
22458 ## Main body of $CONFIG_STATUS script. ##
22459 ## ----------------------------------- ##
22460 _ASEOF
22461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22464 # Save the log message, to keep $0 and so on meaningful, and to
22465 # report actual input values of CONFIG_FILES etc. instead of their
22466 # values after options handling.
22467 ac_log="
22468 This file was extended by alpine $as_me 2.22, which was
22469 generated by GNU Autoconf 2.69. Invocation command line was
22471 CONFIG_FILES = $CONFIG_FILES
22472 CONFIG_HEADERS = $CONFIG_HEADERS
22473 CONFIG_LINKS = $CONFIG_LINKS
22474 CONFIG_COMMANDS = $CONFIG_COMMANDS
22475 $ $0 $@
22477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22480 _ACEOF
22482 case $ac_config_files in *"
22483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22484 esac
22486 case $ac_config_headers in *"
22487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22488 esac
22491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22492 # Files that config.status was made for.
22493 config_files="$ac_config_files"
22494 config_headers="$ac_config_headers"
22495 config_commands="$ac_config_commands"
22497 _ACEOF
22499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500 ac_cs_usage="\
22501 \`$as_me' instantiates files and other configuration actions
22502 from templates according to the current configuration. Unless the files
22503 and actions are specified as TAGs, all are instantiated by default.
22505 Usage: $0 [OPTION]... [TAG]...
22507 -h, --help print this help, then exit
22508 -V, --version print version number and configuration settings, then exit
22509 --config print configuration, then exit
22510 -q, --quiet, --silent
22511 do not print progress messages
22512 -d, --debug don't remove temporary files
22513 --recheck update $as_me by reconfiguring in the same conditions
22514 --file=FILE[:TEMPLATE]
22515 instantiate the configuration file FILE
22516 --header=FILE[:TEMPLATE]
22517 instantiate the configuration header FILE
22519 Configuration files:
22520 $config_files
22522 Configuration headers:
22523 $config_headers
22525 Configuration commands:
22526 $config_commands
22528 Report bugs to <chappa@washington.edu>."
22530 _ACEOF
22531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22532 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22533 ac_cs_version="\\
22534 alpine config.status 2.22
22535 configured by $0, generated by GNU Autoconf 2.69,
22536 with options \\"\$ac_cs_config\\"
22538 Copyright (C) 2012 Free Software Foundation, Inc.
22539 This config.status script is free software; the Free Software Foundation
22540 gives unlimited permission to copy, distribute and modify it."
22542 ac_pwd='$ac_pwd'
22543 srcdir='$srcdir'
22544 INSTALL='$INSTALL'
22545 MKDIR_P='$MKDIR_P'
22546 AWK='$AWK'
22547 test -n "\$AWK" || AWK=awk
22548 _ACEOF
22550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22551 # The default lists apply if the user does not specify any file.
22552 ac_need_defaults=:
22553 while test $# != 0
22555 case $1 in
22556 --*=?*)
22557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22559 ac_shift=:
22561 --*=)
22562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22563 ac_optarg=
22564 ac_shift=:
22567 ac_option=$1
22568 ac_optarg=$2
22569 ac_shift=shift
22571 esac
22573 case $ac_option in
22574 # Handling of the options.
22575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22576 ac_cs_recheck=: ;;
22577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22578 $as_echo "$ac_cs_version"; exit ;;
22579 --config | --confi | --conf | --con | --co | --c )
22580 $as_echo "$ac_cs_config"; exit ;;
22581 --debug | --debu | --deb | --de | --d | -d )
22582 debug=: ;;
22583 --file | --fil | --fi | --f )
22584 $ac_shift
22585 case $ac_optarg in
22586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22587 '') as_fn_error $? "missing file argument" ;;
22588 esac
22589 as_fn_append CONFIG_FILES " '$ac_optarg'"
22590 ac_need_defaults=false;;
22591 --header | --heade | --head | --hea )
22592 $ac_shift
22593 case $ac_optarg in
22594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22595 esac
22596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22597 ac_need_defaults=false;;
22598 --he | --h)
22599 # Conflict between --help and --header
22600 as_fn_error $? "ambiguous option: \`$1'
22601 Try \`$0 --help' for more information.";;
22602 --help | --hel | -h )
22603 $as_echo "$ac_cs_usage"; exit ;;
22604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22606 ac_cs_silent=: ;;
22608 # This is an error.
22609 -*) as_fn_error $? "unrecognized option: \`$1'
22610 Try \`$0 --help' for more information." ;;
22612 *) as_fn_append ac_config_targets " $1"
22613 ac_need_defaults=false ;;
22615 esac
22616 shift
22617 done
22619 ac_configure_extra_args=
22621 if $ac_cs_silent; then
22622 exec 6>/dev/null
22623 ac_configure_extra_args="$ac_configure_extra_args --silent"
22626 _ACEOF
22627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22628 if \$ac_cs_recheck; then
22629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22630 shift
22631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22632 CONFIG_SHELL='$SHELL'
22633 export CONFIG_SHELL
22634 exec "\$@"
22637 _ACEOF
22638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22639 exec 5>>config.log
22641 echo
22642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22643 ## Running $as_me. ##
22644 _ASBOX
22645 $as_echo "$ac_log"
22646 } >&5
22648 _ACEOF
22649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22651 # INIT-COMMANDS
22653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22656 # The HP-UX ksh and POSIX shell print the target directory to stdout
22657 # if CDPATH is set.
22658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22660 sed_quote_subst='$sed_quote_subst'
22661 double_quote_subst='$double_quote_subst'
22662 delay_variable_subst='$delay_variable_subst'
22663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22665 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22666 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22667 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22668 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22669 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22670 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22671 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22672 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22673 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22674 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22675 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22676 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22677 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22678 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22679 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22680 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22681 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22682 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22683 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22684 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22685 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22686 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22687 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22688 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22689 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22690 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22691 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22692 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22693 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22694 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22695 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22696 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22697 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22698 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22699 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22700 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22701 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22702 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22703 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22704 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22705 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22706 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22707 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22708 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22709 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22710 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22711 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22712 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22713 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22714 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22715 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22716 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22717 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22718 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22719 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"`'
22720 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22721 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22722 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22723 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22724 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22725 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22726 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22727 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22728 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22729 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22730 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22731 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22732 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22733 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22734 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22735 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22736 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22737 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22738 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22739 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22740 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22741 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22742 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22743 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22744 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22745 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22746 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22747 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22748 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22749 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22750 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22751 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22752 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22753 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22754 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22755 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22756 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22757 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22758 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22759 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22760 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22761 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22762 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22763 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22764 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22765 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22766 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22767 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22768 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22769 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22770 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22771 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22772 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22773 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22774 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22775 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22776 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22777 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22778 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22779 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22780 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22781 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22782 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22783 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22784 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22785 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22786 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22787 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22788 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22789 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22790 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22791 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22792 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22794 LTCC='$LTCC'
22795 LTCFLAGS='$LTCFLAGS'
22796 compiler='$compiler_DEFAULT'
22798 # A function that is used when there is no print builtin or printf.
22799 func_fallback_echo ()
22801 eval 'cat <<_LTECHO_EOF
22803 _LTECHO_EOF'
22806 # Quote evaled strings.
22807 for var in SHELL \
22808 ECHO \
22809 PATH_SEPARATOR \
22810 SED \
22811 GREP \
22812 EGREP \
22813 FGREP \
22814 LD \
22815 NM \
22816 LN_S \
22817 lt_SP2NL \
22818 lt_NL2SP \
22819 reload_flag \
22820 OBJDUMP \
22821 deplibs_check_method \
22822 file_magic_cmd \
22823 file_magic_glob \
22824 want_nocaseglob \
22825 DLLTOOL \
22826 sharedlib_from_linklib_cmd \
22827 AR \
22828 AR_FLAGS \
22829 archiver_list_spec \
22830 STRIP \
22831 RANLIB \
22832 CC \
22833 CFLAGS \
22834 compiler \
22835 lt_cv_sys_global_symbol_pipe \
22836 lt_cv_sys_global_symbol_to_cdecl \
22837 lt_cv_sys_global_symbol_to_c_name_address \
22838 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22839 nm_file_list_spec \
22840 lt_prog_compiler_no_builtin_flag \
22841 lt_prog_compiler_pic \
22842 lt_prog_compiler_wl \
22843 lt_prog_compiler_static \
22844 lt_cv_prog_compiler_c_o \
22845 need_locks \
22846 MANIFEST_TOOL \
22847 DSYMUTIL \
22848 NMEDIT \
22849 LIPO \
22850 OTOOL \
22851 OTOOL64 \
22852 shrext_cmds \
22853 export_dynamic_flag_spec \
22854 whole_archive_flag_spec \
22855 compiler_needs_object \
22856 with_gnu_ld \
22857 allow_undefined_flag \
22858 no_undefined_flag \
22859 hardcode_libdir_flag_spec \
22860 hardcode_libdir_separator \
22861 exclude_expsyms \
22862 include_expsyms \
22863 file_list_spec \
22864 variables_saved_for_relink \
22865 libname_spec \
22866 library_names_spec \
22867 soname_spec \
22868 install_override_mode \
22869 finish_eval \
22870 old_striplib \
22871 striplib; do
22872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22873 *[\\\\\\\`\\"\\\$]*)
22874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22879 esac
22880 done
22882 # Double-quote double-evaled strings.
22883 for var in reload_cmds \
22884 old_postinstall_cmds \
22885 old_postuninstall_cmds \
22886 old_archive_cmds \
22887 extract_expsyms_cmds \
22888 old_archive_from_new_cmds \
22889 old_archive_from_expsyms_cmds \
22890 archive_cmds \
22891 archive_expsym_cmds \
22892 module_cmds \
22893 module_expsym_cmds \
22894 export_symbols_cmds \
22895 prelink_cmds \
22896 postlink_cmds \
22897 postinstall_cmds \
22898 postuninstall_cmds \
22899 finish_cmds \
22900 sys_lib_search_path_spec \
22901 sys_lib_dlsearch_path_spec; do
22902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22903 *[\\\\\\\`\\"\\\$]*)
22904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22909 esac
22910 done
22912 ac_aux_dir='$ac_aux_dir'
22913 xsi_shell='$xsi_shell'
22914 lt_shell_append='$lt_shell_append'
22916 # See if we are running on zsh, and set the options which allow our
22917 # commands through without removal of \ escapes INIT.
22918 if test -n "\${ZSH_VERSION+set}" ; then
22919 setopt NO_GLOB_SUBST
22923 PACKAGE='$PACKAGE'
22924 VERSION='$VERSION'
22925 TIMESTAMP='$TIMESTAMP'
22926 RM='$RM'
22927 ofile='$ofile'
22931 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22932 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22933 # from automake < 1.5.
22934 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22935 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22936 LINGUAS="${LINGUAS-%UNSET%}"
22939 _ACEOF
22941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22943 # Handling of arguments.
22944 for ac_config_target in $ac_config_targets
22946 case $ac_config_target in
22947 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22948 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22949 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22950 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22951 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22952 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22953 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22954 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22955 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22956 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22957 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22958 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22959 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22960 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22961 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22962 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22963 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22964 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22966 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22967 esac
22968 done
22971 # If the user did not use the arguments to specify the items to instantiate,
22972 # then the envvar interface is used. Set only those that are not.
22973 # We use the long form for the default assignment because of an extremely
22974 # bizarre bug on SunOS 4.1.3.
22975 if $ac_need_defaults; then
22976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22981 # Have a temporary directory for convenience. Make it in the build tree
22982 # simply because there is no reason against having it here, and in addition,
22983 # creating and moving files from /tmp can sometimes cause problems.
22984 # Hook for its removal unless debugging.
22985 # Note that there is a small window in which the directory will not be cleaned:
22986 # after its creation but before its name has been assigned to `$tmp'.
22987 $debug ||
22989 tmp= ac_tmp=
22990 trap 'exit_status=$?
22991 : "${ac_tmp:=$tmp}"
22992 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22994 trap 'as_fn_exit 1' 1 2 13 15
22996 # Create a (secure) tmp directory for tmp files.
22999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23000 test -d "$tmp"
23001 } ||
23003 tmp=./conf$$-$RANDOM
23004 (umask 077 && mkdir "$tmp")
23005 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23006 ac_tmp=$tmp
23008 # Set up the scripts for CONFIG_FILES section.
23009 # No need to generate them if there are no CONFIG_FILES.
23010 # This happens for instance with `./config.status config.h'.
23011 if test -n "$CONFIG_FILES"; then
23014 ac_cr=`echo X | tr X '\015'`
23015 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23016 # But we know of no other shell where ac_cr would be empty at this
23017 # point, so we can use a bashism as a fallback.
23018 if test "x$ac_cr" = x; then
23019 eval ac_cr=\$\'\\r\'
23021 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23022 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23023 ac_cs_awk_cr='\\r'
23024 else
23025 ac_cs_awk_cr=$ac_cr
23028 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23029 _ACEOF
23033 echo "cat >conf$$subs.awk <<_ACEOF" &&
23034 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23035 echo "_ACEOF"
23036 } >conf$$subs.sh ||
23037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23038 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23039 ac_delim='%!_!# '
23040 for ac_last_try in false false false false false :; do
23041 . ./conf$$subs.sh ||
23042 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23044 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23045 if test $ac_delim_n = $ac_delim_num; then
23046 break
23047 elif $ac_last_try; then
23048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23049 else
23050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23052 done
23053 rm -f conf$$subs.sh
23055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23056 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23057 _ACEOF
23058 sed -n '
23060 s/^/S["/; s/!.*/"]=/
23063 s/^[^!]*!//
23064 :repl
23065 t repl
23066 s/'"$ac_delim"'$//
23067 t delim
23070 s/\(.\{148\}\)..*/\1/
23071 t more1
23072 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23075 b repl
23076 :more1
23077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23080 s/.\{148\}//
23081 t nl
23082 :delim
23084 s/\(.\{148\}\)..*/\1/
23085 t more2
23086 s/["\\]/\\&/g; s/^/"/; s/$/"/
23089 :more2
23090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23093 s/.\{148\}//
23094 t delim
23095 ' <conf$$subs.awk | sed '
23096 /^[^""]/{
23098 s/\n//
23100 ' >>$CONFIG_STATUS || ac_write_fail=1
23101 rm -f conf$$subs.awk
23102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23103 _ACAWK
23104 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23105 for (key in S) S_is_set[key] = 1
23106 FS = "\a"
23110 line = $ 0
23111 nfields = split(line, field, "@")
23112 substed = 0
23113 len = length(field[1])
23114 for (i = 2; i < nfields; i++) {
23115 key = field[i]
23116 keylen = length(key)
23117 if (S_is_set[key]) {
23118 value = S[key]
23119 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23120 len += length(value) + length(field[++i])
23121 substed = 1
23122 } else
23123 len += 1 + keylen
23126 print line
23129 _ACAWK
23130 _ACEOF
23131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23132 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23133 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23134 else
23136 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23138 _ACEOF
23140 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23141 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23142 # trailing colons and then remove the whole line if VPATH becomes empty
23143 # (actually we leave an empty line to preserve line numbers).
23144 if test "x$srcdir" = x.; then
23145 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23147 s///
23148 s/^/:/
23149 s/[ ]*$/:/
23150 s/:\$(srcdir):/:/g
23151 s/:\${srcdir}:/:/g
23152 s/:@srcdir@:/:/g
23153 s/^:*//
23154 s/:*$//
23156 s/\(=[ ]*\).*/\1/
23158 s/\n//
23159 s/^[^=]*=[ ]*$//
23163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23164 fi # test -n "$CONFIG_FILES"
23166 # Set up the scripts for CONFIG_HEADERS section.
23167 # No need to generate them if there are no CONFIG_HEADERS.
23168 # This happens for instance with `./config.status Makefile'.
23169 if test -n "$CONFIG_HEADERS"; then
23170 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23171 BEGIN {
23172 _ACEOF
23174 # Transform confdefs.h into an awk script `defines.awk', embedded as
23175 # here-document in config.status, that substitutes the proper values into
23176 # config.h.in to produce config.h.
23178 # Create a delimiter string that does not exist in confdefs.h, to ease
23179 # handling of long lines.
23180 ac_delim='%!_!# '
23181 for ac_last_try in false false :; do
23182 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23183 if test -z "$ac_tt"; then
23184 break
23185 elif $ac_last_try; then
23186 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23187 else
23188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23190 done
23192 # For the awk script, D is an array of macro values keyed by name,
23193 # likewise P contains macro parameters if any. Preserve backslash
23194 # newline sequences.
23196 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23197 sed -n '
23198 s/.\{148\}/&'"$ac_delim"'/g
23199 t rset
23200 :rset
23201 s/^[ ]*#[ ]*define[ ][ ]*/ /
23202 t def
23204 :def
23205 s/\\$//
23206 t bsnl
23207 s/["\\]/\\&/g
23208 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23209 D["\1"]=" \3"/p
23210 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23212 :bsnl
23213 s/["\\]/\\&/g
23214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23215 D["\1"]=" \3\\\\\\n"\\/p
23216 t cont
23217 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23218 t cont
23220 :cont
23222 s/.\{148\}/&'"$ac_delim"'/g
23223 t clear
23224 :clear
23225 s/\\$//
23226 t bsnlc
23227 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23229 :bsnlc
23230 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23231 b cont
23232 ' <confdefs.h | sed '
23233 s/'"$ac_delim"'/"\\\
23234 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23237 for (key in D) D_is_set[key] = 1
23238 FS = "\a"
23240 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23241 line = \$ 0
23242 split(line, arg, " ")
23243 if (arg[1] == "#") {
23244 defundef = arg[2]
23245 mac1 = arg[3]
23246 } else {
23247 defundef = substr(arg[1], 2)
23248 mac1 = arg[2]
23250 split(mac1, mac2, "(") #)
23251 macro = mac2[1]
23252 prefix = substr(line, 1, index(line, defundef) - 1)
23253 if (D_is_set[macro]) {
23254 # Preserve the white space surrounding the "#".
23255 print prefix "define", macro P[macro] D[macro]
23256 next
23257 } else {
23258 # Replace #undef with comments. This is necessary, for example,
23259 # in the case of _POSIX_SOURCE, which is predefined and required
23260 # on some systems where configure will not decide to define it.
23261 if (defundef == "undef") {
23262 print "/*", prefix defundef, macro, "*/"
23263 next
23267 { print }
23268 _ACAWK
23269 _ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23271 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23272 fi # test -n "$CONFIG_HEADERS"
23275 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23276 shift
23277 for ac_tag
23279 case $ac_tag in
23280 :[FHLC]) ac_mode=$ac_tag; continue;;
23281 esac
23282 case $ac_mode$ac_tag in
23283 :[FHL]*:*);;
23284 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23285 :[FH]-) ac_tag=-:-;;
23286 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23287 esac
23288 ac_save_IFS=$IFS
23289 IFS=:
23290 set x $ac_tag
23291 IFS=$ac_save_IFS
23292 shift
23293 ac_file=$1
23294 shift
23296 case $ac_mode in
23297 :L) ac_source=$1;;
23298 :[FH])
23299 ac_file_inputs=
23300 for ac_f
23302 case $ac_f in
23303 -) ac_f="$ac_tmp/stdin";;
23304 *) # Look for the file first in the build tree, then in the source tree
23305 # (if the path is not absolute). The absolute path cannot be DOS-style,
23306 # because $ac_f cannot contain `:'.
23307 test -f "$ac_f" ||
23308 case $ac_f in
23309 [\\/$]*) false;;
23310 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23311 esac ||
23312 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23313 esac
23314 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23315 as_fn_append ac_file_inputs " '$ac_f'"
23316 done
23318 # Let's still pretend it is `configure' which instantiates (i.e., don't
23319 # use $as_me), people would be surprised to read:
23320 # /* config.h. Generated by config.status. */
23321 configure_input='Generated from '`
23322 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23323 `' by configure.'
23324 if test x"$ac_file" != x-; then
23325 configure_input="$ac_file. $configure_input"
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23327 $as_echo "$as_me: creating $ac_file" >&6;}
23329 # Neutralize special characters interpreted by sed in replacement strings.
23330 case $configure_input in #(
23331 *\&* | *\|* | *\\* )
23332 ac_sed_conf_input=`$as_echo "$configure_input" |
23333 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23334 *) ac_sed_conf_input=$configure_input;;
23335 esac
23337 case $ac_tag in
23338 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23340 esac
23342 esac
23344 ac_dir=`$as_dirname -- "$ac_file" ||
23345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$ac_file" : 'X\(//\)[^/]' \| \
23347 X"$ac_file" : 'X\(//\)$' \| \
23348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23349 $as_echo X"$ac_file" |
23350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23351 s//\1/
23354 /^X\(\/\/\)[^/].*/{
23355 s//\1/
23358 /^X\(\/\/\)$/{
23359 s//\1/
23362 /^X\(\/\).*/{
23363 s//\1/
23366 s/.*/./; q'`
23367 as_dir="$ac_dir"; as_fn_mkdir_p
23368 ac_builddir=.
23370 case "$ac_dir" in
23371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23374 # A ".." for each directory in $ac_dir_suffix.
23375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23376 case $ac_top_builddir_sub in
23377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23379 esac ;;
23380 esac
23381 ac_abs_top_builddir=$ac_pwd
23382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23383 # for backward compatibility:
23384 ac_top_builddir=$ac_top_build_prefix
23386 case $srcdir in
23387 .) # We are building in place.
23388 ac_srcdir=.
23389 ac_top_srcdir=$ac_top_builddir_sub
23390 ac_abs_top_srcdir=$ac_pwd ;;
23391 [\\/]* | ?:[\\/]* ) # Absolute name.
23392 ac_srcdir=$srcdir$ac_dir_suffix;
23393 ac_top_srcdir=$srcdir
23394 ac_abs_top_srcdir=$srcdir ;;
23395 *) # Relative name.
23396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23397 ac_top_srcdir=$ac_top_build_prefix$srcdir
23398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23399 esac
23400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23403 case $ac_mode in
23406 # CONFIG_FILE
23409 case $INSTALL in
23410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23412 esac
23413 ac_MKDIR_P=$MKDIR_P
23414 case $MKDIR_P in
23415 [\\/$]* | ?:[\\/]* ) ;;
23416 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23417 esac
23418 _ACEOF
23420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23421 # If the template does not know about datarootdir, expand it.
23422 # FIXME: This hack should be removed a few years after 2.60.
23423 ac_datarootdir_hack=; ac_datarootdir_seen=
23424 ac_sed_dataroot='
23425 /datarootdir/ {
23429 /@datadir@/p
23430 /@docdir@/p
23431 /@infodir@/p
23432 /@localedir@/p
23433 /@mandir@/p'
23434 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23435 *datarootdir*) ac_datarootdir_seen=yes;;
23436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23438 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23439 _ACEOF
23440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23441 ac_datarootdir_hack='
23442 s&@datadir@&$datadir&g
23443 s&@docdir@&$docdir&g
23444 s&@infodir@&$infodir&g
23445 s&@localedir@&$localedir&g
23446 s&@mandir@&$mandir&g
23447 s&\\\${datarootdir}&$datarootdir&g' ;;
23448 esac
23449 _ACEOF
23451 # Neutralize VPATH when `$srcdir' = `.'.
23452 # Shell code in configure.ac might set extrasub.
23453 # FIXME: do we really want to maintain this feature?
23454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23455 ac_sed_extra="$ac_vpsub
23456 $extrasub
23457 _ACEOF
23458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23461 s|@configure_input@|$ac_sed_conf_input|;t t
23462 s&@top_builddir@&$ac_top_builddir_sub&;t t
23463 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23464 s&@srcdir@&$ac_srcdir&;t t
23465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23466 s&@top_srcdir@&$ac_top_srcdir&;t t
23467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23468 s&@builddir@&$ac_builddir&;t t
23469 s&@abs_builddir@&$ac_abs_builddir&;t t
23470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23471 s&@INSTALL@&$ac_INSTALL&;t t
23472 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23473 $ac_datarootdir_hack
23475 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23476 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23479 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23481 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23483 which seems to be undefined. Please make sure it is defined" >&5
23484 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23485 which seems to be undefined. Please make sure it is defined" >&2;}
23487 rm -f "$ac_tmp/stdin"
23488 case $ac_file in
23489 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23490 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23491 esac \
23492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23496 # CONFIG_HEADER
23498 if test x"$ac_file" != x-; then
23500 $as_echo "/* $configure_input */" \
23501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23502 } >"$ac_tmp/config.h" \
23503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23504 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23506 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23507 else
23508 rm -f "$ac_file"
23509 mv "$ac_tmp/config.h" "$ac_file" \
23510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23512 else
23513 $as_echo "/* $configure_input */" \
23514 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23515 || as_fn_error $? "could not create -" "$LINENO" 5
23517 # Compute "$ac_file"'s index in $config_headers.
23518 _am_arg="$ac_file"
23519 _am_stamp_count=1
23520 for _am_header in $config_headers :; do
23521 case $_am_header in
23522 $_am_arg | $_am_arg:* )
23523 break ;;
23525 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23526 esac
23527 done
23528 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23529 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23530 X"$_am_arg" : 'X\(//\)[^/]' \| \
23531 X"$_am_arg" : 'X\(//\)$' \| \
23532 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23533 $as_echo X"$_am_arg" |
23534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23535 s//\1/
23538 /^X\(\/\/\)[^/].*/{
23539 s//\1/
23542 /^X\(\/\/\)$/{
23543 s//\1/
23546 /^X\(\/\).*/{
23547 s//\1/
23550 s/.*/./; q'`/stamp-h$_am_stamp_count
23553 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23554 $as_echo "$as_me: executing $ac_file commands" >&6;}
23556 esac
23559 case $ac_file$ac_mode in
23560 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23561 # Older Autoconf quotes --file arguments for eval, but not when files
23562 # are listed without --file. Let's play safe and only enable the eval
23563 # if we detect the quoting.
23564 case $CONFIG_FILES in
23565 *\'*) eval set x "$CONFIG_FILES" ;;
23566 *) set x $CONFIG_FILES ;;
23567 esac
23568 shift
23569 for mf
23571 # Strip MF so we end up with the name of the file.
23572 mf=`echo "$mf" | sed -e 's/:.*$//'`
23573 # Check whether this is an Automake generated Makefile or not.
23574 # We used to match only the files named 'Makefile.in', but
23575 # some people rename them; so instead we look at the file content.
23576 # Grep'ing the first line is not enough: some people post-process
23577 # each Makefile.in and add a new line on top of each file to say so.
23578 # Grep'ing the whole file is not good either: AIX grep has a line
23579 # limit of 2048, but all sed's we know have understand at least 4000.
23580 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23581 dirpart=`$as_dirname -- "$mf" ||
23582 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23583 X"$mf" : 'X\(//\)[^/]' \| \
23584 X"$mf" : 'X\(//\)$' \| \
23585 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23586 $as_echo X"$mf" |
23587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23588 s//\1/
23591 /^X\(\/\/\)[^/].*/{
23592 s//\1/
23595 /^X\(\/\/\)$/{
23596 s//\1/
23599 /^X\(\/\).*/{
23600 s//\1/
23603 s/.*/./; q'`
23604 else
23605 continue
23607 # Extract the definition of DEPDIR, am__include, and am__quote
23608 # from the Makefile without running 'make'.
23609 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23610 test -z "$DEPDIR" && continue
23611 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23612 test -z "$am__include" && continue
23613 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23614 # Find all dependency output files, they are included files with
23615 # $(DEPDIR) in their names. We invoke sed twice because it is the
23616 # simplest approach to changing $(DEPDIR) to its actual value in the
23617 # expansion.
23618 for file in `sed -n "
23619 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23620 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23621 # Make sure the directory exists.
23622 test -f "$dirpart/$file" && continue
23623 fdir=`$as_dirname -- "$file" ||
23624 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23625 X"$file" : 'X\(//\)[^/]' \| \
23626 X"$file" : 'X\(//\)$' \| \
23627 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23628 $as_echo X"$file" |
23629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23630 s//\1/
23633 /^X\(\/\/\)[^/].*/{
23634 s//\1/
23637 /^X\(\/\/\)$/{
23638 s//\1/
23641 /^X\(\/\).*/{
23642 s//\1/
23645 s/.*/./; q'`
23646 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23647 # echo "creating $dirpart/$file"
23648 echo '# dummy' > "$dirpart/$file"
23649 done
23650 done
23653 "libtool":C)
23655 # See if we are running on zsh, and set the options which allow our
23656 # commands through without removal of \ escapes.
23657 if test -n "${ZSH_VERSION+set}" ; then
23658 setopt NO_GLOB_SUBST
23661 cfgfile="${ofile}T"
23662 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23663 $RM "$cfgfile"
23665 cat <<_LT_EOF >> "$cfgfile"
23666 #! $SHELL
23668 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23669 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23671 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23673 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23674 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23675 # Foundation, Inc.
23676 # Written by Gordon Matzigkeit, 1996
23678 # This file is part of GNU Libtool.
23680 # GNU Libtool is free software; you can redistribute it and/or
23681 # modify it under the terms of the GNU General Public License as
23682 # published by the Free Software Foundation; either version 2 of
23683 # the License, or (at your option) any later version.
23685 # As a special exception to the GNU General Public License,
23686 # if you distribute this file as part of a program or library that
23687 # is built using GNU Libtool, you may include this file under the
23688 # same distribution terms that you use for the rest of that program.
23690 # GNU Libtool is distributed in the hope that it will be useful,
23691 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23693 # GNU General Public License for more details.
23695 # You should have received a copy of the GNU General Public License
23696 # along with GNU Libtool; see the file COPYING. If not, a copy
23697 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23698 # obtained by writing to the Free Software Foundation, Inc.,
23699 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23702 # The names of the tagged configurations supported by this script.
23703 available_tags=""
23705 # ### BEGIN LIBTOOL CONFIG
23707 # Which release of libtool.m4 was used?
23708 macro_version=$macro_version
23709 macro_revision=$macro_revision
23711 # Whether or not to build shared libraries.
23712 build_libtool_libs=$enable_shared
23714 # Whether or not to build static libraries.
23715 build_old_libs=$enable_static
23717 # What type of objects to build.
23718 pic_mode=$pic_mode
23720 # Whether or not to optimize for fast installation.
23721 fast_install=$enable_fast_install
23723 # Shell to use when invoking shell scripts.
23724 SHELL=$lt_SHELL
23726 # An echo program that protects backslashes.
23727 ECHO=$lt_ECHO
23729 # The PATH separator for the build system.
23730 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23732 # The host system.
23733 host_alias=$host_alias
23734 host=$host
23735 host_os=$host_os
23737 # The build system.
23738 build_alias=$build_alias
23739 build=$build
23740 build_os=$build_os
23742 # A sed program that does not truncate output.
23743 SED=$lt_SED
23745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23746 Xsed="\$SED -e 1s/^X//"
23748 # A grep program that handles long lines.
23749 GREP=$lt_GREP
23751 # An ERE matcher.
23752 EGREP=$lt_EGREP
23754 # A literal string matcher.
23755 FGREP=$lt_FGREP
23757 # A BSD- or MS-compatible name lister.
23758 NM=$lt_NM
23760 # Whether we need soft or hard links.
23761 LN_S=$lt_LN_S
23763 # What is the maximum length of a command?
23764 max_cmd_len=$max_cmd_len
23766 # Object file suffix (normally "o").
23767 objext=$ac_objext
23769 # Executable file suffix (normally "").
23770 exeext=$exeext
23772 # whether the shell understands "unset".
23773 lt_unset=$lt_unset
23775 # turn spaces into newlines.
23776 SP2NL=$lt_lt_SP2NL
23778 # turn newlines into spaces.
23779 NL2SP=$lt_lt_NL2SP
23781 # convert \$build file names to \$host format.
23782 to_host_file_cmd=$lt_cv_to_host_file_cmd
23784 # convert \$build files to toolchain format.
23785 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23787 # An object symbol dumper.
23788 OBJDUMP=$lt_OBJDUMP
23790 # Method to check whether dependent libraries are shared objects.
23791 deplibs_check_method=$lt_deplibs_check_method
23793 # Command to use when deplibs_check_method = "file_magic".
23794 file_magic_cmd=$lt_file_magic_cmd
23796 # How to find potential files when deplibs_check_method = "file_magic".
23797 file_magic_glob=$lt_file_magic_glob
23799 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23800 want_nocaseglob=$lt_want_nocaseglob
23802 # DLL creation program.
23803 DLLTOOL=$lt_DLLTOOL
23805 # Command to associate shared and link libraries.
23806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23808 # The archiver.
23809 AR=$lt_AR
23811 # Flags to create an archive.
23812 AR_FLAGS=$lt_AR_FLAGS
23814 # How to feed a file listing to the archiver.
23815 archiver_list_spec=$lt_archiver_list_spec
23817 # A symbol stripping program.
23818 STRIP=$lt_STRIP
23820 # Commands used to install an old-style archive.
23821 RANLIB=$lt_RANLIB
23822 old_postinstall_cmds=$lt_old_postinstall_cmds
23823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23825 # Whether to use a lock for old archive extraction.
23826 lock_old_archive_extraction=$lock_old_archive_extraction
23828 # A C compiler.
23829 LTCC=$lt_CC
23831 # LTCC compiler flags.
23832 LTCFLAGS=$lt_CFLAGS
23834 # Take the output of nm and produce a listing of raw symbols and C names.
23835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23837 # Transform the output of nm in a proper C declaration.
23838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23840 # Transform the output of nm in a C name address pair.
23841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23843 # Transform the output of nm in a C name address pair when lib prefix is needed.
23844 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23846 # Specify filename containing input files for \$NM.
23847 nm_file_list_spec=$lt_nm_file_list_spec
23849 # The root where to search for dependent libraries,and in which our libraries should be installed.
23850 lt_sysroot=$lt_sysroot
23852 # The name of the directory that contains temporary libtool files.
23853 objdir=$objdir
23855 # Used to examine libraries when file_magic_cmd begins with "file".
23856 MAGIC_CMD=$MAGIC_CMD
23858 # Must we lock files when doing compilation?
23859 need_locks=$lt_need_locks
23861 # Manifest tool.
23862 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23865 DSYMUTIL=$lt_DSYMUTIL
23867 # Tool to change global to local symbols on Mac OS X.
23868 NMEDIT=$lt_NMEDIT
23870 # Tool to manipulate fat objects and archives on Mac OS X.
23871 LIPO=$lt_LIPO
23873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23874 OTOOL=$lt_OTOOL
23876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23877 OTOOL64=$lt_OTOOL64
23879 # Old archive suffix (normally "a").
23880 libext=$libext
23882 # Shared library suffix (normally ".so").
23883 shrext_cmds=$lt_shrext_cmds
23885 # The commands to extract the exported symbol list from a shared archive.
23886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23888 # Variables whose values should be saved in libtool wrapper scripts and
23889 # restored at link time.
23890 variables_saved_for_relink=$lt_variables_saved_for_relink
23892 # Do we need the "lib" prefix for modules?
23893 need_lib_prefix=$need_lib_prefix
23895 # Do we need a version for libraries?
23896 need_version=$need_version
23898 # Library versioning type.
23899 version_type=$version_type
23901 # Shared library runtime path variable.
23902 runpath_var=$runpath_var
23904 # Shared library path variable.
23905 shlibpath_var=$shlibpath_var
23907 # Is shlibpath searched before the hard-coded library search path?
23908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23910 # Format of library name prefix.
23911 libname_spec=$lt_libname_spec
23913 # List of archive names. First name is the real one, the rest are links.
23914 # The last name is the one that the linker finds with -lNAME
23915 library_names_spec=$lt_library_names_spec
23917 # The coded name of the library, if different from the real name.
23918 soname_spec=$lt_soname_spec
23920 # Permission mode override for installation of shared libraries.
23921 install_override_mode=$lt_install_override_mode
23923 # Command to use after installation of a shared archive.
23924 postinstall_cmds=$lt_postinstall_cmds
23926 # Command to use after uninstallation of a shared archive.
23927 postuninstall_cmds=$lt_postuninstall_cmds
23929 # Commands used to finish a libtool library installation in a directory.
23930 finish_cmds=$lt_finish_cmds
23932 # As "finish_cmds", except a single script fragment to be evaled but
23933 # not shown.
23934 finish_eval=$lt_finish_eval
23936 # Whether we should hardcode library paths into libraries.
23937 hardcode_into_libs=$hardcode_into_libs
23939 # Compile-time system search path for libraries.
23940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23942 # Run-time system search path for libraries.
23943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23945 # Whether dlopen is supported.
23946 dlopen_support=$enable_dlopen
23948 # Whether dlopen of programs is supported.
23949 dlopen_self=$enable_dlopen_self
23951 # Whether dlopen of statically linked programs is supported.
23952 dlopen_self_static=$enable_dlopen_self_static
23954 # Commands to strip libraries.
23955 old_striplib=$lt_old_striplib
23956 striplib=$lt_striplib
23959 # The linker used to build libraries.
23960 LD=$lt_LD
23962 # How to create reloadable object files.
23963 reload_flag=$lt_reload_flag
23964 reload_cmds=$lt_reload_cmds
23966 # Commands used to build an old-style archive.
23967 old_archive_cmds=$lt_old_archive_cmds
23969 # A language specific compiler.
23970 CC=$lt_compiler
23972 # Is the compiler the GNU compiler?
23973 with_gcc=$GCC
23975 # Compiler flag to turn off builtin functions.
23976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23978 # Additional compiler flags for building library objects.
23979 pic_flag=$lt_lt_prog_compiler_pic
23981 # How to pass a linker flag through the compiler.
23982 wl=$lt_lt_prog_compiler_wl
23984 # Compiler flag to prevent dynamic linking.
23985 link_static_flag=$lt_lt_prog_compiler_static
23987 # Does compiler simultaneously support -c and -o options?
23988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23990 # Whether or not to add -lc for building shared libraries.
23991 build_libtool_need_lc=$archive_cmds_need_lc
23993 # Whether or not to disallow shared libs when runtime libs are static.
23994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23996 # Compiler flag to allow reflexive dlopens.
23997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23999 # Compiler flag to generate shared objects directly from archives.
24000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24002 # Whether the compiler copes with passing no objects directly.
24003 compiler_needs_object=$lt_compiler_needs_object
24005 # Create an old-style archive from a shared archive.
24006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24008 # Create a temporary old-style archive to link instead of a shared archive.
24009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24011 # Commands used to build a shared archive.
24012 archive_cmds=$lt_archive_cmds
24013 archive_expsym_cmds=$lt_archive_expsym_cmds
24015 # Commands used to build a loadable module if different from building
24016 # a shared archive.
24017 module_cmds=$lt_module_cmds
24018 module_expsym_cmds=$lt_module_expsym_cmds
24020 # Whether we are building with GNU ld or not.
24021 with_gnu_ld=$lt_with_gnu_ld
24023 # Flag that allows shared libraries with undefined symbols to be built.
24024 allow_undefined_flag=$lt_allow_undefined_flag
24026 # Flag that enforces no undefined symbols.
24027 no_undefined_flag=$lt_no_undefined_flag
24029 # Flag to hardcode \$libdir into a binary during linking.
24030 # This must work even if \$libdir does not exist
24031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24033 # Whether we need a single "-rpath" flag with a separated argument.
24034 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24037 # DIR into the resulting binary.
24038 hardcode_direct=$hardcode_direct
24040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24041 # DIR into the resulting binary and the resulting library dependency is
24042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24043 # library is relocated.
24044 hardcode_direct_absolute=$hardcode_direct_absolute
24046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24047 # into the resulting binary.
24048 hardcode_minus_L=$hardcode_minus_L
24050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24051 # into the resulting binary.
24052 hardcode_shlibpath_var=$hardcode_shlibpath_var
24054 # Set to "yes" if building a shared library automatically hardcodes DIR
24055 # into the library and all subsequent libraries and executables linked
24056 # against it.
24057 hardcode_automatic=$hardcode_automatic
24059 # Set to yes if linker adds runtime paths of dependent libraries
24060 # to runtime path list.
24061 inherit_rpath=$inherit_rpath
24063 # Whether libtool must link a program against all its dependency libraries.
24064 link_all_deplibs=$link_all_deplibs
24066 # Set to "yes" if exported symbols are required.
24067 always_export_symbols=$always_export_symbols
24069 # The commands to list exported symbols.
24070 export_symbols_cmds=$lt_export_symbols_cmds
24072 # Symbols that should not be listed in the preloaded symbols.
24073 exclude_expsyms=$lt_exclude_expsyms
24075 # Symbols that must always be exported.
24076 include_expsyms=$lt_include_expsyms
24078 # Commands necessary for linking programs (against libraries) with templates.
24079 prelink_cmds=$lt_prelink_cmds
24081 # Commands necessary for finishing linking programs.
24082 postlink_cmds=$lt_postlink_cmds
24084 # Specify filename containing input files.
24085 file_list_spec=$lt_file_list_spec
24087 # How to hardcode a shared library path into an executable.
24088 hardcode_action=$hardcode_action
24090 # ### END LIBTOOL CONFIG
24092 _LT_EOF
24094 case $host_os in
24095 aix3*)
24096 cat <<\_LT_EOF >> "$cfgfile"
24097 # AIX sometimes has problems with the GCC collect2 program. For some
24098 # reason, if we set the COLLECT_NAMES environment variable, the problems
24099 # vanish in a puff of smoke.
24100 if test "X${COLLECT_NAMES+set}" != Xset; then
24101 COLLECT_NAMES=
24102 export COLLECT_NAMES
24104 _LT_EOF
24106 esac
24109 ltmain="$ac_aux_dir/ltmain.sh"
24112 # We use sed instead of cat because bash on DJGPP gets confused if
24113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24114 # text mode, it properly converts lines to CR/LF. This bash problem
24115 # is reportedly fixed, but why not run on old versions too?
24116 sed '$q' "$ltmain" >> "$cfgfile" \
24117 || (rm -f "$cfgfile"; exit 1)
24119 if test x"$xsi_shell" = xyes; then
24120 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24121 func_dirname ()\
24123 \ case ${1} in\
24124 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24125 \ * ) func_dirname_result="${3}" ;;\
24126 \ esac\
24127 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24128 && mv -f "$cfgfile.tmp" "$cfgfile" \
24129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24130 test 0 -eq $? || _lt_function_replace_fail=:
24133 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24134 func_basename ()\
24136 \ func_basename_result="${1##*/}"\
24137 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24138 && mv -f "$cfgfile.tmp" "$cfgfile" \
24139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24140 test 0 -eq $? || _lt_function_replace_fail=:
24143 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24144 func_dirname_and_basename ()\
24146 \ case ${1} in\
24147 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24148 \ * ) func_dirname_result="${3}" ;;\
24149 \ esac\
24150 \ func_basename_result="${1##*/}"\
24151 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24152 && mv -f "$cfgfile.tmp" "$cfgfile" \
24153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24154 test 0 -eq $? || _lt_function_replace_fail=:
24157 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24158 func_stripname ()\
24160 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24161 \ # positional parameters, so assign one to ordinary parameter first.\
24162 \ func_stripname_result=${3}\
24163 \ func_stripname_result=${func_stripname_result#"${1}"}\
24164 \ func_stripname_result=${func_stripname_result%"${2}"}\
24165 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24166 && mv -f "$cfgfile.tmp" "$cfgfile" \
24167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24168 test 0 -eq $? || _lt_function_replace_fail=:
24171 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24172 func_split_long_opt ()\
24174 \ func_split_long_opt_name=${1%%=*}\
24175 \ func_split_long_opt_arg=${1#*=}\
24176 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24177 && mv -f "$cfgfile.tmp" "$cfgfile" \
24178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24179 test 0 -eq $? || _lt_function_replace_fail=:
24182 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24183 func_split_short_opt ()\
24185 \ func_split_short_opt_arg=${1#??}\
24186 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24187 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24188 && mv -f "$cfgfile.tmp" "$cfgfile" \
24189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24190 test 0 -eq $? || _lt_function_replace_fail=:
24193 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24194 func_lo2o ()\
24196 \ case ${1} in\
24197 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24198 \ *) func_lo2o_result=${1} ;;\
24199 \ esac\
24200 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24201 && mv -f "$cfgfile.tmp" "$cfgfile" \
24202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24203 test 0 -eq $? || _lt_function_replace_fail=:
24206 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24207 func_xform ()\
24209 func_xform_result=${1%.*}.lo\
24210 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24211 && mv -f "$cfgfile.tmp" "$cfgfile" \
24212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24213 test 0 -eq $? || _lt_function_replace_fail=:
24216 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24217 func_arith ()\
24219 func_arith_result=$(( $* ))\
24220 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24221 && mv -f "$cfgfile.tmp" "$cfgfile" \
24222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24223 test 0 -eq $? || _lt_function_replace_fail=:
24226 sed -e '/^func_len ()$/,/^} # func_len /c\
24227 func_len ()\
24229 func_len_result=${#1}\
24230 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24231 && mv -f "$cfgfile.tmp" "$cfgfile" \
24232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24233 test 0 -eq $? || _lt_function_replace_fail=:
24237 if test x"$lt_shell_append" = xyes; then
24238 sed -e '/^func_append ()$/,/^} # func_append /c\
24239 func_append ()\
24241 eval "${1}+=\\${2}"\
24242 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24243 && mv -f "$cfgfile.tmp" "$cfgfile" \
24244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24245 test 0 -eq $? || _lt_function_replace_fail=:
24248 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24249 func_append_quoted ()\
24251 \ func_quote_for_eval "${2}"\
24252 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24253 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24254 && mv -f "$cfgfile.tmp" "$cfgfile" \
24255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24256 test 0 -eq $? || _lt_function_replace_fail=:
24259 # Save a `func_append' function call where possible by direct use of '+='
24260 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24261 && mv -f "$cfgfile.tmp" "$cfgfile" \
24262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24263 test 0 -eq $? || _lt_function_replace_fail=:
24264 else
24265 # Save a `func_append' function call even when '+=' is not available
24266 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24267 && mv -f "$cfgfile.tmp" "$cfgfile" \
24268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24269 test 0 -eq $? || _lt_function_replace_fail=:
24272 if test x"$_lt_function_replace_fail" = x":"; then
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24274 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24278 mv -f "$cfgfile" "$ofile" ||
24279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24280 chmod +x "$ofile"
24283 "po-directories":C)
24284 for ac_file in $CONFIG_FILES; do
24285 # Support "outfile[:infile[:infile...]]"
24286 case "$ac_file" in
24287 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24288 esac
24289 # PO directories have a Makefile.in generated from Makefile.in.in.
24290 case "$ac_file" in */Makefile.in)
24291 # Adjust a relative srcdir.
24292 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24293 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24294 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24295 # In autoconf-2.13 it is called $ac_given_srcdir.
24296 # In autoconf-2.50 it is called $srcdir.
24297 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24298 case "$ac_given_srcdir" in
24299 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24300 /*) top_srcdir="$ac_given_srcdir" ;;
24301 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24302 esac
24303 # Treat a directory as a PO directory if and only if it has a
24304 # POTFILES.in file. This allows packages to have multiple PO
24305 # directories under different names or in different locations.
24306 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24307 rm -f "$ac_dir/POTFILES"
24308 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24309 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24310 POMAKEFILEDEPS="POTFILES.in"
24311 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24312 # on $ac_dir but don't depend on user-specified configuration
24313 # parameters.
24314 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24315 # The LINGUAS file contains the set of available languages.
24316 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24317 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24319 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24320 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24321 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24322 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24323 else
24324 # The set of available languages was given in configure.in.
24325 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24326 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24328 # Compute POFILES
24329 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24330 # Compute UPDATEPOFILES
24331 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24332 # Compute DUMMYPOFILES
24333 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24334 # Compute GMOFILES
24335 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24336 case "$ac_given_srcdir" in
24337 .) srcdirpre= ;;
24338 *) srcdirpre='$(srcdir)/' ;;
24339 esac
24340 POFILES=
24341 UPDATEPOFILES=
24342 DUMMYPOFILES=
24343 GMOFILES=
24344 for lang in $ALL_LINGUAS; do
24345 POFILES="$POFILES $srcdirpre$lang.po"
24346 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24347 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24348 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24349 done
24350 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24351 # environment variable.
24352 INST_LINGUAS=
24353 if test -n "$ALL_LINGUAS"; then
24354 for presentlang in $ALL_LINGUAS; do
24355 useit=no
24356 if test "%UNSET%" != "$LINGUAS"; then
24357 desiredlanguages="$LINGUAS"
24358 else
24359 desiredlanguages="$ALL_LINGUAS"
24361 for desiredlang in $desiredlanguages; do
24362 # Use the presentlang catalog if desiredlang is
24363 # a. equal to presentlang, or
24364 # b. a variant of presentlang (because in this case,
24365 # presentlang can be used as a fallback for messages
24366 # which are not translated in the desiredlang catalog).
24367 case "$desiredlang" in
24368 "$presentlang"*) useit=yes;;
24369 esac
24370 done
24371 if test $useit = yes; then
24372 INST_LINGUAS="$INST_LINGUAS $presentlang"
24374 done
24376 CATALOGS=
24377 if test -n "$INST_LINGUAS"; then
24378 for lang in $INST_LINGUAS; do
24379 CATALOGS="$CATALOGS $lang.gmo"
24380 done
24382 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24383 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"
24384 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24385 if test -f "$f"; then
24386 case "$f" in
24387 *.orig | *.bak | *~) ;;
24388 *) cat "$f" >> "$ac_dir/Makefile" ;;
24389 esac
24391 done
24394 esac
24395 done ;;
24397 esac
24398 done # for ac_tag
24401 as_fn_exit 0
24402 _ACEOF
24403 ac_clean_files=$ac_clean_files_save
24405 test $ac_write_fail = 0 ||
24406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24409 # configure is writing to config.log, and then calls config.status.
24410 # config.status does its own redirection, appending to config.log.
24411 # Unfortunately, on DOS this fails, as config.log is still kept open
24412 # by configure, so config.status won't be able to write to it; its
24413 # output is simply discarded. So we exec the FD to /dev/null,
24414 # effectively closing config.log, so it can be properly (re)opened and
24415 # appended to by config.status. When coming back to configure, we
24416 # need to make the FD available again.
24417 if test "$no_create" != yes; then
24418 ac_cs_success=:
24419 ac_config_status_args=
24420 test "$silent" = yes &&
24421 ac_config_status_args="$ac_config_status_args --quiet"
24422 exec 5>/dev/null
24423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24424 exec 5>>config.log
24425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24426 # would make configure fail if this is the last instruction.
24427 $ac_cs_success || as_fn_exit 1
24429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24431 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}