* small addition for new SMARTTIME24 token.
[alpine.git] / configure
blob19f46d7da5e4a5f3a54d1b8abc1e118dc029505c
1 #! /bin/sh
2 # From configure.ac Rev:20 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.20.999.
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.20.999'
595 PACKAGE_STRING='alpine 2.20.999'
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_GCCOPTLEVEL
651 C_CLIENT_LDFLAGS
652 C_CLIENT_CFLAGS
653 C_CLIENT_WITH_IPV6
654 C_CLIENT_TARGET
655 PTHREAD_CFLAGS
656 PTHREAD_LIBS
657 PTHREAD_CC
658 acx_pthread_config
659 alpine_interactive_spellcheck
660 ISPELLPROG
661 alpine_simple_spellcheck
662 SPELLPROG
663 PWPROG
664 NPA_PROG
665 SENDMAIL
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 LTLIBICONV
671 LIBICONV
672 INTL_MACOSX_LIBS
673 MSGMERGE
674 XGETTEXT_015
675 XGETTEXT
676 GMSGFMT_015
677 MSGFMT_015
678 GMSGFMT
679 MSGFMT
680 USE_NLS
681 MAKE
686 LIBTOOL_DEPS
688 LT_SYS_LIBRARY_PATH
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 ac_ct_AR
697 DLLTOOL
698 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
703 FGREP
704 EGREP
705 GREP
707 LIBTOOL
708 RANLIB
709 LN_S
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 MAINT
736 MAINTAINER_MODE_FALSE
737 MAINTAINER_MODE_TRUE
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_dependency_tracking
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_aix_soname
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_nls
818 enable_rpath
819 with_libiconv_prefix
820 with_libintl_prefix
821 enable_dmalloc
822 with_dmalloc_dir
823 with_ps_cmd
824 with_localedir
825 enable_osx_universal_binaries
826 with_include_path
827 with_lib_path
828 with_pubcookie
829 with_web_bin
830 enable_debug
831 enable_optimization
832 enable_mouse
833 enable_quotas
834 enable_from_changing
835 enable_background_post
836 enable_keyboard_lock
837 enable_from_encoding
838 with_smtp_msa
839 with_smtp_msa_flags
840 with_npa
841 with_npa_flags
842 with_password_prog
843 with_simple_spellcheck
844 with_interactive_spellcheck
845 with_system_pinerc
846 with_system_fixed_pinerc
847 with_local_support_info
848 with_mailcheck_interval
849 with_checkpoint_interval
850 with_checkpoint_frequency
851 with_display_rows
852 with_display_columns
853 with_max_display_rows
854 with_max_display_columns
855 with_fill_column
856 with_max_fill_column
857 with_debug_level
858 with_debug_files
859 with_debug_file
860 with_forwarded_keyword
861 with_display_overlap
862 with_display_margin
863 with_default_fcc
864 with_default_save_folder
865 with_default_legacy_postponed_folder
866 with_default_postponed_folder
867 with_default_trash_folder
868 with_default_interrupted_mail
869 with_default_dead_letter_folder
870 with_default_mail_directory
871 with_default_inbox_name
872 with_default_signature_file
873 with_default_elm_style_save
874 with_default_header_in_reply
875 with_default_old_style_reply
876 with_default_use_only_domain_name
877 with_default_save_by_sender
878 with_default_sort_key
879 with_default_addressbook_sort_rule
880 with_default_folder_sort_rule
881 with_default_saved_message_name_rule
882 with_default_fcc_rule
883 with_default_standard_printer
884 with_default_ansi_printer
885 with_default_addressbook
886 with_default_local_fullname
887 with_default_local_address
888 with_default_keyboard_lock_count
889 with_default_remote_addressbook_history
890 with_smime_public_cert_directory
891 with_smime_private_key_directory
892 with_smime_cacert_directory
893 with_default_printer
894 with_passfile
895 with_local_password_cache
896 with_local_password_cache_method
897 with_default_sshpath
898 with_default_sshcmd
899 with_ssl
900 with_ssl_dir
901 with_ssl_certs_dir
902 with_ssl_include_dir
903 with_ssl_lib_dir
904 with_krb5
905 with_krb5_dir
906 with_krb5_include_dir
907 with_krb5_lib_dir
908 with_ldap
909 with_ldap_dir
910 with_ldap_include_dir
911 with_ldap_lib_dir
912 with_smime
913 with_tcl
914 with_tcl_lib
915 with_tcl_include
916 with_supplied_regex
917 with_pthread
918 with_system_mail_directory
919 with_c_client_target
920 with_ipv6
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 LT_SYS_LIBRARY_PATH
931 CPP'
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
982 ac_prev=
983 ac_dashdash=
984 for ac_option
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
993 case $ac_option in
994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
997 esac
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1001 case $ac_dashdash$ac_option in
1003 ac_dashdash=yes ;;
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1025 -datadir | --datadir | --datadi | --datad)
1026 ac_prev=datadir ;;
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1267 -with-* | --with-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=no ;;
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318 Try \`$0 --help' for more information"
1321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 case $ac_envvar in #(
1325 '' | [0-9]* | *[!_$as_cr_alnum]* )
1326 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1327 esac
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339 esac
1340 done
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 as_fn_error $? "missing argument to $ac_option"
1347 if test -n "$ac_unrecognized_opts"; then
1348 case $enable_option_checking in
1349 no) ;;
1350 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352 esac
1355 # Check all directory arguments for consistency.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val=\$$ac_var
1362 # Remove trailing slashes.
1363 case $ac_val in
1364 */ )
1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366 eval $ac_var=\$ac_val;;
1367 esac
1368 # Be sure to have absolute directory names.
1369 case $ac_val in
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 esac
1373 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1374 done
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error $? "working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error $? "pwd does not report name of working directory"
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1424 /^X\(\/\/\)$/{
1425 s//\1/
1428 /^X\(\/\).*/{
1429 s//\1/
1432 s/.*/./; q'`
1433 srcdir=$ac_confdir
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 srcdir=..
1437 else
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1447 pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
1472 \`configure' configures alpine 2.20.999 to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1481 Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking ...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 [PREFIX]
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525 _ACEOF
1527 cat <<\_ACEOF
1529 Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534 System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 _ACEOF
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of alpine 2.20.999:";;
1543 esac
1544 cat <<\_ACEOF
1546 Optional Features:
1547 --disable-option-checking ignore unrecognized --enable/--with options
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --enable-silent-rules less verbose build output (undo: "make V=1")
1551 --disable-silent-rules verbose build output (undo: "make V=0")
1552 --enable-maintainer-mode
1553 enable make rules and dependencies not useful (and
1554 sometimes confusing) to the casual installer
1555 --enable-dependency-tracking
1556 do not reject slow dependency extractors
1557 --disable-dependency-tracking
1558 speeds up one-time build
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1564 --disable-nls do not use Native Language Support
1565 --disable-rpath do not hardcode runtime library paths
1566 --enable-dmalloc Enable dmalloc debugging
1567 --enable-osx-universal-binaries
1568 Produce universal binaries under OS X [[default=no]]
1569 --disable-debug Exclude debug messages from source
1570 --disable-optimization Exclude optimizing compiler flags
1571 --disable-mouse Disable mouse support
1572 --enable-quotas Enable disk quota checking on startup
1573 --disable-from-changing Disallow users changing From addresss
1574 --disable-background-post
1575 Disable background posting
1576 --disable-keyboard-lock Disable keyboard locking
1577 --enable-from-encoding Enable From encoding in sent messages
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1583 both]
1584 --with-aix-soname=aix|svr4|both
1585 shared library versioning (aka "SONAME") variant to
1586 provide on AIX, [default=aix].
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1589 compiler's sysroot if not specified).
1590 --with-gnu-ld assume the C compiler uses GNU ld default=no
1591 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1592 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1593 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1594 --without-libintl-prefix don't search for libintl in includedir and libdir
1595 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1596 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1597 /bin/ps auxww
1598 --with-localedir=DIR Name of gettext locale directory
1599 --with-include-path=PATHS
1600 Colon-separated list of directories used for include
1601 file search
1602 --with-lib-path=PATHS Colon-separated list of directories used for library
1603 search
1604 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1605 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1606 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1607 --with-smtp-msa-flags=FLAGS
1608 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1609 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1610 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1611 --with-password-prog=PATH
1612 Password change program (/bin/passwd)
1613 --with-simple-spellcheck=PROG
1614 Spellcheck program reads stdin, emits misspellings
1615 on stdout
1616 --with-interactive-spellcheck=PROG
1617 Interactive, filewise spell checker
1618 --with-system-pinerc=VALUE
1619 System pinerc (/usr/local/lib/pine.conf)
1620 --with-system-fixed-pinerc=VALUE
1621 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1622 --with-local-support-info=VALUE
1623 Local Support Info File (/usr/local/lib/pine.info)
1624 --with-mailcheck-interval=VALUE
1625 Specify default mail-check-interval (150)
1626 --with-checkpoint-interval=VALUE
1627 Specify default checkpoint-interval (420)
1628 --with-checkpoint-frequency=VALUE
1629 State change count before checkpoint (12)
1630 --with-display-rows=VALUE
1631 Initial rows on display (24)
1632 --with-display-columns=VALUE
1633 Initial columns on display (80)
1634 --with-max-display-rows=VALUE
1635 Maximum display rows (200)
1636 --with-max-display-columns=VALUE
1637 Maximum display columns (500)
1638 --with-fill-column=VALUE
1639 Default fill column (74)
1640 --with-max_fill-column=VALUE
1641 Maximum fill column (80)
1642 --with-debug-level=VALUE
1643 Specify default debug verbosity level (2)
1644 --with-debug-files=VALUE
1645 Specify number of debug files (4)
1646 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1647 --with-forwarded-keyword=VALUE
1648 IMAP (c-client) keyword to store forwarded status
1649 ("\$Forwarded")
1650 --with-display-overlap=VALUE
1651 Lines preserved while paging (2)
1652 --with-display-margin=VALUE
1653 Lines visible while scrolling (0)
1654 --with-default-fcc=VALUE
1655 Default sent mail folder (sent-mail)
1656 --with-default-save-folder=VALUE
1657 Default save folder (saved-messages)
1658 --with-default-legacy-postponed-folder=VALUE
1659 Pre Pine 3.90 postponed folder (postponed-mail)
1660 --with-default-postponed-folder=VALUE
1661 Default postponed folder (postponed-msgs)
1662 --with-default-trash-folder=VALUE
1663 Default Trash folder for Web Alpine (Trash)
1664 --with-default-interrupted-mail=VALUE
1665 Default folder for interrupted mail
1666 (.pine-interrupted-mail)
1667 --with-default-dead-letter-folder=VALUE
1668 Default dead letter folder (dead.letter)
1669 --with-default-mail-directory=VALUE
1670 Default mail directory (mail)
1671 --with-default-inbox-name=VALUE
1672 Default inbox name (INBOX)
1673 --with-default-signature-file=VALUE
1674 Default signature file (.signature)
1675 --with-default-elm-style-save=VALUE
1676 Default to Elm style save (no)
1677 --with-default-header-in-reply=VALUE
1678 Include header in reply (no)
1679 --with-default-old-style-reply=VALUE
1680 Default to old style reply (no)
1681 --with-default-use-only-domain-name=VALUE
1682 Default to using only the domain name (no)
1683 --with-default-save-by-sender=VALUE
1684 Default to save by sender (no)
1685 --with-default-sort-key=VALUE
1686 Default sort key (arrival)
1687 --with-default-addressbook-sort-rule=VALUE
1688 Default addressbook sort rule
1689 (fullname-with-lists-last)
1690 --with-default-folder-sort-rule=VALUE
1691 Default folder sort rule (alphabetical)
1692 --with-default-saved-message-name-rule=VALUE
1693 Default saved message name rule (default-folder)
1694 --with-default-fcc-rule=VALUE
1695 Default fcc rule (default-fcc)
1696 --with-default-standard-printer=VALUE
1697 Default standard printern (lpr)
1698 --with-default-ansi-printer=VALUE
1699 ANSI printer definition (attached-to-ansi)
1700 --with-default-addressbook=VALUE
1701 Default addressbook name (.addressbook)
1702 --with-default-local-fullname=VALUE
1703 Default local support fullname ("Local Support")
1704 --with-default-local-address=VALUE
1705 Default local support address (postmaster)
1706 --with-default-keyboard-lock-count=VALUE
1707 Default keyboard lock count (1)
1708 --with-default-remote-addressbook-history=VALUE
1709 Default address book history count (3)
1710 --with-smime-public-cert-directory=VALUE
1711 Default Public Cert Directory (.alpine-smime/public)
1712 --with-smime-private-key-directory=VALUE
1713 Default Private Key Directory
1714 (.alpine-smime/private)
1715 --with-smime-cacert-directory=VALUE
1716 Default Cert Authority Directory (.alpine-smime/ca)
1717 --with-default-printer=VALUE
1718 Default printer (ANSI_PRINTER)
1719 --with-passfile=FILENAME
1720 Password cache file (recommended when S/MIME is
1721 enabled and configured)
1722 --without-local-password-cache
1723 Disable OS-specific password cache, if supported
1724 --with-local-password-cache-method
1725 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1726 Windows=WINCRED)
1727 --with-default-sshpath=FILENAME
1728 set default value of ssh command path (defining
1729 should cause ssh to be preferred to rsh)
1730 --with-default-sshcmd=PERCENT_S_STRING
1731 set default value of ssh command string (usually "%s
1732 %s -l %s exec /etc/r%sd")
1733 --without-ssl Disable SSL support (OpenSSL)
1734 --with-ssl-dir=DIR Root of SSL lib/include path
1735 --with-ssl-certs-dir=DIR
1736 Path to SSL certificate directory
1737 --with-ssl-include-dir=DIR
1738 SSL include file path
1739 --with-ssl-lib-dir=DIR SSL library path
1740 --without-krb5 Disable Kerberos support
1741 --with-krb5-dir=DIR Root of Kerberos lib/include path
1742 --with-krb5-include-dir=DIR
1743 Kerberos include file path
1744 --with-krb5-lib-dir=DIR Kerberos library path
1745 --without-ldap Disable LDAP query support
1746 --with-ldap-dir=DIR Root of LDAP lib/include path
1747 --with-ldap-include-dir=DIR
1748 Directory containing LDAP include files
1749 --with-ldap-lib-dir=DIR LDAP library path
1750 --without-smime Disable S/MIME
1751 --without-tcl Disable TCL, thus Web Alpine support
1752 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1753 --with-tcl-include=DIR Directory containing TCL include files
1754 --with-supplied-regex Use regex library supplied with alpine
1755 --without-pthread Do NOT test for nor build with POSIX thread support
1756 --with-system-mail-directory=DIR
1757 Directory where local mail is delivered
1758 --with-c-client-target=TARGET
1759 IMAP build target (see imap/Makefile)
1760 --without-ipv6 Disable IPv6, primarily to work around resolver
1761 problems
1763 Some influential environment variables:
1764 CC C compiler command
1765 CFLAGS C compiler flags
1766 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1767 nonstandard directory <lib dir>
1768 LIBS libraries to pass to the linker, e.g. -l<library>
1769 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1770 you have headers in a nonstandard directory <include dir>
1771 LT_SYS_LIBRARY_PATH
1772 User-defined run-time library search path.
1773 CPP C preprocessor
1775 Use these variables to override the choices made by `configure' or to help
1776 it to find libraries and programs with nonstandard names/locations.
1778 Report bugs to <chappa@washington.edu>.
1779 _ACEOF
1780 ac_status=$?
1783 if test "$ac_init_help" = "recursive"; then
1784 # If there are subdirs, report their specific --help.
1785 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1786 test -d "$ac_dir" ||
1787 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1788 continue
1789 ac_builddir=.
1791 case "$ac_dir" in
1792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1795 # A ".." for each directory in $ac_dir_suffix.
1796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1797 case $ac_top_builddir_sub in
1798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800 esac ;;
1801 esac
1802 ac_abs_top_builddir=$ac_pwd
1803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1804 # for backward compatibility:
1805 ac_top_builddir=$ac_top_build_prefix
1807 case $srcdir in
1808 .) # We are building in place.
1809 ac_srcdir=.
1810 ac_top_srcdir=$ac_top_builddir_sub
1811 ac_abs_top_srcdir=$ac_pwd ;;
1812 [\\/]* | ?:[\\/]* ) # Absolute name.
1813 ac_srcdir=$srcdir$ac_dir_suffix;
1814 ac_top_srcdir=$srcdir
1815 ac_abs_top_srcdir=$srcdir ;;
1816 *) # Relative name.
1817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1818 ac_top_srcdir=$ac_top_build_prefix$srcdir
1819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1820 esac
1821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1823 cd "$ac_dir" || { ac_status=$?; continue; }
1824 # Check for guested configure.
1825 if test -f "$ac_srcdir/configure.gnu"; then
1826 echo &&
1827 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1828 elif test -f "$ac_srcdir/configure"; then
1829 echo &&
1830 $SHELL "$ac_srcdir/configure" --help=recursive
1831 else
1832 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1833 fi || ac_status=$?
1834 cd "$ac_pwd" || { ac_status=$?; break; }
1835 done
1838 test -n "$ac_init_help" && exit $ac_status
1839 if $ac_init_version; then
1840 cat <<\_ACEOF
1841 alpine configure 2.20.999
1842 generated by GNU Autoconf 2.69
1844 Copyright (C) 2012 Free Software Foundation, Inc.
1845 This configure script is free software; the Free Software Foundation
1846 gives unlimited permission to copy, distribute and modify it.
1847 _ACEOF
1848 exit
1851 ## ------------------------ ##
1852 ## Autoconf initialization. ##
1853 ## ------------------------ ##
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_link
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_cpp LINENO
1971 # ----------------------
1972 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_cpp ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_cpp conftest.$ac_ext"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1984 ac_status=$?
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } > conftest.i && {
1992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 }; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2000 ac_retval=1
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_cpp
2007 # ac_fn_c_try_run LINENO
2008 # ----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2010 # that executables *can* be run.
2011 ac_fn_c_try_run ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>&5
2022 ac_status=$?
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2025 { { case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_try") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; }; }; then :
2035 ac_retval=0
2036 else
2037 $as_echo "$as_me: program exited with status $ac_status" >&5
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=$ac_status
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2047 } # ac_fn_c_try_run
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2071 #ifdef __STDC__
2072 # include <limits.h>
2073 #else
2074 # include <assert.h>
2075 #endif
2077 #undef $2
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2082 #ifdef __cplusplus
2083 extern "C"
2084 #endif
2085 char $2 ();
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2090 choke me
2091 #endif
2094 main ()
2096 return $2 ();
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_link "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2117 # -------------------------------------------------------
2118 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2119 # the include files in INCLUDES and setting the cache variable VAR
2120 # accordingly.
2121 ac_fn_c_check_header_mongrel ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if eval \${$3+:} false; then :
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 else
2134 # Is the header compilable?
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2136 $as_echo_n "checking $2 usability... " >&6; }
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2140 #include <$2>
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_header_compiler=yes
2144 else
2145 ac_header_compiler=no
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2149 $as_echo "$ac_header_compiler" >&6; }
2151 # Is the header present?
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2153 $as_echo_n "checking $2 presence... " >&6; }
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 #include <$2>
2157 _ACEOF
2158 if ac_fn_c_try_cpp "$LINENO"; then :
2159 ac_header_preproc=yes
2160 else
2161 ac_header_preproc=no
2163 rm -f conftest.err conftest.i conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2165 $as_echo "$ac_header_preproc" >&6; }
2167 # So? What about this header?
2168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2169 yes:no: )
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2171 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2173 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 no:yes:* )
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2177 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2179 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2181 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2183 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2185 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186 ( $as_echo "## ------------------------------------ ##
2187 ## Report this to chappa@washington.edu ##
2188 ## ------------------------------------ ##"
2189 ) | sed "s/^/$as_me: WARNING: /" >&2
2191 esac
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 eval "$3=\$ac_header_compiler"
2199 eval ac_res=\$$3
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 } # ac_fn_c_check_header_mongrel
2207 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2208 # -------------------------------------------
2209 # Tests whether TYPE exists after having included INCLUDES, setting cache
2210 # variable VAR accordingly.
2211 ac_fn_c_check_type ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217 $as_echo_n "(cached) " >&6
2218 else
2219 eval "$3=no"
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 main ()
2226 if (sizeof ($2))
2227 return 0;
2229 return 0;
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2237 main ()
2239 if (sizeof (($2)))
2240 return 0;
2242 return 0;
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2247 else
2248 eval "$3=yes"
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_check_type
2261 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2262 # --------------------------------------------
2263 # Tries to find the compile-time value of EXPR in a program that includes
2264 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2265 # computed
2266 ac_fn_c_compute_int ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if test "$cross_compiling" = yes; then
2270 # Depending upon the size, compute the lo and hi bounds.
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 static int test_array [1 - 2 * !(($2) >= 0)];
2278 test_array [0] = 0;
2279 return test_array [0];
2282 return 0;
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 ac_lo=0 ac_mid=0
2287 while :; do
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2292 main ()
2294 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 test_array [0] = 0;
2296 return test_array [0];
2299 return 0;
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 ac_hi=$ac_mid; break
2304 else
2305 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2306 if test $ac_lo -le $ac_mid; then
2307 ac_lo= ac_hi=
2308 break
2310 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 done
2314 else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 main ()
2321 static int test_array [1 - 2 * !(($2) < 0)];
2322 test_array [0] = 0;
2323 return test_array [0];
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_hi=-1 ac_mid=-1
2331 while :; do
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2336 main ()
2338 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2339 test_array [0] = 0;
2340 return test_array [0];
2343 return 0;
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"; then :
2347 ac_lo=$ac_mid; break
2348 else
2349 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2350 if test $ac_mid -le $ac_hi; then
2351 ac_lo= ac_hi=
2352 break
2354 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 done
2358 else
2359 ac_lo= ac_hi=
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 # Binary search between lo and hi bounds.
2365 while test "x$ac_lo" != "x$ac_hi"; do
2366 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2374 test_array [0] = 0;
2375 return test_array [0];
2378 return 0;
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 ac_hi=$ac_mid
2383 else
2384 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 case $ac_lo in #((
2389 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2390 '') ac_retval=1 ;;
2391 esac
2392 else
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2396 static long int longval () { return $2; }
2397 static unsigned long int ulongval () { return $2; }
2398 #include <stdio.h>
2399 #include <stdlib.h>
2401 main ()
2404 FILE *f = fopen ("conftest.val", "w");
2405 if (! f)
2406 return 1;
2407 if (($2) < 0)
2409 long int i = longval ();
2410 if (i != ($2))
2411 return 1;
2412 fprintf (f, "%ld", i);
2414 else
2416 unsigned long int i = ulongval ();
2417 if (i != ($2))
2418 return 1;
2419 fprintf (f, "%lu", i);
2421 /* Do not output a trailing newline, as this causes \r\n confusion
2422 on some platforms. */
2423 return ferror (f) || fclose (f) != 0;
2426 return 0;
2428 _ACEOF
2429 if ac_fn_c_try_run "$LINENO"; then :
2430 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2431 else
2432 ac_retval=1
2434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2435 conftest.$ac_objext conftest.beam conftest.$ac_ext
2436 rm -f conftest.val
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_c_compute_int
2443 cat >config.log <<_ACEOF
2444 This file contains any messages produced by compilers while
2445 running configure, to aid debugging if configure makes a mistake.
2447 It was created by alpine $as_me 2.20.999, which was
2448 generated by GNU Autoconf 2.69. Invocation command line was
2450 $ $0 $@
2452 _ACEOF
2453 exec 5>>config.log
2455 cat <<_ASUNAME
2456 ## --------- ##
2457 ## Platform. ##
2458 ## --------- ##
2460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2477 _ASUNAME
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 $as_echo "PATH: $as_dir"
2485 done
2486 IFS=$as_save_IFS
2488 } >&5
2490 cat >&5 <<_ACEOF
2493 ## ----------- ##
2494 ## Core tests. ##
2495 ## ----------- ##
2497 _ACEOF
2500 # Keep a trace of the command line.
2501 # Strip out --no-create and --no-recursion so they do not pile up.
2502 # Strip out --silent because we don't want to record it for future runs.
2503 # Also quote any args containing shell meta-characters.
2504 # Make two passes to allow for proper duplicate-argument suppression.
2505 ac_configure_args=
2506 ac_configure_args0=
2507 ac_configure_args1=
2508 ac_must_keep_next=false
2509 for ac_pass in 1 2
2511 for ac_arg
2513 case $ac_arg in
2514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2516 | -silent | --silent | --silen | --sile | --sil)
2517 continue ;;
2518 *\'*)
2519 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2520 esac
2521 case $ac_pass in
2522 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2524 as_fn_append ac_configure_args1 " '$ac_arg'"
2525 if test $ac_must_keep_next = true; then
2526 ac_must_keep_next=false # Got value, back to normal.
2527 else
2528 case $ac_arg in
2529 *=* | --config-cache | -C | -disable-* | --disable-* \
2530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2532 | -with-* | --with-* | -without-* | --without-* | --x)
2533 case "$ac_configure_args0 " in
2534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2535 esac
2537 -* ) ac_must_keep_next=true ;;
2538 esac
2540 as_fn_append ac_configure_args " '$ac_arg'"
2542 esac
2543 done
2544 done
2545 { ac_configure_args0=; unset ac_configure_args0;}
2546 { ac_configure_args1=; unset ac_configure_args1;}
2548 # When interrupted or exit'd, cleanup temporary files, and complete
2549 # config.log. We remove comments because anyway the quotes in there
2550 # would cause problems or look ugly.
2551 # WARNING: Use '\'' to represent an apostrophe within the trap.
2552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2553 trap 'exit_status=$?
2554 # Save into config.log some information that might help in debugging.
2556 echo
2558 $as_echo "## ---------------- ##
2559 ## Cache variables. ##
2560 ## ---------------- ##"
2561 echo
2562 # The following way of writing the cache mishandles newlines in values,
2564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2565 eval ac_val=\$$ac_var
2566 case $ac_val in #(
2567 *${as_nl}*)
2568 case $ac_var in #(
2569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2571 esac
2572 case $ac_var in #(
2573 _ | IFS | as_nl) ;; #(
2574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2575 *) { eval $ac_var=; unset $ac_var;} ;;
2576 esac ;;
2577 esac
2578 done
2579 (set) 2>&1 |
2580 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2581 *${as_nl}ac_space=\ *)
2582 sed -n \
2583 "s/'\''/'\''\\\\'\'''\''/g;
2584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2585 ;; #(
2587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589 esac |
2590 sort
2592 echo
2594 $as_echo "## ----------------- ##
2595 ## Output variables. ##
2596 ## ----------------- ##"
2597 echo
2598 for ac_var in $ac_subst_vars
2600 eval ac_val=\$$ac_var
2601 case $ac_val in
2602 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2603 esac
2604 $as_echo "$ac_var='\''$ac_val'\''"
2605 done | sort
2606 echo
2608 if test -n "$ac_subst_files"; then
2609 $as_echo "## ------------------- ##
2610 ## File substitutions. ##
2611 ## ------------------- ##"
2612 echo
2613 for ac_var in $ac_subst_files
2615 eval ac_val=\$$ac_var
2616 case $ac_val in
2617 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2618 esac
2619 $as_echo "$ac_var='\''$ac_val'\''"
2620 done | sort
2621 echo
2624 if test -s confdefs.h; then
2625 $as_echo "## ----------- ##
2626 ## confdefs.h. ##
2627 ## ----------- ##"
2628 echo
2629 cat confdefs.h
2630 echo
2632 test "$ac_signal" != 0 &&
2633 $as_echo "$as_me: caught signal $ac_signal"
2634 $as_echo "$as_me: exit $exit_status"
2635 } >&5
2636 rm -f core *.core core.conftest.* &&
2637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2638 exit $exit_status
2640 for ac_signal in 1 2 13 15; do
2641 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2642 done
2643 ac_signal=0
2645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2646 rm -f -r conftest* confdefs.h
2648 $as_echo "/* confdefs.h */" > confdefs.h
2650 # Predefined preprocessor variables.
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_NAME "$PACKAGE_NAME"
2654 _ACEOF
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2658 _ACEOF
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2662 _ACEOF
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_STRING "$PACKAGE_STRING"
2666 _ACEOF
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2670 _ACEOF
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_URL "$PACKAGE_URL"
2674 _ACEOF
2677 # Let the site file select an alternate cache file if it wants to.
2678 # Prefer an explicitly selected file to automatically selected ones.
2679 ac_site_file1=NONE
2680 ac_site_file2=NONE
2681 if test -n "$CONFIG_SITE"; then
2682 # We do not want a PATH search for config.site.
2683 case $CONFIG_SITE in #((
2684 -*) ac_site_file1=./$CONFIG_SITE;;
2685 */*) ac_site_file1=$CONFIG_SITE;;
2686 *) ac_site_file1=./$CONFIG_SITE;;
2687 esac
2688 elif test "x$prefix" != xNONE; then
2689 ac_site_file1=$prefix/share/config.site
2690 ac_site_file2=$prefix/etc/config.site
2691 else
2692 ac_site_file1=$ac_default_prefix/share/config.site
2693 ac_site_file2=$ac_default_prefix/etc/config.site
2695 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2697 test "x$ac_site_file" = xNONE && continue
2698 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2700 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2701 sed 's/^/| /' "$ac_site_file" >&5
2702 . "$ac_site_file" \
2703 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error $? "failed to load site script $ac_site_file
2706 See \`config.log' for more details" "$LINENO" 5; }
2708 done
2710 if test -r "$cache_file"; then
2711 # Some versions of bash will fail to source /dev/null (special files
2712 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2713 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2715 $as_echo "$as_me: loading cache $cache_file" >&6;}
2716 case $cache_file in
2717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2718 *) . "./$cache_file";;
2719 esac
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2723 $as_echo "$as_me: creating cache $cache_file" >&6;}
2724 >$cache_file
2727 gt_needs="$gt_needs "
2728 # Check that the precious variables saved in the cache have kept the same
2729 # value.
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
2736 case $ac_old_set,$ac_new_set in
2737 set,)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2741 ,set)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,);;
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
2748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x $ac_old_val`
2750 ac_new_val_w=`echo x $ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754 ac_cache_corrupted=:
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2764 fi;;
2765 esac
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2768 case $ac_new_val in
2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 *) ac_arg=$ac_var=$ac_new_val ;;
2771 esac
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2775 esac
2777 done
2778 if $ac_cache_corrupted; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_config_headers="$ac_config_headers include/config.h"
2801 am__api_version='1.15'
2803 ac_aux_dir=
2804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2805 if test -f "$ac_dir/install-sh"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/install-sh -c"
2808 break
2809 elif test -f "$ac_dir/install.sh"; then
2810 ac_aux_dir=$ac_dir
2811 ac_install_sh="$ac_aux_dir/install.sh -c"
2812 break
2813 elif test -f "$ac_dir/shtool"; then
2814 ac_aux_dir=$ac_dir
2815 ac_install_sh="$ac_aux_dir/shtool install -c"
2816 break
2818 done
2819 if test -z "$ac_aux_dir"; then
2820 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2823 # These three variables are undocumented and unsupported,
2824 # and are intended to be withdrawn in a future Autoconf release.
2825 # They can cause serious problems if a builder's source tree is in a directory
2826 # whose full name contains unusual characters.
2827 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2828 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2829 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2832 # Find a good install program. We prefer a C program (faster),
2833 # so one script is as good as another. But avoid the broken or
2834 # incompatible versions:
2835 # SysV /etc/install, /usr/sbin/install
2836 # SunOS /usr/etc/install
2837 # IRIX /sbin/install
2838 # AIX /bin/install
2839 # AmigaOS /C/install, which installs bootblocks on floppy discs
2840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2843 # OS/2's system install, which has a completely different semantic
2844 # ./install, which can be erroneously created by make from ./install.sh.
2845 # Reject install programs that cannot install multiple files.
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2848 if test -z "$INSTALL"; then
2849 if ${ac_cv_path_install+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 # Account for people who put trailing slashes in PATH elements.
2858 case $as_dir/ in #((
2859 ./ | .// | /[cC]/* | \
2860 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2861 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2862 /usr/ucb/* ) ;;
2864 # OSF1 and SCO ODT 3.0 have their own names for install.
2865 # Don't use installbsd from OSF since it installs stuff as root
2866 # by default.
2867 for ac_prog in ginstall scoinst install; do
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2870 if test $ac_prog = install &&
2871 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # AIX install. It has an incompatible calling convention.
2874 elif test $ac_prog = install &&
2875 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876 # program-specific install script used by HP pwplus--don't use.
2878 else
2879 rm -rf conftest.one conftest.two conftest.dir
2880 echo one > conftest.one
2881 echo two > conftest.two
2882 mkdir conftest.dir
2883 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2884 test -s conftest.one && test -s conftest.two &&
2885 test -s conftest.dir/conftest.one &&
2886 test -s conftest.dir/conftest.two
2887 then
2888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2889 break 3
2893 done
2894 done
2896 esac
2898 done
2899 IFS=$as_save_IFS
2901 rm -rf conftest.one conftest.two conftest.dir
2904 if test "${ac_cv_path_install+set}" = set; then
2905 INSTALL=$ac_cv_path_install
2906 else
2907 # As a last resort, use the slow shell script. Don't cache a
2908 # value for INSTALL within a source directory, because that will
2909 # break other packages using the cache if that directory is
2910 # removed, or if the value is a relative name.
2911 INSTALL=$ac_install_sh
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2915 $as_echo "$INSTALL" >&6; }
2917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2918 # It thinks the first close brace ends the variable substitution.
2919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2926 $as_echo_n "checking whether build environment is sane... " >&6; }
2927 # Reject unsafe characters in $srcdir or the absolute working directory
2928 # name. Accept space and tab only in the latter.
2929 am_lf='
2931 case `pwd` in
2932 *[\\\"\#\$\&\'\`$am_lf]*)
2933 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2934 esac
2935 case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2937 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2938 esac
2940 # Do 'set' in a subshell so we don't clobber the current shell's
2941 # arguments. Must try -L first in case configure is actually a
2942 # symlink; some systems play weird games with the mod time of symlinks
2943 # (eg FreeBSD returns the mod time of the symlink's containing
2944 # directory).
2945 if (
2946 am_has_slept=no
2947 for am_try in 1 2; do
2948 echo "timestamp, slept: $am_has_slept" > conftest.file
2949 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2950 if test "$*" = "X"; then
2951 # -L didn't work.
2952 set X `ls -t "$srcdir/configure" conftest.file`
2954 if test "$*" != "X $srcdir/configure conftest.file" \
2955 && test "$*" != "X conftest.file $srcdir/configure"; then
2957 # If neither matched, then we have a broken ls. This can happen
2958 # if, for instance, CONFIG_SHELL is bash and it inherits a
2959 # broken ls alias from the environment. This has actually
2960 # happened. Such a system could not be considered "sane".
2961 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2962 alias in your environment" "$LINENO" 5
2964 if test "$2" = conftest.file || test $am_try -eq 2; then
2965 break
2967 # Just in case.
2968 sleep 1
2969 am_has_slept=yes
2970 done
2971 test "$2" = conftest.file
2973 then
2974 # Ok.
2976 else
2977 as_fn_error $? "newly created file is older than distributed files!
2978 Check your system clock" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 # If we didn't sleep, we still need to ensure time stamps of config.status and
2983 # generated files are strictly newer.
2984 am_sleep_pid=
2985 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2986 ( sleep 1 ) &
2987 am_sleep_pid=$!
2990 rm -f conftest.file
2992 test "$program_prefix" != NONE &&
2993 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2994 # Use a double $ so make ignores it.
2995 test "$program_suffix" != NONE &&
2996 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2997 # Double any \ or $.
2998 # By default was `s,x,x', remove it if useless.
2999 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3000 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3002 # Expand $ac_aux_dir to an absolute path.
3003 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3005 if test x"${MISSING+set}" != xset; then
3006 case $am_aux_dir in
3007 *\ * | *\ *)
3008 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3010 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3011 esac
3013 # Use eval to expand $SHELL
3014 if eval "$MISSING --is-lightweight"; then
3015 am_missing_run="$MISSING "
3016 else
3017 am_missing_run=
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3019 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3022 if test x"${install_sh+set}" != xset; then
3023 case $am_aux_dir in
3024 *\ * | *\ *)
3025 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3027 install_sh="\${SHELL} $am_aux_dir/install-sh"
3028 esac
3031 # Installed binaries are usually stripped using 'strip' when the user
3032 # run "make install-strip". However 'strip' might not be the right
3033 # tool to use in cross-compilation environments, therefore Automake
3034 # will honor the 'STRIP' environment variable to overrule this program.
3035 if test "$cross_compiling" != no; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}strip; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_STRIP+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$STRIP"; then
3045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3058 done
3059 done
3060 IFS=$as_save_IFS
3064 STRIP=$ac_cv_prog_STRIP
3065 if test -n "$STRIP"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3067 $as_echo "$STRIP" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$ac_cv_prog_STRIP"; then
3076 ac_ct_STRIP=$STRIP
3077 # Extract the first word of "strip", so it can be a program name with args.
3078 set dummy strip; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$ac_ct_STRIP"; then
3085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_STRIP="strip"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3098 done
3099 done
3100 IFS=$as_save_IFS
3104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3105 if test -n "$ac_ct_STRIP"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3107 $as_echo "$ac_ct_STRIP" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3113 if test "x$ac_ct_STRIP" = x; then
3114 STRIP=":"
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 STRIP=$ac_ct_STRIP
3124 else
3125 STRIP="$ac_cv_prog_STRIP"
3129 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3132 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3133 if test -z "$MKDIR_P"; then
3134 if ${ac_cv_path_mkdir+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_prog in mkdir gmkdir; do
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3146 'mkdir (GNU coreutils) '* | \
3147 'mkdir (coreutils) '* | \
3148 'mkdir (fileutils) '4.1*)
3149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3150 break 3;;
3151 esac
3152 done
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 test -d ./--version && rmdir ./--version
3160 if test "${ac_cv_path_mkdir+set}" = set; then
3161 MKDIR_P="$ac_cv_path_mkdir -p"
3162 else
3163 # As a last resort, use the slow shell script. Don't cache a
3164 # value for MKDIR_P within a source directory, because that will
3165 # break other packages using the cache if that directory is
3166 # removed, or if the value is a relative name.
3167 MKDIR_P="$ac_install_sh -d"
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3171 $as_echo "$MKDIR_P" >&6; }
3173 for ac_prog in gawk mawk nawk awk
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_AWK+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$AWK"; then
3183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_AWK="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 AWK=$ac_cv_prog_AWK
3203 if test -n "$AWK"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3205 $as_echo "$AWK" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$AWK" && break
3213 done
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3217 set x ${MAKE-make}
3218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3219 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat >conftest.make <<\_ACEOF
3223 SHELL = /bin/sh
3224 all:
3225 @echo '@@@%%%=$(MAKE)=@@@%%%'
3226 _ACEOF
3227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3229 *@@@%%%=?*=@@@%%%*)
3230 eval ac_cv_prog_make_${ac_make}_set=yes;;
3232 eval ac_cv_prog_make_${ac_make}_set=no;;
3233 esac
3234 rm -f conftest.make
3236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3239 SET_MAKE=
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 SET_MAKE="MAKE=${MAKE-make}"
3246 rm -rf .tst 2>/dev/null
3247 mkdir .tst 2>/dev/null
3248 if test -d .tst; then
3249 am__leading_dot=.
3250 else
3251 am__leading_dot=_
3253 rmdir .tst 2>/dev/null
3255 # Check whether --enable-silent-rules was given.
3256 if test "${enable_silent_rules+set}" = set; then :
3257 enableval=$enable_silent_rules;
3260 case $enable_silent_rules in # (((
3261 yes) AM_DEFAULT_VERBOSITY=0;;
3262 no) AM_DEFAULT_VERBOSITY=1;;
3263 *) AM_DEFAULT_VERBOSITY=1;;
3264 esac
3265 am_make=${MAKE-make}
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3268 if ${am_cv_make_support_nested_variables+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if $as_echo 'TRUE=$(BAR$(V))
3272 BAR0=false
3273 BAR1=true
3275 am__doit:
3276 @$(TRUE)
3277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3278 am_cv_make_support_nested_variables=yes
3279 else
3280 am_cv_make_support_nested_variables=no
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3285 if test $am_cv_make_support_nested_variables = yes; then
3286 AM_V='$(V)'
3287 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3288 else
3289 AM_V=$AM_DEFAULT_VERBOSITY
3290 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3292 AM_BACKSLASH='\'
3294 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3295 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3296 # is not polluted with repeated "-I."
3297 am__isrc=' -I$(srcdir)'
3298 # test to see if srcdir already configured
3299 if test -f $srcdir/config.status; then
3300 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3304 # test whether we have cygpath
3305 if test -z "$CYGPATH_W"; then
3306 if (cygpath --version) >/dev/null 2>/dev/null; then
3307 CYGPATH_W='cygpath -w'
3308 else
3309 CYGPATH_W=echo
3314 # Define the identity of the package.
3315 PACKAGE='alpine'
3316 VERSION='2.20.999'
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE "$PACKAGE"
3321 _ACEOF
3324 cat >>confdefs.h <<_ACEOF
3325 #define VERSION "$VERSION"
3326 _ACEOF
3328 # Some tools Automake needs.
3330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344 # For better backward compatibility. To be removed once Automake 1.9.x
3345 # dies out for good. For more background, see:
3346 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3347 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3348 mkdir_p='$(MKDIR_P)'
3350 # We need awk for the "check" target (and possibly the TAP driver). The
3351 # system "awk" is bad on some platforms.
3352 # Always define AMTAR for backward compatibility. Yes, it's still used
3353 # in the wild :-( We should find a proper way to deprecate it ...
3354 AMTAR='$${TAR-tar}'
3357 # We'll loop over all known methods to create a tar archive until one works.
3358 _am_tools='gnutar pax cpio none'
3360 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3367 # POSIX will say in a future version that running "rm -f" with no argument
3368 # is OK; and we want to be able to make that assumption in our Makefile
3369 # recipes. So use an aggressive probe to check that the usage we want is
3370 # actually supported "in the wild" to an acceptable degree.
3371 # See automake bug#10828.
3372 # To make any issue more visible, cause the running configure to be aborted
3373 # by default if the 'rm' program in use doesn't match our expectations; the
3374 # user can still override this though.
3375 if rm -f && rm -fr && rm -rf; then : OK; else
3376 cat >&2 <<'END'
3377 Oops!
3379 Your 'rm' program seems unable to run without file operands specified
3380 on the command line, even when the '-f' option is present. This is contrary
3381 to the behaviour of most rm programs out there, and not conforming with
3382 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3384 Please tell bug-automake@gnu.org about your system, including the value
3385 of your $PATH and any error possibly output before this message. This
3386 can help us improve future automake versions.
3389 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3390 echo 'Configuration will proceed anyway, since you have set the' >&2
3391 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3392 echo >&2
3393 else
3394 cat >&2 <<'END'
3395 Aborting the configuration process, to ensure you take notice of the issue.
3397 You can download and install GNU coreutils to get an 'rm' implementation
3398 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3400 If you want to complete the configuration process using your problematic
3401 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3402 to "yes", and re-run configure.
3405 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3416 else
3417 USE_MAINTAINER_MODE=no
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3425 else
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3430 MAINT=$MAINTAINER_MODE_TRUE
3434 # Make sure we can run config.sub.
3435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3436 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3439 $as_echo_n "checking build system type... " >&6; }
3440 if ${ac_cv_build+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_build_alias=$build_alias
3444 test "x$ac_build_alias" = x &&
3445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3446 test "x$ac_build_alias" = x &&
3447 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3453 $as_echo "$ac_cv_build" >&6; }
3454 case $ac_cv_build in
3455 *-*-*) ;;
3456 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3457 esac
3458 build=$ac_cv_build
3459 ac_save_IFS=$IFS; IFS='-'
3460 set x $ac_cv_build
3461 shift
3462 build_cpu=$1
3463 build_vendor=$2
3464 shift; shift
3465 # Remember, the first character of IFS is used to create $*,
3466 # except with old shells:
3467 build_os=$*
3468 IFS=$ac_save_IFS
3469 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3473 $as_echo_n "checking host system type... " >&6; }
3474 if ${ac_cv_host+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test "x$host_alias" = x; then
3478 ac_cv_host=$ac_cv_build
3479 else
3480 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3486 $as_echo "$ac_cv_host" >&6; }
3487 case $ac_cv_host in
3488 *-*-*) ;;
3489 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3490 esac
3491 host=$ac_cv_host
3492 ac_save_IFS=$IFS; IFS='-'
3493 set x $ac_cv_host
3494 shift
3495 host_cpu=$1
3496 host_vendor=$2
3497 shift; shift
3498 # Remember, the first character of IFS is used to create $*,
3499 # except with old shells:
3500 host_os=$*
3501 IFS=$ac_save_IFS
3502 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3514 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3516 # start out with intent to build Web Alpine
3517 WEB_BUILD=web/src/alpined.d
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 if test -n "$ac_tool_prefix"; then
3526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3564 if test -z "$ac_cv_prog_CC"; then
3565 ac_ct_CC=$CC
3566 # Extract the first word of "gcc", so it can be a program name with args.
3567 set dummy gcc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$ac_ct_CC"; then
3574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_ac_ct_CC="gcc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594 if test -n "$ac_ct_CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3596 $as_echo "$ac_ct_CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3602 if test "x$ac_ct_CC" = x; then
3603 CC=""
3604 else
3605 case $cross_compiling:$ac_tool_warned in
3606 yes:)
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3610 esac
3611 CC=$ac_ct_CC
3613 else
3614 CC="$ac_cv_prog_CC"
3617 if test -z "$CC"; then
3618 if test -n "$ac_tool_prefix"; then
3619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3620 set dummy ${ac_tool_prefix}cc; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}cc"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3640 done
3641 done
3642 IFS=$as_save_IFS
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3658 if test -z "$CC"; then
3659 # Extract the first word of "cc", so it can be a program name with args.
3660 set dummy cc; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if ${ac_cv_prog_CC+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$CC"; then
3667 ac_cv_prog_CC="$CC" # Let the user override the test.
3668 else
3669 ac_prog_rejected=no
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3678 ac_prog_rejected=yes
3679 continue
3681 ac_cv_prog_CC="cc"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3689 if test $ac_prog_rejected = yes; then
3690 # We found a bogon in the path, so make sure we never use it.
3691 set dummy $ac_cv_prog_CC
3692 shift
3693 if test $# != 0; then
3694 # We chose a different compiler from the bogus one.
3695 # However, it has the same basename, so the bogon will be chosen
3696 # first if we set CC to just the basename; use the full file name.
3697 shift
3698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3703 CC=$ac_cv_prog_CC
3704 if test -n "$CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3706 $as_echo "$CC" >&6; }
3707 else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 for ac_prog in cl.exe
3718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_CC+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3741 IFS=$as_save_IFS
3745 CC=$ac_cv_prog_CC
3746 if test -n "$CC"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748 $as_echo "$CC" >&6; }
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$CC" && break
3756 done
3758 if test -z "$CC"; then
3759 ac_ct_CC=$CC
3760 for ac_prog in cl.exe
3762 # Extract the first word of "$ac_prog", so it can be a program name with args.
3763 set dummy $ac_prog; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$ac_ct_CC"; then
3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_CC="$ac_prog"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790 if test -n "$ac_ct_CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792 $as_echo "$ac_ct_CC" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3799 test -n "$ac_ct_CC" && break
3800 done
3802 if test "x$ac_ct_CC" = x; then
3803 CC=""
3804 else
3805 case $cross_compiling:$ac_tool_warned in
3806 yes:)
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809 ac_tool_warned=yes ;;
3810 esac
3811 CC=$ac_ct_CC
3818 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "no acceptable C compiler found in \$PATH
3821 See \`config.log' for more details" "$LINENO" 5; }
3823 # Provide some information about the compiler.
3824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3825 set X $ac_compile
3826 ac_compiler=$2
3827 for ac_option in --version -v -V -qversion; do
3828 { { ac_try="$ac_compiler $ac_option >&5"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3836 ac_status=$?
3837 if test -s conftest.err; then
3838 sed '10a\
3839 ... rest of stderr output deleted ...
3840 10q' conftest.err >conftest.er1
3841 cat conftest.er1 >&5
3843 rm -f conftest.er1 conftest.err
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }
3846 done
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 main ()
3856 return 0;
3858 _ACEOF
3859 ac_clean_files_save=$ac_clean_files
3860 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3861 # Try to create an executable without -o first, disregard a.out.
3862 # It will help us diagnose broken compilers, and finding out an intuition
3863 # of exeext.
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3865 $as_echo_n "checking whether the C compiler works... " >&6; }
3866 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3868 # The possible output files:
3869 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3871 ac_rmfiles=
3872 for ac_file in $ac_files
3874 case $ac_file in
3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3877 esac
3878 done
3879 rm -f $ac_rmfiles
3881 if { { ac_try="$ac_link_default"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link_default") 2>&5
3889 ac_status=$?
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3895 # so that the user can short-circuit this test for compilers unknown to
3896 # Autoconf.
3897 for ac_file in $ac_files ''
3899 test -f "$ac_file" || continue
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3903 [ab].out )
3904 # We found the default executable, but exeext='' is most
3905 # certainly right.
3906 break;;
3907 *.* )
3908 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3909 then :; else
3910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 # We set ac_cv_exeext here because the later test for it is not
3913 # safe: cross compilers may not add the suffix if given an `-o'
3914 # argument, so we may need to know it at that point already.
3915 # Even if this section looks crufty: it has the advantage of
3916 # actually working.
3917 break;;
3919 break;;
3920 esac
3921 done
3922 test "$ac_cv_exeext" = no && ac_cv_exeext=
3924 else
3925 ac_file=''
3927 if test -z "$ac_file"; then :
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3930 $as_echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error 77 "C compiler cannot create executables
3936 See \`config.log' for more details" "$LINENO" 5; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3942 $as_echo_n "checking for C compiler default output file name... " >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3944 $as_echo "$ac_file" >&6; }
3945 ac_exeext=$ac_cv_exeext
3947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3948 ac_clean_files=$ac_clean_files_save
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950 $as_echo_n "checking for suffix of executables... " >&6; }
3951 if { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then :
3962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3964 # work properly (i.e., refer to `conftest.exe'), while it won't with
3965 # `rm'.
3966 for ac_file in conftest.exe conftest conftest.*; do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 break;;
3972 * ) break;;
3973 esac
3974 done
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3979 See \`config.log' for more details" "$LINENO" 5; }
3981 rm -f conftest conftest$ac_cv_exeext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983 $as_echo "$ac_cv_exeext" >&6; }
3985 rm -f conftest.$ac_ext
3986 EXEEXT=$ac_cv_exeext
3987 ac_exeext=$EXEEXT
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <stdio.h>
3992 main ()
3994 FILE *f = fopen ("conftest.out", "w");
3995 return ferror (f) || fclose (f) != 0;
3998 return 0;
4000 _ACEOF
4001 ac_clean_files="$ac_clean_files conftest.out"
4002 # Check that the compiler produces executables we can run. If not, either
4003 # the compiler is broken, or we cross compile.
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4005 $as_echo_n "checking whether we are cross compiling... " >&6; }
4006 if test "$cross_compiling" != yes; then
4007 { { ac_try="$ac_link"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_link") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }
4018 if { ac_try='./conftest$ac_cv_exeext'
4019 { { case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_try") 2>&5
4026 ac_status=$?
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }; }; then
4029 cross_compiling=no
4030 else
4031 if test "$cross_compiling" = maybe; then
4032 cross_compiling=yes
4033 else
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot run C compiled programs.
4037 If you meant to cross compile, use \`--host'.
4038 See \`config.log' for more details" "$LINENO" 5; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4043 $as_echo "$cross_compiling" >&6; }
4045 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4046 ac_clean_files=$ac_clean_files_save
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4048 $as_echo_n "checking for suffix of object files... " >&6; }
4049 if ${ac_cv_objext+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 main ()
4060 return 0;
4062 _ACEOF
4063 rm -f conftest.o conftest.obj
4064 if { { ac_try="$ac_compile"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compile") 2>&5
4072 ac_status=$?
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }; then :
4075 for ac_file in conftest.o conftest.obj conftest.*; do
4076 test -f "$ac_file" || continue;
4077 case $ac_file in
4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4080 break;;
4081 esac
4082 done
4083 else
4084 $as_echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $? "cannot compute suffix of object files: cannot compile
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4095 $as_echo "$ac_cv_objext" >&6; }
4096 OBJEXT=$ac_cv_objext
4097 ac_objext=$OBJEXT
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4099 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4100 if ${ac_cv_c_compiler_gnu+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4109 #ifndef __GNUC__
4110 choke me
4111 #endif
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_compiler_gnu=yes
4119 else
4120 ac_compiler_gnu=no
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4128 if test $ac_compiler_gnu = yes; then
4129 GCC=yes
4130 else
4131 GCC=
4133 ac_test_CFLAGS=${CFLAGS+set}
4134 ac_save_CFLAGS=$CFLAGS
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4137 if ${ac_cv_prog_cc_g+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 ac_save_c_werror_flag=$ac_c_werror_flag
4141 ac_c_werror_flag=yes
4142 ac_cv_prog_cc_g=no
4143 CFLAGS="-g"
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4148 main ()
4152 return 0;
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_prog_cc_g=yes
4157 else
4158 CFLAGS=""
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4172 else
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_prog_cc_g=yes
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4197 $as_echo "$ac_cv_prog_cc_g" >&6; }
4198 if test "$ac_test_CFLAGS" = set; then
4199 CFLAGS=$ac_save_CFLAGS
4200 elif test $ac_cv_prog_cc_g = yes; then
4201 if test "$GCC" = yes; then
4202 CFLAGS="-g -O2"
4203 else
4204 CFLAGS="-g"
4206 else
4207 if test "$GCC" = yes; then
4208 CFLAGS="-O2"
4209 else
4210 CFLAGS=
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4214 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4215 if ${ac_cv_prog_cc_c89+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 ac_cv_prog_cc_c89=no
4219 ac_save_CC=$CC
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <stdarg.h>
4223 #include <stdio.h>
4224 struct stat;
4225 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4226 struct buf { int x; };
4227 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4228 static char *e (p, i)
4229 char **p;
4230 int i;
4232 return p[i];
4234 static char *f (char * (*g) (char **, int), char **p, ...)
4236 char *s;
4237 va_list v;
4238 va_start (v,p);
4239 s = g (p, va_arg (v,int));
4240 va_end (v);
4241 return s;
4244 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4245 function prototypes and stuff, but not '\xHH' hex character constants.
4246 These don't provoke an error unfortunately, instead are silently treated
4247 as 'x'. The following induces an error, until -std is added to get
4248 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4249 array size at least. It's necessary to write '\x00'==0 to get something
4250 that's true only with -std. */
4251 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4253 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4254 inside strings and character constants. */
4255 #define FOO(x) 'x'
4256 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4258 int test (int i, double x);
4259 struct s1 {int (*f) (int a);};
4260 struct s2 {int (*f) (double a);};
4261 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4262 int argc;
4263 char **argv;
4265 main ()
4267 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4269 return 0;
4271 _ACEOF
4272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4273 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4275 CC="$ac_save_CC $ac_arg"
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_prog_cc_c89=$ac_arg
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4281 done
4282 rm -f conftest.$ac_ext
4283 CC=$ac_save_CC
4286 # AC_CACHE_VAL
4287 case "x$ac_cv_prog_cc_c89" in
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4291 xno)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298 esac
4299 if test "x$ac_cv_prog_cc_c89" != xno; then :
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4315 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4316 if ${am_cv_prog_cc_c_o+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4323 main ()
4327 return 0;
4329 _ACEOF
4330 # Make sure it works both with $CC and with simple cc.
4331 # Following AC_PROG_CC_C_O, we do the test twice because some
4332 # compilers refuse to overwrite an existing .o file with -o,
4333 # though they will create one.
4334 am_cv_prog_cc_c_o=yes
4335 for am_i in 1 2; do
4336 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4337 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } \
4341 && test -f conftest2.$ac_objext; then
4342 : OK
4343 else
4344 am_cv_prog_cc_c_o=no
4345 break
4347 done
4348 rm -f core conftest*
4349 unset am_i
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4352 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4353 if test "$am_cv_prog_cc_c_o" != yes; then
4354 # Losing compiler, so override with the script.
4355 # FIXME: It is wrong to rewrite CC.
4356 # But if we don't then we get into trouble of one sort or another.
4357 # A longer-term fix would be to have automake use am__CC in this case,
4358 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4359 CC="$am_aux_dir/compile $CC"
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 DEPDIR="${am__leading_dot}deps"
4369 ac_config_commands="$ac_config_commands depfiles"
4372 am_make=${MAKE-make}
4373 cat > confinc << 'END'
4374 am__doit:
4375 @echo this is the am__doit target
4376 .PHONY: am__doit
4378 # If we don't find an include directive, just comment out the code.
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4380 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4381 am__include="#"
4382 am__quote=
4383 _am_result=none
4384 # First try GNU make style include.
4385 echo "include confinc" > confmf
4386 # Ignore all kinds of additional output from 'make'.
4387 case `$am_make -s -f confmf 2> /dev/null` in #(
4388 *the\ am__doit\ target*)
4389 am__include=include
4390 am__quote=
4391 _am_result=GNU
4393 esac
4394 # Now try BSD make style include.
4395 if test "$am__include" = "#"; then
4396 echo '.include "confinc"' > confmf
4397 case `$am_make -s -f confmf 2> /dev/null` in #(
4398 *the\ am__doit\ target*)
4399 am__include=.include
4400 am__quote="\""
4401 _am_result=BSD
4403 esac
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4408 $as_echo "$_am_result" >&6; }
4409 rm -f confinc confmf
4411 # Check whether --enable-dependency-tracking was given.
4412 if test "${enable_dependency_tracking+set}" = set; then :
4413 enableval=$enable_dependency_tracking;
4416 if test "x$enable_dependency_tracking" != xno; then
4417 am_depcomp="$ac_aux_dir/depcomp"
4418 AMDEPBACKSLASH='\'
4419 am__nodep='_no'
4421 if test "x$enable_dependency_tracking" != xno; then
4422 AMDEP_TRUE=
4423 AMDEP_FALSE='#'
4424 else
4425 AMDEP_TRUE='#'
4426 AMDEP_FALSE=
4431 depcc="$CC" am_compiler_list=
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4434 $as_echo_n "checking dependency style of $depcc... " >&6; }
4435 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439 # We make a subdir and do the tests there. Otherwise we can end up
4440 # making bogus files that we don't know about and never remove. For
4441 # instance it was reported that on HP-UX the gcc test will end up
4442 # making a dummy file named 'D' -- because '-MD' means "put the output
4443 # in D".
4444 rm -rf conftest.dir
4445 mkdir conftest.dir
4446 # Copy depcomp to subdir because otherwise we won't find it if we're
4447 # using a relative directory.
4448 cp "$am_depcomp" conftest.dir
4449 cd conftest.dir
4450 # We will build objects and dependencies in a subdirectory because
4451 # it helps to detect inapplicable dependency modes. For instance
4452 # both Tru64's cc and ICC support -MD to output dependencies as a
4453 # side effect of compilation, but ICC will put the dependencies in
4454 # the current directory while Tru64 will put them in the object
4455 # directory.
4456 mkdir sub
4458 am_cv_CC_dependencies_compiler_type=none
4459 if test "$am_compiler_list" = ""; then
4460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4462 am__universal=false
4463 case " $depcc " in #(
4464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465 esac
4467 for depmode in $am_compiler_list; do
4468 # Setup a source with many dependencies, because some compilers
4469 # like to wrap large dependency lists on column 80 (with \), and
4470 # we should not choose a depcomp mode which is confused by this.
4472 # We need to recreate these files for each test, as the compiler may
4473 # overwrite some of them when testing with obscure command lines.
4474 # This happens at least with the AIX C compiler.
4475 : > sub/conftest.c
4476 for i in 1 2 3 4 5 6; do
4477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4479 # Solaris 10 /bin/sh.
4480 echo '/* dummy */' > sub/conftst$i.h
4481 done
4482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4484 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4485 # mode. It turns out that the SunPro C++ compiler does not properly
4486 # handle '-M -o', and we need to detect this. Also, some Intel
4487 # versions had trouble with output in subdirs.
4488 am__obj=sub/conftest.${OBJEXT-o}
4489 am__minus_obj="-o $am__obj"
4490 case $depmode in
4491 gcc)
4492 # This depmode causes a compiler race in universal mode.
4493 test "$am__universal" = false || continue
4495 nosideeffect)
4496 # After this tag, mechanisms are not by side-effect, so they'll
4497 # only be used when explicitly requested.
4498 if test "x$enable_dependency_tracking" = xyes; then
4499 continue
4500 else
4501 break
4504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4505 # This compiler won't grok '-c -o', but also, the minuso test has
4506 # not run yet. These depmodes are late enough in the game, and
4507 # so weak that their functioning should not be impacted.
4508 am__obj=conftest.${OBJEXT-o}
4509 am__minus_obj=
4511 none) break ;;
4512 esac
4513 if depmode=$depmode \
4514 source=sub/conftest.c object=$am__obj \
4515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517 >/dev/null 2>conftest.err &&
4518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522 # icc doesn't choke on unknown options, it will just issue warnings
4523 # or remarks (even with -Werror). So we grep stderr for any message
4524 # that says an option was ignored or not supported.
4525 # When given -MP, icc 7.0 and 7.1 complain thusly:
4526 # icc: Command line warning: ignoring option '-M'; no argument required
4527 # The diagnosis changed in icc 8.0:
4528 # icc: Command line remark: option '-MP' not supported
4529 if (grep 'ignoring option' conftest.err ||
4530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531 am_cv_CC_dependencies_compiler_type=$depmode
4532 break
4535 done
4537 cd ..
4538 rm -rf conftest.dir
4539 else
4540 am_cv_CC_dependencies_compiler_type=none
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4545 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4546 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4549 test "x$enable_dependency_tracking" != xno \
4550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4551 am__fastdepCC_TRUE=
4552 am__fastdepCC_FALSE='#'
4553 else
4554 am__fastdepCC_TRUE='#'
4555 am__fastdepCC_FALSE=
4559 case $ac_cv_prog_cc_stdc in #(
4560 no) :
4561 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4562 *) :
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4564 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4565 if ${ac_cv_prog_cc_c99+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_cv_prog_cc_c99=no
4569 ac_save_CC=$CC
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <stdarg.h>
4573 #include <stdbool.h>
4574 #include <stdlib.h>
4575 #include <wchar.h>
4576 #include <stdio.h>
4578 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4579 #define debug(...) fprintf (stderr, __VA_ARGS__)
4580 #define showlist(...) puts (#__VA_ARGS__)
4581 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4582 static void
4583 test_varargs_macros (void)
4585 int x = 1234;
4586 int y = 5678;
4587 debug ("Flag");
4588 debug ("X = %d\n", x);
4589 showlist (The first, second, and third items.);
4590 report (x>y, "x is %d but y is %d", x, y);
4593 // Check long long types.
4594 #define BIG64 18446744073709551615ull
4595 #define BIG32 4294967295ul
4596 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4597 #if !BIG_OK
4598 your preprocessor is broken;
4599 #endif
4600 #if BIG_OK
4601 #else
4602 your preprocessor is broken;
4603 #endif
4604 static long long int bignum = -9223372036854775807LL;
4605 static unsigned long long int ubignum = BIG64;
4607 struct incomplete_array
4609 int datasize;
4610 double data[];
4613 struct named_init {
4614 int number;
4615 const wchar_t *name;
4616 double average;
4619 typedef const char *ccp;
4621 static inline int
4622 test_restrict (ccp restrict text)
4624 // See if C++-style comments work.
4625 // Iterate through items via the restricted pointer.
4626 // Also check for declarations in for loops.
4627 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4628 continue;
4629 return 0;
4632 // Check varargs and va_copy.
4633 static void
4634 test_varargs (const char *format, ...)
4636 va_list args;
4637 va_start (args, format);
4638 va_list args_copy;
4639 va_copy (args_copy, args);
4641 const char *str;
4642 int number;
4643 float fnumber;
4645 while (*format)
4647 switch (*format++)
4649 case 's': // string
4650 str = va_arg (args_copy, const char *);
4651 break;
4652 case 'd': // int
4653 number = va_arg (args_copy, int);
4654 break;
4655 case 'f': // float
4656 fnumber = va_arg (args_copy, double);
4657 break;
4658 default:
4659 break;
4662 va_end (args_copy);
4663 va_end (args);
4667 main ()
4670 // Check bool.
4671 _Bool success = false;
4673 // Check restrict.
4674 if (test_restrict ("String literal") == 0)
4675 success = true;
4676 char *restrict newvar = "Another string";
4678 // Check varargs.
4679 test_varargs ("s, d' f .", "string", 65, 34.234);
4680 test_varargs_macros ();
4682 // Check flexible array members.
4683 struct incomplete_array *ia =
4684 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4685 ia->datasize = 10;
4686 for (int i = 0; i < ia->datasize; ++i)
4687 ia->data[i] = i * 1.234;
4689 // Check named initializers.
4690 struct named_init ni = {
4691 .number = 34,
4692 .name = L"Test wide string",
4693 .average = 543.34343,
4696 ni.number = 58;
4698 int dynamic_array[ni.number];
4699 dynamic_array[ni.number - 1] = 543;
4701 // work around unused variable warnings
4702 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4703 || dynamic_array[ni.number - 1] != 543);
4706 return 0;
4708 _ACEOF
4709 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4711 CC="$ac_save_CC $ac_arg"
4712 if ac_fn_c_try_compile "$LINENO"; then :
4713 ac_cv_prog_cc_c99=$ac_arg
4715 rm -f core conftest.err conftest.$ac_objext
4716 test "x$ac_cv_prog_cc_c99" != "xno" && break
4717 done
4718 rm -f conftest.$ac_ext
4719 CC=$ac_save_CC
4722 # AC_CACHE_VAL
4723 case "x$ac_cv_prog_cc_c99" in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4726 $as_echo "none needed" >&6; } ;;
4727 xno)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4729 $as_echo "unsupported" >&6; } ;;
4731 CC="$CC $ac_cv_prog_cc_c99"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4733 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4734 esac
4735 if test "x$ac_cv_prog_cc_c99" != xno; then :
4736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4740 if ${ac_cv_prog_cc_c89+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 ac_cv_prog_cc_c89=no
4744 ac_save_CC=$CC
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <stdarg.h>
4748 #include <stdio.h>
4749 struct stat;
4750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751 struct buf { int x; };
4752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753 static char *e (p, i)
4754 char **p;
4755 int i;
4757 return p[i];
4759 static char *f (char * (*g) (char **, int), char **p, ...)
4761 char *s;
4762 va_list v;
4763 va_start (v,p);
4764 s = g (p, va_arg (v,int));
4765 va_end (v);
4766 return s;
4769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4770 function prototypes and stuff, but not '\xHH' hex character constants.
4771 These don't provoke an error unfortunately, instead are silently treated
4772 as 'x'. The following induces an error, until -std is added to get
4773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4774 array size at least. It's necessary to write '\x00'==0 to get something
4775 that's true only with -std. */
4776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4779 inside strings and character constants. */
4780 #define FOO(x) 'x'
4781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4783 int test (int i, double x);
4784 struct s1 {int (*f) (int a);};
4785 struct s2 {int (*f) (double a);};
4786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787 int argc;
4788 char **argv;
4790 main ()
4792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4794 return 0;
4796 _ACEOF
4797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4800 CC="$ac_save_CC $ac_arg"
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_c89=$ac_arg
4804 rm -f core conftest.err conftest.$ac_objext
4805 test "x$ac_cv_prog_cc_c89" != "xno" && break
4806 done
4807 rm -f conftest.$ac_ext
4808 CC=$ac_save_CC
4811 # AC_CACHE_VAL
4812 case "x$ac_cv_prog_cc_c89" in
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815 $as_echo "none needed" >&6; } ;;
4816 xno)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4818 $as_echo "unsupported" >&6; } ;;
4820 CC="$CC $ac_cv_prog_cc_c89"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4823 esac
4824 if test "x$ac_cv_prog_cc_c89" != xno; then :
4825 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4826 else
4827 ac_cv_prog_cc_stdc=no
4832 esac
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4834 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4835 if ${ac_cv_prog_cc_stdc+:} false; then :
4836 $as_echo_n "(cached) " >&6
4839 case $ac_cv_prog_cc_stdc in #(
4840 no) :
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4842 $as_echo "unsupported" >&6; } ;; #(
4843 '') :
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4845 $as_echo "none needed" >&6; } ;; #(
4846 *) :
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4848 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4849 esac
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4854 set x ${MAKE-make}
4855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4856 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 cat >conftest.make <<\_ACEOF
4860 SHELL = /bin/sh
4861 all:
4862 @echo '@@@%%%=$(MAKE)=@@@%%%'
4863 _ACEOF
4864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4866 *@@@%%%=?*=@@@%%%*)
4867 eval ac_cv_prog_make_${ac_make}_set=yes;;
4869 eval ac_cv_prog_make_${ac_make}_set=no;;
4870 esac
4871 rm -f conftest.make
4873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875 $as_echo "yes" >&6; }
4876 SET_MAKE=
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 SET_MAKE="MAKE=${MAKE-make}"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
4885 LN_S=$as_ln_s
4886 if test "$LN_S" = "ln -s"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4894 for ac_prog in gawk mawk nawk awk
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_AWK+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$AWK"; then
4904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_AWK="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 AWK=$ac_cv_prog_AWK
4924 if test -n "$AWK"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4926 $as_echo "$AWK" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$AWK" && break
4934 done
4936 if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_RANLIB+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$RANLIB"; then
4945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 RANLIB=$ac_cv_prog_RANLIB
4965 if test -n "$RANLIB"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4967 $as_echo "$RANLIB" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4975 if test -z "$ac_cv_prog_RANLIB"; then
4976 ac_ct_RANLIB=$RANLIB
4977 # Extract the first word of "ranlib", so it can be a program name with args.
4978 set dummy ranlib; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -n "$ac_ct_RANLIB"; then
4985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_ac_ct_RANLIB="ranlib"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4998 done
4999 done
5000 IFS=$as_save_IFS
5004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5005 if test -n "$ac_ct_RANLIB"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5007 $as_echo "$ac_ct_RANLIB" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5013 if test "x$ac_ct_RANLIB" = x; then
5014 RANLIB=":"
5015 else
5016 case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022 RANLIB=$ac_ct_RANLIB
5024 else
5025 RANLIB="$ac_cv_prog_RANLIB"
5028 case `pwd` in
5029 *\ * | *\ *)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5031 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5032 esac
5036 macro_version='2.4.6'
5037 macro_revision='2.4.6'
5051 ltmain=$ac_aux_dir/ltmain.sh
5053 # Backslashify metacharacters that are still active within
5054 # double-quoted strings.
5055 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5057 # Same as above, but do not quote variable references.
5058 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5060 # Sed substitution to delay expansion of an escaped shell variable in a
5061 # double_quote_subst'ed string.
5062 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5064 # Sed substitution to delay expansion of an escaped single quote.
5065 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5067 # Sed substitution to avoid accidental globbing in evaled expressions
5068 no_glob_subst='s/\*/\\\*/g'
5070 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5075 $as_echo_n "checking how to print strings... " >&6; }
5076 # Test print first, because it will be a builtin if present.
5077 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5078 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5079 ECHO='print -r --'
5080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5081 ECHO='printf %s\n'
5082 else
5083 # Use this function as a fallback that always works.
5084 func_fallback_echo ()
5086 eval 'cat <<_LTECHO_EOF
5088 _LTECHO_EOF'
5090 ECHO='func_fallback_echo'
5093 # func_echo_all arg...
5094 # Invoke $ECHO with all args, space-separated.
5095 func_echo_all ()
5097 $ECHO ""
5100 case $ECHO in
5101 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5102 $as_echo "printf" >&6; } ;;
5103 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5104 $as_echo "print -r" >&6; } ;;
5105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5106 $as_echo "cat" >&6; } ;;
5107 esac
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5124 if ${ac_cv_path_SED+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5128 for ac_i in 1 2 3 4 5 6 7; do
5129 ac_script="$ac_script$as_nl$ac_script"
5130 done
5131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5132 { ac_script=; unset ac_script;}
5133 if test -z "$SED"; then
5134 ac_path_SED_found=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_prog in sed gsed; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5144 as_fn_executable_p "$ac_path_SED" || continue
5145 # Check for GNU ac_path_SED and select it if it is found.
5146 # Check for GNU $ac_path_SED
5147 case `"$ac_path_SED" --version 2>&1` in
5148 *GNU*)
5149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5151 ac_count=0
5152 $as_echo_n 0123456789 >"conftest.in"
5153 while :
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 $as_echo '' >> "conftest.nl"
5159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161 as_fn_arith $ac_count + 1 && ac_count=$as_val
5162 if test $ac_count -gt ${ac_path_SED_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_SED="$ac_path_SED"
5165 ac_path_SED_max=$ac_count
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5169 done
5170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 esac
5173 $ac_path_SED_found && break 3
5174 done
5175 done
5176 done
5177 IFS=$as_save_IFS
5178 if test -z "$ac_cv_path_SED"; then
5179 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5181 else
5182 ac_cv_path_SED=$SED
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5187 $as_echo "$ac_cv_path_SED" >&6; }
5188 SED="$ac_cv_path_SED"
5189 rm -f conftest.sed
5191 test -z "$SED" && SED=sed
5192 Xsed="$SED -e 1s/^X//"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5206 if ${ac_cv_path_GREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -z "$GREP"; then
5210 ac_path_GREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in grep ggrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5220 as_fn_executable_p "$ac_path_GREP" || continue
5221 # Check for GNU ac_path_GREP and select it if it is found.
5222 # Check for GNU $ac_path_GREP
5223 case `"$ac_path_GREP" --version 2>&1` in
5224 *GNU*)
5225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'GREP' >> "conftest.nl"
5235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_GREP="$ac_path_GREP"
5241 ac_path_GREP_max=$ac_count
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 esac
5249 $ac_path_GREP_found && break 3
5250 done
5251 done
5252 done
5253 IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_GREP"; then
5255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 else
5258 ac_cv_path_GREP=$GREP
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5263 $as_echo "$ac_cv_path_GREP" >&6; }
5264 GREP="$ac_cv_path_GREP"
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5268 $as_echo_n "checking for egrep... " >&6; }
5269 if ${ac_cv_path_EGREP+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5273 then ac_cv_path_EGREP="$GREP -E"
5274 else
5275 if test -z "$EGREP"; then
5276 ac_path_EGREP_found=false
5277 # Loop through the user's path and test for each of PROGNAME-LIST
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_prog in egrep; do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5286 as_fn_executable_p "$ac_path_EGREP" || continue
5287 # Check for GNU ac_path_EGREP and select it if it is found.
5288 # Check for GNU $ac_path_EGREP
5289 case `"$ac_path_EGREP" --version 2>&1` in
5290 *GNU*)
5291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5293 ac_count=0
5294 $as_echo_n 0123456789 >"conftest.in"
5295 while :
5297 cat "conftest.in" "conftest.in" >"conftest.tmp"
5298 mv "conftest.tmp" "conftest.in"
5299 cp "conftest.in" "conftest.nl"
5300 $as_echo 'EGREP' >> "conftest.nl"
5301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5303 as_fn_arith $ac_count + 1 && ac_count=$as_val
5304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5305 # Best one so far, save it but keep looking for a better one
5306 ac_cv_path_EGREP="$ac_path_EGREP"
5307 ac_path_EGREP_max=$ac_count
5309 # 10*(2^10) chars as input seems more than enough
5310 test $ac_count -gt 10 && break
5311 done
5312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5313 esac
5315 $ac_path_EGREP_found && break 3
5316 done
5317 done
5318 done
5319 IFS=$as_save_IFS
5320 if test -z "$ac_cv_path_EGREP"; then
5321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 else
5324 ac_cv_path_EGREP=$EGREP
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5330 $as_echo "$ac_cv_path_EGREP" >&6; }
5331 EGREP="$ac_cv_path_EGREP"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5335 $as_echo_n "checking for fgrep... " >&6; }
5336 if ${ac_cv_path_FGREP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5340 then ac_cv_path_FGREP="$GREP -F"
5341 else
5342 if test -z "$FGREP"; then
5343 ac_path_FGREP_found=false
5344 # Loop through the user's path and test for each of PROGNAME-LIST
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_prog in fgrep; do
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5353 as_fn_executable_p "$ac_path_FGREP" || continue
5354 # Check for GNU ac_path_FGREP and select it if it is found.
5355 # Check for GNU $ac_path_FGREP
5356 case `"$ac_path_FGREP" --version 2>&1` in
5357 *GNU*)
5358 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5360 ac_count=0
5361 $as_echo_n 0123456789 >"conftest.in"
5362 while :
5364 cat "conftest.in" "conftest.in" >"conftest.tmp"
5365 mv "conftest.tmp" "conftest.in"
5366 cp "conftest.in" "conftest.nl"
5367 $as_echo 'FGREP' >> "conftest.nl"
5368 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5370 as_fn_arith $ac_count + 1 && ac_count=$as_val
5371 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5372 # Best one so far, save it but keep looking for a better one
5373 ac_cv_path_FGREP="$ac_path_FGREP"
5374 ac_path_FGREP_max=$ac_count
5376 # 10*(2^10) chars as input seems more than enough
5377 test $ac_count -gt 10 && break
5378 done
5379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5380 esac
5382 $ac_path_FGREP_found && break 3
5383 done
5384 done
5385 done
5386 IFS=$as_save_IFS
5387 if test -z "$ac_cv_path_FGREP"; then
5388 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5390 else
5391 ac_cv_path_FGREP=$FGREP
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5397 $as_echo "$ac_cv_path_FGREP" >&6; }
5398 FGREP="$ac_cv_path_FGREP"
5401 test -z "$GREP" && GREP=grep
5421 # Check whether --with-gnu-ld was given.
5422 if test "${with_gnu_ld+set}" = set; then :
5423 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5424 else
5425 with_gnu_ld=no
5428 ac_prog=ld
5429 if test yes = "$GCC"; then
5430 # Check if gcc -print-prog-name=ld gives a path.
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5432 $as_echo_n "checking for ld used by $CC... " >&6; }
5433 case $host in
5434 *-*-mingw*)
5435 # gcc leaves a trailing carriage return, which upsets mingw
5436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5439 esac
5440 case $ac_prog in
5441 # Accept absolute paths.
5442 [\\/]* | ?:[\\/]*)
5443 re_direlt='/[^/][^/]*/\.\./'
5444 # Canonicalize the pathname of ld
5445 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5446 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5447 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5448 done
5449 test -z "$LD" && LD=$ac_prog
5452 # If it fails, then pretend we aren't using GCC.
5453 ac_prog=ld
5456 # If it is relative, then search for the first ld in PATH.
5457 with_gnu_ld=unknown
5459 esac
5460 elif test yes = "$with_gnu_ld"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5462 $as_echo_n "checking for GNU ld... " >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5465 $as_echo_n "checking for non-GNU ld... " >&6; }
5467 if ${lt_cv_path_LD+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -z "$LD"; then
5471 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5472 for ac_dir in $PATH; do
5473 IFS=$lt_save_ifs
5474 test -z "$ac_dir" && ac_dir=.
5475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5476 lt_cv_path_LD=$ac_dir/$ac_prog
5477 # Check to see if the program is GNU ld. I'd rather use --version,
5478 # but apparently some variants of GNU ld only accept -v.
5479 # Break only if it was the GNU/non-GNU ld that we prefer.
5480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5481 *GNU* | *'with BFD'*)
5482 test no != "$with_gnu_ld" && break
5485 test yes != "$with_gnu_ld" && break
5487 esac
5489 done
5490 IFS=$lt_save_ifs
5491 else
5492 lt_cv_path_LD=$LD # Let the user override the test with a path.
5496 LD=$lt_cv_path_LD
5497 if test -n "$LD"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5499 $as_echo "$LD" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5507 if ${lt_cv_prog_gnu_ld+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5511 case `$LD -v 2>&1 </dev/null` in
5512 *GNU* | *'with BFD'*)
5513 lt_cv_prog_gnu_ld=yes
5516 lt_cv_prog_gnu_ld=no
5518 esac
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5522 with_gnu_ld=$lt_cv_prog_gnu_ld
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5533 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5534 if ${lt_cv_path_NM+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$NM"; then
5538 # Let the user override the test.
5539 lt_cv_path_NM=$NM
5540 else
5541 lt_nm_to_check=${ac_tool_prefix}nm
5542 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5543 lt_nm_to_check="$lt_nm_to_check nm"
5545 for lt_tmp_nm in $lt_nm_to_check; do
5546 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5547 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5548 IFS=$lt_save_ifs
5549 test -z "$ac_dir" && ac_dir=.
5550 tmp_nm=$ac_dir/$lt_tmp_nm
5551 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5552 # Check to see if the nm accepts a BSD-compat flag.
5553 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5554 # nm: unknown option "B" ignored
5555 # Tru64's nm complains that /dev/null is an invalid object file
5556 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5557 case $build_os in
5558 mingw*) lt_bad_file=conftest.nm/nofile ;;
5559 *) lt_bad_file=/dev/null ;;
5560 esac
5561 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5562 *$lt_bad_file* | *'Invalid file or object type'*)
5563 lt_cv_path_NM="$tmp_nm -B"
5564 break 2
5567 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5568 */dev/null*)
5569 lt_cv_path_NM="$tmp_nm -p"
5570 break 2
5573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5574 continue # so that we can try to find one that supports BSD flags
5576 esac
5578 esac
5580 done
5581 IFS=$lt_save_ifs
5582 done
5583 : ${lt_cv_path_NM=no}
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5587 $as_echo "$lt_cv_path_NM" >&6; }
5588 if test no != "$lt_cv_path_NM"; then
5589 NM=$lt_cv_path_NM
5590 else
5591 # Didn't find any BSD compatible name lister, look for dumpbin.
5592 if test -n "$DUMPBIN"; then :
5593 # Let the user override the test.
5594 else
5595 if test -n "$ac_tool_prefix"; then
5596 for ac_prog in dumpbin "link -dump"
5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_DUMPBIN+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$DUMPBIN"; then
5606 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 DUMPBIN=$ac_cv_prog_DUMPBIN
5626 if test -n "$DUMPBIN"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5628 $as_echo "$DUMPBIN" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 test -n "$DUMPBIN" && break
5636 done
5638 if test -z "$DUMPBIN"; then
5639 ac_ct_DUMPBIN=$DUMPBIN
5640 for ac_prog in dumpbin "link -dump"
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy $ac_prog; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_DUMPBIN"; then
5650 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5670 if test -n "$ac_ct_DUMPBIN"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5672 $as_echo "$ac_ct_DUMPBIN" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5679 test -n "$ac_ct_DUMPBIN" && break
5680 done
5682 if test "x$ac_ct_DUMPBIN" = x; then
5683 DUMPBIN=":"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691 DUMPBIN=$ac_ct_DUMPBIN
5695 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5696 *COFF*)
5697 DUMPBIN="$DUMPBIN -symbols -headers"
5700 DUMPBIN=:
5702 esac
5705 if test : != "$DUMPBIN"; then
5706 NM=$DUMPBIN
5709 test -z "$NM" && NM=nm
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5717 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5718 if ${lt_cv_nm_interface+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
5723 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5734 rm -f conftest*
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5737 $as_echo "$lt_cv_nm_interface" >&6; }
5739 # find the maximum length of command line arguments
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5741 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5742 if ${lt_cv_sys_max_cmd_len+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5746 teststring=ABCD
5748 case $build_os in
5749 msdosdjgpp*)
5750 # On DJGPP, this test can blow up pretty badly due to problems in libc
5751 # (any single argument exceeding 2000 bytes causes a buffer overrun
5752 # during glob expansion). Even if it were fixed, the result of this
5753 # check would be larger than it should be.
5754 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5757 gnu*)
5758 # Under GNU Hurd, this test is not required because there is
5759 # no limit to the length of command line arguments.
5760 # Libtool will interpret -1 as no limit whatsoever
5761 lt_cv_sys_max_cmd_len=-1;
5764 cygwin* | mingw* | cegcc*)
5765 # On Win9x/ME, this test blows up -- it succeeds, but takes
5766 # about 5 minutes as the teststring grows exponentially.
5767 # Worse, since 9x/ME are not pre-emptively multitasking,
5768 # you end up with a "frozen" computer, even though with patience
5769 # the test eventually succeeds (with a max line length of 256k).
5770 # Instead, let's just punt: use the minimum linelength reported by
5771 # all of the supported platforms: 8192 (on NT/2K/XP).
5772 lt_cv_sys_max_cmd_len=8192;
5775 mint*)
5776 # On MiNT this can take a long time and run out of memory.
5777 lt_cv_sys_max_cmd_len=8192;
5780 amigaos*)
5781 # On AmigaOS with pdksh, this test takes hours, literally.
5782 # So we just punt and use a minimum line length of 8192.
5783 lt_cv_sys_max_cmd_len=8192;
5786 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5787 # This has been around since 386BSD, at least. Likely further.
5788 if test -x /sbin/sysctl; then
5789 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5790 elif test -x /usr/sbin/sysctl; then
5791 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5792 else
5793 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5795 # And add a safety zone
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5800 interix*)
5801 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5802 lt_cv_sys_max_cmd_len=196608
5805 os2*)
5806 # The test takes a long time on OS/2.
5807 lt_cv_sys_max_cmd_len=8192
5810 osf*)
5811 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5812 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5813 # nice to cause kernel panics so lets avoid the loop below.
5814 # First set a reasonable default.
5815 lt_cv_sys_max_cmd_len=16384
5817 if test -x /sbin/sysconfig; then
5818 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5819 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5820 esac
5823 sco3.2v5*)
5824 lt_cv_sys_max_cmd_len=102400
5826 sysv5* | sco5v6* | sysv4.2uw2*)
5827 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5828 if test -n "$kargmax"; then
5829 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5830 else
5831 lt_cv_sys_max_cmd_len=32768
5835 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5836 if test -n "$lt_cv_sys_max_cmd_len" && \
5837 test undefined != "$lt_cv_sys_max_cmd_len"; then
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5851 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test 17 != "$i" # 1/2 MB should be enough
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5866 esac
5870 if test -n "$lt_cv_sys_max_cmd_len"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5872 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5875 $as_echo "none" >&6; }
5877 max_cmd_len=$lt_cv_sys_max_cmd_len
5884 : ${CP="cp -f"}
5885 : ${MV="mv -f"}
5886 : ${RM="rm -f"}
5888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5889 lt_unset=unset
5890 else
5891 lt_unset=false
5898 # test EBCDIC or ASCII
5899 case `echo X|tr X '\101'` in
5900 A) # ASCII based system
5901 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5902 lt_SP2NL='tr \040 \012'
5903 lt_NL2SP='tr \015\012 \040\040'
5905 *) # EBCDIC based system
5906 lt_SP2NL='tr \100 \n'
5907 lt_NL2SP='tr \r\n \100\100'
5909 esac
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5920 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5921 if ${lt_cv_to_host_file_cmd+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 case $host in
5925 *-*-mingw* )
5926 case $build in
5927 *-*-mingw* ) # actually msys
5928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5930 *-*-cygwin* )
5931 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5933 * ) # otherwise, assume *nix
5934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5936 esac
5938 *-*-cygwin* )
5939 case $build in
5940 *-*-mingw* ) # actually msys
5941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5943 *-*-cygwin* )
5944 lt_cv_to_host_file_cmd=func_convert_file_noop
5946 * ) # otherwise, assume *nix
5947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5949 esac
5951 * ) # unhandled hosts (and "normal" native builds)
5952 lt_cv_to_host_file_cmd=func_convert_file_noop
5954 esac
5958 to_host_file_cmd=$lt_cv_to_host_file_cmd
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5960 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5967 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5968 if ${lt_cv_to_tool_file_cmd+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 #assume ordinary cross tools, or native build.
5972 lt_cv_to_tool_file_cmd=func_convert_file_noop
5973 case $host in
5974 *-*-mingw* )
5975 case $build in
5976 *-*-mingw* ) # actually msys
5977 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5979 esac
5981 esac
5985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5987 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5995 if ${lt_cv_ld_reload_flag+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 lt_cv_ld_reload_flag='-r'
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6002 reload_flag=$lt_cv_ld_reload_flag
6003 case $reload_flag in
6004 "" | " "*) ;;
6005 *) reload_flag=" $reload_flag" ;;
6006 esac
6007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6008 case $host_os in
6009 cygwin* | mingw* | pw32* | cegcc*)
6010 if test yes != "$GCC"; then
6011 reload_cmds=false
6014 darwin*)
6015 if test yes = "$GCC"; then
6016 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6017 else
6018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6021 esac
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_OBJDUMP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$OBJDUMP"; then
6040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6053 done
6054 done
6055 IFS=$as_save_IFS
6059 OBJDUMP=$ac_cv_prog_OBJDUMP
6060 if test -n "$OBJDUMP"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6062 $as_echo "$OBJDUMP" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test -z "$ac_cv_prog_OBJDUMP"; then
6071 ac_ct_OBJDUMP=$OBJDUMP
6072 # Extract the first word of "objdump", so it can be a program name with args.
6073 set dummy objdump; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_OBJDUMP"; then
6080 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6095 IFS=$as_save_IFS
6099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100 if test -n "$ac_ct_OBJDUMP"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6102 $as_echo "$ac_ct_OBJDUMP" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_ct_OBJDUMP" = x; then
6109 OBJDUMP="false"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 OBJDUMP=$ac_ct_OBJDUMP
6119 else
6120 OBJDUMP="$ac_cv_prog_OBJDUMP"
6123 test -z "$OBJDUMP" && OBJDUMP=objdump
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6134 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6135 if ${lt_cv_deplibs_check_method+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 lt_cv_file_magic_cmd='$MAGIC_CMD'
6139 lt_cv_file_magic_test_file=
6140 lt_cv_deplibs_check_method='unknown'
6141 # Need to set the preceding variable on all platforms that support
6142 # interlibrary dependencies.
6143 # 'none' -- dependencies not supported.
6144 # 'unknown' -- same as none, but documents that we really don't know.
6145 # 'pass_all' -- all dependencies passed with no checks.
6146 # 'test_compile' -- check by making test program.
6147 # 'file_magic [[regex]]' -- check by looking for files in library path
6148 # that responds to the $file_magic_cmd with a given extended regex.
6149 # If you have 'file' or equivalent on your system and you're not sure
6150 # whether 'pass_all' will *always* work, you probably want this one.
6152 case $host_os in
6153 aix[4-9]*)
6154 lt_cv_deplibs_check_method=pass_all
6157 beos*)
6158 lt_cv_deplibs_check_method=pass_all
6161 bsdi[45]*)
6162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6163 lt_cv_file_magic_cmd='/usr/bin/file -L'
6164 lt_cv_file_magic_test_file=/shlib/libc.so
6167 cygwin*)
6168 # func_win32_libid is a shell function defined in ltmain.sh
6169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6170 lt_cv_file_magic_cmd='func_win32_libid'
6173 mingw* | pw32*)
6174 # Base MSYS/MinGW do not provide the 'file' command needed by
6175 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6176 # unless we find 'file', for example because we are cross-compiling.
6177 if ( file / ) >/dev/null 2>&1; then
6178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6179 lt_cv_file_magic_cmd='func_win32_libid'
6180 else
6181 # Keep this pattern in sync with the one in func_win32_libid.
6182 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6183 lt_cv_file_magic_cmd='$OBJDUMP -f'
6187 cegcc*)
6188 # use the weaker test based on 'objdump'. See mingw*.
6189 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6190 lt_cv_file_magic_cmd='$OBJDUMP -f'
6193 darwin* | rhapsody*)
6194 lt_cv_deplibs_check_method=pass_all
6197 freebsd* | dragonfly*)
6198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6199 case $host_cpu in
6200 i*86 )
6201 # Not sure whether the presence of OpenBSD here was a mistake.
6202 # Let's accept both of them until this is cleared up.
6203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6204 lt_cv_file_magic_cmd=/usr/bin/file
6205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6207 esac
6208 else
6209 lt_cv_deplibs_check_method=pass_all
6213 haiku*)
6214 lt_cv_deplibs_check_method=pass_all
6217 hpux10.20* | hpux11*)
6218 lt_cv_file_magic_cmd=/usr/bin/file
6219 case $host_cpu in
6220 ia64*)
6221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6222 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6224 hppa*64*)
6225 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]'
6226 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6230 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6232 esac
6235 interix[3-9]*)
6236 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6240 irix5* | irix6* | nonstopux*)
6241 case $LD in
6242 *-32|*"-32 ") libmagic=32-bit;;
6243 *-n32|*"-n32 ") libmagic=N32;;
6244 *-64|*"-64 ") libmagic=64-bit;;
6245 *) libmagic=never-match;;
6246 esac
6247 lt_cv_deplibs_check_method=pass_all
6250 # This must be glibc/ELF.
6251 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6252 lt_cv_deplibs_check_method=pass_all
6255 netbsd*)
6256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6258 else
6259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6263 newos6*)
6264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6265 lt_cv_file_magic_cmd=/usr/bin/file
6266 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6269 *nto* | *qnx*)
6270 lt_cv_deplibs_check_method=pass_all
6273 openbsd* | bitrig*)
6274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6276 else
6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6281 osf3* | osf4* | osf5*)
6282 lt_cv_deplibs_check_method=pass_all
6285 rdos*)
6286 lt_cv_deplibs_check_method=pass_all
6289 solaris*)
6290 lt_cv_deplibs_check_method=pass_all
6293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6294 lt_cv_deplibs_check_method=pass_all
6297 sysv4 | sysv4.3*)
6298 case $host_vendor in
6299 motorola)
6300 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]'
6301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6303 ncr)
6304 lt_cv_deplibs_check_method=pass_all
6306 sequent)
6307 lt_cv_file_magic_cmd='/bin/file'
6308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6310 sni)
6311 lt_cv_file_magic_cmd='/bin/file'
6312 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6313 lt_cv_file_magic_test_file=/lib/libc.so
6315 siemens)
6316 lt_cv_deplibs_check_method=pass_all
6319 lt_cv_deplibs_check_method=pass_all
6321 esac
6324 tpf*)
6325 lt_cv_deplibs_check_method=pass_all
6327 os2*)
6328 lt_cv_deplibs_check_method=pass_all
6330 esac
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6334 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6336 file_magic_glob=
6337 want_nocaseglob=no
6338 if test "$build" = "$host"; then
6339 case $host_os in
6340 mingw* | pw32*)
6341 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6342 want_nocaseglob=yes
6343 else
6344 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6347 esac
6350 file_magic_cmd=$lt_cv_file_magic_cmd
6351 deplibs_check_method=$lt_cv_deplibs_check_method
6352 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_DLLTOOL+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$DLLTOOL"; then
6384 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6397 done
6398 done
6399 IFS=$as_save_IFS
6403 DLLTOOL=$ac_cv_prog_DLLTOOL
6404 if test -n "$DLLTOOL"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6406 $as_echo "$DLLTOOL" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_DLLTOOL"; then
6415 ac_ct_DLLTOOL=$DLLTOOL
6416 # Extract the first word of "dlltool", so it can be a program name with args.
6417 set dummy dlltool; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test -n "$ac_ct_DLLTOOL"; then
6424 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6439 IFS=$as_save_IFS
6443 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6444 if test -n "$ac_ct_DLLTOOL"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6446 $as_echo "$ac_ct_DLLTOOL" >&6; }
6447 else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_DLLTOOL" = x; then
6453 DLLTOOL="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 DLLTOOL=$ac_ct_DLLTOOL
6463 else
6464 DLLTOOL="$ac_cv_prog_DLLTOOL"
6467 test -z "$DLLTOOL" && DLLTOOL=dlltool
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6479 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6480 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 lt_cv_sharedlib_from_linklib_cmd='unknown'
6485 case $host_os in
6486 cygwin* | mingw* | pw32* | cegcc*)
6487 # two different shell functions defined in ltmain.sh;
6488 # decide which one to use based on capabilities of $DLLTOOL
6489 case `$DLLTOOL --help 2>&1` in
6490 *--identify-strict*)
6491 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6494 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6496 esac
6499 # fallback: assume linklib IS sharedlib
6500 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6502 esac
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6506 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6507 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6508 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6517 if test -n "$ac_tool_prefix"; then
6518 for ac_prog in ar
6520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_AR+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6541 done
6542 done
6543 IFS=$as_save_IFS
6547 AR=$ac_cv_prog_AR
6548 if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550 $as_echo "$AR" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6557 test -n "$AR" && break
6558 done
6560 if test -z "$AR"; then
6561 ac_ct_AR=$AR
6562 for ac_prog in ar
6564 # Extract the first word of "$ac_prog", so it can be a program name with args.
6565 set dummy $ac_prog; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_AR"; then
6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_ac_ct_AR="$ac_prog"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6592 if test -n "$ac_ct_AR"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6594 $as_echo "$ac_ct_AR" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6601 test -n "$ac_ct_AR" && break
6602 done
6604 if test "x$ac_ct_AR" = x; then
6605 AR="false"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 AR=$ac_ct_AR
6617 : ${AR=ar}
6618 : ${AR_FLAGS=cru}
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6631 $as_echo_n "checking for archiver @FILE support... " >&6; }
6632 if ${lt_cv_ar_at_file+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 lt_cv_ar_at_file=no
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 main ()
6644 return 0;
6646 _ACEOF
6647 if ac_fn_c_try_compile "$LINENO"; then :
6648 echo conftest.$ac_objext > conftest.lst
6649 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6651 (eval $lt_ar_try) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }
6655 if test 0 -eq "$ac_status"; then
6656 # Ensure the archiver fails upon bogus file names.
6657 rm -f conftest.$ac_objext libconftest.a
6658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6659 (eval $lt_ar_try) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }
6663 if test 0 -ne "$ac_status"; then
6664 lt_cv_ar_at_file=@
6667 rm -f conftest.* libconftest.a
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6674 $as_echo "$lt_cv_ar_at_file" >&6; }
6676 if test no = "$lt_cv_ar_at_file"; then
6677 archiver_list_spec=
6678 else
6679 archiver_list_spec=$lt_cv_ar_at_file
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}strip; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_STRIP+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$STRIP"; then
6697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6716 STRIP=$ac_cv_prog_STRIP
6717 if test -n "$STRIP"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6719 $as_echo "$STRIP" >&6; }
6720 else
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_STRIP"; then
6728 ac_ct_STRIP=$STRIP
6729 # Extract the first word of "strip", so it can be a program name with args.
6730 set dummy strip; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 if test -n "$ac_ct_STRIP"; then
6737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_ac_ct_STRIP="strip"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6750 done
6751 done
6752 IFS=$as_save_IFS
6756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6757 if test -n "$ac_ct_STRIP"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6759 $as_echo "$ac_ct_STRIP" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_STRIP" = x; then
6766 STRIP=":"
6767 else
6768 case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774 STRIP=$ac_ct_STRIP
6776 else
6777 STRIP="$ac_cv_prog_STRIP"
6780 test -z "$STRIP" && STRIP=:
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_RANLIB+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$RANLIB"; then
6796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6815 RANLIB=$ac_cv_prog_RANLIB
6816 if test -n "$RANLIB"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6818 $as_echo "$RANLIB" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6826 if test -z "$ac_cv_prog_RANLIB"; then
6827 ac_ct_RANLIB=$RANLIB
6828 # Extract the first word of "ranlib", so it can be a program name with args.
6829 set dummy ranlib; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_RANLIB"; then
6836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_RANLIB="ranlib"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6849 done
6850 done
6851 IFS=$as_save_IFS
6855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6856 if test -n "$ac_ct_RANLIB"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6858 $as_echo "$ac_ct_RANLIB" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$ac_ct_RANLIB" = x; then
6865 RANLIB=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 RANLIB=$ac_ct_RANLIB
6875 else
6876 RANLIB="$ac_cv_prog_RANLIB"
6879 test -z "$RANLIB" && RANLIB=:
6886 # Determine commands to create old-style static archives.
6887 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6888 old_postinstall_cmds='chmod 644 $oldlib'
6889 old_postuninstall_cmds=
6891 if test -n "$RANLIB"; then
6892 case $host_os in
6893 bitrig* | openbsd*)
6894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6899 esac
6900 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6903 case $host_os in
6904 darwin*)
6905 lock_old_archive_extraction=yes ;;
6907 lock_old_archive_extraction=no ;;
6908 esac
6948 # If no C compiler was specified, use CC.
6949 LTCC=${LTCC-"$CC"}
6951 # If no C compiler flags were specified, use CFLAGS.
6952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6954 # Allow CC to be a program name with arguments.
6955 compiler=$CC
6958 # Check for command to grab the raw symbol name followed by C symbol from nm.
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6960 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6961 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6965 # These are sane defaults that work on at least a few old systems.
6966 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6968 # Character class describing NM global symbol codes.
6969 symcode='[BCDEGRST]'
6971 # Regexp to match symbols that can be accessed directly from C.
6972 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6974 # Define system-specific variables.
6975 case $host_os in
6976 aix*)
6977 symcode='[BCDT]'
6979 cygwin* | mingw* | pw32* | cegcc*)
6980 symcode='[ABCDGISTW]'
6982 hpux*)
6983 if test ia64 = "$host_cpu"; then
6984 symcode='[ABCDEGRST]'
6987 irix* | nonstopux*)
6988 symcode='[BCDEGRST]'
6990 osf*)
6991 symcode='[BCDEGQRST]'
6993 solaris*)
6994 symcode='[BDRT]'
6996 sco3.2v5*)
6997 symcode='[DT]'
6999 sysv4.2uw2*)
7000 symcode='[DT]'
7002 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7003 symcode='[ABDT]'
7005 sysv4)
7006 symcode='[DFNSTU]'
7008 esac
7010 # If we're using GNU nm, then use its standard symbol codes.
7011 case `$NM -V 2>&1` in
7012 *GNU* | *'with BFD'*)
7013 symcode='[ABCDGIRSTW]' ;;
7014 esac
7016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7017 # Gets list of data symbols to import.
7018 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7019 # Adjust the below global symbol transforms to fixup imported variables.
7020 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7021 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7022 lt_c_name_lib_hook="\
7023 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7024 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7025 else
7026 # Disable hooks by default.
7027 lt_cv_sys_global_symbol_to_import=
7028 lt_cdecl_hook=
7029 lt_c_name_hook=
7030 lt_c_name_lib_hook=
7033 # Transform an extracted symbol line into a proper C declaration.
7034 # Some systems (esp. on ia64) link data and code symbols differently,
7035 # so use this general approach.
7036 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7037 $lt_cdecl_hook\
7038 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7039 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7041 # Transform an extracted symbol line into symbol name and symbol address
7042 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7043 $lt_c_name_hook\
7044 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7045 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7047 # Transform an extracted symbol line into symbol name with lib prefix and
7048 # symbol address.
7049 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7050 $lt_c_name_lib_hook\
7051 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7052 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7053 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7055 # Handle CRLF in mingw tool chain
7056 opt_cr=
7057 case $build_os in
7058 mingw*)
7059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7061 esac
7063 # Try without a prefix underscore, then with it.
7064 for ac_symprfx in "" "_"; do
7066 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7067 symxfrm="\\1 $ac_symprfx\\2 \\2"
7069 # Write the raw and C identifiers.
7070 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7071 # Fake it for dumpbin and say T for any non-static function,
7072 # D for any global variable and I for any imported variable.
7073 # Also find C++ and __fastcall symbols from MSVC++,
7074 # which start with @ or ?.
7075 lt_cv_sys_global_symbol_pipe="$AWK '"\
7076 " {last_section=section; section=\$ 3};"\
7077 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7078 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7079 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7080 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7081 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7082 " \$ 0!~/External *\|/{next};"\
7083 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7084 " {if(hide[section]) next};"\
7085 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7086 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7087 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7088 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7089 " ' prfx=^$ac_symprfx"
7090 else
7091 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7093 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7095 # Check to see that the pipe works correctly.
7096 pipe_works=no
7098 rm -f conftest*
7099 cat > conftest.$ac_ext <<_LT_EOF
7100 #ifdef __cplusplus
7101 extern "C" {
7102 #endif
7103 char nm_test_var;
7104 void nm_test_func(void);
7105 void nm_test_func(void){}
7106 #ifdef __cplusplus
7108 #endif
7109 int main(){nm_test_var='a';nm_test_func();return(0);}
7110 _LT_EOF
7112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7113 (eval $ac_compile) 2>&5
7114 ac_status=$?
7115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; then
7117 # Now try to grab the symbols.
7118 nlist=conftest.nm
7119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7120 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; } && test -s "$nlist"; then
7124 # Try sorting and uniquifying the output.
7125 if sort "$nlist" | uniq > "$nlist"T; then
7126 mv -f "$nlist"T "$nlist"
7127 else
7128 rm -f "$nlist"T
7131 # Make sure that we snagged all the symbols we need.
7132 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7133 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7134 cat <<_LT_EOF > conftest.$ac_ext
7135 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7136 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7137 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7138 relocations are performed -- see ld's documentation on pseudo-relocs. */
7139 # define LT_DLSYM_CONST
7140 #elif defined __osf__
7141 /* This system does not cope well with relocations in const data. */
7142 # define LT_DLSYM_CONST
7143 #else
7144 # define LT_DLSYM_CONST const
7145 #endif
7147 #ifdef __cplusplus
7148 extern "C" {
7149 #endif
7151 _LT_EOF
7152 # Now generate the symbol file.
7153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7155 cat <<_LT_EOF >> conftest.$ac_ext
7157 /* The mapping between symbol names and symbols. */
7158 LT_DLSYM_CONST struct {
7159 const char *name;
7160 void *address;
7162 lt__PROGRAM__LTX_preloaded_symbols[] =
7164 { "@PROGRAM@", (void *) 0 },
7165 _LT_EOF
7166 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7167 cat <<\_LT_EOF >> conftest.$ac_ext
7168 {0, (void *) 0}
7171 /* This works around a problem in FreeBSD linker */
7172 #ifdef FREEBSD_WORKAROUND
7173 static const void *lt_preloaded_setup() {
7174 return lt__PROGRAM__LTX_preloaded_symbols;
7176 #endif
7178 #ifdef __cplusplus
7180 #endif
7181 _LT_EOF
7182 # Now try linking the two files.
7183 mv conftest.$ac_objext conftstm.$ac_objext
7184 lt_globsym_save_LIBS=$LIBS
7185 lt_globsym_save_CFLAGS=$CFLAGS
7186 LIBS=conftstm.$ac_objext
7187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7189 (eval $ac_link) 2>&5
7190 ac_status=$?
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7193 pipe_works=yes
7195 LIBS=$lt_globsym_save_LIBS
7196 CFLAGS=$lt_globsym_save_CFLAGS
7197 else
7198 echo "cannot find nm_test_func in $nlist" >&5
7200 else
7201 echo "cannot find nm_test_var in $nlist" >&5
7203 else
7204 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7206 else
7207 echo "$progname: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 rm -rf conftest* conftst*
7212 # Do not use the global_symbol_pipe unless it works.
7213 if test yes = "$pipe_works"; then
7214 break
7215 else
7216 lt_cv_sys_global_symbol_pipe=
7218 done
7222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7223 lt_cv_sys_global_symbol_to_cdecl=
7225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7227 $as_echo "failed" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7230 $as_echo "ok" >&6; }
7233 # Response file support.
7234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7235 nm_file_list_spec='@'
7236 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7237 nm_file_list_spec='@'
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7277 $as_echo_n "checking for sysroot... " >&6; }
7279 # Check whether --with-sysroot was given.
7280 if test "${with_sysroot+set}" = set; then :
7281 withval=$with_sysroot;
7282 else
7283 with_sysroot=no
7287 lt_sysroot=
7288 case $with_sysroot in #(
7289 yes)
7290 if test yes = "$GCC"; then
7291 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7293 ;; #(
7295 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7296 ;; #(
7297 no|'')
7298 ;; #(
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7301 $as_echo "$with_sysroot" >&6; }
7302 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7304 esac
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7307 $as_echo "${lt_sysroot:-no}" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7314 $as_echo_n "checking for a working dd... " >&6; }
7315 if ${ac_cv_path_lt_DD+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 printf 0123456789abcdef0123456789abcdef >conftest.i
7319 cat conftest.i conftest.i >conftest2.i
7320 : ${lt_DD:=$DD}
7321 if test -z "$lt_DD"; then
7322 ac_path_lt_DD_found=false
7323 # Loop through the user's path and test for each of PROGNAME-LIST
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_prog in dd; do
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7332 as_fn_executable_p "$ac_path_lt_DD" || continue
7333 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7334 cmp -s conftest.i conftest.out \
7335 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7337 $ac_path_lt_DD_found && break 3
7338 done
7339 done
7340 done
7341 IFS=$as_save_IFS
7342 if test -z "$ac_cv_path_lt_DD"; then
7345 else
7346 ac_cv_path_lt_DD=$lt_DD
7349 rm -f conftest.i conftest2.i conftest.out
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7352 $as_echo "$ac_cv_path_lt_DD" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7356 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7357 if ${lt_cv_truncate_bin+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 printf 0123456789abcdef0123456789abcdef >conftest.i
7361 cat conftest.i conftest.i >conftest2.i
7362 lt_cv_truncate_bin=
7363 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7364 cmp -s conftest.i conftest.out \
7365 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7367 rm -f conftest.i conftest2.i conftest.out
7368 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7371 $as_echo "$lt_cv_truncate_bin" >&6; }
7379 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7380 func_cc_basename ()
7382 for cc_temp in $*""; do
7383 case $cc_temp in
7384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7386 \-*) ;;
7387 *) break;;
7388 esac
7389 done
7390 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7393 # Check whether --enable-libtool-lock was given.
7394 if test "${enable_libtool_lock+set}" = set; then :
7395 enableval=$enable_libtool_lock;
7398 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7400 # Some flags need to be propagated to the compiler or linker for good
7401 # libtool support.
7402 case $host in
7403 ia64-*-hpux*)
7404 # Find out what ABI is being produced by ac_compile, and set mode
7405 # options accordingly.
7406 echo 'int i;' > conftest.$ac_ext
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7409 ac_status=$?
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 case `/usr/bin/file conftest.$ac_objext` in
7413 *ELF-32*)
7414 HPUX_IA64_MODE=32
7416 *ELF-64*)
7417 HPUX_IA64_MODE=64
7419 esac
7421 rm -rf conftest*
7423 *-*-irix6*)
7424 # Find out what ABI is being produced by ac_compile, and set linker
7425 # options accordingly.
7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 if test yes = "$lt_cv_prog_gnu_ld"; then
7433 case `/usr/bin/file conftest.$ac_objext` in
7434 *32-bit*)
7435 LD="${LD-ld} -melf32bsmip"
7437 *N32*)
7438 LD="${LD-ld} -melf32bmipn32"
7440 *64-bit*)
7441 LD="${LD-ld} -melf64bmip"
7443 esac
7444 else
7445 case `/usr/bin/file conftest.$ac_objext` in
7446 *32-bit*)
7447 LD="${LD-ld} -32"
7449 *N32*)
7450 LD="${LD-ld} -n32"
7452 *64-bit*)
7453 LD="${LD-ld} -64"
7455 esac
7458 rm -rf conftest*
7461 mips64*-*linux*)
7462 # Find out what ABI is being produced by ac_compile, and set linker
7463 # options accordingly.
7464 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 emul=elf
7471 case `/usr/bin/file conftest.$ac_objext` in
7472 *32-bit*)
7473 emul="${emul}32"
7475 *64-bit*)
7476 emul="${emul}64"
7478 esac
7479 case `/usr/bin/file conftest.$ac_objext` in
7480 *MSB*)
7481 emul="${emul}btsmip"
7483 *LSB*)
7484 emul="${emul}ltsmip"
7486 esac
7487 case `/usr/bin/file conftest.$ac_objext` in
7488 *N32*)
7489 emul="${emul}n32"
7491 esac
7492 LD="${LD-ld} -m $emul"
7494 rm -rf conftest*
7497 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7498 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7499 # Find out what ABI is being produced by ac_compile, and set linker
7500 # options accordingly. Note that the listed cases only cover the
7501 # situations where additional linker options are needed (such as when
7502 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7503 # vice versa); the common cases where no linker options are needed do
7504 # not appear in the list.
7505 echo 'int i;' > conftest.$ac_ext
7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; }; then
7511 case `/usr/bin/file conftest.o` in
7512 *32-bit*)
7513 case $host in
7514 x86_64-*kfreebsd*-gnu)
7515 LD="${LD-ld} -m elf_i386_fbsd"
7517 x86_64-*linux*)
7518 case `/usr/bin/file conftest.o` in
7519 *x86-64*)
7520 LD="${LD-ld} -m elf32_x86_64"
7523 LD="${LD-ld} -m elf_i386"
7525 esac
7527 powerpc64le-*linux*)
7528 LD="${LD-ld} -m elf32lppclinux"
7530 powerpc64-*linux*)
7531 LD="${LD-ld} -m elf32ppclinux"
7533 s390x-*linux*)
7534 LD="${LD-ld} -m elf_s390"
7536 sparc64-*linux*)
7537 LD="${LD-ld} -m elf32_sparc"
7539 esac
7541 *64-bit*)
7542 case $host in
7543 x86_64-*kfreebsd*-gnu)
7544 LD="${LD-ld} -m elf_x86_64_fbsd"
7546 x86_64-*linux*)
7547 LD="${LD-ld} -m elf_x86_64"
7549 powerpcle-*linux*)
7550 LD="${LD-ld} -m elf64lppc"
7552 powerpc-*linux*)
7553 LD="${LD-ld} -m elf64ppc"
7555 s390*-*linux*|s390*-*tpf*)
7556 LD="${LD-ld} -m elf64_s390"
7558 sparc*-*linux*)
7559 LD="${LD-ld} -m elf64_sparc"
7561 esac
7563 esac
7565 rm -rf conftest*
7568 *-*-sco3.2v5*)
7569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7570 SAVE_CFLAGS=$CFLAGS
7571 CFLAGS="$CFLAGS -belf"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7573 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7574 if ${lt_cv_cc_needs_belf+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 ac_ext=c
7578 ac_cpp='$CPP $CPPFLAGS'
7579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7587 main ()
7591 return 0;
7593 _ACEOF
7594 if ac_fn_c_try_link "$LINENO"; then :
7595 lt_cv_cc_needs_belf=yes
7596 else
7597 lt_cv_cc_needs_belf=no
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 ac_ext=c
7602 ac_cpp='$CPP $CPPFLAGS'
7603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7609 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7610 if test yes != "$lt_cv_cc_needs_belf"; then
7611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7612 CFLAGS=$SAVE_CFLAGS
7615 *-*solaris*)
7616 # Find out what ABI is being produced by ac_compile, and set linker
7617 # options accordingly.
7618 echo 'int i;' > conftest.$ac_ext
7619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7620 (eval $ac_compile) 2>&5
7621 ac_status=$?
7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7623 test $ac_status = 0; }; then
7624 case `/usr/bin/file conftest.o` in
7625 *64-bit*)
7626 case $lt_cv_prog_gnu_ld in
7627 yes*)
7628 case $host in
7629 i?86-*-solaris*|x86_64-*-solaris*)
7630 LD="${LD-ld} -m elf_x86_64"
7632 sparc*-*-solaris*)
7633 LD="${LD-ld} -m elf64_sparc"
7635 esac
7636 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7637 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7638 LD=${LD-ld}_sol2
7642 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7643 LD="${LD-ld} -64"
7646 esac
7648 esac
7650 rm -rf conftest*
7652 esac
7654 need_locks=$enable_libtool_lock
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}mt; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$MANIFEST_TOOL"; then
7665 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7684 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7685 if test -n "$MANIFEST_TOOL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7687 $as_echo "$MANIFEST_TOOL" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7695 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7696 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7697 # Extract the first word of "mt", so it can be a program name with args.
7698 set dummy mt; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$ac_ct_MANIFEST_TOOL"; then
7705 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7718 done
7719 done
7720 IFS=$as_save_IFS
7724 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7725 if test -n "$ac_ct_MANIFEST_TOOL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7727 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7733 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7734 MANIFEST_TOOL=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7744 else
7745 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7748 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7750 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7751 if ${lt_cv_path_mainfest_tool+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 lt_cv_path_mainfest_tool=no
7755 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7756 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7757 cat conftest.err >&5
7758 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7759 lt_cv_path_mainfest_tool=yes
7761 rm -f conftest*
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7764 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7765 if test yes != "$lt_cv_path_mainfest_tool"; then
7766 MANIFEST_TOOL=:
7774 case $host_os in
7775 rhapsody* | darwin*)
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$DSYMUTIL"; then
7785 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7804 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7805 if test -n "$DSYMUTIL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7807 $as_echo "$DSYMUTIL" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 if test -z "$ac_cv_prog_DSYMUTIL"; then
7816 ac_ct_DSYMUTIL=$DSYMUTIL
7817 # Extract the first word of "dsymutil", so it can be a program name with args.
7818 set dummy dsymutil; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$ac_ct_DSYMUTIL"; then
7825 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7845 if test -n "$ac_ct_DSYMUTIL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7847 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7853 if test "x$ac_ct_DSYMUTIL" = x; then
7854 DSYMUTIL=":"
7855 else
7856 case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862 DSYMUTIL=$ac_ct_DSYMUTIL
7864 else
7865 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7870 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_NMEDIT+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$NMEDIT"; then
7877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7890 done
7891 done
7892 IFS=$as_save_IFS
7896 NMEDIT=$ac_cv_prog_NMEDIT
7897 if test -n "$NMEDIT"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7899 $as_echo "$NMEDIT" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7907 if test -z "$ac_cv_prog_NMEDIT"; then
7908 ac_ct_NMEDIT=$NMEDIT
7909 # Extract the first word of "nmedit", so it can be a program name with args.
7910 set dummy nmedit; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$ac_ct_NMEDIT"; then
7917 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7937 if test -n "$ac_ct_NMEDIT"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7939 $as_echo "$ac_ct_NMEDIT" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7945 if test "x$ac_ct_NMEDIT" = x; then
7946 NMEDIT=":"
7947 else
7948 case $cross_compiling:$ac_tool_warned in
7949 yes:)
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned=yes ;;
7953 esac
7954 NMEDIT=$ac_ct_NMEDIT
7956 else
7957 NMEDIT="$ac_cv_prog_NMEDIT"
7960 if test -n "$ac_tool_prefix"; then
7961 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_LIPO+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$LIPO"; then
7969 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 LIPO=$ac_cv_prog_LIPO
7989 if test -n "$LIPO"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7991 $as_echo "$LIPO" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7999 if test -z "$ac_cv_prog_LIPO"; then
8000 ac_ct_LIPO=$LIPO
8001 # Extract the first word of "lipo", so it can be a program name with args.
8002 set dummy lipo; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 if test -n "$ac_ct_LIPO"; then
8009 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_LIPO="lipo"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8028 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8029 if test -n "$ac_ct_LIPO"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8031 $as_echo "$ac_ct_LIPO" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8037 if test "x$ac_ct_LIPO" = x; then
8038 LIPO=":"
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041 yes:)
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044 ac_tool_warned=yes ;;
8045 esac
8046 LIPO=$ac_ct_LIPO
8048 else
8049 LIPO="$ac_cv_prog_LIPO"
8052 if test -n "$ac_tool_prefix"; then
8053 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8054 set dummy ${ac_tool_prefix}otool; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if ${ac_cv_prog_OTOOL+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 if test -n "$OTOOL"; then
8061 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8080 OTOOL=$ac_cv_prog_OTOOL
8081 if test -n "$OTOOL"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8083 $as_echo "$OTOOL" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8091 if test -z "$ac_cv_prog_OTOOL"; then
8092 ac_ct_OTOOL=$OTOOL
8093 # Extract the first word of "otool", so it can be a program name with args.
8094 set dummy otool; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 if test -n "$ac_ct_OTOOL"; then
8101 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_ac_ct_OTOOL="otool"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8116 IFS=$as_save_IFS
8120 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8121 if test -n "$ac_ct_OTOOL"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8123 $as_echo "$ac_ct_OTOOL" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8129 if test "x$ac_ct_OTOOL" = x; then
8130 OTOOL=":"
8131 else
8132 case $cross_compiling:$ac_tool_warned in
8133 yes:)
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8136 ac_tool_warned=yes ;;
8137 esac
8138 OTOOL=$ac_ct_OTOOL
8140 else
8141 OTOOL="$ac_cv_prog_OTOOL"
8144 if test -n "$ac_tool_prefix"; then
8145 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8146 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if ${ac_cv_prog_OTOOL64+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$OTOOL64"; then
8153 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8162 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 OTOOL64=$ac_cv_prog_OTOOL64
8173 if test -n "$OTOOL64"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8175 $as_echo "$OTOOL64" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8183 if test -z "$ac_cv_prog_OTOOL64"; then
8184 ac_ct_OTOOL64=$OTOOL64
8185 # Extract the first word of "otool64", so it can be a program name with args.
8186 set dummy otool64; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 if test -n "$ac_ct_OTOOL64"; then
8193 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_ac_ct_OTOOL64="otool64"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 break 2
8206 done
8207 done
8208 IFS=$as_save_IFS
8212 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8213 if test -n "$ac_ct_OTOOL64"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8215 $as_echo "$ac_ct_OTOOL64" >&6; }
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8221 if test "x$ac_ct_OTOOL64" = x; then
8222 OTOOL64=":"
8223 else
8224 case $cross_compiling:$ac_tool_warned in
8225 yes:)
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8228 ac_tool_warned=yes ;;
8229 esac
8230 OTOOL64=$ac_ct_OTOOL64
8232 else
8233 OTOOL64="$ac_cv_prog_OTOOL64"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8263 $as_echo_n "checking for -single_module linker flag... " >&6; }
8264 if ${lt_cv_apple_cc_single_mod+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 lt_cv_apple_cc_single_mod=no
8268 if test -z "$LT_MULTI_MODULE"; then
8269 # By default we will add the -single_module flag. You can override
8270 # by either setting the environment variable LT_MULTI_MODULE
8271 # non-empty at configure time, or by adding -multi_module to the
8272 # link flags.
8273 rm -rf libconftest.dylib*
8274 echo "int foo(void){return 1;}" > conftest.c
8275 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8276 -dynamiclib -Wl,-single_module conftest.c" >&5
8277 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8278 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8279 _lt_result=$?
8280 # If there is a non-empty error log, and "single_module"
8281 # appears in it, assume the flag caused a linker warning
8282 if test -s conftest.err && $GREP single_module conftest.err; then
8283 cat conftest.err >&5
8284 # Otherwise, if the output was created with a 0 exit code from
8285 # the compiler, it worked.
8286 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8287 lt_cv_apple_cc_single_mod=yes
8288 else
8289 cat conftest.err >&5
8291 rm -rf libconftest.dylib*
8292 rm -f conftest.*
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8296 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8299 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8300 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 lt_cv_ld_exported_symbols_list=no
8304 save_LDFLAGS=$LDFLAGS
8305 echo "_main" > conftest.sym
8306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8311 main ()
8315 return 0;
8317 _ACEOF
8318 if ac_fn_c_try_link "$LINENO"; then :
8319 lt_cv_ld_exported_symbols_list=yes
8320 else
8321 lt_cv_ld_exported_symbols_list=no
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 LDFLAGS=$save_LDFLAGS
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8329 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8332 $as_echo_n "checking for -force_load linker flag... " >&6; }
8333 if ${lt_cv_ld_force_load+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 lt_cv_ld_force_load=no
8337 cat > conftest.c << _LT_EOF
8338 int forced_loaded() { return 2;}
8339 _LT_EOF
8340 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8341 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8342 echo "$AR cru libconftest.a conftest.o" >&5
8343 $AR cru libconftest.a conftest.o 2>&5
8344 echo "$RANLIB libconftest.a" >&5
8345 $RANLIB libconftest.a 2>&5
8346 cat > conftest.c << _LT_EOF
8347 int main() { return 0;}
8348 _LT_EOF
8349 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8350 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8351 _lt_result=$?
8352 if test -s conftest.err && $GREP force_load conftest.err; then
8353 cat conftest.err >&5
8354 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8355 lt_cv_ld_force_load=yes
8356 else
8357 cat conftest.err >&5
8359 rm -f conftest.err libconftest.a conftest conftest.c
8360 rm -rf conftest.dSYM
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8364 $as_echo "$lt_cv_ld_force_load" >&6; }
8365 case $host_os in
8366 rhapsody* | darwin1.[012])
8367 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8368 darwin1.*)
8369 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8370 darwin*) # darwin 5.x on
8371 # if running on 10.5 or later, the deployment target defaults
8372 # to the OS version, if on x86, and 10.4, the deployment
8373 # target defaults to 10.4. Don't you love it?
8374 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8375 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8376 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8377 10.[012][,.]*)
8378 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8379 10.*)
8380 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8381 esac
8383 esac
8384 if test yes = "$lt_cv_apple_cc_single_mod"; then
8385 _lt_dar_single_mod='$single_module'
8387 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8388 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8389 else
8390 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8392 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8393 _lt_dsymutil='~$DSYMUTIL $lib || :'
8394 else
8395 _lt_dsymutil=
8398 esac
8400 # func_munge_path_list VARIABLE PATH
8401 # -----------------------------------
8402 # VARIABLE is name of variable containing _space_ separated list of
8403 # directories to be munged by the contents of PATH, which is string
8404 # having a format:
8405 # "DIR[:DIR]:"
8406 # string "DIR[ DIR]" will be prepended to VARIABLE
8407 # ":DIR[:DIR]"
8408 # string "DIR[ DIR]" will be appended to VARIABLE
8409 # "DIRP[:DIRP]::[DIRA:]DIRA"
8410 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8411 # "DIRA[ DIRA]" will be appended to VARIABLE
8412 # "DIR[:DIR]"
8413 # VARIABLE will be replaced by "DIR[ DIR]"
8414 func_munge_path_list ()
8416 case x$2 in
8420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8422 x:*)
8423 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8425 *::*)
8426 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8427 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8432 esac
8435 ac_ext=c
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8442 # On Suns, sometimes $CPP names a directory.
8443 if test -n "$CPP" && test -d "$CPP"; then
8444 CPP=
8446 if test -z "$CPP"; then
8447 if ${ac_cv_prog_CPP+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 # Double quotes because CPP needs to be expanded
8451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8453 ac_preproc_ok=false
8454 for ac_c_preproc_warn_flag in '' yes
8456 # Use a header file that comes with gcc, so configuring glibc
8457 # with a fresh cross-compiler works.
8458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 # <limits.h> exists even on freestanding compilers.
8460 # On the NeXT, cc -E runs the code through the compiler's parser,
8461 # not just through cpp. "Syntax error" is here to catch this case.
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #ifdef __STDC__
8465 # include <limits.h>
8466 #else
8467 # include <assert.h>
8468 #endif
8469 Syntax error
8470 _ACEOF
8471 if ac_fn_c_try_cpp "$LINENO"; then :
8473 else
8474 # Broken: fails on valid input.
8475 continue
8477 rm -f conftest.err conftest.i conftest.$ac_ext
8479 # OK, works on sane cases. Now check whether nonexistent headers
8480 # can be detected and how.
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 #include <ac_nonexistent.h>
8484 _ACEOF
8485 if ac_fn_c_try_cpp "$LINENO"; then :
8486 # Broken: success on invalid input.
8487 continue
8488 else
8489 # Passes both tests.
8490 ac_preproc_ok=:
8491 break
8493 rm -f conftest.err conftest.i conftest.$ac_ext
8495 done
8496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8497 rm -f conftest.i conftest.err conftest.$ac_ext
8498 if $ac_preproc_ok; then :
8499 break
8502 done
8503 ac_cv_prog_CPP=$CPP
8506 CPP=$ac_cv_prog_CPP
8507 else
8508 ac_cv_prog_CPP=$CPP
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8511 $as_echo "$CPP" >&6; }
8512 ac_preproc_ok=false
8513 for ac_c_preproc_warn_flag in '' yes
8515 # Use a header file that comes with gcc, so configuring glibc
8516 # with a fresh cross-compiler works.
8517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 # <limits.h> exists even on freestanding compilers.
8519 # On the NeXT, cc -E runs the code through the compiler's parser,
8520 # not just through cpp. "Syntax error" is here to catch this case.
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #ifdef __STDC__
8524 # include <limits.h>
8525 #else
8526 # include <assert.h>
8527 #endif
8528 Syntax error
8529 _ACEOF
8530 if ac_fn_c_try_cpp "$LINENO"; then :
8532 else
8533 # Broken: fails on valid input.
8534 continue
8536 rm -f conftest.err conftest.i conftest.$ac_ext
8538 # OK, works on sane cases. Now check whether nonexistent headers
8539 # can be detected and how.
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 #include <ac_nonexistent.h>
8543 _ACEOF
8544 if ac_fn_c_try_cpp "$LINENO"; then :
8545 # Broken: success on invalid input.
8546 continue
8547 else
8548 # Passes both tests.
8549 ac_preproc_ok=:
8550 break
8552 rm -f conftest.err conftest.i conftest.$ac_ext
8554 done
8555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8556 rm -f conftest.i conftest.err conftest.$ac_ext
8557 if $ac_preproc_ok; then :
8559 else
8560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8562 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8563 See \`config.log' for more details" "$LINENO" 5; }
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8574 $as_echo_n "checking for ANSI C header files... " >&6; }
8575 if ${ac_cv_header_stdc+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <stdlib.h>
8581 #include <stdarg.h>
8582 #include <string.h>
8583 #include <float.h>
8586 main ()
8590 return 0;
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594 ac_cv_header_stdc=yes
8595 else
8596 ac_cv_header_stdc=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 if test $ac_cv_header_stdc = yes; then
8601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <string.h>
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 $EGREP "memchr" >/dev/null 2>&1; then :
8610 else
8611 ac_cv_header_stdc=no
8613 rm -f conftest*
8617 if test $ac_cv_header_stdc = yes; then
8618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 #include <stdlib.h>
8623 _ACEOF
8624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625 $EGREP "free" >/dev/null 2>&1; then :
8627 else
8628 ac_cv_header_stdc=no
8630 rm -f conftest*
8634 if test $ac_cv_header_stdc = yes; then
8635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8636 if test "$cross_compiling" = yes; then :
8638 else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <ctype.h>
8642 #include <stdlib.h>
8643 #if ((' ' & 0x0FF) == 0x020)
8644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8646 #else
8647 # define ISLOWER(c) \
8648 (('a' <= (c) && (c) <= 'i') \
8649 || ('j' <= (c) && (c) <= 'r') \
8650 || ('s' <= (c) && (c) <= 'z'))
8651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8652 #endif
8654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8656 main ()
8658 int i;
8659 for (i = 0; i < 256; i++)
8660 if (XOR (islower (i), ISLOWER (i))
8661 || toupper (i) != TOUPPER (i))
8662 return 2;
8663 return 0;
8665 _ACEOF
8666 if ac_fn_c_try_run "$LINENO"; then :
8668 else
8669 ac_cv_header_stdc=no
8671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8672 conftest.$ac_objext conftest.beam conftest.$ac_ext
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8678 $as_echo "$ac_cv_header_stdc" >&6; }
8679 if test $ac_cv_header_stdc = yes; then
8681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8687 inttypes.h stdint.h unistd.h
8688 do :
8689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8693 cat >>confdefs.h <<_ACEOF
8694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8695 _ACEOF
8699 done
8702 for ac_header in dlfcn.h
8703 do :
8704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8706 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_DLFCN_H 1
8709 _ACEOF
8713 done
8719 # Set options
8723 enable_dlopen=no
8726 enable_win32_dll=no
8729 # Check whether --enable-shared was given.
8730 if test "${enable_shared+set}" = set; then :
8731 enableval=$enable_shared; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_shared=yes ;;
8734 no) enable_shared=no ;;
8736 enable_shared=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8739 for pkg in $enableval; do
8740 IFS=$lt_save_ifs
8741 if test "X$pkg" = "X$p"; then
8742 enable_shared=yes
8744 done
8745 IFS=$lt_save_ifs
8747 esac
8748 else
8749 enable_shared=yes
8760 # Check whether --enable-static was given.
8761 if test "${enable_static+set}" = set; then :
8762 enableval=$enable_static; p=${PACKAGE-default}
8763 case $enableval in
8764 yes) enable_static=yes ;;
8765 no) enable_static=no ;;
8767 enable_static=no
8768 # Look at the argument we got. We use all the common list separators.
8769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8770 for pkg in $enableval; do
8771 IFS=$lt_save_ifs
8772 if test "X$pkg" = "X$p"; then
8773 enable_static=yes
8775 done
8776 IFS=$lt_save_ifs
8778 esac
8779 else
8780 enable_static=yes
8792 # Check whether --with-pic was given.
8793 if test "${with_pic+set}" = set; then :
8794 withval=$with_pic; lt_p=${PACKAGE-default}
8795 case $withval in
8796 yes|no) pic_mode=$withval ;;
8798 pic_mode=default
8799 # Look at the argument we got. We use all the common list separators.
8800 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8801 for lt_pkg in $withval; do
8802 IFS=$lt_save_ifs
8803 if test "X$lt_pkg" = "X$lt_p"; then
8804 pic_mode=yes
8806 done
8807 IFS=$lt_save_ifs
8809 esac
8810 else
8811 pic_mode=default
8821 # Check whether --enable-fast-install was given.
8822 if test "${enable_fast_install+set}" = set; then :
8823 enableval=$enable_fast_install; p=${PACKAGE-default}
8824 case $enableval in
8825 yes) enable_fast_install=yes ;;
8826 no) enable_fast_install=no ;;
8828 enable_fast_install=no
8829 # Look at the argument we got. We use all the common list separators.
8830 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8831 for pkg in $enableval; do
8832 IFS=$lt_save_ifs
8833 if test "X$pkg" = "X$p"; then
8834 enable_fast_install=yes
8836 done
8837 IFS=$lt_save_ifs
8839 esac
8840 else
8841 enable_fast_install=yes
8851 shared_archive_member_spec=
8852 case $host,$enable_shared in
8853 power*-*-aix[5-9]*,yes)
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8855 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8857 # Check whether --with-aix-soname was given.
8858 if test "${with_aix_soname+set}" = set; then :
8859 withval=$with_aix_soname; case $withval in
8860 aix|svr4|both)
8863 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8865 esac
8866 lt_cv_with_aix_soname=$with_aix_soname
8867 else
8868 if ${lt_cv_with_aix_soname+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 lt_cv_with_aix_soname=aix
8874 with_aix_soname=$lt_cv_with_aix_soname
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8878 $as_echo "$with_aix_soname" >&6; }
8879 if test aix != "$with_aix_soname"; then
8880 # For the AIX way of multilib, we name the shared archive member
8881 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8882 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8883 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8884 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8885 if test 64 = "${OBJECT_MODE-32}"; then
8886 shared_archive_member_spec=shr_64
8887 else
8888 shared_archive_member_spec=shr
8893 with_aix_soname=aix
8895 esac
8906 # This can be used to rebuild libtool when needed
8907 LIBTOOL_DEPS=$ltmain
8909 # Always use our own libtool.
8910 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8941 test -z "$LN_S" && LN_S="ln -s"
8956 if test -n "${ZSH_VERSION+set}"; then
8957 setopt NO_GLOB_SUBST
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8961 $as_echo_n "checking for objdir... " >&6; }
8962 if ${lt_cv_objdir+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 rm -f .libs 2>/dev/null
8966 mkdir .libs 2>/dev/null
8967 if test -d .libs; then
8968 lt_cv_objdir=.libs
8969 else
8970 # MS-DOS does not allow filenames that begin with a dot.
8971 lt_cv_objdir=_libs
8973 rmdir .libs 2>/dev/null
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8976 $as_echo "$lt_cv_objdir" >&6; }
8977 objdir=$lt_cv_objdir
8983 cat >>confdefs.h <<_ACEOF
8984 #define LT_OBJDIR "$lt_cv_objdir/"
8985 _ACEOF
8990 case $host_os in
8991 aix3*)
8992 # AIX sometimes has problems with the GCC collect2 program. For some
8993 # reason, if we set the COLLECT_NAMES environment variable, the problems
8994 # vanish in a puff of smoke.
8995 if test set != "${COLLECT_NAMES+set}"; then
8996 COLLECT_NAMES=
8997 export COLLECT_NAMES
9000 esac
9002 # Global variables:
9003 ofile=libtool
9004 can_build_shared=yes
9006 # All known linkers require a '.a' archive for static linking (except MSVC,
9007 # which needs '.lib').
9008 libext=a
9010 with_gnu_ld=$lt_cv_prog_gnu_ld
9012 old_CC=$CC
9013 old_CFLAGS=$CFLAGS
9015 # Set sane defaults for various variables
9016 test -z "$CC" && CC=cc
9017 test -z "$LTCC" && LTCC=$CC
9018 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9019 test -z "$LD" && LD=ld
9020 test -z "$ac_objext" && ac_objext=o
9022 func_cc_basename $compiler
9023 cc_basename=$func_cc_basename_result
9026 # Only perform the check for file, if the check method requires it
9027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9028 case $deplibs_check_method in
9029 file_magic*)
9030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 case $MAGIC_CMD in
9037 [\\/*] | ?:[\\/]*)
9038 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9041 lt_save_MAGIC_CMD=$MAGIC_CMD
9042 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9044 for ac_dir in $ac_dummy; do
9045 IFS=$lt_save_ifs
9046 test -z "$ac_dir" && ac_dir=.
9047 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9048 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9049 if test -n "$file_magic_test_file"; then
9050 case $deplibs_check_method in
9051 "file_magic "*)
9052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9053 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9055 $EGREP "$file_magic_regex" > /dev/null; then
9057 else
9058 cat <<_LT_EOF 1>&2
9060 *** Warning: the command libtool uses to detect shared libraries,
9061 *** $file_magic_cmd, produces output that libtool cannot recognize.
9062 *** The result is that libtool may fail to recognize shared libraries
9063 *** as such. This will affect the creation of libtool libraries that
9064 *** depend on shared libraries, but programs linked with such libtool
9065 *** libraries will work regardless of this problem. Nevertheless, you
9066 *** may want to report the problem to your system manager and/or to
9067 *** bug-libtool@gnu.org
9069 _LT_EOF
9070 fi ;;
9071 esac
9073 break
9075 done
9076 IFS=$lt_save_ifs
9077 MAGIC_CMD=$lt_save_MAGIC_CMD
9079 esac
9082 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9083 if test -n "$MAGIC_CMD"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085 $as_echo "$MAGIC_CMD" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9095 if test -z "$lt_cv_path_MAGIC_CMD"; then
9096 if test -n "$ac_tool_prefix"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9098 $as_echo_n "checking for file... " >&6; }
9099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 case $MAGIC_CMD in
9103 [\\/*] | ?:[\\/]*)
9104 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9107 lt_save_MAGIC_CMD=$MAGIC_CMD
9108 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9110 for ac_dir in $ac_dummy; do
9111 IFS=$lt_save_ifs
9112 test -z "$ac_dir" && ac_dir=.
9113 if test -f "$ac_dir/file"; then
9114 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9115 if test -n "$file_magic_test_file"; then
9116 case $deplibs_check_method in
9117 "file_magic "*)
9118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9119 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9121 $EGREP "$file_magic_regex" > /dev/null; then
9123 else
9124 cat <<_LT_EOF 1>&2
9126 *** Warning: the command libtool uses to detect shared libraries,
9127 *** $file_magic_cmd, produces output that libtool cannot recognize.
9128 *** The result is that libtool may fail to recognize shared libraries
9129 *** as such. This will affect the creation of libtool libraries that
9130 *** depend on shared libraries, but programs linked with such libtool
9131 *** libraries will work regardless of this problem. Nevertheless, you
9132 *** may want to report the problem to your system manager and/or to
9133 *** bug-libtool@gnu.org
9135 _LT_EOF
9136 fi ;;
9137 esac
9139 break
9141 done
9142 IFS=$lt_save_ifs
9143 MAGIC_CMD=$lt_save_MAGIC_CMD
9145 esac
9148 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9149 if test -n "$MAGIC_CMD"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9151 $as_echo "$MAGIC_CMD" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9158 else
9159 MAGIC_CMD=:
9165 esac
9167 # Use C for the default configuration in the libtool script
9169 lt_save_CC=$CC
9170 ac_ext=c
9171 ac_cpp='$CPP $CPPFLAGS'
9172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9177 # Source file extension for C test sources.
9178 ac_ext=c
9180 # Object file extension for compiled C test sources.
9181 objext=o
9182 objext=$objext
9184 # Code to be used in simple compile tests
9185 lt_simple_compile_test_code="int some_variable = 0;"
9187 # Code to be used in simple link tests
9188 lt_simple_link_test_code='int main(){return(0);}'
9196 # If no C compiler was specified, use CC.
9197 LTCC=${LTCC-"$CC"}
9199 # If no C compiler flags were specified, use CFLAGS.
9200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9202 # Allow CC to be a program name with arguments.
9203 compiler=$CC
9205 # Save the default compiler, since it gets overwritten when the other
9206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9207 compiler_DEFAULT=$CC
9209 # save warnings/boilerplate of simple test code
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_compiler_boilerplate=`cat conftest.err`
9214 $RM conftest*
9216 ac_outfile=conftest.$ac_objext
9217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9219 _lt_linker_boilerplate=`cat conftest.err`
9220 $RM -r conftest*
9223 ## CAVEAT EMPTOR:
9224 ## There is no encapsulation within the following macros, do not change
9225 ## the running order or otherwise move them around unless you know exactly
9226 ## what you are doing...
9227 if test -n "$compiler"; then
9229 lt_prog_compiler_no_builtin_flag=
9231 if test yes = "$GCC"; then
9232 case $cc_basename in
9233 nvcc*)
9234 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9236 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9237 esac
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9241 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 lt_cv_prog_compiler_rtti_exceptions=no
9245 ac_outfile=conftest.$ac_objext
9246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9248 # Insert the option either (1) after the last *FLAGS variable, or
9249 # (2) before a word containing "conftest.", or (3) at the end.
9250 # Note that $ac_compile itself does not contain backslashes and begins
9251 # with a dollar sign (not a hyphen), so the echo should work correctly.
9252 # The option is referenced via a variable to avoid confusing sed.
9253 lt_compile=`echo "$ac_compile" | $SED \
9254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9256 -e 's:$: $lt_compiler_flag:'`
9257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9258 (eval "$lt_compile" 2>conftest.err)
9259 ac_status=$?
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 if (exit $ac_status) && test -s "$ac_outfile"; then
9263 # The compiler can only warn and ignore the option if not recognized
9264 # So say no if there are warnings other than the usual output.
9265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9268 lt_cv_prog_compiler_rtti_exceptions=yes
9271 $RM conftest*
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9277 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9279 else
9290 lt_prog_compiler_wl=
9291 lt_prog_compiler_pic=
9292 lt_prog_compiler_static=
9295 if test yes = "$GCC"; then
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_static='-static'
9299 case $host_os in
9300 aix*)
9301 # All AIX code is PIC.
9302 if test ia64 = "$host_cpu"; then
9303 # AIX 5 now supports IA64 processor
9304 lt_prog_compiler_static='-Bstatic'
9306 lt_prog_compiler_pic='-fPIC'
9309 amigaos*)
9310 case $host_cpu in
9311 powerpc)
9312 # see comment about AmigaOS4 .so support
9313 lt_prog_compiler_pic='-fPIC'
9315 m68k)
9316 # FIXME: we need at least 68020 code to build shared libraries, but
9317 # adding the '-m68020' flag to GCC prevents building anything better,
9318 # like '-m68040'.
9319 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9321 esac
9324 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9325 # PIC is the default for these OSes.
9328 mingw* | cygwin* | pw32* | os2* | cegcc*)
9329 # This hack is so that the source file can tell whether it is being
9330 # built for inclusion in a dll (and should export symbols for example).
9331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9332 # (--disable-auto-import) libraries
9333 lt_prog_compiler_pic='-DDLL_EXPORT'
9334 case $host_os in
9335 os2*)
9336 lt_prog_compiler_static='$wl-static'
9338 esac
9341 darwin* | rhapsody*)
9342 # PIC is the default on this platform
9343 # Common symbols not allowed in MH_DYLIB files
9344 lt_prog_compiler_pic='-fno-common'
9347 haiku*)
9348 # PIC is the default for Haiku.
9349 # The "-static" flag exists, but is broken.
9350 lt_prog_compiler_static=
9353 hpux*)
9354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9356 # sets the default TLS model and affects inlining.
9357 case $host_cpu in
9358 hppa*64*)
9359 # +Z the default
9362 lt_prog_compiler_pic='-fPIC'
9364 esac
9367 interix[3-9]*)
9368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9369 # Instead, we relocate shared libraries at runtime.
9372 msdosdjgpp*)
9373 # Just because we use GCC doesn't mean we suddenly get shared libraries
9374 # on systems that don't support them.
9375 lt_prog_compiler_can_build_shared=no
9376 enable_shared=no
9379 *nto* | *qnx*)
9380 # QNX uses GNU C++, but need to define -shared option too, otherwise
9381 # it will coredump.
9382 lt_prog_compiler_pic='-fPIC -shared'
9385 sysv4*MP*)
9386 if test -d /usr/nec; then
9387 lt_prog_compiler_pic=-Kconform_pic
9392 lt_prog_compiler_pic='-fPIC'
9394 esac
9396 case $cc_basename in
9397 nvcc*) # Cuda Compiler Driver 2.2
9398 lt_prog_compiler_wl='-Xlinker '
9399 if test -n "$lt_prog_compiler_pic"; then
9400 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9403 esac
9404 else
9405 # PORTME Check for flag to pass linker flags through the system compiler.
9406 case $host_os in
9407 aix*)
9408 lt_prog_compiler_wl='-Wl,'
9409 if test ia64 = "$host_cpu"; then
9410 # AIX 5 now supports IA64 processor
9411 lt_prog_compiler_static='-Bstatic'
9412 else
9413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9417 darwin* | rhapsody*)
9418 # PIC is the default on this platform
9419 # Common symbols not allowed in MH_DYLIB files
9420 lt_prog_compiler_pic='-fno-common'
9421 case $cc_basename in
9422 nagfor*)
9423 # NAG Fortran compiler
9424 lt_prog_compiler_wl='-Wl,-Wl,,'
9425 lt_prog_compiler_pic='-PIC'
9426 lt_prog_compiler_static='-Bstatic'
9428 esac
9431 mingw* | cygwin* | pw32* | os2* | cegcc*)
9432 # This hack is so that the source file can tell whether it is being
9433 # built for inclusion in a dll (and should export symbols for example).
9434 lt_prog_compiler_pic='-DDLL_EXPORT'
9435 case $host_os in
9436 os2*)
9437 lt_prog_compiler_static='$wl-static'
9439 esac
9442 hpux9* | hpux10* | hpux11*)
9443 lt_prog_compiler_wl='-Wl,'
9444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9445 # not for PA HP-UX.
9446 case $host_cpu in
9447 hppa*64*|ia64*)
9448 # +Z the default
9451 lt_prog_compiler_pic='+Z'
9453 esac
9454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9455 lt_prog_compiler_static='$wl-a ${wl}archive'
9458 irix5* | irix6* | nonstopux*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # PIC (with -KPIC) is the default.
9461 lt_prog_compiler_static='-non_shared'
9464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9465 case $cc_basename in
9466 # old Intel for x86_64, which still supported -KPIC.
9467 ecc*)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-static'
9472 # icc used to be incompatible with GCC.
9473 # ICC 10 doesn't accept -KPIC any more.
9474 icc* | ifort*)
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_pic='-fPIC'
9477 lt_prog_compiler_static='-static'
9479 # Lahey Fortran 8.1.
9480 lf95*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='--shared'
9483 lt_prog_compiler_static='--static'
9485 nagfor*)
9486 # NAG Fortran compiler
9487 lt_prog_compiler_wl='-Wl,-Wl,,'
9488 lt_prog_compiler_pic='-PIC'
9489 lt_prog_compiler_static='-Bstatic'
9491 tcc*)
9492 # Fabrice Bellard et al's Tiny C Compiler
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-fPIC'
9495 lt_prog_compiler_static='-static'
9497 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9498 # Portland Group compilers (*not* the Pentium gcc compiler,
9499 # which looks to be a dead project)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='-fpic'
9502 lt_prog_compiler_static='-Bstatic'
9504 ccc*)
9505 lt_prog_compiler_wl='-Wl,'
9506 # All Alpha code is PIC.
9507 lt_prog_compiler_static='-non_shared'
9509 xl* | bgxl* | bgf* | mpixl*)
9510 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9511 lt_prog_compiler_wl='-Wl,'
9512 lt_prog_compiler_pic='-qpic'
9513 lt_prog_compiler_static='-qstaticlink'
9516 case `$CC -V 2>&1 | sed 5q` in
9517 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9518 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9519 lt_prog_compiler_pic='-KPIC'
9520 lt_prog_compiler_static='-Bstatic'
9521 lt_prog_compiler_wl=''
9523 *Sun\ F* | *Sun*Fortran*)
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9526 lt_prog_compiler_wl='-Qoption ld '
9528 *Sun\ C*)
9529 # Sun C 5.9
9530 lt_prog_compiler_pic='-KPIC'
9531 lt_prog_compiler_static='-Bstatic'
9532 lt_prog_compiler_wl='-Wl,'
9534 *Intel*\ [CF]*Compiler*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fPIC'
9537 lt_prog_compiler_static='-static'
9539 *Portland\ Group*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-fpic'
9542 lt_prog_compiler_static='-Bstatic'
9544 esac
9546 esac
9549 newsos6)
9550 lt_prog_compiler_pic='-KPIC'
9551 lt_prog_compiler_static='-Bstatic'
9554 *nto* | *qnx*)
9555 # QNX uses GNU C++, but need to define -shared option too, otherwise
9556 # it will coredump.
9557 lt_prog_compiler_pic='-fPIC -shared'
9560 osf3* | osf4* | osf5*)
9561 lt_prog_compiler_wl='-Wl,'
9562 # All OSF/1 code is PIC.
9563 lt_prog_compiler_static='-non_shared'
9566 rdos*)
9567 lt_prog_compiler_static='-non_shared'
9570 solaris*)
9571 lt_prog_compiler_pic='-KPIC'
9572 lt_prog_compiler_static='-Bstatic'
9573 case $cc_basename in
9574 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9575 lt_prog_compiler_wl='-Qoption ld ';;
9577 lt_prog_compiler_wl='-Wl,';;
9578 esac
9581 sunos4*)
9582 lt_prog_compiler_wl='-Qoption ld '
9583 lt_prog_compiler_pic='-PIC'
9584 lt_prog_compiler_static='-Bstatic'
9587 sysv4 | sysv4.2uw2* | sysv4.3*)
9588 lt_prog_compiler_wl='-Wl,'
9589 lt_prog_compiler_pic='-KPIC'
9590 lt_prog_compiler_static='-Bstatic'
9593 sysv4*MP*)
9594 if test -d /usr/nec; then
9595 lt_prog_compiler_pic='-Kconform_pic'
9596 lt_prog_compiler_static='-Bstatic'
9600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-KPIC'
9603 lt_prog_compiler_static='-Bstatic'
9606 unicos*)
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_can_build_shared=no
9611 uts4*)
9612 lt_prog_compiler_pic='-pic'
9613 lt_prog_compiler_static='-Bstatic'
9617 lt_prog_compiler_can_build_shared=no
9619 esac
9622 case $host_os in
9623 # For platforms that do not support PIC, -DPIC is meaningless:
9624 *djgpp*)
9625 lt_prog_compiler_pic=
9628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9630 esac
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9633 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9634 if ${lt_cv_prog_compiler_pic+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9640 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9641 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9644 # Check to make sure the PIC flag actually works.
9646 if test -n "$lt_prog_compiler_pic"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9648 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9649 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_pic_works=no
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 # The option is referenced via a variable to avoid confusing sed.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>conftest.err)
9667 ac_status=$?
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s "$ac_outfile"; then
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings other than the usual output.
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_pic_works=yes
9679 $RM conftest*
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9683 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9685 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9686 case $lt_prog_compiler_pic in
9687 "" | " "*) ;;
9688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9689 esac
9690 else
9691 lt_prog_compiler_pic=
9692 lt_prog_compiler_can_build_shared=no
9708 # Check to make sure the static flag actually works.
9710 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9712 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9713 if ${lt_cv_prog_compiler_static_works+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 lt_cv_prog_compiler_static_works=no
9717 save_LDFLAGS=$LDFLAGS
9718 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721 # The linker can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 if test -s conftest.err; then
9724 # Append any errors to the config.log.
9725 cat conftest.err 1>&5
9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728 if diff conftest.exp conftest.er2 >/dev/null; then
9729 lt_cv_prog_compiler_static_works=yes
9731 else
9732 lt_cv_prog_compiler_static_works=yes
9735 $RM -r conftest*
9736 LDFLAGS=$save_LDFLAGS
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9740 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9742 if test yes = "$lt_cv_prog_compiler_static_works"; then
9744 else
9745 lt_prog_compiler_static=
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9756 if ${lt_cv_prog_compiler_c_o+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 lt_cv_prog_compiler_c_o=no
9760 $RM -r conftest 2>/dev/null
9761 mkdir conftest
9762 cd conftest
9763 mkdir out
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766 lt_compiler_flag="-o out/conftest2.$ac_objext"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 lt_compile=`echo "$ac_compile" | $SED \
9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774 -e 's:$: $lt_compiler_flag:'`
9775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9776 (eval "$lt_compile" 2>out/conftest.err)
9777 ac_status=$?
9778 cat out/conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9781 then
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_c_o=yes
9790 chmod u+w . 2>&5
9791 $RM conftest*
9792 # SGI C++ compiler will create directory out/ii_files/ for
9793 # template instantiation
9794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9795 $RM out/* && rmdir out
9796 cd ..
9797 $RM -r conftest
9798 $RM conftest*
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9802 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9811 if ${lt_cv_prog_compiler_c_o+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 lt_cv_prog_compiler_c_o=no
9815 $RM -r conftest 2>/dev/null
9816 mkdir conftest
9817 cd conftest
9818 mkdir out
9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9821 lt_compiler_flag="-o out/conftest2.$ac_objext"
9822 # Insert the option either (1) after the last *FLAGS variable, or
9823 # (2) before a word containing "conftest.", or (3) at the end.
9824 # Note that $ac_compile itself does not contain backslashes and begins
9825 # with a dollar sign (not a hyphen), so the echo should work correctly.
9826 lt_compile=`echo "$ac_compile" | $SED \
9827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9829 -e 's:$: $lt_compiler_flag:'`
9830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9831 (eval "$lt_compile" 2>out/conftest.err)
9832 ac_status=$?
9833 cat out/conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9836 then
9837 # The compiler can only warn and ignore the option if not recognized
9838 # So say no if there are warnings
9839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9842 lt_cv_prog_compiler_c_o=yes
9845 chmod u+w . 2>&5
9846 $RM conftest*
9847 # SGI C++ compiler will create directory out/ii_files/ for
9848 # template instantiation
9849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9850 $RM out/* && rmdir out
9851 cd ..
9852 $RM -r conftest
9853 $RM conftest*
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9857 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9862 hard_links=nottested
9863 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9864 # do not overwrite the value of need_locks provided by the user
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9866 $as_echo_n "checking if we can lock with hard links... " >&6; }
9867 hard_links=yes
9868 $RM conftest*
9869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9870 touch conftest.a
9871 ln conftest.a conftest.b 2>&5 || hard_links=no
9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9874 $as_echo "$hard_links" >&6; }
9875 if test no = "$hard_links"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9877 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9878 need_locks=warn
9880 else
9881 need_locks=no
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9890 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9892 runpath_var=
9893 allow_undefined_flag=
9894 always_export_symbols=no
9895 archive_cmds=
9896 archive_expsym_cmds=
9897 compiler_needs_object=no
9898 enable_shared_with_static_runtimes=no
9899 export_dynamic_flag_spec=
9900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9901 hardcode_automatic=no
9902 hardcode_direct=no
9903 hardcode_direct_absolute=no
9904 hardcode_libdir_flag_spec=
9905 hardcode_libdir_separator=
9906 hardcode_minus_L=no
9907 hardcode_shlibpath_var=unsupported
9908 inherit_rpath=no
9909 link_all_deplibs=unknown
9910 module_cmds=
9911 module_expsym_cmds=
9912 old_archive_from_new_cmds=
9913 old_archive_from_expsyms_cmds=
9914 thread_safe_flag_spec=
9915 whole_archive_flag_spec=
9916 # include_expsyms should be a list of space-separated symbols to be *always*
9917 # included in the symbol list
9918 include_expsyms=
9919 # exclude_expsyms can be an extended regexp of symbols to exclude
9920 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9921 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9922 # as well as any symbol that contains 'd'.
9923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9925 # platforms (ab)use it in PIC code, but their linkers get confused if
9926 # the symbol is explicitly referenced. Since portable code cannot
9927 # rely on this symbol name, it's probably fine to never include it in
9928 # preloaded symbol tables.
9929 # Exclude shared library initialization/finalization symbols.
9930 extract_expsyms_cmds=
9932 case $host_os in
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 if test yes != "$GCC"; then
9938 with_gnu_ld=no
9941 interix*)
9942 # we just hope/assume this is gcc and not c89 (= MSVC++)
9943 with_gnu_ld=yes
9945 openbsd* | bitrig*)
9946 with_gnu_ld=no
9948 esac
9950 ld_shlibs=yes
9952 # On some targets, GNU ld is compatible enough with the native linker
9953 # that we're better off using the native interface for both.
9954 lt_use_gnu_ld_interface=no
9955 if test yes = "$with_gnu_ld"; then
9956 case $host_os in
9957 aix*)
9958 # The AIX port of GNU ld has always aspired to compatibility
9959 # with the native linker. However, as the warning in the GNU ld
9960 # block says, versions before 2.19.5* couldn't really create working
9961 # shared libraries, regardless of the interface used.
9962 case `$LD -v 2>&1` in
9963 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9964 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9965 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9967 lt_use_gnu_ld_interface=yes
9969 esac
9972 lt_use_gnu_ld_interface=yes
9974 esac
9977 if test yes = "$lt_use_gnu_ld_interface"; then
9978 # If archive_cmds runs LD, not CC, wlarc should be empty
9979 wlarc='$wl'
9981 # Set some defaults for GNU ld with shared library support. These
9982 # are reset later if shared libraries are not supported. Putting them
9983 # here allows them to be overridden if necessary.
9984 runpath_var=LD_RUN_PATH
9985 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9986 export_dynamic_flag_spec='$wl--export-dynamic'
9987 # ancient GNU ld didn't support --whole-archive et. al.
9988 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9989 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9990 else
9991 whole_archive_flag_spec=
9993 supports_anon_versioning=no
9994 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9995 *GNU\ gold*) supports_anon_versioning=yes ;;
9996 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9997 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9998 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9999 *\ 2.11.*) ;; # other 2.11 versions
10000 *) supports_anon_versioning=yes ;;
10001 esac
10003 # See if GNU ld supports shared libraries.
10004 case $host_os in
10005 aix[3-9]*)
10006 # On AIX/PPC, the GNU linker is very broken
10007 if test ia64 != "$host_cpu"; then
10008 ld_shlibs=no
10009 cat <<_LT_EOF 1>&2
10011 *** Warning: the GNU linker, at least up to release 2.19, is reported
10012 *** to be unable to reliably create shared libraries on AIX.
10013 *** Therefore, libtool is disabling shared libraries support. If you
10014 *** really care for shared libraries, you may want to install binutils
10015 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10016 *** You will then need to restart the configuration process.
10018 _LT_EOF
10022 amigaos*)
10023 case $host_cpu in
10024 powerpc)
10025 # see comment about AmigaOS4 .so support
10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10027 archive_expsym_cmds=''
10029 m68k)
10030 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)'
10031 hardcode_libdir_flag_spec='-L$libdir'
10032 hardcode_minus_L=yes
10034 esac
10037 beos*)
10038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10039 allow_undefined_flag=unsupported
10040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10041 # support --undefined. This deserves some investigation. FIXME
10042 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10043 else
10044 ld_shlibs=no
10048 cygwin* | mingw* | pw32* | cegcc*)
10049 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10050 # as there is no search path for DLLs.
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 export_dynamic_flag_spec='$wl--export-all-symbols'
10053 allow_undefined_flag=unsupported
10054 always_export_symbols=no
10055 enable_shared_with_static_runtimes=yes
10056 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'
10057 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10061 # If the export-symbols file already is a .def file, use it as
10062 # is; otherwise, prepend EXPORTS...
10063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10064 cp $export_symbols $output_objdir/$soname.def;
10065 else
10066 echo EXPORTS > $output_objdir/$soname.def;
10067 cat $export_symbols >> $output_objdir/$soname.def;
10069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070 else
10071 ld_shlibs=no
10075 haiku*)
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10077 link_all_deplibs=yes
10080 os2*)
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_minus_L=yes
10083 allow_undefined_flag=unsupported
10084 shrext_cmds=.dll
10085 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10086 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10087 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10088 $ECHO EXPORTS >> $output_objdir/$libname.def~
10089 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10090 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10091 emximp -o $lib $output_objdir/$libname.def'
10092 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10093 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10094 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10095 $ECHO EXPORTS >> $output_objdir/$libname.def~
10096 prefix_cmds="$SED"~
10097 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10098 prefix_cmds="$prefix_cmds -e 1d";
10100 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10101 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10103 emximp -o $lib $output_objdir/$libname.def'
10104 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10105 enable_shared_with_static_runtimes=yes
10108 interix[3-9]*)
10109 hardcode_direct=no
10110 hardcode_shlibpath_var=no
10111 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10112 export_dynamic_flag_spec='$wl-E'
10113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10114 # Instead, shared libraries are loaded at an image base (0x10000000 by
10115 # default) and relocated if they conflict, which is a slow very memory
10116 # consuming and fragmenting process. To avoid this, we pick a random,
10117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10120 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'
10123 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10124 tmp_diet=no
10125 if test linux-dietlibc = "$host_os"; then
10126 case $cc_basename in
10127 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10128 esac
10130 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10131 && test no = "$tmp_diet"
10132 then
10133 tmp_addflag=' $pic_flag'
10134 tmp_sharedflag='-shared'
10135 case $cc_basename,$host_cpu in
10136 pgcc*) # Portland Group C compiler
10137 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'
10138 tmp_addflag=' $pic_flag'
10140 pgf77* | pgf90* | pgf95* | pgfortran*)
10141 # Portland Group f77 and f90 compilers
10142 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'
10143 tmp_addflag=' $pic_flag -Mnomain' ;;
10144 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10145 tmp_addflag=' -i_dynamic' ;;
10146 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10147 tmp_addflag=' -i_dynamic -nofor_main' ;;
10148 ifc* | ifort*) # Intel Fortran compiler
10149 tmp_addflag=' -nofor_main' ;;
10150 lf95*) # Lahey Fortran 8.1
10151 whole_archive_flag_spec=
10152 tmp_sharedflag='--shared' ;;
10153 nagfor*) # NAGFOR 5.3
10154 tmp_sharedflag='-Wl,-shared' ;;
10155 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10156 tmp_sharedflag='-qmkshrobj'
10157 tmp_addflag= ;;
10158 nvcc*) # Cuda Compiler Driver 2.2
10159 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'
10160 compiler_needs_object=yes
10162 esac
10163 case `$CC -V 2>&1 | sed 5q` in
10164 *Sun\ C*) # Sun C 5.9
10165 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'
10166 compiler_needs_object=yes
10167 tmp_sharedflag='-G' ;;
10168 *Sun\ F*) # Sun Fortran 8.3
10169 tmp_sharedflag='-G' ;;
10170 esac
10171 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10173 if test yes = "$supports_anon_versioning"; then
10174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10176 echo "local: *; };" >> $output_objdir/$libname.ver~
10177 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10180 case $cc_basename in
10181 tcc*)
10182 export_dynamic_flag_spec='-rdynamic'
10184 xlf* | bgf* | bgxlf* | mpixlf*)
10185 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10186 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10188 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10189 if test yes = "$supports_anon_versioning"; then
10190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10192 echo "local: *; };" >> $output_objdir/$libname.ver~
10193 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10196 esac
10197 else
10198 ld_shlibs=no
10202 netbsd*)
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10205 wlarc=
10206 else
10207 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10212 solaris*)
10213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10214 ld_shlibs=no
10215 cat <<_LT_EOF 1>&2
10217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10218 *** create shared libraries on Solaris systems. Therefore, libtool
10219 *** is disabling shared libraries support. We urge you to upgrade GNU
10220 *** binutils to release 2.9.1 or newer. Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10224 _LT_EOF
10225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10228 else
10229 ld_shlibs=no
10233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10234 case `$LD -v 2>&1` in
10235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10236 ld_shlibs=no
10237 cat <<_LT_EOF 1>&2
10239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10240 *** reliably create shared libraries on SCO systems. Therefore, libtool
10241 *** is disabling shared libraries support. We urge you to upgrade GNU
10242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10243 *** your PATH or compiler configuration so that the native linker is
10244 *** used, and then restart.
10246 _LT_EOF
10249 # For security reasons, it is highly recommended that you always
10250 # use absolute paths for naming shared libraries, and exclude the
10251 # DT_RUNPATH tag from executables and libraries. But doing so
10252 # requires that you compile everything twice, which is a pain.
10253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10257 else
10258 ld_shlibs=no
10261 esac
10264 sunos4*)
10265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10266 wlarc=
10267 hardcode_direct=yes
10268 hardcode_shlibpath_var=no
10272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10275 else
10276 ld_shlibs=no
10279 esac
10281 if test no = "$ld_shlibs"; then
10282 runpath_var=
10283 hardcode_libdir_flag_spec=
10284 export_dynamic_flag_spec=
10285 whole_archive_flag_spec=
10287 else
10288 # PORTME fill in a description of your system's linker (not GNU ld)
10289 case $host_os in
10290 aix3*)
10291 allow_undefined_flag=unsupported
10292 always_export_symbols=yes
10293 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'
10294 # Note: this linker hardcodes the directories in LIBPATH if there
10295 # are no directories specified by -L.
10296 hardcode_minus_L=yes
10297 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10298 # Neither direct hardcoding nor static linking is supported with a
10299 # broken collect2.
10300 hardcode_direct=unsupported
10304 aix[4-9]*)
10305 if test ia64 = "$host_cpu"; then
10306 # On IA64, the linker does run time linking by default, so we don't
10307 # have to do anything special.
10308 aix_use_runtimelinking=no
10309 exp_sym_flag='-Bexport'
10310 no_entry_flag=
10311 else
10312 # If we're using GNU nm, then we don't want the "-C" option.
10313 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10314 # Without the "-l" option, or with the "-B" option, AIX nm treats
10315 # weak defined symbols like other global defined symbols, whereas
10316 # GNU nm marks them as "W".
10317 # While the 'weak' keyword is ignored in the Export File, we need
10318 # it in the Import File for the 'aix-soname' feature, so we have
10319 # to replace the "-B" option with "-P" for AIX nm.
10320 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10321 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10322 else
10323 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10325 aix_use_runtimelinking=no
10327 # Test if we are trying to use run time linking or normal
10328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10329 # have runtime linking enabled, and use it for executables.
10330 # For shared libraries, we enable/disable runtime linking
10331 # depending on the kind of the shared library created -
10332 # when "with_aix_soname,aix_use_runtimelinking" is:
10333 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10334 # "aix,yes" lib.so shared, rtl:yes, for executables
10335 # lib.a static archive
10336 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10337 # lib.a(lib.so.V) shared, rtl:no, for executables
10338 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10339 # lib.a(lib.so.V) shared, rtl:no
10340 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10341 # lib.a static archive
10342 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10343 for ld_flag in $LDFLAGS; do
10344 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10345 aix_use_runtimelinking=yes
10346 break
10348 done
10349 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10350 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10351 # so we don't have lib.a shared libs to link our executables.
10352 # We have to force runtime linking in this case.
10353 aix_use_runtimelinking=yes
10354 LDFLAGS="$LDFLAGS -Wl,-brtl"
10357 esac
10359 exp_sym_flag='-bexport'
10360 no_entry_flag='-bnoentry'
10363 # When large executables or shared objects are built, AIX ld can
10364 # have problems creating the table of contents. If linking a library
10365 # or program results in "error TOC overflow" add -mminimal-toc to
10366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10369 archive_cmds=''
10370 hardcode_direct=yes
10371 hardcode_direct_absolute=yes
10372 hardcode_libdir_separator=':'
10373 link_all_deplibs=yes
10374 file_list_spec='$wl-f,'
10375 case $with_aix_soname,$aix_use_runtimelinking in
10376 aix,*) ;; # traditional, no import file
10377 svr4,* | *,yes) # use import file
10378 # The Import File defines what to hardcode.
10379 hardcode_direct=no
10380 hardcode_direct_absolute=no
10382 esac
10384 if test yes = "$GCC"; then
10385 case $host_os in aix4.[012]|aix4.[012].*)
10386 # We only want to do this on AIX 4.2 and lower, the check
10387 # below for broken collect2 doesn't work under 4.3+
10388 collect2name=`$CC -print-prog-name=collect2`
10389 if test -f "$collect2name" &&
10390 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10391 then
10392 # We have reworked collect2
10394 else
10395 # We have old collect2
10396 hardcode_direct=unsupported
10397 # It fails to find uninstalled libraries when the uninstalled
10398 # path is not listed in the libpath. Setting hardcode_minus_L
10399 # to unsupported forces relinking
10400 hardcode_minus_L=yes
10401 hardcode_libdir_flag_spec='-L$libdir'
10402 hardcode_libdir_separator=
10405 esac
10406 shared_flag='-shared'
10407 if test yes = "$aix_use_runtimelinking"; then
10408 shared_flag="$shared_flag "'$wl-G'
10410 # Need to ensure runtime linking is disabled for the traditional
10411 # shared library, or the linker may eventually find shared libraries
10412 # /with/ Import File - we do not want to mix them.
10413 shared_flag_aix='-shared'
10414 shared_flag_svr4='-shared $wl-G'
10415 else
10416 # not using gcc
10417 if test ia64 = "$host_cpu"; then
10418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10419 # chokes on -Wl,-G. The following line is correct:
10420 shared_flag='-G'
10421 else
10422 if test yes = "$aix_use_runtimelinking"; then
10423 shared_flag='$wl-G'
10424 else
10425 shared_flag='$wl-bM:SRE'
10427 shared_flag_aix='$wl-bM:SRE'
10428 shared_flag_svr4='$wl-G'
10432 export_dynamic_flag_spec='$wl-bexpall'
10433 # It seems that -bexpall does not export symbols beginning with
10434 # underscore (_), so it is better to generate a list of symbols to export.
10435 always_export_symbols=yes
10436 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10437 # Warning - without using the other runtime loading flags (-brtl),
10438 # -berok will link without error, but may produce a broken library.
10439 allow_undefined_flag='-berok'
10440 # Determine the default libpath from the value encoded in an
10441 # empty executable.
10442 if test set = "${lt_cv_aix_libpath+set}"; then
10443 aix_libpath=$lt_cv_aix_libpath
10444 else
10445 if ${lt_cv_aix_libpath_+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10452 main ()
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10461 lt_aix_libpath_sed='
10462 /Import File Strings/,/^$/ {
10463 /^0/ {
10464 s/^0 *\([^ ]*\) *$/\1/
10468 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 # Check for a 64-bit object if we didn't find anything.
10470 if test -z "$lt_cv_aix_libpath_"; then
10471 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 if test -z "$lt_cv_aix_libpath_"; then
10477 lt_cv_aix_libpath_=/usr/lib:/lib
10482 aix_libpath=$lt_cv_aix_libpath_
10485 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10486 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10487 else
10488 if test ia64 = "$host_cpu"; then
10489 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10490 allow_undefined_flag="-z nodefs"
10491 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"
10492 else
10493 # Determine the default libpath from the value encoded in an
10494 # empty executable.
10495 if test set = "${lt_cv_aix_libpath+set}"; then
10496 aix_libpath=$lt_cv_aix_libpath
10497 else
10498 if ${lt_cv_aix_libpath_+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10505 main ()
10509 return 0;
10511 _ACEOF
10512 if ac_fn_c_try_link "$LINENO"; then :
10514 lt_aix_libpath_sed='
10515 /Import File Strings/,/^$/ {
10516 /^0/ {
10517 s/^0 *\([^ ]*\) *$/\1/
10521 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10522 # Check for a 64-bit object if we didn't find anything.
10523 if test -z "$lt_cv_aix_libpath_"; then
10524 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 if test -z "$lt_cv_aix_libpath_"; then
10530 lt_cv_aix_libpath_=/usr/lib:/lib
10535 aix_libpath=$lt_cv_aix_libpath_
10538 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10539 # Warning - without using the other run time loading flags,
10540 # -berok will link without error, but may produce a broken library.
10541 no_undefined_flag=' $wl-bernotok'
10542 allow_undefined_flag=' $wl-berok'
10543 if test yes = "$with_gnu_ld"; then
10544 # We only use this code for GNU lds that support --whole-archive.
10545 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10546 else
10547 # Exported symbols can be pulled into shared objects from archives
10548 whole_archive_flag_spec='$convenience'
10550 archive_cmds_need_lc=yes
10551 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10552 # -brtl affects multiple linker settings, -berok does not and is overridden later
10553 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10554 if test svr4 != "$with_aix_soname"; then
10555 # This is similar to how AIX traditionally builds its shared libraries.
10556 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10558 if test aix != "$with_aix_soname"; then
10559 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10560 else
10561 # used by -dlpreopen to get the symbols
10562 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10564 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10569 amigaos*)
10570 case $host_cpu in
10571 powerpc)
10572 # see comment about AmigaOS4 .so support
10573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10574 archive_expsym_cmds=''
10576 m68k)
10577 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)'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_minus_L=yes
10581 esac
10584 bsdi[45]*)
10585 export_dynamic_flag_spec=-rdynamic
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 # When not using gcc, we currently assume that we are using
10590 # Microsoft Visual C++.
10591 # hardcode_libdir_flag_spec is actually meaningless, as there is
10592 # no search path for DLLs.
10593 case $cc_basename in
10594 cl*)
10595 # Native MSVC
10596 hardcode_libdir_flag_spec=' '
10597 allow_undefined_flag=unsupported
10598 always_export_symbols=yes
10599 file_list_spec='@'
10600 # Tell ltmain to make .lib files, not .a files.
10601 libext=lib
10602 # Tell ltmain to make .dll files, not .so files.
10603 shrext_cmds=.dll
10604 # FIXME: Setting linknames here is a bad hack.
10605 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10606 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10607 cp "$export_symbols" "$output_objdir/$soname.def";
10608 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10609 else
10610 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10612 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10613 linknames='
10614 # The linker will not automatically build a static lib if we build a DLL.
10615 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10616 enable_shared_with_static_runtimes=yes
10617 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10619 # Don't use ranlib
10620 old_postinstall_cmds='chmod 644 $oldlib'
10621 postlink_cmds='lt_outputfile="@OUTPUT@"~
10622 lt_tool_outputfile="@TOOL_OUTPUT@"~
10623 case $lt_outputfile in
10624 *.exe|*.EXE) ;;
10626 lt_outputfile=$lt_outputfile.exe
10627 lt_tool_outputfile=$lt_tool_outputfile.exe
10629 esac~
10630 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10631 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10632 $RM "$lt_outputfile.manifest";
10636 # Assume MSVC wrapper
10637 hardcode_libdir_flag_spec=' '
10638 allow_undefined_flag=unsupported
10639 # Tell ltmain to make .lib files, not .a files.
10640 libext=lib
10641 # Tell ltmain to make .dll files, not .so files.
10642 shrext_cmds=.dll
10643 # FIXME: Setting linknames here is a bad hack.
10644 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10645 # The linker will automatically build a .lib file if we build a DLL.
10646 old_archive_from_new_cmds='true'
10647 # FIXME: Should let the user specify the lib program.
10648 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10649 enable_shared_with_static_runtimes=yes
10651 esac
10654 darwin* | rhapsody*)
10657 archive_cmds_need_lc=no
10658 hardcode_direct=no
10659 hardcode_automatic=yes
10660 hardcode_shlibpath_var=unsupported
10661 if test yes = "$lt_cv_ld_force_load"; then
10662 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\"`'
10664 else
10665 whole_archive_flag_spec=''
10667 link_all_deplibs=yes
10668 allow_undefined_flag=$_lt_dar_allow_undefined
10669 case $cc_basename in
10670 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10671 *) _lt_dar_can_shared=$GCC ;;
10672 esac
10673 if test yes = "$_lt_dar_can_shared"; then
10674 output_verbose_link_cmd=func_echo_all
10675 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10676 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10677 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"
10678 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"
10680 else
10681 ld_shlibs=no
10686 dgux*)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_libdir_flag_spec='-L$libdir'
10689 hardcode_shlibpath_var=no
10692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10693 # support. Future versions do this automatically, but an explicit c++rt0.o
10694 # does not break anything, and helps significantly (at the cost of a little
10695 # extra space).
10696 freebsd2.2*)
10697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 hardcode_direct=yes
10700 hardcode_shlibpath_var=no
10703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10704 freebsd2.*)
10705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_direct=yes
10707 hardcode_minus_L=yes
10708 hardcode_shlibpath_var=no
10711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10712 freebsd* | dragonfly*)
10713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10714 hardcode_libdir_flag_spec='-R$libdir'
10715 hardcode_direct=yes
10716 hardcode_shlibpath_var=no
10719 hpux9*)
10720 if test yes = "$GCC"; then
10721 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10722 else
10723 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10725 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10726 hardcode_libdir_separator=:
10727 hardcode_direct=yes
10729 # hardcode_minus_L: Not really in the search PATH,
10730 # but as the default location of the library.
10731 hardcode_minus_L=yes
10732 export_dynamic_flag_spec='$wl-E'
10735 hpux10*)
10736 if test yes,no = "$GCC,$with_gnu_ld"; then
10737 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10738 else
10739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10741 if test no = "$with_gnu_ld"; then
10742 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10743 hardcode_libdir_separator=:
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 export_dynamic_flag_spec='$wl-E'
10747 # hardcode_minus_L: Not really in the search PATH,
10748 # but as the default location of the library.
10749 hardcode_minus_L=yes
10753 hpux11*)
10754 if test yes,no = "$GCC,$with_gnu_ld"; then
10755 case $host_cpu in
10756 hppa*64*)
10757 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 ia64*)
10760 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 esac
10766 else
10767 case $host_cpu in
10768 hppa*64*)
10769 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 ia64*)
10772 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10776 # Older versions of the 11.00 compiler do not understand -b yet
10777 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10779 $as_echo_n "checking if $CC understands -b... " >&6; }
10780 if ${lt_cv_prog_compiler__b+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 lt_cv_prog_compiler__b=no
10784 save_LDFLAGS=$LDFLAGS
10785 LDFLAGS="$LDFLAGS -b"
10786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10788 # The linker can only warn and ignore the option if not recognized
10789 # So say no if there are warnings
10790 if test -s conftest.err; then
10791 # Append any errors to the config.log.
10792 cat conftest.err 1>&5
10793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10795 if diff conftest.exp conftest.er2 >/dev/null; then
10796 lt_cv_prog_compiler__b=yes
10798 else
10799 lt_cv_prog_compiler__b=yes
10802 $RM -r conftest*
10803 LDFLAGS=$save_LDFLAGS
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10807 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10809 if test yes = "$lt_cv_prog_compiler__b"; then
10810 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10811 else
10812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10816 esac
10818 if test no = "$with_gnu_ld"; then
10819 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10820 hardcode_libdir_separator=:
10822 case $host_cpu in
10823 hppa*64*|ia64*)
10824 hardcode_direct=no
10825 hardcode_shlibpath_var=no
10828 hardcode_direct=yes
10829 hardcode_direct_absolute=yes
10830 export_dynamic_flag_spec='$wl-E'
10832 # hardcode_minus_L: Not really in the search PATH,
10833 # but as the default location of the library.
10834 hardcode_minus_L=yes
10836 esac
10840 irix5* | irix6* | nonstopux*)
10841 if test yes = "$GCC"; then
10842 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'
10843 # Try to use the -exported_symbol ld option, if it does not
10844 # work, assume that -exports_file does not work either and
10845 # implicitly export all symbols.
10846 # This should be the same for all languages, so no per-tag cache variable.
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10848 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10849 if ${lt_cv_irix_exported_symbol+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 save_LDFLAGS=$LDFLAGS
10853 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 int foo (void) { return 0; }
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 lt_cv_irix_exported_symbol=yes
10860 else
10861 lt_cv_irix_exported_symbol=no
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LDFLAGS=$save_LDFLAGS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10868 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10869 if test yes = "$lt_cv_irix_exported_symbol"; then
10870 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'
10872 else
10873 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'
10874 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'
10876 archive_cmds_need_lc='no'
10877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10878 hardcode_libdir_separator=:
10879 inherit_rpath=yes
10880 link_all_deplibs=yes
10883 linux*)
10884 case $cc_basename in
10885 tcc*)
10886 # Fabrice Bellard et al's Tiny C Compiler
10887 ld_shlibs=yes
10888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10890 esac
10893 netbsd*)
10894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10896 else
10897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10899 hardcode_libdir_flag_spec='-R$libdir'
10900 hardcode_direct=yes
10901 hardcode_shlibpath_var=no
10904 newsos6)
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=yes
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 hardcode_libdir_separator=:
10909 hardcode_shlibpath_var=no
10912 *nto* | *qnx*)
10915 openbsd* | bitrig*)
10916 if test -f /usr/libexec/ld.so; then
10917 hardcode_direct=yes
10918 hardcode_shlibpath_var=no
10919 hardcode_direct_absolute=yes
10920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10923 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10924 export_dynamic_flag_spec='$wl-E'
10925 else
10926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10927 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10929 else
10930 ld_shlibs=no
10934 os2*)
10935 hardcode_libdir_flag_spec='-L$libdir'
10936 hardcode_minus_L=yes
10937 allow_undefined_flag=unsupported
10938 shrext_cmds=.dll
10939 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10940 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10941 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10942 $ECHO EXPORTS >> $output_objdir/$libname.def~
10943 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10944 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10945 emximp -o $lib $output_objdir/$libname.def'
10946 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10947 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10948 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10949 $ECHO EXPORTS >> $output_objdir/$libname.def~
10950 prefix_cmds="$SED"~
10951 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10952 prefix_cmds="$prefix_cmds -e 1d";
10954 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10955 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10956 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10957 emximp -o $lib $output_objdir/$libname.def'
10958 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10959 enable_shared_with_static_runtimes=yes
10962 osf3*)
10963 if test yes = "$GCC"; then
10964 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10965 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'
10966 else
10967 allow_undefined_flag=' -expect_unresolved \*'
10968 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'
10970 archive_cmds_need_lc='no'
10971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10972 hardcode_libdir_separator=:
10975 osf4* | osf5*) # as osf3* with the addition of -msym flag
10976 if test yes = "$GCC"; then
10977 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10978 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'
10979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10980 else
10981 allow_undefined_flag=' -expect_unresolved \*'
10982 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'
10983 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~
10984 $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'
10986 # Both c and cxx compiler support -rpath directly
10987 hardcode_libdir_flag_spec='-rpath $libdir'
10989 archive_cmds_need_lc='no'
10990 hardcode_libdir_separator=:
10993 solaris*)
10994 no_undefined_flag=' -z defs'
10995 if test yes = "$GCC"; then
10996 wlarc='$wl'
10997 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10999 $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'
11000 else
11001 case `$CC -V 2>&1` in
11002 *"Compilers 5.0"*)
11003 wlarc=''
11004 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11006 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11009 wlarc='$wl'
11010 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11012 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11014 esac
11016 hardcode_libdir_flag_spec='-R$libdir'
11017 hardcode_shlibpath_var=no
11018 case $host_os in
11019 solaris2.[0-5] | solaris2.[0-5].*) ;;
11021 # The compiler driver will combine and reorder linker options,
11022 # but understands '-z linker_flag'. GCC discards it without '$wl',
11023 # but is careful enough not to reorder.
11024 # Supported since Solaris 2.6 (maybe 2.5.1?)
11025 if test yes = "$GCC"; then
11026 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11027 else
11028 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11031 esac
11032 link_all_deplibs=yes
11035 sunos4*)
11036 if test sequent = "$host_vendor"; then
11037 # Use $CC to link under sequent, because it throws in some extra .o
11038 # files that make .init and .fini sections work.
11039 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11040 else
11041 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11043 hardcode_libdir_flag_spec='-L$libdir'
11044 hardcode_direct=yes
11045 hardcode_minus_L=yes
11046 hardcode_shlibpath_var=no
11049 sysv4)
11050 case $host_vendor in
11051 sni)
11052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053 hardcode_direct=yes # is this really true???
11055 siemens)
11056 ## LD is ld it makes a PLAMLIB
11057 ## CC just makes a GrossModule.
11058 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11059 reload_cmds='$CC -r -o $output$reload_objs'
11060 hardcode_direct=no
11062 motorola)
11063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11066 esac
11067 runpath_var='LD_RUN_PATH'
11068 hardcode_shlibpath_var=no
11071 sysv4.3*)
11072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073 hardcode_shlibpath_var=no
11074 export_dynamic_flag_spec='-Bexport'
11077 sysv4*MP*)
11078 if test -d /usr/nec; then
11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_shlibpath_var=no
11081 runpath_var=LD_RUN_PATH
11082 hardcode_runpath_var=yes
11083 ld_shlibs=yes
11087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11088 no_undefined_flag='$wl-z,text'
11089 archive_cmds_need_lc=no
11090 hardcode_shlibpath_var=no
11091 runpath_var='LD_RUN_PATH'
11093 if test yes = "$GCC"; then
11094 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 else
11097 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102 sysv5* | sco3.2v5* | sco5v6*)
11103 # Note: We CANNOT use -z defs as we might desire, because we do not
11104 # link with -lc, and that would cause any symbols used from libc to
11105 # always be unresolved, which means just about no library would
11106 # ever link correctly. If we're not using GNU ld we use -z text
11107 # though, which does catch some bad symbols but isn't as heavy-handed
11108 # as -z defs.
11109 no_undefined_flag='$wl-z,text'
11110 allow_undefined_flag='$wl-z,nodefs'
11111 archive_cmds_need_lc=no
11112 hardcode_shlibpath_var=no
11113 hardcode_libdir_flag_spec='$wl-R,$libdir'
11114 hardcode_libdir_separator=':'
11115 link_all_deplibs=yes
11116 export_dynamic_flag_spec='$wl-Bexport'
11117 runpath_var='LD_RUN_PATH'
11119 if test yes = "$GCC"; then
11120 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 else
11123 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 uts4*)
11129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130 hardcode_libdir_flag_spec='-L$libdir'
11131 hardcode_shlibpath_var=no
11135 ld_shlibs=no
11137 esac
11139 if test sni = "$host_vendor"; then
11140 case $host in
11141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11142 export_dynamic_flag_spec='$wl-Blargedynsym'
11144 esac
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11149 $as_echo "$ld_shlibs" >&6; }
11150 test no = "$ld_shlibs" && can_build_shared=no
11152 with_gnu_ld=$with_gnu_ld
11169 # Do we need to explicitly link libc?
11171 case "x$archive_cmds_need_lc" in
11172 x|xyes)
11173 # Assume -lc should be added
11174 archive_cmds_need_lc=yes
11176 if test yes,yes = "$GCC,$enable_shared"; then
11177 case $archive_cmds in
11178 *'~'*)
11179 # FIXME: we may have to deal with multi-command sequences.
11181 '$CC '*)
11182 # Test whether the compiler implicitly links with -lc since on some
11183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11184 # to ld, don't add -lc before -lgcc.
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11186 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11187 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 $RM conftest*
11191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11194 (eval $ac_compile) 2>&5
11195 ac_status=$?
11196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197 test $ac_status = 0; } 2>conftest.err; then
11198 soname=conftest
11199 lib=conftest
11200 libobjs=conftest.$ac_objext
11201 deplibs=
11202 wl=$lt_prog_compiler_wl
11203 pic_flag=$lt_prog_compiler_pic
11204 compiler_flags=-v
11205 linker_flags=-v
11206 verstring=
11207 output_objdir=.
11208 libname=conftest
11209 lt_save_allow_undefined_flag=$allow_undefined_flag
11210 allow_undefined_flag=
11211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11212 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11213 ac_status=$?
11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215 test $ac_status = 0; }
11216 then
11217 lt_cv_archive_cmds_need_lc=no
11218 else
11219 lt_cv_archive_cmds_need_lc=yes
11221 allow_undefined_flag=$lt_save_allow_undefined_flag
11222 else
11223 cat conftest.err 1>&5
11225 $RM conftest*
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11229 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11230 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11232 esac
11235 esac
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11391 if test yes = "$GCC"; then
11392 case $host_os in
11393 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11394 *) lt_awk_arg='/^libraries:/' ;;
11395 esac
11396 case $host_os in
11397 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11398 *) lt_sed_strip_eq='s|=/|/|g' ;;
11399 esac
11400 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11401 case $lt_search_path_spec in
11402 *\;*)
11403 # if the path contains ";" then we assume it to be the separator
11404 # otherwise default to the standard path separator (i.e. ":") - it is
11405 # assumed that no part of a normal pathname contains ";" but that should
11406 # okay in the real world where ";" in dirpaths is itself problematic.
11407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11412 esac
11413 # Ok, now we have the path, separated by spaces, we can step through it
11414 # and add multilib dir if necessary...
11415 lt_tmp_lt_search_path_spec=
11416 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11417 # ...but if some path component already ends with the multilib dir we assume
11418 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11419 case "$lt_multi_os_dir; $lt_search_path_spec " in
11420 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11421 lt_multi_os_dir=
11423 esac
11424 for lt_sys_path in $lt_search_path_spec; do
11425 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11427 elif test -n "$lt_multi_os_dir"; then
11428 test -d "$lt_sys_path" && \
11429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11431 done
11432 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11433 BEGIN {RS = " "; FS = "/|\n";} {
11434 lt_foo = "";
11435 lt_count = 0;
11436 for (lt_i = NF; lt_i > 0; lt_i--) {
11437 if ($lt_i != "" && $lt_i != ".") {
11438 if ($lt_i == "..") {
11439 lt_count++;
11440 } else {
11441 if (lt_count == 0) {
11442 lt_foo = "/" $lt_i lt_foo;
11443 } else {
11444 lt_count--;
11449 if (lt_foo != "") { lt_freq[lt_foo]++; }
11450 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11452 # AWK program above erroneously prepends '/' to C:/dos/paths
11453 # for these hosts.
11454 case $host_os in
11455 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11456 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11457 esac
11458 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11459 else
11460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11462 library_names_spec=
11463 libname_spec='lib$name'
11464 soname_spec=
11465 shrext_cmds=.so
11466 postinstall_cmds=
11467 postuninstall_cmds=
11468 finish_cmds=
11469 finish_eval=
11470 shlibpath_var=
11471 shlibpath_overrides_runpath=unknown
11472 version_type=none
11473 dynamic_linker="$host_os ld.so"
11474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11475 need_lib_prefix=unknown
11476 hardcode_into_libs=no
11478 # when you set need_version to no, make sure it does not cause -set_version
11479 # flags to be left without arguments
11480 need_version=unknown
11484 case $host_os in
11485 aix3*)
11486 version_type=linux # correct to gnu/linux during the next big refactor
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11488 shlibpath_var=LIBPATH
11490 # AIX 3 has no versioning support, so we append a major version to the name.
11491 soname_spec='$libname$release$shared_ext$major'
11494 aix[4-9]*)
11495 version_type=linux # correct to gnu/linux during the next big refactor
11496 need_lib_prefix=no
11497 need_version=no
11498 hardcode_into_libs=yes
11499 if test ia64 = "$host_cpu"; then
11500 # AIX 5 supports IA64
11501 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 else
11504 # With GCC up to 2.95.x, collect2 would create an import file
11505 # for dependence libraries. The import file would start with
11506 # the line '#! .'. This would cause the generated library to
11507 # depend on '.', always an invalid library. This was fixed in
11508 # development snapshots of GCC prior to 3.0.
11509 case $host_os in
11510 aix4 | aix4.[01] | aix4.[01].*)
11511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11512 echo ' yes '
11513 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11515 else
11516 can_build_shared=no
11519 esac
11520 # Using Import Files as archive members, it is possible to support
11521 # filename-based versioning of shared library archives on AIX. While
11522 # this would work for both with and without runtime linking, it will
11523 # prevent static linking of such archives. So we do filename-based
11524 # shared library versioning with .so extension only, which is used
11525 # when both runtime linking and shared linking is enabled.
11526 # Unfortunately, runtime linking may impact performance, so we do
11527 # not want this to be the default eventually. Also, we use the
11528 # versioned .so libs for executables only if there is the -brtl
11529 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11530 # To allow for filename-based versioning support, we need to create
11531 # libNAME.so.V as an archive file, containing:
11532 # *) an Import File, referring to the versioned filename of the
11533 # archive as well as the shared archive member, telling the
11534 # bitwidth (32 or 64) of that shared object, and providing the
11535 # list of exported symbols of that shared object, eventually
11536 # decorated with the 'weak' keyword
11537 # *) the shared object with the F_LOADONLY flag set, to really avoid
11538 # it being seen by the linker.
11539 # At run time we better use the real file rather than another symlink,
11540 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11542 case $with_aix_soname,$aix_use_runtimelinking in
11543 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11544 # soname into executable. Probably we can add versioning support to
11545 # collect2, so additional links can be useful in future.
11546 aix,yes) # traditional libtool
11547 dynamic_linker='AIX unversionable lib.so'
11548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11549 # instead of lib<name>.a to let people know that these are not
11550 # typical AIX shared libraries.
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553 aix,no) # traditional AIX only
11554 dynamic_linker='AIX lib.a(lib.so.V)'
11555 # We preserve .a as extension for shared libraries through AIX4.2
11556 # and later when we are not doing run time linking.
11557 library_names_spec='$libname$release.a $libname.a'
11558 soname_spec='$libname$release$shared_ext$major'
11560 svr4,*) # full svr4 only
11561 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11562 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11563 # We do not specify a path in Import Files, so LIBPATH fires.
11564 shlibpath_overrides_runpath=yes
11566 *,yes) # both, prefer svr4
11567 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11568 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11569 # unpreferred sharedlib libNAME.a needs extra handling
11570 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11571 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11572 # We do not specify a path in Import Files, so LIBPATH fires.
11573 shlibpath_overrides_runpath=yes
11575 *,no) # both, prefer aix
11576 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11577 library_names_spec='$libname$release.a $libname.a'
11578 soname_spec='$libname$release$shared_ext$major'
11579 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11580 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11581 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11583 esac
11584 shlibpath_var=LIBPATH
11588 amigaos*)
11589 case $host_cpu in
11590 powerpc)
11591 # Since July 2007 AmigaOS4 officially supports .so libraries.
11592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11595 m68k)
11596 library_names_spec='$libname.ixlibrary $libname.a'
11597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11598 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11600 esac
11603 beos*)
11604 library_names_spec='$libname$shared_ext'
11605 dynamic_linker="$host_os ld.so"
11606 shlibpath_var=LIBRARY_PATH
11609 bsdi[45]*)
11610 version_type=linux # correct to gnu/linux during the next big refactor
11611 need_version=no
11612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11613 soname_spec='$libname$release$shared_ext$major'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11618 # the default ld.so.conf also contains /usr/contrib/lib and
11619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11620 # libtool to hard-code these into programs
11623 cygwin* | mingw* | pw32* | cegcc*)
11624 version_type=windows
11625 shrext_cmds=.dll
11626 need_version=no
11627 need_lib_prefix=no
11629 case $GCC,$cc_basename in
11630 yes,*)
11631 # gcc
11632 library_names_spec='$libname.dll.a'
11633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11634 postinstall_cmds='base_file=`basename \$file`~
11635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11636 dldir=$destdir/`dirname \$dlpath`~
11637 test -d \$dldir || mkdir -p \$dldir~
11638 $install_prog $dir/$dlname \$dldir/$dlname~
11639 chmod a+x \$dldir/$dlname~
11640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11644 dlpath=$dir/\$dldll~
11645 $RM \$dlpath'
11646 shlibpath_overrides_runpath=yes
11648 case $host_os in
11649 cygwin*)
11650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11651 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11653 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11655 mingw* | cegcc*)
11656 # MinGW DLLs use traditional 'lib' prefix
11657 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11659 pw32*)
11660 # pw32 DLLs use 'pw' prefix rather than 'lib'
11661 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11663 esac
11664 dynamic_linker='Win32 ld.exe'
11667 *,cl*)
11668 # Native MSVC
11669 libname_spec='$name'
11670 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11671 library_names_spec='$libname.dll.lib'
11673 case $build_os in
11674 mingw*)
11675 sys_lib_search_path_spec=
11676 lt_save_ifs=$IFS
11677 IFS=';'
11678 for lt_path in $LIB
11680 IFS=$lt_save_ifs
11681 # Let DOS variable expansion print the short 8.3 style file name.
11682 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11684 done
11685 IFS=$lt_save_ifs
11686 # Convert to MSYS style.
11687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11689 cygwin*)
11690 # Convert to unix form, then to dos form, then back to unix form
11691 # but this time dos style (no spaces!) so that the unix form looks
11692 # like /cygdrive/c/PROGRA~1:/cygdr...
11693 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11694 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11695 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11698 sys_lib_search_path_spec=$LIB
11699 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11700 # It is most probably a Windows format PATH.
11701 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702 else
11703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11705 # FIXME: find the short name or the path components, as spaces are
11706 # common. (e.g. "Program Files" -> "PROGRA~1")
11708 esac
11710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11711 postinstall_cmds='base_file=`basename \$file`~
11712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11713 dldir=$destdir/`dirname \$dlpath`~
11714 test -d \$dldir || mkdir -p \$dldir~
11715 $install_prog $dir/$dlname \$dldir/$dlname'
11716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11717 dlpath=$dir/\$dldll~
11718 $RM \$dlpath'
11719 shlibpath_overrides_runpath=yes
11720 dynamic_linker='Win32 link.exe'
11724 # Assume MSVC wrapper
11725 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11726 dynamic_linker='Win32 ld.exe'
11728 esac
11729 # FIXME: first we should search . and the directory the executable is in
11730 shlibpath_var=PATH
11733 darwin* | rhapsody*)
11734 dynamic_linker="$host_os dyld"
11735 version_type=darwin
11736 need_lib_prefix=no
11737 need_version=no
11738 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11739 soname_spec='$libname$release$major$shared_ext'
11740 shlibpath_overrides_runpath=yes
11741 shlibpath_var=DYLD_LIBRARY_PATH
11742 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11744 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11748 dgux*)
11749 version_type=linux # correct to gnu/linux during the next big refactor
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753 soname_spec='$libname$release$shared_ext$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11757 freebsd* | dragonfly*)
11758 # DragonFly does not have aout. When/if they implement a new
11759 # versioning mechanism, adjust this.
11760 if test -x /usr/bin/objformat; then
11761 objformat=`/usr/bin/objformat`
11762 else
11763 case $host_os in
11764 freebsd[23].*) objformat=aout ;;
11765 *) objformat=elf ;;
11766 esac
11768 version_type=freebsd-$objformat
11769 case $version_type in
11770 freebsd-elf*)
11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11772 soname_spec='$libname$release$shared_ext$major'
11773 need_version=no
11774 need_lib_prefix=no
11776 freebsd-*)
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11778 need_version=yes
11780 esac
11781 shlibpath_var=LD_LIBRARY_PATH
11782 case $host_os in
11783 freebsd2.*)
11784 shlibpath_overrides_runpath=yes
11786 freebsd3.[01]* | freebsdelf3.[01]*)
11787 shlibpath_overrides_runpath=yes
11788 hardcode_into_libs=yes
11790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11792 shlibpath_overrides_runpath=no
11793 hardcode_into_libs=yes
11795 *) # from 4.6 on, and DragonFly
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11799 esac
11802 haiku*)
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 need_lib_prefix=no
11805 need_version=no
11806 dynamic_linker="$host_os runtime_loader"
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 soname_spec='$libname$release$shared_ext$major'
11809 shlibpath_var=LIBRARY_PATH
11810 shlibpath_overrides_runpath=no
11811 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11812 hardcode_into_libs=yes
11815 hpux9* | hpux10* | hpux11*)
11816 # Give a soname corresponding to the major version so that dld.sl refuses to
11817 # link against other versions.
11818 version_type=sunos
11819 need_lib_prefix=no
11820 need_version=no
11821 case $host_cpu in
11822 ia64*)
11823 shrext_cmds='.so'
11824 hardcode_into_libs=yes
11825 dynamic_linker="$host_os dld.so"
11826 shlibpath_var=LD_LIBRARY_PATH
11827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829 soname_spec='$libname$release$shared_ext$major'
11830 if test 32 = "$HPUX_IA64_MODE"; then
11831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11833 else
11834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11835 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11838 hppa*64*)
11839 shrext_cmds='.sl'
11840 hardcode_into_libs=yes
11841 dynamic_linker="$host_os dld.sl"
11842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11845 soname_spec='$libname$release$shared_ext$major'
11846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11850 shrext_cmds='.sl'
11851 dynamic_linker="$host_os dld.sl"
11852 shlibpath_var=SHLIB_PATH
11853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855 soname_spec='$libname$release$shared_ext$major'
11857 esac
11858 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11859 postinstall_cmds='chmod 555 $lib'
11860 # or fails outright, so override atomically:
11861 install_override_mode=555
11864 interix[3-9]*)
11865 version_type=linux # correct to gnu/linux during the next big refactor
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869 soname_spec='$libname$release$shared_ext$major'
11870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=no
11873 hardcode_into_libs=yes
11876 irix5* | irix6* | nonstopux*)
11877 case $host_os in
11878 nonstopux*) version_type=nonstopux ;;
11880 if test yes = "$lt_cv_prog_gnu_ld"; then
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 else
11883 version_type=irix
11884 fi ;;
11885 esac
11886 need_lib_prefix=no
11887 need_version=no
11888 soname_spec='$libname$release$shared_ext$major'
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11890 case $host_os in
11891 irix5* | nonstopux*)
11892 libsuff= shlibsuff=
11895 case $LD in # libtool.m4 will add one of these switches to LD
11896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11897 libsuff= shlibsuff= libmagic=32-bit;;
11898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11899 libsuff=32 shlibsuff=N32 libmagic=N32;;
11900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11902 *) libsuff= shlibsuff= libmagic=never-match;;
11903 esac
11905 esac
11906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11907 shlibpath_overrides_runpath=no
11908 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11909 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11910 hardcode_into_libs=yes
11913 # No shared lib support for Linux oldld, aout, or coff.
11914 linux*oldld* | linux*aout* | linux*coff*)
11915 dynamic_linker=no
11918 linux*android*)
11919 version_type=none # Android doesn't support versioned libraries.
11920 need_lib_prefix=no
11921 need_version=no
11922 library_names_spec='$libname$release$shared_ext'
11923 soname_spec='$libname$release$shared_ext'
11924 finish_cmds=
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes
11928 # This implies no fast_install, which is unacceptable.
11929 # Some rework will be needed to allow for fast_install
11930 # before this can be enabled.
11931 hardcode_into_libs=yes
11933 dynamic_linker='Android linker'
11934 # Don't embed -rpath directories since the linker doesn't support them.
11935 hardcode_libdir_flag_spec='-L$libdir'
11938 # This must be glibc/ELF.
11939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11940 version_type=linux # correct to gnu/linux during the next big refactor
11941 need_lib_prefix=no
11942 need_version=no
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944 soname_spec='$libname$release$shared_ext$major'
11945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11946 shlibpath_var=LD_LIBRARY_PATH
11947 shlibpath_overrides_runpath=no
11949 # Some binutils ld are patched to set DT_RUNPATH
11950 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 lt_cv_shlibpath_overrides_runpath=no
11954 save_LDFLAGS=$LDFLAGS
11955 save_libdir=$libdir
11956 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11957 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11962 main ()
11966 return 0;
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11971 lt_cv_shlibpath_overrides_runpath=yes
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LDFLAGS=$save_LDFLAGS
11977 libdir=$save_libdir
11981 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11983 # This implies no fast_install, which is unacceptable.
11984 # Some rework will be needed to allow for fast_install
11985 # before this can be enabled.
11986 hardcode_into_libs=yes
11988 # Ideally, we could use ldconfig to report *all* directores which are
11989 # searched for libraries, however this is still not possible. Aside from not
11990 # being certain /sbin/ldconfig is available, command
11991 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11992 # even though it is searched at run-time. Try to do the best guess by
11993 # appending ld.so.conf contents (and includes) to the search path.
11994 if test -f /etc/ld.so.conf; then
11995 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' ' '`
11996 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11999 # We used to test for /lib/ld.so.1 and disable shared libraries on
12000 # powerpc, because MkLinux only supported shared libraries with the
12001 # GNU dynamic linker. Since this was broken with cross compilers,
12002 # most powerpc-linux boxes support dynamic linking these days and
12003 # people can always --disable-shared, the test was removed, and we
12004 # assume the GNU/Linux dynamic linker is in use.
12005 dynamic_linker='GNU/Linux ld.so'
12008 netbsd*)
12009 version_type=sunos
12010 need_lib_prefix=no
12011 need_version=no
12012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12015 dynamic_linker='NetBSD (a.out) ld.so'
12016 else
12017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12018 soname_spec='$libname$release$shared_ext$major'
12019 dynamic_linker='NetBSD ld.elf_so'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 shlibpath_overrides_runpath=yes
12023 hardcode_into_libs=yes
12026 newsos6)
12027 version_type=linux # correct to gnu/linux during the next big refactor
12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12033 *nto* | *qnx*)
12034 version_type=qnx
12035 need_lib_prefix=no
12036 need_version=no
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 soname_spec='$libname$release$shared_ext$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=no
12041 hardcode_into_libs=yes
12042 dynamic_linker='ldqnx.so'
12045 openbsd* | bitrig*)
12046 version_type=sunos
12047 sys_lib_dlsearch_path_spec=/usr/lib
12048 need_lib_prefix=no
12049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12050 need_version=no
12051 else
12052 need_version=yes
12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=yes
12060 os2*)
12061 libname_spec='$name'
12062 version_type=windows
12063 shrext_cmds=.dll
12064 need_version=no
12065 need_lib_prefix=no
12066 # OS/2 can only load a DLL with a base name of 8 characters or less.
12067 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12068 v=$($ECHO $release$versuffix | tr -d .-);
12069 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12070 $ECHO $n$v`$shared_ext'
12071 library_names_spec='${libname}_dll.$libext'
12072 dynamic_linker='OS/2 ld.exe'
12073 shlibpath_var=BEGINLIBPATH
12074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076 postinstall_cmds='base_file=`basename \$file`~
12077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12078 dldir=$destdir/`dirname \$dlpath`~
12079 test -d \$dldir || mkdir -p \$dldir~
12080 $install_prog $dir/$dlname \$dldir/$dlname~
12081 chmod a+x \$dldir/$dlname~
12082 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12083 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12086 dlpath=$dir/\$dldll~
12087 $RM \$dlpath'
12090 osf3* | osf4* | osf5*)
12091 version_type=osf
12092 need_lib_prefix=no
12093 need_version=no
12094 soname_spec='$libname$release$shared_ext$major'
12095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12101 rdos*)
12102 dynamic_linker=no
12105 solaris*)
12106 version_type=linux # correct to gnu/linux during the next big refactor
12107 need_lib_prefix=no
12108 need_version=no
12109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110 soname_spec='$libname$release$shared_ext$major'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=yes
12113 hardcode_into_libs=yes
12114 # ldd complains unless libraries are executable
12115 postinstall_cmds='chmod +x $lib'
12118 sunos4*)
12119 version_type=sunos
12120 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=yes
12124 if test yes = "$with_gnu_ld"; then
12125 need_lib_prefix=no
12127 need_version=yes
12130 sysv4 | sysv4.3*)
12131 version_type=linux # correct to gnu/linux during the next big refactor
12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 soname_spec='$libname$release$shared_ext$major'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 case $host_vendor in
12136 sni)
12137 shlibpath_overrides_runpath=no
12138 need_lib_prefix=no
12139 runpath_var=LD_RUN_PATH
12141 siemens)
12142 need_lib_prefix=no
12144 motorola)
12145 need_lib_prefix=no
12146 need_version=no
12147 shlibpath_overrides_runpath=no
12148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12150 esac
12153 sysv4*MP*)
12154 if test -d /usr/nec; then
12155 version_type=linux # correct to gnu/linux during the next big refactor
12156 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12157 soname_spec='$libname$shared_ext.$major'
12158 shlibpath_var=LD_LIBRARY_PATH
12162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12163 version_type=sco
12164 need_lib_prefix=no
12165 need_version=no
12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12167 soname_spec='$libname$release$shared_ext$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=yes
12170 hardcode_into_libs=yes
12171 if test yes = "$with_gnu_ld"; then
12172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12173 else
12174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12175 case $host_os in
12176 sco3.2v5*)
12177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12179 esac
12181 sys_lib_dlsearch_path_spec='/usr/lib'
12184 tpf*)
12185 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12186 version_type=linux # correct to gnu/linux during the next big refactor
12187 need_lib_prefix=no
12188 need_version=no
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 shlibpath_overrides_runpath=no
12192 hardcode_into_libs=yes
12195 uts4*)
12196 version_type=linux # correct to gnu/linux during the next big refactor
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12203 dynamic_linker=no
12205 esac
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12207 $as_echo "$dynamic_linker" >&6; }
12208 test no = "$dynamic_linker" && can_build_shared=no
12210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12211 if test yes = "$GCC"; then
12212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12215 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12216 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12219 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12220 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12223 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12224 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12226 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12227 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12229 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12230 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12330 hardcode_action=
12331 if test -n "$hardcode_libdir_flag_spec" ||
12332 test -n "$runpath_var" ||
12333 test yes = "$hardcode_automatic"; then
12335 # We can hardcode non-existent directories.
12336 if test no != "$hardcode_direct" &&
12337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12338 # have to relink, otherwise we might link with an installed library
12339 # when we should be linking with a yet-to-be-installed one
12340 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12341 test no != "$hardcode_minus_L"; then
12342 # Linking always hardcodes the temporary library directory.
12343 hardcode_action=relink
12344 else
12345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12346 hardcode_action=immediate
12348 else
12349 # We cannot hardcode anything, or else we can only hardcode existing
12350 # directories.
12351 hardcode_action=unsupported
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12354 $as_echo "$hardcode_action" >&6; }
12356 if test relink = "$hardcode_action" ||
12357 test yes = "$inherit_rpath"; then
12358 # Fast installation is not supported
12359 enable_fast_install=no
12360 elif test yes = "$shlibpath_overrides_runpath" ||
12361 test no = "$enable_shared"; then
12362 # Fast installation is not necessary
12363 enable_fast_install=needless
12371 if test yes != "$enable_dlopen"; then
12372 enable_dlopen=unknown
12373 enable_dlopen_self=unknown
12374 enable_dlopen_self_static=unknown
12375 else
12376 lt_cv_dlopen=no
12377 lt_cv_dlopen_libs=
12379 case $host_os in
12380 beos*)
12381 lt_cv_dlopen=load_add_on
12382 lt_cv_dlopen_libs=
12383 lt_cv_dlopen_self=yes
12386 mingw* | pw32* | cegcc*)
12387 lt_cv_dlopen=LoadLibrary
12388 lt_cv_dlopen_libs=
12391 cygwin*)
12392 lt_cv_dlopen=dlopen
12393 lt_cv_dlopen_libs=
12396 darwin*)
12397 # if libdl is installed we need to link against it
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12400 if ${ac_cv_lib_dl_dlopen+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldl $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char dlopen ();
12416 main ()
12418 return dlopen ();
12420 return 0;
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_dl_dlopen=yes
12425 else
12426 ac_cv_lib_dl_dlopen=no
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12435 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12436 else
12438 lt_cv_dlopen=dyld
12439 lt_cv_dlopen_libs=
12440 lt_cv_dlopen_self=yes
12446 tpf*)
12447 # Don't try to run any link tests for TPF. We know it's impossible
12448 # because TPF is a cross-compiler, and we know how we open DSOs.
12449 lt_cv_dlopen=dlopen
12450 lt_cv_dlopen_libs=
12451 lt_cv_dlopen_self=no
12455 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12456 if test "x$ac_cv_func_shl_load" = xyes; then :
12457 lt_cv_dlopen=shl_load
12458 else
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12460 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12461 if ${ac_cv_lib_dld_shl_load+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldld $LIBS"
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char shl_load ();
12477 main ()
12479 return shl_load ();
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_lib_dld_shl_load=yes
12486 else
12487 ac_cv_lib_dld_shl_load=no
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_check_lib_save_LIBS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12494 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12495 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12496 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12497 else
12498 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12499 if test "x$ac_cv_func_dlopen" = xyes; then :
12500 lt_cv_dlopen=dlopen
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12504 if ${ac_cv_lib_dl_dlopen+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-ldl $LIBS"
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char dlopen ();
12520 main ()
12522 return dlopen ();
12524 return 0;
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528 ac_cv_lib_dl_dlopen=yes
12529 else
12530 ac_cv_lib_dl_dlopen=no
12532 rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12538 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12539 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12542 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12543 if ${ac_cv_lib_svld_dlopen+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lsvld $LIBS"
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 /* Override any GCC internal prototype to avoid an error.
12552 Use char because int might match the return type of a GCC
12553 builtin and then its argument prototype would still apply. */
12554 #ifdef __cplusplus
12555 extern "C"
12556 #endif
12557 char dlopen ();
12559 main ()
12561 return dlopen ();
12563 return 0;
12565 _ACEOF
12566 if ac_fn_c_try_link "$LINENO"; then :
12567 ac_cv_lib_svld_dlopen=yes
12568 else
12569 ac_cv_lib_svld_dlopen=no
12571 rm -f core conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12576 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12577 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12578 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12581 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12582 if ${ac_cv_lib_dld_dld_link+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-ldld $LIBS"
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12590 /* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12593 #ifdef __cplusplus
12594 extern "C"
12595 #endif
12596 char dld_link ();
12598 main ()
12600 return dld_link ();
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 ac_cv_lib_dld_dld_link=yes
12607 else
12608 ac_cv_lib_dld_dld_link=no
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12612 LIBS=$ac_check_lib_save_LIBS
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12615 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12616 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12617 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12636 esac
12638 if test no = "$lt_cv_dlopen"; then
12639 enable_dlopen=no
12640 else
12641 enable_dlopen=yes
12644 case $lt_cv_dlopen in
12645 dlopen)
12646 save_CPPFLAGS=$CPPFLAGS
12647 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12649 save_LDFLAGS=$LDFLAGS
12650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12652 save_LIBS=$LIBS
12653 LIBS="$lt_cv_dlopen_libs $LIBS"
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12656 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12657 if ${lt_cv_dlopen_self+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test yes = "$cross_compiling"; then :
12661 lt_cv_dlopen_self=cross
12662 else
12663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12664 lt_status=$lt_dlunknown
12665 cat > conftest.$ac_ext <<_LT_EOF
12666 #line $LINENO "configure"
12667 #include "confdefs.h"
12669 #if HAVE_DLFCN_H
12670 #include <dlfcn.h>
12671 #endif
12673 #include <stdio.h>
12675 #ifdef RTLD_GLOBAL
12676 # define LT_DLGLOBAL RTLD_GLOBAL
12677 #else
12678 # ifdef DL_GLOBAL
12679 # define LT_DLGLOBAL DL_GLOBAL
12680 # else
12681 # define LT_DLGLOBAL 0
12682 # endif
12683 #endif
12685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12686 find out it does not work in some platform. */
12687 #ifndef LT_DLLAZY_OR_NOW
12688 # ifdef RTLD_LAZY
12689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12690 # else
12691 # ifdef DL_LAZY
12692 # define LT_DLLAZY_OR_NOW DL_LAZY
12693 # else
12694 # ifdef RTLD_NOW
12695 # define LT_DLLAZY_OR_NOW RTLD_NOW
12696 # else
12697 # ifdef DL_NOW
12698 # define LT_DLLAZY_OR_NOW DL_NOW
12699 # else
12700 # define LT_DLLAZY_OR_NOW 0
12701 # endif
12702 # endif
12703 # endif
12704 # endif
12705 #endif
12707 /* When -fvisibility=hidden is used, assume the code has been annotated
12708 correspondingly for the symbols needed. */
12709 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12710 int fnord () __attribute__((visibility("default")));
12711 #endif
12713 int fnord () { return 42; }
12714 int main ()
12716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12717 int status = $lt_dlunknown;
12719 if (self)
12721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12722 else
12724 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12725 else puts (dlerror ());
12727 /* dlclose (self); */
12729 else
12730 puts (dlerror ());
12732 return status;
12734 _LT_EOF
12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12736 (eval $ac_link) 2>&5
12737 ac_status=$?
12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12740 (./conftest; exit; ) >&5 2>/dev/null
12741 lt_status=$?
12742 case x$lt_status in
12743 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12744 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12745 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12746 esac
12747 else :
12748 # compilation failed
12749 lt_cv_dlopen_self=no
12752 rm -fr conftest*
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12757 $as_echo "$lt_cv_dlopen_self" >&6; }
12759 if test yes = "$lt_cv_dlopen_self"; then
12760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12762 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12763 if ${lt_cv_dlopen_self_static+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if test yes = "$cross_compiling"; then :
12767 lt_cv_dlopen_self_static=cross
12768 else
12769 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12770 lt_status=$lt_dlunknown
12771 cat > conftest.$ac_ext <<_LT_EOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12775 #if HAVE_DLFCN_H
12776 #include <dlfcn.h>
12777 #endif
12779 #include <stdio.h>
12781 #ifdef RTLD_GLOBAL
12782 # define LT_DLGLOBAL RTLD_GLOBAL
12783 #else
12784 # ifdef DL_GLOBAL
12785 # define LT_DLGLOBAL DL_GLOBAL
12786 # else
12787 # define LT_DLGLOBAL 0
12788 # endif
12789 #endif
12791 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12792 find out it does not work in some platform. */
12793 #ifndef LT_DLLAZY_OR_NOW
12794 # ifdef RTLD_LAZY
12795 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12796 # else
12797 # ifdef DL_LAZY
12798 # define LT_DLLAZY_OR_NOW DL_LAZY
12799 # else
12800 # ifdef RTLD_NOW
12801 # define LT_DLLAZY_OR_NOW RTLD_NOW
12802 # else
12803 # ifdef DL_NOW
12804 # define LT_DLLAZY_OR_NOW DL_NOW
12805 # else
12806 # define LT_DLLAZY_OR_NOW 0
12807 # endif
12808 # endif
12809 # endif
12810 # endif
12811 #endif
12813 /* When -fvisibility=hidden is used, assume the code has been annotated
12814 correspondingly for the symbols needed. */
12815 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12816 int fnord () __attribute__((visibility("default")));
12817 #endif
12819 int fnord () { return 42; }
12820 int main ()
12822 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12823 int status = $lt_dlunknown;
12825 if (self)
12827 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12828 else
12830 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12831 else puts (dlerror ());
12833 /* dlclose (self); */
12835 else
12836 puts (dlerror ());
12838 return status;
12840 _LT_EOF
12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12842 (eval $ac_link) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12846 (./conftest; exit; ) >&5 2>/dev/null
12847 lt_status=$?
12848 case x$lt_status in
12849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12851 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12852 esac
12853 else :
12854 # compilation failed
12855 lt_cv_dlopen_self_static=no
12858 rm -fr conftest*
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12863 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12866 CPPFLAGS=$save_CPPFLAGS
12867 LDFLAGS=$save_LDFLAGS
12868 LIBS=$save_LIBS
12870 esac
12872 case $lt_cv_dlopen_self in
12873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12874 *) enable_dlopen_self=unknown ;;
12875 esac
12877 case $lt_cv_dlopen_self_static in
12878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12879 *) enable_dlopen_self_static=unknown ;;
12880 esac
12899 striplib=
12900 old_striplib=
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12902 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12903 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12904 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12905 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907 $as_echo "yes" >&6; }
12908 else
12909 # FIXME - insert some real tests, host_os isn't really good enough
12910 case $host_os in
12911 darwin*)
12912 if test -n "$STRIP"; then
12913 striplib="$STRIP -x"
12914 old_striplib="$STRIP -S"
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12916 $as_echo "yes" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12926 esac
12940 # Report what library types will actually be built
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12942 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12944 $as_echo "$can_build_shared" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12947 $as_echo_n "checking whether to build shared libraries... " >&6; }
12948 test no = "$can_build_shared" && enable_shared=no
12950 # On AIX, shared libraries and static libraries use the same namespace, and
12951 # are all built from PIC.
12952 case $host_os in
12953 aix3*)
12954 test yes = "$enable_shared" && enable_static=no
12955 if test -n "$RANLIB"; then
12956 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12957 postinstall_cmds='$RANLIB $lib'
12961 aix[4-9]*)
12962 if test ia64 != "$host_cpu"; then
12963 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12964 yes,aix,yes) ;; # shared object as lib.so file only
12965 yes,svr4,*) ;; # shared object as lib.so archive member only
12966 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12967 esac
12970 esac
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12972 $as_echo "$enable_shared" >&6; }
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12975 $as_echo_n "checking whether to build static libraries... " >&6; }
12976 # Make sure either enable_shared or enable_static is yes.
12977 test yes = "$enable_shared" || enable_static=yes
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12979 $as_echo "$enable_static" >&6; }
12985 ac_ext=c
12986 ac_cpp='$CPP $CPPFLAGS'
12987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991 CC=$lt_save_CC
13007 ac_config_commands="$ac_config_commands libtool"
13012 # Only expand once:
13017 # Extract the first word of "ar", so it can be a program name with args.
13018 set dummy ar; ac_word=$2
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020 $as_echo_n "checking for $ac_word... " >&6; }
13021 if ${ac_cv_path_AR+:} false; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 case $AR in
13025 [\\/]* | ?:[\\/]*)
13026 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030 for as_dir in $PATH
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13036 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13040 done
13041 done
13042 IFS=$as_save_IFS
13044 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13046 esac
13048 AR=$ac_cv_path_AR
13049 if test -n "$AR"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13051 $as_echo "$AR" >&6; }
13052 else
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13058 # Extract the first word of "rm", so it can be a program name with args.
13059 set dummy rm; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if ${ac_cv_path_RM+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 case $RM in
13066 [\\/]* | ?:[\\/]*)
13067 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13085 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13087 esac
13089 RM=$ac_cv_path_RM
13090 if test -n "$RM"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13092 $as_echo "$RM" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13099 # Extract the first word of "cp", so it can be a program name with args.
13100 set dummy cp; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if ${ac_cv_path_CP+:} false; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 case $CP in
13107 [\\/]* | ?:[\\/]*)
13108 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 break 2
13122 done
13123 done
13124 IFS=$as_save_IFS
13126 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13128 esac
13130 CP=$ac_cv_path_CP
13131 if test -n "$CP"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13133 $as_echo "$CP" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13140 # Extract the first word of "ln", so it can be a program name with args.
13141 set dummy ln; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if ${ac_cv_path_LN+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 case $LN in
13148 [\\/]* | ?:[\\/]*)
13149 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13167 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13169 esac
13171 LN=$ac_cv_path_LN
13172 if test -n "$LN"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13174 $as_echo "$LN" >&6; }
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13181 # Extract the first word of "ls", so it can be a program name with args.
13182 set dummy ls; 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_LS+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 case $LS in
13189 [\\/]* | ?:[\\/]*)
13190 ac_cv_path_LS="$LS" # 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_LS="$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_LS" && ac_cv_path_LS="ls"
13210 esac
13212 LS=$ac_cv_path_LS
13213 if test -n "$LS"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13215 $as_echo "$LS" >&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 "sed", so it can be a program name with args.
13223 set dummy sed; 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_SED+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 case $SED in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
13251 esac
13253 SED=$ac_cv_path_SED
13254 if test -n "$SED"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13256 $as_echo "$SED" >&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 "make", so it can be a program name with args.
13264 set dummy make; 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_MAKE+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 case $MAKE in
13271 [\\/]* | ?:[\\/]*)
13272 ac_cv_path_MAKE="$MAKE" # 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_MAKE="$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
13291 esac
13293 MAKE=$ac_cv_path_MAKE
13294 if test -n "$MAKE"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13296 $as_echo "$MAKE" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13308 $as_echo_n "checking whether NLS is requested... " >&6; }
13309 # Check whether --enable-nls was given.
13310 if test "${enable_nls+set}" = set; then :
13311 enableval=$enable_nls; USE_NLS=$enableval
13312 else
13313 USE_NLS=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13317 $as_echo "$USE_NLS" >&6; }
13324 # Prepare PATH_SEPARATOR.
13325 # The user is always right.
13326 if test "${PATH_SEPARATOR+set}" != set; then
13327 echo "#! /bin/sh" >conf$$.sh
13328 echo "exit 0" >>conf$$.sh
13329 chmod +x conf$$.sh
13330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13331 PATH_SEPARATOR=';'
13332 else
13333 PATH_SEPARATOR=:
13335 rm -f conf$$.sh
13338 # Find out how to test for executable files. Don't use a zero-byte file,
13339 # as systems may use methods other than mode bits to determine executability.
13340 cat >conf$$.file <<_ASEOF
13341 #! /bin/sh
13342 exit 0
13343 _ASEOF
13344 chmod +x conf$$.file
13345 if test -x conf$$.file >/dev/null 2>&1; then
13346 ac_executable_p="test -x"
13347 else
13348 ac_executable_p="test -f"
13350 rm -f conf$$.file
13352 # Extract the first word of "msgfmt", so it can be a program name with args.
13353 set dummy msgfmt; ac_word=$2
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 $as_echo_n "checking for $ac_word... " >&6; }
13356 if ${ac_cv_path_MSGFMT+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 case "$MSGFMT" in
13360 [\\/]* | ?:[\\/]*)
13361 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13364 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13365 for ac_dir in $PATH; do
13366 IFS="$ac_save_IFS"
13367 test -z "$ac_dir" && ac_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13370 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13371 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13372 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13373 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13374 break 2
13377 done
13378 done
13379 IFS="$ac_save_IFS"
13380 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13382 esac
13384 MSGFMT="$ac_cv_path_MSGFMT"
13385 if test "$MSGFMT" != ":"; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13387 $as_echo "$MSGFMT" >&6; }
13388 else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13393 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13394 set dummy gmsgfmt; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_path_GMSGFMT+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 case $GMSGFMT in
13401 [\\/]* | ?:[\\/]*)
13402 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13416 done
13417 done
13418 IFS=$as_save_IFS
13420 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13422 esac
13424 GMSGFMT=$ac_cv_path_GMSGFMT
13425 if test -n "$GMSGFMT"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13427 $as_echo "$GMSGFMT" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13435 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13436 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13437 *) MSGFMT_015=$MSGFMT ;;
13438 esac
13440 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13441 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13442 *) GMSGFMT_015=$GMSGFMT ;;
13443 esac
13447 # Prepare PATH_SEPARATOR.
13448 # The user is always right.
13449 if test "${PATH_SEPARATOR+set}" != set; then
13450 echo "#! /bin/sh" >conf$$.sh
13451 echo "exit 0" >>conf$$.sh
13452 chmod +x conf$$.sh
13453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13454 PATH_SEPARATOR=';'
13455 else
13456 PATH_SEPARATOR=:
13458 rm -f conf$$.sh
13461 # Find out how to test for executable files. Don't use a zero-byte file,
13462 # as systems may use methods other than mode bits to determine executability.
13463 cat >conf$$.file <<_ASEOF
13464 #! /bin/sh
13465 exit 0
13466 _ASEOF
13467 chmod +x conf$$.file
13468 if test -x conf$$.file >/dev/null 2>&1; then
13469 ac_executable_p="test -x"
13470 else
13471 ac_executable_p="test -f"
13473 rm -f conf$$.file
13475 # Extract the first word of "xgettext", so it can be a program name with args.
13476 set dummy xgettext; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_XGETTEXT+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 case "$XGETTEXT" in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13487 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13488 for ac_dir in $PATH; do
13489 IFS="$ac_save_IFS"
13490 test -z "$ac_dir" && ac_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13493 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13494 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13495 (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
13496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13497 break 2
13500 done
13501 done
13502 IFS="$ac_save_IFS"
13503 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13505 esac
13507 XGETTEXT="$ac_cv_path_XGETTEXT"
13508 if test "$XGETTEXT" != ":"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13510 $as_echo "$XGETTEXT" >&6; }
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13516 rm -f messages.po
13518 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13519 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13520 *) XGETTEXT_015=$XGETTEXT ;;
13521 esac
13525 # Prepare PATH_SEPARATOR.
13526 # The user is always right.
13527 if test "${PATH_SEPARATOR+set}" != set; then
13528 echo "#! /bin/sh" >conf$$.sh
13529 echo "exit 0" >>conf$$.sh
13530 chmod +x conf$$.sh
13531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13532 PATH_SEPARATOR=';'
13533 else
13534 PATH_SEPARATOR=:
13536 rm -f conf$$.sh
13539 # Find out how to test for executable files. Don't use a zero-byte file,
13540 # as systems may use methods other than mode bits to determine executability.
13541 cat >conf$$.file <<_ASEOF
13542 #! /bin/sh
13543 exit 0
13544 _ASEOF
13545 chmod +x conf$$.file
13546 if test -x conf$$.file >/dev/null 2>&1; then
13547 ac_executable_p="test -x"
13548 else
13549 ac_executable_p="test -f"
13551 rm -f conf$$.file
13553 # Extract the first word of "msgmerge", so it can be a program name with args.
13554 set dummy msgmerge; ac_word=$2
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13556 $as_echo_n "checking for $ac_word... " >&6; }
13557 if ${ac_cv_path_MSGMERGE+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 case "$MSGMERGE" in
13561 [\\/]* | ?:[\\/]*)
13562 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13565 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13566 for ac_dir in $PATH; do
13567 IFS="$ac_save_IFS"
13568 test -z "$ac_dir" && ac_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13571 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13572 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13573 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13574 break 2
13577 done
13578 done
13579 IFS="$ac_save_IFS"
13580 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13582 esac
13584 MSGMERGE="$ac_cv_path_MSGMERGE"
13585 if test "$MSGMERGE" != ":"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13587 $as_echo "$MSGMERGE" >&6; }
13588 else
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13594 test -n "$localedir" || localedir='${datadir}/locale'
13597 ac_config_commands="$ac_config_commands po-directories"
13601 if test "X$prefix" = "XNONE"; then
13602 acl_final_prefix="$ac_default_prefix"
13603 else
13604 acl_final_prefix="$prefix"
13606 if test "X$exec_prefix" = "XNONE"; then
13607 acl_final_exec_prefix='${prefix}'
13608 else
13609 acl_final_exec_prefix="$exec_prefix"
13611 acl_save_prefix="$prefix"
13612 prefix="$acl_final_prefix"
13613 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13614 prefix="$acl_save_prefix"
13617 # Check whether --with-gnu-ld was given.
13618 if test "${with_gnu_ld+set}" = set; then :
13619 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13620 else
13621 with_gnu_ld=no
13624 # Prepare PATH_SEPARATOR.
13625 # The user is always right.
13626 if test "${PATH_SEPARATOR+set}" != set; then
13627 echo "#! /bin/sh" >conf$$.sh
13628 echo "exit 0" >>conf$$.sh
13629 chmod +x conf$$.sh
13630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13631 PATH_SEPARATOR=';'
13632 else
13633 PATH_SEPARATOR=:
13635 rm -f conf$$.sh
13637 ac_prog=ld
13638 if test "$GCC" = yes; then
13639 # Check if gcc -print-prog-name=ld gives a path.
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13641 $as_echo_n "checking for ld used by GCC... " >&6; }
13642 case $host in
13643 *-*-mingw*)
13644 # gcc leaves a trailing carriage return which upsets mingw
13645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13648 esac
13649 case $ac_prog in
13650 # Accept absolute paths.
13651 [\\/]* | [A-Za-z]:[\\/]*)
13652 re_direlt='/[^/][^/]*/\.\./'
13653 # Canonicalize the path of ld
13654 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13656 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13657 done
13658 test -z "$LD" && LD="$ac_prog"
13661 # If it fails, then pretend we aren't using GCC.
13662 ac_prog=ld
13665 # If it is relative, then search for the first ld in PATH.
13666 with_gnu_ld=unknown
13668 esac
13669 elif test "$with_gnu_ld" = yes; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13671 $as_echo_n "checking for GNU ld... " >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13674 $as_echo_n "checking for non-GNU ld... " >&6; }
13676 if ${acl_cv_path_LD+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 if test -z "$LD"; then
13680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13681 for ac_dir in $PATH; do
13682 test -z "$ac_dir" && ac_dir=.
13683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13684 acl_cv_path_LD="$ac_dir/$ac_prog"
13685 # Check to see if the program is GNU ld. I'd rather use --version,
13686 # but apparently some GNU ld's only accept -v.
13687 # Break only if it was the GNU/non-GNU ld that we prefer.
13688 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13689 *GNU* | *'with BFD'*)
13690 test "$with_gnu_ld" != no && break ;;
13692 test "$with_gnu_ld" != yes && break ;;
13693 esac
13695 done
13696 IFS="$ac_save_ifs"
13697 else
13698 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13702 LD="$acl_cv_path_LD"
13703 if test -n "$LD"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13705 $as_echo "$LD" >&6; }
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13710 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13712 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13713 if ${acl_cv_prog_gnu_ld+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13717 case `$LD -v 2>&1 </dev/null` in
13718 *GNU* | *'with BFD'*)
13719 acl_cv_prog_gnu_ld=yes ;;
13721 acl_cv_prog_gnu_ld=no ;;
13722 esac
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13725 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13726 with_gnu_ld=$acl_cv_prog_gnu_ld
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13732 $as_echo_n "checking for shared library run path origin... " >&6; }
13733 if ${acl_cv_rpath+:} false; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13737 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13738 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13739 . ./conftest.sh
13740 rm -f ./conftest.sh
13741 acl_cv_rpath=done
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13745 $as_echo "$acl_cv_rpath" >&6; }
13746 wl="$acl_cv_wl"
13747 libext="$acl_cv_libext"
13748 shlibext="$acl_cv_shlibext"
13749 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13750 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13751 hardcode_direct="$acl_cv_hardcode_direct"
13752 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13753 # Check whether --enable-rpath was given.
13754 if test "${enable_rpath+set}" = set; then :
13755 enableval=$enable_rpath; :
13756 else
13757 enable_rpath=yes
13762 acl_libdirstem=lib
13763 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13764 if test -n "$searchpath"; then
13765 acl_save_IFS="${IFS= }"; IFS=":"
13766 for searchdir in $searchpath; do
13767 if test -d "$searchdir"; then
13768 case "$searchdir" in
13769 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13770 *) searchdir=`cd "$searchdir" && pwd`
13771 case "$searchdir" in
13772 */lib64 ) acl_libdirstem=lib64 ;;
13773 esac ;;
13774 esac
13776 done
13777 IFS="$acl_save_IFS"
13787 use_additional=yes
13789 acl_save_prefix="$prefix"
13790 prefix="$acl_final_prefix"
13791 acl_save_exec_prefix="$exec_prefix"
13792 exec_prefix="$acl_final_exec_prefix"
13794 eval additional_includedir=\"$includedir\"
13795 eval additional_libdir=\"$libdir\"
13797 exec_prefix="$acl_save_exec_prefix"
13798 prefix="$acl_save_prefix"
13801 # Check whether --with-libiconv-prefix was given.
13802 if test "${with_libiconv_prefix+set}" = set; then :
13803 withval=$with_libiconv_prefix;
13804 if test "X$withval" = "Xno"; then
13805 use_additional=no
13806 else
13807 if test "X$withval" = "X"; then
13809 acl_save_prefix="$prefix"
13810 prefix="$acl_final_prefix"
13811 acl_save_exec_prefix="$exec_prefix"
13812 exec_prefix="$acl_final_exec_prefix"
13814 eval additional_includedir=\"$includedir\"
13815 eval additional_libdir=\"$libdir\"
13817 exec_prefix="$acl_save_exec_prefix"
13818 prefix="$acl_save_prefix"
13820 else
13821 additional_includedir="$withval/include"
13822 additional_libdir="$withval/$acl_libdirstem"
13828 LIBICONV=
13829 LTLIBICONV=
13830 INCICONV=
13831 rpathdirs=
13832 ltrpathdirs=
13833 names_already_handled=
13834 names_next_round='iconv '
13835 while test -n "$names_next_round"; do
13836 names_this_round="$names_next_round"
13837 names_next_round=
13838 for name in $names_this_round; do
13839 already_handled=
13840 for n in $names_already_handled; do
13841 if test "$n" = "$name"; then
13842 already_handled=yes
13843 break
13845 done
13846 if test -z "$already_handled"; then
13847 names_already_handled="$names_already_handled $name"
13848 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13849 eval value=\"\$HAVE_LIB$uppername\"
13850 if test -n "$value"; then
13851 if test "$value" = yes; then
13852 eval value=\"\$LIB$uppername\"
13853 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13854 eval value=\"\$LTLIB$uppername\"
13855 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13856 else
13859 else
13860 found_dir=
13861 found_la=
13862 found_so=
13863 found_a=
13864 if test $use_additional = yes; then
13865 if test -n "$shlibext" \
13866 && { test -f "$additional_libdir/lib$name.$shlibext" \
13867 || { test "$shlibext" = dll \
13868 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13869 found_dir="$additional_libdir"
13870 if test -f "$additional_libdir/lib$name.$shlibext"; then
13871 found_so="$additional_libdir/lib$name.$shlibext"
13872 else
13873 found_so="$additional_libdir/lib$name.dll.a"
13875 if test -f "$additional_libdir/lib$name.la"; then
13876 found_la="$additional_libdir/lib$name.la"
13878 else
13879 if test -f "$additional_libdir/lib$name.$libext"; then
13880 found_dir="$additional_libdir"
13881 found_a="$additional_libdir/lib$name.$libext"
13882 if test -f "$additional_libdir/lib$name.la"; then
13883 found_la="$additional_libdir/lib$name.la"
13888 if test "X$found_dir" = "X"; then
13889 for x in $LDFLAGS $LTLIBICONV; do
13891 acl_save_prefix="$prefix"
13892 prefix="$acl_final_prefix"
13893 acl_save_exec_prefix="$exec_prefix"
13894 exec_prefix="$acl_final_exec_prefix"
13895 eval x=\"$x\"
13896 exec_prefix="$acl_save_exec_prefix"
13897 prefix="$acl_save_prefix"
13899 case "$x" in
13900 -L*)
13901 dir=`echo "X$x" | sed -e 's/^X-L//'`
13902 if test -n "$shlibext" \
13903 && { test -f "$dir/lib$name.$shlibext" \
13904 || { test "$shlibext" = dll \
13905 && test -f "$dir/lib$name.dll.a"; }; }; then
13906 found_dir="$dir"
13907 if test -f "$dir/lib$name.$shlibext"; then
13908 found_so="$dir/lib$name.$shlibext"
13909 else
13910 found_so="$dir/lib$name.dll.a"
13912 if test -f "$dir/lib$name.la"; then
13913 found_la="$dir/lib$name.la"
13915 else
13916 if test -f "$dir/lib$name.$libext"; then
13917 found_dir="$dir"
13918 found_a="$dir/lib$name.$libext"
13919 if test -f "$dir/lib$name.la"; then
13920 found_la="$dir/lib$name.la"
13925 esac
13926 if test "X$found_dir" != "X"; then
13927 break
13929 done
13931 if test "X$found_dir" != "X"; then
13932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13933 if test "X$found_so" != "X"; then
13934 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13935 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13936 else
13937 haveit=
13938 for x in $ltrpathdirs; do
13939 if test "X$x" = "X$found_dir"; then
13940 haveit=yes
13941 break
13943 done
13944 if test -z "$haveit"; then
13945 ltrpathdirs="$ltrpathdirs $found_dir"
13947 if test "$hardcode_direct" = yes; then
13948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13949 else
13950 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13952 haveit=
13953 for x in $rpathdirs; do
13954 if test "X$x" = "X$found_dir"; then
13955 haveit=yes
13956 break
13958 done
13959 if test -z "$haveit"; then
13960 rpathdirs="$rpathdirs $found_dir"
13962 else
13963 haveit=
13964 for x in $LDFLAGS $LIBICONV; do
13966 acl_save_prefix="$prefix"
13967 prefix="$acl_final_prefix"
13968 acl_save_exec_prefix="$exec_prefix"
13969 exec_prefix="$acl_final_exec_prefix"
13970 eval x=\"$x\"
13971 exec_prefix="$acl_save_exec_prefix"
13972 prefix="$acl_save_prefix"
13974 if test "X$x" = "X-L$found_dir"; then
13975 haveit=yes
13976 break
13978 done
13979 if test -z "$haveit"; then
13980 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13982 if test "$hardcode_minus_L" != no; then
13983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13984 else
13985 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13990 else
13991 if test "X$found_a" != "X"; then
13992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13993 else
13994 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13997 additional_includedir=
13998 case "$found_dir" in
13999 */$acl_libdirstem | */$acl_libdirstem/)
14000 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14001 additional_includedir="$basedir/include"
14003 esac
14004 if test "X$additional_includedir" != "X"; then
14005 if test "X$additional_includedir" != "X/usr/include"; then
14006 haveit=
14007 if test "X$additional_includedir" = "X/usr/local/include"; then
14008 if test -n "$GCC"; then
14009 case $host_os in
14010 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14011 esac
14014 if test -z "$haveit"; then
14015 for x in $CPPFLAGS $INCICONV; do
14017 acl_save_prefix="$prefix"
14018 prefix="$acl_final_prefix"
14019 acl_save_exec_prefix="$exec_prefix"
14020 exec_prefix="$acl_final_exec_prefix"
14021 eval x=\"$x\"
14022 exec_prefix="$acl_save_exec_prefix"
14023 prefix="$acl_save_prefix"
14025 if test "X$x" = "X-I$additional_includedir"; then
14026 haveit=yes
14027 break
14029 done
14030 if test -z "$haveit"; then
14031 if test -d "$additional_includedir"; then
14032 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14038 if test -n "$found_la"; then
14039 save_libdir="$libdir"
14040 case "$found_la" in
14041 */* | *\\*) . "$found_la" ;;
14042 *) . "./$found_la" ;;
14043 esac
14044 libdir="$save_libdir"
14045 for dep in $dependency_libs; do
14046 case "$dep" in
14047 -L*)
14048 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14049 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14050 haveit=
14051 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14052 if test -n "$GCC"; then
14053 case $host_os in
14054 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14055 esac
14058 if test -z "$haveit"; then
14059 haveit=
14060 for x in $LDFLAGS $LIBICONV; do
14062 acl_save_prefix="$prefix"
14063 prefix="$acl_final_prefix"
14064 acl_save_exec_prefix="$exec_prefix"
14065 exec_prefix="$acl_final_exec_prefix"
14066 eval x=\"$x\"
14067 exec_prefix="$acl_save_exec_prefix"
14068 prefix="$acl_save_prefix"
14070 if test "X$x" = "X-L$additional_libdir"; then
14071 haveit=yes
14072 break
14074 done
14075 if test -z "$haveit"; then
14076 if test -d "$additional_libdir"; then
14077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14080 haveit=
14081 for x in $LDFLAGS $LTLIBICONV; do
14083 acl_save_prefix="$prefix"
14084 prefix="$acl_final_prefix"
14085 acl_save_exec_prefix="$exec_prefix"
14086 exec_prefix="$acl_final_exec_prefix"
14087 eval x=\"$x\"
14088 exec_prefix="$acl_save_exec_prefix"
14089 prefix="$acl_save_prefix"
14091 if test "X$x" = "X-L$additional_libdir"; then
14092 haveit=yes
14093 break
14095 done
14096 if test -z "$haveit"; then
14097 if test -d "$additional_libdir"; then
14098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14104 -R*)
14105 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14106 if test "$enable_rpath" != no; then
14107 haveit=
14108 for x in $rpathdirs; do
14109 if test "X$x" = "X$dir"; then
14110 haveit=yes
14111 break
14113 done
14114 if test -z "$haveit"; then
14115 rpathdirs="$rpathdirs $dir"
14117 haveit=
14118 for x in $ltrpathdirs; do
14119 if test "X$x" = "X$dir"; then
14120 haveit=yes
14121 break
14123 done
14124 if test -z "$haveit"; then
14125 ltrpathdirs="$ltrpathdirs $dir"
14129 -l*)
14130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14132 *.la)
14133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14136 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14139 esac
14140 done
14142 else
14143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14148 done
14149 done
14150 if test "X$rpathdirs" != "X"; then
14151 if test -n "$hardcode_libdir_separator"; then
14152 alldirs=
14153 for found_dir in $rpathdirs; do
14154 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14155 done
14156 acl_save_libdir="$libdir"
14157 libdir="$alldirs"
14158 eval flag=\"$hardcode_libdir_flag_spec\"
14159 libdir="$acl_save_libdir"
14160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14161 else
14162 for found_dir in $rpathdirs; do
14163 acl_save_libdir="$libdir"
14164 libdir="$found_dir"
14165 eval flag=\"$hardcode_libdir_flag_spec\"
14166 libdir="$acl_save_libdir"
14167 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14168 done
14171 if test "X$ltrpathdirs" != "X"; then
14172 for found_dir in $ltrpathdirs; do
14173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14174 done
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14202 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14203 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 gt_save_LIBS="$LIBS"
14207 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <CoreFoundation/CFPreferences.h>
14212 main ()
14214 CFPreferencesCopyAppValue(NULL, NULL)
14216 return 0;
14218 _ACEOF
14219 if ac_fn_c_try_link "$LINENO"; then :
14220 gt_cv_func_CFPreferencesCopyAppValue=yes
14221 else
14222 gt_cv_func_CFPreferencesCopyAppValue=no
14224 rm -f core conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 LIBS="$gt_save_LIBS"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14229 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14230 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14232 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14236 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14237 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 gt_save_LIBS="$LIBS"
14241 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 #include <CoreFoundation/CFLocale.h>
14246 main ()
14248 CFLocaleCopyCurrent();
14250 return 0;
14252 _ACEOF
14253 if ac_fn_c_try_link "$LINENO"; then :
14254 gt_cv_func_CFLocaleCopyCurrent=yes
14255 else
14256 gt_cv_func_CFLocaleCopyCurrent=no
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14260 LIBS="$gt_save_LIBS"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14263 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14264 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14266 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14269 INTL_MACOSX_LIBS=
14270 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14271 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14279 LIBINTL=
14280 LTLIBINTL=
14281 POSUB=
14283 case " $gt_needs " in
14284 *" need-formatstring-macros "*) gt_api_version=3 ;;
14285 *" need-ngettext "*) gt_api_version=2 ;;
14286 *) gt_api_version=1 ;;
14287 esac
14288 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14289 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14291 if test "$USE_NLS" = "yes"; then
14292 gt_use_preinstalled_gnugettext=no
14295 if test $gt_api_version -ge 3; then
14296 gt_revision_test_code='
14297 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14298 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14299 #endif
14300 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14302 else
14303 gt_revision_test_code=
14305 if test $gt_api_version -ge 2; then
14306 gt_expression_test_code=' + * ngettext ("", "", 0)'
14307 else
14308 gt_expression_test_code=
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14312 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14313 if eval \${$gt_func_gnugettext_libc+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <libintl.h>
14319 $gt_revision_test_code
14320 extern int _nl_msg_cat_cntr;
14321 extern int *_nl_domain_bindings;
14323 main ()
14325 bindtextdomain ("", "");
14326 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14328 return 0;
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 eval "$gt_func_gnugettext_libc=yes"
14333 else
14334 eval "$gt_func_gnugettext_libc=no"
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14339 eval ac_res=\$$gt_func_gnugettext_libc
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14341 $as_echo "$ac_res" >&6; }
14343 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14349 am_save_CPPFLAGS="$CPPFLAGS"
14351 for element in $INCICONV; do
14352 haveit=
14353 for x in $CPPFLAGS; do
14355 acl_save_prefix="$prefix"
14356 prefix="$acl_final_prefix"
14357 acl_save_exec_prefix="$exec_prefix"
14358 exec_prefix="$acl_final_exec_prefix"
14359 eval x=\"$x\"
14360 exec_prefix="$acl_save_exec_prefix"
14361 prefix="$acl_save_prefix"
14363 if test "X$x" = "X$element"; then
14364 haveit=yes
14365 break
14367 done
14368 if test -z "$haveit"; then
14369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14371 done
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14375 $as_echo_n "checking for iconv... " >&6; }
14376 if ${am_cv_func_iconv+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14380 am_cv_func_iconv="no, consider installing GNU libiconv"
14381 am_cv_lib_iconv=no
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 #include <stdlib.h>
14385 #include <iconv.h>
14387 main ()
14389 iconv_t cd = iconv_open("","");
14390 iconv(cd,NULL,NULL,NULL,NULL);
14391 iconv_close(cd);
14393 return 0;
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"; then :
14397 am_cv_func_iconv=yes
14399 rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14401 if test "$am_cv_func_iconv" != yes; then
14402 am_save_LIBS="$LIBS"
14403 LIBS="$LIBS $LIBICONV"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <stdlib.h>
14407 #include <iconv.h>
14409 main ()
14411 iconv_t cd = iconv_open("","");
14412 iconv(cd,NULL,NULL,NULL,NULL);
14413 iconv_close(cd);
14415 return 0;
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"; then :
14419 am_cv_lib_iconv=yes
14420 am_cv_func_iconv=yes
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LIBS="$am_save_LIBS"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14429 $as_echo "$am_cv_func_iconv" >&6; }
14430 if test "$am_cv_func_iconv" = yes; then
14432 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14435 if test "$am_cv_lib_iconv" = yes; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14437 $as_echo_n "checking how to link with libiconv... " >&6; }
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14439 $as_echo "$LIBICONV" >&6; }
14440 else
14441 CPPFLAGS="$am_save_CPPFLAGS"
14442 LIBICONV=
14443 LTLIBICONV=
14452 use_additional=yes
14454 acl_save_prefix="$prefix"
14455 prefix="$acl_final_prefix"
14456 acl_save_exec_prefix="$exec_prefix"
14457 exec_prefix="$acl_final_exec_prefix"
14459 eval additional_includedir=\"$includedir\"
14460 eval additional_libdir=\"$libdir\"
14462 exec_prefix="$acl_save_exec_prefix"
14463 prefix="$acl_save_prefix"
14466 # Check whether --with-libintl-prefix was given.
14467 if test "${with_libintl_prefix+set}" = set; then :
14468 withval=$with_libintl_prefix;
14469 if test "X$withval" = "Xno"; then
14470 use_additional=no
14471 else
14472 if test "X$withval" = "X"; then
14474 acl_save_prefix="$prefix"
14475 prefix="$acl_final_prefix"
14476 acl_save_exec_prefix="$exec_prefix"
14477 exec_prefix="$acl_final_exec_prefix"
14479 eval additional_includedir=\"$includedir\"
14480 eval additional_libdir=\"$libdir\"
14482 exec_prefix="$acl_save_exec_prefix"
14483 prefix="$acl_save_prefix"
14485 else
14486 additional_includedir="$withval/include"
14487 additional_libdir="$withval/$acl_libdirstem"
14493 LIBINTL=
14494 LTLIBINTL=
14495 INCINTL=
14496 rpathdirs=
14497 ltrpathdirs=
14498 names_already_handled=
14499 names_next_round='intl '
14500 while test -n "$names_next_round"; do
14501 names_this_round="$names_next_round"
14502 names_next_round=
14503 for name in $names_this_round; do
14504 already_handled=
14505 for n in $names_already_handled; do
14506 if test "$n" = "$name"; then
14507 already_handled=yes
14508 break
14510 done
14511 if test -z "$already_handled"; then
14512 names_already_handled="$names_already_handled $name"
14513 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14514 eval value=\"\$HAVE_LIB$uppername\"
14515 if test -n "$value"; then
14516 if test "$value" = yes; then
14517 eval value=\"\$LIB$uppername\"
14518 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14519 eval value=\"\$LTLIB$uppername\"
14520 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14521 else
14524 else
14525 found_dir=
14526 found_la=
14527 found_so=
14528 found_a=
14529 if test $use_additional = yes; then
14530 if test -n "$shlibext" \
14531 && { test -f "$additional_libdir/lib$name.$shlibext" \
14532 || { test "$shlibext" = dll \
14533 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14534 found_dir="$additional_libdir"
14535 if test -f "$additional_libdir/lib$name.$shlibext"; then
14536 found_so="$additional_libdir/lib$name.$shlibext"
14537 else
14538 found_so="$additional_libdir/lib$name.dll.a"
14540 if test -f "$additional_libdir/lib$name.la"; then
14541 found_la="$additional_libdir/lib$name.la"
14543 else
14544 if test -f "$additional_libdir/lib$name.$libext"; then
14545 found_dir="$additional_libdir"
14546 found_a="$additional_libdir/lib$name.$libext"
14547 if test -f "$additional_libdir/lib$name.la"; then
14548 found_la="$additional_libdir/lib$name.la"
14553 if test "X$found_dir" = "X"; then
14554 for x in $LDFLAGS $LTLIBINTL; do
14556 acl_save_prefix="$prefix"
14557 prefix="$acl_final_prefix"
14558 acl_save_exec_prefix="$exec_prefix"
14559 exec_prefix="$acl_final_exec_prefix"
14560 eval x=\"$x\"
14561 exec_prefix="$acl_save_exec_prefix"
14562 prefix="$acl_save_prefix"
14564 case "$x" in
14565 -L*)
14566 dir=`echo "X$x" | sed -e 's/^X-L//'`
14567 if test -n "$shlibext" \
14568 && { test -f "$dir/lib$name.$shlibext" \
14569 || { test "$shlibext" = dll \
14570 && test -f "$dir/lib$name.dll.a"; }; }; then
14571 found_dir="$dir"
14572 if test -f "$dir/lib$name.$shlibext"; then
14573 found_so="$dir/lib$name.$shlibext"
14574 else
14575 found_so="$dir/lib$name.dll.a"
14577 if test -f "$dir/lib$name.la"; then
14578 found_la="$dir/lib$name.la"
14580 else
14581 if test -f "$dir/lib$name.$libext"; then
14582 found_dir="$dir"
14583 found_a="$dir/lib$name.$libext"
14584 if test -f "$dir/lib$name.la"; then
14585 found_la="$dir/lib$name.la"
14590 esac
14591 if test "X$found_dir" != "X"; then
14592 break
14594 done
14596 if test "X$found_dir" != "X"; then
14597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14598 if test "X$found_so" != "X"; then
14599 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14600 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14601 else
14602 haveit=
14603 for x in $ltrpathdirs; do
14604 if test "X$x" = "X$found_dir"; then
14605 haveit=yes
14606 break
14608 done
14609 if test -z "$haveit"; then
14610 ltrpathdirs="$ltrpathdirs $found_dir"
14612 if test "$hardcode_direct" = yes; then
14613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14614 else
14615 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14617 haveit=
14618 for x in $rpathdirs; do
14619 if test "X$x" = "X$found_dir"; then
14620 haveit=yes
14621 break
14623 done
14624 if test -z "$haveit"; then
14625 rpathdirs="$rpathdirs $found_dir"
14627 else
14628 haveit=
14629 for x in $LDFLAGS $LIBINTL; do
14631 acl_save_prefix="$prefix"
14632 prefix="$acl_final_prefix"
14633 acl_save_exec_prefix="$exec_prefix"
14634 exec_prefix="$acl_final_exec_prefix"
14635 eval x=\"$x\"
14636 exec_prefix="$acl_save_exec_prefix"
14637 prefix="$acl_save_prefix"
14639 if test "X$x" = "X-L$found_dir"; then
14640 haveit=yes
14641 break
14643 done
14644 if test -z "$haveit"; then
14645 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14647 if test "$hardcode_minus_L" != no; then
14648 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14649 else
14650 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14655 else
14656 if test "X$found_a" != "X"; then
14657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14658 else
14659 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14662 additional_includedir=
14663 case "$found_dir" in
14664 */$acl_libdirstem | */$acl_libdirstem/)
14665 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14666 additional_includedir="$basedir/include"
14668 esac
14669 if test "X$additional_includedir" != "X"; then
14670 if test "X$additional_includedir" != "X/usr/include"; then
14671 haveit=
14672 if test "X$additional_includedir" = "X/usr/local/include"; then
14673 if test -n "$GCC"; then
14674 case $host_os in
14675 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14676 esac
14679 if test -z "$haveit"; then
14680 for x in $CPPFLAGS $INCINTL; do
14682 acl_save_prefix="$prefix"
14683 prefix="$acl_final_prefix"
14684 acl_save_exec_prefix="$exec_prefix"
14685 exec_prefix="$acl_final_exec_prefix"
14686 eval x=\"$x\"
14687 exec_prefix="$acl_save_exec_prefix"
14688 prefix="$acl_save_prefix"
14690 if test "X$x" = "X-I$additional_includedir"; then
14691 haveit=yes
14692 break
14694 done
14695 if test -z "$haveit"; then
14696 if test -d "$additional_includedir"; then
14697 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14703 if test -n "$found_la"; then
14704 save_libdir="$libdir"
14705 case "$found_la" in
14706 */* | *\\*) . "$found_la" ;;
14707 *) . "./$found_la" ;;
14708 esac
14709 libdir="$save_libdir"
14710 for dep in $dependency_libs; do
14711 case "$dep" in
14712 -L*)
14713 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14714 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14715 haveit=
14716 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14717 if test -n "$GCC"; then
14718 case $host_os in
14719 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14720 esac
14723 if test -z "$haveit"; then
14724 haveit=
14725 for x in $LDFLAGS $LIBINTL; do
14727 acl_save_prefix="$prefix"
14728 prefix="$acl_final_prefix"
14729 acl_save_exec_prefix="$exec_prefix"
14730 exec_prefix="$acl_final_exec_prefix"
14731 eval x=\"$x\"
14732 exec_prefix="$acl_save_exec_prefix"
14733 prefix="$acl_save_prefix"
14735 if test "X$x" = "X-L$additional_libdir"; then
14736 haveit=yes
14737 break
14739 done
14740 if test -z "$haveit"; then
14741 if test -d "$additional_libdir"; then
14742 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14745 haveit=
14746 for x in $LDFLAGS $LTLIBINTL; do
14748 acl_save_prefix="$prefix"
14749 prefix="$acl_final_prefix"
14750 acl_save_exec_prefix="$exec_prefix"
14751 exec_prefix="$acl_final_exec_prefix"
14752 eval x=\"$x\"
14753 exec_prefix="$acl_save_exec_prefix"
14754 prefix="$acl_save_prefix"
14756 if test "X$x" = "X-L$additional_libdir"; then
14757 haveit=yes
14758 break
14760 done
14761 if test -z "$haveit"; then
14762 if test -d "$additional_libdir"; then
14763 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14769 -R*)
14770 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14771 if test "$enable_rpath" != no; then
14772 haveit=
14773 for x in $rpathdirs; do
14774 if test "X$x" = "X$dir"; then
14775 haveit=yes
14776 break
14778 done
14779 if test -z "$haveit"; then
14780 rpathdirs="$rpathdirs $dir"
14782 haveit=
14783 for x in $ltrpathdirs; do
14784 if test "X$x" = "X$dir"; then
14785 haveit=yes
14786 break
14788 done
14789 if test -z "$haveit"; then
14790 ltrpathdirs="$ltrpathdirs $dir"
14794 -l*)
14795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14797 *.la)
14798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14801 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14802 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14804 esac
14805 done
14807 else
14808 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14809 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14813 done
14814 done
14815 if test "X$rpathdirs" != "X"; then
14816 if test -n "$hardcode_libdir_separator"; then
14817 alldirs=
14818 for found_dir in $rpathdirs; do
14819 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14820 done
14821 acl_save_libdir="$libdir"
14822 libdir="$alldirs"
14823 eval flag=\"$hardcode_libdir_flag_spec\"
14824 libdir="$acl_save_libdir"
14825 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14826 else
14827 for found_dir in $rpathdirs; do
14828 acl_save_libdir="$libdir"
14829 libdir="$found_dir"
14830 eval flag=\"$hardcode_libdir_flag_spec\"
14831 libdir="$acl_save_libdir"
14832 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14833 done
14836 if test "X$ltrpathdirs" != "X"; then
14837 for found_dir in $ltrpathdirs; do
14838 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14839 done
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14843 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14844 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 gt_save_CPPFLAGS="$CPPFLAGS"
14848 CPPFLAGS="$CPPFLAGS $INCINTL"
14849 gt_save_LIBS="$LIBS"
14850 LIBS="$LIBS $LIBINTL"
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 #include <libintl.h>
14854 $gt_revision_test_code
14855 extern int _nl_msg_cat_cntr;
14856 extern
14857 #ifdef __cplusplus
14859 #endif
14860 const char *_nl_expand_alias (const char *);
14862 main ()
14864 bindtextdomain ("", "");
14865 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14867 return 0;
14869 _ACEOF
14870 if ac_fn_c_try_link "$LINENO"; then :
14871 eval "$gt_func_gnugettext_libintl=yes"
14872 else
14873 eval "$gt_func_gnugettext_libintl=no"
14875 rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14877 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14878 LIBS="$LIBS $LIBICONV"
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <libintl.h>
14882 $gt_revision_test_code
14883 extern int _nl_msg_cat_cntr;
14884 extern
14885 #ifdef __cplusplus
14887 #endif
14888 const char *_nl_expand_alias (const char *);
14890 main ()
14892 bindtextdomain ("", "");
14893 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14895 return 0;
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 LIBINTL="$LIBINTL $LIBICONV"
14900 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14901 eval "$gt_func_gnugettext_libintl=yes"
14904 rm -f core conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14907 CPPFLAGS="$gt_save_CPPFLAGS"
14908 LIBS="$gt_save_LIBS"
14910 eval ac_res=\$$gt_func_gnugettext_libintl
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14912 $as_echo "$ac_res" >&6; }
14915 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14916 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14917 && test "$PACKAGE" != gettext-runtime \
14918 && test "$PACKAGE" != gettext-tools; }; then
14919 gt_use_preinstalled_gnugettext=yes
14920 else
14921 LIBINTL=
14922 LTLIBINTL=
14923 INCINTL=
14928 if test -n "$INTL_MACOSX_LIBS"; then
14929 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14930 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14931 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14932 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14936 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14937 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14939 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14941 else
14942 USE_NLS=no
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14947 $as_echo_n "checking whether to use NLS... " >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14949 $as_echo "$USE_NLS" >&6; }
14950 if test "$USE_NLS" = "yes"; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14952 $as_echo_n "checking where the gettext function comes from... " >&6; }
14953 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14954 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14955 gt_source="external libintl"
14956 else
14957 gt_source="libc"
14959 else
14960 gt_source="included intl directory"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14963 $as_echo "$gt_source" >&6; }
14966 if test "$USE_NLS" = "yes"; then
14968 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14969 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14971 $as_echo_n "checking how to link with libintl... " >&6; }
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14973 $as_echo "$LIBINTL" >&6; }
14975 for element in $INCINTL; do
14976 haveit=
14977 for x in $CPPFLAGS; do
14979 acl_save_prefix="$prefix"
14980 prefix="$acl_final_prefix"
14981 acl_save_exec_prefix="$exec_prefix"
14982 exec_prefix="$acl_final_exec_prefix"
14983 eval x=\"$x\"
14984 exec_prefix="$acl_save_exec_prefix"
14985 prefix="$acl_save_prefix"
14987 if test "X$x" = "X$element"; then
14988 haveit=yes
14989 break
14991 done
14992 if test -z "$haveit"; then
14993 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14995 done
15000 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15003 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15007 POSUB=po
15012 INTLLIBS="$LIBINTL"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15021 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15022 # Check whether --enable-dmalloc was given.
15023 if test "${enable_dmalloc+set}" = set; then :
15024 enableval=$enable_dmalloc;
15027 if test x$enable_dmalloc = "xyes" ; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029 $as_echo "yes" >&6; }
15030 else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15036 # Check whether --with-dmalloc-dir was given.
15037 if test "${with_dmalloc_dir+set}" = set; then :
15038 withval=$with_dmalloc_dir;
15039 if test "x$withval" != "xno" ; then
15040 enable_dmalloc = "yes"
15041 CPPFLAGS="$CPPFLAGS -I${withval}"
15042 LDFLAGS="$LDFLAGS -L${withval}"
15048 if test x$enable_dmalloc = "xyes" ; then
15050 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15054 ALPINE_psefcmd="/bin/ps auxww"
15055 ALPINE_psfailed="0"
15056 ALPINE_PSTEST="-"
15058 # Check whether --with-ps-cmd was given.
15059 if test "${with_ps_cmd+set}" = set; then :
15060 withval=$with_ps_cmd;
15061 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
15062 withval=$ALPINE_psefcmd
15064 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15065 if test -n "$ALPINE_PSTEST" ; then
15066 ALPINE_psefcmd="$withval"
15067 else
15068 ALPINE_psfailed="1"
15069 if test "x$ALPINE_psefcmd" != "x$withval" ; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
15071 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
15077 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
15078 withval="$ALPINE_psefcmd"
15079 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15080 if test -z "$ALPINE_PSTEST" ; then
15081 ALPINE_psfailed="1"
15082 else
15083 ALPINE_psfailed="0"
15086 if test "$ALPINE_psfailed" = "0" ; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define PSEFCMD "$ALPINE_psefcmd"
15090 _ACEOF
15094 case $host in
15095 *apple-darwin*)
15096 if test -d /opt/local ; then
15097 localedir="/opt/local/share/locale"
15098 else
15099 localedir="\${datadir}/locale"
15102 *-*-cygwin)
15103 localedir="/usr/share"
15106 localedir="\${datadir}/locale"
15108 esac
15110 # Check whether --with-localedir was given.
15111 if test "${with_localedir+set}" = set; then :
15112 withval=$with_localedir;
15113 case $withval in
15114 yes)
15119 localedir=$withval
15121 esac
15125 localedir="$localedir"
15128 # Setup OS-Specific features
15129 case "$host" in
15130 *darwin*)
15131 # Check whether --enable-osx-universal-binaries was given.
15132 if test "${enable_osx_universal_binaries+set}" = set; then :
15133 enableval=$enable_osx_universal_binaries;
15136 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15137 if test "x$enable_dependency_tracking" != xno ; then
15138 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15139 Please re-run configure with these options:
15140 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15142 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15143 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15144 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15145 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15146 else
15147 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15149 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15150 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15151 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15152 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15153 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15154 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15157 esac
15160 # Check whether --with-include-path was given.
15161 if test "${with_include_path+set}" = set; then :
15162 withval=$with_include_path;
15163 case $withval in
15166 yes)
15169 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15170 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15171 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15173 esac
15179 # Check whether --with-lib-path was given.
15180 if test "${with_lib_path+set}" = set; then :
15181 withval=$with_lib_path;
15182 case $withval in
15185 yes)
15188 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15189 LDFLAGS="$LDFLAGS $new_ldflags"
15190 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15192 esac
15198 # Check whether --with-pubcookie was given.
15199 if test "${with_pubcookie+set}" = set; then :
15200 withval=$with_pubcookie;
15201 if test "x$withval" != "xno" ; then
15202 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15210 # Check whether --with-web-bin was given.
15211 if test "${with_web_bin+set}" = set; then :
15212 withval=$with_web_bin;
15213 case "$withval" in
15216 yes)
15219 WEB_BINDIR=$withval
15221 esac
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15227 $as_echo_n "checking option: debugging is enabled... " >&6; }
15228 # Check whether --enable-debug was given.
15229 if test "${enable_debug+set}" = set; then :
15230 enableval=$enable_debug;
15233 if test x$enable_debug != "xno" ; then
15234 AM_CFLAGS="$AM_CFLAGS -g"
15236 $as_echo "#define DEBUG 1" >>confdefs.h
15239 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 $as_echo "yes" >&6; }
15243 else
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15249 $as_echo_n "checking option: optimization is enabled... " >&6; }
15250 # Check whether --enable-optimization was given.
15251 if test "${enable_optimization+set}" = set; then :
15252 enableval=$enable_optimization;
15255 if test x$enable_optimization != "xno" ; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15257 $as_echo "yes" >&6; }
15258 else
15259 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15260 alpine_c_client_gccoptlevel="-O0"
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15262 $as_echo "no" >&6; }
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15266 $as_echo_n "checking option: mouse support enabled... " >&6; }
15267 # Check whether --enable-mouse was given.
15268 if test "${enable_mouse+set}" = set; then :
15269 enableval=$enable_mouse;
15272 if test x$enable_mouse != "xno" ; then
15274 $as_echo "#define MOUSE /**/" >>confdefs.h
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15277 $as_echo "yes" >&6; }
15278 else
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280 $as_echo "no" >&6; }
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15284 $as_echo_n "checking option: quotas enabled... " >&6; }
15285 # Check whether --enable-quotas was given.
15286 if test "${enable_quotas+set}" = set; then :
15287 enableval=$enable_quotas;
15290 if test x$enable_quotas = "xyes" ; then
15292 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15295 $as_echo "yes" >&6; }
15296 else
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298 $as_echo "no" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15302 $as_echo_n "checking option: From changing enabled... " >&6; }
15303 # Check whether --enable-from_changing was given.
15304 if test "${enable_from_changing+set}" = set; then :
15305 enableval=$enable_from_changing;
15308 if test x$enable_from_changing != "xno" ; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15310 $as_echo "yes" >&6; }
15311 else
15313 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15320 $as_echo_n "checking option: background post enabled... " >&6; }
15321 # Check whether --enable-background-post was given.
15322 if test "${enable_background_post+set}" = set; then :
15323 enableval=$enable_background_post;
15326 if test x$enable_background_post != "xno" ; then
15328 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15331 $as_echo "yes" >&6; }
15332 else
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334 $as_echo "no" >&6; }
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15338 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15339 # Check whether --enable-keyboard-lock was given.
15340 if test "${enable_keyboard_lock+set}" = set; then :
15341 enableval=$enable_keyboard_lock;
15344 if test x$enable_keyboard_lock != "xno" ; then
15346 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349 $as_echo "yes" >&6; }
15350 else
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352 $as_echo "no" >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15356 $as_echo_n "checking option: from encoding enabled... " >&6; }
15357 # Check whether --enable-from-encoding was given.
15358 if test "${enable_from_encoding+set}" = set; then :
15359 enableval=$enable_from_encoding;
15362 if test x$enable_from_encoding = "xyes" ; then
15364 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15367 $as_echo "yes" >&6; }
15368 else
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370 $as_echo "no" >&6; }
15374 # Check whether --with-smtp-msa was given.
15375 if test "${with_smtp_msa+set}" = set; then :
15376 withval=$with_smtp_msa;
15377 case "$withval" in
15380 yes)
15381 # Extract the first word of "sendmail", so it can be a program name with args.
15382 set dummy sendmail; ac_word=$2
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15384 $as_echo_n "checking for $ac_word... " >&6; }
15385 if ${ac_cv_path_SENDMAIL+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 case $SENDMAIL in
15389 [\\/]* | ?:[\\/]*)
15390 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 as_dummy="$PATH:/usr/sbin:/usr/lib"
15395 for as_dir in $as_dummy
15397 IFS=$as_save_IFS
15398 test -z "$as_dir" && as_dir=.
15399 for ac_exec_ext in '' $ac_executable_extensions; do
15400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15401 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15403 break 2
15405 done
15406 done
15407 IFS=$as_save_IFS
15409 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15411 esac
15413 SENDMAIL=$ac_cv_path_SENDMAIL
15414 if test -n "$SENDMAIL"; then
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15416 $as_echo "$SENDMAIL" >&6; }
15417 else
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15425 SENDMAIL=$withval
15427 esac
15429 else
15431 # Extract the first word of "sendmail", so it can be a program name with args.
15432 set dummy sendmail; ac_word=$2
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15434 $as_echo_n "checking for $ac_word... " >&6; }
15435 if ${ac_cv_path_SENDMAIL+:} false; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 case $SENDMAIL in
15439 [\\/]* | ?:[\\/]*)
15440 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15444 as_dummy="$PATH:/usr/sbin:/usr/lib"
15445 for as_dir in $as_dummy
15447 IFS=$as_save_IFS
15448 test -z "$as_dir" && as_dir=.
15449 for ac_exec_ext in '' $ac_executable_extensions; do
15450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15451 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15453 break 2
15455 done
15456 done
15457 IFS=$as_save_IFS
15459 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15461 esac
15463 SENDMAIL=$ac_cv_path_SENDMAIL
15464 if test -n "$SENDMAIL"; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15466 $as_echo "$SENDMAIL" >&6; }
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469 $as_echo "no" >&6; }
15476 if test -n "$SENDMAIL" ; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define SENDMAIL "$SENDMAIL"
15480 _ACEOF
15484 smtp_msa_flags="-bs -odb -oem"
15486 # Check whether --with-smtp-msa-flags was given.
15487 if test "${with_smtp_msa_flags+set}" = set; then :
15488 withval=$with_smtp_msa_flags;
15489 if test "x$withval" != "xno" ; then
15490 smtp_msa_flags=$withval
15496 cat >>confdefs.h <<_ACEOF
15497 #define SENDMAILFLAGS "$smtp_msa_flags"
15498 _ACEOF
15501 npa="inews"
15503 # Check whether --with-npa was given.
15504 if test "${with_npa+set}" = set; then :
15505 withval=$with_npa;
15506 case "$withval" in
15509 yes)
15510 # Extract the first word of "inews", so it can be a program name with args.
15511 set dummy inews; ac_word=$2
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15513 $as_echo_n "checking for $ac_word... " >&6; }
15514 if ${ac_cv_path_NPA_PROG+:} false; then :
15515 $as_echo_n "(cached) " >&6
15516 else
15517 case $NPA_PROG in
15518 [\\/]* | ?:[\\/]*)
15519 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 as_dummy="$PATH:/usr/sbin:/usr/lib"
15524 for as_dir in $as_dummy
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15530 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15532 break 2
15534 done
15535 done
15536 IFS=$as_save_IFS
15538 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15540 esac
15542 NPA_PROG=$ac_cv_path_NPA_PROG
15543 if test -n "$NPA_PROG"; then
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15545 $as_echo "$NPA_PROG" >&6; }
15546 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15554 NPA_PROG=$withval
15556 esac
15558 else
15560 # Extract the first word of "inews", so it can be a program name with args.
15561 set dummy inews; ac_word=$2
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563 $as_echo_n "checking for $ac_word... " >&6; }
15564 if ${ac_cv_path_NPA_PROG+:} false; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 case $NPA_PROG in
15568 [\\/]* | ?:[\\/]*)
15569 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15573 as_dummy="$PATH:/usr/sbin:/usr/lib"
15574 for as_dir in $as_dummy
15576 IFS=$as_save_IFS
15577 test -z "$as_dir" && as_dir=.
15578 for ac_exec_ext in '' $ac_executable_extensions; do
15579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15580 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582 break 2
15584 done
15585 done
15586 IFS=$as_save_IFS
15588 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15590 esac
15592 NPA_PROG=$ac_cv_path_NPA_PROG
15593 if test -n "$NPA_PROG"; then
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15595 $as_echo "$NPA_PROG" >&6; }
15596 else
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15606 npa_flags="-h"
15608 # Check whether --with-npa-flags was given.
15609 if test "${with_npa_flags+set}" = set; then :
15610 withval=$with_npa_flags;
15611 if test "x$withval" != "xno" ; then
15612 npa_flags=$withval
15617 if test -n "$NPA_PROG" ; then
15619 cat >>confdefs.h <<_ACEOF
15620 #define SENDNEWS "$NPA_PROG $npa_flags"
15621 _ACEOF
15626 # Check whether --with-password-prog was given.
15627 if test "${with_password_prog+set}" = set; then :
15628 withval=$with_password_prog;
15629 case "$withval" in
15632 yes)
15633 # Extract the first word of "passwd", so it can be a program name with args.
15634 set dummy passwd; ac_word=$2
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15636 $as_echo_n "checking for $ac_word... " >&6; }
15637 if ${ac_cv_path_PWPROG+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 case $PWPROG in
15641 [\\/]* | ?:[\\/]*)
15642 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646 as_dummy="$PATH:/usr/sbin:/usr/lib"
15647 for as_dir in $as_dummy
15649 IFS=$as_save_IFS
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 break 2
15657 done
15658 done
15659 IFS=$as_save_IFS
15661 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15663 esac
15665 PWPROG=$ac_cv_path_PWPROG
15666 if test -n "$PWPROG"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15668 $as_echo "$PWPROG" >&6; }
15669 else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671 $as_echo "no" >&6; }
15677 # Extract the first word of "$withval", so it can be a program name with args.
15678 set dummy $withval; ac_word=$2
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15680 $as_echo_n "checking for $ac_word... " >&6; }
15681 if ${ac_cv_path_PWPROG+:} false; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 case $PWPROG in
15685 [\\/]* | ?:[\\/]*)
15686 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 as_dummy="$PATH:/usr/sbin:/usr/lib"
15691 for as_dir in $as_dummy
15693 IFS=$as_save_IFS
15694 test -z "$as_dir" && as_dir=.
15695 for ac_exec_ext in '' $ac_executable_extensions; do
15696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15697 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15699 break 2
15701 done
15702 done
15703 IFS=$as_save_IFS
15705 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15707 esac
15709 PWPROG=$ac_cv_path_PWPROG
15710 if test -n "$PWPROG"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15712 $as_echo "$PWPROG" >&6; }
15713 else
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715 $as_echo "no" >&6; }
15720 esac
15722 else
15724 # Extract the first word of "passwd", so it can be a program name with args.
15725 set dummy passwd; ac_word=$2
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15727 $as_echo_n "checking for $ac_word... " >&6; }
15728 if ${ac_cv_path_PWPROG+:} false; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15731 case $PWPROG in
15732 [\\/]* | ?:[\\/]*)
15733 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15737 as_dummy="$PATH:/usr/sbin:/usr/lib"
15738 for as_dir in $as_dummy
15740 IFS=$as_save_IFS
15741 test -z "$as_dir" && as_dir=.
15742 for ac_exec_ext in '' $ac_executable_extensions; do
15743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15744 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15746 break 2
15748 done
15749 done
15750 IFS=$as_save_IFS
15752 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15754 esac
15756 PWPROG=$ac_cv_path_PWPROG
15757 if test -n "$PWPROG"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15759 $as_echo "$PWPROG" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15769 if test -n "$PWPROG" ; then
15771 cat >>confdefs.h <<_ACEOF
15772 #define PASSWD_PROG "$PWPROG"
15773 _ACEOF
15778 # Check whether --with-simple-spellcheck was given.
15779 if test "${with_simple_spellcheck+set}" = set; then :
15780 withval=$with_simple_spellcheck;
15781 if test "x$withval" != "xno" ; then
15782 SPELLPROG=$withval
15785 else
15787 # Extract the first word of "hunspell", so it can be a program name with args.
15788 set dummy hunspell; ac_word=$2
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790 $as_echo_n "checking for $ac_word... " >&6; }
15791 if ${ac_cv_prog_SPELLPROG+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 if test -n "$SPELLPROG"; then
15795 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15796 else
15797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798 for as_dir in $PATH
15800 IFS=$as_save_IFS
15801 test -z "$as_dir" && as_dir=.
15802 for ac_exec_ext in '' $ac_executable_extensions; do
15803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_prog_SPELLPROG="hunspell"
15805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15806 break 2
15808 done
15809 done
15810 IFS=$as_save_IFS
15814 SPELLPROG=$ac_cv_prog_SPELLPROG
15815 if test -n "$SPELLPROG"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15817 $as_echo "$SPELLPROG" >&6; }
15818 else
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820 $as_echo "no" >&6; }
15824 if test -z "$SPELLPROG" ; then
15825 # Extract the first word of "aspell", so it can be a program name with args.
15826 set dummy aspell; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828 $as_echo_n "checking for $ac_word... " >&6; }
15829 if ${ac_cv_prog_SPELLPROG+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 if test -n "$SPELLPROG"; then
15833 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15834 else
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_SPELLPROG="aspell"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15846 done
15847 done
15848 IFS=$as_save_IFS
15852 SPELLPROG=$ac_cv_prog_SPELLPROG
15853 if test -n "$SPELLPROG"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15855 $as_echo "$SPELLPROG" >&6; }
15856 else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15862 if test -z "$SPELLPROG" ; then
15863 # Extract the first word of "ispell", so it can be a program name with args.
15864 set dummy ispell; ac_word=$2
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15866 $as_echo_n "checking for $ac_word... " >&6; }
15867 if ${ac_cv_prog_SPELLPROG+:} false; then :
15868 $as_echo_n "(cached) " >&6
15869 else
15870 if test -n "$SPELLPROG"; then
15871 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15872 else
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15876 IFS=$as_save_IFS
15877 test -z "$as_dir" && as_dir=.
15878 for ac_exec_ext in '' $ac_executable_extensions; do
15879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15880 ac_cv_prog_SPELLPROG="ispell"
15881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15882 break 2
15884 done
15885 done
15886 IFS=$as_save_IFS
15890 SPELLPROG=$ac_cv_prog_SPELLPROG
15891 if test -n "$SPELLPROG"; then
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15893 $as_echo "$SPELLPROG" >&6; }
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15900 if test -z "$SPELLPROG" ; then
15901 SPELLPROG="spell"
15909 if test "x$SPELLPROG" != "xno" ; then
15910 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15911 set dummy $SPELLPROG; ac_word=$2
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15913 $as_echo_n "checking for $ac_word... " >&6; }
15914 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 case $alpine_simple_spellcheck in
15918 [\\/]* | ?:[\\/]*)
15919 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15923 for as_dir in $PATH
15925 IFS=$as_save_IFS
15926 test -z "$as_dir" && as_dir=.
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15929 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15931 break 2
15933 done
15934 done
15935 IFS=$as_save_IFS
15938 esac
15940 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15941 if test -n "$alpine_simple_spellcheck"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15943 $as_echo "$alpine_simple_spellcheck" >&6; }
15944 else
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15950 if test -n "$alpine_simple_spellcheck" ; then
15951 case "$SPELLPROG" in
15952 hunspell)
15953 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15955 aspell)
15956 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15958 ispell)
15959 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15963 esac
15968 # Check whether --with-interactive-spellcheck was given.
15969 if test "${with_interactive_spellcheck+set}" = set; then :
15970 withval=$with_interactive_spellcheck;
15971 if test "x$withval" != "xno" ; then
15972 ISPELLPROG=$withval
15975 else
15977 # Extract the first word of "hunspell", so it can be a program name with args.
15978 set dummy hunspell; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15982 $as_echo_n "(cached) " >&6
15983 else
15984 if test -n "$ISPELLPROG"; then
15985 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15986 else
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_prog_ISPELLPROG="hunspell"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15998 done
15999 done
16000 IFS=$as_save_IFS
16004 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16005 if test -n "$ISPELLPROG"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16007 $as_echo "$ISPELLPROG" >&6; }
16008 else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16014 if test -z "$ISPELLPROG" ; then
16015 # Extract the first word of "aspell", so it can be a program name with args.
16016 set dummy aspell; ac_word=$2
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16018 $as_echo_n "checking for $ac_word... " >&6; }
16019 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16020 $as_echo_n "(cached) " >&6
16021 else
16022 if test -n "$ISPELLPROG"; then
16023 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16024 else
16025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16026 for as_dir in $PATH
16028 IFS=$as_save_IFS
16029 test -z "$as_dir" && as_dir=.
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16032 ac_cv_prog_ISPELLPROG="aspell"
16033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16034 break 2
16036 done
16037 done
16038 IFS=$as_save_IFS
16042 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16043 if test -n "$ISPELLPROG"; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16045 $as_echo "$ISPELLPROG" >&6; }
16046 else
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16052 if test -z "$SPELLPROG" ; then
16053 ISPELLPROG="ispell"
16060 if test "x$ISPELLPROG" != "xno" ; then
16061 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16062 set dummy $ISPELLPROG; ac_word=$2
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16064 $as_echo_n "checking for $ac_word... " >&6; }
16065 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 case $alpine_interactive_spellcheck in
16069 [\\/]* | ?:[\\/]*)
16070 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16076 IFS=$as_save_IFS
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16082 break 2
16084 done
16085 done
16086 IFS=$as_save_IFS
16089 esac
16091 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16092 if test -n "$alpine_interactive_spellcheck"; then
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16094 $as_echo "$alpine_interactive_spellcheck" >&6; }
16095 else
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16101 if test -n "$alpine_interactive_spellcheck" ; then
16102 case "$ISPELLPROG" in
16103 aspell)
16104 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16108 esac
16112 if test -n "$alpine_interactive_spellcheck" ; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16116 _ACEOF
16120 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16121 alpine_simple_spellcheck=test
16124 cat >>confdefs.h <<_ACEOF
16125 #define SPELLER "$alpine_simple_spellcheck"
16126 _ACEOF
16129 case "$prefix" in
16130 NONE) dpv=/usr/local/lib/pine.conf ;;
16131 *) dpv=${prefix}/lib/pine.conf ;;
16132 esac
16134 # Check whether --with-system-pinerc was given.
16135 if test "${with_system_pinerc+set}" = set; then :
16136 withval=$with_system_pinerc;
16137 case "$withval" in
16140 yes)
16143 dpv=$withval
16145 esac
16150 cat >>confdefs.h <<_ACEOF
16151 #define SYSTEM_PINERC "$dpv"
16152 _ACEOF
16155 case "$prefix" in
16156 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16157 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16158 esac
16160 # Check whether --with-system-fixed-pinerc was given.
16161 if test "${with_system_fixed_pinerc+set}" = set; then :
16162 withval=$with_system_fixed_pinerc;
16163 case "$withval" in
16166 yes)
16169 dpv=$withval
16171 esac
16176 cat >>confdefs.h <<_ACEOF
16177 #define SYSTEM_PINERC_FIXED "$dpv"
16178 _ACEOF
16181 case "$prefix" in
16182 NONE) dpv=/usr/local/lib/pine.info ;;
16183 *) dpv=${prefix}/lib/pine.info ;;
16184 esac
16186 # Check whether --with-local-support-info was given.
16187 if test "${with_local_support_info+set}" = set; then :
16188 withval=$with_local_support_info;
16189 case "$withval" in
16192 yes)
16195 dpv=$withval
16197 esac
16202 cat >>confdefs.h <<_ACEOF
16203 #define SYSTEM_PINE_INFO_PATH "$dpv"
16204 _ACEOF
16212 dpv=150
16214 # Check whether --with-mailcheck-interval was given.
16215 if test "${with_mailcheck_interval+set}" = set; then :
16216 withval=$with_mailcheck_interval;
16217 if test "x$withval" != "xno" ; then
16218 dpv=$withval
16224 cat >>confdefs.h <<_ACEOF
16225 #define DF_MAILCHECK "$dpv"
16226 _ACEOF
16230 dpv=420
16232 # Check whether --with-checkpoint-interval was given.
16233 if test "${with_checkpoint_interval+set}" = set; then :
16234 withval=$with_checkpoint_interval;
16235 if test "x$withval" != "xno" ; then
16236 dpv=$withval
16242 cat >>confdefs.h <<_ACEOF
16243 #define CHECK_POINT_TIME $dpv
16244 _ACEOF
16248 dpv=12
16250 # Check whether --with-checkpoint-frequency was given.
16251 if test "${with_checkpoint_frequency+set}" = set; then :
16252 withval=$with_checkpoint_frequency;
16253 if test "x$withval" != "xno" ; then
16254 dpv=$withval
16260 cat >>confdefs.h <<_ACEOF
16261 #define CHECK_POINT_FREQ $dpv
16262 _ACEOF
16266 dpv=24
16268 # Check whether --with-display-rows was given.
16269 if test "${with_display_rows+set}" = set; then :
16270 withval=$with_display_rows;
16271 if test "x$withval" != "xno" ; then
16272 dpv=$withval
16278 cat >>confdefs.h <<_ACEOF
16279 #define DEFAULT_LINES_ON_TERMINAL $dpv
16280 _ACEOF
16284 dpv=80
16286 # Check whether --with-display-columns was given.
16287 if test "${with_display_columns+set}" = set; then :
16288 withval=$with_display_columns;
16289 if test "x$withval" != "xno" ; then
16290 dpv=$withval
16296 cat >>confdefs.h <<_ACEOF
16297 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16298 _ACEOF
16302 dpv=200
16304 # Check whether --with-max-display-rows was given.
16305 if test "${with_max_display_rows+set}" = set; then :
16306 withval=$with_max_display_rows;
16307 if test "x$withval" != "xno" ; then
16308 dpv=$withval
16314 cat >>confdefs.h <<_ACEOF
16315 #define MAX_SCREEN_ROWS $dpv
16316 _ACEOF
16320 dpv=500
16322 # Check whether --with-max-display-columns was given.
16323 if test "${with_max_display_columns+set}" = set; then :
16324 withval=$with_max_display_columns;
16325 if test "x$withval" != "xno" ; then
16326 dpv=$withval
16332 cat >>confdefs.h <<_ACEOF
16333 #define MAX_SCREEN_COLS $dpv
16334 _ACEOF
16338 dpv=74
16340 # Check whether --with-fill-column was given.
16341 if test "${with_fill_column+set}" = set; then :
16342 withval=$with_fill_column;
16343 if test "x$withval" != "xno" ; then
16344 dpv=$withval
16350 cat >>confdefs.h <<_ACEOF
16351 #define DF_FILLCOL "$dpv"
16352 _ACEOF
16356 dpv=80
16358 # Check whether --with-max_fill-column was given.
16359 if test "${with_max_fill_column+set}" = set; then :
16360 withval=$with_max_fill_column;
16361 if test "x$withval" != "xno" ; then
16362 dpv=$withval
16368 cat >>confdefs.h <<_ACEOF
16369 #define MAX_FILLCOL $dpv
16370 _ACEOF
16374 dpv=2
16376 # Check whether --with-debug-level was given.
16377 if test "${with_debug_level+set}" = set; then :
16378 withval=$with_debug_level;
16379 if test "x$withval" != "xno" ; then
16380 dpv=$withval
16386 cat >>confdefs.h <<_ACEOF
16387 #define DEFAULT_DEBUG $dpv
16388 _ACEOF
16392 dpv=4
16394 # Check whether --with-debug-files was given.
16395 if test "${with_debug_files+set}" = set; then :
16396 withval=$with_debug_files;
16397 if test "x$withval" != "xno" ; then
16398 dpv=$withval
16404 cat >>confdefs.h <<_ACEOF
16405 #define NUMDEBUGFILES $dpv
16406 _ACEOF
16410 dpv=.pine-debug
16412 # Check whether --with-debug-file was given.
16413 if test "${with_debug_file+set}" = set; then :
16414 withval=$with_debug_file;
16415 if test "x$withval" != "xno" ; then
16416 dpv=$withval
16422 cat >>confdefs.h <<_ACEOF
16423 #define DEBUGFILE "$dpv"
16424 _ACEOF
16428 dpv="\$Forwarded"
16430 # Check whether --with-forwarded-keyword was given.
16431 if test "${with_forwarded_keyword+set}" = set; then :
16432 withval=$with_forwarded_keyword;
16433 if test "x$withval" != "xno" ; then
16434 dpv=$withval
16440 cat >>confdefs.h <<_ACEOF
16441 #define FORWARDED_FLAG "$dpv"
16442 _ACEOF
16446 dpv=2
16448 # Check whether --with-display-overlap was given.
16449 if test "${with_display_overlap+set}" = set; then :
16450 withval=$with_display_overlap;
16451 if test "x$withval" != "xno" ; then
16452 dpv=$withval
16458 cat >>confdefs.h <<_ACEOF
16459 #define DF_OVERLAP "$dpv"
16460 _ACEOF
16464 dpv=0
16466 # Check whether --with-display-margin was given.
16467 if test "${with_display_margin+set}" = set; then :
16468 withval=$with_display_margin;
16469 if test "x$withval" != "xno" ; then
16470 dpv=$withval
16476 cat >>confdefs.h <<_ACEOF
16477 #define DF_MARGIN "$dpv"
16478 _ACEOF
16482 dpv=sent-mail
16484 # Check whether --with-default-fcc was given.
16485 if test "${with_default_fcc+set}" = set; then :
16486 withval=$with_default_fcc;
16487 if test "x$withval" != "xno" ; then
16488 dpv=$withval
16494 cat >>confdefs.h <<_ACEOF
16495 #define DF_DEFAULT_FCC "$dpv"
16496 _ACEOF
16500 dpv=saved-messages
16502 # Check whether --with-default-save-folder was given.
16503 if test "${with_default_save_folder+set}" = set; then :
16504 withval=$with_default_save_folder;
16505 if test "x$withval" != "xno" ; then
16506 dpv=$withval
16512 cat >>confdefs.h <<_ACEOF
16513 #define DEFAULT_SAVE "$dpv"
16514 _ACEOF
16518 dpv=postponed-mail
16520 # Check whether --with-default-legacy-postponed-folder was given.
16521 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16522 withval=$with_default_legacy_postponed_folder;
16523 if test "x$withval" != "xno" ; then
16524 dpv=$withval
16530 cat >>confdefs.h <<_ACEOF
16531 #define POSTPONED_MAIL "$dpv"
16532 _ACEOF
16536 dpv=postponed-msgs
16538 # Check whether --with-default-postponed-folder was given.
16539 if test "${with_default_postponed_folder+set}" = set; then :
16540 withval=$with_default_postponed_folder;
16541 if test "x$withval" != "xno" ; then
16542 dpv=$withval
16548 cat >>confdefs.h <<_ACEOF
16549 #define POSTPONED_MSGS "$dpv"
16550 _ACEOF
16554 dpv=Trash
16556 # Check whether --with-default-trash-folder was given.
16557 if test "${with_default_trash_folder+set}" = set; then :
16558 withval=$with_default_trash_folder;
16559 if test "x$withval" != "xno" ; then
16560 dpv=$withval
16566 cat >>confdefs.h <<_ACEOF
16567 #define TRASH_FOLDER "$dpv"
16568 _ACEOF
16572 dpv=.pine-interrupted-mail
16574 # Check whether --with-default-interrupted-mail was given.
16575 if test "${with_default_interrupted_mail+set}" = set; then :
16576 withval=$with_default_interrupted_mail;
16577 if test "x$withval" != "xno" ; then
16578 dpv=$withval
16584 cat >>confdefs.h <<_ACEOF
16585 #define INTERRUPTED_MAIL "$dpv"
16586 _ACEOF
16590 dpv=dead.letter
16592 # Check whether --with-default-dead-letter-folder was given.
16593 if test "${with_default_dead_letter_folder+set}" = set; then :
16594 withval=$with_default_dead_letter_folder;
16595 if test "x$withval" != "xno" ; then
16596 dpv=$withval
16602 cat >>confdefs.h <<_ACEOF
16603 #define DEADLETTER "$dpv"
16604 _ACEOF
16608 dpv=mail
16610 # Check whether --with-default-mail-directory was given.
16611 if test "${with_default_mail_directory+set}" = set; then :
16612 withval=$with_default_mail_directory;
16613 if test "x$withval" != "xno" ; then
16614 dpv=$withval
16620 cat >>confdefs.h <<_ACEOF
16621 #define DF_MAIL_DIRECTORY "$dpv"
16622 _ACEOF
16626 dpv=INBOX
16628 # Check whether --with-default-inbox-name was given.
16629 if test "${with_default_inbox_name+set}" = set; then :
16630 withval=$with_default_inbox_name;
16631 if test "x$withval" != "xno" ; then
16632 dpv=$withval
16638 cat >>confdefs.h <<_ACEOF
16639 #define INBOX_NAME "$dpv"
16640 _ACEOF
16644 dpv=.signature
16646 # Check whether --with-default-signature-file was given.
16647 if test "${with_default_signature_file+set}" = set; then :
16648 withval=$with_default_signature_file;
16649 if test "x$withval" != "xno" ; then
16650 dpv=$withval
16656 cat >>confdefs.h <<_ACEOF
16657 #define DF_SIGNATURE_FILE "$dpv"
16658 _ACEOF
16662 dpv=no
16664 # Check whether --with-default-elm-style-save was given.
16665 if test "${with_default_elm_style_save+set}" = set; then :
16666 withval=$with_default_elm_style_save;
16667 if test "x$withval" != "xno" ; then
16668 dpv=$withval
16674 cat >>confdefs.h <<_ACEOF
16675 #define DF_ELM_STYLE_SAVE "$dpv"
16676 _ACEOF
16680 dpv=no
16682 # Check whether --with-default-header-in-reply was given.
16683 if test "${with_default_header_in_reply+set}" = set; then :
16684 withval=$with_default_header_in_reply;
16685 if test "x$withval" != "xno" ; then
16686 dpv=$withval
16692 cat >>confdefs.h <<_ACEOF
16693 #define DF_HEADER_IN_REPLY "$dpv"
16694 _ACEOF
16698 dpv=no
16700 # Check whether --with-default-old-style-reply was given.
16701 if test "${with_default_old_style_reply+set}" = set; then :
16702 withval=$with_default_old_style_reply;
16703 if test "x$withval" != "xno" ; then
16704 dpv=$withval
16710 cat >>confdefs.h <<_ACEOF
16711 #define DF_OLD_STYLE_REPLY "$dpv"
16712 _ACEOF
16716 dpv=no
16718 # Check whether --with-default-use-only-domain-name was given.
16719 if test "${with_default_use_only_domain_name+set}" = set; then :
16720 withval=$with_default_use_only_domain_name;
16721 if test "x$withval" != "xno" ; then
16722 dpv=$withval
16728 cat >>confdefs.h <<_ACEOF
16729 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16730 _ACEOF
16734 dpv=no
16736 # Check whether --with-default-save-by-sender was given.
16737 if test "${with_default_save_by_sender+set}" = set; then :
16738 withval=$with_default_save_by_sender;
16739 if test "x$withval" != "xno" ; then
16740 dpv=$withval
16746 cat >>confdefs.h <<_ACEOF
16747 #define DF_SAVE_BY_SENDER "$dpv"
16748 _ACEOF
16752 dpv=arrival
16754 # Check whether --with-default-sort-key was given.
16755 if test "${with_default_sort_key+set}" = set; then :
16756 withval=$with_default_sort_key;
16757 if test "x$withval" != "xno" ; then
16758 dpv=$withval
16764 cat >>confdefs.h <<_ACEOF
16765 #define DF_SORT_KEY "$dpv"
16766 _ACEOF
16770 dpv=fullname-with-lists-last
16772 # Check whether --with-default-addressbook-sort-rule was given.
16773 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16774 withval=$with_default_addressbook_sort_rule;
16775 if test "x$withval" != "xno" ; then
16776 dpv=$withval
16782 cat >>confdefs.h <<_ACEOF
16783 #define DF_AB_SORT_RULE "$dpv"
16784 _ACEOF
16788 dpv=alphabetical
16790 # Check whether --with-default-folder-sort-rule was given.
16791 if test "${with_default_folder_sort_rule+set}" = set; then :
16792 withval=$with_default_folder_sort_rule;
16793 if test "x$withval" != "xno" ; then
16794 dpv=$withval
16800 cat >>confdefs.h <<_ACEOF
16801 #define DF_FLD_SORT_RULE "$dpv"
16802 _ACEOF
16806 dpv=default-folder
16808 # Check whether --with-default-saved-message-name-rule was given.
16809 if test "${with_default_saved_message_name_rule+set}" = set; then :
16810 withval=$with_default_saved_message_name_rule;
16811 if test "x$withval" != "xno" ; then
16812 dpv=$withval
16818 cat >>confdefs.h <<_ACEOF
16819 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16820 _ACEOF
16824 dpv=default-fcc
16826 # Check whether --with-default-fcc-rule was given.
16827 if test "${with_default_fcc_rule+set}" = set; then :
16828 withval=$with_default_fcc_rule;
16829 if test "x$withval" != "xno" ; then
16830 dpv=$withval
16836 cat >>confdefs.h <<_ACEOF
16837 #define DF_FCC_RULE "$dpv"
16838 _ACEOF
16842 dpv=lpr
16844 # Check whether --with-default-standard-printer was given.
16845 if test "${with_default_standard_printer+set}" = set; then :
16846 withval=$with_default_standard_printer;
16847 if test "x$withval" != "xno" ; then
16848 dpv=$withval
16854 cat >>confdefs.h <<_ACEOF
16855 #define DF_STANDARD_PRINTER "$dpv"
16856 _ACEOF
16860 dpv=attached-to-ansi
16862 # Check whether --with-default-ansi-printer was given.
16863 if test "${with_default_ansi_printer+set}" = set; then :
16864 withval=$with_default_ansi_printer;
16865 if test "x$withval" != "xno" ; then
16866 dpv=$withval
16872 cat >>confdefs.h <<_ACEOF
16873 #define ANSI_PRINTER "$dpv"
16874 _ACEOF
16878 dpv=.addressbook
16880 # Check whether --with-default-addressbook was given.
16881 if test "${with_default_addressbook+set}" = set; then :
16882 withval=$with_default_addressbook;
16883 if test "x$withval" != "xno" ; then
16884 dpv=$withval
16890 cat >>confdefs.h <<_ACEOF
16891 #define DF_ADDRESSBOOK "$dpv"
16892 _ACEOF
16896 dpv="Local Support"
16898 # Check whether --with-default-local-fullname was given.
16899 if test "${with_default_local_fullname+set}" = set; then :
16900 withval=$with_default_local_fullname;
16901 if test "x$withval" != "xno" ; then
16902 dpv=$withval
16908 cat >>confdefs.h <<_ACEOF
16909 #define DF_LOCAL_FULLNAME "$dpv"
16910 _ACEOF
16914 dpv=postmaster
16916 # Check whether --with-default-local-address was given.
16917 if test "${with_default_local_address+set}" = set; then :
16918 withval=$with_default_local_address;
16919 if test "x$withval" != "xno" ; then
16920 dpv=$withval
16926 cat >>confdefs.h <<_ACEOF
16927 #define DF_LOCAL_ADDRESS "$dpv"
16928 _ACEOF
16932 dpv=1
16934 # Check whether --with-default-keyboard-lock-count was given.
16935 if test "${with_default_keyboard_lock_count+set}" = set; then :
16936 withval=$with_default_keyboard_lock_count;
16937 if test "x$withval" != "xno" ; then
16938 dpv=$withval
16944 cat >>confdefs.h <<_ACEOF
16945 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16946 _ACEOF
16950 dpv=3
16952 # Check whether --with-default-remote-addressbook-history was given.
16953 if test "${with_default_remote_addressbook_history+set}" = set; then :
16954 withval=$with_default_remote_addressbook_history;
16955 if test "x$withval" != "xno" ; then
16956 dpv=$withval
16962 cat >>confdefs.h <<_ACEOF
16963 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16964 _ACEOF
16968 dpv=.alpine-smime/public
16970 # Check whether --with-smime-public-cert-directory was given.
16971 if test "${with_smime_public_cert_directory+set}" = set; then :
16972 withval=$with_smime_public_cert_directory;
16973 if test "x$withval" != "xno" ; then
16974 dpv=$withval
16980 cat >>confdefs.h <<_ACEOF
16981 #define DF_PUBLICCERT_DIR "$dpv"
16982 _ACEOF
16986 dpv=.alpine-smime/private
16988 # Check whether --with-smime-private-key-directory was given.
16989 if test "${with_smime_private_key_directory+set}" = set; then :
16990 withval=$with_smime_private_key_directory;
16991 if test "x$withval" != "xno" ; then
16992 dpv=$withval
16998 cat >>confdefs.h <<_ACEOF
16999 #define DF_PRIVATEKEY_DIR "$dpv"
17000 _ACEOF
17004 dpv=.alpine-smime/ca
17006 # Check whether --with-smime-cacert-directory was given.
17007 if test "${with_smime_cacert_directory+set}" = set; then :
17008 withval=$with_smime_cacert_directory;
17009 if test "x$withval" != "xno" ; then
17010 dpv=$withval
17016 cat >>confdefs.h <<_ACEOF
17017 #define DF_CACERT_DIR "$dpv"
17018 _ACEOF
17022 dpv=ANSI_PRINTER
17024 # Check whether --with-default-printer was given.
17025 if test "${with_default_printer+set}" = set; then :
17026 withval=$with_default_printer;
17027 if test "x$withval" != "xno" ; then
17028 dpv=$withval
17034 cat >>confdefs.h <<_ACEOF
17035 #define DF_DEFAULT_PRINTER $dpv
17036 _ACEOF
17041 cat >>confdefs.h <<_ACEOF
17042 #define DF_PUBLIC_CONTAINER "PublicContainer"
17043 _ACEOF
17046 cat >>confdefs.h <<_ACEOF
17047 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17048 _ACEOF
17051 cat >>confdefs.h <<_ACEOF
17052 #define DF_CA_CONTAINER "CAContainer"
17053 _ACEOF
17057 # Check whether --with-passfile was given.
17058 if test "${with_passfile+set}" = set; then :
17059 withval=$with_passfile;
17060 case "$withval" in
17063 yes)
17066 alpine_PASSFILE=$withval
17068 esac
17075 # Check whether --with-local-password-cache was given.
17076 if test "${with_local_password_cache+set}" = set; then :
17077 withval=$with_local_password_cache;
17078 alpine_os_credential_cache=$withval
17084 # Check whether --with-local-password-cache-method was given.
17085 if test "${with_local_password_cache_method+set}" = set; then :
17086 withval=$with_local_password_cache_method;
17087 alpine_os_credential_cache_method=$withval
17092 if test -n "$alpine_PASSFILE" ; then
17093 case $alpine_os_credential_cache in
17097 alpine_os_credential_cache="no"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17099 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17101 esac
17103 cat >>confdefs.h <<_ACEOF
17104 #define PASSFILE "$alpine_PASSFILE"
17105 _ACEOF
17110 # Check whether --with-default-sshpath was given.
17111 if test "${with_default_sshpath+set}" = set; then :
17112 withval=$with_default_sshpath;
17113 case "$withval" in
17116 yes)
17120 cat >>confdefs.h <<_ACEOF
17121 #define DF_SSHPATH "$withval"
17122 _ACEOF
17125 esac
17131 # Check whether --with-default-sshcmd was given.
17132 if test "${with_default_sshcmd+set}" = set; then :
17133 withval=$with_default_sshcmd;
17134 case "$withval" in
17137 yes)
17141 cat >>confdefs.h <<_ACEOF
17142 #define DF_SSHCMD "$withval"
17143 _ACEOF
17146 esac
17152 # Check whether --with-ssl was given.
17153 if test "${with_ssl+set}" = set; then :
17154 withval=$with_ssl; with_ssl=$withval
17158 if test "x$with_ssl" = "xno" ; then
17159 alpine_SSLTYPE="none"
17160 elif test -d /usr/local/ssl ; then
17161 alpine_SSLDIR="/usr/local/ssl"
17162 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17163 alpine_SSLLIB="$alpine_SSLDIR/lib"
17164 else
17165 case $host in
17166 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17167 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17168 alpine_SSLTYPE="nopwd"
17169 if test -d /etc/pki/tls ; then
17170 alpine_SSLDIR="/etc/pki/tls"
17171 else
17172 alpine_SSLDIR="/usr/share/ssl"
17174 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17175 alpine_SSLKEYS="$alpine_SSLDIR/private"
17176 alpine_SSLINCLUDE="/usr/include/openssl"
17177 alpine_SSLLIB="/usr/lib"
17178 elif test -f /etc/mandrake-release ; then
17179 alpine_SSLDIR="/usr/lib/ssl"
17180 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17181 alpine_SSLKEYS="$alpine_SSLDIR/private"
17182 alpine_SSLINCLUDE="/usr/include/openssl"
17183 alpine_SSLLIB="/usr/lib"
17184 elif test -f /etc/SuSE-release ; then
17185 alpine_SSLTYPE="nopwd"
17186 alpine_SSLDIR="/etc/ssl"
17187 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17188 alpine_SSLKEYS="$alpine_SSLDIR/private"
17189 alpine_SSLINCLUDE="/usr/include/openssl"
17190 alpine_SSLLIB="/usr/lib"
17191 elif test -d /etc/osso-af-init ; then
17192 alpine_SSLTYPE="nopwd"
17193 alpine_SSLDIR="/usr"
17194 alpine_SSLCERTS="/usr/share/certs"
17195 alpine_SSLINCLUDE="/usr/include/openssl"
17196 alpine_SSLLIB="/usr/lib"
17197 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17198 if test ! -d /etc/osso-af-init ; then
17199 alpine_SSLDIR="/etc/ssl"
17200 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17201 alpine_SSLKEYS="$alpine_SSLDIR/private"
17202 alpine_SSLINCLUDE="/usr/include/openssl"
17203 alpine_SSLLIB="/usr/lib"
17205 elif test -f /etc/manjaro-release ; then
17206 alpine_SSLDIR="/etc/ssl"
17207 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17208 alpine_SSLKEYS="$alpine_SSLDIR/private"
17209 alpine_SSLINCLUDE="/usr/include/openssl"
17210 alpine_SSLLIB="/usr/lib"
17211 else
17212 alpine_SSLTYPE="nopwd"
17213 alpine_SSLDIR="/usr"
17214 alpine_SSLCERTS="/etc/ssl/certs"
17217 *-apple-darwin*)
17218 alpine_SSLTYPE="nopwd"
17219 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17220 if test -d /usr/local/opt/openssl ; then
17221 alpine_SSLDIR="/usr/local/opt/openssl"
17222 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17223 alpine_SSLLIB="$alpine_SSLDIR/lib"
17224 alpine_SSLCERTS="/usr/local/etc/openssl"
17225 alpine_SSLKEYS="$alpine_SSLDIR/private"
17226 elif test -d /opt/local/etc/openssl ; then
17227 alpine_SSLDIR="/opt/local"
17228 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17229 alpine_SSLLIB="$alpine_SSLDIR/lib"
17230 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17231 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17232 elif test -d /sw/etc/ssl ; then
17233 alpine_SSLDIR="/sw/etc/ssl"
17234 alpine_SSLINCLUDE="/sw/include"
17235 alpine_SSLLIB="/sw/lib"
17236 alpine_SSLCERTS="/sw/etc/ssl/certs"
17237 alpine_SSLKEYS="/sw/etc/ssl/private"
17238 elif test -d /usr/local/ssl ; then
17239 alpine_SSLDIR="/usr/local/ssl"
17240 elif test -d /System/Library/OpenSSL ; then
17241 alpine_SSLDIR="/System/Library/OpenSSL"
17242 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17243 alpine_SSLKEYS="$alpine_SSLDIR/private"
17244 alpine_SSLLIB="/usr/lib"
17245 alpine_SSLINCLUDE="/usr/include/openssl"
17248 *-*-netbsd*)
17249 alpine_SSLDIR="/etc/openssl"
17250 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17251 alpine_SSLKEYS="$alpine_SSLDIR/private"
17252 alpine_SSLINCLUDE="/usr/include/openssl"
17253 alpine_SSLLIB="/usr/lib"
17255 *-*-dragonfly*)
17256 alpine_SSLDIR="/etc/openssl"
17257 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17258 alpine_SSLKEYS="$alpine_SSLDIR/private"
17259 alpine_SSLINCLUDE="/usr/include/openssl"
17260 alpine_SSLLIB="/usr/lib"
17262 *-openbsd*)
17263 alpine_SSLTYPE="nopwd"
17264 alpine_SSLDIR="/usr"
17265 alpine_SSLCERTS="/etc/ssl/certs"
17267 *-*-freebsd*)
17268 alpine_SSLDIR="/etc/ssl"
17269 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17270 alpine_SSLKEYS="$alpine_SSLDIR/private"
17271 if test -d /usr/local/include/openssl ; then
17272 alpine_SSLINCLUDE="/usr/local/include/openssl"
17273 alpine_SSLLIB="/usr/local/lib"
17274 else
17275 alpine_SSLINCLUDE="/usr/include/openssl"
17276 alpine_SSLLIB="/usr/lib"
17279 *-*-openbsd*)
17280 alpine_SSLDIR="/etc/ssl"
17281 alpine_SSLINCLUDE="/usr/include/openssl"
17282 alpine_SSLLIB="/usr/lib"
17283 alpine_SSLCERTS="/etc/ssl"
17284 alpine_SSLKEYS="/etc/ssl/private"
17286 *-*-cygwin)
17287 alpine_SSLDIR="/usr/ssl"
17288 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17289 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17290 alpine_SSLINCLUDE="/usr/include/openssl"
17291 alpine_SSLLIB="/usr/lib"
17293 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17294 alpine_SSLTYPE="sco.nopwd"
17295 alpine_SSLDIR="/usr/local/ssl"
17297 *-*-solaris*)
17298 if test -d /usr/include/openssl ; then
17299 alpine_SSLINCLUDE="/usr/include/openssl"
17300 elif test -d /usr/sfw/include/openssl ; then
17301 alpine_SSLDIR="/usr/sfw"
17302 elif test -d /opt/csw/include/openssl ; then
17303 alpine_SSLDIR="/opt/csw"
17304 if test -d /opt/csw/ssl/certs ; then
17305 alpine_SSLCERTS="/opt/csw/ssl/certs"
17308 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17309 alpine_SSLCERTS="/etc/certs"
17313 alpine_SSLTYPE="nopwd"
17314 alpine_SSLDIR="/usr/local/ssl"
17316 esac
17319 if test "x$alpine_SSLTYPE" != "xnone" ; then
17321 # Check whether --with-ssl-dir was given.
17322 if test "${with_ssl_dir+set}" = set; then :
17323 withval=$with_ssl_dir;
17324 if test "x$withval" != "xno" ; then
17325 alpine_SSLDIR=$withval
17326 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17327 alpine_SSLLIB=$alpine_SSLDIR/lib
17334 # Check whether --with-ssl-certs-dir was given.
17335 if test "${with_ssl_certs_dir+set}" = set; then :
17336 withval=$with_ssl_certs_dir;
17337 if test "x$withval" != "xno" ; then
17338 alpine_SSLCERTS=$withval
17345 # Check whether --with-ssl-include-dir was given.
17346 if test "${with_ssl_include_dir+set}" = set; then :
17347 withval=$with_ssl_include_dir;
17348 if test "x$withval" != "xno" ; then
17349 alpine_SSLINCLUDE=$withval
17356 # Check whether --with-ssl-lib-dir was given.
17357 if test "${with_ssl_lib_dir+set}" = set; then :
17358 withval=$with_ssl_lib_dir;
17359 if test "x$withval" != "xno" ; then
17360 alpine_SSLLIB=$withval
17366 if test -n "$alpine_SSLINCLUDE" ; then
17367 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17368 elif test -n "$alpine_SSLDIR" ; then
17369 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17371 if test -n "$alpine_SSLLIB" ; then
17372 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17373 elif test -n "$alpine_SSLDIR" ; then
17374 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17380 # Check whether --with-krb5 was given.
17381 if test "${with_krb5+set}" = set; then :
17382 withval=$with_krb5; with_krb5=$withval
17386 if test "x$with_krb5" = "xno" ; then
17387 alpine_GSSTYPE="none"
17388 else
17389 alpine_GSSTYPE=
17392 # Check whether --with-krb5-dir was given.
17393 if test "${with_krb5_dir+set}" = set; then :
17394 withval=$with_krb5_dir;
17395 if test "x$withval" != "xno" ; then
17396 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17397 LDFLAGS="$LDFLAGS -L${withval}/lib"
17404 # Check whether --with-krb5-include-dir was given.
17405 if test "${with_krb5_include_dir+set}" = set; then :
17406 withval=$with_krb5_include_dir;
17407 if test "x$withval" != "xno" ; then
17408 CPPFLAGS="$CPPFLAGS -I$withval"
17415 # Check whether --with-krb5-lib-dir was given.
17416 if test "${with_krb5_lib_dir+set}" = set; then :
17417 withval=$with_krb5_lib_dir;
17418 if test "x$withval" != "xno" ; then
17419 LDFLAGS="$LDFLAGS -L$withval"
17427 # Check whether --with-ldap was given.
17428 if test "${with_ldap+set}" = set; then :
17429 withval=$with_ldap; with_ldap=$withval
17433 if test "x$with_ldap" = "xno" ; then
17434 alpine_with_ldap=
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17436 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17437 else
17439 alpine_with_ldap=yes
17441 # Check whether --with-ldap-dir was given.
17442 if test "${with_ldap_dir+set}" = set; then :
17443 withval=$with_ldap_dir;
17444 if test "x$withval" != "xno" ; then
17445 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17446 LDFLAGS="$LDFLAGS -L${withval}/lib"
17453 # Check whether --with-ldap-include-dir was given.
17454 if test "${with_ldap_include_dir+set}" = set; then :
17455 withval=$with_ldap_include_dir;
17456 if test "x$withval" != "xno" ; then
17457 CPPFLAGS="$CPPFLAGS -I$withval"
17464 # Check whether --with-ldap-lib-dir was given.
17465 if test "${with_ldap_lib_dir+set}" = set; then :
17466 withval=$with_ldap_lib_dir;
17467 if test "x$withval" != "xno" ; then
17468 LDFLAGS="$LDFLAGS -L$withval"
17476 # Check whether --with-smime was given.
17477 if test "${with_smime+set}" = set; then :
17478 withval=$with_smime; with_smime=$withval
17483 # Check whether --with-tcl was given.
17484 if test "${with_tcl+set}" = set; then :
17485 withval=$with_tcl; with_tcl=$withval
17489 if test "x$with_tcl" = "xno" ; then
17490 WEB_BUILD=
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17492 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17493 else
17495 # Check whether --with-tcl-lib was given.
17496 if test "${with_tcl_lib+set}" = set; then :
17497 withval=$with_tcl_lib;
17498 if test "x$withval" != "xno" ; then
17499 alpine_TCLLIB=$withval
17505 # Check whether --with-tcl-include was given.
17506 if test "${with_tcl_include+set}" = set; then :
17507 withval=$with_tcl_include;
17508 if test "x$withval" != "xno" ; then
17509 CPPFLAGS="$CPPFLAGS -I$withval"
17510 alpine_TCLINC=$withval
17518 # Check whether --with-supplied-regex was given.
17519 if test "${with_supplied_regex+set}" = set; then :
17520 withval=$with_supplied_regex; alpine_REGEX=$withval
17525 # Check whether --with-pthread was given.
17526 if test "${with_pthread+set}" = set; then :
17527 withval=$with_pthread; with_pthread=$withval
17532 # Check whether --with-system-mail-directory was given.
17533 if test "${with_system_mail_directory+set}" = set; then :
17534 withval=$with_system_mail_directory;
17535 if test "x$withval" != "xno" ; then
17536 alpine_with_local_maildir="$withval"
17543 # Check whether --with-c-client-target was given.
17544 if test "${with_c_client_target+set}" = set; then :
17545 withval=$with_c_client_target;
17546 if test "x$withval" != "xno" ;then
17547 alpine_with_c_client_target="$withval"
17554 alpine_PAM="none"
17556 case "$host" in
17557 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17558 alpine_path_delim="/"
17559 alpine_mode_readonly="(0600)"
17560 if test -f /etc/fedora-release ; then
17561 systype="LFD"
17562 alpine_PAM="yes"
17563 if test -d /etc/pki/tls ; then
17564 alpine_c_client_target="lfd"
17565 else
17566 alpine_c_client_target="lrh"
17568 elif test -f /etc/mandrake-release ; then
17569 systype="LMD"
17570 alpine_c_client_target="lmd"
17571 alpine_PAM="yes"
17572 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17573 systype="LRH"
17574 alpine_PAM="yes"
17575 if test -d /etc/pki/tls ; then
17576 alpine_c_client_target="lr5"
17577 else
17578 alpine_c_client_target="lrh"
17580 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17581 if test -d /etc/osso-af-init ; then
17582 systype="LN8"
17583 alpine_c_client_target="ln8"
17584 else
17585 systype="DEB"
17586 alpine_c_client_target="ldb"
17587 alpine_PAM="yes"
17589 elif test -f /etc/SuSE-release ; then
17590 systype="LSU"
17591 alpine_c_client_target="lsu"
17592 alpine_PAM="yes"
17593 else
17594 systype="LNX"
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17596 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17597 if ${ac_cv_lib_pam_pam_start+:} false; then :
17598 $as_echo_n "(cached) " >&6
17599 else
17600 ac_check_lib_save_LIBS=$LIBS
17601 LIBS="-lpam $LIBS"
17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17605 /* Override any GCC internal prototype to avoid an error.
17606 Use char because int might match the return type of a GCC
17607 builtin and then its argument prototype would still apply. */
17608 #ifdef __cplusplus
17609 extern "C"
17610 #endif
17611 char pam_start ();
17613 main ()
17615 return pam_start ();
17617 return 0;
17619 _ACEOF
17620 if ac_fn_c_try_link "$LINENO"; then :
17621 ac_cv_lib_pam_pam_start=yes
17622 else
17623 ac_cv_lib_pam_pam_start=no
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS=$ac_check_lib_save_LIBS
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17630 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17631 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17633 alpine_c_client_target="lnp"
17634 alpine_PAM="yes"
17636 else
17638 if test -f /etc/shadow ; then
17639 alpine_c_client_target="slx"
17640 else
17641 alpine_c_client_target="lnx"
17648 *-apple-darwin*)
17649 systype="OSX"
17650 alpine_path_delim="/"
17651 alpine_mode_readonly="(0600)"
17652 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17653 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17655 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17657 case "$alpine_os_credential_cache" in
17662 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17665 esac
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17667 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17668 if ${ac_cv_lib_pam_pam_start+:} false; then :
17669 $as_echo_n "(cached) " >&6
17670 else
17671 ac_check_lib_save_LIBS=$LIBS
17672 LIBS="-lpam $LIBS"
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char pam_start ();
17684 main ()
17686 return pam_start ();
17688 return 0;
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 ac_cv_lib_pam_pam_start=yes
17693 else
17694 ac_cv_lib_pam_pam_start=no
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17701 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17702 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17704 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17705 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17707 alpine_PAM="yes"
17708 alpine_c_client_target="oxs"
17710 else
17711 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17712 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17714 alpine_PAM="yes"
17715 alpine_c_client_target="oxp"
17717 else
17719 alpine_PAM="none"
17720 alpine_pam_none_reason="header files not found"
17730 else
17732 alpine_c_client_target="osx"
17737 *-*-solaris*)
17738 if test x$GCC = "xyes" ; then
17739 systype="GSO"
17740 alpine_c_client_target="gso"
17741 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17742 else
17743 systype="SOC"
17744 alpine_c_client_target="soc"
17746 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17749 alpine_path_delim="/"
17750 alpine_mode_readonly="(0600)"
17752 *-*-sunos4*)
17753 systype="SUN"
17754 alpine_path_delim="/"
17755 alpine_mode_readonly="(0600)"
17756 alpine_c_client_target="s40"
17758 *-*-sco3.2v5*)
17759 if test x$GCC = "xyes" ; then
17760 systype="GO5"
17761 alpine_c_client_target="go5"
17762 else
17763 systype="SC5"
17764 alpine_c_client_target="sc5"
17766 alpine_path_delim="/"
17767 alpine_mode_readonly="(0600)"
17769 *-next-*)
17770 systype="NXT"
17771 alpine_path_delim="/"
17772 alpine_mode_readonly="(0600)"
17773 alpine_c_client_target="nx3"
17775 *-*-netbsd*)
17776 systype="NEB"
17777 alpine_path_delim="/"
17778 alpine_mode_readonly="(0600)"
17779 alpine_c_client_target="neb"
17781 *-*-dragonfly*)
17782 systype="DFB"
17783 alpine_path_delim="/"
17784 alpine_mode_readonly="(0600)"
17785 alpine_c_client_target="neb"
17787 *-*-bsdi*)
17788 systype="BSI"
17789 alpine_path_delim="/"
17790 alpine_mode_readonly="(0600)"
17791 alpine_c_client_target="bsi"
17793 *-*-freebsd*)
17794 systype="BSF"
17795 alpine_path_delim="/"
17796 alpine_mode_readonly="(0600)"
17797 alpine_c_client_target="bsf"
17798 LIBS="$LIBS $LIBINTL"
17800 *-*-openbsd*)
17801 systype="BSO"
17802 alpine_path_delim="/"
17803 alpine_mode_readonly="(0600)"
17804 alpine_c_client_target="bso"
17805 LIBS="$LIBS $LIBINTL"
17807 *-*-aix5*)
17808 systype="A52"
17809 alpine_path_delim="/"
17810 alpine_mode_readonly="(0600)"
17811 alpine_c_client_target="a52"
17813 *-*-aix4*)
17814 systype="A41"
17815 alpine_path_delim="/"
17816 alpine_mode_readonly="(0600)"
17817 alpine_c_client_target="a41"
17819 *-*-aix3*)
17820 systype="A32"
17821 alpine_path_delim="/"
17822 alpine_mode_readonly="(0600)"
17823 alpine_c_client_target="a32"
17825 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17826 systype="UW2"
17827 alpine_path_delim="/"
17828 alpine_mode_readonly="(0600)"
17829 alpine_c_client_target="uw2"
17831 *-*-osf5*)
17832 systype="OSF"
17833 alpine_path_delim="/"
17834 alpine_mode_readonly="(0600)"
17835 alpine_c_client_target="osf"
17837 *-*-cygwin)
17838 systype="CYG"
17839 alpine_path_delim="/"
17840 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17841 alpine_c_client_target="cyg"
17842 LIBS="$LIBS $LIBINTL"
17844 windows* | *-*-pw32*)
17845 systype="WNT"
17846 alpine_path_delim="\\"
17847 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17848 alpine_c_client_target="wnt"
17850 $as_echo "#define _WINDOWS 1" >>confdefs.h
17854 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17856 esac
17859 # Check whether --with-ipv6 was given.
17860 if test "${with_ipv6+set}" = set; then :
17861 withval=$with_ipv6; with_ipv6=$withval
17865 if test "x$with_ipv6" = "xno" ; then
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17867 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17868 c_client_specials="${c_client_specials}IP6=4 "
17869 c_client_ip6="true"
17870 else
17871 c_client_ip6="touch imap/ip6"
17876 if test x$enable_dmalloc = "xyes" ; then
17877 if test "x$with_pthread" = "xyes" ; then
17878 dmalloc_lib=dmallocth
17879 else
17880 dmalloc_lib=dmalloc
17883 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17885 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17886 if eval \${$as_ac_Lib+:} false; then :
17887 $as_echo_n "(cached) " >&6
17888 else
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-l$dmalloc_lib $LIBS"
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char dmalloc_shutdown ();
17902 main ()
17904 return dmalloc_shutdown ();
17906 return 0;
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 eval "$as_ac_Lib=yes"
17911 else
17912 eval "$as_ac_Lib=no"
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17918 eval ac_res=\$$as_ac_Lib
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17920 $as_echo "$ac_res" >&6; }
17921 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17922 cat >>confdefs.h <<_ACEOF
17923 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
17924 _ACEOF
17926 LIBS="-l$dmalloc_lib $LIBS"
17928 else
17930 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
17937 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
17938 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 ac_check_lib_save_LIBS=$LIBS
17942 LIBS="-ltinfo $LIBS"
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char setupterm ();
17954 main ()
17956 return setupterm ();
17958 return 0;
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 ac_cv_lib_tinfo_setupterm=yes
17963 else
17964 ac_cv_lib_tinfo_setupterm=no
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
17971 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
17972 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
17974 alpine_termdata=info
17975 LIBS="$LIBS -ltinfo"
17977 else
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
17980 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
17981 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
17982 $as_echo_n "(cached) " >&6
17983 else
17984 ac_check_lib_save_LIBS=$LIBS
17985 LIBS="-lncurses $LIBS"
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char setupterm ();
17997 main ()
17999 return setupterm ();
18001 return 0;
18003 _ACEOF
18004 if ac_fn_c_try_link "$LINENO"; then :
18005 ac_cv_lib_ncurses_setupterm=yes
18006 else
18007 ac_cv_lib_ncurses_setupterm=no
18009 rm -f core conftest.err conftest.$ac_objext \
18010 conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18014 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18015 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18017 alpine_termdata=info
18018 LIBS="$LIBS -lncurses"
18020 else
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18023 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18024 if ${ac_cv_lib_curses_setupterm+:} false; then :
18025 $as_echo_n "(cached) " >&6
18026 else
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lcurses $LIBS"
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18032 /* Override any GCC internal prototype to avoid an error.
18033 Use char because int might match the return type of a GCC
18034 builtin and then its argument prototype would still apply. */
18035 #ifdef __cplusplus
18036 extern "C"
18037 #endif
18038 char setupterm ();
18040 main ()
18042 return setupterm ();
18044 return 0;
18046 _ACEOF
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 ac_cv_lib_curses_setupterm=yes
18049 else
18050 ac_cv_lib_curses_setupterm=no
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18057 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18058 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18060 alpine_termdata=info
18061 LIBS="$LIBS -lcurses"
18063 else
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18066 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18067 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 ac_check_lib_save_LIBS=$LIBS
18071 LIBS="-ltermlib $LIBS"
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18075 /* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18078 #ifdef __cplusplus
18079 extern "C"
18080 #endif
18081 char tgetent ();
18083 main ()
18085 return tgetent ();
18087 return 0;
18089 _ACEOF
18090 if ac_fn_c_try_link "$LINENO"; then :
18091 ac_cv_lib_termlib_tgetent=yes
18092 else
18093 ac_cv_lib_termlib_tgetent=no
18095 rm -f core conftest.err conftest.$ac_objext \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18100 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18101 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18103 alpine_termdata=cap
18104 LIBS="$LIBS -ltermlib"
18106 else
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18109 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18110 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18111 $as_echo_n "(cached) " >&6
18112 else
18113 ac_check_lib_save_LIBS=$LIBS
18114 LIBS="-ltermcap $LIBS"
18115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18118 /* Override any GCC internal prototype to avoid an error.
18119 Use char because int might match the return type of a GCC
18120 builtin and then its argument prototype would still apply. */
18121 #ifdef __cplusplus
18122 extern "C"
18123 #endif
18124 char tgetent ();
18126 main ()
18128 return tgetent ();
18130 return 0;
18132 _ACEOF
18133 if ac_fn_c_try_link "$LINENO"; then :
18134 ac_cv_lib_termcap_tgetent=yes
18135 else
18136 ac_cv_lib_termcap_tgetent=no
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 LIBS=$ac_check_lib_save_LIBS
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18143 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18144 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18146 alpine_termdata=cap
18147 LIBS="$LIBS -ltermcap"
18149 else
18151 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18167 case $alpine_termdata in
18168 info)
18170 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18173 cap)
18175 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18178 esac
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18181 $as_echo_n "checking for library containing dlopen... " >&6; }
18182 if ${ac_cv_search_dlopen+:} false; then :
18183 $as_echo_n "(cached) " >&6
18184 else
18185 ac_func_search_save_LIBS=$LIBS
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18192 #ifdef __cplusplus
18193 extern "C"
18194 #endif
18195 char dlopen ();
18197 main ()
18199 return dlopen ();
18201 return 0;
18203 _ACEOF
18204 for ac_lib in '' dl dld; do
18205 if test -z "$ac_lib"; then
18206 ac_res="none required"
18207 else
18208 ac_res=-l$ac_lib
18209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 ac_cv_search_dlopen=$ac_res
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext
18216 if ${ac_cv_search_dlopen+:} false; then :
18217 break
18219 done
18220 if ${ac_cv_search_dlopen+:} false; then :
18222 else
18223 ac_cv_search_dlopen=no
18225 rm conftest.$ac_ext
18226 LIBS=$ac_func_search_save_LIBS
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18229 $as_echo "$ac_cv_search_dlopen" >&6; }
18230 ac_res=$ac_cv_search_dlopen
18231 if test "$ac_res" != no; then :
18232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18234 else
18235 alpine_DL="none"
18238 if test "x$alpine_DL" = "xnone" ; then
18239 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18240 exit 1
18243 if test "x$alpine_SSLTYPE" != "xnone" ; then
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18245 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18246 if test "$cross_compiling" = yes; then :
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18248 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18249 else
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18253 #include <stdio.h>
18254 #include <stdlib.h>
18255 #if HAVE_STDINT_H
18256 #include <stdint.h>
18257 #endif /* HAVE_STDINT_H */
18258 #include <openssl/ssl.h>
18259 int main(void) {
18261 if (LIBRESSL_VERSION_NUMBER >= 0x20000000L)
18262 exit(0);
18264 exit(2);
18267 _ACEOF
18268 if ac_fn_c_try_run "$LINENO"; then :
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18270 $as_echo "yes" >&6; }
18271 alpine_SSLPROVIDER="libressl"
18273 else
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275 $as_echo "no" >&6; }
18278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18279 conftest.$ac_objext conftest.beam conftest.$ac_ext
18284 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18286 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18287 if test "$cross_compiling" = yes; then :
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18289 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18290 else
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h. */
18294 #include <stdio.h>
18295 #include <stdlib.h>
18296 #if HAVE_STDINT_H
18297 #include <stdint.h>
18298 #endif /* HAVE_STDINT_H */
18299 #include <openssl/ssl.h>
18300 int main(void) {
18302 if (OPENSSL_VERSION_NUMBER >= 0x1000003fL)
18303 exit(0);
18305 exit(2);
18308 _ACEOF
18309 if ac_fn_c_try_run "$LINENO"; then :
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18312 alpine_SSLPROVIDER="openssl"
18314 else
18315 alpine_SSLTYPE="none"
18317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18318 conftest.$ac_objext conftest.beam conftest.$ac_ext
18322 if test "x$alpine_SSLTYPE" = "xnone" ; then
18323 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18324 exit 1
18328 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18330 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18331 if test "$cross_compiling" = yes; then :
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18333 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18334 else
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18338 #include <stdio.h>
18339 #include <stdlib.h>
18340 #if HAVE_STDINT_H
18341 #include <stdint.h>
18342 #endif /* HAVE_STDINT_H */
18343 #include <openssl/ssl.h>
18344 int main(void) {
18346 if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
18347 exit(0);
18349 exit(2);
18352 _ACEOF
18353 if ac_fn_c_try_run "$LINENO"; then :
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18355 $as_echo "yes" >&6; }
18356 alpine_SSLVERSION="new"
18357 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18359 else
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18362 alpine_SSLVERSION="old"
18364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365 conftest.$ac_objext conftest.beam conftest.$ac_ext
18370 if test "x$alpine_SSLTYPE" != "xnone" ; then
18371 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18373 $as_echo_n "checking for library containing SSLeay... " >&6; }
18374 if ${ac_cv_search_SSLeay+:} false; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 ac_func_search_save_LIBS=$LIBS
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char SSLeay ();
18389 main ()
18391 return SSLeay ();
18393 return 0;
18395 _ACEOF
18396 for ac_lib in '' crypto; do
18397 if test -z "$ac_lib"; then
18398 ac_res="none required"
18399 else
18400 ac_res=-l$ac_lib
18401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 ac_cv_search_SSLeay=$ac_res
18406 rm -f core conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext
18408 if ${ac_cv_search_SSLeay+:} false; then :
18409 break
18411 done
18412 if ${ac_cv_search_SSLeay+:} false; then :
18414 else
18415 ac_cv_search_SSLeay=no
18417 rm conftest.$ac_ext
18418 LIBS=$ac_func_search_save_LIBS
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18421 $as_echo "$ac_cv_search_SSLeay" >&6; }
18422 ac_res=$ac_cv_search_SSLeay
18423 if test "$ac_res" != no; then :
18424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18426 else
18427 alpine_CRYPTO="none"
18430 else
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18432 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18433 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18434 $as_echo_n "(cached) " >&6
18435 else
18436 ac_func_search_save_LIBS=$LIBS
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18440 /* Override any GCC internal prototype to avoid an error.
18441 Use char because int might match the return type of a GCC
18442 builtin and then its argument prototype would still apply. */
18443 #ifdef __cplusplus
18444 extern "C"
18445 #endif
18446 char OpenSSL_version_num ();
18448 main ()
18450 return OpenSSL_version_num ();
18452 return 0;
18454 _ACEOF
18455 for ac_lib in '' crypto; do
18456 if test -z "$ac_lib"; then
18457 ac_res="none required"
18458 else
18459 ac_res=-l$ac_lib
18460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18462 if ac_fn_c_try_link "$LINENO"; then :
18463 ac_cv_search_OpenSSL_version_num=$ac_res
18465 rm -f core conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext
18467 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18468 break
18470 done
18471 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18473 else
18474 ac_cv_search_OpenSSL_version_num=no
18476 rm conftest.$ac_ext
18477 LIBS=$ac_func_search_save_LIBS
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18480 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18481 ac_res=$ac_cv_search_OpenSSL_version_num
18482 if test "$ac_res" != no; then :
18483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18485 else
18486 alpine_CRYPTO="none"
18490 if test "x$alpine_CRYPTO" = "xnone" ; then
18491 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18492 exit 1
18494 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18495 if test "x$ac_cv_header_crypto_h" = xyes; then :
18497 else
18498 alpine_CRYPTO_DEVEL="none"
18502 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18503 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
18504 exit 1
18508 if test "x$alpine_SSLTYPE" != "xnone" ; then
18509 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
18511 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
18512 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 ac_func_search_save_LIBS=$LIBS
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18522 #ifdef __cplusplus
18523 extern "C"
18524 #endif
18525 char TLSv1_2_client_method ();
18527 main ()
18529 return TLSv1_2_client_method ();
18531 return 0;
18533 _ACEOF
18534 for ac_lib in '' ssl; do
18535 if test -z "$ac_lib"; then
18536 ac_res="none required"
18537 else
18538 ac_res=-l$ac_lib
18539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18541 if ac_fn_c_try_link "$LINENO"; then :
18542 ac_cv_search_TLSv1_2_client_method=$ac_res
18544 rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext
18546 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18547 break
18549 done
18550 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18552 else
18553 ac_cv_search_TLSv1_2_client_method=no
18555 rm conftest.$ac_ext
18556 LIBS=$ac_func_search_save_LIBS
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
18559 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
18560 ac_res=$ac_cv_search_TLSv1_2_client_method
18561 if test "$ac_res" != no; then :
18562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18563 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
18565 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18570 else
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLS_client_method" >&5
18572 $as_echo_n "checking for library containing TLS_client_method... " >&6; }
18573 if ${ac_cv_search_TLS_client_method+:} false; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 ac_func_search_save_LIBS=$LIBS
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 char TLS_client_method ();
18588 main ()
18590 return TLS_client_method ();
18592 return 0;
18594 _ACEOF
18595 for ac_lib in '' ssl; do
18596 if test -z "$ac_lib"; then
18597 ac_res="none required"
18598 else
18599 ac_res=-l$ac_lib
18600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18602 if ac_fn_c_try_link "$LINENO"; then :
18603 ac_cv_search_TLS_client_method=$ac_res
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext
18607 if ${ac_cv_search_TLS_client_method+:} false; then :
18608 break
18610 done
18611 if ${ac_cv_search_TLS_client_method+:} false; then :
18613 else
18614 ac_cv_search_TLS_client_method=no
18616 rm conftest.$ac_ext
18617 LIBS=$ac_func_search_save_LIBS
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLS_client_method" >&5
18620 $as_echo "$ac_cv_search_TLS_client_method" >&6; }
18621 ac_res=$ac_cv_search_TLS_client_method
18622 if test "$ac_res" != no; then :
18623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18625 else
18626 alpine_SSLTYPE="none"
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DTLS_client_method" >&5
18630 $as_echo_n "checking for library containing DTLS_client_method... " >&6; }
18631 if ${ac_cv_search_DTLS_client_method+:} false; then :
18632 $as_echo_n "(cached) " >&6
18633 else
18634 ac_func_search_save_LIBS=$LIBS
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18638 /* Override any GCC internal prototype to avoid an error.
18639 Use char because int might match the return type of a GCC
18640 builtin and then its argument prototype would still apply. */
18641 #ifdef __cplusplus
18642 extern "C"
18643 #endif
18644 char DTLS_client_method ();
18646 main ()
18648 return DTLS_client_method ();
18650 return 0;
18652 _ACEOF
18653 for ac_lib in '' ssl; do
18654 if test -z "$ac_lib"; then
18655 ac_res="none required"
18656 else
18657 ac_res=-l$ac_lib
18658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18660 if ac_fn_c_try_link "$LINENO"; then :
18661 ac_cv_search_DTLS_client_method=$ac_res
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext
18665 if ${ac_cv_search_DTLS_client_method+:} false; then :
18666 break
18668 done
18669 if ${ac_cv_search_DTLS_client_method+:} false; then :
18671 else
18672 ac_cv_search_DTLS_client_method=no
18674 rm conftest.$ac_ext
18675 LIBS=$ac_func_search_save_LIBS
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DTLS_client_method" >&5
18678 $as_echo "$ac_cv_search_DTLS_client_method" >&6; }
18679 ac_res=$ac_cv_search_DTLS_client_method
18680 if test "$ac_res" != no; then :
18681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18683 else
18684 alpine_SSLTYPE="none"
18687 if test "x$alpine_SSLTYPE" != "xnone" ; then
18689 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18695 if test "x$alpine_SSLTYPE" != "xnone" ; then
18696 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18698 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18699 if ${ac_cv_search_SSL_library_init+:} false; then :
18700 $as_echo_n "(cached) " >&6
18701 else
18702 ac_func_search_save_LIBS=$LIBS
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18706 /* Override any GCC internal prototype to avoid an error.
18707 Use char because int might match the return type of a GCC
18708 builtin and then its argument prototype would still apply. */
18709 #ifdef __cplusplus
18710 extern "C"
18711 #endif
18712 char SSL_library_init ();
18714 main ()
18716 return SSL_library_init ();
18718 return 0;
18720 _ACEOF
18721 for ac_lib in '' ssl; do
18722 if test -z "$ac_lib"; then
18723 ac_res="none required"
18724 else
18725 ac_res=-l$ac_lib
18726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 ac_cv_search_SSL_library_init=$ac_res
18731 rm -f core conftest.err conftest.$ac_objext \
18732 conftest$ac_exeext
18733 if ${ac_cv_search_SSL_library_init+:} false; then :
18734 break
18736 done
18737 if ${ac_cv_search_SSL_library_init+:} false; then :
18739 else
18740 ac_cv_search_SSL_library_init=no
18742 rm conftest.$ac_ext
18743 LIBS=$ac_func_search_save_LIBS
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18746 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18747 ac_res=$ac_cv_search_SSL_library_init
18748 if test "$ac_res" != no; then :
18749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18751 else
18752 alpine_SSLTYPE="none"
18755 if test "x$alpine_SSLTYPE" = "xnone" ; then
18756 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18757 exit 1
18759 else
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18761 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18762 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18765 ac_func_search_save_LIBS=$LIBS
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 /* Override any GCC internal prototype to avoid an error.
18770 Use char because int might match the return type of a GCC
18771 builtin and then its argument prototype would still apply. */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 char OPENSSL_init_ssl ();
18777 main ()
18779 return OPENSSL_init_ssl ();
18781 return 0;
18783 _ACEOF
18784 for ac_lib in '' ssl; do
18785 if test -z "$ac_lib"; then
18786 ac_res="none required"
18787 else
18788 ac_res=-l$ac_lib
18789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18791 if ac_fn_c_try_link "$LINENO"; then :
18792 ac_cv_search_OPENSSL_init_ssl=$ac_res
18794 rm -f core conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext
18796 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18797 break
18799 done
18800 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18802 else
18803 ac_cv_search_OPENSSL_init_ssl=no
18805 rm conftest.$ac_ext
18806 LIBS=$ac_func_search_save_LIBS
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18809 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18810 ac_res=$ac_cv_search_OPENSSL_init_ssl
18811 if test "$ac_res" != no; then :
18812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18814 else
18815 alpine_SSLTYPE="none"
18818 if test "x$alpine_SSLTYPE" = "xnone" ; then
18819 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18820 exit 1
18825 if test "$alpine_with_ldap" = "yes" ; then
18826 alpine_has_ldap=
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18828 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18829 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18830 $as_echo_n "(cached) " >&6
18831 else
18832 ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-llber $LIBS"
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char ber_alloc ();
18845 main ()
18847 return ber_alloc ();
18849 return 0;
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"; then :
18853 ac_cv_lib_lber_ber_alloc=yes
18854 else
18855 ac_cv_lib_lber_ber_alloc=no
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18862 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18863 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18865 LIBS="$LIBS -llber"
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18870 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18871 if ${ac_cv_search_ldap_initialize+:} false; then :
18872 $as_echo_n "(cached) " >&6
18873 else
18874 ac_func_search_save_LIBS=$LIBS
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char ldap_initialize ();
18886 main ()
18888 return ldap_initialize ();
18890 return 0;
18892 _ACEOF
18893 for ac_lib in '' ldap; do
18894 if test -z "$ac_lib"; then
18895 ac_res="none required"
18896 else
18897 ac_res=-l$ac_lib
18898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18900 if ac_fn_c_try_link "$LINENO"; then :
18901 ac_cv_search_ldap_initialize=$ac_res
18903 rm -f core conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext
18905 if ${ac_cv_search_ldap_initialize+:} false; then :
18906 break
18908 done
18909 if ${ac_cv_search_ldap_initialize+:} false; then :
18911 else
18912 ac_cv_search_ldap_initialize=no
18914 rm conftest.$ac_ext
18915 LIBS=$ac_func_search_save_LIBS
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18918 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18919 ac_res=$ac_cv_search_ldap_initialize
18920 if test "$ac_res" != no; then :
18921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18923 alpine_has_ldap=yes
18925 else
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18928 $as_echo_n "checking for library containing ldap_open... " >&6; }
18929 if ${ac_cv_search_ldap_open+:} false; then :
18930 $as_echo_n "(cached) " >&6
18931 else
18932 ac_func_search_save_LIBS=$LIBS
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18936 /* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18939 #ifdef __cplusplus
18940 extern "C"
18941 #endif
18942 char ldap_open ();
18944 main ()
18946 return ldap_open ();
18948 return 0;
18950 _ACEOF
18951 for ac_lib in '' ldap; do
18952 if test -z "$ac_lib"; then
18953 ac_res="none required"
18954 else
18955 ac_res=-l$ac_lib
18956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18958 if ac_fn_c_try_link "$LINENO"; then :
18959 ac_cv_search_ldap_open=$ac_res
18961 rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext
18963 if ${ac_cv_search_ldap_open+:} false; then :
18964 break
18966 done
18967 if ${ac_cv_search_ldap_open+:} false; then :
18969 else
18970 ac_cv_search_ldap_open=no
18972 rm conftest.$ac_ext
18973 LIBS=$ac_func_search_save_LIBS
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18976 $as_echo "$ac_cv_search_ldap_open" >&6; }
18977 ac_res=$ac_cv_search_ldap_open
18978 if test "$ac_res" != no; then :
18979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18981 alpine_has_ldap=yes
18989 if test "$alpine_has_ldap" = "yes" ; then
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18991 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18993 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18998 if test "x$alpine_PAM" != "xnone" ; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19000 $as_echo_n "checking for library containing pam_start... " >&6; }
19001 if ${ac_cv_search_pam_start+:} false; then :
19002 $as_echo_n "(cached) " >&6
19003 else
19004 ac_func_search_save_LIBS=$LIBS
19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char pam_start ();
19016 main ()
19018 return pam_start ();
19020 return 0;
19022 _ACEOF
19023 for ac_lib in '' pam; do
19024 if test -z "$ac_lib"; then
19025 ac_res="none required"
19026 else
19027 ac_res=-l$ac_lib
19028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19030 if ac_fn_c_try_link "$LINENO"; then :
19031 ac_cv_search_pam_start=$ac_res
19033 rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext
19035 if ${ac_cv_search_pam_start+:} false; then :
19036 break
19038 done
19039 if ${ac_cv_search_pam_start+:} false; then :
19041 else
19042 ac_cv_search_pam_start=no
19044 rm conftest.$ac_ext
19045 LIBS=$ac_func_search_save_LIBS
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19048 $as_echo "$ac_cv_search_pam_start" >&6; }
19049 ac_res=$ac_cv_search_pam_start
19050 if test "$ac_res" != no; then :
19051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19053 LIBS="$LIBS -lpam"
19054 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19055 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19057 alpine_PAM="yes"
19059 else
19060 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19061 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19063 alpine_PAM="yes"
19064 if test "x$alpine_c_client_target" != "xoxp" ; then
19065 alpine_PAM="none"
19066 alpine_pam_none_reason="header files not in security/ directory"
19069 else
19071 alpine_PAM="none"
19072 alpine_pam_none_reason="header files not found"
19082 else
19084 alpine_PAM="none"
19085 alpine_pam_none_reason="library files not found"
19089 if test -n "$alpine_pam_none_reason" ; then
19090 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
19095 if test "x$alpine_GSSTYPE" != "xnone" ; then
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19097 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19098 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 ac_func_search_save_LIBS=$LIBS
19102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char gss_init_sec_context ();
19113 main ()
19115 return gss_init_sec_context ();
19117 return 0;
19119 _ACEOF
19120 for ac_lib in '' gss gssapi gssapi_krb5; do
19121 if test -z "$ac_lib"; then
19122 ac_res="none required"
19123 else
19124 ac_res=-l$ac_lib
19125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19127 if ac_fn_c_try_link "$LINENO"; then :
19128 ac_cv_search_gss_init_sec_context=$ac_res
19130 rm -f core conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext
19132 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19133 break
19135 done
19136 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19138 else
19139 ac_cv_search_gss_init_sec_context=no
19141 rm conftest.$ac_ext
19142 LIBS=$ac_func_search_save_LIBS
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19145 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19146 ac_res=$ac_cv_search_gss_init_sec_context
19147 if test "$ac_res" != no; then :
19148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19150 LIBS="$LIBS -lkrb5"
19151 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19154 else
19156 if test ! -d /usr/kerberos/include ; then
19157 alpine_GSSTYPE="none"
19158 alpine_gss_none_reason="header files not found"
19165 else
19167 alpine_GSSTYPE="none"
19168 alpine_gss_none_reason="libraries not found"
19172 if test -n "$alpine_gss_none_reason" ; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19174 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19178 if test -n "$WEB_BUILD" ; then
19179 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19180 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19181 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19183 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19184 if ${ac_cv_search_Tcl_Eval+:} false; then :
19185 $as_echo_n "(cached) " >&6
19186 else
19187 ac_func_search_save_LIBS=$LIBS
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19191 /* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 char Tcl_Eval ();
19199 main ()
19201 return Tcl_Eval ();
19203 return 0;
19205 _ACEOF
19206 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19207 if test -z "$ac_lib"; then
19208 ac_res="none required"
19209 else
19210 ac_res=-l$ac_lib
19211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19213 if ac_fn_c_try_link "$LINENO"; then :
19214 ac_cv_search_Tcl_Eval=$ac_res
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext
19218 if ${ac_cv_search_Tcl_Eval+:} false; then :
19219 break
19221 done
19222 if ${ac_cv_search_Tcl_Eval+:} false; then :
19224 else
19225 ac_cv_search_Tcl_Eval=no
19227 rm conftest.$ac_ext
19228 LIBS=$ac_func_search_save_LIBS
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19231 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19232 ac_res=$ac_cv_search_Tcl_Eval
19233 if test "$ac_res" != no; then :
19234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19236 else
19238 WEB_BUILD=
19243 if test -n "$alpine_TCLINC" ; then
19244 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19245 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19248 else
19250 WEB_BUILD=
19255 if test -z "$WEB_BUILD" ; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19257 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19259 else
19260 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19261 if test "x$ac_cv_header_tcl_h" = xyes; then :
19263 else
19265 for base in /usr /usr/local ; do
19266 for dir in ${TCL_VERSIONS} ; do
19267 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
19269 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
19270 if eval \${$as_ac_File+:} false; then :
19271 $as_echo_n "(cached) " >&6
19272 else
19273 test "$cross_compiling" = yes &&
19274 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19275 if test -r "$base/include/$dir/tcl.h"; then
19276 eval "$as_ac_File=yes"
19277 else
19278 eval "$as_ac_File=no"
19281 eval ac_res=\$$as_ac_File
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19283 $as_echo "$ac_res" >&6; }
19284 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19286 found=yes
19290 if test "$found" = "yes" ; then
19291 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19292 break
19294 done
19295 if test "$found" = "yes" ; then
19296 break
19298 done
19299 if test "$found" != "yes" ; then
19300 WEB_BUILD=
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19302 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19311 if test "x$alpine_REGEX" != "xyes" ; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19313 $as_echo_n "checking for library containing regcomp... " >&6; }
19314 if ${ac_cv_search_regcomp+:} false; then :
19315 $as_echo_n "(cached) " >&6
19316 else
19317 ac_func_search_save_LIBS=$LIBS
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char regcomp ();
19329 main ()
19331 return regcomp ();
19333 return 0;
19335 _ACEOF
19336 for ac_lib in '' posix regexp regex re; do
19337 if test -z "$ac_lib"; then
19338 ac_res="none required"
19339 else
19340 ac_res=-l$ac_lib
19341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19343 if ac_fn_c_try_link "$LINENO"; then :
19344 ac_cv_search_regcomp=$ac_res
19346 rm -f core conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext
19348 if ${ac_cv_search_regcomp+:} false; then :
19349 break
19351 done
19352 if ${ac_cv_search_regcomp+:} false; then :
19354 else
19355 ac_cv_search_regcomp=no
19357 rm conftest.$ac_ext
19358 LIBS=$ac_func_search_save_LIBS
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19361 $as_echo "$ac_cv_search_regcomp" >&6; }
19362 ac_res=$ac_cv_search_regcomp
19363 if test "$ac_res" != no; then :
19364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19366 else
19368 if test x$alpine_REGEX = "xno" ; then
19369 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19370 else
19371 alpine_REGEX=yes
19377 if test "x$alpine_REGEX" != "xyes" ; then
19378 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19379 if test "x$ac_cv_header_regex_h" = xyes; then :
19381 else
19383 if test x$alpine_REGEX = "xno" ; then
19384 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19385 else
19386 alpine_REGEX=yes
19394 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19396 if test "x$alpine_REGEX" = "xyes" ; then
19397 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19398 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19399 REGEX_BUILD=regex
19400 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19403 if test "x$with_pthread" != "xno" ; then
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19405 $as_echo_n "checking for pthread support... " >&6; }
19409 ac_ext=c
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19415 acx_pthread_ok=no
19417 # We used to check for pthread.h first, but this fails if pthread.h
19418 # requires special compiler flags (e.g. on True64 or Sequent).
19419 # It gets checked for in the link test anyway.
19421 # First of all, check if the user has set any of the PTHREAD_LIBS,
19422 # etcetera environment variables, and if threads linking works using
19423 # them:
19424 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19425 save_CFLAGS="$CFLAGS"
19426 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19427 save_LIBS="$LIBS"
19428 LIBS="$PTHREAD_LIBS $LIBS"
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19430 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19434 /* Override any GCC internal prototype to avoid an error.
19435 Use char because int might match the return type of a GCC
19436 builtin and then its argument prototype would still apply. */
19437 #ifdef __cplusplus
19438 extern "C"
19439 #endif
19440 char pthread_join ();
19442 main ()
19444 return pthread_join ();
19446 return 0;
19448 _ACEOF
19449 if ac_fn_c_try_link "$LINENO"; then :
19450 acx_pthread_ok=yes
19452 rm -f core conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19455 $as_echo "$acx_pthread_ok" >&6; }
19456 if test x"$acx_pthread_ok" = xno; then
19457 PTHREAD_LIBS=""
19458 PTHREAD_CFLAGS=""
19460 LIBS="$save_LIBS"
19461 CFLAGS="$save_CFLAGS"
19464 # We must check for the threads library under a number of different
19465 # names; the ordering is very important because some systems
19466 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19467 # libraries is broken (non-POSIX).
19469 # Create a list of thread flags to try. Items starting with a "-" are
19470 # C compiler flags, and other items are library names, except for "none"
19471 # which indicates that we try without any flags at all, and "pthread-config"
19472 # which is a program returning the flags for the Pth emulation library.
19474 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19476 # The ordering *is* (sometimes) important. Some notes on the
19477 # individual items follow:
19479 # pthreads: AIX (must check this before -lpthread)
19480 # none: in case threads are in libc; should be tried before -Kthread and
19481 # other compiler flags to prevent continual compiler warnings
19482 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19483 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19484 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19485 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19486 # -pthreads: Solaris/gcc
19487 # -mthreads: Mingw32/gcc, Lynx/gcc
19488 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19489 # doesn't hurt to check since this sometimes defines pthreads too;
19490 # also defines -D_REENTRANT)
19491 # ... -mt is also the pthreads flag for HP/aCC
19492 # pthread: Linux, etcetera
19493 # --thread-safe: KAI C++
19494 # pthread-config: use pthread-config program (for GNU Pth library)
19496 case "${host_cpu}-${host_os}" in
19497 *solaris*)
19499 # On Solaris (at least, for some versions), libc contains stubbed
19500 # (non-functional) versions of the pthreads routines, so link-based
19501 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19502 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19503 # a function called by this macro, so we could check for that, but
19504 # who knows whether they'll stub that too in a future libc.) So,
19505 # we'll just look for -pthreads and -lpthread first:
19507 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19509 esac
19511 if test x"$acx_pthread_ok" = xno; then
19512 for flag in $acx_pthread_flags; do
19514 case $flag in
19515 none)
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19517 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19522 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19523 PTHREAD_CFLAGS="$flag"
19526 pthread-config)
19527 # Extract the first word of "pthread-config", so it can be a program name with args.
19528 set dummy pthread-config; ac_word=$2
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19530 $as_echo_n "checking for $ac_word... " >&6; }
19531 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19532 $as_echo_n "(cached) " >&6
19533 else
19534 if test -n "$acx_pthread_config"; then
19535 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19536 else
19537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19540 IFS=$as_save_IFS
19541 test -z "$as_dir" && as_dir=.
19542 for ac_exec_ext in '' $ac_executable_extensions; do
19543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19544 ac_cv_prog_acx_pthread_config="yes"
19545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19546 break 2
19548 done
19549 done
19550 IFS=$as_save_IFS
19552 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19555 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19556 if test -n "$acx_pthread_config"; then
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19558 $as_echo "$acx_pthread_config" >&6; }
19559 else
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561 $as_echo "no" >&6; }
19565 if test x"$acx_pthread_config" = xno; then continue; fi
19566 PTHREAD_CFLAGS="`pthread-config --cflags`"
19567 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19572 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19573 PTHREAD_LIBS="-l$flag"
19575 esac
19577 save_LIBS="$LIBS"
19578 save_CFLAGS="$CFLAGS"
19579 LIBS="$PTHREAD_LIBS $LIBS"
19580 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19582 # Check for various functions. We must include pthread.h,
19583 # since some functions may be macros. (On the Sequent, we
19584 # need a special flag -Kthread to make this header compile.)
19585 # We check for pthread_join because it is in -lpthread on IRIX
19586 # while pthread_create is in libc. We check for pthread_attr_init
19587 # due to DEC craziness with -lpthreads. We check for
19588 # pthread_cleanup_push because it is one of the few pthread
19589 # functions on Solaris that doesn't have a non-functional libc stub.
19590 # We try pthread_create on general principles.
19591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592 /* end confdefs.h. */
19593 #include <pthread.h>
19595 main ()
19597 pthread_t th; pthread_join(th, 0);
19598 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19599 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19601 return 0;
19603 _ACEOF
19604 if ac_fn_c_try_link "$LINENO"; then :
19605 acx_pthread_ok=yes
19607 rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19610 LIBS="$save_LIBS"
19611 CFLAGS="$save_CFLAGS"
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19614 $as_echo "$acx_pthread_ok" >&6; }
19615 if test "x$acx_pthread_ok" = xyes; then
19616 break;
19619 PTHREAD_LIBS=""
19620 PTHREAD_CFLAGS=""
19621 done
19624 # Various other checks:
19625 if test "x$acx_pthread_ok" = xyes; then
19626 save_LIBS="$LIBS"
19627 LIBS="$PTHREAD_LIBS $LIBS"
19628 save_CFLAGS="$CFLAGS"
19629 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19631 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19633 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19634 attr_name=unknown
19635 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638 #include <pthread.h>
19640 main ()
19642 int attr=$attr; return attr;
19644 return 0;
19646 _ACEOF
19647 if ac_fn_c_try_link "$LINENO"; then :
19648 attr_name=$attr; break
19650 rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652 done
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19654 $as_echo "$attr_name" >&6; }
19655 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19657 cat >>confdefs.h <<_ACEOF
19658 #define PTHREAD_CREATE_JOINABLE $attr_name
19659 _ACEOF
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19664 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19665 flag=no
19666 case "${host_cpu}-${host_os}" in
19667 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19668 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19669 esac
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19671 $as_echo "${flag}" >&6; }
19672 if test "x$flag" != xno; then
19673 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19676 LIBS="$save_LIBS"
19677 CFLAGS="$save_CFLAGS"
19679 # More AIX lossage: must compile with xlc_r or cc_r
19680 if test x"$GCC" != xyes; then
19681 for ac_prog in xlc_r cc_r
19683 # Extract the first word of "$ac_prog", so it can be a program name with args.
19684 set dummy $ac_prog; ac_word=$2
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19686 $as_echo_n "checking for $ac_word... " >&6; }
19687 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19688 $as_echo_n "(cached) " >&6
19689 else
19690 if test -n "$PTHREAD_CC"; then
19691 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19692 else
19693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19694 for as_dir in $PATH
19696 IFS=$as_save_IFS
19697 test -z "$as_dir" && as_dir=.
19698 for ac_exec_ext in '' $ac_executable_extensions; do
19699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19700 ac_cv_prog_PTHREAD_CC="$ac_prog"
19701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19702 break 2
19704 done
19705 done
19706 IFS=$as_save_IFS
19710 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19711 if test -n "$PTHREAD_CC"; then
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19713 $as_echo "$PTHREAD_CC" >&6; }
19714 else
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19716 $as_echo "no" >&6; }
19720 test -n "$PTHREAD_CC" && break
19721 done
19722 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19724 else
19725 PTHREAD_CC=$CC
19727 else
19728 PTHREAD_CC="$CC"
19735 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19736 if test x"$acx_pthread_ok" = xyes; then
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19739 $as_echo "yes" >&6; }
19740 case "$target" in
19741 *openbsd*)
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19743 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19744 AM_CFLAGS="$AM_CFLAGS -pthread"
19746 esac
19747 LIBS="$PTHREAD_LIBS $LIBS"
19748 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19749 CC="$PTHREAD_CC"
19751 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19755 else
19756 acx_pthread_ok=no
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759 $as_echo "no" >&6; }
19762 ac_ext=c
19763 ac_cpp='$CPP $CPPFLAGS'
19764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19771 $as_echo_n "checking for library containing nanosleep... " >&6; }
19772 if ${ac_cv_search_nanosleep+:} false; then :
19773 $as_echo_n "(cached) " >&6
19774 else
19775 ac_func_search_save_LIBS=$LIBS
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char nanosleep ();
19787 main ()
19789 return nanosleep ();
19791 return 0;
19793 _ACEOF
19794 for ac_lib in '' rt posix4; do
19795 if test -z "$ac_lib"; then
19796 ac_res="none required"
19797 else
19798 ac_res=-l$ac_lib
19799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19801 if ac_fn_c_try_link "$LINENO"; then :
19802 ac_cv_search_nanosleep=$ac_res
19804 rm -f core conftest.err conftest.$ac_objext \
19805 conftest$ac_exeext
19806 if ${ac_cv_search_nanosleep+:} false; then :
19807 break
19809 done
19810 if ${ac_cv_search_nanosleep+:} false; then :
19812 else
19813 ac_cv_search_nanosleep=no
19815 rm conftest.$ac_ext
19816 LIBS=$ac_func_search_save_LIBS
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19819 $as_echo "$ac_cv_search_nanosleep" >&6; }
19820 ac_res=$ac_cv_search_nanosleep
19821 if test "$ac_res" != no; then :
19822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19825 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19836 $as_echo_n "checking for ANSI C header files... " >&6; }
19837 if ${ac_cv_header_stdc+:} false; then :
19838 $as_echo_n "(cached) " >&6
19839 else
19840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841 /* end confdefs.h. */
19842 #include <stdlib.h>
19843 #include <stdarg.h>
19844 #include <string.h>
19845 #include <float.h>
19848 main ()
19852 return 0;
19854 _ACEOF
19855 if ac_fn_c_try_compile "$LINENO"; then :
19856 ac_cv_header_stdc=yes
19857 else
19858 ac_cv_header_stdc=no
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862 if test $ac_cv_header_stdc = yes; then
19863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 #include <string.h>
19868 _ACEOF
19869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19870 $EGREP "memchr" >/dev/null 2>&1; then :
19872 else
19873 ac_cv_header_stdc=no
19875 rm -f conftest*
19879 if test $ac_cv_header_stdc = yes; then
19880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 #include <stdlib.h>
19885 _ACEOF
19886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19887 $EGREP "free" >/dev/null 2>&1; then :
19889 else
19890 ac_cv_header_stdc=no
19892 rm -f conftest*
19896 if test $ac_cv_header_stdc = yes; then
19897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19898 if test "$cross_compiling" = yes; then :
19900 else
19901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902 /* end confdefs.h. */
19903 #include <ctype.h>
19904 #include <stdlib.h>
19905 #if ((' ' & 0x0FF) == 0x020)
19906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19908 #else
19909 # define ISLOWER(c) \
19910 (('a' <= (c) && (c) <= 'i') \
19911 || ('j' <= (c) && (c) <= 'r') \
19912 || ('s' <= (c) && (c) <= 'z'))
19913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19914 #endif
19916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19918 main ()
19920 int i;
19921 for (i = 0; i < 256; i++)
19922 if (XOR (islower (i), ISLOWER (i))
19923 || toupper (i) != TOUPPER (i))
19924 return 2;
19925 return 0;
19927 _ACEOF
19928 if ac_fn_c_try_run "$LINENO"; then :
19930 else
19931 ac_cv_header_stdc=no
19933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19934 conftest.$ac_objext conftest.beam conftest.$ac_ext
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19940 $as_echo "$ac_cv_header_stdc" >&6; }
19941 if test $ac_cv_header_stdc = yes; then
19943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19947 ac_header_dirent=no
19948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19949 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19951 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19952 if eval \${$as_ac_Header+:} false; then :
19953 $as_echo_n "(cached) " >&6
19954 else
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h. */
19957 #include <sys/types.h>
19958 #include <$ac_hdr>
19961 main ()
19963 if ((DIR *) 0)
19964 return 0;
19966 return 0;
19968 _ACEOF
19969 if ac_fn_c_try_compile "$LINENO"; then :
19970 eval "$as_ac_Header=yes"
19971 else
19972 eval "$as_ac_Header=no"
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 eval ac_res=\$$as_ac_Header
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19978 $as_echo "$ac_res" >&6; }
19979 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19980 cat >>confdefs.h <<_ACEOF
19981 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19982 _ACEOF
19984 ac_header_dirent=$ac_hdr; break
19987 done
19988 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19989 if test $ac_header_dirent = dirent.h; then
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19991 $as_echo_n "checking for library containing opendir... " >&6; }
19992 if ${ac_cv_search_opendir+:} false; then :
19993 $as_echo_n "(cached) " >&6
19994 else
19995 ac_func_search_save_LIBS=$LIBS
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
19999 /* Override any GCC internal prototype to avoid an error.
20000 Use char because int might match the return type of a GCC
20001 builtin and then its argument prototype would still apply. */
20002 #ifdef __cplusplus
20003 extern "C"
20004 #endif
20005 char opendir ();
20007 main ()
20009 return opendir ();
20011 return 0;
20013 _ACEOF
20014 for ac_lib in '' dir; do
20015 if test -z "$ac_lib"; then
20016 ac_res="none required"
20017 else
20018 ac_res=-l$ac_lib
20019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20021 if ac_fn_c_try_link "$LINENO"; then :
20022 ac_cv_search_opendir=$ac_res
20024 rm -f core conftest.err conftest.$ac_objext \
20025 conftest$ac_exeext
20026 if ${ac_cv_search_opendir+:} false; then :
20027 break
20029 done
20030 if ${ac_cv_search_opendir+:} false; then :
20032 else
20033 ac_cv_search_opendir=no
20035 rm conftest.$ac_ext
20036 LIBS=$ac_func_search_save_LIBS
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20039 $as_echo "$ac_cv_search_opendir" >&6; }
20040 ac_res=$ac_cv_search_opendir
20041 if test "$ac_res" != no; then :
20042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20046 else
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20048 $as_echo_n "checking for library containing opendir... " >&6; }
20049 if ${ac_cv_search_opendir+:} false; then :
20050 $as_echo_n "(cached) " >&6
20051 else
20052 ac_func_search_save_LIBS=$LIBS
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20056 /* Override any GCC internal prototype to avoid an error.
20057 Use char because int might match the return type of a GCC
20058 builtin and then its argument prototype would still apply. */
20059 #ifdef __cplusplus
20060 extern "C"
20061 #endif
20062 char opendir ();
20064 main ()
20066 return opendir ();
20068 return 0;
20070 _ACEOF
20071 for ac_lib in '' x; do
20072 if test -z "$ac_lib"; then
20073 ac_res="none required"
20074 else
20075 ac_res=-l$ac_lib
20076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20078 if ac_fn_c_try_link "$LINENO"; then :
20079 ac_cv_search_opendir=$ac_res
20081 rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext
20083 if ${ac_cv_search_opendir+:} false; then :
20084 break
20086 done
20087 if ${ac_cv_search_opendir+:} false; then :
20089 else
20090 ac_cv_search_opendir=no
20092 rm conftest.$ac_ext
20093 LIBS=$ac_func_search_save_LIBS
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20096 $as_echo "$ac_cv_search_opendir" >&6; }
20097 ac_res=$ac_cv_search_opendir
20098 if test "$ac_res" != no; then :
20099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20106 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20107 if ${ac_cv_header_stat_broken+:} false; then :
20108 $as_echo_n "(cached) " >&6
20109 else
20110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20112 #include <sys/types.h>
20113 #include <sys/stat.h>
20115 #if defined S_ISBLK && defined S_IFDIR
20116 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20117 #endif
20119 #if defined S_ISBLK && defined S_IFCHR
20120 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20121 #endif
20123 #if defined S_ISLNK && defined S_IFREG
20124 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20125 #endif
20127 #if defined S_ISSOCK && defined S_IFREG
20128 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20129 #endif
20131 _ACEOF
20132 if ac_fn_c_try_compile "$LINENO"; then :
20133 ac_cv_header_stat_broken=no
20134 else
20135 ac_cv_header_stat_broken=yes
20137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20140 $as_echo "$ac_cv_header_stat_broken" >&6; }
20141 if test $ac_cv_header_stat_broken = yes; then
20143 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20148 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20149 if ${ac_cv_header_sys_wait_h+:} false; then :
20150 $as_echo_n "(cached) " >&6
20151 else
20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h. */
20154 #include <sys/types.h>
20155 #include <sys/wait.h>
20156 #ifndef WEXITSTATUS
20157 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20158 #endif
20159 #ifndef WIFEXITED
20160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20161 #endif
20164 main ()
20166 int s;
20167 wait (&s);
20168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20170 return 0;
20172 _ACEOF
20173 if ac_fn_c_try_compile "$LINENO"; then :
20174 ac_cv_header_sys_wait_h=yes
20175 else
20176 ac_cv_header_sys_wait_h=no
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20181 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20182 if test $ac_cv_header_sys_wait_h = yes; then
20184 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20190 if ${ac_cv_header_time+:} false; then :
20191 $as_echo_n "(cached) " >&6
20192 else
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h. */
20195 #include <sys/types.h>
20196 #include <sys/time.h>
20197 #include <time.h>
20200 main ()
20202 if ((struct tm *) 0)
20203 return 0;
20205 return 0;
20207 _ACEOF
20208 if ac_fn_c_try_compile "$LINENO"; then :
20209 ac_cv_header_time=yes
20210 else
20211 ac_cv_header_time=no
20213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20216 $as_echo "$ac_cv_header_time" >&6; }
20217 if test $ac_cv_header_time = yes; then
20219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20224 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20225 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20226 $as_echo_n "(cached) " >&6
20227 else
20228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229 /* end confdefs.h. */
20230 #include <sys/types.h>
20231 #include <termios.h>
20232 #ifdef TIOCGWINSZ
20234 #endif
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "yes" >/dev/null 2>&1; then :
20239 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20240 else
20241 ac_cv_sys_tiocgwinsz_in_termios_h=no
20243 rm -f conftest*
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20247 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20249 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20251 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20252 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20257 #include <sys/types.h>
20258 #include <sys/ioctl.h>
20259 #ifdef TIOCGWINSZ
20261 #endif
20263 _ACEOF
20264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20265 $EGREP "yes" >/dev/null 2>&1; then :
20266 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20267 else
20268 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20270 rm -f conftest*
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20274 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20276 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20278 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20284 for ac_header in unistd.h
20285 do :
20286 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20287 if test "x$ac_cv_header_unistd_h" = xyes; then :
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_UNISTD_H 1
20290 _ACEOF
20294 done
20297 for ac_header in errno.h \
20298 ctype.h \
20299 fcntl.h \
20300 signal.h \
20301 setjmp.h \
20302 memory.h \
20303 sys/ioctl.h \
20304 sys/param.h \
20305 sys/socket.h \
20306 sys/uio.h \
20307 sys/un.h \
20308 limits.h \
20309 wchar.h \
20310 sys/poll.h \
20311 stropts.h \
20312 netdb.h \
20313 syslog.h \
20314 sys/syslog.h \
20315 locale.h \
20316 langinfo.h \
20317 utime.h \
20318 sys/utime.h \
20319 pthread.h \
20320 pwd.h \
20321 assert.h
20322 do :
20323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20326 cat >>confdefs.h <<_ACEOF
20327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20328 _ACEOF
20332 done
20335 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20336 if test "x$ac_cv_header_termios_h" = xyes; then :
20338 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20340 else
20342 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20343 if test "x$ac_cv_header_termio_h" = xyes; then :
20345 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20347 else
20349 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20350 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20352 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20354 else
20356 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20373 $as_echo_n "checking return type of signal handlers... " >&6; }
20374 if ${ac_cv_type_signal+:} false; then :
20375 $as_echo_n "(cached) " >&6
20376 else
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20379 #include <sys/types.h>
20380 #include <signal.h>
20383 main ()
20385 return *(signal (0, 0)) (0) == 1;
20387 return 0;
20389 _ACEOF
20390 if ac_fn_c_try_compile "$LINENO"; then :
20391 ac_cv_type_signal=int
20392 else
20393 ac_cv_type_signal=void
20395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20398 $as_echo "$ac_cv_type_signal" >&6; }
20400 cat >>confdefs.h <<_ACEOF
20401 #define RETSIGTYPE $ac_cv_type_signal
20402 _ACEOF
20405 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20406 if test "x$ac_cv_type_size_t" = xyes; then :
20408 else
20410 cat >>confdefs.h <<_ACEOF
20411 #define size_t unsigned int
20412 _ACEOF
20416 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20417 if test "x$ac_cv_type_mode_t" = xyes; then :
20419 else
20421 cat >>confdefs.h <<_ACEOF
20422 #define mode_t int
20423 _ACEOF
20427 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20428 if test "x$ac_cv_type_pid_t" = xyes; then :
20430 else
20432 cat >>confdefs.h <<_ACEOF
20433 #define pid_t int
20434 _ACEOF
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20439 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20440 if ${ac_cv_type_uid_t+:} false; then :
20441 $as_echo_n "(cached) " >&6
20442 else
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20445 #include <sys/types.h>
20447 _ACEOF
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449 $EGREP "uid_t" >/dev/null 2>&1; then :
20450 ac_cv_type_uid_t=yes
20451 else
20452 ac_cv_type_uid_t=no
20454 rm -f conftest*
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20458 $as_echo "$ac_cv_type_uid_t" >&6; }
20459 if test $ac_cv_type_uid_t = no; then
20461 $as_echo "#define uid_t int" >>confdefs.h
20464 $as_echo "#define gid_t int" >>confdefs.h
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20469 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20470 if ${ac_cv_struct_tm+:} false; then :
20471 $as_echo_n "(cached) " >&6
20472 else
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20475 #include <sys/types.h>
20476 #include <time.h>
20479 main ()
20481 struct tm tm;
20482 int *p = &tm.tm_sec;
20483 return !p;
20485 return 0;
20487 _ACEOF
20488 if ac_fn_c_try_compile "$LINENO"; then :
20489 ac_cv_struct_tm=time.h
20490 else
20491 ac_cv_struct_tm=sys/time.h
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20496 $as_echo "$ac_cv_struct_tm" >&6; }
20497 if test $ac_cv_struct_tm = sys/time.h; then
20499 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20504 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20505 if test "x$ac_cv_type_union_wait" = xyes; then :
20507 cat >>confdefs.h <<_ACEOF
20508 #define HAVE_UNION_WAIT 1
20509 _ACEOF
20515 for ac_header in stdint.h
20516 do :
20517 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20518 if test "x$ac_cv_header_stdint_h" = xyes; then :
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_STDINT_H 1
20521 _ACEOF
20522 uint16=uint16_t
20523 else
20525 for ac_header in inttypes.h
20526 do :
20527 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20528 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20529 cat >>confdefs.h <<_ACEOF
20530 #define HAVE_INTTYPES_H 1
20531 _ACEOF
20532 uint16=uint16_t
20533 else
20535 for ac_header in sys/types.h
20536 do :
20537 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20538 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20539 cat >>confdefs.h <<_ACEOF
20540 #define HAVE_SYS_TYPES_H 1
20541 _ACEOF
20542 uint16=u_int16_t
20543 else
20545 # The cast to long int works around a bug in the HP C Compiler
20546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20548 # This bug is HP SR number 8606223364.
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20550 $as_echo_n "checking size of unsigned short... " >&6; }
20551 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20552 $as_echo_n "(cached) " >&6
20553 else
20554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20556 else
20557 if test "$ac_cv_type_unsigned_short" = yes; then
20558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20560 as_fn_error 77 "cannot compute sizeof (unsigned short)
20561 See \`config.log' for more details" "$LINENO" 5; }
20562 else
20563 ac_cv_sizeof_unsigned_short=0
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20569 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20573 cat >>confdefs.h <<_ACEOF
20574 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20575 _ACEOF
20578 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20579 uint16="unsigned short"
20580 else
20581 # The cast to long int works around a bug in the HP C Compiler
20582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20584 # This bug is HP SR number 8606223364.
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20586 $as_echo_n "checking size of unsigned int... " >&6; }
20587 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20588 $as_echo_n "(cached) " >&6
20589 else
20590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20592 else
20593 if test "$ac_cv_type_unsigned_int" = yes; then
20594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20596 as_fn_error 77 "cannot compute sizeof (unsigned int)
20597 See \`config.log' for more details" "$LINENO" 5; }
20598 else
20599 ac_cv_sizeof_unsigned_int=0
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20605 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20609 cat >>confdefs.h <<_ACEOF
20610 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20611 _ACEOF
20614 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20615 uint16="unsigned int"
20616 else
20617 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20623 done
20628 done
20633 done
20636 cat >>confdefs.h <<_ACEOF
20637 #define UINT16 $uint16
20638 _ACEOF
20641 for ac_header in stdint.h
20642 do :
20643 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20644 if test "x$ac_cv_header_stdint_h" = xyes; then :
20645 cat >>confdefs.h <<_ACEOF
20646 #define HAVE_STDINT_H 1
20647 _ACEOF
20648 uint32=uint32_t
20649 else
20651 for ac_header in inttypes.h
20652 do :
20653 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20654 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_INTTYPES_H 1
20657 _ACEOF
20658 uint32=uint32_t
20659 else
20661 for ac_header in sys/types.h
20662 do :
20663 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20664 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_SYS_TYPES_H 1
20667 _ACEOF
20668 uint32=u_int32_t
20669 else
20671 # The cast to long int works around a bug in the HP C Compiler
20672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20674 # This bug is HP SR number 8606223364.
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20676 $as_echo_n "checking size of unsigned int... " >&6; }
20677 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20678 $as_echo_n "(cached) " >&6
20679 else
20680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20682 else
20683 if test "$ac_cv_type_unsigned_int" = yes; then
20684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20686 as_fn_error 77 "cannot compute sizeof (unsigned int)
20687 See \`config.log' for more details" "$LINENO" 5; }
20688 else
20689 ac_cv_sizeof_unsigned_int=0
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20695 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20699 cat >>confdefs.h <<_ACEOF
20700 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20701 _ACEOF
20704 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20705 uint32="unsigned int"
20706 else
20707 # The cast to long int works around a bug in the HP C Compiler
20708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20710 # This bug is HP SR number 8606223364.
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20712 $as_echo_n "checking size of unsigned long... " >&6; }
20713 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20714 $as_echo_n "(cached) " >&6
20715 else
20716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20718 else
20719 if test "$ac_cv_type_unsigned_long" = yes; then
20720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20722 as_fn_error 77 "cannot compute sizeof (unsigned long)
20723 See \`config.log' for more details" "$LINENO" 5; }
20724 else
20725 ac_cv_sizeof_unsigned_long=0
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20731 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20735 cat >>confdefs.h <<_ACEOF
20736 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20737 _ACEOF
20740 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20741 uint32="unsigned long"
20742 else
20743 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20749 done
20754 done
20759 done
20762 cat >>confdefs.h <<_ACEOF
20763 #define UINT32 $uint32
20764 _ACEOF
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20768 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20769 if ${ac_cv_func_qsort_argtype+:} false; then :
20770 $as_echo_n "(cached) " >&6
20771 else
20772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773 /* end confdefs.h. */
20775 #if HAVE_STDLIB_H
20776 #include "stdlib.h"
20777 #endif
20779 extern void *base;
20780 extern sortf(const void *, const void *);
20781 int sortf(a, b)
20782 const void *a;
20783 const void *b; { return 0; }
20786 main ()
20789 qsort(base, 2, sizeof(char *), sortf);
20792 return 0;
20794 _ACEOF
20795 if ac_fn_c_try_compile "$LINENO"; then :
20796 ac_cv_func_qsort_argtype=void
20797 else
20798 ac_cv_func_qsort_argtype=char
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20804 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20806 cat >>confdefs.h <<_ACEOF
20807 #define qsort_t $ac_cv_func_qsort_argtype
20808 _ACEOF
20812 for ac_header in sys/select.h sys/socket.h
20813 do :
20814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20817 cat >>confdefs.h <<_ACEOF
20818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20819 _ACEOF
20823 done
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20826 $as_echo_n "checking types of arguments for select... " >&6; }
20827 if ${ac_cv_func_select_args+:} false; then :
20828 $as_echo_n "(cached) " >&6
20829 else
20830 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20831 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20832 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h. */
20835 $ac_includes_default
20836 #ifdef HAVE_SYS_SELECT_H
20837 # include <sys/select.h>
20838 #endif
20839 #ifdef HAVE_SYS_SOCKET_H
20840 # include <sys/socket.h>
20841 #endif
20844 main ()
20846 extern int select ($ac_arg1,
20847 $ac_arg234, $ac_arg234, $ac_arg234,
20848 $ac_arg5);
20850 return 0;
20852 _ACEOF
20853 if ac_fn_c_try_compile "$LINENO"; then :
20854 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857 done
20858 done
20859 done
20860 # Provide a safe default value.
20861 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20865 $as_echo "$ac_cv_func_select_args" >&6; }
20866 ac_save_IFS=$IFS; IFS=','
20867 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20868 IFS=$ac_save_IFS
20869 shift
20871 cat >>confdefs.h <<_ACEOF
20872 #define SELECT_TYPE_ARG1 $1
20873 _ACEOF
20876 cat >>confdefs.h <<_ACEOF
20877 #define SELECT_TYPE_ARG234 ($2)
20878 _ACEOF
20881 cat >>confdefs.h <<_ACEOF
20882 #define SELECT_TYPE_ARG5 ($3)
20883 _ACEOF
20885 rm -f conftest*
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20889 $as_echo_n "checking for working strcoll... " >&6; }
20890 if ${ac_cv_func_strcoll_works+:} false; then :
20891 $as_echo_n "(cached) " >&6
20892 else
20893 if test "$cross_compiling" = yes; then :
20894 ac_cv_func_strcoll_works=no
20895 else
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 $ac_includes_default
20900 main ()
20902 return (strcoll ("abc", "def") >= 0 ||
20903 strcoll ("ABC", "DEF") >= 0 ||
20904 strcoll ("123", "456") >= 0)
20906 return 0;
20908 _ACEOF
20909 if ac_fn_c_try_run "$LINENO"; then :
20910 ac_cv_func_strcoll_works=yes
20911 else
20912 ac_cv_func_strcoll_works=no
20914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20915 conftest.$ac_objext conftest.beam conftest.$ac_ext
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20920 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20921 if test $ac_cv_func_strcoll_works = yes; then
20923 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20929 for ac_header in vfork.h
20930 do :
20931 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20932 if test "x$ac_cv_header_vfork_h" = xyes; then :
20933 cat >>confdefs.h <<_ACEOF
20934 #define HAVE_VFORK_H 1
20935 _ACEOF
20939 done
20941 for ac_func in fork vfork
20942 do :
20943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20946 cat >>confdefs.h <<_ACEOF
20947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20948 _ACEOF
20951 done
20953 if test "x$ac_cv_func_fork" = xyes; then
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20955 $as_echo_n "checking for working fork... " >&6; }
20956 if ${ac_cv_func_fork_works+:} false; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 if test "$cross_compiling" = yes; then :
20960 ac_cv_func_fork_works=cross
20961 else
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20964 $ac_includes_default
20966 main ()
20969 /* By Ruediger Kuhlmann. */
20970 return fork () < 0;
20973 return 0;
20975 _ACEOF
20976 if ac_fn_c_try_run "$LINENO"; then :
20977 ac_cv_func_fork_works=yes
20978 else
20979 ac_cv_func_fork_works=no
20981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20982 conftest.$ac_objext conftest.beam conftest.$ac_ext
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20987 $as_echo "$ac_cv_func_fork_works" >&6; }
20989 else
20990 ac_cv_func_fork_works=$ac_cv_func_fork
20992 if test "x$ac_cv_func_fork_works" = xcross; then
20993 case $host in
20994 *-*-amigaos* | *-*-msdosdjgpp*)
20995 # Override, as these systems have only a dummy fork() stub
20996 ac_cv_func_fork_works=no
20999 ac_cv_func_fork_works=yes
21001 esac
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21003 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21005 ac_cv_func_vfork_works=$ac_cv_func_vfork
21006 if test "x$ac_cv_func_vfork" = xyes; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21008 $as_echo_n "checking for working vfork... " >&6; }
21009 if ${ac_cv_func_vfork_works+:} false; then :
21010 $as_echo_n "(cached) " >&6
21011 else
21012 if test "$cross_compiling" = yes; then :
21013 ac_cv_func_vfork_works=cross
21014 else
21015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h. */
21017 /* Thanks to Paul Eggert for this test. */
21018 $ac_includes_default
21019 #include <sys/wait.h>
21020 #ifdef HAVE_VFORK_H
21021 # include <vfork.h>
21022 #endif
21023 /* On some sparc systems, changes by the child to local and incoming
21024 argument registers are propagated back to the parent. The compiler
21025 is told about this with #include <vfork.h>, but some compilers
21026 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21027 static variable whose address is put into a register that is
21028 clobbered by the vfork. */
21029 static void
21030 #ifdef __cplusplus
21031 sparc_address_test (int arg)
21032 # else
21033 sparc_address_test (arg) int arg;
21034 #endif
21036 static pid_t child;
21037 if (!child) {
21038 child = vfork ();
21039 if (child < 0) {
21040 perror ("vfork");
21041 _exit(2);
21043 if (!child) {
21044 arg = getpid();
21045 write(-1, "", 0);
21046 _exit (arg);
21052 main ()
21054 pid_t parent = getpid ();
21055 pid_t child;
21057 sparc_address_test (0);
21059 child = vfork ();
21061 if (child == 0) {
21062 /* Here is another test for sparc vfork register problems. This
21063 test uses lots of local variables, at least as many local
21064 variables as main has allocated so far including compiler
21065 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21066 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21067 reuse the register of parent for one of the local variables,
21068 since it will think that parent can't possibly be used any more
21069 in this routine. Assigning to the local variable will thus
21070 munge parent in the parent process. */
21071 pid_t
21072 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21073 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21074 /* Convince the compiler that p..p7 are live; otherwise, it might
21075 use the same hardware register for all 8 local variables. */
21076 if (p != p1 || p != p2 || p != p3 || p != p4
21077 || p != p5 || p != p6 || p != p7)
21078 _exit(1);
21080 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21081 from child file descriptors. If the child closes a descriptor
21082 before it execs or exits, this munges the parent's descriptor
21083 as well. Test for this by closing stdout in the child. */
21084 _exit(close(fileno(stdout)) != 0);
21085 } else {
21086 int status;
21087 struct stat st;
21089 while (wait(&status) != child)
21091 return (
21092 /* Was there some problem with vforking? */
21093 child < 0
21095 /* Did the child fail? (This shouldn't happen.) */
21096 || status
21098 /* Did the vfork/compiler bug occur? */
21099 || parent != getpid()
21101 /* Did the file descriptor bug occur? */
21102 || fstat(fileno(stdout), &st) != 0
21106 _ACEOF
21107 if ac_fn_c_try_run "$LINENO"; then :
21108 ac_cv_func_vfork_works=yes
21109 else
21110 ac_cv_func_vfork_works=no
21112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21113 conftest.$ac_objext conftest.beam conftest.$ac_ext
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21118 $as_echo "$ac_cv_func_vfork_works" >&6; }
21121 if test "x$ac_cv_func_fork_works" = xcross; then
21122 ac_cv_func_vfork_works=$ac_cv_func_vfork
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21124 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21127 if test "x$ac_cv_func_vfork_works" = xyes; then
21129 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21131 else
21133 $as_echo "#define vfork fork" >>confdefs.h
21136 if test "x$ac_cv_func_fork_works" = xyes; then
21138 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21142 for ac_func in strchr \
21143 memcpy \
21144 strtol \
21145 strtoul \
21146 select \
21147 poll \
21148 qsort \
21149 getuid \
21150 getpwuid \
21151 getpwnam \
21152 gettimeofday \
21153 tmpfile \
21154 uname \
21155 rename \
21156 read \
21157 signal \
21158 setjmp \
21159 chown \
21160 wait4 \
21161 waitpid \
21162 wait \
21163 srandom \
21164 popen \
21165 pclose \
21166 fsync \
21167 truncate \
21168 listen \
21169 wcwidth \
21170 mbstowcs \
21171 wcrtomb \
21172 putenv \
21173 setenv
21174 do :
21175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21177 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21178 cat >>confdefs.h <<_ACEOF
21179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21180 _ACEOF
21183 done
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21187 $as_echo_n "checking for library containing gethostname... " >&6; }
21188 if ${ac_cv_search_gethostname+:} false; then :
21189 $as_echo_n "(cached) " >&6
21190 else
21191 ac_func_search_save_LIBS=$LIBS
21192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h. */
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char gethostname ();
21203 main ()
21205 return gethostname ();
21207 return 0;
21209 _ACEOF
21210 for ac_lib in '' nsl; do
21211 if test -z "$ac_lib"; then
21212 ac_res="none required"
21213 else
21214 ac_res=-l$ac_lib
21215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21217 if ac_fn_c_try_link "$LINENO"; then :
21218 ac_cv_search_gethostname=$ac_res
21220 rm -f core conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext
21222 if ${ac_cv_search_gethostname+:} false; then :
21223 break
21225 done
21226 if ${ac_cv_search_gethostname+:} false; then :
21228 else
21229 ac_cv_search_gethostname=no
21231 rm conftest.$ac_ext
21232 LIBS=$ac_func_search_save_LIBS
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21235 $as_echo "$ac_cv_search_gethostname" >&6; }
21236 ac_res=$ac_cv_search_gethostname
21237 if test "$ac_res" != no; then :
21238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21244 $as_echo_n "checking for library containing socket... " >&6; }
21245 if ${ac_cv_search_socket+:} false; then :
21246 $as_echo_n "(cached) " >&6
21247 else
21248 ac_func_search_save_LIBS=$LIBS
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21252 /* Override any GCC internal prototype to avoid an error.
21253 Use char because int might match the return type of a GCC
21254 builtin and then its argument prototype would still apply. */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char socket ();
21260 main ()
21262 return socket ();
21264 return 0;
21266 _ACEOF
21267 for ac_lib in '' socket; do
21268 if test -z "$ac_lib"; then
21269 ac_res="none required"
21270 else
21271 ac_res=-l$ac_lib
21272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21274 if ac_fn_c_try_link "$LINENO"; then :
21275 ac_cv_search_socket=$ac_res
21277 rm -f core conftest.err conftest.$ac_objext \
21278 conftest$ac_exeext
21279 if ${ac_cv_search_socket+:} false; then :
21280 break
21282 done
21283 if ${ac_cv_search_socket+:} false; then :
21285 else
21286 ac_cv_search_socket=no
21288 rm conftest.$ac_ext
21289 LIBS=$ac_func_search_save_LIBS
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21292 $as_echo "$ac_cv_search_socket" >&6; }
21293 ac_res=$ac_cv_search_socket
21294 if test "$ac_res" != no; then :
21295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21297 else
21299 WEB_BUILD=
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21305 $as_echo_n "checking for library containing bind... " >&6; }
21306 if ${ac_cv_search_bind+:} false; then :
21307 $as_echo_n "(cached) " >&6
21308 else
21309 ac_func_search_save_LIBS=$LIBS
21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h. */
21313 /* Override any GCC internal prototype to avoid an error.
21314 Use char because int might match the return type of a GCC
21315 builtin and then its argument prototype would still apply. */
21316 #ifdef __cplusplus
21317 extern "C"
21318 #endif
21319 char bind ();
21321 main ()
21323 return bind ();
21325 return 0;
21327 _ACEOF
21328 for ac_lib in '' bind; do
21329 if test -z "$ac_lib"; then
21330 ac_res="none required"
21331 else
21332 ac_res=-l$ac_lib
21333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21335 if ac_fn_c_try_link "$LINENO"; then :
21336 ac_cv_search_bind=$ac_res
21338 rm -f core conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext
21340 if ${ac_cv_search_bind+:} false; then :
21341 break
21343 done
21344 if ${ac_cv_search_bind+:} false; then :
21346 else
21347 ac_cv_search_bind=no
21349 rm conftest.$ac_ext
21350 LIBS=$ac_func_search_save_LIBS
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21353 $as_echo "$ac_cv_search_bind" >&6; }
21354 ac_res=$ac_cv_search_bind
21355 if test "$ac_res" != no; then :
21356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21358 else
21360 WEB_BUILD=
21365 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21366 do :
21367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21368 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21369 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21370 cat >>confdefs.h <<_ACEOF
21371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21372 _ACEOF
21375 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21378 else
21380 for ac_func in sigset sigrelse
21381 do :
21382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21385 cat >>confdefs.h <<_ACEOF
21386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21387 _ACEOF
21390 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21394 done
21398 done
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21402 $as_echo_n "checking for library containing syslog... " >&6; }
21403 if ${ac_cv_search_syslog+:} false; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 ac_func_search_save_LIBS=$LIBS
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char syslog ();
21418 main ()
21420 return syslog ();
21422 return 0;
21424 _ACEOF
21425 for ac_lib in '' bsd socket inet; do
21426 if test -z "$ac_lib"; then
21427 ac_res="none required"
21428 else
21429 ac_res=-l$ac_lib
21430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21432 if ac_fn_c_try_link "$LINENO"; then :
21433 ac_cv_search_syslog=$ac_res
21435 rm -f core conftest.err conftest.$ac_objext \
21436 conftest$ac_exeext
21437 if ${ac_cv_search_syslog+:} false; then :
21438 break
21440 done
21441 if ${ac_cv_search_syslog+:} false; then :
21443 else
21444 ac_cv_search_syslog=no
21446 rm conftest.$ac_ext
21447 LIBS=$ac_func_search_save_LIBS
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21450 $as_echo "$ac_cv_search_syslog" >&6; }
21451 ac_res=$ac_cv_search_syslog
21452 if test "$ac_res" != no; then :
21453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21456 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21463 if test -n "$alpine_with_local_maildir" ; then
21464 alpine_local_maildir=$alpine_with_local_maildir
21465 elif test -d /var/spool/mail ; then
21466 alpine_local_maildir="/var/spool/mail"
21467 elif test -d /var/mail ; then
21468 alpine_local_maildir="/var/mail"
21469 else
21470 alpine_local_maildir="/usr/spool/mail"
21473 if test -n "$alpine_with_c_client_target" ; then
21474 alpine_c_client_target=$alpine_with_c_client_target
21478 cat >>confdefs.h <<_ACEOF
21479 #define SYSTYPE "$systype"
21480 _ACEOF
21483 cat >>confdefs.h <<_ACEOF
21484 #define C_FILESEP '$alpine_path_delim'
21485 _ACEOF
21488 cat >>confdefs.h <<_ACEOF
21489 #define S_FILESEP "$alpine_path_delim"
21490 _ACEOF
21493 cat >>confdefs.h <<_ACEOF
21494 #define MAILDIR "$alpine_local_maildir"
21495 _ACEOF
21498 cat >>confdefs.h <<_ACEOF
21499 #define MODE_READONLY $alpine_mode_readonly
21500 _ACEOF
21503 C_CLIENT_TARGET=$alpine_c_client_target
21505 C_CLIENT_WITH_IPV6=$c_client_ip6
21507 if test "x$alpine_SSLTYPE" = "xnone" ; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21509 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21510 c_client_specials="${c_client_specials}SSLTYPE=none "
21511 else
21513 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21514 certdir="$alpine_SSLCERTS"
21515 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21516 certdir="${alpine_SSLDIR}/certs"
21517 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21518 certdir="${alpine_SSLDIR}/ssl/certs"
21519 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21520 certdir="$alpine_SSLCERTS_ORIG"
21521 elif test -n "$alpine_SSLCERTS" ; then
21522 certdir="$alpine_SSLCERTS"
21523 else
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21525 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21528 if test "x$with_smime" != "xno" ; then
21529 if test -n "$certdir" ; then
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21531 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21533 $as_echo "#define SMIME /**/" >>confdefs.h
21536 cat >>confdefs.h <<_ACEOF
21537 #define SMIME_SSLCERTS "$certdir"
21538 _ACEOF
21544 SSL_CERT_LINK="no"
21545 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21546 SSL_BUNDLE_EXISTS="no"
21547 SSL_PEM="factory.pem ca-bundle.pem"
21548 for SSL_BUNDLE in $SSL_PEM
21550 if test -f ${certdir}/${SSL_BUNDLE} ; then
21551 SSL_BUNDLE_EXISTS="yes"
21553 done
21554 else
21555 SSL_CERT_LINK="yes"
21558 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21560 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21562 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21564 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21566 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21569 if test -n "$alpine_SSLINCLUDE" ; then
21570 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21573 if test -n "$alpine_SSLLIB" ; then
21574 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21577 if test -n "$alpine_SSLDIR" ; then
21578 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21581 if test -n "$certdir" ; then
21582 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21585 if test -n "$alpine_SSLKEYS" ; then
21586 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21590 if test "x$alpine_GSSTYPE" != "xnone" ; then
21591 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21593 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21596 if test -n "$CPPFLAGS" ; then
21597 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21599 if test -n "$CFLAGS" ; then
21600 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21603 if test -n "$alpine_c_client_cflags" ; then
21604 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21608 if test -n "$LDFLAGS" ; then
21609 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21611 if test -n "$LIBS" ; then
21612 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21615 if test -n "$alpine_c_client_ldflags" ; then
21616 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21620 if test -n "$alpine_c_client_gccoptlevel" ; then
21621 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21625 C_CLIENT_SPECIALS=$c_client_specials
21628 if test -z "$WEB_BUILD" ; then
21629 WEB_PUBCOOKIE_BUILD=
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21631 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21633 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21634 else
21635 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21636 if test "x$alpine_GSSTYPE" = "xnone" ; then
21637 WEB_PUBCOOKIE_BUILD=
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21639 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21641 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21642 elif test -z "$WEB_BINDIR" ; then
21643 WEB_PUBCOOKIE_BUILD=
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21645 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21646 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21647 Please re-run configure with these options:
21648 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21649 else
21651 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21653 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21654 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21670 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"
21672 cat >confcache <<\_ACEOF
21673 # This file is a shell script that caches the results of configure
21674 # tests run on this system so they can be shared between configure
21675 # scripts and configure runs, see configure's option --config-cache.
21676 # It is not useful on other systems. If it contains results you don't
21677 # want to keep, you may remove or edit it.
21679 # config.status only pays attention to the cache file if you give it
21680 # the --recheck option to rerun configure.
21682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21684 # following values.
21686 _ACEOF
21688 # The following way of writing the cache mishandles newlines in values,
21689 # but we know of no workaround that is simple, portable, and efficient.
21690 # So, we kill variables containing newlines.
21691 # Ultrix sh set writes to stderr and can't be redirected directly,
21692 # and sets the high bit in the cache file unless we assign to the vars.
21694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21695 eval ac_val=\$$ac_var
21696 case $ac_val in #(
21697 *${as_nl}*)
21698 case $ac_var in #(
21699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21701 esac
21702 case $ac_var in #(
21703 _ | IFS | as_nl) ;; #(
21704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21705 *) { eval $ac_var=; unset $ac_var;} ;;
21706 esac ;;
21707 esac
21708 done
21710 (set) 2>&1 |
21711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21712 *${as_nl}ac_space=\ *)
21713 # `set' does not quote correctly, so add quotes: double-quote
21714 # substitution turns \\\\ into \\, and sed turns \\ into \.
21715 sed -n \
21716 "s/'/'\\\\''/g;
21717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21718 ;; #(
21720 # `set' quotes correctly as required by POSIX, so do not add quotes.
21721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21723 esac |
21724 sort
21726 sed '
21727 /^ac_cv_env_/b end
21728 t clear
21729 :clear
21730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21731 t end
21732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21733 :end' >>confcache
21734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21735 if test -w "$cache_file"; then
21736 if test "x$cache_file" != "x/dev/null"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21738 $as_echo "$as_me: updating cache $cache_file" >&6;}
21739 if test ! -f "$cache_file" || test -h "$cache_file"; then
21740 cat confcache >"$cache_file"
21741 else
21742 case $cache_file in #(
21743 */* | ?:*)
21744 mv -f confcache "$cache_file"$$ &&
21745 mv -f "$cache_file"$$ "$cache_file" ;; #(
21747 mv -f confcache "$cache_file" ;;
21748 esac
21751 else
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21756 rm -f confcache
21758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21759 # Let make expand exec_prefix.
21760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21762 DEFS=-DHAVE_CONFIG_H
21764 ac_libobjs=
21765 ac_ltlibobjs=
21767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21768 # 1. Remove the extension, and $U if already installed.
21769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21770 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21772 # will be set to the directory where LIBOBJS objects are built.
21773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21775 done
21776 LIBOBJS=$ac_libobjs
21778 LTLIBOBJS=$ac_ltlibobjs
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21782 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21783 if test -n "$am_sleep_pid"; then
21784 # Hide warnings about reused PIDs.
21785 wait $am_sleep_pid 2>/dev/null
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21788 $as_echo "done" >&6; }
21789 if test -n "$EXEEXT"; then
21790 am__EXEEXT_TRUE=
21791 am__EXEEXT_FALSE='#'
21792 else
21793 am__EXEEXT_TRUE='#'
21794 am__EXEEXT_FALSE=
21797 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21798 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21802 as_fn_error $? "conditional \"AMDEP\" was never defined.
21803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21805 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21806 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21810 : "${CONFIG_STATUS=./config.status}"
21811 ac_write_fail=0
21812 ac_clean_files_save=$ac_clean_files
21813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21816 as_write_fail=0
21817 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21818 #! $SHELL
21819 # Generated by $as_me.
21820 # Run this file to recreate the current configuration.
21821 # Compiler output produced by configure, useful for debugging
21822 # configure, is in config.log if it exists.
21824 debug=false
21825 ac_cs_recheck=false
21826 ac_cs_silent=false
21828 SHELL=\${CONFIG_SHELL-$SHELL}
21829 export SHELL
21830 _ASEOF
21831 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21832 ## -------------------- ##
21833 ## M4sh Initialization. ##
21834 ## -------------------- ##
21836 # Be more Bourne compatible
21837 DUALCASE=1; export DUALCASE # for MKS sh
21838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21839 emulate sh
21840 NULLCMD=:
21841 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21842 # is contrary to our usage. Disable this feature.
21843 alias -g '${1+"$@"}'='"$@"'
21844 setopt NO_GLOB_SUBST
21845 else
21846 case `(set -o) 2>/dev/null` in #(
21847 *posix*) :
21848 set -o posix ;; #(
21849 *) :
21851 esac
21855 as_nl='
21857 export as_nl
21858 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21859 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21862 # Prefer a ksh shell builtin over an external printf program on Solaris,
21863 # but without wasting forks for bash or zsh.
21864 if test -z "$BASH_VERSION$ZSH_VERSION" \
21865 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21866 as_echo='print -r --'
21867 as_echo_n='print -rn --'
21868 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21869 as_echo='printf %s\n'
21870 as_echo_n='printf %s'
21871 else
21872 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21873 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21874 as_echo_n='/usr/ucb/echo -n'
21875 else
21876 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21877 as_echo_n_body='eval
21878 arg=$1;
21879 case $arg in #(
21880 *"$as_nl"*)
21881 expr "X$arg" : "X\\(.*\\)$as_nl";
21882 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21883 esac;
21884 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21886 export as_echo_n_body
21887 as_echo_n='sh -c $as_echo_n_body as_echo'
21889 export as_echo_body
21890 as_echo='sh -c $as_echo_body as_echo'
21893 # The user is always right.
21894 if test "${PATH_SEPARATOR+set}" != set; then
21895 PATH_SEPARATOR=:
21896 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21897 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21898 PATH_SEPARATOR=';'
21903 # IFS
21904 # We need space, tab and new line, in precisely that order. Quoting is
21905 # there to prevent editors from complaining about space-tab.
21906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21907 # splitting by setting IFS to empty value.)
21908 IFS=" "" $as_nl"
21910 # Find who we are. Look in the path if we contain no directory separator.
21911 as_myself=
21912 case $0 in #((
21913 *[\\/]* ) as_myself=$0 ;;
21914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21915 for as_dir in $PATH
21917 IFS=$as_save_IFS
21918 test -z "$as_dir" && as_dir=.
21919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21920 done
21921 IFS=$as_save_IFS
21924 esac
21925 # We did not find ourselves, most probably we were run as `sh COMMAND'
21926 # in which case we are not to be found in the path.
21927 if test "x$as_myself" = x; then
21928 as_myself=$0
21930 if test ! -f "$as_myself"; then
21931 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21932 exit 1
21935 # Unset variables that we do not need and which cause bugs (e.g. in
21936 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21937 # suppresses any "Segmentation fault" message there. '((' could
21938 # trigger a bug in pdksh 5.2.14.
21939 for as_var in BASH_ENV ENV MAIL MAILPATH
21940 do eval test x\${$as_var+set} = xset \
21941 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21942 done
21943 PS1='$ '
21944 PS2='> '
21945 PS4='+ '
21947 # NLS nuisances.
21948 LC_ALL=C
21949 export LC_ALL
21950 LANGUAGE=C
21951 export LANGUAGE
21953 # CDPATH.
21954 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21957 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21958 # ----------------------------------------
21959 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21960 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21961 # script with STATUS, using 1 if that was 0.
21962 as_fn_error ()
21964 as_status=$1; test $as_status -eq 0 && as_status=1
21965 if test "$4"; then
21966 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21967 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21969 $as_echo "$as_me: error: $2" >&2
21970 as_fn_exit $as_status
21971 } # as_fn_error
21974 # as_fn_set_status STATUS
21975 # -----------------------
21976 # Set $? to STATUS, without forking.
21977 as_fn_set_status ()
21979 return $1
21980 } # as_fn_set_status
21982 # as_fn_exit STATUS
21983 # -----------------
21984 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21985 as_fn_exit ()
21987 set +e
21988 as_fn_set_status $1
21989 exit $1
21990 } # as_fn_exit
21992 # as_fn_unset VAR
21993 # ---------------
21994 # Portably unset VAR.
21995 as_fn_unset ()
21997 { eval $1=; unset $1;}
21999 as_unset=as_fn_unset
22000 # as_fn_append VAR VALUE
22001 # ----------------------
22002 # Append the text in VALUE to the end of the definition contained in VAR. Take
22003 # advantage of any shell optimizations that allow amortized linear growth over
22004 # repeated appends, instead of the typical quadratic growth present in naive
22005 # implementations.
22006 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22007 eval 'as_fn_append ()
22009 eval $1+=\$2
22011 else
22012 as_fn_append ()
22014 eval $1=\$$1\$2
22016 fi # as_fn_append
22018 # as_fn_arith ARG...
22019 # ------------------
22020 # Perform arithmetic evaluation on the ARGs, and store the result in the
22021 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22022 # must be portable across $(()) and expr.
22023 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22024 eval 'as_fn_arith ()
22026 as_val=$(( $* ))
22028 else
22029 as_fn_arith ()
22031 as_val=`expr "$@" || test $? -eq 1`
22033 fi # as_fn_arith
22036 if expr a : '\(a\)' >/dev/null 2>&1 &&
22037 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22038 as_expr=expr
22039 else
22040 as_expr=false
22043 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22044 as_basename=basename
22045 else
22046 as_basename=false
22049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22050 as_dirname=dirname
22051 else
22052 as_dirname=false
22055 as_me=`$as_basename -- "$0" ||
22056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22057 X"$0" : 'X\(//\)$' \| \
22058 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22059 $as_echo X/"$0" |
22060 sed '/^.*\/\([^/][^/]*\)\/*$/{
22061 s//\1/
22064 /^X\/\(\/\/\)$/{
22065 s//\1/
22068 /^X\/\(\/\).*/{
22069 s//\1/
22072 s/.*/./; q'`
22074 # Avoid depending upon Character Ranges.
22075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22078 as_cr_digits='0123456789'
22079 as_cr_alnum=$as_cr_Letters$as_cr_digits
22081 ECHO_C= ECHO_N= ECHO_T=
22082 case `echo -n x` in #(((((
22083 -n*)
22084 case `echo 'xy\c'` in
22085 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22086 xy) ECHO_C='\c';;
22087 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22088 ECHO_T=' ';;
22089 esac;;
22091 ECHO_N='-n';;
22092 esac
22094 rm -f conf$$ conf$$.exe conf$$.file
22095 if test -d conf$$.dir; then
22096 rm -f conf$$.dir/conf$$.file
22097 else
22098 rm -f conf$$.dir
22099 mkdir conf$$.dir 2>/dev/null
22101 if (echo >conf$$.file) 2>/dev/null; then
22102 if ln -s conf$$.file conf$$ 2>/dev/null; then
22103 as_ln_s='ln -s'
22104 # ... but there are two gotchas:
22105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22107 # In both cases, we have to default to `cp -pR'.
22108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22109 as_ln_s='cp -pR'
22110 elif ln conf$$.file conf$$ 2>/dev/null; then
22111 as_ln_s=ln
22112 else
22113 as_ln_s='cp -pR'
22115 else
22116 as_ln_s='cp -pR'
22118 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22119 rmdir conf$$.dir 2>/dev/null
22122 # as_fn_mkdir_p
22123 # -------------
22124 # Create "$as_dir" as a directory, including parents if necessary.
22125 as_fn_mkdir_p ()
22128 case $as_dir in #(
22129 -*) as_dir=./$as_dir;;
22130 esac
22131 test -d "$as_dir" || eval $as_mkdir_p || {
22132 as_dirs=
22133 while :; do
22134 case $as_dir in #(
22135 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22136 *) as_qdir=$as_dir;;
22137 esac
22138 as_dirs="'$as_qdir' $as_dirs"
22139 as_dir=`$as_dirname -- "$as_dir" ||
22140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22141 X"$as_dir" : 'X\(//\)[^/]' \| \
22142 X"$as_dir" : 'X\(//\)$' \| \
22143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22144 $as_echo X"$as_dir" |
22145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22146 s//\1/
22149 /^X\(\/\/\)[^/].*/{
22150 s//\1/
22153 /^X\(\/\/\)$/{
22154 s//\1/
22157 /^X\(\/\).*/{
22158 s//\1/
22161 s/.*/./; q'`
22162 test -d "$as_dir" && break
22163 done
22164 test -z "$as_dirs" || eval "mkdir $as_dirs"
22165 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22168 } # as_fn_mkdir_p
22169 if mkdir -p . 2>/dev/null; then
22170 as_mkdir_p='mkdir -p "$as_dir"'
22171 else
22172 test -d ./-p && rmdir ./-p
22173 as_mkdir_p=false
22177 # as_fn_executable_p FILE
22178 # -----------------------
22179 # Test if FILE is an executable regular file.
22180 as_fn_executable_p ()
22182 test -f "$1" && test -x "$1"
22183 } # as_fn_executable_p
22184 as_test_x='test -x'
22185 as_executable_p=as_fn_executable_p
22187 # Sed expression to map a string onto a valid CPP name.
22188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22190 # Sed expression to map a string onto a valid variable name.
22191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22194 exec 6>&1
22195 ## ----------------------------------- ##
22196 ## Main body of $CONFIG_STATUS script. ##
22197 ## ----------------------------------- ##
22198 _ASEOF
22199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202 # Save the log message, to keep $0 and so on meaningful, and to
22203 # report actual input values of CONFIG_FILES etc. instead of their
22204 # values after options handling.
22205 ac_log="
22206 This file was extended by alpine $as_me 2.20.999, which was
22207 generated by GNU Autoconf 2.69. Invocation command line was
22209 CONFIG_FILES = $CONFIG_FILES
22210 CONFIG_HEADERS = $CONFIG_HEADERS
22211 CONFIG_LINKS = $CONFIG_LINKS
22212 CONFIG_COMMANDS = $CONFIG_COMMANDS
22213 $ $0 $@
22215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22218 _ACEOF
22220 case $ac_config_files in *"
22221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22222 esac
22224 case $ac_config_headers in *"
22225 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22226 esac
22229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22230 # Files that config.status was made for.
22231 config_files="$ac_config_files"
22232 config_headers="$ac_config_headers"
22233 config_commands="$ac_config_commands"
22235 _ACEOF
22237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22238 ac_cs_usage="\
22239 \`$as_me' instantiates files and other configuration actions
22240 from templates according to the current configuration. Unless the files
22241 and actions are specified as TAGs, all are instantiated by default.
22243 Usage: $0 [OPTION]... [TAG]...
22245 -h, --help print this help, then exit
22246 -V, --version print version number and configuration settings, then exit
22247 --config print configuration, then exit
22248 -q, --quiet, --silent
22249 do not print progress messages
22250 -d, --debug don't remove temporary files
22251 --recheck update $as_me by reconfiguring in the same conditions
22252 --file=FILE[:TEMPLATE]
22253 instantiate the configuration file FILE
22254 --header=FILE[:TEMPLATE]
22255 instantiate the configuration header FILE
22257 Configuration files:
22258 $config_files
22260 Configuration headers:
22261 $config_headers
22263 Configuration commands:
22264 $config_commands
22266 Report bugs to <chappa@washington.edu>."
22268 _ACEOF
22269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22271 ac_cs_version="\\
22272 alpine config.status 2.20.999
22273 configured by $0, generated by GNU Autoconf 2.69,
22274 with options \\"\$ac_cs_config\\"
22276 Copyright (C) 2012 Free Software Foundation, Inc.
22277 This config.status script is free software; the Free Software Foundation
22278 gives unlimited permission to copy, distribute and modify it."
22280 ac_pwd='$ac_pwd'
22281 srcdir='$srcdir'
22282 INSTALL='$INSTALL'
22283 MKDIR_P='$MKDIR_P'
22284 AWK='$AWK'
22285 test -n "\$AWK" || AWK=awk
22286 _ACEOF
22288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22289 # The default lists apply if the user does not specify any file.
22290 ac_need_defaults=:
22291 while test $# != 0
22293 case $1 in
22294 --*=?*)
22295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22297 ac_shift=:
22299 --*=)
22300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22301 ac_optarg=
22302 ac_shift=:
22305 ac_option=$1
22306 ac_optarg=$2
22307 ac_shift=shift
22309 esac
22311 case $ac_option in
22312 # Handling of the options.
22313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22314 ac_cs_recheck=: ;;
22315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22316 $as_echo "$ac_cs_version"; exit ;;
22317 --config | --confi | --conf | --con | --co | --c )
22318 $as_echo "$ac_cs_config"; exit ;;
22319 --debug | --debu | --deb | --de | --d | -d )
22320 debug=: ;;
22321 --file | --fil | --fi | --f )
22322 $ac_shift
22323 case $ac_optarg in
22324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22325 '') as_fn_error $? "missing file argument" ;;
22326 esac
22327 as_fn_append CONFIG_FILES " '$ac_optarg'"
22328 ac_need_defaults=false;;
22329 --header | --heade | --head | --hea )
22330 $ac_shift
22331 case $ac_optarg in
22332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22333 esac
22334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22335 ac_need_defaults=false;;
22336 --he | --h)
22337 # Conflict between --help and --header
22338 as_fn_error $? "ambiguous option: \`$1'
22339 Try \`$0 --help' for more information.";;
22340 --help | --hel | -h )
22341 $as_echo "$ac_cs_usage"; exit ;;
22342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22344 ac_cs_silent=: ;;
22346 # This is an error.
22347 -*) as_fn_error $? "unrecognized option: \`$1'
22348 Try \`$0 --help' for more information." ;;
22350 *) as_fn_append ac_config_targets " $1"
22351 ac_need_defaults=false ;;
22353 esac
22354 shift
22355 done
22357 ac_configure_extra_args=
22359 if $ac_cs_silent; then
22360 exec 6>/dev/null
22361 ac_configure_extra_args="$ac_configure_extra_args --silent"
22364 _ACEOF
22365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22366 if \$ac_cs_recheck; then
22367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22368 shift
22369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22370 CONFIG_SHELL='$SHELL'
22371 export CONFIG_SHELL
22372 exec "\$@"
22375 _ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22377 exec 5>>config.log
22379 echo
22380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22381 ## Running $as_me. ##
22382 _ASBOX
22383 $as_echo "$ac_log"
22384 } >&5
22386 _ACEOF
22387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22389 # INIT-COMMANDS
22391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22394 # The HP-UX ksh and POSIX shell print the target directory to stdout
22395 # if CDPATH is set.
22396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22398 sed_quote_subst='$sed_quote_subst'
22399 double_quote_subst='$double_quote_subst'
22400 delay_variable_subst='$delay_variable_subst'
22401 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22402 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22403 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22404 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22405 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22406 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22407 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22408 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22409 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22410 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22411 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22412 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22413 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22414 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22415 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22416 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22417 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22418 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22419 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22420 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22421 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22422 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22423 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22424 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22425 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22426 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22427 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22428 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22429 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22430 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22431 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22432 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22433 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22434 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22435 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22436 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22437 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22438 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22439 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22440 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22441 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22442 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22443 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22444 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22445 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22446 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22447 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22448 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22449 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22450 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22451 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22452 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22453 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22454 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22455 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22456 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22457 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22458 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22459 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"`'
22460 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22461 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22462 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22463 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22464 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22465 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22466 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22467 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22468 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22469 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22470 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22471 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22472 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22473 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22474 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22475 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22476 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22477 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22478 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22479 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22480 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22481 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22482 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22483 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22484 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22485 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22486 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22487 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22488 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22489 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22490 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22491 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22492 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22493 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22494 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22495 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22496 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22497 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22498 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22499 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22500 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22501 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22502 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22503 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22504 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22505 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22506 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22507 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22508 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22509 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22510 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22511 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22512 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22513 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22514 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22515 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22516 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22517 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22518 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22519 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22520 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22521 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22522 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22523 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22524 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22525 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22526 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22527 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22528 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22529 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22530 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22531 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22532 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22533 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22534 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22535 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22537 LTCC='$LTCC'
22538 LTCFLAGS='$LTCFLAGS'
22539 compiler='$compiler_DEFAULT'
22541 # A function that is used when there is no print builtin or printf.
22542 func_fallback_echo ()
22544 eval 'cat <<_LTECHO_EOF
22546 _LTECHO_EOF'
22549 # Quote evaled strings.
22550 for var in SHELL \
22551 ECHO \
22552 PATH_SEPARATOR \
22553 SED \
22554 GREP \
22555 EGREP \
22556 FGREP \
22557 LD \
22558 NM \
22559 LN_S \
22560 lt_SP2NL \
22561 lt_NL2SP \
22562 reload_flag \
22563 OBJDUMP \
22564 deplibs_check_method \
22565 file_magic_cmd \
22566 file_magic_glob \
22567 want_nocaseglob \
22568 DLLTOOL \
22569 sharedlib_from_linklib_cmd \
22570 AR \
22571 AR_FLAGS \
22572 archiver_list_spec \
22573 STRIP \
22574 RANLIB \
22575 CC \
22576 CFLAGS \
22577 compiler \
22578 lt_cv_sys_global_symbol_pipe \
22579 lt_cv_sys_global_symbol_to_cdecl \
22580 lt_cv_sys_global_symbol_to_import \
22581 lt_cv_sys_global_symbol_to_c_name_address \
22582 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22583 lt_cv_nm_interface \
22584 nm_file_list_spec \
22585 lt_cv_truncate_bin \
22586 lt_prog_compiler_no_builtin_flag \
22587 lt_prog_compiler_pic \
22588 lt_prog_compiler_wl \
22589 lt_prog_compiler_static \
22590 lt_cv_prog_compiler_c_o \
22591 need_locks \
22592 MANIFEST_TOOL \
22593 DSYMUTIL \
22594 NMEDIT \
22595 LIPO \
22596 OTOOL \
22597 OTOOL64 \
22598 shrext_cmds \
22599 export_dynamic_flag_spec \
22600 whole_archive_flag_spec \
22601 compiler_needs_object \
22602 with_gnu_ld \
22603 allow_undefined_flag \
22604 no_undefined_flag \
22605 hardcode_libdir_flag_spec \
22606 hardcode_libdir_separator \
22607 exclude_expsyms \
22608 include_expsyms \
22609 file_list_spec \
22610 variables_saved_for_relink \
22611 libname_spec \
22612 library_names_spec \
22613 soname_spec \
22614 install_override_mode \
22615 finish_eval \
22616 old_striplib \
22617 striplib; do
22618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22619 *[\\\\\\\`\\"\\\$]*)
22620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22625 esac
22626 done
22628 # Double-quote double-evaled strings.
22629 for var in reload_cmds \
22630 old_postinstall_cmds \
22631 old_postuninstall_cmds \
22632 old_archive_cmds \
22633 extract_expsyms_cmds \
22634 old_archive_from_new_cmds \
22635 old_archive_from_expsyms_cmds \
22636 archive_cmds \
22637 archive_expsym_cmds \
22638 module_cmds \
22639 module_expsym_cmds \
22640 export_symbols_cmds \
22641 prelink_cmds \
22642 postlink_cmds \
22643 postinstall_cmds \
22644 postuninstall_cmds \
22645 finish_cmds \
22646 sys_lib_search_path_spec \
22647 configure_time_dlsearch_path \
22648 configure_time_lt_sys_library_path; do
22649 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22650 *[\\\\\\\`\\"\\\$]*)
22651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22656 esac
22657 done
22659 ac_aux_dir='$ac_aux_dir'
22661 # See if we are running on zsh, and set the options that allow our
22662 # commands through without removal of \ escapes INIT.
22663 if test -n "\${ZSH_VERSION+set}"; then
22664 setopt NO_GLOB_SUBST
22668 PACKAGE='$PACKAGE'
22669 VERSION='$VERSION'
22670 RM='$RM'
22671 ofile='$ofile'
22675 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22676 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22677 # from automake < 1.5.
22678 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22679 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22680 LINGUAS="${LINGUAS-%UNSET%}"
22683 _ACEOF
22685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22687 # Handling of arguments.
22688 for ac_config_target in $ac_config_targets
22690 case $ac_config_target in
22691 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22692 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22693 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22694 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22695 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22696 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22697 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22698 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22699 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22700 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22701 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22702 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22703 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22704 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22705 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22706 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22707 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22708 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22711 esac
22712 done
22715 # If the user did not use the arguments to specify the items to instantiate,
22716 # then the envvar interface is used. Set only those that are not.
22717 # We use the long form for the default assignment because of an extremely
22718 # bizarre bug on SunOS 4.1.3.
22719 if $ac_need_defaults; then
22720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22725 # Have a temporary directory for convenience. Make it in the build tree
22726 # simply because there is no reason against having it here, and in addition,
22727 # creating and moving files from /tmp can sometimes cause problems.
22728 # Hook for its removal unless debugging.
22729 # Note that there is a small window in which the directory will not be cleaned:
22730 # after its creation but before its name has been assigned to `$tmp'.
22731 $debug ||
22733 tmp= ac_tmp=
22734 trap 'exit_status=$?
22735 : "${ac_tmp:=$tmp}"
22736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22738 trap 'as_fn_exit 1' 1 2 13 15
22740 # Create a (secure) tmp directory for tmp files.
22743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22744 test -d "$tmp"
22745 } ||
22747 tmp=./conf$$-$RANDOM
22748 (umask 077 && mkdir "$tmp")
22749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22750 ac_tmp=$tmp
22752 # Set up the scripts for CONFIG_FILES section.
22753 # No need to generate them if there are no CONFIG_FILES.
22754 # This happens for instance with `./config.status config.h'.
22755 if test -n "$CONFIG_FILES"; then
22758 ac_cr=`echo X | tr X '\015'`
22759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22760 # But we know of no other shell where ac_cr would be empty at this
22761 # point, so we can use a bashism as a fallback.
22762 if test "x$ac_cr" = x; then
22763 eval ac_cr=\$\'\\r\'
22765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22767 ac_cs_awk_cr='\\r'
22768 else
22769 ac_cs_awk_cr=$ac_cr
22772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22773 _ACEOF
22777 echo "cat >conf$$subs.awk <<_ACEOF" &&
22778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22779 echo "_ACEOF"
22780 } >conf$$subs.sh ||
22781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22783 ac_delim='%!_!# '
22784 for ac_last_try in false false false false false :; do
22785 . ./conf$$subs.sh ||
22786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22789 if test $ac_delim_n = $ac_delim_num; then
22790 break
22791 elif $ac_last_try; then
22792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22793 else
22794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22796 done
22797 rm -f conf$$subs.sh
22799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22801 _ACEOF
22802 sed -n '
22804 s/^/S["/; s/!.*/"]=/
22807 s/^[^!]*!//
22808 :repl
22809 t repl
22810 s/'"$ac_delim"'$//
22811 t delim
22814 s/\(.\{148\}\)..*/\1/
22815 t more1
22816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22819 b repl
22820 :more1
22821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22824 s/.\{148\}//
22825 t nl
22826 :delim
22828 s/\(.\{148\}\)..*/\1/
22829 t more2
22830 s/["\\]/\\&/g; s/^/"/; s/$/"/
22833 :more2
22834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22837 s/.\{148\}//
22838 t delim
22839 ' <conf$$subs.awk | sed '
22840 /^[^""]/{
22842 s/\n//
22844 ' >>$CONFIG_STATUS || ac_write_fail=1
22845 rm -f conf$$subs.awk
22846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22847 _ACAWK
22848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22849 for (key in S) S_is_set[key] = 1
22850 FS = "\a"
22854 line = $ 0
22855 nfields = split(line, field, "@")
22856 substed = 0
22857 len = length(field[1])
22858 for (i = 2; i < nfields; i++) {
22859 key = field[i]
22860 keylen = length(key)
22861 if (S_is_set[key]) {
22862 value = S[key]
22863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22864 len += length(value) + length(field[++i])
22865 substed = 1
22866 } else
22867 len += 1 + keylen
22870 print line
22873 _ACAWK
22874 _ACEOF
22875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22878 else
22880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22882 _ACEOF
22884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22886 # trailing colons and then remove the whole line if VPATH becomes empty
22887 # (actually we leave an empty line to preserve line numbers).
22888 if test "x$srcdir" = x.; then
22889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22891 s///
22892 s/^/:/
22893 s/[ ]*$/:/
22894 s/:\$(srcdir):/:/g
22895 s/:\${srcdir}:/:/g
22896 s/:@srcdir@:/:/g
22897 s/^:*//
22898 s/:*$//
22900 s/\(=[ ]*\).*/\1/
22902 s/\n//
22903 s/^[^=]*=[ ]*$//
22907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22908 fi # test -n "$CONFIG_FILES"
22910 # Set up the scripts for CONFIG_HEADERS section.
22911 # No need to generate them if there are no CONFIG_HEADERS.
22912 # This happens for instance with `./config.status Makefile'.
22913 if test -n "$CONFIG_HEADERS"; then
22914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22915 BEGIN {
22916 _ACEOF
22918 # Transform confdefs.h into an awk script `defines.awk', embedded as
22919 # here-document in config.status, that substitutes the proper values into
22920 # config.h.in to produce config.h.
22922 # Create a delimiter string that does not exist in confdefs.h, to ease
22923 # handling of long lines.
22924 ac_delim='%!_!# '
22925 for ac_last_try in false false :; do
22926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22927 if test -z "$ac_tt"; then
22928 break
22929 elif $ac_last_try; then
22930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22931 else
22932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22934 done
22936 # For the awk script, D is an array of macro values keyed by name,
22937 # likewise P contains macro parameters if any. Preserve backslash
22938 # newline sequences.
22940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22941 sed -n '
22942 s/.\{148\}/&'"$ac_delim"'/g
22943 t rset
22944 :rset
22945 s/^[ ]*#[ ]*define[ ][ ]*/ /
22946 t def
22948 :def
22949 s/\\$//
22950 t bsnl
22951 s/["\\]/\\&/g
22952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22953 D["\1"]=" \3"/p
22954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22956 :bsnl
22957 s/["\\]/\\&/g
22958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22959 D["\1"]=" \3\\\\\\n"\\/p
22960 t cont
22961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22962 t cont
22964 :cont
22966 s/.\{148\}/&'"$ac_delim"'/g
22967 t clear
22968 :clear
22969 s/\\$//
22970 t bsnlc
22971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22973 :bsnlc
22974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22975 b cont
22976 ' <confdefs.h | sed '
22977 s/'"$ac_delim"'/"\\\
22978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22981 for (key in D) D_is_set[key] = 1
22982 FS = "\a"
22984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22985 line = \$ 0
22986 split(line, arg, " ")
22987 if (arg[1] == "#") {
22988 defundef = arg[2]
22989 mac1 = arg[3]
22990 } else {
22991 defundef = substr(arg[1], 2)
22992 mac1 = arg[2]
22994 split(mac1, mac2, "(") #)
22995 macro = mac2[1]
22996 prefix = substr(line, 1, index(line, defundef) - 1)
22997 if (D_is_set[macro]) {
22998 # Preserve the white space surrounding the "#".
22999 print prefix "define", macro P[macro] D[macro]
23000 next
23001 } else {
23002 # Replace #undef with comments. This is necessary, for example,
23003 # in the case of _POSIX_SOURCE, which is predefined and required
23004 # on some systems where configure will not decide to define it.
23005 if (defundef == "undef") {
23006 print "/*", prefix defundef, macro, "*/"
23007 next
23011 { print }
23012 _ACAWK
23013 _ACEOF
23014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23016 fi # test -n "$CONFIG_HEADERS"
23019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23020 shift
23021 for ac_tag
23023 case $ac_tag in
23024 :[FHLC]) ac_mode=$ac_tag; continue;;
23025 esac
23026 case $ac_mode$ac_tag in
23027 :[FHL]*:*);;
23028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23029 :[FH]-) ac_tag=-:-;;
23030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23031 esac
23032 ac_save_IFS=$IFS
23033 IFS=:
23034 set x $ac_tag
23035 IFS=$ac_save_IFS
23036 shift
23037 ac_file=$1
23038 shift
23040 case $ac_mode in
23041 :L) ac_source=$1;;
23042 :[FH])
23043 ac_file_inputs=
23044 for ac_f
23046 case $ac_f in
23047 -) ac_f="$ac_tmp/stdin";;
23048 *) # Look for the file first in the build tree, then in the source tree
23049 # (if the path is not absolute). The absolute path cannot be DOS-style,
23050 # because $ac_f cannot contain `:'.
23051 test -f "$ac_f" ||
23052 case $ac_f in
23053 [\\/$]*) false;;
23054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23055 esac ||
23056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23057 esac
23058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23059 as_fn_append ac_file_inputs " '$ac_f'"
23060 done
23062 # Let's still pretend it is `configure' which instantiates (i.e., don't
23063 # use $as_me), people would be surprised to read:
23064 # /* config.h. Generated by config.status. */
23065 configure_input='Generated from '`
23066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23067 `' by configure.'
23068 if test x"$ac_file" != x-; then
23069 configure_input="$ac_file. $configure_input"
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23071 $as_echo "$as_me: creating $ac_file" >&6;}
23073 # Neutralize special characters interpreted by sed in replacement strings.
23074 case $configure_input in #(
23075 *\&* | *\|* | *\\* )
23076 ac_sed_conf_input=`$as_echo "$configure_input" |
23077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23078 *) ac_sed_conf_input=$configure_input;;
23079 esac
23081 case $ac_tag in
23082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23084 esac
23086 esac
23088 ac_dir=`$as_dirname -- "$ac_file" ||
23089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23090 X"$ac_file" : 'X\(//\)[^/]' \| \
23091 X"$ac_file" : 'X\(//\)$' \| \
23092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23093 $as_echo X"$ac_file" |
23094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23095 s//\1/
23098 /^X\(\/\/\)[^/].*/{
23099 s//\1/
23102 /^X\(\/\/\)$/{
23103 s//\1/
23106 /^X\(\/\).*/{
23107 s//\1/
23110 s/.*/./; q'`
23111 as_dir="$ac_dir"; as_fn_mkdir_p
23112 ac_builddir=.
23114 case "$ac_dir" in
23115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23118 # A ".." for each directory in $ac_dir_suffix.
23119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23120 case $ac_top_builddir_sub in
23121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23123 esac ;;
23124 esac
23125 ac_abs_top_builddir=$ac_pwd
23126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23127 # for backward compatibility:
23128 ac_top_builddir=$ac_top_build_prefix
23130 case $srcdir in
23131 .) # We are building in place.
23132 ac_srcdir=.
23133 ac_top_srcdir=$ac_top_builddir_sub
23134 ac_abs_top_srcdir=$ac_pwd ;;
23135 [\\/]* | ?:[\\/]* ) # Absolute name.
23136 ac_srcdir=$srcdir$ac_dir_suffix;
23137 ac_top_srcdir=$srcdir
23138 ac_abs_top_srcdir=$srcdir ;;
23139 *) # Relative name.
23140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23141 ac_top_srcdir=$ac_top_build_prefix$srcdir
23142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23143 esac
23144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23147 case $ac_mode in
23150 # CONFIG_FILE
23153 case $INSTALL in
23154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23156 esac
23157 ac_MKDIR_P=$MKDIR_P
23158 case $MKDIR_P in
23159 [\\/$]* | ?:[\\/]* ) ;;
23160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23161 esac
23162 _ACEOF
23164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23165 # If the template does not know about datarootdir, expand it.
23166 # FIXME: This hack should be removed a few years after 2.60.
23167 ac_datarootdir_hack=; ac_datarootdir_seen=
23168 ac_sed_dataroot='
23169 /datarootdir/ {
23173 /@datadir@/p
23174 /@docdir@/p
23175 /@infodir@/p
23176 /@localedir@/p
23177 /@mandir@/p'
23178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23179 *datarootdir*) ac_datarootdir_seen=yes;;
23180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23183 _ACEOF
23184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23185 ac_datarootdir_hack='
23186 s&@datadir@&$datadir&g
23187 s&@docdir@&$docdir&g
23188 s&@infodir@&$infodir&g
23189 s&@localedir@&$localedir&g
23190 s&@mandir@&$mandir&g
23191 s&\\\${datarootdir}&$datarootdir&g' ;;
23192 esac
23193 _ACEOF
23195 # Neutralize VPATH when `$srcdir' = `.'.
23196 # Shell code in configure.ac might set extrasub.
23197 # FIXME: do we really want to maintain this feature?
23198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23199 ac_sed_extra="$ac_vpsub
23200 $extrasub
23201 _ACEOF
23202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23205 s|@configure_input@|$ac_sed_conf_input|;t t
23206 s&@top_builddir@&$ac_top_builddir_sub&;t t
23207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23208 s&@srcdir@&$ac_srcdir&;t t
23209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23210 s&@top_srcdir@&$ac_top_srcdir&;t t
23211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23212 s&@builddir@&$ac_builddir&;t t
23213 s&@abs_builddir@&$ac_abs_builddir&;t t
23214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23215 s&@INSTALL@&$ac_INSTALL&;t t
23216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23217 $ac_datarootdir_hack
23219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23227 which seems to be undefined. Please make sure it is defined" >&5
23228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23229 which seems to be undefined. Please make sure it is defined" >&2;}
23231 rm -f "$ac_tmp/stdin"
23232 case $ac_file in
23233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23235 esac \
23236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23240 # CONFIG_HEADER
23242 if test x"$ac_file" != x-; then
23244 $as_echo "/* $configure_input */" \
23245 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23246 } >"$ac_tmp/config.h" \
23247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23248 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23251 else
23252 rm -f "$ac_file"
23253 mv "$ac_tmp/config.h" "$ac_file" \
23254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23256 else
23257 $as_echo "/* $configure_input */" \
23258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23259 || as_fn_error $? "could not create -" "$LINENO" 5
23261 # Compute "$ac_file"'s index in $config_headers.
23262 _am_arg="$ac_file"
23263 _am_stamp_count=1
23264 for _am_header in $config_headers :; do
23265 case $_am_header in
23266 $_am_arg | $_am_arg:* )
23267 break ;;
23269 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23270 esac
23271 done
23272 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23273 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23274 X"$_am_arg" : 'X\(//\)[^/]' \| \
23275 X"$_am_arg" : 'X\(//\)$' \| \
23276 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23277 $as_echo X"$_am_arg" |
23278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23279 s//\1/
23282 /^X\(\/\/\)[^/].*/{
23283 s//\1/
23286 /^X\(\/\/\)$/{
23287 s//\1/
23290 /^X\(\/\).*/{
23291 s//\1/
23294 s/.*/./; q'`/stamp-h$_am_stamp_count
23297 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23298 $as_echo "$as_me: executing $ac_file commands" >&6;}
23300 esac
23303 case $ac_file$ac_mode in
23304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23305 # Older Autoconf quotes --file arguments for eval, but not when files
23306 # are listed without --file. Let's play safe and only enable the eval
23307 # if we detect the quoting.
23308 case $CONFIG_FILES in
23309 *\'*) eval set x "$CONFIG_FILES" ;;
23310 *) set x $CONFIG_FILES ;;
23311 esac
23312 shift
23313 for mf
23315 # Strip MF so we end up with the name of the file.
23316 mf=`echo "$mf" | sed -e 's/:.*$//'`
23317 # Check whether this is an Automake generated Makefile or not.
23318 # We used to match only the files named 'Makefile.in', but
23319 # some people rename them; so instead we look at the file content.
23320 # Grep'ing the first line is not enough: some people post-process
23321 # each Makefile.in and add a new line on top of each file to say so.
23322 # Grep'ing the whole file is not good either: AIX grep has a line
23323 # limit of 2048, but all sed's we know have understand at least 4000.
23324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23325 dirpart=`$as_dirname -- "$mf" ||
23326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23327 X"$mf" : 'X\(//\)[^/]' \| \
23328 X"$mf" : 'X\(//\)$' \| \
23329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23330 $as_echo X"$mf" |
23331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23332 s//\1/
23335 /^X\(\/\/\)[^/].*/{
23336 s//\1/
23339 /^X\(\/\/\)$/{
23340 s//\1/
23343 /^X\(\/\).*/{
23344 s//\1/
23347 s/.*/./; q'`
23348 else
23349 continue
23351 # Extract the definition of DEPDIR, am__include, and am__quote
23352 # from the Makefile without running 'make'.
23353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23354 test -z "$DEPDIR" && continue
23355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23356 test -z "$am__include" && continue
23357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23358 # Find all dependency output files, they are included files with
23359 # $(DEPDIR) in their names. We invoke sed twice because it is the
23360 # simplest approach to changing $(DEPDIR) to its actual value in the
23361 # expansion.
23362 for file in `sed -n "
23363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23365 # Make sure the directory exists.
23366 test -f "$dirpart/$file" && continue
23367 fdir=`$as_dirname -- "$file" ||
23368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23369 X"$file" : 'X\(//\)[^/]' \| \
23370 X"$file" : 'X\(//\)$' \| \
23371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23372 $as_echo X"$file" |
23373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23374 s//\1/
23377 /^X\(\/\/\)[^/].*/{
23378 s//\1/
23381 /^X\(\/\/\)$/{
23382 s//\1/
23385 /^X\(\/\).*/{
23386 s//\1/
23389 s/.*/./; q'`
23390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23391 # echo "creating $dirpart/$file"
23392 echo '# dummy' > "$dirpart/$file"
23393 done
23394 done
23397 "libtool":C)
23399 # See if we are running on zsh, and set the options that allow our
23400 # commands through without removal of \ escapes.
23401 if test -n "${ZSH_VERSION+set}"; then
23402 setopt NO_GLOB_SUBST
23405 cfgfile=${ofile}T
23406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23407 $RM "$cfgfile"
23409 cat <<_LT_EOF >> "$cfgfile"
23410 #! $SHELL
23411 # Generated automatically by $as_me ($PACKAGE) $VERSION
23412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23414 # Provide generalized library-building support services.
23415 # Written by Gordon Matzigkeit, 1996
23417 # Copyright (C) 2014 Free Software Foundation, Inc.
23418 # This is free software; see the source for copying conditions. There is NO
23419 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23421 # GNU Libtool is free software; you can redistribute it and/or modify
23422 # it under the terms of the GNU General Public License as published by
23423 # the Free Software Foundation; either version 2 of of the License, or
23424 # (at your option) any later version.
23426 # As a special exception to the GNU General Public License, if you
23427 # distribute this file as part of a program or library that is built
23428 # using GNU Libtool, you may include this file under the same
23429 # distribution terms that you use for the rest of that program.
23431 # GNU Libtool is distributed in the hope that it will be useful, but
23432 # WITHOUT ANY WARRANTY; without even the implied warranty of
23433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23434 # GNU General Public License for more details.
23436 # You should have received a copy of the GNU General Public License
23437 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23440 # The names of the tagged configurations supported by this script.
23441 available_tags=''
23443 # Configured defaults for sys_lib_dlsearch_path munging.
23444 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23446 # ### BEGIN LIBTOOL CONFIG
23448 # Which release of libtool.m4 was used?
23449 macro_version=$macro_version
23450 macro_revision=$macro_revision
23452 # Whether or not to build shared libraries.
23453 build_libtool_libs=$enable_shared
23455 # Whether or not to build static libraries.
23456 build_old_libs=$enable_static
23458 # What type of objects to build.
23459 pic_mode=$pic_mode
23461 # Whether or not to optimize for fast installation.
23462 fast_install=$enable_fast_install
23464 # Shared archive member basename,for filename based shared library versioning on AIX.
23465 shared_archive_member_spec=$shared_archive_member_spec
23467 # Shell to use when invoking shell scripts.
23468 SHELL=$lt_SHELL
23470 # An echo program that protects backslashes.
23471 ECHO=$lt_ECHO
23473 # The PATH separator for the build system.
23474 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23476 # The host system.
23477 host_alias=$host_alias
23478 host=$host
23479 host_os=$host_os
23481 # The build system.
23482 build_alias=$build_alias
23483 build=$build
23484 build_os=$build_os
23486 # A sed program that does not truncate output.
23487 SED=$lt_SED
23489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23490 Xsed="\$SED -e 1s/^X//"
23492 # A grep program that handles long lines.
23493 GREP=$lt_GREP
23495 # An ERE matcher.
23496 EGREP=$lt_EGREP
23498 # A literal string matcher.
23499 FGREP=$lt_FGREP
23501 # A BSD- or MS-compatible name lister.
23502 NM=$lt_NM
23504 # Whether we need soft or hard links.
23505 LN_S=$lt_LN_S
23507 # What is the maximum length of a command?
23508 max_cmd_len=$max_cmd_len
23510 # Object file suffix (normally "o").
23511 objext=$ac_objext
23513 # Executable file suffix (normally "").
23514 exeext=$exeext
23516 # whether the shell understands "unset".
23517 lt_unset=$lt_unset
23519 # turn spaces into newlines.
23520 SP2NL=$lt_lt_SP2NL
23522 # turn newlines into spaces.
23523 NL2SP=$lt_lt_NL2SP
23525 # convert \$build file names to \$host format.
23526 to_host_file_cmd=$lt_cv_to_host_file_cmd
23528 # convert \$build files to toolchain format.
23529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23531 # An object symbol dumper.
23532 OBJDUMP=$lt_OBJDUMP
23534 # Method to check whether dependent libraries are shared objects.
23535 deplibs_check_method=$lt_deplibs_check_method
23537 # Command to use when deplibs_check_method = "file_magic".
23538 file_magic_cmd=$lt_file_magic_cmd
23540 # How to find potential files when deplibs_check_method = "file_magic".
23541 file_magic_glob=$lt_file_magic_glob
23543 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23544 want_nocaseglob=$lt_want_nocaseglob
23546 # DLL creation program.
23547 DLLTOOL=$lt_DLLTOOL
23549 # Command to associate shared and link libraries.
23550 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23552 # The archiver.
23553 AR=$lt_AR
23555 # Flags to create an archive.
23556 AR_FLAGS=$lt_AR_FLAGS
23558 # How to feed a file listing to the archiver.
23559 archiver_list_spec=$lt_archiver_list_spec
23561 # A symbol stripping program.
23562 STRIP=$lt_STRIP
23564 # Commands used to install an old-style archive.
23565 RANLIB=$lt_RANLIB
23566 old_postinstall_cmds=$lt_old_postinstall_cmds
23567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23569 # Whether to use a lock for old archive extraction.
23570 lock_old_archive_extraction=$lock_old_archive_extraction
23572 # A C compiler.
23573 LTCC=$lt_CC
23575 # LTCC compiler flags.
23576 LTCFLAGS=$lt_CFLAGS
23578 # Take the output of nm and produce a listing of raw symbols and C names.
23579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23581 # Transform the output of nm in a proper C declaration.
23582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23584 # Transform the output of nm into a list of symbols to manually relocate.
23585 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23587 # Transform the output of nm in a C name address pair.
23588 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23590 # Transform the output of nm in a C name address pair when lib prefix is needed.
23591 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23593 # The name lister interface.
23594 nm_interface=$lt_lt_cv_nm_interface
23596 # Specify filename containing input files for \$NM.
23597 nm_file_list_spec=$lt_nm_file_list_spec
23599 # The root where to search for dependent libraries,and where our libraries should be installed.
23600 lt_sysroot=$lt_sysroot
23602 # Command to truncate a binary pipe.
23603 lt_truncate_bin=$lt_lt_cv_truncate_bin
23605 # The name of the directory that contains temporary libtool files.
23606 objdir=$objdir
23608 # Used to examine libraries when file_magic_cmd begins with "file".
23609 MAGIC_CMD=$MAGIC_CMD
23611 # Must we lock files when doing compilation?
23612 need_locks=$lt_need_locks
23614 # Manifest tool.
23615 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23617 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23618 DSYMUTIL=$lt_DSYMUTIL
23620 # Tool to change global to local symbols on Mac OS X.
23621 NMEDIT=$lt_NMEDIT
23623 # Tool to manipulate fat objects and archives on Mac OS X.
23624 LIPO=$lt_LIPO
23626 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23627 OTOOL=$lt_OTOOL
23629 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23630 OTOOL64=$lt_OTOOL64
23632 # Old archive suffix (normally "a").
23633 libext=$libext
23635 # Shared library suffix (normally ".so").
23636 shrext_cmds=$lt_shrext_cmds
23638 # The commands to extract the exported symbol list from a shared archive.
23639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23641 # Variables whose values should be saved in libtool wrapper scripts and
23642 # restored at link time.
23643 variables_saved_for_relink=$lt_variables_saved_for_relink
23645 # Do we need the "lib" prefix for modules?
23646 need_lib_prefix=$need_lib_prefix
23648 # Do we need a version for libraries?
23649 need_version=$need_version
23651 # Library versioning type.
23652 version_type=$version_type
23654 # Shared library runtime path variable.
23655 runpath_var=$runpath_var
23657 # Shared library path variable.
23658 shlibpath_var=$shlibpath_var
23660 # Is shlibpath searched before the hard-coded library search path?
23661 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23663 # Format of library name prefix.
23664 libname_spec=$lt_libname_spec
23666 # List of archive names. First name is the real one, the rest are links.
23667 # The last name is the one that the linker finds with -lNAME
23668 library_names_spec=$lt_library_names_spec
23670 # The coded name of the library, if different from the real name.
23671 soname_spec=$lt_soname_spec
23673 # Permission mode override for installation of shared libraries.
23674 install_override_mode=$lt_install_override_mode
23676 # Command to use after installation of a shared archive.
23677 postinstall_cmds=$lt_postinstall_cmds
23679 # Command to use after uninstallation of a shared archive.
23680 postuninstall_cmds=$lt_postuninstall_cmds
23682 # Commands used to finish a libtool library installation in a directory.
23683 finish_cmds=$lt_finish_cmds
23685 # As "finish_cmds", except a single script fragment to be evaled but
23686 # not shown.
23687 finish_eval=$lt_finish_eval
23689 # Whether we should hardcode library paths into libraries.
23690 hardcode_into_libs=$hardcode_into_libs
23692 # Compile-time system search path for libraries.
23693 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23695 # Detected run-time system search path for libraries.
23696 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23698 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23699 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23701 # Whether dlopen is supported.
23702 dlopen_support=$enable_dlopen
23704 # Whether dlopen of programs is supported.
23705 dlopen_self=$enable_dlopen_self
23707 # Whether dlopen of statically linked programs is supported.
23708 dlopen_self_static=$enable_dlopen_self_static
23710 # Commands to strip libraries.
23711 old_striplib=$lt_old_striplib
23712 striplib=$lt_striplib
23715 # The linker used to build libraries.
23716 LD=$lt_LD
23718 # How to create reloadable object files.
23719 reload_flag=$lt_reload_flag
23720 reload_cmds=$lt_reload_cmds
23722 # Commands used to build an old-style archive.
23723 old_archive_cmds=$lt_old_archive_cmds
23725 # A language specific compiler.
23726 CC=$lt_compiler
23728 # Is the compiler the GNU compiler?
23729 with_gcc=$GCC
23731 # Compiler flag to turn off builtin functions.
23732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23734 # Additional compiler flags for building library objects.
23735 pic_flag=$lt_lt_prog_compiler_pic
23737 # How to pass a linker flag through the compiler.
23738 wl=$lt_lt_prog_compiler_wl
23740 # Compiler flag to prevent dynamic linking.
23741 link_static_flag=$lt_lt_prog_compiler_static
23743 # Does compiler simultaneously support -c and -o options?
23744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23746 # Whether or not to add -lc for building shared libraries.
23747 build_libtool_need_lc=$archive_cmds_need_lc
23749 # Whether or not to disallow shared libs when runtime libs are static.
23750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23752 # Compiler flag to allow reflexive dlopens.
23753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23755 # Compiler flag to generate shared objects directly from archives.
23756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23758 # Whether the compiler copes with passing no objects directly.
23759 compiler_needs_object=$lt_compiler_needs_object
23761 # Create an old-style archive from a shared archive.
23762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23764 # Create a temporary old-style archive to link instead of a shared archive.
23765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23767 # Commands used to build a shared archive.
23768 archive_cmds=$lt_archive_cmds
23769 archive_expsym_cmds=$lt_archive_expsym_cmds
23771 # Commands used to build a loadable module if different from building
23772 # a shared archive.
23773 module_cmds=$lt_module_cmds
23774 module_expsym_cmds=$lt_module_expsym_cmds
23776 # Whether we are building with GNU ld or not.
23777 with_gnu_ld=$lt_with_gnu_ld
23779 # Flag that allows shared libraries with undefined symbols to be built.
23780 allow_undefined_flag=$lt_allow_undefined_flag
23782 # Flag that enforces no undefined symbols.
23783 no_undefined_flag=$lt_no_undefined_flag
23785 # Flag to hardcode \$libdir into a binary during linking.
23786 # This must work even if \$libdir does not exist
23787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23789 # Whether we need a single "-rpath" flag with a separated argument.
23790 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23792 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23793 # DIR into the resulting binary.
23794 hardcode_direct=$hardcode_direct
23796 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23797 # DIR into the resulting binary and the resulting library dependency is
23798 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23799 # library is relocated.
23800 hardcode_direct_absolute=$hardcode_direct_absolute
23802 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23803 # into the resulting binary.
23804 hardcode_minus_L=$hardcode_minus_L
23806 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23807 # into the resulting binary.
23808 hardcode_shlibpath_var=$hardcode_shlibpath_var
23810 # Set to "yes" if building a shared library automatically hardcodes DIR
23811 # into the library and all subsequent libraries and executables linked
23812 # against it.
23813 hardcode_automatic=$hardcode_automatic
23815 # Set to yes if linker adds runtime paths of dependent libraries
23816 # to runtime path list.
23817 inherit_rpath=$inherit_rpath
23819 # Whether libtool must link a program against all its dependency libraries.
23820 link_all_deplibs=$link_all_deplibs
23822 # Set to "yes" if exported symbols are required.
23823 always_export_symbols=$always_export_symbols
23825 # The commands to list exported symbols.
23826 export_symbols_cmds=$lt_export_symbols_cmds
23828 # Symbols that should not be listed in the preloaded symbols.
23829 exclude_expsyms=$lt_exclude_expsyms
23831 # Symbols that must always be exported.
23832 include_expsyms=$lt_include_expsyms
23834 # Commands necessary for linking programs (against libraries) with templates.
23835 prelink_cmds=$lt_prelink_cmds
23837 # Commands necessary for finishing linking programs.
23838 postlink_cmds=$lt_postlink_cmds
23840 # Specify filename containing input files.
23841 file_list_spec=$lt_file_list_spec
23843 # How to hardcode a shared library path into an executable.
23844 hardcode_action=$hardcode_action
23846 # ### END LIBTOOL CONFIG
23848 _LT_EOF
23850 cat <<'_LT_EOF' >> "$cfgfile"
23852 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23854 # func_munge_path_list VARIABLE PATH
23855 # -----------------------------------
23856 # VARIABLE is name of variable containing _space_ separated list of
23857 # directories to be munged by the contents of PATH, which is string
23858 # having a format:
23859 # "DIR[:DIR]:"
23860 # string "DIR[ DIR]" will be prepended to VARIABLE
23861 # ":DIR[:DIR]"
23862 # string "DIR[ DIR]" will be appended to VARIABLE
23863 # "DIRP[:DIRP]::[DIRA:]DIRA"
23864 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23865 # "DIRA[ DIRA]" will be appended to VARIABLE
23866 # "DIR[:DIR]"
23867 # VARIABLE will be replaced by "DIR[ DIR]"
23868 func_munge_path_list ()
23870 case x$2 in
23874 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23876 x:*)
23877 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23879 *::*)
23880 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23881 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23886 esac
23890 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23891 func_cc_basename ()
23893 for cc_temp in $*""; do
23894 case $cc_temp in
23895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23897 \-*) ;;
23898 *) break;;
23899 esac
23900 done
23901 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23905 # ### END FUNCTIONS SHARED WITH CONFIGURE
23907 _LT_EOF
23909 case $host_os in
23910 aix3*)
23911 cat <<\_LT_EOF >> "$cfgfile"
23912 # AIX sometimes has problems with the GCC collect2 program. For some
23913 # reason, if we set the COLLECT_NAMES environment variable, the problems
23914 # vanish in a puff of smoke.
23915 if test set != "${COLLECT_NAMES+set}"; then
23916 COLLECT_NAMES=
23917 export COLLECT_NAMES
23919 _LT_EOF
23921 esac
23924 ltmain=$ac_aux_dir/ltmain.sh
23927 # We use sed instead of cat because bash on DJGPP gets confused if
23928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23929 # text mode, it properly converts lines to CR/LF. This bash problem
23930 # is reportedly fixed, but why not run on old versions too?
23931 sed '$q' "$ltmain" >> "$cfgfile" \
23932 || (rm -f "$cfgfile"; exit 1)
23934 mv -f "$cfgfile" "$ofile" ||
23935 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23936 chmod +x "$ofile"
23939 "po-directories":C)
23940 for ac_file in $CONFIG_FILES; do
23941 # Support "outfile[:infile[:infile...]]"
23942 case "$ac_file" in
23943 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23944 esac
23945 # PO directories have a Makefile.in generated from Makefile.in.in.
23946 case "$ac_file" in */Makefile.in)
23947 # Adjust a relative srcdir.
23948 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23949 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23950 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23951 # In autoconf-2.13 it is called $ac_given_srcdir.
23952 # In autoconf-2.50 it is called $srcdir.
23953 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23954 case "$ac_given_srcdir" in
23955 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23956 /*) top_srcdir="$ac_given_srcdir" ;;
23957 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23958 esac
23959 # Treat a directory as a PO directory if and only if it has a
23960 # POTFILES.in file. This allows packages to have multiple PO
23961 # directories under different names or in different locations.
23962 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23963 rm -f "$ac_dir/POTFILES"
23964 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23965 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23966 POMAKEFILEDEPS="POTFILES.in"
23967 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23968 # on $ac_dir but don't depend on user-specified configuration
23969 # parameters.
23970 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23971 # The LINGUAS file contains the set of available languages.
23972 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23973 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23975 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23976 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23977 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23978 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23979 else
23980 # The set of available languages was given in configure.in.
23981 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23982 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23984 # Compute POFILES
23985 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23986 # Compute UPDATEPOFILES
23987 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23988 # Compute DUMMYPOFILES
23989 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23990 # Compute GMOFILES
23991 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23992 case "$ac_given_srcdir" in
23993 .) srcdirpre= ;;
23994 *) srcdirpre='$(srcdir)/' ;;
23995 esac
23996 POFILES=
23997 UPDATEPOFILES=
23998 DUMMYPOFILES=
23999 GMOFILES=
24000 for lang in $ALL_LINGUAS; do
24001 POFILES="$POFILES $srcdirpre$lang.po"
24002 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24003 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24004 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24005 done
24006 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24007 # environment variable.
24008 INST_LINGUAS=
24009 if test -n "$ALL_LINGUAS"; then
24010 for presentlang in $ALL_LINGUAS; do
24011 useit=no
24012 if test "%UNSET%" != "$LINGUAS"; then
24013 desiredlanguages="$LINGUAS"
24014 else
24015 desiredlanguages="$ALL_LINGUAS"
24017 for desiredlang in $desiredlanguages; do
24018 # Use the presentlang catalog if desiredlang is
24019 # a. equal to presentlang, or
24020 # b. a variant of presentlang (because in this case,
24021 # presentlang can be used as a fallback for messages
24022 # which are not translated in the desiredlang catalog).
24023 case "$desiredlang" in
24024 "$presentlang"*) useit=yes;;
24025 esac
24026 done
24027 if test $useit = yes; then
24028 INST_LINGUAS="$INST_LINGUAS $presentlang"
24030 done
24032 CATALOGS=
24033 if test -n "$INST_LINGUAS"; then
24034 for lang in $INST_LINGUAS; do
24035 CATALOGS="$CATALOGS $lang.gmo"
24036 done
24038 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24039 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"
24040 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24041 if test -f "$f"; then
24042 case "$f" in
24043 *.orig | *.bak | *~) ;;
24044 *) cat "$f" >> "$ac_dir/Makefile" ;;
24045 esac
24047 done
24050 esac
24051 done ;;
24053 esac
24054 done # for ac_tag
24057 as_fn_exit 0
24058 _ACEOF
24059 ac_clean_files=$ac_clean_files_save
24061 test $ac_write_fail = 0 ||
24062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24065 # configure is writing to config.log, and then calls config.status.
24066 # config.status does its own redirection, appending to config.log.
24067 # Unfortunately, on DOS this fails, as config.log is still kept open
24068 # by configure, so config.status won't be able to write to it; its
24069 # output is simply discarded. So we exec the FD to /dev/null,
24070 # effectively closing config.log, so it can be properly (re)opened and
24071 # appended to by config.status. When coming back to configure, we
24072 # need to make the FD available again.
24073 if test "$no_create" != yes; then
24074 ac_cs_success=:
24075 ac_config_status_args=
24076 test "$silent" = yes &&
24077 ac_config_status_args="$ac_config_status_args --quiet"
24078 exec 5>/dev/null
24079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24080 exec 5>>config.log
24081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24082 # would make configure fail if this is the last instruction.
24083 $ac_cs_success || as_fn_exit 1
24085 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24087 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}