* New version 2.21.999
[alpine.git] / configure
blobe550fd152a7d5b836060085da29d3df2ac53214d
1 #! /bin/sh
2 # From configure.ac Rev:26 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.21.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.21.999'
595 PACKAGE_STRING='alpine 2.21.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_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 alpine_interactive_spellcheck
661 ISPELLPROG
662 alpine_simple_spellcheck
663 SPELLPROG
664 PWPROG
665 NPA_PROG
666 SENDMAIL
667 ALPINE_HOSTSTAMP
668 ALPINE_DATESTAMP
669 POSUB
670 LTLIBINTL
671 LIBINTL
672 INTLLIBS
673 LTLIBICONV
674 LIBICONV
675 INTL_MACOSX_LIBS
676 MSGMERGE
677 XGETTEXT_015
678 XGETTEXT
679 GMSGFMT_015
680 MSGFMT_015
681 GMSGFMT
682 MSGFMT
683 USE_NLS
684 MAKE
689 LIBTOOL_DEPS
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 ac_ct_AR
699 DLLTOOL
700 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
706 EGREP
707 GREP
709 LIBTOOL
710 LN_S
711 LDFLAGS_FOR_BUILD
712 CPPFLAGS_FOR_BUILD
713 CFLAGS_FOR_BUILD
714 BUILD_OBJEXT
715 BUILD_EXEEXT
716 CPP_FOR_BUILD
717 ac_ct_CC_FOR_BUILD
718 CC_FOR_BUILD
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 MAINT
746 MAINTAINER_MODE_FALSE
747 MAINTAINER_MODE_TRUE
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_maintainer_mode
818 enable_dependency_tracking
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_nls
827 enable_rpath
828 with_libiconv_prefix
829 with_libintl_prefix
830 enable_dmalloc
831 with_dmalloc_dir
832 with_date_stamp
833 with_host_stamp
834 with_ps_cmd
835 with_localedir
836 enable_osx_universal_binaries
837 with_include_path
838 with_lib_path
839 with_pubcookie
840 with_web_bin
841 enable_debug
842 enable_optimization
843 enable_mouse
844 enable_quotas
845 enable_from_changing
846 enable_background_post
847 enable_keyboard_lock
848 enable_from_encoding
849 with_smtp_msa
850 with_smtp_msa_flags
851 with_npa
852 with_npa_flags
853 with_password_prog
854 with_simple_spellcheck
855 with_interactive_spellcheck
856 with_system_pinerc
857 with_system_fixed_pinerc
858 with_local_support_info
859 with_mailcheck_interval
860 with_checkpoint_interval
861 with_checkpoint_frequency
862 with_display_rows
863 with_display_columns
864 with_max_display_rows
865 with_max_display_columns
866 with_fill_column
867 with_max_fill_column
868 with_debug_level
869 with_debug_files
870 with_debug_file
871 with_forwarded_keyword
872 with_display_overlap
873 with_display_margin
874 with_default_fcc
875 with_default_save_folder
876 with_default_legacy_postponed_folder
877 with_default_postponed_folder
878 with_default_trash_folder
879 with_default_interrupted_mail
880 with_default_dead_letter_folder
881 with_default_mail_directory
882 with_default_inbox_name
883 with_default_signature_file
884 with_default_elm_style_save
885 with_default_header_in_reply
886 with_default_old_style_reply
887 with_default_use_only_domain_name
888 with_default_save_by_sender
889 with_default_sort_key
890 with_default_addressbook_sort_rule
891 with_default_folder_sort_rule
892 with_default_saved_message_name_rule
893 with_default_fcc_rule
894 with_default_standard_printer
895 with_default_ansi_printer
896 with_default_addressbook
897 with_default_local_fullname
898 with_default_local_address
899 with_default_keyboard_lock_count
900 with_default_remote_addressbook_history
901 with_smime_public_cert_directory
902 with_smime_private_key_directory
903 with_smime_cacert_directory
904 with_default_printer
905 with_passfile
906 with_local_password_cache
907 with_local_password_cache_method
908 with_default_sshpath
909 with_default_sshcmd
910 with_ssl
911 with_ssl_dir
912 with_ssl_certs_dir
913 with_ssl_include_dir
914 with_ssl_lib_dir
915 with_krb5
916 with_krb5_dir
917 with_krb5_include_dir
918 with_krb5_lib_dir
919 with_ldap
920 with_ldap_dir
921 with_ldap_include_dir
922 with_ldap_lib_dir
923 with_smime
924 with_tcl
925 with_tcl_lib
926 with_tcl_include
927 with_supplied_regex
928 with_pthread
929 with_system_mail_directory
930 with_c_client_target
931 with_ipv6
932 with_ntlm
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 CPP'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *=) ac_optarg= ;;
1007 *) ac_optarg=yes ;;
1008 esac
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1014 ac_dashdash=yes ;;
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 esac
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 esac
1351 done
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1435 /^X\(\/\/\)$/{
1436 s//\1/
1439 /^X\(\/\).*/{
1440 s//\1/
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1448 else
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures alpine 2.21.999 to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of alpine 2.21.999:";;
1554 esac
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-silent-rules less verbose build output (undo: "make V=1")
1562 --disable-silent-rules verbose build output (undo: "make V=0")
1563 --enable-maintainer-mode
1564 enable make rules and dependencies not useful (and
1565 sometimes confusing) to the casual installer
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --disable-nls do not use Native Language Support
1576 --disable-rpath do not hardcode runtime library paths
1577 --enable-dmalloc Enable dmalloc debugging
1578 --enable-osx-universal-binaries
1579 Produce universal binaries under OS X [[default=no]]
1580 --disable-debug Exclude debug messages from source
1581 --disable-optimization Exclude optimizing compiler flags
1582 --disable-mouse Disable mouse support
1583 --enable-quotas Enable disk quota checking on startup
1584 --disable-from-changing Disallow users changing From addresss
1585 --disable-background-post
1586 Disable background posting
1587 --disable-keyboard-lock Disable keyboard locking
1588 --enable-from-encoding Enable From encoding in sent messages
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1594 both]
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-sysroot=DIR Search for dependent libraries within DIR
1597 (or the compiler's sysroot if not specified).
1598 --with-gnu-ld assume the C compiler uses GNU ld default=no
1599 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1600 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1601 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1602 --without-libintl-prefix don't search for libintl in includedir and libdir
1603 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1604 --with-date-stamp=DATE Set this as the date this program was built.
1605 Default: output of `date`
1606 --with-host-stamp=HOST Set name of computer for compilation. Default:
1607 output of `hostname`
1608 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1609 /bin/ps auxww
1610 --with-localedir=DIR Name of gettext locale directory
1611 --with-include-path=PATHS
1612 Colon-separated list of directories used for include
1613 file search
1614 --with-lib-path=PATHS Colon-separated list of directories used for library
1615 search
1616 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1617 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1618 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1619 --with-smtp-msa-flags=FLAGS
1620 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1621 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1622 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1623 --with-password-prog=PATH
1624 Password change program (/bin/passwd)
1625 --with-simple-spellcheck=PROG
1626 Spellcheck program reads stdin, emits misspellings
1627 on stdout
1628 --with-interactive-spellcheck=PROG
1629 Interactive, filewise spell checker
1630 --with-system-pinerc=VALUE
1631 System pinerc (/usr/local/lib/pine.conf)
1632 --with-system-fixed-pinerc=VALUE
1633 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1634 --with-local-support-info=VALUE
1635 Local Support Info File (/usr/local/lib/pine.info)
1636 --with-mailcheck-interval=VALUE
1637 Specify default mail-check-interval (150)
1638 --with-checkpoint-interval=VALUE
1639 Specify default checkpoint-interval (420)
1640 --with-checkpoint-frequency=VALUE
1641 State change count before checkpoint (12)
1642 --with-display-rows=VALUE
1643 Initial rows on display (24)
1644 --with-display-columns=VALUE
1645 Initial columns on display (80)
1646 --with-max-display-rows=VALUE
1647 Maximum display rows (200)
1648 --with-max-display-columns=VALUE
1649 Maximum display columns (500)
1650 --with-fill-column=VALUE
1651 Default fill column (74)
1652 --with-max_fill-column=VALUE
1653 Maximum fill column (80)
1654 --with-debug-level=VALUE
1655 Specify default debug verbosity level (2)
1656 --with-debug-files=VALUE
1657 Specify number of debug files (4)
1658 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1659 --with-forwarded-keyword=VALUE
1660 IMAP (c-client) keyword to store forwarded status
1661 ("\$Forwarded")
1662 --with-display-overlap=VALUE
1663 Lines preserved while paging (2)
1664 --with-display-margin=VALUE
1665 Lines visible while scrolling (0)
1666 --with-default-fcc=VALUE
1667 Default sent mail folder (sent-mail)
1668 --with-default-save-folder=VALUE
1669 Default save folder (saved-messages)
1670 --with-default-legacy-postponed-folder=VALUE
1671 Pre Pine 3.90 postponed folder (postponed-mail)
1672 --with-default-postponed-folder=VALUE
1673 Default postponed folder (postponed-msgs)
1674 --with-default-trash-folder=VALUE
1675 Default Trash folder for Web Alpine (Trash)
1676 --with-default-interrupted-mail=VALUE
1677 Default folder for interrupted mail
1678 (.pine-interrupted-mail)
1679 --with-default-dead-letter-folder=VALUE
1680 Default dead letter folder (dead.letter)
1681 --with-default-mail-directory=VALUE
1682 Default mail directory (mail)
1683 --with-default-inbox-name=VALUE
1684 Default inbox name (INBOX)
1685 --with-default-signature-file=VALUE
1686 Default signature file (.signature)
1687 --with-default-elm-style-save=VALUE
1688 Default to Elm style save (no)
1689 --with-default-header-in-reply=VALUE
1690 Include header in reply (no)
1691 --with-default-old-style-reply=VALUE
1692 Default to old style reply (no)
1693 --with-default-use-only-domain-name=VALUE
1694 Default to using only the domain name (no)
1695 --with-default-save-by-sender=VALUE
1696 Default to save by sender (no)
1697 --with-default-sort-key=VALUE
1698 Default sort key (arrival)
1699 --with-default-addressbook-sort-rule=VALUE
1700 Default addressbook sort rule
1701 (fullname-with-lists-last)
1702 --with-default-folder-sort-rule=VALUE
1703 Default folder sort rule (alphabetical)
1704 --with-default-saved-message-name-rule=VALUE
1705 Default saved message name rule (default-folder)
1706 --with-default-fcc-rule=VALUE
1707 Default fcc rule (default-fcc)
1708 --with-default-standard-printer=VALUE
1709 Default standard printern (lpr)
1710 --with-default-ansi-printer=VALUE
1711 ANSI printer definition (attached-to-ansi)
1712 --with-default-addressbook=VALUE
1713 Default addressbook name (.addressbook)
1714 --with-default-local-fullname=VALUE
1715 Default local support fullname ("Local Support")
1716 --with-default-local-address=VALUE
1717 Default local support address (postmaster)
1718 --with-default-keyboard-lock-count=VALUE
1719 Default keyboard lock count (1)
1720 --with-default-remote-addressbook-history=VALUE
1721 Default address book history count (3)
1722 --with-smime-public-cert-directory=VALUE
1723 Default Public Cert Directory (.alpine-smime/public)
1724 --with-smime-private-key-directory=VALUE
1725 Default Private Key Directory
1726 (.alpine-smime/private)
1727 --with-smime-cacert-directory=VALUE
1728 Default Cert Authority Directory (.alpine-smime/ca)
1729 --with-default-printer=VALUE
1730 Default printer (ANSI_PRINTER)
1731 --with-passfile=FILENAME
1732 Password cache file (recommended when S/MIME is
1733 enabled and configured)
1734 --without-local-password-cache
1735 Disable OS-specific password cache, if supported
1736 --with-local-password-cache-method
1737 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1738 Windows=WINCRED)
1739 --with-default-sshpath=FILENAME
1740 set default value of ssh command path (defining
1741 should cause ssh to be preferred to rsh)
1742 --with-default-sshcmd=PERCENT_S_STRING
1743 set default value of ssh command string (usually "%s
1744 %s -l %s exec /etc/r%sd")
1745 --without-ssl Disable SSL support (OpenSSL)
1746 --with-ssl-dir=DIR Root of SSL lib/include path
1747 --with-ssl-certs-dir=DIR
1748 Path to SSL certificate directory
1749 --with-ssl-include-dir=DIR
1750 SSL include file path
1751 --with-ssl-lib-dir=DIR SSL library path
1752 --without-krb5 Disable Kerberos support
1753 --with-krb5-dir=DIR Root of Kerberos lib/include path
1754 --with-krb5-include-dir=DIR
1755 Kerberos include file path
1756 --with-krb5-lib-dir=DIR Kerberos library path
1757 --without-ldap Disable LDAP query support
1758 --with-ldap-dir=DIR Root of LDAP lib/include path
1759 --with-ldap-include-dir=DIR
1760 Directory containing LDAP include files
1761 --with-ldap-lib-dir=DIR LDAP library path
1762 --without-smime Disable S/MIME
1763 --without-tcl Disable TCL, thus Web Alpine support
1764 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1765 --with-tcl-include=DIR Directory containing TCL include files
1766 --with-supplied-regex Use regex library supplied with alpine
1767 --without-pthread Do NOT test for nor build with POSIX thread support
1768 --with-system-mail-directory=DIR
1769 Directory where local mail is delivered
1770 --with-c-client-target=TARGET
1771 IMAP build target (see imap/Makefile)
1772 --without-ipv6 Disable IPv6, primarily to work around resolver
1773 problems
1774 --without-ntlm Disable NTLM client support
1776 Some influential environment variables:
1777 CC C compiler command
1778 CFLAGS C compiler flags
1779 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1780 nonstandard directory <lib dir>
1781 LIBS libraries to pass to the linker, e.g. -l<library>
1782 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1783 you have headers in a nonstandard directory <include dir>
1784 CPP C preprocessor
1786 Use these variables to override the choices made by `configure' or to help
1787 it to find libraries and programs with nonstandard names/locations.
1789 Report bugs to <chappa@washington.edu>.
1790 _ACEOF
1791 ac_status=$?
1794 if test "$ac_init_help" = "recursive"; then
1795 # If there are subdirs, report their specific --help.
1796 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797 test -d "$ac_dir" ||
1798 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1799 continue
1800 ac_builddir=.
1802 case "$ac_dir" in
1803 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1806 # A ".." for each directory in $ac_dir_suffix.
1807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1808 case $ac_top_builddir_sub in
1809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811 esac ;;
1812 esac
1813 ac_abs_top_builddir=$ac_pwd
1814 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1815 # for backward compatibility:
1816 ac_top_builddir=$ac_top_build_prefix
1818 case $srcdir in
1819 .) # We are building in place.
1820 ac_srcdir=.
1821 ac_top_srcdir=$ac_top_builddir_sub
1822 ac_abs_top_srcdir=$ac_pwd ;;
1823 [\\/]* | ?:[\\/]* ) # Absolute name.
1824 ac_srcdir=$srcdir$ac_dir_suffix;
1825 ac_top_srcdir=$srcdir
1826 ac_abs_top_srcdir=$srcdir ;;
1827 *) # Relative name.
1828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1829 ac_top_srcdir=$ac_top_build_prefix$srcdir
1830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1831 esac
1832 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1834 cd "$ac_dir" || { ac_status=$?; continue; }
1835 # Check for guested configure.
1836 if test -f "$ac_srcdir/configure.gnu"; then
1837 echo &&
1838 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1839 elif test -f "$ac_srcdir/configure"; then
1840 echo &&
1841 $SHELL "$ac_srcdir/configure" --help=recursive
1842 else
1843 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1844 fi || ac_status=$?
1845 cd "$ac_pwd" || { ac_status=$?; break; }
1846 done
1849 test -n "$ac_init_help" && exit $ac_status
1850 if $ac_init_version; then
1851 cat <<\_ACEOF
1852 alpine configure 2.21.999
1853 generated by GNU Autoconf 2.69
1855 Copyright (C) 2012 Free Software Foundation, Inc.
1856 This configure script is free software; the Free Software Foundation
1857 gives unlimited permission to copy, distribute and modify it.
1858 _ACEOF
1859 exit
1862 ## ------------------------ ##
1863 ## Autoconf initialization. ##
1864 ## ------------------------ ##
1866 # ac_fn_c_try_compile LINENO
1867 # --------------------------
1868 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext
1873 if { { ac_try="$ac_compile"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_compile") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest.$ac_objext; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=1
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_compile
1904 # ac_fn_c_try_cpp LINENO
1905 # ----------------------
1906 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_c_try_cpp ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_cpp conftest.$ac_ext"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } > conftest.i && {
1926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1927 test ! -s conftest.err
1928 }; then :
1929 ac_retval=0
1930 else
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1934 ac_retval=1
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_c_try_cpp
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_link ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=1
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_link
1987 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists and can be compiled using the include files in
1990 # INCLUDES, setting the cache variable VAR accordingly.
1991 ac_fn_c_check_header_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 else
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 eval "$3=yes"
2006 else
2007 eval "$3=no"
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_header_compile
2018 # ac_fn_c_try_run LINENO
2019 # ----------------------
2020 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2021 # that executables *can* be run.
2022 ac_fn_c_try_run ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_link"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_link") 2>&5
2033 ac_status=$?
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2036 { { case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_try") 2>&5
2043 ac_status=$?
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; }; }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: program exited with status $ac_status" >&5
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2052 ac_retval=$ac_status
2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 as_fn_set_status $ac_retval
2058 } # ac_fn_c_try_run
2060 # ac_fn_c_check_func LINENO FUNC VAR
2061 # ----------------------------------
2062 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2063 ac_fn_c_check_func ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2075 #define $2 innocuous_$2
2077 /* System header to define __stub macros and hopefully few prototypes,
2078 which can conflict with char $2 (); below.
2079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2080 <limits.h> exists even on freestanding compilers. */
2082 #ifdef __STDC__
2083 # include <limits.h>
2084 #else
2085 # include <assert.h>
2086 #endif
2088 #undef $2
2090 /* Override any GCC internal prototype to avoid an error.
2091 Use char because int might match the return type of a GCC
2092 builtin and then its argument prototype would still apply. */
2093 #ifdef __cplusplus
2094 extern "C"
2095 #endif
2096 char $2 ();
2097 /* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100 #if defined __stub_$2 || defined __stub___$2
2101 choke me
2102 #endif
2105 main ()
2107 return $2 ();
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_link "$LINENO"; then :
2113 eval "$3=yes"
2114 else
2115 eval "$3=no"
2117 rm -f core conftest.err conftest.$ac_objext \
2118 conftest$ac_exeext conftest.$ac_ext
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_func
2127 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2128 # -------------------------------------------------------
2129 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2130 # the include files in INCLUDES and setting the cache variable VAR
2131 # accordingly.
2132 ac_fn_c_check_header_mongrel ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if eval \${$3+:} false; then :
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2141 eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2144 else
2145 # Is the header compilable?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2147 $as_echo_n "checking $2 usability... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 #include <$2>
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_header_compiler=yes
2155 else
2156 ac_header_compiler=no
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2160 $as_echo "$ac_header_compiler" >&6; }
2162 # Is the header present?
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2164 $as_echo_n "checking $2 presence... " >&6; }
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_c_try_cpp "$LINENO"; then :
2170 ac_header_preproc=yes
2171 else
2172 ac_header_preproc=no
2174 rm -f conftest.err conftest.i conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2176 $as_echo "$ac_header_preproc" >&6; }
2178 # So? What about this header?
2179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2180 yes:no: )
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2182 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2184 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186 no:yes:* )
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2188 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2190 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2192 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2194 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 ( $as_echo "## ------------------------------------ ##
2198 ## Report this to chappa@washington.edu ##
2199 ## ------------------------------------ ##"
2200 ) | sed "s/^/$as_me: WARNING: /" >&2
2202 esac
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval \${$3+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 eval "$3=\$ac_header_compiler"
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 } # ac_fn_c_check_header_mongrel
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=no"
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof ($2))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 if (sizeof (($2)))
2251 return 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2258 else
2259 eval "$3=yes"
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2273 # --------------------------------------------
2274 # Tries to find the compile-time value of EXPR in a program that includes
2275 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2276 # computed
2277 ac_fn_c_compute_int ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if test "$cross_compiling" = yes; then
2281 # Depending upon the size, compute the lo and hi bounds.
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2286 main ()
2288 static int test_array [1 - 2 * !(($2) >= 0)];
2289 test_array [0] = 0;
2290 return test_array [0];
2293 return 0;
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 ac_lo=0 ac_mid=0
2298 while :; do
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 main ()
2305 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 test_array [0] = 0;
2307 return test_array [0];
2310 return 0;
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 ac_hi=$ac_mid; break
2315 else
2316 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2317 if test $ac_lo -le $ac_mid; then
2318 ac_lo= ac_hi=
2319 break
2321 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 done
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2330 main ()
2332 static int test_array [1 - 2 * !(($2) < 0)];
2333 test_array [0] = 0;
2334 return test_array [0];
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_hi=-1 ac_mid=-1
2342 while :; do
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2347 main ()
2349 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2350 test_array [0] = 0;
2351 return test_array [0];
2354 return 0;
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 ac_lo=$ac_mid; break
2359 else
2360 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2361 if test $ac_mid -le $ac_hi; then
2362 ac_lo= ac_hi=
2363 break
2365 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 else
2370 ac_lo= ac_hi=
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 # Binary search between lo and hi bounds.
2376 while test "x$ac_lo" != "x$ac_hi"; do
2377 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2382 main ()
2384 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2385 test_array [0] = 0;
2386 return test_array [0];
2389 return 0;
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_hi=$ac_mid
2394 else
2395 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 done
2399 case $ac_lo in #((
2400 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2401 '') ac_retval=1 ;;
2402 esac
2403 else
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2407 static long int longval () { return $2; }
2408 static unsigned long int ulongval () { return $2; }
2409 #include <stdio.h>
2410 #include <stdlib.h>
2412 main ()
2415 FILE *f = fopen ("conftest.val", "w");
2416 if (! f)
2417 return 1;
2418 if (($2) < 0)
2420 long int i = longval ();
2421 if (i != ($2))
2422 return 1;
2423 fprintf (f, "%ld", i);
2425 else
2427 unsigned long int i = ulongval ();
2428 if (i != ($2))
2429 return 1;
2430 fprintf (f, "%lu", i);
2432 /* Do not output a trailing newline, as this causes \r\n confusion
2433 on some platforms. */
2434 return ferror (f) || fclose (f) != 0;
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_run "$LINENO"; then :
2441 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2442 else
2443 ac_retval=1
2445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2446 conftest.$ac_objext conftest.beam conftest.$ac_ext
2447 rm -f conftest.val
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451 as_fn_set_status $ac_retval
2453 } # ac_fn_c_compute_int
2454 cat >config.log <<_ACEOF
2455 This file contains any messages produced by compilers while
2456 running configure, to aid debugging if configure makes a mistake.
2458 It was created by alpine $as_me 2.21.999, which was
2459 generated by GNU Autoconf 2.69. Invocation command line was
2461 $ $0 $@
2463 _ACEOF
2464 exec 5>>config.log
2466 cat <<_ASUNAME
2467 ## --------- ##
2468 ## Platform. ##
2469 ## --------- ##
2471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2488 _ASUNAME
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 $as_echo "PATH: $as_dir"
2496 done
2497 IFS=$as_save_IFS
2499 } >&5
2501 cat >&5 <<_ACEOF
2504 ## ----------- ##
2505 ## Core tests. ##
2506 ## ----------- ##
2508 _ACEOF
2511 # Keep a trace of the command line.
2512 # Strip out --no-create and --no-recursion so they do not pile up.
2513 # Strip out --silent because we don't want to record it for future runs.
2514 # Also quote any args containing shell meta-characters.
2515 # Make two passes to allow for proper duplicate-argument suppression.
2516 ac_configure_args=
2517 ac_configure_args0=
2518 ac_configure_args1=
2519 ac_must_keep_next=false
2520 for ac_pass in 1 2
2522 for ac_arg
2524 case $ac_arg in
2525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2527 | -silent | --silent | --silen | --sile | --sil)
2528 continue ;;
2529 *\'*)
2530 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 esac
2532 case $ac_pass in
2533 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2535 as_fn_append ac_configure_args1 " '$ac_arg'"
2536 if test $ac_must_keep_next = true; then
2537 ac_must_keep_next=false # Got value, back to normal.
2538 else
2539 case $ac_arg in
2540 *=* | --config-cache | -C | -disable-* | --disable-* \
2541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2543 | -with-* | --with-* | -without-* | --without-* | --x)
2544 case "$ac_configure_args0 " in
2545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2546 esac
2548 -* ) ac_must_keep_next=true ;;
2549 esac
2551 as_fn_append ac_configure_args " '$ac_arg'"
2553 esac
2554 done
2555 done
2556 { ac_configure_args0=; unset ac_configure_args0;}
2557 { ac_configure_args1=; unset ac_configure_args1;}
2559 # When interrupted or exit'd, cleanup temporary files, and complete
2560 # config.log. We remove comments because anyway the quotes in there
2561 # would cause problems or look ugly.
2562 # WARNING: Use '\'' to represent an apostrophe within the trap.
2563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2564 trap 'exit_status=$?
2565 # Save into config.log some information that might help in debugging.
2567 echo
2569 $as_echo "## ---------------- ##
2570 ## Cache variables. ##
2571 ## ---------------- ##"
2572 echo
2573 # The following way of writing the cache mishandles newlines in values,
2575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2576 eval ac_val=\$$ac_var
2577 case $ac_val in #(
2578 *${as_nl}*)
2579 case $ac_var in #(
2580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2582 esac
2583 case $ac_var in #(
2584 _ | IFS | as_nl) ;; #(
2585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2586 *) { eval $ac_var=; unset $ac_var;} ;;
2587 esac ;;
2588 esac
2589 done
2590 (set) 2>&1 |
2591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2592 *${as_nl}ac_space=\ *)
2593 sed -n \
2594 "s/'\''/'\''\\\\'\'''\''/g;
2595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2596 ;; #(
2598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2600 esac |
2601 sort
2603 echo
2605 $as_echo "## ----------------- ##
2606 ## Output variables. ##
2607 ## ----------------- ##"
2608 echo
2609 for ac_var in $ac_subst_vars
2611 eval ac_val=\$$ac_var
2612 case $ac_val in
2613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 esac
2615 $as_echo "$ac_var='\''$ac_val'\''"
2616 done | sort
2617 echo
2619 if test -n "$ac_subst_files"; then
2620 $as_echo "## ------------------- ##
2621 ## File substitutions. ##
2622 ## ------------------- ##"
2623 echo
2624 for ac_var in $ac_subst_files
2626 eval ac_val=\$$ac_var
2627 case $ac_val in
2628 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2629 esac
2630 $as_echo "$ac_var='\''$ac_val'\''"
2631 done | sort
2632 echo
2635 if test -s confdefs.h; then
2636 $as_echo "## ----------- ##
2637 ## confdefs.h. ##
2638 ## ----------- ##"
2639 echo
2640 cat confdefs.h
2641 echo
2643 test "$ac_signal" != 0 &&
2644 $as_echo "$as_me: caught signal $ac_signal"
2645 $as_echo "$as_me: exit $exit_status"
2646 } >&5
2647 rm -f core *.core core.conftest.* &&
2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2649 exit $exit_status
2651 for ac_signal in 1 2 13 15; do
2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2653 done
2654 ac_signal=0
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest* confdefs.h
2659 $as_echo "/* confdefs.h */" > confdefs.h
2661 # Predefined preprocessor variables.
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2665 _ACEOF
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2669 _ACEOF
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2673 _ACEOF
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2677 _ACEOF
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2685 _ACEOF
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2690 ac_site_file1=NONE
2691 ac_site_file2=NONE
2692 if test -n "$CONFIG_SITE"; then
2693 # We do not want a PATH search for config.site.
2694 case $CONFIG_SITE in #((
2695 -*) ac_site_file1=./$CONFIG_SITE;;
2696 */*) ac_site_file1=$CONFIG_SITE;;
2697 *) ac_site_file1=./$CONFIG_SITE;;
2698 esac
2699 elif test "x$prefix" != xNONE; then
2700 ac_site_file1=$prefix/share/config.site
2701 ac_site_file2=$prefix/etc/config.site
2702 else
2703 ac_site_file1=$ac_default_prefix/share/config.site
2704 ac_site_file2=$ac_default_prefix/etc/config.site
2706 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2708 test "x$ac_site_file" = xNONE && continue
2709 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2711 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2712 sed 's/^/| /' "$ac_site_file" >&5
2713 . "$ac_site_file" \
2714 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error $? "failed to load site script $ac_site_file
2717 See \`config.log' for more details" "$LINENO" 5; }
2719 done
2721 if test -r "$cache_file"; then
2722 # Some versions of bash will fail to source /dev/null (special files
2723 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2724 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2726 $as_echo "$as_me: loading cache $cache_file" >&6;}
2727 case $cache_file in
2728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2729 *) . "./$cache_file";;
2730 esac
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2734 $as_echo "$as_me: creating cache $cache_file" >&6;}
2735 >$cache_file
2738 gt_needs="$gt_needs "
2739 # Check that the precious variables saved in the cache have kept the same
2740 # value.
2741 ac_cache_corrupted=false
2742 for ac_var in $ac_precious_vars; do
2743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744 eval ac_new_set=\$ac_env_${ac_var}_set
2745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746 eval ac_new_val=\$ac_env_${ac_var}_value
2747 case $ac_old_set,$ac_new_set in
2748 set,)
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751 ac_cache_corrupted=: ;;
2752 ,set)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755 ac_cache_corrupted=: ;;
2756 ,);;
2758 if test "x$ac_old_val" != "x$ac_new_val"; then
2759 # differences in whitespace do not lead to failure.
2760 ac_old_val_w=`echo x $ac_old_val`
2761 ac_new_val_w=`echo x $ac_new_val`
2762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765 ac_cache_corrupted=:
2766 else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769 eval $ac_var=\$ac_old_val
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2775 fi;;
2776 esac
2777 # Pass precious variables to config.status.
2778 if test "$ac_new_set" = set; then
2779 case $ac_new_val in
2780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781 *) ac_arg=$ac_var=$ac_new_val ;;
2782 esac
2783 case " $ac_configure_args " in
2784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786 esac
2788 done
2789 if $ac_cache_corrupted; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2796 ## -------------------- ##
2797 ## Main body of script. ##
2798 ## -------------------- ##
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 ac_config_headers="$ac_config_headers include/config.h"
2812 am__api_version='1.13'
2814 ac_aux_dir=
2815 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2816 if test -f "$ac_dir/install-sh"; then
2817 ac_aux_dir=$ac_dir
2818 ac_install_sh="$ac_aux_dir/install-sh -c"
2819 break
2820 elif test -f "$ac_dir/install.sh"; then
2821 ac_aux_dir=$ac_dir
2822 ac_install_sh="$ac_aux_dir/install.sh -c"
2823 break
2824 elif test -f "$ac_dir/shtool"; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/shtool install -c"
2827 break
2829 done
2830 if test -z "$ac_aux_dir"; then
2831 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2834 # These three variables are undocumented and unsupported,
2835 # and are intended to be withdrawn in a future Autoconf release.
2836 # They can cause serious problems if a builder's source tree is in a directory
2837 # whose full name contains unusual characters.
2838 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2839 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2840 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2843 # Find a good install program. We prefer a C program (faster),
2844 # so one script is as good as another. But avoid the broken or
2845 # incompatible versions:
2846 # SysV /etc/install, /usr/sbin/install
2847 # SunOS /usr/etc/install
2848 # IRIX /sbin/install
2849 # AIX /bin/install
2850 # AmigaOS /C/install, which installs bootblocks on floppy discs
2851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854 # OS/2's system install, which has a completely different semantic
2855 # ./install, which can be erroneously created by make from ./install.sh.
2856 # Reject install programs that cannot install multiple files.
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2859 if test -z "$INSTALL"; then
2860 if ${ac_cv_path_install+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 # Account for people who put trailing slashes in PATH elements.
2869 case $as_dir/ in #((
2870 ./ | .// | /[cC]/* | \
2871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2873 /usr/ucb/* ) ;;
2875 # OSF1 and SCO ODT 3.0 have their own names for install.
2876 # Don't use installbsd from OSF since it installs stuff as root
2877 # by default.
2878 for ac_prog in ginstall scoinst install; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881 if test $ac_prog = install &&
2882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883 # AIX install. It has an incompatible calling convention.
2885 elif test $ac_prog = install &&
2886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887 # program-specific install script used by HP pwplus--don't use.
2889 else
2890 rm -rf conftest.one conftest.two conftest.dir
2891 echo one > conftest.one
2892 echo two > conftest.two
2893 mkdir conftest.dir
2894 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895 test -s conftest.one && test -s conftest.two &&
2896 test -s conftest.dir/conftest.one &&
2897 test -s conftest.dir/conftest.two
2898 then
2899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2900 break 3
2904 done
2905 done
2907 esac
2909 done
2910 IFS=$as_save_IFS
2912 rm -rf conftest.one conftest.two conftest.dir
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL=$ac_cv_path_install
2917 else
2918 # As a last resort, use the slow shell script. Don't cache a
2919 # value for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the value is a relative name.
2922 INSTALL=$ac_install_sh
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926 $as_echo "$INSTALL" >&6; }
2928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929 # It thinks the first close brace ends the variable substitution.
2930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937 $as_echo_n "checking whether build environment is sane... " >&6; }
2938 # Reject unsafe characters in $srcdir or the absolute working directory
2939 # name. Accept space and tab only in the latter.
2940 am_lf='
2942 case `pwd` in
2943 *[\\\"\#\$\&\'\`$am_lf]*)
2944 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2945 esac
2946 case $srcdir in
2947 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2948 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2949 esac
2951 # Do 'set' in a subshell so we don't clobber the current shell's
2952 # arguments. Must try -L first in case configure is actually a
2953 # symlink; some systems play weird games with the mod time of symlinks
2954 # (eg FreeBSD returns the mod time of the symlink's containing
2955 # directory).
2956 if (
2957 am_has_slept=no
2958 for am_try in 1 2; do
2959 echo "timestamp, slept: $am_has_slept" > conftest.file
2960 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961 if test "$*" = "X"; then
2962 # -L didn't work.
2963 set X `ls -t "$srcdir/configure" conftest.file`
2965 if test "$*" != "X $srcdir/configure conftest.file" \
2966 && test "$*" != "X conftest.file $srcdir/configure"; then
2968 # If neither matched, then we have a broken ls. This can happen
2969 # if, for instance, CONFIG_SHELL is bash and it inherits a
2970 # broken ls alias from the environment. This has actually
2971 # happened. Such a system could not be considered "sane".
2972 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2973 alias in your environment" "$LINENO" 5
2975 if test "$2" = conftest.file || test $am_try -eq 2; then
2976 break
2978 # Just in case.
2979 sleep 1
2980 am_has_slept=yes
2981 done
2982 test "$2" = conftest.file
2984 then
2985 # Ok.
2987 else
2988 as_fn_error $? "newly created file is older than distributed files!
2989 Check your system clock" "$LINENO" 5
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992 $as_echo "yes" >&6; }
2993 # If we didn't sleep, we still need to ensure time stamps of config.status and
2994 # generated files are strictly newer.
2995 am_sleep_pid=
2996 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2997 ( sleep 1 ) &
2998 am_sleep_pid=$!
3001 rm -f conftest.file
3003 test "$program_prefix" != NONE &&
3004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005 # Use a double $ so make ignores it.
3006 test "$program_suffix" != NONE &&
3007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008 # Double any \ or $.
3009 # By default was `s,x,x', remove it if useless.
3010 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3013 # Expand $ac_aux_dir to an absolute path.
3014 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3016 if test x"${MISSING+set}" != xset; then
3017 case $am_aux_dir in
3018 *\ * | *\ *)
3019 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3021 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022 esac
3024 # Use eval to expand $SHELL
3025 if eval "$MISSING --is-lightweight"; then
3026 am_missing_run="$MISSING "
3027 else
3028 am_missing_run=
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3030 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3033 if test x"${install_sh}" != xset; then
3034 case $am_aux_dir in
3035 *\ * | *\ *)
3036 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3038 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 esac
3042 # Installed binaries are usually stripped using 'strip' when the user
3043 # run "make install-strip". However 'strip' might not be the right
3044 # tool to use in cross-compilation environments, therefore Automake
3045 # will honor the 'STRIP' environment variable to overrule this program.
3046 if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3075 STRIP=$ac_cv_prog_STRIP
3076 if test -n "$STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078 $as_echo "$STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_STRIP"; then
3087 ac_ct_STRIP=$STRIP
3088 # Extract the first word of "strip", so it can be a program name with args.
3089 set dummy strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116 if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118 $as_echo "$ac_ct_STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_STRIP" = x; then
3125 STRIP=":"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 STRIP=$ac_ct_STRIP
3135 else
3136 STRIP="$ac_cv_prog_STRIP"
3140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144 if test -z "$MKDIR_P"; then
3145 if ${ac_cv_path_mkdir+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_prog in mkdir gmkdir; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3156 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157 'mkdir (GNU coreutils) '* | \
3158 'mkdir (coreutils) '* | \
3159 'mkdir (fileutils) '4.1*)
3160 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161 break 3;;
3162 esac
3163 done
3164 done
3165 done
3166 IFS=$as_save_IFS
3170 test -d ./--version && rmdir ./--version
3171 if test "${ac_cv_path_mkdir+set}" = set; then
3172 MKDIR_P="$ac_cv_path_mkdir -p"
3173 else
3174 # As a last resort, use the slow shell script. Don't cache a
3175 # value for MKDIR_P within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the value is a relative name.
3178 MKDIR_P="$ac_install_sh -d"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182 $as_echo "$MKDIR_P" >&6; }
3184 for ac_prog in gawk mawk nawk awk
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_AWK+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$AWK"; then
3194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_AWK="$ac_prog"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3213 AWK=$ac_cv_prog_AWK
3214 if test -n "$AWK"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3216 $as_echo "$AWK" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3223 test -n "$AWK" && break
3224 done
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3227 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228 set x ${MAKE-make}
3229 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3230 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 cat >conftest.make <<\_ACEOF
3234 SHELL = /bin/sh
3235 all:
3236 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237 _ACEOF
3238 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 *@@@%%%=?*=@@@%%%*)
3241 eval ac_cv_prog_make_${ac_make}_set=yes;;
3243 eval ac_cv_prog_make_${ac_make}_set=no;;
3244 esac
3245 rm -f conftest.make
3247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250 SET_MAKE=
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 SET_MAKE="MAKE=${MAKE-make}"
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260 am__leading_dot=.
3261 else
3262 am__leading_dot=_
3264 rmdir .tst 2>/dev/null
3266 # Check whether --enable-silent-rules was given.
3267 if test "${enable_silent_rules+set}" = set; then :
3268 enableval=$enable_silent_rules;
3271 case $enable_silent_rules in # (((
3272 yes) AM_DEFAULT_VERBOSITY=0;;
3273 no) AM_DEFAULT_VERBOSITY=1;;
3274 *) AM_DEFAULT_VERBOSITY=1;;
3275 esac
3276 am_make=${MAKE-make}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279 if ${am_cv_make_support_nested_variables+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if $as_echo 'TRUE=$(BAR$(V))
3283 BAR0=false
3284 BAR1=true
3286 am__doit:
3287 @$(TRUE)
3288 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289 am_cv_make_support_nested_variables=yes
3290 else
3291 am_cv_make_support_nested_variables=no
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3296 if test $am_cv_make_support_nested_variables = yes; then
3297 AM_V='$(V)'
3298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299 else
3300 AM_V=$AM_DEFAULT_VERBOSITY
3301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3303 AM_BACKSLASH='\'
3305 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3306 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3307 # is not polluted with repeated "-I."
3308 am__isrc=' -I$(srcdir)'
3309 # test to see if srcdir already configured
3310 if test -f $srcdir/config.status; then
3311 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3315 # test whether we have cygpath
3316 if test -z "$CYGPATH_W"; then
3317 if (cygpath --version) >/dev/null 2>/dev/null; then
3318 CYGPATH_W='cygpath -w'
3319 else
3320 CYGPATH_W=echo
3325 # Define the identity of the package.
3326 PACKAGE='alpine'
3327 VERSION='2.21.999'
3330 cat >>confdefs.h <<_ACEOF
3331 #define PACKAGE "$PACKAGE"
3332 _ACEOF
3335 cat >>confdefs.h <<_ACEOF
3336 #define VERSION "$VERSION"
3337 _ACEOF
3339 # Some tools Automake needs.
3341 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3344 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3347 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3350 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3353 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3355 # For better backward compatibility. To be removed once Automake 1.9.x
3356 # dies out for good. For more background, see:
3357 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359 mkdir_p='$(MKDIR_P)'
3361 # We need awk for the "check" target. The system "awk" is bad on
3362 # some platforms.
3363 # Always define AMTAR for backward compatibility. Yes, it's still used
3364 # in the wild :-( We should find a proper way to deprecate it ...
3365 AMTAR='$${TAR-tar}'
3368 # We'll loop over all known methods to create a tar archive until one works.
3369 _am_tools='gnutar pax cpio none'
3371 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3381 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3382 # Check whether --enable-maintainer-mode was given.
3383 if test "${enable_maintainer_mode+set}" = set; then :
3384 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3385 else
3386 USE_MAINTAINER_MODE=no
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3390 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3391 if test $USE_MAINTAINER_MODE = yes; then
3392 MAINTAINER_MODE_TRUE=
3393 MAINTAINER_MODE_FALSE='#'
3394 else
3395 MAINTAINER_MODE_TRUE='#'
3396 MAINTAINER_MODE_FALSE=
3399 MAINT=$MAINTAINER_MODE_TRUE
3403 # Make sure we can run config.sub.
3404 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3405 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3408 $as_echo_n "checking build system type... " >&6; }
3409 if ${ac_cv_build+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 ac_build_alias=$build_alias
3413 test "x$ac_build_alias" = x &&
3414 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3415 test "x$ac_build_alias" = x &&
3416 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3417 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3422 $as_echo "$ac_cv_build" >&6; }
3423 case $ac_cv_build in
3424 *-*-*) ;;
3425 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3426 esac
3427 build=$ac_cv_build
3428 ac_save_IFS=$IFS; IFS='-'
3429 set x $ac_cv_build
3430 shift
3431 build_cpu=$1
3432 build_vendor=$2
3433 shift; shift
3434 # Remember, the first character of IFS is used to create $*,
3435 # except with old shells:
3436 build_os=$*
3437 IFS=$ac_save_IFS
3438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3442 $as_echo_n "checking host system type... " >&6; }
3443 if ${ac_cv_host+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test "x$host_alias" = x; then
3447 ac_cv_host=$ac_cv_build
3448 else
3449 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3455 $as_echo "$ac_cv_host" >&6; }
3456 case $ac_cv_host in
3457 *-*-*) ;;
3458 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3459 esac
3460 host=$ac_cv_host
3461 ac_save_IFS=$IFS; IFS='-'
3462 set x $ac_cv_host
3463 shift
3464 host_cpu=$1
3465 host_vendor=$2
3466 shift; shift
3467 # Remember, the first character of IFS is used to create $*,
3468 # except with old shells:
3469 host_os=$*
3470 IFS=$ac_save_IFS
3471 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3483 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3485 # start out with intent to build Web Alpine
3486 WEB_BUILD=web/src/alpined.d
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3582 else
3583 CC="$ac_cv_prog_CC"
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_CC+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3725 done
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3769 done
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details" "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 main ()
3825 return 0;
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 $as_echo_n "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893 else
3894 ac_file=''
3896 if test -z "$ac_file"; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 as_fn_error 77 "C compiler cannot create executables
3905 See \`config.log' for more details" "$LINENO" 5; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3908 $as_echo "yes" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3911 $as_echo_n "checking for C compiler default output file name... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3913 $as_echo "$ac_file" >&6; }
3914 ac_exeext=$ac_cv_exeext
3916 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3917 ac_clean_files=$ac_clean_files_save
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3919 $as_echo_n "checking for suffix of executables... " >&6; }
3920 if { { ac_try="$ac_link"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_link") 2>&5
3928 ac_status=$?
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; then :
3931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3933 # work properly (i.e., refer to `conftest.exe'), while it won't with
3934 # `rm'.
3935 for ac_file in conftest.exe conftest conftest.*; do
3936 test -f "$ac_file" || continue
3937 case $ac_file in
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940 break;;
3941 * ) break;;
3942 esac
3943 done
3944 else
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3948 See \`config.log' for more details" "$LINENO" 5; }
3950 rm -f conftest conftest$ac_cv_exeext
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3952 $as_echo "$ac_cv_exeext" >&6; }
3954 rm -f conftest.$ac_ext
3955 EXEEXT=$ac_cv_exeext
3956 ac_exeext=$EXEEXT
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <stdio.h>
3961 main ()
3963 FILE *f = fopen ("conftest.out", "w");
3964 return ferror (f) || fclose (f) != 0;
3967 return 0;
3969 _ACEOF
3970 ac_clean_files="$ac_clean_files conftest.out"
3971 # Check that the compiler produces executables we can run. If not, either
3972 # the compiler is broken, or we cross compile.
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3974 $as_echo_n "checking whether we are cross compiling... " >&6; }
3975 if test "$cross_compiling" != yes; then
3976 { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }
3987 if { ac_try='./conftest$ac_cv_exeext'
3988 { { case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_try") 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; }; then
3998 cross_compiling=no
3999 else
4000 if test "$cross_compiling" = maybe; then
4001 cross_compiling=yes
4002 else
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot run C compiled programs.
4006 If you meant to cross compile, use \`--host'.
4007 See \`config.log' for more details" "$LINENO" 5; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4012 $as_echo "$cross_compiling" >&6; }
4014 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4015 ac_clean_files=$ac_clean_files_save
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4017 $as_echo_n "checking for suffix of object files... " >&6; }
4018 if ${ac_cv_objext+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4025 main ()
4029 return 0;
4031 _ACEOF
4032 rm -f conftest.o conftest.obj
4033 if { { ac_try="$ac_compile"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_compile") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; then :
4044 for ac_file in conftest.o conftest.obj conftest.*; do
4045 test -f "$ac_file" || continue;
4046 case $ac_file in
4047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4049 break;;
4050 esac
4051 done
4052 else
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot compute suffix of object files: cannot compile
4059 See \`config.log' for more details" "$LINENO" 5; }
4061 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4064 $as_echo "$ac_cv_objext" >&6; }
4065 OBJEXT=$ac_cv_objext
4066 ac_objext=$OBJEXT
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4068 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4069 if ${ac_cv_c_compiler_gnu+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4076 main ()
4078 #ifndef __GNUC__
4079 choke me
4080 #endif
4083 return 0;
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_compiler_gnu=yes
4088 else
4089 ac_compiler_gnu=no
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4096 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4097 if test $ac_compiler_gnu = yes; then
4098 GCC=yes
4099 else
4100 GCC=
4102 ac_test_CFLAGS=${CFLAGS+set}
4103 ac_save_CFLAGS=$CFLAGS
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4105 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4106 if ${ac_cv_prog_cc_g+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 ac_save_c_werror_flag=$ac_c_werror_flag
4110 ac_c_werror_flag=yes
4111 ac_cv_prog_cc_g=no
4112 CFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4117 main ()
4121 return 0;
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_g=yes
4126 else
4127 CFLAGS=""
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4141 else
4142 ac_c_werror_flag=$ac_save_c_werror_flag
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
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4166 $as_echo "$ac_cv_prog_cc_g" >&6; }
4167 if test "$ac_test_CFLAGS" = set; then
4168 CFLAGS=$ac_save_CFLAGS
4169 elif test $ac_cv_prog_cc_g = yes; then
4170 if test "$GCC" = yes; then
4171 CFLAGS="-g -O2"
4172 else
4173 CFLAGS="-g"
4175 else
4176 if test "$GCC" = yes; then
4177 CFLAGS="-O2"
4178 else
4179 CFLAGS=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4183 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4184 if ${ac_cv_prog_cc_c89+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 ac_cv_prog_cc_c89=no
4188 ac_save_CC=$CC
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <stdarg.h>
4192 #include <stdio.h>
4193 struct stat;
4194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4195 struct buf { int x; };
4196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4197 static char *e (p, i)
4198 char **p;
4199 int i;
4201 return p[i];
4203 static char *f (char * (*g) (char **, int), char **p, ...)
4205 char *s;
4206 va_list v;
4207 va_start (v,p);
4208 s = g (p, va_arg (v,int));
4209 va_end (v);
4210 return s;
4213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4214 function prototypes and stuff, but not '\xHH' hex character constants.
4215 These don't provoke an error unfortunately, instead are silently treated
4216 as 'x'. The following induces an error, until -std is added to get
4217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4218 array size at least. It's necessary to write '\x00'==0 to get something
4219 that's true only with -std. */
4220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4223 inside strings and character constants. */
4224 #define FOO(x) 'x'
4225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4227 int test (int i, double x);
4228 struct s1 {int (*f) (int a);};
4229 struct s2 {int (*f) (double a);};
4230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4231 int argc;
4232 char **argv;
4234 main ()
4236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4238 return 0;
4240 _ACEOF
4241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4244 CC="$ac_save_CC $ac_arg"
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_cv_prog_cc_c89=$ac_arg
4248 rm -f core conftest.err conftest.$ac_objext
4249 test "x$ac_cv_prog_cc_c89" != "xno" && break
4250 done
4251 rm -f conftest.$ac_ext
4252 CC=$ac_save_CC
4255 # AC_CACHE_VAL
4256 case "x$ac_cv_prog_cc_c89" in
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 $as_echo "none needed" >&6; } ;;
4260 xno)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4262 $as_echo "unsupported" >&6; } ;;
4264 CC="$CC $ac_cv_prog_cc_c89"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4267 esac
4268 if test "x$ac_cv_prog_cc_c89" != xno; then :
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 DEPDIR="${am__leading_dot}deps"
4279 ac_config_commands="$ac_config_commands depfiles"
4282 am_make=${MAKE-make}
4283 cat > confinc << 'END'
4284 am__doit:
4285 @echo this is the am__doit target
4286 .PHONY: am__doit
4288 # If we don't find an include directive, just comment out the code.
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4290 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4291 am__include="#"
4292 am__quote=
4293 _am_result=none
4294 # First try GNU make style include.
4295 echo "include confinc" > confmf
4296 # Ignore all kinds of additional output from 'make'.
4297 case `$am_make -s -f confmf 2> /dev/null` in #(
4298 *the\ am__doit\ target*)
4299 am__include=include
4300 am__quote=
4301 _am_result=GNU
4303 esac
4304 # Now try BSD make style include.
4305 if test "$am__include" = "#"; then
4306 echo '.include "confinc"' > confmf
4307 case `$am_make -s -f confmf 2> /dev/null` in #(
4308 *the\ am__doit\ target*)
4309 am__include=.include
4310 am__quote="\""
4311 _am_result=BSD
4313 esac
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4318 $as_echo "$_am_result" >&6; }
4319 rm -f confinc confmf
4321 # Check whether --enable-dependency-tracking was given.
4322 if test "${enable_dependency_tracking+set}" = set; then :
4323 enableval=$enable_dependency_tracking;
4326 if test "x$enable_dependency_tracking" != xno; then
4327 am_depcomp="$ac_aux_dir/depcomp"
4328 AMDEPBACKSLASH='\'
4329 am__nodep='_no'
4331 if test "x$enable_dependency_tracking" != xno; then
4332 AMDEP_TRUE=
4333 AMDEP_FALSE='#'
4334 else
4335 AMDEP_TRUE='#'
4336 AMDEP_FALSE=
4341 depcc="$CC" am_compiler_list=
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344 $as_echo_n "checking dependency style of $depcc... " >&6; }
4345 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349 # We make a subdir and do the tests there. Otherwise we can end up
4350 # making bogus files that we don't know about and never remove. For
4351 # instance it was reported that on HP-UX the gcc test will end up
4352 # making a dummy file named 'D' -- because '-MD' means "put the output
4353 # in D".
4354 rm -rf conftest.dir
4355 mkdir conftest.dir
4356 # Copy depcomp to subdir because otherwise we won't find it if we're
4357 # using a relative directory.
4358 cp "$am_depcomp" conftest.dir
4359 cd conftest.dir
4360 # We will build objects and dependencies in a subdirectory because
4361 # it helps to detect inapplicable dependency modes. For instance
4362 # both Tru64's cc and ICC support -MD to output dependencies as a
4363 # side effect of compilation, but ICC will put the dependencies in
4364 # the current directory while Tru64 will put them in the object
4365 # directory.
4366 mkdir sub
4368 am_cv_CC_dependencies_compiler_type=none
4369 if test "$am_compiler_list" = ""; then
4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4372 am__universal=false
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375 esac
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4385 : > sub/conftest.c
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4389 # Solaris 10 /bin/sh.
4390 echo '/* dummy */' > sub/conftst$i.h
4391 done
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4395 # mode. It turns out that the SunPro C++ compiler does not properly
4396 # handle '-M -o', and we need to detect this. Also, some Intel
4397 # versions had trouble with output in subdirs.
4398 am__obj=sub/conftest.${OBJEXT-o}
4399 am__minus_obj="-o $am__obj"
4400 case $depmode in
4401 gcc)
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4405 nosideeffect)
4406 # After this tag, mechanisms are not by side-effect, so they'll
4407 # only be used when explicitly requested.
4408 if test "x$enable_dependency_tracking" = xyes; then
4409 continue
4410 else
4411 break
4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415 # This compiler won't grok '-c -o', but also, the minuso test has
4416 # not run yet. These depmodes are late enough in the game, and
4417 # so weak that their functioning should not be impacted.
4418 am__obj=conftest.${OBJEXT-o}
4419 am__minus_obj=
4421 none) break ;;
4422 esac
4423 if depmode=$depmode \
4424 source=sub/conftest.c object=$am__obj \
4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427 >/dev/null 2>conftest.err &&
4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432 # icc doesn't choke on unknown options, it will just issue warnings
4433 # or remarks (even with -Werror). So we grep stderr for any message
4434 # that says an option was ignored or not supported.
4435 # When given -MP, icc 7.0 and 7.1 complain thusly:
4436 # icc: Command line warning: ignoring option '-M'; no argument required
4437 # The diagnosis changed in icc 8.0:
4438 # icc: Command line remark: option '-MP' not supported
4439 if (grep 'ignoring option' conftest.err ||
4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441 am_cv_CC_dependencies_compiler_type=$depmode
4442 break
4445 done
4447 cd ..
4448 rm -rf conftest.dir
4449 else
4450 am_cv_CC_dependencies_compiler_type=none
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4459 test "x$enable_dependency_tracking" != xno \
4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461 am__fastdepCC_TRUE=
4462 am__fastdepCC_FALSE='#'
4463 else
4464 am__fastdepCC_TRUE='#'
4465 am__fastdepCC_FALSE=
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4476 # On Suns, sometimes $CPP names a directory.
4477 if test -n "$CPP" && test -d "$CPP"; then
4478 CPP=
4480 if test -z "$CPP"; then
4481 if ${ac_cv_prog_CPP+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 # Double quotes because CPP needs to be expanded
4485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487 ac_preproc_ok=false
4488 for ac_c_preproc_warn_flag in '' yes
4490 # Use a header file that comes with gcc, so configuring glibc
4491 # with a fresh cross-compiler works.
4492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 # <limits.h> exists even on freestanding compilers.
4494 # On the NeXT, cc -E runs the code through the compiler's parser,
4495 # not just through cpp. "Syntax error" is here to catch this case.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #ifdef __STDC__
4499 # include <limits.h>
4500 #else
4501 # include <assert.h>
4502 #endif
4503 Syntax error
4504 _ACEOF
4505 if ac_fn_c_try_cpp "$LINENO"; then :
4507 else
4508 # Broken: fails on valid input.
4509 continue
4511 rm -f conftest.err conftest.i conftest.$ac_ext
4513 # OK, works on sane cases. Now check whether nonexistent headers
4514 # can be detected and how.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520 # Broken: success on invalid input.
4521 continue
4522 else
4523 # Passes both tests.
4524 ac_preproc_ok=:
4525 break
4527 rm -f conftest.err conftest.i conftest.$ac_ext
4529 done
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.i conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then :
4533 break
4536 done
4537 ac_cv_prog_CPP=$CPP
4540 CPP=$ac_cv_prog_CPP
4541 else
4542 ac_cv_prog_CPP=$CPP
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4545 $as_echo "$CPP" >&6; }
4546 ac_preproc_ok=false
4547 for ac_c_preproc_warn_flag in '' yes
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #ifdef __STDC__
4558 # include <limits.h>
4559 #else
4560 # include <assert.h>
4561 #endif
4562 Syntax error
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4566 else
4567 # Broken: fails on valid input.
4568 continue
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4577 _ACEOF
4578 if ac_fn_c_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4580 continue
4581 else
4582 # Passes both tests.
4583 ac_preproc_ok=:
4584 break
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4588 done
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.i conftest.err conftest.$ac_ext
4591 if $ac_preproc_ok; then :
4593 else
4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4597 See \`config.log' for more details" "$LINENO" 5; }
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609 save_cross_compiling=$cross_compiling
4610 save_ac_tool_prefix=$ac_tool_prefix
4611 cross_compiling=no
4612 ac_tool_prefix=
4614 ac_ext=c
4615 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4616 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4617 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC_FOR_BUILD"; then
4628 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4648 if test -n "$CC_FOR_BUILD"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4650 $as_echo "$CC_FOR_BUILD" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4659 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$ac_ct_CC_FOR_BUILD"; then
4668 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4688 if test -n "$ac_ct_CC_FOR_BUILD"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4690 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4697 CC_FOR_BUILD=""
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700 yes:)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4703 ac_tool_warned=yes ;;
4704 esac
4705 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4707 else
4708 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4711 if test -z "$CC_FOR_BUILD"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}cc; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$CC_FOR_BUILD"; then
4721 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4741 if test -n "$CC_FOR_BUILD"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4743 $as_echo "$CC_FOR_BUILD" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4752 if test -z "$CC_FOR_BUILD"; then
4753 # Extract the first word of "cc", so it can be a program name with args.
4754 set dummy cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC_FOR_BUILD"; then
4761 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4762 else
4763 ac_prog_rejected=no
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4772 ac_prog_rejected=yes
4773 continue
4775 ac_cv_prog_CC_FOR_BUILD="cc"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy $ac_cv_prog_CC_FOR_BUILD
4786 shift
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4791 shift
4792 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4797 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4798 if test -n "$CC_FOR_BUILD"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4800 $as_echo "$CC_FOR_BUILD" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4808 if test -z "$CC_FOR_BUILD"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in cl.exe
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CC_FOR_BUILD"; then
4820 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4840 if test -n "$CC_FOR_BUILD"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4842 $as_echo "$CC_FOR_BUILD" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CC_FOR_BUILD" && break
4850 done
4852 if test -z "$CC_FOR_BUILD"; then
4853 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4854 for ac_prog in cl.exe
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CC_FOR_BUILD"; then
4864 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4884 if test -n "$ac_ct_CC_FOR_BUILD"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4886 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CC_FOR_BUILD" && break
4894 done
4896 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4897 CC_FOR_BUILD=""
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4912 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error $? "no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details" "$LINENO" 5; }
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4919 set X $ac_build_compile
4920 ac_compiler=$2
4921 for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 ac_status=$?
4931 if test -s conftest.err; then
4932 sed '10a\
4933 ... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4937 rm -f conftest.er1 conftest.err
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940 done
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4943 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4944 if ${ac_cv_c_compiler_gnu+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4951 main ()
4953 #ifndef __GNUC__
4954 choke me
4955 #endif
4958 return 0;
4960 _ACEOF
4961 if ac_fn_c_try_compile "$LINENO"; then :
4962 ac_compiler_gnu=yes
4963 else
4964 ac_compiler_gnu=no
4966 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4971 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4972 if test $ac_compiler_gnu = yes; then
4973 GCC=yes
4974 else
4975 GCC=
4977 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
4978 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
4980 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
4981 if ${ac_cv_build_prog_cc_g+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 ac_save_c_werror_flag=$ac_c_werror_flag
4985 ac_c_werror_flag=yes
4986 ac_cv_build_prog_cc_g=no
4987 CFLAGS_FOR_BUILD="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4992 main ()
4996 return 0;
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_cv_build_prog_cc_g=yes
5001 else
5002 CFLAGS_FOR_BUILD=""
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5011 return 0;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5016 else
5017 ac_c_werror_flag=$ac_save_c_werror_flag
5018 CFLAGS_FOR_BUILD="-g"
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5023 main ()
5027 return 0;
5029 _ACEOF
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 ac_cv_build_prog_cc_g=yes
5033 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5035 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5037 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5038 ac_c_werror_flag=$ac_save_c_werror_flag
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5041 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5042 if test "$ac_test_CFLAGS" = set; then
5043 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5044 elif test $ac_cv_build_prog_cc_g = yes; then
5045 if test "$GCC" = yes; then
5046 CFLAGS_FOR_BUILD="-g -O2"
5047 else
5048 CFLAGS_FOR_BUILD="-g"
5050 else
5051 if test "$GCC" = yes; then
5052 CFLAGS_FOR_BUILD="-O2"
5053 else
5054 CFLAGS_FOR_BUILD=
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5058 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5059 if ${ac_cv_prog_cc_c89+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 ac_cv_prog_cc_c89=no
5063 ac_save_CC=$CC_FOR_BUILD
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 #include <stdarg.h>
5067 #include <stdio.h>
5068 struct stat;
5069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5070 struct buf { int x; };
5071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5072 static char *e (p, i)
5073 char **p;
5074 int i;
5076 return p[i];
5078 static char *f (char * (*g) (char **, int), char **p, ...)
5080 char *s;
5081 va_list v;
5082 va_start (v,p);
5083 s = g (p, va_arg (v,int));
5084 va_end (v);
5085 return s;
5088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5089 function prototypes and stuff, but not '\xHH' hex character constants.
5090 These don't provoke an error unfortunately, instead are silently treated
5091 as 'x'. The following induces an error, until -std is added to get
5092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5093 array size at least. It's necessary to write '\x00'==0 to get something
5094 that's true only with -std. */
5095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5098 inside strings and character constants. */
5099 #define FOO(x) 'x'
5100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5102 int test (int i, double x);
5103 struct s1 {int (*f) (int a);};
5104 struct s2 {int (*f) (double a);};
5105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5106 int argc;
5107 char **argv;
5109 main ()
5111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5113 return 0;
5115 _ACEOF
5116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5119 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5120 if ac_fn_c_try_compile "$LINENO"; then :
5121 ac_cv_prog_cc_c89=$ac_arg
5123 rm -f core conftest.err conftest.$ac_build_objext
5124 test "x$ac_cv_prog_cc_c89" != "xno" && break
5125 done
5126 rm -f conftest.$ac_ext
5127 CC_FOR_BUILD=$ac_save_CC
5130 # AC_CACHE_VAL
5131 case "x$ac_cv_prog_cc_c89" in
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5134 $as_echo "none needed" >&6; } ;;
5135 xno)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5137 $as_echo "unsupported" >&6; } ;;
5139 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5142 esac
5143 if test "x$ac_cv_prog_cc_c89" != xno; then :
5147 ac_ext=c
5148 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5149 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5150 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 depcc="$CC_FOR_BUILD" am_compiler_list=
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5156 $as_echo_n "checking dependency style of $depcc... " >&6; }
5157 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161 # We make a subdir and do the tests there. Otherwise we can end up
5162 # making bogus files that we don't know about and never remove. For
5163 # instance it was reported that on HP-UX the gcc test will end up
5164 # making a dummy file named 'D' -- because '-MD' means "put the output
5165 # in D".
5166 rm -rf conftest.dir
5167 mkdir conftest.dir
5168 # Copy depcomp to subdir because otherwise we won't find it if we're
5169 # using a relative directory.
5170 cp "$am_depcomp" conftest.dir
5171 cd conftest.dir
5172 # We will build objects and dependencies in a subdirectory because
5173 # it helps to detect inapplicable dependency modes. For instance
5174 # both Tru64's cc and ICC support -MD to output dependencies as a
5175 # side effect of compilation, but ICC will put the dependencies in
5176 # the current directory while Tru64 will put them in the object
5177 # directory.
5178 mkdir sub
5180 am_cv_CC_dependencies_compiler_type=none
5181 if test "$am_compiler_list" = ""; then
5182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5184 am__universal=false
5185 case " $depcc " in #(
5186 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5187 esac
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5197 : > sub/conftest.c
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5201 # Solaris 10 /bin/sh.
5202 echo '/* dummy */' > sub/conftst$i.h
5203 done
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5206 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5207 # mode. It turns out that the SunPro C++ compiler does not properly
5208 # handle '-M -o', and we need to detect this. Also, some Intel
5209 # versions had trouble with output in subdirs.
5210 am__obj=sub/conftest.${OBJEXT-o}
5211 am__minus_obj="-o $am__obj"
5212 case $depmode in
5213 gcc)
5214 # This depmode causes a compiler race in universal mode.
5215 test "$am__universal" = false || continue
5217 nosideeffect)
5218 # After this tag, mechanisms are not by side-effect, so they'll
5219 # only be used when explicitly requested.
5220 if test "x$enable_dependency_tracking" = xyes; then
5221 continue
5222 else
5223 break
5226 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5227 # This compiler won't grok '-c -o', but also, the minuso test has
5228 # not run yet. These depmodes are late enough in the game, and
5229 # so weak that their functioning should not be impacted.
5230 am__obj=conftest.${OBJEXT-o}
5231 am__minus_obj=
5233 none) break ;;
5234 esac
5235 if depmode=$depmode \
5236 source=sub/conftest.c object=$am__obj \
5237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5239 >/dev/null 2>conftest.err &&
5240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5244 # icc doesn't choke on unknown options, it will just issue warnings
5245 # or remarks (even with -Werror). So we grep stderr for any message
5246 # that says an option was ignored or not supported.
5247 # When given -MP, icc 7.0 and 7.1 complain thusly:
5248 # icc: Command line warning: ignoring option '-M'; no argument required
5249 # The diagnosis changed in icc 8.0:
5250 # icc: Command line remark: option '-MP' not supported
5251 if (grep 'ignoring option' conftest.err ||
5252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5253 am_cv_CC_dependencies_compiler_type=$depmode
5254 break
5257 done
5259 cd ..
5260 rm -rf conftest.dir
5261 else
5262 am_cv_CC_dependencies_compiler_type=none
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5267 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5271 test "x$enable_dependency_tracking" != xno \
5272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5273 am__fastdepCC_TRUE=
5274 am__fastdepCC_FALSE='#'
5275 else
5276 am__fastdepCC_TRUE='#'
5277 am__fastdepCC_FALSE=
5281 ac_ext=c
5282 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5283 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5284 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5287 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5288 # On Suns, sometimes $CPP names a directory.
5289 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5290 CPP_FOR_BUILD=
5292 if test -z "$CPP_FOR_BUILD"; then
5293 if ${ac_cv_build_prog_CPP+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 # Double quotes because CPP needs to be expanded
5297 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5299 ac_preproc_ok=false
5300 for ac_c_preproc_warn_flag in '' yes
5302 # Use a header file that comes with gcc, so configuring glibc
5303 # with a fresh cross-compiler works.
5304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305 # <limits.h> exists even on freestanding compilers.
5306 # On the NeXT, cc -E runs the code through the compiler's parser,
5307 # not just through cpp. "Syntax error" is here to catch this case.
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 #ifdef __STDC__
5311 # include <limits.h>
5312 #else
5313 # include <assert.h>
5314 #endif
5315 Syntax error
5316 _ACEOF
5317 if ac_fn_c_try_cpp "$LINENO"; then :
5319 else
5320 # Broken: fails on valid input.
5321 continue
5323 rm -f conftest.err conftest.i conftest.$ac_ext
5325 # OK, works on sane cases. Now check whether nonexistent headers
5326 # can be detected and how.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #include <ac_nonexistent.h>
5330 _ACEOF
5331 if ac_fn_c_try_cpp "$LINENO"; then :
5332 # Broken: success on invalid input.
5333 continue
5334 else
5335 # Passes both tests.
5336 ac_preproc_ok=:
5337 break
5339 rm -f conftest.err conftest.i conftest.$ac_ext
5341 done
5342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5343 rm -f conftest.i conftest.err conftest.$ac_ext
5344 if $ac_preproc_ok; then :
5345 break
5348 done
5349 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5352 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5353 else
5354 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5357 $as_echo "$CPP_FOR_BUILD" >&6; }
5358 ac_preproc_ok=false
5359 for ac_c_preproc_warn_flag in '' yes
5361 # Use a header file that comes with gcc, so configuring glibc
5362 # with a fresh cross-compiler works.
5363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364 # <limits.h> exists even on freestanding compilers.
5365 # On the NeXT, cc -E runs the code through the compiler's parser,
5366 # not just through cpp. "Syntax error" is here to catch this case.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #ifdef __STDC__
5370 # include <limits.h>
5371 #else
5372 # include <assert.h>
5373 #endif
5374 Syntax error
5375 _ACEOF
5376 if ac_fn_c_try_cpp "$LINENO"; then :
5378 else
5379 # Broken: fails on valid input.
5380 continue
5382 rm -f conftest.err conftest.i conftest.$ac_ext
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <ac_nonexistent.h>
5389 _ACEOF
5390 if ac_fn_c_try_cpp "$LINENO"; then :
5391 # Broken: success on invalid input.
5392 continue
5393 else
5394 # Passes both tests.
5395 ac_preproc_ok=:
5396 break
5398 rm -f conftest.err conftest.i conftest.$ac_ext
5400 done
5401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402 rm -f conftest.i conftest.err conftest.$ac_ext
5403 if $ac_preproc_ok; then :
5405 else
5406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5409 See \`config.log' for more details" "$LINENO" 5; }
5412 ac_ext=c
5413 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5414 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5415 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 ac_tool_prefix=$save_ac_tool_prefix
5421 cross_compiling=$save_cross_compiling
5424 BUILD_EXEEXT=$ac_build_exeext
5425 BUILD_OBJEXT=$ac_build_objext
5427 case $ac_cv_prog_cc_stdc in #(
5428 no) :
5429 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5430 *) :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5432 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5433 if ${ac_cv_prog_cc_c99+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 ac_cv_prog_cc_c99=no
5437 ac_save_CC=$CC
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <stdarg.h>
5441 #include <stdbool.h>
5442 #include <stdlib.h>
5443 #include <wchar.h>
5444 #include <stdio.h>
5446 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5447 #define debug(...) fprintf (stderr, __VA_ARGS__)
5448 #define showlist(...) puts (#__VA_ARGS__)
5449 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5450 static void
5451 test_varargs_macros (void)
5453 int x = 1234;
5454 int y = 5678;
5455 debug ("Flag");
5456 debug ("X = %d\n", x);
5457 showlist (The first, second, and third items.);
5458 report (x>y, "x is %d but y is %d", x, y);
5461 // Check long long types.
5462 #define BIG64 18446744073709551615ull
5463 #define BIG32 4294967295ul
5464 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5465 #if !BIG_OK
5466 your preprocessor is broken;
5467 #endif
5468 #if BIG_OK
5469 #else
5470 your preprocessor is broken;
5471 #endif
5472 static long long int bignum = -9223372036854775807LL;
5473 static unsigned long long int ubignum = BIG64;
5475 struct incomplete_array
5477 int datasize;
5478 double data[];
5481 struct named_init {
5482 int number;
5483 const wchar_t *name;
5484 double average;
5487 typedef const char *ccp;
5489 static inline int
5490 test_restrict (ccp restrict text)
5492 // See if C++-style comments work.
5493 // Iterate through items via the restricted pointer.
5494 // Also check for declarations in for loops.
5495 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5496 continue;
5497 return 0;
5500 // Check varargs and va_copy.
5501 static void
5502 test_varargs (const char *format, ...)
5504 va_list args;
5505 va_start (args, format);
5506 va_list args_copy;
5507 va_copy (args_copy, args);
5509 const char *str;
5510 int number;
5511 float fnumber;
5513 while (*format)
5515 switch (*format++)
5517 case 's': // string
5518 str = va_arg (args_copy, const char *);
5519 break;
5520 case 'd': // int
5521 number = va_arg (args_copy, int);
5522 break;
5523 case 'f': // float
5524 fnumber = va_arg (args_copy, double);
5525 break;
5526 default:
5527 break;
5530 va_end (args_copy);
5531 va_end (args);
5535 main ()
5538 // Check bool.
5539 _Bool success = false;
5541 // Check restrict.
5542 if (test_restrict ("String literal") == 0)
5543 success = true;
5544 char *restrict newvar = "Another string";
5546 // Check varargs.
5547 test_varargs ("s, d' f .", "string", 65, 34.234);
5548 test_varargs_macros ();
5550 // Check flexible array members.
5551 struct incomplete_array *ia =
5552 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5553 ia->datasize = 10;
5554 for (int i = 0; i < ia->datasize; ++i)
5555 ia->data[i] = i * 1.234;
5557 // Check named initializers.
5558 struct named_init ni = {
5559 .number = 34,
5560 .name = L"Test wide string",
5561 .average = 543.34343,
5564 ni.number = 58;
5566 int dynamic_array[ni.number];
5567 dynamic_array[ni.number - 1] = 543;
5569 // work around unused variable warnings
5570 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5571 || dynamic_array[ni.number - 1] != 543);
5574 return 0;
5576 _ACEOF
5577 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5579 CC="$ac_save_CC $ac_arg"
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_prog_cc_c99=$ac_arg
5583 rm -f core conftest.err conftest.$ac_objext
5584 test "x$ac_cv_prog_cc_c99" != "xno" && break
5585 done
5586 rm -f conftest.$ac_ext
5587 CC=$ac_save_CC
5590 # AC_CACHE_VAL
5591 case "x$ac_cv_prog_cc_c99" in
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5594 $as_echo "none needed" >&6; } ;;
5595 xno)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5597 $as_echo "unsupported" >&6; } ;;
5599 CC="$CC $ac_cv_prog_cc_c99"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5601 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5602 esac
5603 if test "x$ac_cv_prog_cc_c99" != xno; then :
5604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5607 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5608 if ${ac_cv_prog_cc_c89+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_cv_prog_cc_c89=no
5612 ac_save_CC=$CC
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <stdarg.h>
5616 #include <stdio.h>
5617 struct stat;
5618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5619 struct buf { int x; };
5620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5621 static char *e (p, i)
5622 char **p;
5623 int i;
5625 return p[i];
5627 static char *f (char * (*g) (char **, int), char **p, ...)
5629 char *s;
5630 va_list v;
5631 va_start (v,p);
5632 s = g (p, va_arg (v,int));
5633 va_end (v);
5634 return s;
5637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5638 function prototypes and stuff, but not '\xHH' hex character constants.
5639 These don't provoke an error unfortunately, instead are silently treated
5640 as 'x'. The following induces an error, until -std is added to get
5641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5642 array size at least. It's necessary to write '\x00'==0 to get something
5643 that's true only with -std. */
5644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5647 inside strings and character constants. */
5648 #define FOO(x) 'x'
5649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5651 int test (int i, double x);
5652 struct s1 {int (*f) (int a);};
5653 struct s2 {int (*f) (double a);};
5654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5655 int argc;
5656 char **argv;
5658 main ()
5660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5662 return 0;
5664 _ACEOF
5665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5668 CC="$ac_save_CC $ac_arg"
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_prog_cc_c89=$ac_arg
5672 rm -f core conftest.err conftest.$ac_objext
5673 test "x$ac_cv_prog_cc_c89" != "xno" && break
5674 done
5675 rm -f conftest.$ac_ext
5676 CC=$ac_save_CC
5679 # AC_CACHE_VAL
5680 case "x$ac_cv_prog_cc_c89" in
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5683 $as_echo "none needed" >&6; } ;;
5684 xno)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5686 $as_echo "unsupported" >&6; } ;;
5688 CC="$CC $ac_cv_prog_cc_c89"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5690 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5691 esac
5692 if test "x$ac_cv_prog_cc_c89" != xno; then :
5693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5694 else
5695 ac_cv_prog_cc_stdc=no
5700 esac
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5702 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5703 if ${ac_cv_prog_cc_stdc+:} false; then :
5704 $as_echo_n "(cached) " >&6
5707 case $ac_cv_prog_cc_stdc in #(
5708 no) :
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5710 $as_echo "unsupported" >&6; } ;; #(
5711 '') :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5713 $as_echo "none needed" >&6; } ;; #(
5714 *) :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5716 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5717 esac
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5721 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5722 set x ${MAKE-make}
5723 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5724 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 cat >conftest.make <<\_ACEOF
5728 SHELL = /bin/sh
5729 all:
5730 @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 _ACEOF
5732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734 *@@@%%%=?*=@@@%%%*)
5735 eval ac_cv_prog_make_${ac_make}_set=yes;;
5737 eval ac_cv_prog_make_${ac_make}_set=no;;
5738 esac
5739 rm -f conftest.make
5741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743 $as_echo "yes" >&6; }
5744 SET_MAKE=
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 SET_MAKE="MAKE=${MAKE-make}"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5752 $as_echo_n "checking whether ln -s works... " >&6; }
5753 LN_S=$as_ln_s
5754 if test "$LN_S" = "ln -s"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5759 $as_echo "no, using $LN_S" >&6; }
5762 for ac_prog in gawk mawk nawk awk
5764 # Extract the first word of "$ac_prog", so it can be a program name with args.
5765 set dummy $ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_AWK+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$AWK"; then
5772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AWK="$ac_prog"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5785 done
5786 done
5787 IFS=$as_save_IFS
5791 AWK=$ac_cv_prog_AWK
5792 if test -n "$AWK"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5794 $as_echo "$AWK" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5801 test -n "$AWK" && break
5802 done
5804 case `pwd` in
5805 *\ * | *\ *)
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5807 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5808 esac
5812 macro_version='2.4.2'
5813 macro_revision='1.3337'
5827 ltmain="$ac_aux_dir/ltmain.sh"
5829 # Backslashify metacharacters that are still active within
5830 # double-quoted strings.
5831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5833 # Same as above, but do not quote variable references.
5834 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5836 # Sed substitution to delay expansion of an escaped shell variable in a
5837 # double_quote_subst'ed string.
5838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5840 # Sed substitution to delay expansion of an escaped single quote.
5841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5843 # Sed substitution to avoid accidental globbing in evaled expressions
5844 no_glob_subst='s/\*/\\\*/g'
5846 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5851 $as_echo_n "checking how to print strings... " >&6; }
5852 # Test print first, because it will be a builtin if present.
5853 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5855 ECHO='print -r --'
5856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5857 ECHO='printf %s\n'
5858 else
5859 # Use this function as a fallback that always works.
5860 func_fallback_echo ()
5862 eval 'cat <<_LTECHO_EOF
5864 _LTECHO_EOF'
5866 ECHO='func_fallback_echo'
5869 # func_echo_all arg...
5870 # Invoke $ECHO with all args, space-separated.
5871 func_echo_all ()
5873 $ECHO ""
5876 case "$ECHO" in
5877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5878 $as_echo "printf" >&6; } ;;
5879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5880 $as_echo "print -r" >&6; } ;;
5881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5882 $as_echo "cat" >&6; } ;;
5883 esac
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5899 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5900 if ${ac_cv_path_SED+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5904 for ac_i in 1 2 3 4 5 6 7; do
5905 ac_script="$ac_script$as_nl$ac_script"
5906 done
5907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5908 { ac_script=; unset ac_script;}
5909 if test -z "$SED"; then
5910 ac_path_SED_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_prog in sed gsed; do
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5920 as_fn_executable_p "$ac_path_SED" || continue
5921 # Check for GNU ac_path_SED and select it if it is found.
5922 # Check for GNU $ac_path_SED
5923 case `"$ac_path_SED" --version 2>&1` in
5924 *GNU*)
5925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5927 ac_count=0
5928 $as_echo_n 0123456789 >"conftest.in"
5929 while :
5931 cat "conftest.in" "conftest.in" >"conftest.tmp"
5932 mv "conftest.tmp" "conftest.in"
5933 cp "conftest.in" "conftest.nl"
5934 $as_echo '' >> "conftest.nl"
5935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937 as_fn_arith $ac_count + 1 && ac_count=$as_val
5938 if test $ac_count -gt ${ac_path_SED_max-0}; then
5939 # Best one so far, save it but keep looking for a better one
5940 ac_cv_path_SED="$ac_path_SED"
5941 ac_path_SED_max=$ac_count
5943 # 10*(2^10) chars as input seems more than enough
5944 test $ac_count -gt 10 && break
5945 done
5946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5947 esac
5949 $ac_path_SED_found && break 3
5950 done
5951 done
5952 done
5953 IFS=$as_save_IFS
5954 if test -z "$ac_cv_path_SED"; then
5955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5957 else
5958 ac_cv_path_SED=$SED
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5963 $as_echo "$ac_cv_path_SED" >&6; }
5964 SED="$ac_cv_path_SED"
5965 rm -f conftest.sed
5967 test -z "$SED" && SED=sed
5968 Xsed="$SED -e 1s/^X//"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5982 if ${ac_cv_path_GREP+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 if test -z "$GREP"; then
5986 ac_path_GREP_found=false
5987 # Loop through the user's path and test for each of PROGNAME-LIST
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_prog in grep ggrep; do
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5996 as_fn_executable_p "$ac_path_GREP" || continue
5997 # Check for GNU ac_path_GREP and select it if it is found.
5998 # Check for GNU $ac_path_GREP
5999 case `"$ac_path_GREP" --version 2>&1` in
6000 *GNU*)
6001 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6003 ac_count=0
6004 $as_echo_n 0123456789 >"conftest.in"
6005 while :
6007 cat "conftest.in" "conftest.in" >"conftest.tmp"
6008 mv "conftest.tmp" "conftest.in"
6009 cp "conftest.in" "conftest.nl"
6010 $as_echo 'GREP' >> "conftest.nl"
6011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6013 as_fn_arith $ac_count + 1 && ac_count=$as_val
6014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6015 # Best one so far, save it but keep looking for a better one
6016 ac_cv_path_GREP="$ac_path_GREP"
6017 ac_path_GREP_max=$ac_count
6019 # 10*(2^10) chars as input seems more than enough
6020 test $ac_count -gt 10 && break
6021 done
6022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6023 esac
6025 $ac_path_GREP_found && break 3
6026 done
6027 done
6028 done
6029 IFS=$as_save_IFS
6030 if test -z "$ac_cv_path_GREP"; then
6031 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6033 else
6034 ac_cv_path_GREP=$GREP
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6039 $as_echo "$ac_cv_path_GREP" >&6; }
6040 GREP="$ac_cv_path_GREP"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6044 $as_echo_n "checking for egrep... " >&6; }
6045 if ${ac_cv_path_EGREP+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6049 then ac_cv_path_EGREP="$GREP -E"
6050 else
6051 if test -z "$EGREP"; then
6052 ac_path_EGREP_found=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_prog in egrep; do
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6062 as_fn_executable_p "$ac_path_EGREP" || continue
6063 # Check for GNU ac_path_EGREP and select it if it is found.
6064 # Check for GNU $ac_path_EGREP
6065 case `"$ac_path_EGREP" --version 2>&1` in
6066 *GNU*)
6067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6069 ac_count=0
6070 $as_echo_n 0123456789 >"conftest.in"
6071 while :
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'EGREP' >> "conftest.nl"
6077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079 as_fn_arith $ac_count + 1 && ac_count=$as_val
6080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_EGREP="$ac_path_EGREP"
6083 ac_path_EGREP_max=$ac_count
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6087 done
6088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6089 esac
6091 $ac_path_EGREP_found && break 3
6092 done
6093 done
6094 done
6095 IFS=$as_save_IFS
6096 if test -z "$ac_cv_path_EGREP"; then
6097 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6099 else
6100 ac_cv_path_EGREP=$EGREP
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6106 $as_echo "$ac_cv_path_EGREP" >&6; }
6107 EGREP="$ac_cv_path_EGREP"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6111 $as_echo_n "checking for fgrep... " >&6; }
6112 if ${ac_cv_path_FGREP+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6116 then ac_cv_path_FGREP="$GREP -F"
6117 else
6118 if test -z "$FGREP"; then
6119 ac_path_FGREP_found=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_prog in fgrep; do
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6129 as_fn_executable_p "$ac_path_FGREP" || continue
6130 # Check for GNU ac_path_FGREP and select it if it is found.
6131 # Check for GNU $ac_path_FGREP
6132 case `"$ac_path_FGREP" --version 2>&1` in
6133 *GNU*)
6134 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6136 ac_count=0
6137 $as_echo_n 0123456789 >"conftest.in"
6138 while :
6140 cat "conftest.in" "conftest.in" >"conftest.tmp"
6141 mv "conftest.tmp" "conftest.in"
6142 cp "conftest.in" "conftest.nl"
6143 $as_echo 'FGREP' >> "conftest.nl"
6144 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146 as_fn_arith $ac_count + 1 && ac_count=$as_val
6147 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6148 # Best one so far, save it but keep looking for a better one
6149 ac_cv_path_FGREP="$ac_path_FGREP"
6150 ac_path_FGREP_max=$ac_count
6152 # 10*(2^10) chars as input seems more than enough
6153 test $ac_count -gt 10 && break
6154 done
6155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156 esac
6158 $ac_path_FGREP_found && break 3
6159 done
6160 done
6161 done
6162 IFS=$as_save_IFS
6163 if test -z "$ac_cv_path_FGREP"; then
6164 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6166 else
6167 ac_cv_path_FGREP=$FGREP
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6173 $as_echo "$ac_cv_path_FGREP" >&6; }
6174 FGREP="$ac_cv_path_FGREP"
6177 test -z "$GREP" && GREP=grep
6197 # Check whether --with-gnu-ld was given.
6198 if test "${with_gnu_ld+set}" = set; then :
6199 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6200 else
6201 with_gnu_ld=no
6204 ac_prog=ld
6205 if test "$GCC" = yes; then
6206 # Check if gcc -print-prog-name=ld gives a path.
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6208 $as_echo_n "checking for ld used by $CC... " >&6; }
6209 case $host in
6210 *-*-mingw*)
6211 # gcc leaves a trailing carriage return which upsets mingw
6212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6215 esac
6216 case $ac_prog in
6217 # Accept absolute paths.
6218 [\\/]* | ?:[\\/]*)
6219 re_direlt='/[^/][^/]*/\.\./'
6220 # Canonicalize the pathname of ld
6221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6224 done
6225 test -z "$LD" && LD="$ac_prog"
6228 # If it fails, then pretend we aren't using GCC.
6229 ac_prog=ld
6232 # If it is relative, then search for the first ld in PATH.
6233 with_gnu_ld=unknown
6235 esac
6236 elif test "$with_gnu_ld" = yes; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6238 $as_echo_n "checking for GNU ld... " >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6241 $as_echo_n "checking for non-GNU ld... " >&6; }
6243 if ${lt_cv_path_LD+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -z "$LD"; then
6247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6248 for ac_dir in $PATH; do
6249 IFS="$lt_save_ifs"
6250 test -z "$ac_dir" && ac_dir=.
6251 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6252 lt_cv_path_LD="$ac_dir/$ac_prog"
6253 # Check to see if the program is GNU ld. I'd rather use --version,
6254 # but apparently some variants of GNU ld only accept -v.
6255 # Break only if it was the GNU/non-GNU ld that we prefer.
6256 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6257 *GNU* | *'with BFD'*)
6258 test "$with_gnu_ld" != no && break
6261 test "$with_gnu_ld" != yes && break
6263 esac
6265 done
6266 IFS="$lt_save_ifs"
6267 else
6268 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6272 LD="$lt_cv_path_LD"
6273 if test -n "$LD"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6275 $as_echo "$LD" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6280 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6283 if ${lt_cv_prog_gnu_ld+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6287 case `$LD -v 2>&1 </dev/null` in
6288 *GNU* | *'with BFD'*)
6289 lt_cv_prog_gnu_ld=yes
6292 lt_cv_prog_gnu_ld=no
6294 esac
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6297 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6298 with_gnu_ld=$lt_cv_prog_gnu_ld
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6309 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6310 if ${lt_cv_path_NM+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$NM"; then
6314 # Let the user override the test.
6315 lt_cv_path_NM="$NM"
6316 else
6317 lt_nm_to_check="${ac_tool_prefix}nm"
6318 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6319 lt_nm_to_check="$lt_nm_to_check nm"
6321 for lt_tmp_nm in $lt_nm_to_check; do
6322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6323 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6324 IFS="$lt_save_ifs"
6325 test -z "$ac_dir" && ac_dir=.
6326 tmp_nm="$ac_dir/$lt_tmp_nm"
6327 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6328 # Check to see if the nm accepts a BSD-compat flag.
6329 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6330 # nm: unknown option "B" ignored
6331 # Tru64's nm complains that /dev/null is an invalid object file
6332 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6333 */dev/null* | *'Invalid file or object type'*)
6334 lt_cv_path_NM="$tmp_nm -B"
6335 break
6338 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6339 */dev/null*)
6340 lt_cv_path_NM="$tmp_nm -p"
6341 break
6344 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6345 continue # so that we can try to find one that supports BSD flags
6347 esac
6349 esac
6351 done
6352 IFS="$lt_save_ifs"
6353 done
6354 : ${lt_cv_path_NM=no}
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6358 $as_echo "$lt_cv_path_NM" >&6; }
6359 if test "$lt_cv_path_NM" != "no"; then
6360 NM="$lt_cv_path_NM"
6361 else
6362 # Didn't find any BSD compatible name lister, look for dumpbin.
6363 if test -n "$DUMPBIN"; then :
6364 # Let the user override the test.
6365 else
6366 if test -n "$ac_tool_prefix"; then
6367 for ac_prog in dumpbin "link -dump"
6369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_DUMPBIN+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$DUMPBIN"; then
6377 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6390 done
6391 done
6392 IFS=$as_save_IFS
6396 DUMPBIN=$ac_cv_prog_DUMPBIN
6397 if test -n "$DUMPBIN"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6399 $as_echo "$DUMPBIN" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6406 test -n "$DUMPBIN" && break
6407 done
6409 if test -z "$DUMPBIN"; then
6410 ac_ct_DUMPBIN=$DUMPBIN
6411 for ac_prog in dumpbin "link -dump"
6413 # Extract the first word of "$ac_prog", so it can be a program name with args.
6414 set dummy $ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$ac_ct_DUMPBIN"; then
6421 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6436 IFS=$as_save_IFS
6440 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6441 if test -n "$ac_ct_DUMPBIN"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6443 $as_echo "$ac_ct_DUMPBIN" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6450 test -n "$ac_ct_DUMPBIN" && break
6451 done
6453 if test "x$ac_ct_DUMPBIN" = x; then
6454 DUMPBIN=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 DUMPBIN=$ac_ct_DUMPBIN
6466 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6467 *COFF*)
6468 DUMPBIN="$DUMPBIN -symbols"
6471 DUMPBIN=:
6473 esac
6476 if test "$DUMPBIN" != ":"; then
6477 NM="$DUMPBIN"
6480 test -z "$NM" && NM=nm
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6488 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6489 if ${lt_cv_nm_interface+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 lt_cv_nm_interface="BSD nm"
6493 echo "int some_variable = 0;" > conftest.$ac_ext
6494 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6495 (eval "$ac_compile" 2>conftest.err)
6496 cat conftest.err >&5
6497 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6498 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6499 cat conftest.err >&5
6500 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6501 cat conftest.out >&5
6502 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6503 lt_cv_nm_interface="MS dumpbin"
6505 rm -f conftest*
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6508 $as_echo "$lt_cv_nm_interface" >&6; }
6510 # find the maximum length of command line arguments
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6512 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6513 if ${lt_cv_sys_max_cmd_len+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6517 teststring="ABCD"
6519 case $build_os in
6520 msdosdjgpp*)
6521 # On DJGPP, this test can blow up pretty badly due to problems in libc
6522 # (any single argument exceeding 2000 bytes causes a buffer overrun
6523 # during glob expansion). Even if it were fixed, the result of this
6524 # check would be larger than it should be.
6525 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6528 gnu*)
6529 # Under GNU Hurd, this test is not required because there is
6530 # no limit to the length of command line arguments.
6531 # Libtool will interpret -1 as no limit whatsoever
6532 lt_cv_sys_max_cmd_len=-1;
6535 cygwin* | mingw* | cegcc*)
6536 # On Win9x/ME, this test blows up -- it succeeds, but takes
6537 # about 5 minutes as the teststring grows exponentially.
6538 # Worse, since 9x/ME are not pre-emptively multitasking,
6539 # you end up with a "frozen" computer, even though with patience
6540 # the test eventually succeeds (with a max line length of 256k).
6541 # Instead, let's just punt: use the minimum linelength reported by
6542 # all of the supported platforms: 8192 (on NT/2K/XP).
6543 lt_cv_sys_max_cmd_len=8192;
6546 mint*)
6547 # On MiNT this can take a long time and run out of memory.
6548 lt_cv_sys_max_cmd_len=8192;
6551 amigaos*)
6552 # On AmigaOS with pdksh, this test takes hours, literally.
6553 # So we just punt and use a minimum line length of 8192.
6554 lt_cv_sys_max_cmd_len=8192;
6557 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6558 # This has been around since 386BSD, at least. Likely further.
6559 if test -x /sbin/sysctl; then
6560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6561 elif test -x /usr/sbin/sysctl; then
6562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6563 else
6564 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6566 # And add a safety zone
6567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6571 interix*)
6572 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6573 lt_cv_sys_max_cmd_len=196608
6576 os2*)
6577 # The test takes a long time on OS/2.
6578 lt_cv_sys_max_cmd_len=8192
6581 osf*)
6582 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6583 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6584 # nice to cause kernel panics so lets avoid the loop below.
6585 # First set a reasonable default.
6586 lt_cv_sys_max_cmd_len=16384
6588 if test -x /sbin/sysconfig; then
6589 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6590 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6591 esac
6594 sco3.2v5*)
6595 lt_cv_sys_max_cmd_len=102400
6597 sysv5* | sco5v6* | sysv4.2uw2*)
6598 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6599 if test -n "$kargmax"; then
6600 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6601 else
6602 lt_cv_sys_max_cmd_len=32768
6606 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6607 if test -n "$lt_cv_sys_max_cmd_len"; then
6608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610 else
6611 # Make teststring a little bigger before we do anything with it.
6612 # a 1K string should be a reasonable start.
6613 for i in 1 2 3 4 5 6 7 8 ; do
6614 teststring=$teststring$teststring
6615 done
6616 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6617 # If test is not a shell built-in, we'll probably end up computing a
6618 # maximum length that is only half of the actual maximum length, but
6619 # we can't tell.
6620 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6621 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6622 test $i != 17 # 1/2 MB should be enough
6624 i=`expr $i + 1`
6625 teststring=$teststring$teststring
6626 done
6627 # Only check the string length outside the loop.
6628 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6629 teststring=
6630 # Add a significant safety factor because C++ compilers can tack on
6631 # massive amounts of additional arguments before passing them to the
6632 # linker. It appears as though 1/2 is a usable value.
6633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6636 esac
6640 if test -n $lt_cv_sys_max_cmd_len ; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6642 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6645 $as_echo "none" >&6; }
6647 max_cmd_len=$lt_cv_sys_max_cmd_len
6654 : ${CP="cp -f"}
6655 : ${MV="mv -f"}
6656 : ${RM="rm -f"}
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6659 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6660 # Try some XSI features
6661 xsi_shell=no
6662 ( _lt_dummy="a/b/c"
6663 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6664 = c,a/b,b/c, \
6665 && eval 'test $(( 1 + 1 )) -eq 2 \
6666 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6667 && xsi_shell=yes
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6669 $as_echo "$xsi_shell" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6673 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6674 lt_shell_append=no
6675 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6676 >/dev/null 2>&1 \
6677 && lt_shell_append=yes
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6679 $as_echo "$lt_shell_append" >&6; }
6682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6683 lt_unset=unset
6684 else
6685 lt_unset=false
6692 # test EBCDIC or ASCII
6693 case `echo X|tr X '\101'` in
6694 A) # ASCII based system
6695 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6696 lt_SP2NL='tr \040 \012'
6697 lt_NL2SP='tr \015\012 \040\040'
6699 *) # EBCDIC based system
6700 lt_SP2NL='tr \100 \n'
6701 lt_NL2SP='tr \r\n \100\100'
6703 esac
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6714 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6715 if ${lt_cv_to_host_file_cmd+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 case $host in
6719 *-*-mingw* )
6720 case $build in
6721 *-*-mingw* ) # actually msys
6722 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6724 *-*-cygwin* )
6725 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6727 * ) # otherwise, assume *nix
6728 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6730 esac
6732 *-*-cygwin* )
6733 case $build in
6734 *-*-mingw* ) # actually msys
6735 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6737 *-*-cygwin* )
6738 lt_cv_to_host_file_cmd=func_convert_file_noop
6740 * ) # otherwise, assume *nix
6741 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6743 esac
6745 * ) # unhandled hosts (and "normal" native builds)
6746 lt_cv_to_host_file_cmd=func_convert_file_noop
6748 esac
6752 to_host_file_cmd=$lt_cv_to_host_file_cmd
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6754 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6761 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6762 if ${lt_cv_to_tool_file_cmd+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 #assume ordinary cross tools, or native build.
6766 lt_cv_to_tool_file_cmd=func_convert_file_noop
6767 case $host in
6768 *-*-mingw* )
6769 case $build in
6770 *-*-mingw* ) # actually msys
6771 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6773 esac
6775 esac
6779 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6781 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6788 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6789 if ${lt_cv_ld_reload_flag+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 lt_cv_ld_reload_flag='-r'
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6795 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6796 reload_flag=$lt_cv_ld_reload_flag
6797 case $reload_flag in
6798 "" | " "*) ;;
6799 *) reload_flag=" $reload_flag" ;;
6800 esac
6801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6802 case $host_os in
6803 cygwin* | mingw* | pw32* | cegcc*)
6804 if test "$GCC" != yes; then
6805 reload_cmds=false
6808 darwin*)
6809 if test "$GCC" = yes; then
6810 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6811 else
6812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815 esac
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_OBJDUMP+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 if test -n "$OBJDUMP"; then
6834 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6847 done
6848 done
6849 IFS=$as_save_IFS
6853 OBJDUMP=$ac_cv_prog_OBJDUMP
6854 if test -n "$OBJDUMP"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6856 $as_echo "$OBJDUMP" >&6; }
6857 else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6864 if test -z "$ac_cv_prog_OBJDUMP"; then
6865 ac_ct_OBJDUMP=$OBJDUMP
6866 # Extract the first word of "objdump", so it can be a program name with args.
6867 set dummy objdump; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_OBJDUMP"; then
6874 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6887 done
6888 done
6889 IFS=$as_save_IFS
6893 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6894 if test -n "$ac_ct_OBJDUMP"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6896 $as_echo "$ac_ct_OBJDUMP" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6902 if test "x$ac_ct_OBJDUMP" = x; then
6903 OBJDUMP="false"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 OBJDUMP=$ac_ct_OBJDUMP
6913 else
6914 OBJDUMP="$ac_cv_prog_OBJDUMP"
6917 test -z "$OBJDUMP" && OBJDUMP=objdump
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6928 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6929 if ${lt_cv_deplibs_check_method+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 lt_cv_file_magic_cmd='$MAGIC_CMD'
6933 lt_cv_file_magic_test_file=
6934 lt_cv_deplibs_check_method='unknown'
6935 # Need to set the preceding variable on all platforms that support
6936 # interlibrary dependencies.
6937 # 'none' -- dependencies not supported.
6938 # `unknown' -- same as none, but documents that we really don't know.
6939 # 'pass_all' -- all dependencies passed with no checks.
6940 # 'test_compile' -- check by making test program.
6941 # 'file_magic [[regex]]' -- check by looking for files in library path
6942 # which responds to the $file_magic_cmd with a given extended regex.
6943 # If you have `file' or equivalent on your system and you're not sure
6944 # whether `pass_all' will *always* work, you probably want this one.
6946 case $host_os in
6947 aix[4-9]*)
6948 lt_cv_deplibs_check_method=pass_all
6951 beos*)
6952 lt_cv_deplibs_check_method=pass_all
6955 bsdi[45]*)
6956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6957 lt_cv_file_magic_cmd='/usr/bin/file -L'
6958 lt_cv_file_magic_test_file=/shlib/libc.so
6961 cygwin*)
6962 # func_win32_libid is a shell function defined in ltmain.sh
6963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6964 lt_cv_file_magic_cmd='func_win32_libid'
6967 mingw* | pw32*)
6968 # Base MSYS/MinGW do not provide the 'file' command needed by
6969 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6970 # unless we find 'file', for example because we are cross-compiling.
6971 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6972 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6974 lt_cv_file_magic_cmd='func_win32_libid'
6975 else
6976 # Keep this pattern in sync with the one in func_win32_libid.
6977 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6978 lt_cv_file_magic_cmd='$OBJDUMP -f'
6982 cegcc*)
6983 # use the weaker test based on 'objdump'. See mingw*.
6984 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6985 lt_cv_file_magic_cmd='$OBJDUMP -f'
6988 darwin* | rhapsody*)
6989 lt_cv_deplibs_check_method=pass_all
6992 freebsd* | dragonfly*)
6993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6994 case $host_cpu in
6995 i*86 )
6996 # Not sure whether the presence of OpenBSD here was a mistake.
6997 # Let's accept both of them until this is cleared up.
6998 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6999 lt_cv_file_magic_cmd=/usr/bin/file
7000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7002 esac
7003 else
7004 lt_cv_deplibs_check_method=pass_all
7008 gnu*)
7009 lt_cv_deplibs_check_method=pass_all
7012 haiku*)
7013 lt_cv_deplibs_check_method=pass_all
7016 hpux10.20* | hpux11*)
7017 lt_cv_file_magic_cmd=/usr/bin/file
7018 case $host_cpu in
7019 ia64*)
7020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7023 hppa*64*)
7024 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]'
7025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7031 esac
7034 interix[3-9]*)
7035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7039 irix5* | irix6* | nonstopux*)
7040 case $LD in
7041 *-32|*"-32 ") libmagic=32-bit;;
7042 *-n32|*"-n32 ") libmagic=N32;;
7043 *-64|*"-64 ") libmagic=64-bit;;
7044 *) libmagic=never-match;;
7045 esac
7046 lt_cv_deplibs_check_method=pass_all
7049 # This must be glibc/ELF.
7050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7051 lt_cv_deplibs_check_method=pass_all
7054 netbsd*)
7055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7057 else
7058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7062 newos6*)
7063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7064 lt_cv_file_magic_cmd=/usr/bin/file
7065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7068 *nto* | *qnx*)
7069 lt_cv_deplibs_check_method=pass_all
7072 openbsd*)
7073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7075 else
7076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7080 osf3* | osf4* | osf5*)
7081 lt_cv_deplibs_check_method=pass_all
7084 rdos*)
7085 lt_cv_deplibs_check_method=pass_all
7088 solaris*)
7089 lt_cv_deplibs_check_method=pass_all
7092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7093 lt_cv_deplibs_check_method=pass_all
7096 sysv4 | sysv4.3*)
7097 case $host_vendor in
7098 motorola)
7099 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]'
7100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7102 ncr)
7103 lt_cv_deplibs_check_method=pass_all
7105 sequent)
7106 lt_cv_file_magic_cmd='/bin/file'
7107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7109 sni)
7110 lt_cv_file_magic_cmd='/bin/file'
7111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7112 lt_cv_file_magic_test_file=/lib/libc.so
7114 siemens)
7115 lt_cv_deplibs_check_method=pass_all
7118 lt_cv_deplibs_check_method=pass_all
7120 esac
7123 tpf*)
7124 lt_cv_deplibs_check_method=pass_all
7126 esac
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7132 file_magic_glob=
7133 want_nocaseglob=no
7134 if test "$build" = "$host"; then
7135 case $host_os in
7136 mingw* | pw32*)
7137 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7138 want_nocaseglob=yes
7139 else
7140 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7143 esac
7146 file_magic_cmd=$lt_cv_file_magic_cmd
7147 deplibs_check_method=$lt_cv_deplibs_check_method
7148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_DLLTOOL+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$DLLTOOL"; then
7180 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7193 done
7194 done
7195 IFS=$as_save_IFS
7199 DLLTOOL=$ac_cv_prog_DLLTOOL
7200 if test -n "$DLLTOOL"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7202 $as_echo "$DLLTOOL" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7210 if test -z "$ac_cv_prog_DLLTOOL"; then
7211 ac_ct_DLLTOOL=$DLLTOOL
7212 # Extract the first word of "dlltool", so it can be a program name with args.
7213 set dummy dlltool; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$ac_ct_DLLTOOL"; then
7220 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7233 done
7234 done
7235 IFS=$as_save_IFS
7239 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7240 if test -n "$ac_ct_DLLTOOL"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7242 $as_echo "$ac_ct_DLLTOOL" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7248 if test "x$ac_ct_DLLTOOL" = x; then
7249 DLLTOOL="false"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252 yes:)
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255 ac_tool_warned=yes ;;
7256 esac
7257 DLLTOOL=$ac_ct_DLLTOOL
7259 else
7260 DLLTOOL="$ac_cv_prog_DLLTOOL"
7263 test -z "$DLLTOOL" && DLLTOOL=dlltool
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7275 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7276 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 lt_cv_sharedlib_from_linklib_cmd='unknown'
7281 case $host_os in
7282 cygwin* | mingw* | pw32* | cegcc*)
7283 # two different shell functions defined in ltmain.sh
7284 # decide which to use based on capabilities of $DLLTOOL
7285 case `$DLLTOOL --help 2>&1` in
7286 *--identify-strict*)
7287 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7290 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7292 esac
7295 # fallback: assume linklib IS sharedlib
7296 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7298 esac
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7302 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7303 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7304 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7313 if test -n "$ac_tool_prefix"; then
7314 for ac_prog in ar
7316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_AR+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -n "$AR"; then
7324 ac_cv_prog_AR="$AR" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7337 done
7338 done
7339 IFS=$as_save_IFS
7343 AR=$ac_cv_prog_AR
7344 if test -n "$AR"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7346 $as_echo "$AR" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7353 test -n "$AR" && break
7354 done
7356 if test -z "$AR"; then
7357 ac_ct_AR=$AR
7358 for ac_prog in ar
7360 # Extract the first word of "$ac_prog", so it can be a program name with args.
7361 set dummy $ac_prog; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_AR"; then
7368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_AR="$ac_prog"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7388 if test -n "$ac_ct_AR"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7390 $as_echo "$ac_ct_AR" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 test -n "$ac_ct_AR" && break
7398 done
7400 if test "x$ac_ct_AR" = x; then
7401 AR="false"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 AR=$ac_ct_AR
7413 : ${AR=ar}
7414 : ${AR_FLAGS=cru}
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7427 $as_echo_n "checking for archiver @FILE support... " >&6; }
7428 if ${lt_cv_ar_at_file+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 lt_cv_ar_at_file=no
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 echo conftest.$ac_objext > conftest.lst
7445 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7447 (eval $lt_ar_try) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; }
7451 if test "$ac_status" -eq 0; then
7452 # Ensure the archiver fails upon bogus file names.
7453 rm -f conftest.$ac_objext libconftest.a
7454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7455 (eval $lt_ar_try) 2>&5
7456 ac_status=$?
7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; }
7459 if test "$ac_status" -ne 0; then
7460 lt_cv_ar_at_file=@
7463 rm -f conftest.* libconftest.a
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7470 $as_echo "$lt_cv_ar_at_file" >&6; }
7472 if test "x$lt_cv_ar_at_file" = xno; then
7473 archiver_list_spec=
7474 else
7475 archiver_list_spec=$lt_cv_ar_at_file
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}strip; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_STRIP+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$STRIP"; then
7493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7506 done
7507 done
7508 IFS=$as_save_IFS
7512 STRIP=$ac_cv_prog_STRIP
7513 if test -n "$STRIP"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7515 $as_echo "$STRIP" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7523 if test -z "$ac_cv_prog_STRIP"; then
7524 ac_ct_STRIP=$STRIP
7525 # Extract the first word of "strip", so it can be a program name with args.
7526 set dummy strip; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_STRIP"; then
7533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_STRIP="strip"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7546 done
7547 done
7548 IFS=$as_save_IFS
7552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7553 if test -n "$ac_ct_STRIP"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7555 $as_echo "$ac_ct_STRIP" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7561 if test "x$ac_ct_STRIP" = x; then
7562 STRIP=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 STRIP=$ac_ct_STRIP
7572 else
7573 STRIP="$ac_cv_prog_STRIP"
7576 test -z "$STRIP" && STRIP=:
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_RANLIB+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 if test -n "$RANLIB"; then
7592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7605 done
7606 done
7607 IFS=$as_save_IFS
7611 RANLIB=$ac_cv_prog_RANLIB
7612 if test -n "$RANLIB"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7614 $as_echo "$RANLIB" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_RANLIB"; then
7623 ac_ct_RANLIB=$RANLIB
7624 # Extract the first word of "ranlib", so it can be a program name with args.
7625 set dummy ranlib; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 if test -n "$ac_ct_RANLIB"; then
7632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_RANLIB="ranlib"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7645 done
7646 done
7647 IFS=$as_save_IFS
7651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7652 if test -n "$ac_ct_RANLIB"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7654 $as_echo "$ac_ct_RANLIB" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_RANLIB" = x; then
7661 RANLIB=":"
7662 else
7663 case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669 RANLIB=$ac_ct_RANLIB
7671 else
7672 RANLIB="$ac_cv_prog_RANLIB"
7675 test -z "$RANLIB" && RANLIB=:
7682 # Determine commands to create old-style static archives.
7683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7684 old_postinstall_cmds='chmod 644 $oldlib'
7685 old_postuninstall_cmds=
7687 if test -n "$RANLIB"; then
7688 case $host_os in
7689 openbsd*)
7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7693 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7695 esac
7696 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7699 case $host_os in
7700 darwin*)
7701 lock_old_archive_extraction=yes ;;
7703 lock_old_archive_extraction=no ;;
7704 esac
7744 # If no C compiler was specified, use CC.
7745 LTCC=${LTCC-"$CC"}
7747 # If no C compiler flags were specified, use CFLAGS.
7748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7750 # Allow CC to be a program name with arguments.
7751 compiler=$CC
7754 # Check for command to grab the raw symbol name followed by C symbol from nm.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7757 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7761 # These are sane defaults that work on at least a few old systems.
7762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7764 # Character class describing NM global symbol codes.
7765 symcode='[BCDEGRST]'
7767 # Regexp to match symbols that can be accessed directly from C.
7768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7770 # Define system-specific variables.
7771 case $host_os in
7772 aix*)
7773 symcode='[BCDT]'
7775 cygwin* | mingw* | pw32* | cegcc*)
7776 symcode='[ABCDGISTW]'
7778 hpux*)
7779 if test "$host_cpu" = ia64; then
7780 symcode='[ABCDEGRST]'
7783 irix* | nonstopux*)
7784 symcode='[BCDEGRST]'
7786 osf*)
7787 symcode='[BCDEGQRST]'
7789 solaris*)
7790 symcode='[BDRT]'
7792 sco3.2v5*)
7793 symcode='[DT]'
7795 sysv4.2uw2*)
7796 symcode='[DT]'
7798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7799 symcode='[ABDT]'
7801 sysv4)
7802 symcode='[DFNSTU]'
7804 esac
7806 # If we're using GNU nm, then use its standard symbol codes.
7807 case `$NM -V 2>&1` in
7808 *GNU* | *'with BFD'*)
7809 symcode='[ABCDGIRSTW]' ;;
7810 esac
7812 # Transform an extracted symbol line into a proper C declaration.
7813 # Some systems (esp. on ia64) link data and code symbols differently,
7814 # so use this general approach.
7815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7817 # Transform an extracted symbol line into symbol name and symbol address
7818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7819 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7821 # Handle CRLF in mingw tool chain
7822 opt_cr=
7823 case $build_os in
7824 mingw*)
7825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7827 esac
7829 # Try without a prefix underscore, then with it.
7830 for ac_symprfx in "" "_"; do
7832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7833 symxfrm="\\1 $ac_symprfx\\2 \\2"
7835 # Write the raw and C identifiers.
7836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7837 # Fake it for dumpbin and say T for any non-static function
7838 # and D for any global variable.
7839 # Also find C++ and __fastcall symbols from MSVC++,
7840 # which start with @ or ?.
7841 lt_cv_sys_global_symbol_pipe="$AWK '"\
7842 " {last_section=section; section=\$ 3};"\
7843 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7844 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7845 " \$ 0!~/External *\|/{next};"\
7846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7847 " {if(hide[section]) next};"\
7848 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7849 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7850 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7851 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7852 " ' prfx=^$ac_symprfx"
7853 else
7854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7858 # Check to see that the pipe works correctly.
7859 pipe_works=no
7861 rm -f conftest*
7862 cat > conftest.$ac_ext <<_LT_EOF
7863 #ifdef __cplusplus
7864 extern "C" {
7865 #endif
7866 char nm_test_var;
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7869 #ifdef __cplusplus
7871 #endif
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7873 _LT_EOF
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 # Now try to grab the symbols.
7881 nlist=conftest.nm
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7883 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7884 ac_status=$?
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; } && test -s "$nlist"; then
7887 # Try sorting and uniquifying the output.
7888 if sort "$nlist" | uniq > "$nlist"T; then
7889 mv -f "$nlist"T "$nlist"
7890 else
7891 rm -f "$nlist"T
7894 # Make sure that we snagged all the symbols we need.
7895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897 cat <<_LT_EOF > conftest.$ac_ext
7898 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7899 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7900 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7901 relocations are performed -- see ld's documentation on pseudo-relocs. */
7902 # define LT_DLSYM_CONST
7903 #elif defined(__osf__)
7904 /* This system does not cope well with relocations in const data. */
7905 # define LT_DLSYM_CONST
7906 #else
7907 # define LT_DLSYM_CONST const
7908 #endif
7910 #ifdef __cplusplus
7911 extern "C" {
7912 #endif
7914 _LT_EOF
7915 # Now generate the symbol file.
7916 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7918 cat <<_LT_EOF >> conftest.$ac_ext
7920 /* The mapping between symbol names and symbols. */
7921 LT_DLSYM_CONST struct {
7922 const char *name;
7923 void *address;
7925 lt__PROGRAM__LTX_preloaded_symbols[] =
7927 { "@PROGRAM@", (void *) 0 },
7928 _LT_EOF
7929 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7930 cat <<\_LT_EOF >> conftest.$ac_ext
7931 {0, (void *) 0}
7934 /* This works around a problem in FreeBSD linker */
7935 #ifdef FREEBSD_WORKAROUND
7936 static const void *lt_preloaded_setup() {
7937 return lt__PROGRAM__LTX_preloaded_symbols;
7939 #endif
7941 #ifdef __cplusplus
7943 #endif
7944 _LT_EOF
7945 # Now try linking the two files.
7946 mv conftest.$ac_objext conftstm.$ac_objext
7947 lt_globsym_save_LIBS=$LIBS
7948 lt_globsym_save_CFLAGS=$CFLAGS
7949 LIBS="conftstm.$ac_objext"
7950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7952 (eval $ac_link) 2>&5
7953 ac_status=$?
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7956 pipe_works=yes
7958 LIBS=$lt_globsym_save_LIBS
7959 CFLAGS=$lt_globsym_save_CFLAGS
7960 else
7961 echo "cannot find nm_test_func in $nlist" >&5
7963 else
7964 echo "cannot find nm_test_var in $nlist" >&5
7966 else
7967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7969 else
7970 echo "$progname: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 rm -rf conftest* conftst*
7975 # Do not use the global_symbol_pipe unless it works.
7976 if test "$pipe_works" = yes; then
7977 break
7978 else
7979 lt_cv_sys_global_symbol_pipe=
7981 done
7985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7986 lt_cv_sys_global_symbol_to_cdecl=
7988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7990 $as_echo "failed" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7993 $as_echo "ok" >&6; }
7996 # Response file support.
7997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7998 nm_file_list_spec='@'
7999 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8000 nm_file_list_spec='@'
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8030 $as_echo_n "checking for sysroot... " >&6; }
8032 # Check whether --with-sysroot was given.
8033 if test "${with_sysroot+set}" = set; then :
8034 withval=$with_sysroot;
8035 else
8036 with_sysroot=no
8040 lt_sysroot=
8041 case ${with_sysroot} in #(
8042 yes)
8043 if test "$GCC" = yes; then
8044 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8046 ;; #(
8048 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8049 ;; #(
8050 no|'')
8051 ;; #(
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8054 $as_echo "${with_sysroot}" >&6; }
8055 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8057 esac
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8060 $as_echo "${lt_sysroot:-no}" >&6; }
8066 # Check whether --enable-libtool-lock was given.
8067 if test "${enable_libtool_lock+set}" = set; then :
8068 enableval=$enable_libtool_lock;
8071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8073 # Some flags need to be propagated to the compiler or linker for good
8074 # libtool support.
8075 case $host in
8076 ia64-*-hpux*)
8077 # Find out which ABI we are using.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.$ac_objext` in
8085 *ELF-32*)
8086 HPUX_IA64_MODE="32"
8088 *ELF-64*)
8089 HPUX_IA64_MODE="64"
8091 esac
8093 rm -rf conftest*
8095 *-*-irix6*)
8096 # Find out which ABI we are using.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 if test "$lt_cv_prog_gnu_ld" = yes; then
8104 case `/usr/bin/file conftest.$ac_objext` in
8105 *32-bit*)
8106 LD="${LD-ld} -melf32bsmip"
8108 *N32*)
8109 LD="${LD-ld} -melf32bmipn32"
8111 *64-bit*)
8112 LD="${LD-ld} -melf64bmip"
8114 esac
8115 else
8116 case `/usr/bin/file conftest.$ac_objext` in
8117 *32-bit*)
8118 LD="${LD-ld} -32"
8120 *N32*)
8121 LD="${LD-ld} -n32"
8123 *64-bit*)
8124 LD="${LD-ld} -64"
8126 esac
8129 rm -rf conftest*
8132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8134 # Find out which ABI we are using.
8135 echo 'int i;' > conftest.$ac_ext
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8138 ac_status=$?
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 case `/usr/bin/file conftest.o` in
8142 *32-bit*)
8143 case $host in
8144 x86_64-*kfreebsd*-gnu)
8145 LD="${LD-ld} -m elf_i386_fbsd"
8147 x86_64-*linux*)
8148 LD="${LD-ld} -m elf_i386"
8150 powerpc64le-*linux*)
8151 LD="${LD-ld} -m elf32lppclinux"
8153 powerpc64-*linux*)
8154 LD="${LD-ld} -m elf32ppclinux"
8156 s390x-*linux*)
8157 LD="${LD-ld} -m elf_s390"
8159 sparc64-*linux*)
8160 LD="${LD-ld} -m elf32_sparc"
8162 esac
8164 *64-bit*)
8165 case $host in
8166 x86_64-*kfreebsd*-gnu)
8167 LD="${LD-ld} -m elf_x86_64_fbsd"
8169 x86_64-*linux*)
8170 LD="${LD-ld} -m elf_x86_64"
8172 powerpcle-*linux*)
8173 LD="${LD-ld} -m elf64lppc"
8175 powerpc-*linux*)
8176 LD="${LD-ld} -m elf64ppc"
8178 s390*-*linux*|s390*-*tpf*)
8179 LD="${LD-ld} -m elf64_s390"
8181 sparc*-*linux*)
8182 LD="${LD-ld} -m elf64_sparc"
8184 esac
8186 esac
8188 rm -rf conftest*
8191 *-*-sco3.2v5*)
8192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8193 SAVE_CFLAGS="$CFLAGS"
8194 CFLAGS="$CFLAGS -belf"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 ac_ext=c
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8210 main ()
8214 return 0;
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 lt_cv_cc_needs_belf=yes
8219 else
8220 lt_cv_cc_needs_belf=no
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8235 CFLAGS="$SAVE_CFLAGS"
8238 *-*solaris*)
8239 # Find out which ABI we are using.
8240 echo 'int i;' > conftest.$ac_ext
8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8242 (eval $ac_compile) 2>&5
8243 ac_status=$?
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; }; then
8246 case `/usr/bin/file conftest.o` in
8247 *64-bit*)
8248 case $lt_cv_prog_gnu_ld in
8249 yes*)
8250 case $host in
8251 i?86-*-solaris*)
8252 LD="${LD-ld} -m elf_x86_64"
8254 sparc*-*-solaris*)
8255 LD="${LD-ld} -m elf64_sparc"
8257 esac
8258 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8259 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8260 LD="${LD-ld}_sol2"
8264 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8265 LD="${LD-ld} -64"
8268 esac
8270 esac
8272 rm -rf conftest*
8274 esac
8276 need_locks="$enable_libtool_lock"
8278 if test -n "$ac_tool_prefix"; then
8279 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8280 set dummy ${ac_tool_prefix}mt; ac_word=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 if test -n "$MANIFEST_TOOL"; then
8287 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8300 done
8301 done
8302 IFS=$as_save_IFS
8306 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8307 if test -n "$MANIFEST_TOOL"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8309 $as_echo "$MANIFEST_TOOL" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8317 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8318 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8319 # Extract the first word of "mt", so it can be a program name with args.
8320 set dummy mt; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 if test -n "$ac_ct_MANIFEST_TOOL"; then
8327 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8340 done
8341 done
8342 IFS=$as_save_IFS
8346 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8347 if test -n "$ac_ct_MANIFEST_TOOL"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8349 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8355 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8356 MANIFEST_TOOL=":"
8357 else
8358 case $cross_compiling:$ac_tool_warned in
8359 yes:)
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8362 ac_tool_warned=yes ;;
8363 esac
8364 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8366 else
8367 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8370 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8372 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8373 if ${lt_cv_path_mainfest_tool+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 lt_cv_path_mainfest_tool=no
8377 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8378 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8379 cat conftest.err >&5
8380 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8381 lt_cv_path_mainfest_tool=yes
8383 rm -f conftest*
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8386 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8387 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8388 MANIFEST_TOOL=:
8396 case $host_os in
8397 rhapsody* | darwin*)
8398 if test -n "$ac_tool_prefix"; then
8399 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8400 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 if test -n "$DSYMUTIL"; then
8407 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8420 done
8421 done
8422 IFS=$as_save_IFS
8426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8427 if test -n "$DSYMUTIL"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8429 $as_echo "$DSYMUTIL" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8437 if test -z "$ac_cv_prog_DSYMUTIL"; then
8438 ac_ct_DSYMUTIL=$DSYMUTIL
8439 # Extract the first word of "dsymutil", so it can be a program name with args.
8440 set dummy dsymutil; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$ac_ct_DSYMUTIL"; then
8447 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8466 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8467 if test -n "$ac_ct_DSYMUTIL"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8469 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8475 if test "x$ac_ct_DSYMUTIL" = x; then
8476 DSYMUTIL=":"
8477 else
8478 case $cross_compiling:$ac_tool_warned in
8479 yes:)
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8483 esac
8484 DSYMUTIL=$ac_ct_DSYMUTIL
8486 else
8487 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8490 if test -n "$ac_tool_prefix"; then
8491 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_NMEDIT+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 if test -n "$NMEDIT"; then
8499 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8512 done
8513 done
8514 IFS=$as_save_IFS
8518 NMEDIT=$ac_cv_prog_NMEDIT
8519 if test -n "$NMEDIT"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8521 $as_echo "$NMEDIT" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8529 if test -z "$ac_cv_prog_NMEDIT"; then
8530 ac_ct_NMEDIT=$NMEDIT
8531 # Extract the first word of "nmedit", so it can be a program name with args.
8532 set dummy nmedit; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 if test -n "$ac_ct_NMEDIT"; then
8539 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8552 done
8553 done
8554 IFS=$as_save_IFS
8558 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8559 if test -n "$ac_ct_NMEDIT"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8561 $as_echo "$ac_ct_NMEDIT" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 if test "x$ac_ct_NMEDIT" = x; then
8568 NMEDIT=":"
8569 else
8570 case $cross_compiling:$ac_tool_warned in
8571 yes:)
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8575 esac
8576 NMEDIT=$ac_ct_NMEDIT
8578 else
8579 NMEDIT="$ac_cv_prog_NMEDIT"
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_LIPO+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 if test -n "$LIPO"; then
8591 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8604 done
8605 done
8606 IFS=$as_save_IFS
8610 LIPO=$ac_cv_prog_LIPO
8611 if test -n "$LIPO"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8613 $as_echo "$LIPO" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test -z "$ac_cv_prog_LIPO"; then
8622 ac_ct_LIPO=$LIPO
8623 # Extract the first word of "lipo", so it can be a program name with args.
8624 set dummy lipo; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$ac_ct_LIPO"; then
8631 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_LIPO="lipo"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8650 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8651 if test -n "$ac_ct_LIPO"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8653 $as_echo "$ac_ct_LIPO" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8659 if test "x$ac_ct_LIPO" = x; then
8660 LIPO=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 LIPO=$ac_ct_LIPO
8670 else
8671 LIPO="$ac_cv_prog_LIPO"
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8676 set dummy ${ac_tool_prefix}otool; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_prog_OTOOL+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -n "$OTOOL"; then
8683 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8696 done
8697 done
8698 IFS=$as_save_IFS
8702 OTOOL=$ac_cv_prog_OTOOL
8703 if test -n "$OTOOL"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8705 $as_echo "$OTOOL" >&6; }
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8713 if test -z "$ac_cv_prog_OTOOL"; then
8714 ac_ct_OTOOL=$OTOOL
8715 # Extract the first word of "otool", so it can be a program name with args.
8716 set dummy otool; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 if test -n "$ac_ct_OTOOL"; then
8723 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 ac_cv_prog_ac_ct_OTOOL="otool"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8736 done
8737 done
8738 IFS=$as_save_IFS
8742 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8743 if test -n "$ac_ct_OTOOL"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8745 $as_echo "$ac_ct_OTOOL" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8751 if test "x$ac_ct_OTOOL" = x; then
8752 OTOOL=":"
8753 else
8754 case $cross_compiling:$ac_tool_warned in
8755 yes:)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned=yes ;;
8759 esac
8760 OTOOL=$ac_ct_OTOOL
8762 else
8763 OTOOL="$ac_cv_prog_OTOOL"
8766 if test -n "$ac_tool_prefix"; then
8767 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8768 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_prog_OTOOL64+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 if test -n "$OTOOL64"; then
8775 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8788 done
8789 done
8790 IFS=$as_save_IFS
8794 OTOOL64=$ac_cv_prog_OTOOL64
8795 if test -n "$OTOOL64"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8797 $as_echo "$OTOOL64" >&6; }
8798 else
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8805 if test -z "$ac_cv_prog_OTOOL64"; then
8806 ac_ct_OTOOL64=$OTOOL64
8807 # Extract the first word of "otool64", so it can be a program name with args.
8808 set dummy otool64; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 if test -n "$ac_ct_OTOOL64"; then
8815 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8816 else
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824 ac_cv_prog_ac_ct_OTOOL64="otool64"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8828 done
8829 done
8830 IFS=$as_save_IFS
8834 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8835 if test -n "$ac_ct_OTOOL64"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8837 $as_echo "$ac_ct_OTOOL64" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8843 if test "x$ac_ct_OTOOL64" = x; then
8844 OTOOL64=":"
8845 else
8846 case $cross_compiling:$ac_tool_warned in
8847 yes:)
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850 ac_tool_warned=yes ;;
8851 esac
8852 OTOOL64=$ac_ct_OTOOL64
8854 else
8855 OTOOL64="$ac_cv_prog_OTOOL64"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8885 $as_echo_n "checking for -single_module linker flag... " >&6; }
8886 if ${lt_cv_apple_cc_single_mod+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 lt_cv_apple_cc_single_mod=no
8890 if test -z "${LT_MULTI_MODULE}"; then
8891 # By default we will add the -single_module flag. You can override
8892 # by either setting the environment variable LT_MULTI_MODULE
8893 # non-empty at configure time, or by adding -multi_module to the
8894 # link flags.
8895 rm -rf libconftest.dylib*
8896 echo "int foo(void){return 1;}" > conftest.c
8897 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8898 -dynamiclib -Wl,-single_module conftest.c" >&5
8899 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8900 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8901 _lt_result=$?
8902 # If there is a non-empty error log, and "single_module"
8903 # appears in it, assume the flag caused a linker warning
8904 if test -s conftest.err && $GREP single_module conftest.err; then
8905 cat conftest.err >&5
8906 # Otherwise, if the output was created with a 0 exit code from
8907 # the compiler, it worked.
8908 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8909 lt_cv_apple_cc_single_mod=yes
8910 else
8911 cat conftest.err >&5
8913 rm -rf libconftest.dylib*
8914 rm -f conftest.*
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8918 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8921 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8922 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 lt_cv_ld_exported_symbols_list=no
8926 save_LDFLAGS=$LDFLAGS
8927 echo "_main" > conftest.sym
8928 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 main ()
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 lt_cv_ld_exported_symbols_list=yes
8942 else
8943 lt_cv_ld_exported_symbols_list=no
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LDFLAGS="$save_LDFLAGS"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8951 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8954 $as_echo_n "checking for -force_load linker flag... " >&6; }
8955 if ${lt_cv_ld_force_load+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 lt_cv_ld_force_load=no
8959 cat > conftest.c << _LT_EOF
8960 int forced_loaded() { return 2;}
8961 _LT_EOF
8962 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8963 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8964 echo "$AR cru libconftest.a conftest.o" >&5
8965 $AR cru libconftest.a conftest.o 2>&5
8966 echo "$RANLIB libconftest.a" >&5
8967 $RANLIB libconftest.a 2>&5
8968 cat > conftest.c << _LT_EOF
8969 int main() { return 0;}
8970 _LT_EOF
8971 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8972 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8973 _lt_result=$?
8974 if test -s conftest.err && $GREP force_load conftest.err; then
8975 cat conftest.err >&5
8976 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8977 lt_cv_ld_force_load=yes
8978 else
8979 cat conftest.err >&5
8981 rm -f conftest.err libconftest.a conftest conftest.c
8982 rm -rf conftest.dSYM
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8986 $as_echo "$lt_cv_ld_force_load" >&6; }
8987 case $host_os in
8988 rhapsody* | darwin1.[012])
8989 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8990 darwin1.*)
8991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8992 darwin*) # darwin 5.x on
8993 # if running on 10.5 or later, the deployment target defaults
8994 # to the OS version, if on x86, and 10.4, the deployment
8995 # target defaults to 10.4. Don't you love it?
8996 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8997 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8999 10.[012]*)
9000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9001 10.*)
9002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9003 esac
9005 esac
9006 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9007 _lt_dar_single_mod='$single_module'
9009 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9010 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9011 else
9012 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9014 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9015 _lt_dsymutil='~$DSYMUTIL $lib || :'
9016 else
9017 _lt_dsymutil=
9020 esac
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9024 $as_echo_n "checking for ANSI C header files... " >&6; }
9025 if ${ac_cv_header_stdc+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 #include <stdlib.h>
9031 #include <stdarg.h>
9032 #include <string.h>
9033 #include <float.h>
9036 main ()
9040 return 0;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 ac_cv_header_stdc=yes
9045 else
9046 ac_cv_header_stdc=no
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 if test $ac_cv_header_stdc = yes; then
9051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #include <string.h>
9056 _ACEOF
9057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9058 $EGREP "memchr" >/dev/null 2>&1; then :
9060 else
9061 ac_cv_header_stdc=no
9063 rm -f conftest*
9067 if test $ac_cv_header_stdc = yes; then
9068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <stdlib.h>
9073 _ACEOF
9074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9075 $EGREP "free" >/dev/null 2>&1; then :
9077 else
9078 ac_cv_header_stdc=no
9080 rm -f conftest*
9084 if test $ac_cv_header_stdc = yes; then
9085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9086 if test "$cross_compiling" = yes; then :
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <ctype.h>
9092 #include <stdlib.h>
9093 #if ((' ' & 0x0FF) == 0x020)
9094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9096 #else
9097 # define ISLOWER(c) \
9098 (('a' <= (c) && (c) <= 'i') \
9099 || ('j' <= (c) && (c) <= 'r') \
9100 || ('s' <= (c) && (c) <= 'z'))
9101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9102 #endif
9104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 main ()
9108 int i;
9109 for (i = 0; i < 256; i++)
9110 if (XOR (islower (i), ISLOWER (i))
9111 || toupper (i) != TOUPPER (i))
9112 return 2;
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_run "$LINENO"; then :
9118 else
9119 ac_cv_header_stdc=no
9121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9122 conftest.$ac_objext conftest.beam conftest.$ac_ext
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9128 $as_echo "$ac_cv_header_stdc" >&6; }
9129 if test $ac_cv_header_stdc = yes; then
9131 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9135 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9136 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9137 inttypes.h stdint.h unistd.h
9138 do :
9139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9143 cat >>confdefs.h <<_ACEOF
9144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145 _ACEOF
9149 done
9152 for ac_header in dlfcn.h
9153 do :
9154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9156 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9157 cat >>confdefs.h <<_ACEOF
9158 #define HAVE_DLFCN_H 1
9159 _ACEOF
9163 done
9169 # Set options
9173 enable_dlopen=no
9176 enable_win32_dll=no
9179 # Check whether --enable-shared was given.
9180 if test "${enable_shared+set}" = set; then :
9181 enableval=$enable_shared; p=${PACKAGE-default}
9182 case $enableval in
9183 yes) enable_shared=yes ;;
9184 no) enable_shared=no ;;
9186 enable_shared=no
9187 # Look at the argument we got. We use all the common list separators.
9188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9189 for pkg in $enableval; do
9190 IFS="$lt_save_ifs"
9191 if test "X$pkg" = "X$p"; then
9192 enable_shared=yes
9194 done
9195 IFS="$lt_save_ifs"
9197 esac
9198 else
9199 enable_shared=yes
9210 # Check whether --enable-static was given.
9211 if test "${enable_static+set}" = set; then :
9212 enableval=$enable_static; p=${PACKAGE-default}
9213 case $enableval in
9214 yes) enable_static=yes ;;
9215 no) enable_static=no ;;
9217 enable_static=no
9218 # Look at the argument we got. We use all the common list separators.
9219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9220 for pkg in $enableval; do
9221 IFS="$lt_save_ifs"
9222 if test "X$pkg" = "X$p"; then
9223 enable_static=yes
9225 done
9226 IFS="$lt_save_ifs"
9228 esac
9229 else
9230 enable_static=yes
9242 # Check whether --with-pic was given.
9243 if test "${with_pic+set}" = set; then :
9244 withval=$with_pic; lt_p=${PACKAGE-default}
9245 case $withval in
9246 yes|no) pic_mode=$withval ;;
9248 pic_mode=default
9249 # Look at the argument we got. We use all the common list separators.
9250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251 for lt_pkg in $withval; do
9252 IFS="$lt_save_ifs"
9253 if test "X$lt_pkg" = "X$lt_p"; then
9254 pic_mode=yes
9256 done
9257 IFS="$lt_save_ifs"
9259 esac
9260 else
9261 pic_mode=default
9265 test -z "$pic_mode" && pic_mode=default
9273 # Check whether --enable-fast-install was given.
9274 if test "${enable_fast_install+set}" = set; then :
9275 enableval=$enable_fast_install; p=${PACKAGE-default}
9276 case $enableval in
9277 yes) enable_fast_install=yes ;;
9278 no) enable_fast_install=no ;;
9280 enable_fast_install=no
9281 # Look at the argument we got. We use all the common list separators.
9282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9283 for pkg in $enableval; do
9284 IFS="$lt_save_ifs"
9285 if test "X$pkg" = "X$p"; then
9286 enable_fast_install=yes
9288 done
9289 IFS="$lt_save_ifs"
9291 esac
9292 else
9293 enable_fast_install=yes
9306 # This can be used to rebuild libtool when needed
9307 LIBTOOL_DEPS="$ltmain"
9309 # Always use our own libtool.
9310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9341 test -z "$LN_S" && LN_S="ln -s"
9356 if test -n "${ZSH_VERSION+set}" ; then
9357 setopt NO_GLOB_SUBST
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9361 $as_echo_n "checking for objdir... " >&6; }
9362 if ${lt_cv_objdir+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 rm -f .libs 2>/dev/null
9366 mkdir .libs 2>/dev/null
9367 if test -d .libs; then
9368 lt_cv_objdir=.libs
9369 else
9370 # MS-DOS does not allow filenames that begin with a dot.
9371 lt_cv_objdir=_libs
9373 rmdir .libs 2>/dev/null
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9376 $as_echo "$lt_cv_objdir" >&6; }
9377 objdir=$lt_cv_objdir
9383 cat >>confdefs.h <<_ACEOF
9384 #define LT_OBJDIR "$lt_cv_objdir/"
9385 _ACEOF
9390 case $host_os in
9391 aix3*)
9392 # AIX sometimes has problems with the GCC collect2 program. For some
9393 # reason, if we set the COLLECT_NAMES environment variable, the problems
9394 # vanish in a puff of smoke.
9395 if test "X${COLLECT_NAMES+set}" != Xset; then
9396 COLLECT_NAMES=
9397 export COLLECT_NAMES
9400 esac
9402 # Global variables:
9403 ofile=libtool
9404 can_build_shared=yes
9406 # All known linkers require a `.a' archive for static linking (except MSVC,
9407 # which needs '.lib').
9408 libext=a
9410 with_gnu_ld="$lt_cv_prog_gnu_ld"
9412 old_CC="$CC"
9413 old_CFLAGS="$CFLAGS"
9415 # Set sane defaults for various variables
9416 test -z "$CC" && CC=cc
9417 test -z "$LTCC" && LTCC=$CC
9418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9419 test -z "$LD" && LD=ld
9420 test -z "$ac_objext" && ac_objext=o
9422 for cc_temp in $compiler""; do
9423 case $cc_temp in
9424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9426 \-*) ;;
9427 *) break;;
9428 esac
9429 done
9430 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9433 # Only perform the check for file, if the check method requires it
9434 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9435 case $deplibs_check_method in
9436 file_magic*)
9437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9439 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9440 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 case $MAGIC_CMD in
9444 [\\/*] | ?:[\\/]*)
9445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9448 lt_save_MAGIC_CMD="$MAGIC_CMD"
9449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9451 for ac_dir in $ac_dummy; do
9452 IFS="$lt_save_ifs"
9453 test -z "$ac_dir" && ac_dir=.
9454 if test -f $ac_dir/${ac_tool_prefix}file; then
9455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9456 if test -n "$file_magic_test_file"; then
9457 case $deplibs_check_method in
9458 "file_magic "*)
9459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9462 $EGREP "$file_magic_regex" > /dev/null; then
9464 else
9465 cat <<_LT_EOF 1>&2
9467 *** Warning: the command libtool uses to detect shared libraries,
9468 *** $file_magic_cmd, produces output that libtool cannot recognize.
9469 *** The result is that libtool may fail to recognize shared libraries
9470 *** as such. This will affect the creation of libtool libraries that
9471 *** depend on shared libraries, but programs linked with such libtool
9472 *** libraries will work regardless of this problem. Nevertheless, you
9473 *** may want to report the problem to your system manager and/or to
9474 *** bug-libtool@gnu.org
9476 _LT_EOF
9477 fi ;;
9478 esac
9480 break
9482 done
9483 IFS="$lt_save_ifs"
9484 MAGIC_CMD="$lt_save_MAGIC_CMD"
9486 esac
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if test -n "$MAGIC_CMD"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 $as_echo "$MAGIC_CMD" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9502 if test -z "$lt_cv_path_MAGIC_CMD"; then
9503 if test -n "$ac_tool_prefix"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9505 $as_echo_n "checking for file... " >&6; }
9506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 case $MAGIC_CMD in
9510 [\\/*] | ?:[\\/]*)
9511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9514 lt_save_MAGIC_CMD="$MAGIC_CMD"
9515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9517 for ac_dir in $ac_dummy; do
9518 IFS="$lt_save_ifs"
9519 test -z "$ac_dir" && ac_dir=.
9520 if test -f $ac_dir/file; then
9521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9522 if test -n "$file_magic_test_file"; then
9523 case $deplibs_check_method in
9524 "file_magic "*)
9525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9528 $EGREP "$file_magic_regex" > /dev/null; then
9530 else
9531 cat <<_LT_EOF 1>&2
9533 *** Warning: the command libtool uses to detect shared libraries,
9534 *** $file_magic_cmd, produces output that libtool cannot recognize.
9535 *** The result is that libtool may fail to recognize shared libraries
9536 *** as such. This will affect the creation of libtool libraries that
9537 *** depend on shared libraries, but programs linked with such libtool
9538 *** libraries will work regardless of this problem. Nevertheless, you
9539 *** may want to report the problem to your system manager and/or to
9540 *** bug-libtool@gnu.org
9542 _LT_EOF
9543 fi ;;
9544 esac
9546 break
9548 done
9549 IFS="$lt_save_ifs"
9550 MAGIC_CMD="$lt_save_MAGIC_CMD"
9552 esac
9555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9556 if test -n "$MAGIC_CMD"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9558 $as_echo "$MAGIC_CMD" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9565 else
9566 MAGIC_CMD=:
9572 esac
9574 # Use C for the default configuration in the libtool script
9576 lt_save_CC="$CC"
9577 ac_ext=c
9578 ac_cpp='$CPP $CPPFLAGS'
9579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9584 # Source file extension for C test sources.
9585 ac_ext=c
9587 # Object file extension for compiled C test sources.
9588 objext=o
9589 objext=$objext
9591 # Code to be used in simple compile tests
9592 lt_simple_compile_test_code="int some_variable = 0;"
9594 # Code to be used in simple link tests
9595 lt_simple_link_test_code='int main(){return(0);}'
9603 # If no C compiler was specified, use CC.
9604 LTCC=${LTCC-"$CC"}
9606 # If no C compiler flags were specified, use CFLAGS.
9607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9609 # Allow CC to be a program name with arguments.
9610 compiler=$CC
9612 # Save the default compiler, since it gets overwritten when the other
9613 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9614 compiler_DEFAULT=$CC
9616 # save warnings/boilerplate of simple test code
9617 ac_outfile=conftest.$ac_objext
9618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9620 _lt_compiler_boilerplate=`cat conftest.err`
9621 $RM conftest*
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_linker_boilerplate=`cat conftest.err`
9627 $RM -r conftest*
9630 ## CAVEAT EMPTOR:
9631 ## There is no encapsulation within the following macros, do not change
9632 ## the running order or otherwise move them around unless you know exactly
9633 ## what you are doing...
9634 if test -n "$compiler"; then
9636 lt_prog_compiler_no_builtin_flag=
9638 if test "$GCC" = yes; then
9639 case $cc_basename in
9640 nvcc*)
9641 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9643 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9644 esac
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9648 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 lt_cv_prog_compiler_rtti_exceptions=no
9652 ac_outfile=conftest.$ac_objext
9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654 lt_compiler_flag="-fno-rtti -fno-exceptions"
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 # The option is referenced via a variable to avoid confusing sed.
9660 lt_compile=`echo "$ac_compile" | $SED \
9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663 -e 's:$: $lt_compiler_flag:'`
9664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665 (eval "$lt_compile" 2>conftest.err)
9666 ac_status=$?
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 if (exit $ac_status) && test -s "$ac_outfile"; then
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings other than the usual output.
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_rtti_exceptions=yes
9678 $RM conftest*
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9686 else
9697 lt_prog_compiler_wl=
9698 lt_prog_compiler_pic=
9699 lt_prog_compiler_static=
9702 if test "$GCC" = yes; then
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_static='-static'
9706 case $host_os in
9707 aix*)
9708 # All AIX code is PIC.
9709 if test "$host_cpu" = ia64; then
9710 # AIX 5 now supports IA64 processor
9711 lt_prog_compiler_static='-Bstatic'
9715 amigaos*)
9716 case $host_cpu in
9717 powerpc)
9718 # see comment about AmigaOS4 .so support
9719 lt_prog_compiler_pic='-fPIC'
9721 m68k)
9722 # FIXME: we need at least 68020 code to build shared libraries, but
9723 # adding the `-m68020' flag to GCC prevents building anything better,
9724 # like `-m68040'.
9725 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9727 esac
9730 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9731 # PIC is the default for these OSes.
9734 mingw* | cygwin* | pw32* | os2* | cegcc*)
9735 # This hack is so that the source file can tell whether it is being
9736 # built for inclusion in a dll (and should export symbols for example).
9737 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9738 # (--disable-auto-import) libraries
9739 lt_prog_compiler_pic='-DDLL_EXPORT'
9742 darwin* | rhapsody*)
9743 # PIC is the default on this platform
9744 # Common symbols not allowed in MH_DYLIB files
9745 lt_prog_compiler_pic='-fno-common'
9748 haiku*)
9749 # PIC is the default for Haiku.
9750 # The "-static" flag exists, but is broken.
9751 lt_prog_compiler_static=
9754 hpux*)
9755 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9756 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9757 # sets the default TLS model and affects inlining.
9758 case $host_cpu in
9759 hppa*64*)
9760 # +Z the default
9763 lt_prog_compiler_pic='-fPIC'
9765 esac
9768 interix[3-9]*)
9769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9770 # Instead, we relocate shared libraries at runtime.
9773 msdosdjgpp*)
9774 # Just because we use GCC doesn't mean we suddenly get shared libraries
9775 # on systems that don't support them.
9776 lt_prog_compiler_can_build_shared=no
9777 enable_shared=no
9780 *nto* | *qnx*)
9781 # QNX uses GNU C++, but need to define -shared option too, otherwise
9782 # it will coredump.
9783 lt_prog_compiler_pic='-fPIC -shared'
9786 sysv4*MP*)
9787 if test -d /usr/nec; then
9788 lt_prog_compiler_pic=-Kconform_pic
9793 lt_prog_compiler_pic='-fPIC'
9795 esac
9797 case $cc_basename in
9798 nvcc*) # Cuda Compiler Driver 2.2
9799 lt_prog_compiler_wl='-Xlinker '
9800 if test -n "$lt_prog_compiler_pic"; then
9801 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9804 esac
9805 else
9806 # PORTME Check for flag to pass linker flags through the system compiler.
9807 case $host_os in
9808 aix*)
9809 lt_prog_compiler_wl='-Wl,'
9810 if test "$host_cpu" = ia64; then
9811 # AIX 5 now supports IA64 processor
9812 lt_prog_compiler_static='-Bstatic'
9813 else
9814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 hpux9* | hpux10* | hpux11*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827 # not for PA HP-UX.
9828 case $host_cpu in
9829 hppa*64*|ia64*)
9830 # +Z the default
9833 lt_prog_compiler_pic='+Z'
9835 esac
9836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837 lt_prog_compiler_static='${wl}-a ${wl}archive'
9840 irix5* | irix6* | nonstopux*)
9841 lt_prog_compiler_wl='-Wl,'
9842 # PIC (with -KPIC) is the default.
9843 lt_prog_compiler_static='-non_shared'
9846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9847 case $cc_basename in
9848 # old Intel for x86_64 which still supported -KPIC.
9849 ecc*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-static'
9854 # icc used to be incompatible with GCC.
9855 # ICC 10 doesn't accept -KPIC any more.
9856 icc* | ifort*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-fPIC'
9859 lt_prog_compiler_static='-static'
9861 # Lahey Fortran 8.1.
9862 lf95*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='--shared'
9865 lt_prog_compiler_static='--static'
9867 nagfor*)
9868 # NAG Fortran compiler
9869 lt_prog_compiler_wl='-Wl,-Wl,,'
9870 lt_prog_compiler_pic='-PIC'
9871 lt_prog_compiler_static='-Bstatic'
9873 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9874 # Portland Group compilers (*not* the Pentium gcc compiler,
9875 # which looks to be a dead project)
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fpic'
9878 lt_prog_compiler_static='-Bstatic'
9880 ccc*)
9881 lt_prog_compiler_wl='-Wl,'
9882 # All Alpha code is PIC.
9883 lt_prog_compiler_static='-non_shared'
9885 xl* | bgxl* | bgf* | mpixl*)
9886 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9887 lt_prog_compiler_wl='-Wl,'
9888 lt_prog_compiler_pic='-qpic'
9889 lt_prog_compiler_static='-qstaticlink'
9892 case `$CC -V 2>&1 | sed 5q` in
9893 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9895 lt_prog_compiler_pic='-KPIC'
9896 lt_prog_compiler_static='-Bstatic'
9897 lt_prog_compiler_wl=''
9899 *Sun\ F* | *Sun*Fortran*)
9900 lt_prog_compiler_pic='-KPIC'
9901 lt_prog_compiler_static='-Bstatic'
9902 lt_prog_compiler_wl='-Qoption ld '
9904 *Sun\ C*)
9905 # Sun C 5.9
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl='-Wl,'
9910 *Intel*\ [CF]*Compiler*)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='-fPIC'
9913 lt_prog_compiler_static='-static'
9915 *Portland\ Group*)
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fpic'
9918 lt_prog_compiler_static='-Bstatic'
9920 esac
9922 esac
9925 newsos6)
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9930 *nto* | *qnx*)
9931 # QNX uses GNU C++, but need to define -shared option too, otherwise
9932 # it will coredump.
9933 lt_prog_compiler_pic='-fPIC -shared'
9936 osf3* | osf4* | osf5*)
9937 lt_prog_compiler_wl='-Wl,'
9938 # All OSF/1 code is PIC.
9939 lt_prog_compiler_static='-non_shared'
9942 rdos*)
9943 lt_prog_compiler_static='-non_shared'
9946 solaris*)
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9949 case $cc_basename in
9950 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9951 lt_prog_compiler_wl='-Qoption ld ';;
9953 lt_prog_compiler_wl='-Wl,';;
9954 esac
9957 sunos4*)
9958 lt_prog_compiler_wl='-Qoption ld '
9959 lt_prog_compiler_pic='-PIC'
9960 lt_prog_compiler_static='-Bstatic'
9963 sysv4 | sysv4.2uw2* | sysv4.3*)
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9969 sysv4*MP*)
9970 if test -d /usr/nec ;then
9971 lt_prog_compiler_pic='-Kconform_pic'
9972 lt_prog_compiler_static='-Bstatic'
9976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9977 lt_prog_compiler_wl='-Wl,'
9978 lt_prog_compiler_pic='-KPIC'
9979 lt_prog_compiler_static='-Bstatic'
9982 unicos*)
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_can_build_shared=no
9987 uts4*)
9988 lt_prog_compiler_pic='-pic'
9989 lt_prog_compiler_static='-Bstatic'
9993 lt_prog_compiler_can_build_shared=no
9995 esac
9998 case $host_os in
9999 # For platforms which do not support PIC, -DPIC is meaningless:
10000 *djgpp*)
10001 lt_prog_compiler_pic=
10004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10006 esac
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10010 if ${lt_cv_prog_compiler_pic+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10016 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10017 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10020 # Check to make sure the PIC flag actually works.
10022 if test -n "$lt_prog_compiler_pic"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10024 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10025 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 lt_cv_prog_compiler_pic_works=no
10029 ac_outfile=conftest.$ac_objext
10030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10032 # Insert the option either (1) after the last *FLAGS variable, or
10033 # (2) before a word containing "conftest.", or (3) at the end.
10034 # Note that $ac_compile itself does not contain backslashes and begins
10035 # with a dollar sign (not a hyphen), so the echo should work correctly.
10036 # The option is referenced via a variable to avoid confusing sed.
10037 lt_compile=`echo "$ac_compile" | $SED \
10038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040 -e 's:$: $lt_compiler_flag:'`
10041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10042 (eval "$lt_compile" 2>conftest.err)
10043 ac_status=$?
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 if (exit $ac_status) && test -s "$ac_outfile"; then
10047 # The compiler can only warn and ignore the option if not recognized
10048 # So say no if there are warnings other than the usual output.
10049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10052 lt_cv_prog_compiler_pic_works=yes
10055 $RM conftest*
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10059 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10061 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10062 case $lt_prog_compiler_pic in
10063 "" | " "*) ;;
10064 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10065 esac
10066 else
10067 lt_prog_compiler_pic=
10068 lt_prog_compiler_can_build_shared=no
10084 # Check to make sure the static flag actually works.
10086 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10089 if ${lt_cv_prog_compiler_static_works+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 lt_cv_prog_compiler_static_works=no
10093 save_LDFLAGS="$LDFLAGS"
10094 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10097 # The linker can only warn and ignore the option if not recognized
10098 # So say no if there are warnings
10099 if test -s conftest.err; then
10100 # Append any errors to the config.log.
10101 cat conftest.err 1>&5
10102 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104 if diff conftest.exp conftest.er2 >/dev/null; then
10105 lt_cv_prog_compiler_static_works=yes
10107 else
10108 lt_cv_prog_compiler_static_works=yes
10111 $RM -r conftest*
10112 LDFLAGS="$save_LDFLAGS"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10116 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10118 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10120 else
10121 lt_prog_compiler_static=
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10132 if ${lt_cv_prog_compiler_c_o+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 lt_cv_prog_compiler_c_o=no
10136 $RM -r conftest 2>/dev/null
10137 mkdir conftest
10138 cd conftest
10139 mkdir out
10140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142 lt_compiler_flag="-o out/conftest2.$ac_objext"
10143 # Insert the option either (1) after the last *FLAGS variable, or
10144 # (2) before a word containing "conftest.", or (3) at the end.
10145 # Note that $ac_compile itself does not contain backslashes and begins
10146 # with a dollar sign (not a hyphen), so the echo should work correctly.
10147 lt_compile=`echo "$ac_compile" | $SED \
10148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10150 -e 's:$: $lt_compiler_flag:'`
10151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10152 (eval "$lt_compile" 2>out/conftest.err)
10153 ac_status=$?
10154 cat out/conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10157 then
10158 # The compiler can only warn and ignore the option if not recognized
10159 # So say no if there are warnings
10160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10163 lt_cv_prog_compiler_c_o=yes
10166 chmod u+w . 2>&5
10167 $RM conftest*
10168 # SGI C++ compiler will create directory out/ii_files/ for
10169 # template instantiation
10170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10171 $RM out/* && rmdir out
10172 cd ..
10173 $RM -r conftest
10174 $RM conftest*
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10178 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10187 if ${lt_cv_prog_compiler_c_o+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 lt_cv_prog_compiler_c_o=no
10191 $RM -r conftest 2>/dev/null
10192 mkdir conftest
10193 cd conftest
10194 mkdir out
10195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197 lt_compiler_flag="-o out/conftest2.$ac_objext"
10198 # Insert the option either (1) after the last *FLAGS variable, or
10199 # (2) before a word containing "conftest.", or (3) at the end.
10200 # Note that $ac_compile itself does not contain backslashes and begins
10201 # with a dollar sign (not a hyphen), so the echo should work correctly.
10202 lt_compile=`echo "$ac_compile" | $SED \
10203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10205 -e 's:$: $lt_compiler_flag:'`
10206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10207 (eval "$lt_compile" 2>out/conftest.err)
10208 ac_status=$?
10209 cat out/conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10212 then
10213 # The compiler can only warn and ignore the option if not recognized
10214 # So say no if there are warnings
10215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10218 lt_cv_prog_compiler_c_o=yes
10221 chmod u+w . 2>&5
10222 $RM conftest*
10223 # SGI C++ compiler will create directory out/ii_files/ for
10224 # template instantiation
10225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10226 $RM out/* && rmdir out
10227 cd ..
10228 $RM -r conftest
10229 $RM conftest*
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10238 hard_links="nottested"
10239 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10240 # do not overwrite the value of need_locks provided by the user
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10242 $as_echo_n "checking if we can lock with hard links... " >&6; }
10243 hard_links=yes
10244 $RM conftest*
10245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246 touch conftest.a
10247 ln conftest.a conftest.b 2>&5 || hard_links=no
10248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10250 $as_echo "$hard_links" >&6; }
10251 if test "$hard_links" = no; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10254 need_locks=warn
10256 else
10257 need_locks=no
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10268 runpath_var=
10269 allow_undefined_flag=
10270 always_export_symbols=no
10271 archive_cmds=
10272 archive_expsym_cmds=
10273 compiler_needs_object=no
10274 enable_shared_with_static_runtimes=no
10275 export_dynamic_flag_spec=
10276 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10277 hardcode_automatic=no
10278 hardcode_direct=no
10279 hardcode_direct_absolute=no
10280 hardcode_libdir_flag_spec=
10281 hardcode_libdir_separator=
10282 hardcode_minus_L=no
10283 hardcode_shlibpath_var=unsupported
10284 inherit_rpath=no
10285 link_all_deplibs=unknown
10286 module_cmds=
10287 module_expsym_cmds=
10288 old_archive_from_new_cmds=
10289 old_archive_from_expsyms_cmds=
10290 thread_safe_flag_spec=
10291 whole_archive_flag_spec=
10292 # include_expsyms should be a list of space-separated symbols to be *always*
10293 # included in the symbol list
10294 include_expsyms=
10295 # exclude_expsyms can be an extended regexp of symbols to exclude
10296 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10298 # as well as any symbol that contains `d'.
10299 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10301 # platforms (ab)use it in PIC code, but their linkers get confused if
10302 # the symbol is explicitly referenced. Since portable code cannot
10303 # rely on this symbol name, it's probably fine to never include it in
10304 # preloaded symbol tables.
10305 # Exclude shared library initialization/finalization symbols.
10306 extract_expsyms_cmds=
10308 case $host_os in
10309 cygwin* | mingw* | pw32* | cegcc*)
10310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311 # When not using gcc, we currently assume that we are using
10312 # Microsoft Visual C++.
10313 if test "$GCC" != yes; then
10314 with_gnu_ld=no
10317 interix*)
10318 # we just hope/assume this is gcc and not c89 (= MSVC++)
10319 with_gnu_ld=yes
10321 openbsd*)
10322 with_gnu_ld=no
10324 esac
10326 ld_shlibs=yes
10328 # On some targets, GNU ld is compatible enough with the native linker
10329 # that we're better off using the native interface for both.
10330 lt_use_gnu_ld_interface=no
10331 if test "$with_gnu_ld" = yes; then
10332 case $host_os in
10333 aix*)
10334 # The AIX port of GNU ld has always aspired to compatibility
10335 # with the native linker. However, as the warning in the GNU ld
10336 # block says, versions before 2.19.5* couldn't really create working
10337 # shared libraries, regardless of the interface used.
10338 case `$LD -v 2>&1` in
10339 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10340 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10341 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10343 lt_use_gnu_ld_interface=yes
10345 esac
10348 lt_use_gnu_ld_interface=yes
10350 esac
10353 if test "$lt_use_gnu_ld_interface" = yes; then
10354 # If archive_cmds runs LD, not CC, wlarc should be empty
10355 wlarc='${wl}'
10357 # Set some defaults for GNU ld with shared library support. These
10358 # are reset later if shared libraries are not supported. Putting them
10359 # here allows them to be overridden if necessary.
10360 runpath_var=LD_RUN_PATH
10361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10362 export_dynamic_flag_spec='${wl}--export-dynamic'
10363 # ancient GNU ld didn't support --whole-archive et. al.
10364 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10365 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10366 else
10367 whole_archive_flag_spec=
10369 supports_anon_versioning=no
10370 case `$LD -v 2>&1` in
10371 *GNU\ gold*) supports_anon_versioning=yes ;;
10372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10375 *\ 2.11.*) ;; # other 2.11 versions
10376 *) supports_anon_versioning=yes ;;
10377 esac
10379 # See if GNU ld supports shared libraries.
10380 case $host_os in
10381 aix[3-9]*)
10382 # On AIX/PPC, the GNU linker is very broken
10383 if test "$host_cpu" != ia64; then
10384 ld_shlibs=no
10385 cat <<_LT_EOF 1>&2
10387 *** Warning: the GNU linker, at least up to release 2.19, is reported
10388 *** to be unable to reliably create shared libraries on AIX.
10389 *** Therefore, libtool is disabling shared libraries support. If you
10390 *** really care for shared libraries, you may want to install binutils
10391 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10392 *** You will then need to restart the configuration process.
10394 _LT_EOF
10398 amigaos*)
10399 case $host_cpu in
10400 powerpc)
10401 # see comment about AmigaOS4 .so support
10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 archive_expsym_cmds=''
10405 m68k)
10406 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)'
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_minus_L=yes
10410 esac
10413 beos*)
10414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10415 allow_undefined_flag=unsupported
10416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10417 # support --undefined. This deserves some investigation. FIXME
10418 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10419 else
10420 ld_shlibs=no
10424 cygwin* | mingw* | pw32* | cegcc*)
10425 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10426 # as there is no search path for DLLs.
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 export_dynamic_flag_spec='${wl}--export-all-symbols'
10429 allow_undefined_flag=unsupported
10430 always_export_symbols=no
10431 enable_shared_with_static_runtimes=yes
10432 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'
10433 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10435 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10437 # If the export-symbols file already is a .def file (1st line
10438 # is EXPORTS), use it as is; otherwise, prepend...
10439 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10440 cp $export_symbols $output_objdir/$soname.def;
10441 else
10442 echo EXPORTS > $output_objdir/$soname.def;
10443 cat $export_symbols >> $output_objdir/$soname.def;
10445 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446 else
10447 ld_shlibs=no
10451 haiku*)
10452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10453 link_all_deplibs=yes
10456 interix[3-9]*)
10457 hardcode_direct=no
10458 hardcode_shlibpath_var=no
10459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10460 export_dynamic_flag_spec='${wl}-E'
10461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10462 # Instead, shared libraries are loaded at an image base (0x10000000 by
10463 # default) and relocated if they conflict, which is a slow very memory
10464 # consuming and fragmenting process. To avoid this, we pick a random,
10465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10468 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'
10471 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10472 tmp_diet=no
10473 if test "$host_os" = linux-dietlibc; then
10474 case $cc_basename in
10475 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10476 esac
10478 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10479 && test "$tmp_diet" = no
10480 then
10481 tmp_addflag=' $pic_flag'
10482 tmp_sharedflag='-shared'
10483 case $cc_basename,$host_cpu in
10484 pgcc*) # Portland Group C compiler
10485 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'
10486 tmp_addflag=' $pic_flag'
10488 pgf77* | pgf90* | pgf95* | pgfortran*)
10489 # Portland Group f77 and f90 compilers
10490 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'
10491 tmp_addflag=' $pic_flag -Mnomain' ;;
10492 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10493 tmp_addflag=' -i_dynamic' ;;
10494 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10495 tmp_addflag=' -i_dynamic -nofor_main' ;;
10496 ifc* | ifort*) # Intel Fortran compiler
10497 tmp_addflag=' -nofor_main' ;;
10498 lf95*) # Lahey Fortran 8.1
10499 whole_archive_flag_spec=
10500 tmp_sharedflag='--shared' ;;
10501 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10502 tmp_sharedflag='-qmkshrobj'
10503 tmp_addflag= ;;
10504 nvcc*) # Cuda Compiler Driver 2.2
10505 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'
10506 compiler_needs_object=yes
10508 esac
10509 case `$CC -V 2>&1 | sed 5q` in
10510 *Sun\ C*) # Sun C 5.9
10511 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'
10512 compiler_needs_object=yes
10513 tmp_sharedflag='-G' ;;
10514 *Sun\ F*) # Sun Fortran 8.3
10515 tmp_sharedflag='-G' ;;
10516 esac
10517 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519 if test "x$supports_anon_versioning" = xyes; then
10520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10521 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10522 echo "local: *; };" >> $output_objdir/$libname.ver~
10523 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10526 case $cc_basename in
10527 xlf* | bgf* | bgxlf* | mpixlf*)
10528 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10529 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10532 if test "x$supports_anon_versioning" = xyes; then
10533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10535 echo "local: *; };" >> $output_objdir/$libname.ver~
10536 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10539 esac
10540 else
10541 ld_shlibs=no
10545 netbsd*)
10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10547 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10548 wlarc=
10549 else
10550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555 solaris*)
10556 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10557 ld_shlibs=no
10558 cat <<_LT_EOF 1>&2
10560 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10561 *** create shared libraries on Solaris systems. Therefore, libtool
10562 *** is disabling shared libraries support. We urge you to upgrade GNU
10563 *** binutils to release 2.9.1 or newer. Another option is to modify
10564 *** your PATH or compiler configuration so that the native linker is
10565 *** used, and then restart.
10567 _LT_EOF
10568 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10571 else
10572 ld_shlibs=no
10576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10577 case `$LD -v 2>&1` in
10578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10579 ld_shlibs=no
10580 cat <<_LT_EOF 1>&2
10582 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10583 *** reliably create shared libraries on SCO systems. Therefore, libtool
10584 *** is disabling shared libraries support. We urge you to upgrade GNU
10585 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10586 *** your PATH or compiler configuration so that the native linker is
10587 *** used, and then restart.
10589 _LT_EOF
10592 # For security reasons, it is highly recommended that you always
10593 # use absolute paths for naming shared libraries, and exclude the
10594 # DT_RUNPATH tag from executables and libraries. But doing so
10595 # requires that you compile everything twice, which is a pain.
10596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10600 else
10601 ld_shlibs=no
10604 esac
10607 sunos4*)
10608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 wlarc=
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618 else
10619 ld_shlibs=no
10622 esac
10624 if test "$ld_shlibs" = no; then
10625 runpath_var=
10626 hardcode_libdir_flag_spec=
10627 export_dynamic_flag_spec=
10628 whole_archive_flag_spec=
10630 else
10631 # PORTME fill in a description of your system's linker (not GNU ld)
10632 case $host_os in
10633 aix3*)
10634 allow_undefined_flag=unsupported
10635 always_export_symbols=yes
10636 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'
10637 # Note: this linker hardcodes the directories in LIBPATH if there
10638 # are no directories specified by -L.
10639 hardcode_minus_L=yes
10640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10641 # Neither direct hardcoding nor static linking is supported with a
10642 # broken collect2.
10643 hardcode_direct=unsupported
10647 aix[4-9]*)
10648 if test "$host_cpu" = ia64; then
10649 # On IA64, the linker does run time linking by default, so we don't
10650 # have to do anything special.
10651 aix_use_runtimelinking=no
10652 exp_sym_flag='-Bexport'
10653 no_entry_flag=""
10654 else
10655 # If we're using GNU nm, then we don't want the "-C" option.
10656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10657 # Also, AIX nm treats weak defined symbols like other global
10658 # defined symbols, whereas GNU nm marks them as "W".
10659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10660 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10661 else
10662 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10664 aix_use_runtimelinking=no
10666 # Test if we are trying to use run time linking or normal
10667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10668 # need to do runtime linking.
10669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10670 for ld_flag in $LDFLAGS; do
10671 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10672 aix_use_runtimelinking=yes
10673 break
10675 done
10677 esac
10679 exp_sym_flag='-bexport'
10680 no_entry_flag='-bnoentry'
10683 # When large executables or shared objects are built, AIX ld can
10684 # have problems creating the table of contents. If linking a library
10685 # or program results in "error TOC overflow" add -mminimal-toc to
10686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10689 archive_cmds=''
10690 hardcode_direct=yes
10691 hardcode_direct_absolute=yes
10692 hardcode_libdir_separator=':'
10693 link_all_deplibs=yes
10694 file_list_spec='${wl}-f,'
10696 if test "$GCC" = yes; then
10697 case $host_os in aix4.[012]|aix4.[012].*)
10698 # We only want to do this on AIX 4.2 and lower, the check
10699 # below for broken collect2 doesn't work under 4.3+
10700 collect2name=`${CC} -print-prog-name=collect2`
10701 if test -f "$collect2name" &&
10702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10703 then
10704 # We have reworked collect2
10706 else
10707 # We have old collect2
10708 hardcode_direct=unsupported
10709 # It fails to find uninstalled libraries when the uninstalled
10710 # path is not listed in the libpath. Setting hardcode_minus_L
10711 # to unsupported forces relinking
10712 hardcode_minus_L=yes
10713 hardcode_libdir_flag_spec='-L$libdir'
10714 hardcode_libdir_separator=
10717 esac
10718 shared_flag='-shared'
10719 if test "$aix_use_runtimelinking" = yes; then
10720 shared_flag="$shared_flag "'${wl}-G'
10722 else
10723 # not using gcc
10724 if test "$host_cpu" = ia64; then
10725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10726 # chokes on -Wl,-G. The following line is correct:
10727 shared_flag='-G'
10728 else
10729 if test "$aix_use_runtimelinking" = yes; then
10730 shared_flag='${wl}-G'
10731 else
10732 shared_flag='${wl}-bM:SRE'
10737 export_dynamic_flag_spec='${wl}-bexpall'
10738 # It seems that -bexpall does not export symbols beginning with
10739 # underscore (_), so it is better to generate a list of symbols to export.
10740 always_export_symbols=yes
10741 if test "$aix_use_runtimelinking" = yes; then
10742 # Warning - without using the other runtime loading flags (-brtl),
10743 # -berok will link without error, but may produce a broken library.
10744 allow_undefined_flag='-berok'
10745 # Determine the default libpath from the value encoded in an
10746 # empty executable.
10747 if test "${lt_cv_aix_libpath+set}" = set; then
10748 aix_libpath=$lt_cv_aix_libpath
10749 else
10750 if ${lt_cv_aix_libpath_+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10757 main ()
10761 return 0;
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10766 lt_aix_libpath_sed='
10767 /Import File Strings/,/^$/ {
10768 /^0/ {
10769 s/^0 *\([^ ]*\) *$/\1/
10773 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10774 # Check for a 64-bit object if we didn't find anything.
10775 if test -z "$lt_cv_aix_libpath_"; then
10776 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 if test -z "$lt_cv_aix_libpath_"; then
10782 lt_cv_aix_libpath_="/usr/lib:/lib"
10787 aix_libpath=$lt_cv_aix_libpath_
10790 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10791 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10792 else
10793 if test "$host_cpu" = ia64; then
10794 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10795 allow_undefined_flag="-z nodefs"
10796 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"
10797 else
10798 # Determine the default libpath from the value encoded in an
10799 # empty executable.
10800 if test "${lt_cv_aix_libpath+set}" = set; then
10801 aix_libpath=$lt_cv_aix_libpath
10802 else
10803 if ${lt_cv_aix_libpath_+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10810 main ()
10814 return 0;
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10819 lt_aix_libpath_sed='
10820 /Import File Strings/,/^$/ {
10821 /^0/ {
10822 s/^0 *\([^ ]*\) *$/\1/
10826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10827 # Check for a 64-bit object if we didn't find anything.
10828 if test -z "$lt_cv_aix_libpath_"; then
10829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_="/usr/lib:/lib"
10840 aix_libpath=$lt_cv_aix_libpath_
10843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10844 # Warning - without using the other run time loading flags,
10845 # -berok will link without error, but may produce a broken library.
10846 no_undefined_flag=' ${wl}-bernotok'
10847 allow_undefined_flag=' ${wl}-berok'
10848 if test "$with_gnu_ld" = yes; then
10849 # We only use this code for GNU lds that support --whole-archive.
10850 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10851 else
10852 # Exported symbols can be pulled into shared objects from archives
10853 whole_archive_flag_spec='$convenience'
10855 archive_cmds_need_lc=yes
10856 # This is similar to how AIX traditionally builds its shared libraries.
10857 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10862 amigaos*)
10863 case $host_cpu in
10864 powerpc)
10865 # see comment about AmigaOS4 .so support
10866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10867 archive_expsym_cmds=''
10869 m68k)
10870 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)'
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_minus_L=yes
10874 esac
10877 bsdi[45]*)
10878 export_dynamic_flag_spec=-rdynamic
10881 cygwin* | mingw* | pw32* | cegcc*)
10882 # When not using gcc, we currently assume that we are using
10883 # Microsoft Visual C++.
10884 # hardcode_libdir_flag_spec is actually meaningless, as there is
10885 # no search path for DLLs.
10886 case $cc_basename in
10887 cl*)
10888 # Native MSVC
10889 hardcode_libdir_flag_spec=' '
10890 allow_undefined_flag=unsupported
10891 always_export_symbols=yes
10892 file_list_spec='@'
10893 # Tell ltmain to make .lib files, not .a files.
10894 libext=lib
10895 # Tell ltmain to make .dll files, not .so files.
10896 shrext_cmds=".dll"
10897 # FIXME: Setting linknames here is a bad hack.
10898 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10899 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10900 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10901 else
10902 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10904 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10905 linknames='
10906 # The linker will not automatically build a static lib if we build a DLL.
10907 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10908 enable_shared_with_static_runtimes=yes
10909 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10911 # Don't use ranlib
10912 old_postinstall_cmds='chmod 644 $oldlib'
10913 postlink_cmds='lt_outputfile="@OUTPUT@"~
10914 lt_tool_outputfile="@TOOL_OUTPUT@"~
10915 case $lt_outputfile in
10916 *.exe|*.EXE) ;;
10918 lt_outputfile="$lt_outputfile.exe"
10919 lt_tool_outputfile="$lt_tool_outputfile.exe"
10921 esac~
10922 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10923 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10924 $RM "$lt_outputfile.manifest";
10928 # Assume MSVC wrapper
10929 hardcode_libdir_flag_spec=' '
10930 allow_undefined_flag=unsupported
10931 # Tell ltmain to make .lib files, not .a files.
10932 libext=lib
10933 # Tell ltmain to make .dll files, not .so files.
10934 shrext_cmds=".dll"
10935 # FIXME: Setting linknames here is a bad hack.
10936 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10937 # The linker will automatically build a .lib file if we build a DLL.
10938 old_archive_from_new_cmds='true'
10939 # FIXME: Should let the user specify the lib program.
10940 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10941 enable_shared_with_static_runtimes=yes
10943 esac
10946 darwin* | rhapsody*)
10949 archive_cmds_need_lc=no
10950 hardcode_direct=no
10951 hardcode_automatic=yes
10952 hardcode_shlibpath_var=unsupported
10953 if test "$lt_cv_ld_force_load" = "yes"; then
10954 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\"`'
10956 else
10957 whole_archive_flag_spec=''
10959 link_all_deplibs=yes
10960 allow_undefined_flag="$_lt_dar_allow_undefined"
10961 case $cc_basename in
10962 ifort*) _lt_dar_can_shared=yes ;;
10963 *) _lt_dar_can_shared=$GCC ;;
10964 esac
10965 if test "$_lt_dar_can_shared" = "yes"; then
10966 output_verbose_link_cmd=func_echo_all
10967 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10968 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10969 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}"
10970 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}"
10972 else
10973 ld_shlibs=no
10978 dgux*)
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 hardcode_shlibpath_var=no
10984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10985 # support. Future versions do this automatically, but an explicit c++rt0.o
10986 # does not break anything, and helps significantly (at the cost of a little
10987 # extra space).
10988 freebsd2.2*)
10989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10990 hardcode_libdir_flag_spec='-R$libdir'
10991 hardcode_direct=yes
10992 hardcode_shlibpath_var=no
10995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10996 freebsd2.*)
10997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10998 hardcode_direct=yes
10999 hardcode_minus_L=yes
11000 hardcode_shlibpath_var=no
11003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11004 freebsd* | dragonfly*)
11005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11006 hardcode_libdir_flag_spec='-R$libdir'
11007 hardcode_direct=yes
11008 hardcode_shlibpath_var=no
11011 hpux9*)
11012 if test "$GCC" = yes; then
11013 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11014 else
11015 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11018 hardcode_libdir_separator=:
11019 hardcode_direct=yes
11021 # hardcode_minus_L: Not really in the search PATH,
11022 # but as the default location of the library.
11023 hardcode_minus_L=yes
11024 export_dynamic_flag_spec='${wl}-E'
11027 hpux10*)
11028 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11029 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11030 else
11031 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11033 if test "$with_gnu_ld" = no; then
11034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11035 hardcode_libdir_separator=:
11036 hardcode_direct=yes
11037 hardcode_direct_absolute=yes
11038 export_dynamic_flag_spec='${wl}-E'
11039 # hardcode_minus_L: Not really in the search PATH,
11040 # but as the default location of the library.
11041 hardcode_minus_L=yes
11045 hpux11*)
11046 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11047 case $host_cpu in
11048 hppa*64*)
11049 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 ia64*)
11052 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057 esac
11058 else
11059 case $host_cpu in
11060 hppa*64*)
11061 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11063 ia64*)
11064 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11068 # Older versions of the 11.00 compiler do not understand -b yet
11069 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11071 $as_echo_n "checking if $CC understands -b... " >&6; }
11072 if ${lt_cv_prog_compiler__b+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 lt_cv_prog_compiler__b=no
11076 save_LDFLAGS="$LDFLAGS"
11077 LDFLAGS="$LDFLAGS -b"
11078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11080 # The linker can only warn and ignore the option if not recognized
11081 # So say no if there are warnings
11082 if test -s conftest.err; then
11083 # Append any errors to the config.log.
11084 cat conftest.err 1>&5
11085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11087 if diff conftest.exp conftest.er2 >/dev/null; then
11088 lt_cv_prog_compiler__b=yes
11090 else
11091 lt_cv_prog_compiler__b=yes
11094 $RM -r conftest*
11095 LDFLAGS="$save_LDFLAGS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11099 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11101 if test x"$lt_cv_prog_compiler__b" = xyes; then
11102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11103 else
11104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11108 esac
11110 if test "$with_gnu_ld" = no; then
11111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11112 hardcode_libdir_separator=:
11114 case $host_cpu in
11115 hppa*64*|ia64*)
11116 hardcode_direct=no
11117 hardcode_shlibpath_var=no
11120 hardcode_direct=yes
11121 hardcode_direct_absolute=yes
11122 export_dynamic_flag_spec='${wl}-E'
11124 # hardcode_minus_L: Not really in the search PATH,
11125 # but as the default location of the library.
11126 hardcode_minus_L=yes
11128 esac
11132 irix5* | irix6* | nonstopux*)
11133 if test "$GCC" = yes; then
11134 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'
11135 # Try to use the -exported_symbol ld option, if it does not
11136 # work, assume that -exports_file does not work either and
11137 # implicitly export all symbols.
11138 # This should be the same for all languages, so no per-tag cache variable.
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11140 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11141 if ${lt_cv_irix_exported_symbol+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 save_LDFLAGS="$LDFLAGS"
11145 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 int foo (void) { return 0; }
11149 _ACEOF
11150 if ac_fn_c_try_link "$LINENO"; then :
11151 lt_cv_irix_exported_symbol=yes
11152 else
11153 lt_cv_irix_exported_symbol=no
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 LDFLAGS="$save_LDFLAGS"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11160 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11161 if test "$lt_cv_irix_exported_symbol" = yes; then
11162 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'
11164 else
11165 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'
11166 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'
11168 archive_cmds_need_lc='no'
11169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11170 hardcode_libdir_separator=:
11171 inherit_rpath=yes
11172 link_all_deplibs=yes
11175 netbsd*)
11176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11178 else
11179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11181 hardcode_libdir_flag_spec='-R$libdir'
11182 hardcode_direct=yes
11183 hardcode_shlibpath_var=no
11186 newsos6)
11187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11188 hardcode_direct=yes
11189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11190 hardcode_libdir_separator=:
11191 hardcode_shlibpath_var=no
11194 *nto* | *qnx*)
11197 openbsd*)
11198 if test -f /usr/libexec/ld.so; then
11199 hardcode_direct=yes
11200 hardcode_shlibpath_var=no
11201 hardcode_direct_absolute=yes
11202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11204 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11206 export_dynamic_flag_spec='${wl}-E'
11207 else
11208 case $host_os in
11209 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11211 hardcode_libdir_flag_spec='-R$libdir'
11214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11217 esac
11219 else
11220 ld_shlibs=no
11224 os2*)
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_minus_L=yes
11227 allow_undefined_flag=unsupported
11228 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11229 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11232 osf3*)
11233 if test "$GCC" = yes; then
11234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11235 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'
11236 else
11237 allow_undefined_flag=' -expect_unresolved \*'
11238 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'
11240 archive_cmds_need_lc='no'
11241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11242 hardcode_libdir_separator=:
11245 osf4* | osf5*) # as osf3* with the addition of -msym flag
11246 if test "$GCC" = yes; then
11247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11248 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'
11249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11250 else
11251 allow_undefined_flag=' -expect_unresolved \*'
11252 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'
11253 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~
11254 $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'
11256 # Both c and cxx compiler support -rpath directly
11257 hardcode_libdir_flag_spec='-rpath $libdir'
11259 archive_cmds_need_lc='no'
11260 hardcode_libdir_separator=:
11263 solaris*)
11264 no_undefined_flag=' -z defs'
11265 if test "$GCC" = yes; then
11266 wlarc='${wl}'
11267 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11269 $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'
11270 else
11271 case `$CC -V 2>&1` in
11272 *"Compilers 5.0"*)
11273 wlarc=''
11274 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11279 wlarc='${wl}'
11280 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11284 esac
11286 hardcode_libdir_flag_spec='-R$libdir'
11287 hardcode_shlibpath_var=no
11288 case $host_os in
11289 solaris2.[0-5] | solaris2.[0-5].*) ;;
11291 # The compiler driver will combine and reorder linker options,
11292 # but understands `-z linker_flag'. GCC discards it without `$wl',
11293 # but is careful enough not to reorder.
11294 # Supported since Solaris 2.6 (maybe 2.5.1?)
11295 if test "$GCC" = yes; then
11296 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11297 else
11298 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11301 esac
11302 link_all_deplibs=yes
11305 sunos4*)
11306 if test "x$host_vendor" = xsequent; then
11307 # Use $CC to link under sequent, because it throws in some extra .o
11308 # files that make .init and .fini sections work.
11309 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11310 else
11311 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11313 hardcode_libdir_flag_spec='-L$libdir'
11314 hardcode_direct=yes
11315 hardcode_minus_L=yes
11316 hardcode_shlibpath_var=no
11319 sysv4)
11320 case $host_vendor in
11321 sni)
11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_direct=yes # is this really true???
11325 siemens)
11326 ## LD is ld it makes a PLAMLIB
11327 ## CC just makes a GrossModule.
11328 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11329 reload_cmds='$CC -r -o $output$reload_objs'
11330 hardcode_direct=no
11332 motorola)
11333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11336 esac
11337 runpath_var='LD_RUN_PATH'
11338 hardcode_shlibpath_var=no
11341 sysv4.3*)
11342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343 hardcode_shlibpath_var=no
11344 export_dynamic_flag_spec='-Bexport'
11347 sysv4*MP*)
11348 if test -d /usr/nec; then
11349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350 hardcode_shlibpath_var=no
11351 runpath_var=LD_RUN_PATH
11352 hardcode_runpath_var=yes
11353 ld_shlibs=yes
11357 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11358 no_undefined_flag='${wl}-z,text'
11359 archive_cmds_need_lc=no
11360 hardcode_shlibpath_var=no
11361 runpath_var='LD_RUN_PATH'
11363 if test "$GCC" = yes; then
11364 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 else
11367 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 sysv5* | sco3.2v5* | sco5v6*)
11373 # Note: We can NOT use -z defs as we might desire, because we do not
11374 # link with -lc, and that would cause any symbols used from libc to
11375 # always be unresolved, which means just about no library would
11376 # ever link correctly. If we're not using GNU ld we use -z text
11377 # though, which does catch some bad symbols but isn't as heavy-handed
11378 # as -z defs.
11379 no_undefined_flag='${wl}-z,text'
11380 allow_undefined_flag='${wl}-z,nodefs'
11381 archive_cmds_need_lc=no
11382 hardcode_shlibpath_var=no
11383 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11384 hardcode_libdir_separator=':'
11385 link_all_deplibs=yes
11386 export_dynamic_flag_spec='${wl}-Bexport'
11387 runpath_var='LD_RUN_PATH'
11389 if test "$GCC" = yes; then
11390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392 else
11393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 uts4*)
11399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11400 hardcode_libdir_flag_spec='-L$libdir'
11401 hardcode_shlibpath_var=no
11405 ld_shlibs=no
11407 esac
11409 if test x$host_vendor = xsni; then
11410 case $host in
11411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11412 export_dynamic_flag_spec='${wl}-Blargedynsym'
11414 esac
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11419 $as_echo "$ld_shlibs" >&6; }
11420 test "$ld_shlibs" = no && can_build_shared=no
11422 with_gnu_ld=$with_gnu_ld
11439 # Do we need to explicitly link libc?
11441 case "x$archive_cmds_need_lc" in
11442 x|xyes)
11443 # Assume -lc should be added
11444 archive_cmds_need_lc=yes
11446 if test "$enable_shared" = yes && test "$GCC" = yes; then
11447 case $archive_cmds in
11448 *'~'*)
11449 # FIXME: we may have to deal with multi-command sequences.
11451 '$CC '*)
11452 # Test whether the compiler implicitly links with -lc since on some
11453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11454 # to ld, don't add -lc before -lgcc.
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11456 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11457 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 $RM conftest*
11461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11464 (eval $ac_compile) 2>&5
11465 ac_status=$?
11466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467 test $ac_status = 0; } 2>conftest.err; then
11468 soname=conftest
11469 lib=conftest
11470 libobjs=conftest.$ac_objext
11471 deplibs=
11472 wl=$lt_prog_compiler_wl
11473 pic_flag=$lt_prog_compiler_pic
11474 compiler_flags=-v
11475 linker_flags=-v
11476 verstring=
11477 output_objdir=.
11478 libname=conftest
11479 lt_save_allow_undefined_flag=$allow_undefined_flag
11480 allow_undefined_flag=
11481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11482 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11483 ac_status=$?
11484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485 test $ac_status = 0; }
11486 then
11487 lt_cv_archive_cmds_need_lc=no
11488 else
11489 lt_cv_archive_cmds_need_lc=yes
11491 allow_undefined_flag=$lt_save_allow_undefined_flag
11492 else
11493 cat conftest.err 1>&5
11495 $RM conftest*
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11499 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11500 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11502 esac
11505 esac
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11659 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11661 if test "$GCC" = yes; then
11662 case $host_os in
11663 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11664 *) lt_awk_arg="/^libraries:/" ;;
11665 esac
11666 case $host_os in
11667 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11668 *) lt_sed_strip_eq="s,=/,/,g" ;;
11669 esac
11670 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11671 case $lt_search_path_spec in
11672 *\;*)
11673 # if the path contains ";" then we assume it to be the separator
11674 # otherwise default to the standard path separator (i.e. ":") - it is
11675 # assumed that no part of a normal pathname contains ";" but that should
11676 # okay in the real world where ";" in dirpaths is itself problematic.
11677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11682 esac
11683 # Ok, now we have the path, separated by spaces, we can step through it
11684 # and add multilib dir if necessary.
11685 lt_tmp_lt_search_path_spec=
11686 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11687 for lt_sys_path in $lt_search_path_spec; do
11688 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11690 else
11691 test -d "$lt_sys_path" && \
11692 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11694 done
11695 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11696 BEGIN {RS=" "; FS="/|\n";} {
11697 lt_foo="";
11698 lt_count=0;
11699 for (lt_i = NF; lt_i > 0; lt_i--) {
11700 if ($lt_i != "" && $lt_i != ".") {
11701 if ($lt_i == "..") {
11702 lt_count++;
11703 } else {
11704 if (lt_count == 0) {
11705 lt_foo="/" $lt_i lt_foo;
11706 } else {
11707 lt_count--;
11712 if (lt_foo != "") { lt_freq[lt_foo]++; }
11713 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11715 # AWK program above erroneously prepends '/' to C:/dos/paths
11716 # for these hosts.
11717 case $host_os in
11718 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11719 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11720 esac
11721 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11722 else
11723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11725 library_names_spec=
11726 libname_spec='lib$name'
11727 soname_spec=
11728 shrext_cmds=".so"
11729 postinstall_cmds=
11730 postuninstall_cmds=
11731 finish_cmds=
11732 finish_eval=
11733 shlibpath_var=
11734 shlibpath_overrides_runpath=unknown
11735 version_type=none
11736 dynamic_linker="$host_os ld.so"
11737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11738 need_lib_prefix=unknown
11739 hardcode_into_libs=no
11741 # when you set need_version to no, make sure it does not cause -set_version
11742 # flags to be left without arguments
11743 need_version=unknown
11745 case $host_os in
11746 aix3*)
11747 version_type=linux # correct to gnu/linux during the next big refactor
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11749 shlibpath_var=LIBPATH
11751 # AIX 3 has no versioning support, so we append a major version to the name.
11752 soname_spec='${libname}${release}${shared_ext}$major'
11755 aix[4-9]*)
11756 version_type=linux # correct to gnu/linux during the next big refactor
11757 need_lib_prefix=no
11758 need_version=no
11759 hardcode_into_libs=yes
11760 if test "$host_cpu" = ia64; then
11761 # AIX 5 supports IA64
11762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 else
11765 # With GCC up to 2.95.x, collect2 would create an import file
11766 # for dependence libraries. The import file would start with
11767 # the line `#! .'. This would cause the generated library to
11768 # depend on `.', always an invalid library. This was fixed in
11769 # development snapshots of GCC prior to 3.0.
11770 case $host_os in
11771 aix4 | aix4.[01] | aix4.[01].*)
11772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11773 echo ' yes '
11774 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11776 else
11777 can_build_shared=no
11780 esac
11781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11782 # soname into executable. Probably we can add versioning support to
11783 # collect2, so additional links can be useful in future.
11784 if test "$aix_use_runtimelinking" = yes; then
11785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11786 # instead of lib<name>.a to let people know that these are not
11787 # typical AIX shared libraries.
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 else
11790 # We preserve .a as extension for shared libraries through AIX4.2
11791 # and later when we are not doing run time linking.
11792 library_names_spec='${libname}${release}.a $libname.a'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11795 shlibpath_var=LIBPATH
11799 amigaos*)
11800 case $host_cpu in
11801 powerpc)
11802 # Since July 2007 AmigaOS4 officially supports .so libraries.
11803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 m68k)
11807 library_names_spec='$libname.ixlibrary $libname.a'
11808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11809 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11811 esac
11814 beos*)
11815 library_names_spec='${libname}${shared_ext}'
11816 dynamic_linker="$host_os ld.so"
11817 shlibpath_var=LIBRARY_PATH
11820 bsdi[45]*)
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 need_version=no
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11829 # the default ld.so.conf also contains /usr/contrib/lib and
11830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11831 # libtool to hard-code these into programs
11834 cygwin* | mingw* | pw32* | cegcc*)
11835 version_type=windows
11836 shrext_cmds=".dll"
11837 need_version=no
11838 need_lib_prefix=no
11840 case $GCC,$cc_basename in
11841 yes,*)
11842 # gcc
11843 library_names_spec='$libname.dll.a'
11844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11845 postinstall_cmds='base_file=`basename \${file}`~
11846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11847 dldir=$destdir/`dirname \$dlpath`~
11848 test -d \$dldir || mkdir -p \$dldir~
11849 $install_prog $dir/$dlname \$dldir/$dlname~
11850 chmod a+x \$dldir/$dlname~
11851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11855 dlpath=$dir/\$dldll~
11856 $RM \$dlpath'
11857 shlibpath_overrides_runpath=yes
11859 case $host_os in
11860 cygwin*)
11861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11866 mingw* | cegcc*)
11867 # MinGW DLLs use traditional 'lib' prefix
11868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11870 pw32*)
11871 # pw32 DLLs use 'pw' prefix rather than 'lib'
11872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874 esac
11875 dynamic_linker='Win32 ld.exe'
11878 *,cl*)
11879 # Native MSVC
11880 libname_spec='$name'
11881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882 library_names_spec='${libname}.dll.lib'
11884 case $build_os in
11885 mingw*)
11886 sys_lib_search_path_spec=
11887 lt_save_ifs=$IFS
11888 IFS=';'
11889 for lt_path in $LIB
11891 IFS=$lt_save_ifs
11892 # Let DOS variable expansion print the short 8.3 style file name.
11893 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11894 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11895 done
11896 IFS=$lt_save_ifs
11897 # Convert to MSYS style.
11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11900 cygwin*)
11901 # Convert to unix form, then to dos form, then back to unix form
11902 # but this time dos style (no spaces!) so that the unix form looks
11903 # like /cygdrive/c/PROGRA~1:/cygdr...
11904 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11905 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11906 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11909 sys_lib_search_path_spec="$LIB"
11910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11911 # It is most probably a Windows format PATH.
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11913 else
11914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916 # FIXME: find the short name or the path components, as spaces are
11917 # common. (e.g. "Program Files" -> "PROGRA~1")
11919 esac
11921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11922 postinstall_cmds='base_file=`basename \${file}`~
11923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11924 dldir=$destdir/`dirname \$dlpath`~
11925 test -d \$dldir || mkdir -p \$dldir~
11926 $install_prog $dir/$dlname \$dldir/$dlname'
11927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11928 dlpath=$dir/\$dldll~
11929 $RM \$dlpath'
11930 shlibpath_overrides_runpath=yes
11931 dynamic_linker='Win32 link.exe'
11935 # Assume MSVC wrapper
11936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11937 dynamic_linker='Win32 ld.exe'
11939 esac
11940 # FIXME: first we should search . and the directory the executable is in
11941 shlibpath_var=PATH
11944 darwin* | rhapsody*)
11945 dynamic_linker="$host_os dyld"
11946 version_type=darwin
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11950 soname_spec='${libname}${release}${major}$shared_ext'
11951 shlibpath_overrides_runpath=yes
11952 shlibpath_var=DYLD_LIBRARY_PATH
11953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11959 dgux*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 need_lib_prefix=no
11962 need_version=no
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11968 freebsd* | dragonfly*)
11969 # DragonFly does not have aout. When/if they implement a new
11970 # versioning mechanism, adjust this.
11971 if test -x /usr/bin/objformat; then
11972 objformat=`/usr/bin/objformat`
11973 else
11974 case $host_os in
11975 freebsd[23].*) objformat=aout ;;
11976 *) objformat=elf ;;
11977 esac
11979 version_type=freebsd-$objformat
11980 case $version_type in
11981 freebsd-elf*)
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11983 need_version=no
11984 need_lib_prefix=no
11986 freebsd-*)
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11988 need_version=yes
11990 esac
11991 shlibpath_var=LD_LIBRARY_PATH
11992 case $host_os in
11993 freebsd2.*)
11994 shlibpath_overrides_runpath=yes
11996 freebsd3.[01]* | freebsdelf3.[01]*)
11997 shlibpath_overrides_runpath=yes
11998 hardcode_into_libs=yes
12000 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12001 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12002 shlibpath_overrides_runpath=no
12003 hardcode_into_libs=yes
12005 *) # from 4.6 on, and DragonFly
12006 shlibpath_overrides_runpath=yes
12007 hardcode_into_libs=yes
12009 esac
12012 gnu*)
12013 version_type=linux # correct to gnu/linux during the next big refactor
12014 need_lib_prefix=no
12015 need_version=no
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12017 soname_spec='${libname}${release}${shared_ext}$major'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 shlibpath_overrides_runpath=no
12020 hardcode_into_libs=yes
12023 haiku*)
12024 version_type=linux # correct to gnu/linux during the next big refactor
12025 need_lib_prefix=no
12026 need_version=no
12027 dynamic_linker="$host_os runtime_loader"
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 shlibpath_var=LIBRARY_PATH
12031 shlibpath_overrides_runpath=yes
12032 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12033 hardcode_into_libs=yes
12036 hpux9* | hpux10* | hpux11*)
12037 # Give a soname corresponding to the major version so that dld.sl refuses to
12038 # link against other versions.
12039 version_type=sunos
12040 need_lib_prefix=no
12041 need_version=no
12042 case $host_cpu in
12043 ia64*)
12044 shrext_cmds='.so'
12045 hardcode_into_libs=yes
12046 dynamic_linker="$host_os dld.so"
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050 soname_spec='${libname}${release}${shared_ext}$major'
12051 if test "X$HPUX_IA64_MODE" = X32; then
12052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12053 else
12054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12058 hppa*64*)
12059 shrext_cmds='.sl'
12060 hardcode_into_libs=yes
12061 dynamic_linker="$host_os dld.sl"
12062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070 shrext_cmds='.sl'
12071 dynamic_linker="$host_os dld.sl"
12072 shlibpath_var=SHLIB_PATH
12073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12075 soname_spec='${libname}${release}${shared_ext}$major'
12077 esac
12078 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12079 postinstall_cmds='chmod 555 $lib'
12080 # or fails outright, so override atomically:
12081 install_override_mode=555
12084 interix[3-9]*)
12085 version_type=linux # correct to gnu/linux during the next big refactor
12086 need_lib_prefix=no
12087 need_version=no
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=no
12093 hardcode_into_libs=yes
12096 irix5* | irix6* | nonstopux*)
12097 case $host_os in
12098 nonstopux*) version_type=nonstopux ;;
12100 if test "$lt_cv_prog_gnu_ld" = yes; then
12101 version_type=linux # correct to gnu/linux during the next big refactor
12102 else
12103 version_type=irix
12104 fi ;;
12105 esac
12106 need_lib_prefix=no
12107 need_version=no
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12110 case $host_os in
12111 irix5* | nonstopux*)
12112 libsuff= shlibsuff=
12115 case $LD in # libtool.m4 will add one of these switches to LD
12116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12117 libsuff= shlibsuff= libmagic=32-bit;;
12118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12119 libsuff=32 shlibsuff=N32 libmagic=N32;;
12120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12122 *) libsuff= shlibsuff= libmagic=never-match;;
12123 esac
12125 esac
12126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12127 shlibpath_overrides_runpath=no
12128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12130 hardcode_into_libs=yes
12133 # No shared lib support for Linux oldld, aout, or coff.
12134 linux*oldld* | linux*aout* | linux*coff*)
12135 dynamic_linker=no
12138 # This must be glibc/ELF.
12139 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 need_lib_prefix=no
12142 need_version=no
12143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144 soname_spec='${libname}${release}${shared_ext}$major'
12145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=no
12149 # Some binutils ld are patched to set DT_RUNPATH
12150 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 lt_cv_shlibpath_overrides_runpath=no
12154 save_LDFLAGS=$LDFLAGS
12155 save_libdir=$libdir
12156 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12157 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12162 main ()
12166 return 0;
12168 _ACEOF
12169 if ac_fn_c_try_link "$LINENO"; then :
12170 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12171 lt_cv_shlibpath_overrides_runpath=yes
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12176 LDFLAGS=$save_LDFLAGS
12177 libdir=$save_libdir
12181 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12183 # This implies no fast_install, which is unacceptable.
12184 # Some rework will be needed to allow for fast_install
12185 # before this can be enabled.
12186 hardcode_into_libs=yes
12188 # Append ld.so.conf contents to the search path
12189 if test -f /etc/ld.so.conf; then
12190 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' ' '`
12191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12194 # We used to test for /lib/ld.so.1 and disable shared libraries on
12195 # powerpc, because MkLinux only supported shared libraries with the
12196 # GNU dynamic linker. Since this was broken with cross compilers,
12197 # most powerpc-linux boxes support dynamic linking these days and
12198 # people can always --disable-shared, the test was removed, and we
12199 # assume the GNU/Linux dynamic linker is in use.
12200 dynamic_linker='GNU/Linux ld.so'
12203 netbsd*)
12204 version_type=sunos
12205 need_lib_prefix=no
12206 need_version=no
12207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12210 dynamic_linker='NetBSD (a.out) ld.so'
12211 else
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 dynamic_linker='NetBSD ld.elf_so'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=yes
12218 hardcode_into_libs=yes
12221 newsos6)
12222 version_type=linux # correct to gnu/linux during the next big refactor
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=yes
12228 *nto* | *qnx*)
12229 version_type=qnx
12230 need_lib_prefix=no
12231 need_version=no
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233 soname_spec='${libname}${release}${shared_ext}$major'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=no
12236 hardcode_into_libs=yes
12237 dynamic_linker='ldqnx.so'
12240 openbsd*)
12241 version_type=sunos
12242 sys_lib_dlsearch_path_spec="/usr/lib"
12243 need_lib_prefix=no
12244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12245 case $host_os in
12246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12247 *) need_version=no ;;
12248 esac
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12253 case $host_os in
12254 openbsd2.[89] | openbsd2.[89].*)
12255 shlibpath_overrides_runpath=no
12258 shlibpath_overrides_runpath=yes
12260 esac
12261 else
12262 shlibpath_overrides_runpath=yes
12266 os2*)
12267 libname_spec='$name'
12268 shrext_cmds=".dll"
12269 need_lib_prefix=no
12270 library_names_spec='$libname${shared_ext} $libname.a'
12271 dynamic_linker='OS/2 ld.exe'
12272 shlibpath_var=LIBPATH
12275 osf3* | osf4* | osf5*)
12276 version_type=osf
12277 need_lib_prefix=no
12278 need_version=no
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12286 rdos*)
12287 dynamic_linker=no
12290 solaris*)
12291 version_type=linux # correct to gnu/linux during the next big refactor
12292 need_lib_prefix=no
12293 need_version=no
12294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12295 soname_spec='${libname}${release}${shared_ext}$major'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 shlibpath_overrides_runpath=yes
12298 hardcode_into_libs=yes
12299 # ldd complains unless libraries are executable
12300 postinstall_cmds='chmod +x $lib'
12303 sunos4*)
12304 version_type=sunos
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=yes
12309 if test "$with_gnu_ld" = yes; then
12310 need_lib_prefix=no
12312 need_version=yes
12315 sysv4 | sysv4.3*)
12316 version_type=linux # correct to gnu/linux during the next big refactor
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 case $host_vendor in
12321 sni)
12322 shlibpath_overrides_runpath=no
12323 need_lib_prefix=no
12324 runpath_var=LD_RUN_PATH
12326 siemens)
12327 need_lib_prefix=no
12329 motorola)
12330 need_lib_prefix=no
12331 need_version=no
12332 shlibpath_overrides_runpath=no
12333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12335 esac
12338 sysv4*MP*)
12339 if test -d /usr/nec ;then
12340 version_type=linux # correct to gnu/linux during the next big refactor
12341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12342 soname_spec='$libname${shared_ext}.$major'
12343 shlibpath_var=LD_LIBRARY_PATH
12347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12348 version_type=freebsd-elf
12349 need_lib_prefix=no
12350 need_version=no
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 shlibpath_overrides_runpath=yes
12355 hardcode_into_libs=yes
12356 if test "$with_gnu_ld" = yes; then
12357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12358 else
12359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12360 case $host_os in
12361 sco3.2v5*)
12362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12364 esac
12366 sys_lib_dlsearch_path_spec='/usr/lib'
12369 tpf*)
12370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12371 version_type=linux # correct to gnu/linux during the next big refactor
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=no
12377 hardcode_into_libs=yes
12380 uts4*)
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 shlibpath_var=LD_LIBRARY_PATH
12388 dynamic_linker=no
12390 esac
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12392 $as_echo "$dynamic_linker" >&6; }
12393 test "$dynamic_linker" = no && can_build_shared=no
12395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12396 if test "$GCC" = yes; then
12397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12500 hardcode_action=
12501 if test -n "$hardcode_libdir_flag_spec" ||
12502 test -n "$runpath_var" ||
12503 test "X$hardcode_automatic" = "Xyes" ; then
12505 # We can hardcode non-existent directories.
12506 if test "$hardcode_direct" != no &&
12507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12508 # have to relink, otherwise we might link with an installed library
12509 # when we should be linking with a yet-to-be-installed one
12510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12511 test "$hardcode_minus_L" != no; then
12512 # Linking always hardcodes the temporary library directory.
12513 hardcode_action=relink
12514 else
12515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12516 hardcode_action=immediate
12518 else
12519 # We cannot hardcode anything, or else we can only hardcode existing
12520 # directories.
12521 hardcode_action=unsupported
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12524 $as_echo "$hardcode_action" >&6; }
12526 if test "$hardcode_action" = relink ||
12527 test "$inherit_rpath" = yes; then
12528 # Fast installation is not supported
12529 enable_fast_install=no
12530 elif test "$shlibpath_overrides_runpath" = yes ||
12531 test "$enable_shared" = no; then
12532 # Fast installation is not necessary
12533 enable_fast_install=needless
12541 if test "x$enable_dlopen" != xyes; then
12542 enable_dlopen=unknown
12543 enable_dlopen_self=unknown
12544 enable_dlopen_self_static=unknown
12545 else
12546 lt_cv_dlopen=no
12547 lt_cv_dlopen_libs=
12549 case $host_os in
12550 beos*)
12551 lt_cv_dlopen="load_add_on"
12552 lt_cv_dlopen_libs=
12553 lt_cv_dlopen_self=yes
12556 mingw* | pw32* | cegcc*)
12557 lt_cv_dlopen="LoadLibrary"
12558 lt_cv_dlopen_libs=
12561 cygwin*)
12562 lt_cv_dlopen="dlopen"
12563 lt_cv_dlopen_libs=
12566 darwin*)
12567 # if libdl is installed we need to link against it
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12570 if ${ac_cv_lib_dl_dlopen+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 ac_check_lib_save_LIBS=$LIBS
12574 LIBS="-ldl $LIBS"
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12578 /* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 char dlopen ();
12586 main ()
12588 return dlopen ();
12590 return 0;
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_lib_dl_dlopen=yes
12595 else
12596 ac_cv_lib_dl_dlopen=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12606 else
12608 lt_cv_dlopen="dyld"
12609 lt_cv_dlopen_libs=
12610 lt_cv_dlopen_self=yes
12617 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12618 if test "x$ac_cv_func_shl_load" = xyes; then :
12619 lt_cv_dlopen="shl_load"
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12622 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12623 if ${ac_cv_lib_dld_shl_load+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-ldld $LIBS"
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char shl_load ();
12639 main ()
12641 return shl_load ();
12643 return 0;
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_dld_shl_load=yes
12648 else
12649 ac_cv_lib_dld_shl_load=no
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12657 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12659 else
12660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12661 if test "x$ac_cv_func_dlopen" = xyes; then :
12662 lt_cv_dlopen="dlopen"
12663 else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12666 if ${ac_cv_lib_dl_dlopen+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 ac_check_lib_save_LIBS=$LIBS
12670 LIBS="-ldl $LIBS"
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char dlopen ();
12682 main ()
12684 return dlopen ();
12686 return 0;
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_lib_dl_dlopen=yes
12691 else
12692 ac_cv_lib_dl_dlopen=no
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12700 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12704 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12705 if ${ac_cv_lib_svld_dlopen+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 ac_check_lib_save_LIBS=$LIBS
12709 LIBS="-lsvld $LIBS"
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 char dlopen ();
12721 main ()
12723 return dlopen ();
12725 return 0;
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729 ac_cv_lib_svld_dlopen=yes
12730 else
12731 ac_cv_lib_svld_dlopen=no
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 LIBS=$ac_check_lib_save_LIBS
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12738 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12739 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12743 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12744 if ${ac_cv_lib_dld_dld_link+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-ldld $LIBS"
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char dld_link ();
12760 main ()
12762 return dld_link ();
12764 return 0;
12766 _ACEOF
12767 if ac_fn_c_try_link "$LINENO"; then :
12768 ac_cv_lib_dld_dld_link=yes
12769 else
12770 ac_cv_lib_dld_dld_link=no
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12777 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12778 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12779 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12798 esac
12800 if test "x$lt_cv_dlopen" != xno; then
12801 enable_dlopen=yes
12802 else
12803 enable_dlopen=no
12806 case $lt_cv_dlopen in
12807 dlopen)
12808 save_CPPFLAGS="$CPPFLAGS"
12809 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12811 save_LDFLAGS="$LDFLAGS"
12812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12814 save_LIBS="$LIBS"
12815 LIBS="$lt_cv_dlopen_libs $LIBS"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12818 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12819 if ${lt_cv_dlopen_self+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test "$cross_compiling" = yes; then :
12823 lt_cv_dlopen_self=cross
12824 else
12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12826 lt_status=$lt_dlunknown
12827 cat > conftest.$ac_ext <<_LT_EOF
12828 #line $LINENO "configure"
12829 #include "confdefs.h"
12831 #if HAVE_DLFCN_H
12832 #include <dlfcn.h>
12833 #endif
12835 #include <stdio.h>
12837 #ifdef RTLD_GLOBAL
12838 # define LT_DLGLOBAL RTLD_GLOBAL
12839 #else
12840 # ifdef DL_GLOBAL
12841 # define LT_DLGLOBAL DL_GLOBAL
12842 # else
12843 # define LT_DLGLOBAL 0
12844 # endif
12845 #endif
12847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12848 find out it does not work in some platform. */
12849 #ifndef LT_DLLAZY_OR_NOW
12850 # ifdef RTLD_LAZY
12851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12852 # else
12853 # ifdef DL_LAZY
12854 # define LT_DLLAZY_OR_NOW DL_LAZY
12855 # else
12856 # ifdef RTLD_NOW
12857 # define LT_DLLAZY_OR_NOW RTLD_NOW
12858 # else
12859 # ifdef DL_NOW
12860 # define LT_DLLAZY_OR_NOW DL_NOW
12861 # else
12862 # define LT_DLLAZY_OR_NOW 0
12863 # endif
12864 # endif
12865 # endif
12866 # endif
12867 #endif
12869 /* When -fvisbility=hidden is used, assume the code has been annotated
12870 correspondingly for the symbols needed. */
12871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12872 int fnord () __attribute__((visibility("default")));
12873 #endif
12875 int fnord () { return 42; }
12876 int main ()
12878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12879 int status = $lt_dlunknown;
12881 if (self)
12883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12884 else
12886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887 else puts (dlerror ());
12889 /* dlclose (self); */
12891 else
12892 puts (dlerror ());
12894 return status;
12896 _LT_EOF
12897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12898 (eval $ac_link) 2>&5
12899 ac_status=$?
12900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12902 (./conftest; exit; ) >&5 2>/dev/null
12903 lt_status=$?
12904 case x$lt_status in
12905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12907 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12908 esac
12909 else :
12910 # compilation failed
12911 lt_cv_dlopen_self=no
12914 rm -fr conftest*
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12919 $as_echo "$lt_cv_dlopen_self" >&6; }
12921 if test "x$lt_cv_dlopen_self" = xyes; then
12922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12924 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12925 if ${lt_cv_dlopen_self_static+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 if test "$cross_compiling" = yes; then :
12929 lt_cv_dlopen_self_static=cross
12930 else
12931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12932 lt_status=$lt_dlunknown
12933 cat > conftest.$ac_ext <<_LT_EOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12937 #if HAVE_DLFCN_H
12938 #include <dlfcn.h>
12939 #endif
12941 #include <stdio.h>
12943 #ifdef RTLD_GLOBAL
12944 # define LT_DLGLOBAL RTLD_GLOBAL
12945 #else
12946 # ifdef DL_GLOBAL
12947 # define LT_DLGLOBAL DL_GLOBAL
12948 # else
12949 # define LT_DLGLOBAL 0
12950 # endif
12951 #endif
12953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12954 find out it does not work in some platform. */
12955 #ifndef LT_DLLAZY_OR_NOW
12956 # ifdef RTLD_LAZY
12957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12958 # else
12959 # ifdef DL_LAZY
12960 # define LT_DLLAZY_OR_NOW DL_LAZY
12961 # else
12962 # ifdef RTLD_NOW
12963 # define LT_DLLAZY_OR_NOW RTLD_NOW
12964 # else
12965 # ifdef DL_NOW
12966 # define LT_DLLAZY_OR_NOW DL_NOW
12967 # else
12968 # define LT_DLLAZY_OR_NOW 0
12969 # endif
12970 # endif
12971 # endif
12972 # endif
12973 #endif
12975 /* When -fvisbility=hidden is used, assume the code has been annotated
12976 correspondingly for the symbols needed. */
12977 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12978 int fnord () __attribute__((visibility("default")));
12979 #endif
12981 int fnord () { return 42; }
12982 int main ()
12984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12985 int status = $lt_dlunknown;
12987 if (self)
12989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12990 else
12992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12993 else puts (dlerror ());
12995 /* dlclose (self); */
12997 else
12998 puts (dlerror ());
13000 return status;
13002 _LT_EOF
13003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13004 (eval $ac_link) 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13007 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13008 (./conftest; exit; ) >&5 2>/dev/null
13009 lt_status=$?
13010 case x$lt_status in
13011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13013 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13014 esac
13015 else :
13016 # compilation failed
13017 lt_cv_dlopen_self_static=no
13020 rm -fr conftest*
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13025 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13028 CPPFLAGS="$save_CPPFLAGS"
13029 LDFLAGS="$save_LDFLAGS"
13030 LIBS="$save_LIBS"
13032 esac
13034 case $lt_cv_dlopen_self in
13035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13036 *) enable_dlopen_self=unknown ;;
13037 esac
13039 case $lt_cv_dlopen_self_static in
13040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13041 *) enable_dlopen_self_static=unknown ;;
13042 esac
13061 striplib=
13062 old_striplib=
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13064 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13065 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13067 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13070 else
13071 # FIXME - insert some real tests, host_os isn't really good enough
13072 case $host_os in
13073 darwin*)
13074 if test -n "$STRIP" ; then
13075 striplib="$STRIP -x"
13076 old_striplib="$STRIP -S"
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13088 esac
13102 # Report which library types will actually be built
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13104 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13106 $as_echo "$can_build_shared" >&6; }
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13109 $as_echo_n "checking whether to build shared libraries... " >&6; }
13110 test "$can_build_shared" = "no" && enable_shared=no
13112 # On AIX, shared libraries and static libraries use the same namespace, and
13113 # are all built from PIC.
13114 case $host_os in
13115 aix3*)
13116 test "$enable_shared" = yes && enable_static=no
13117 if test -n "$RANLIB"; then
13118 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13119 postinstall_cmds='$RANLIB $lib'
13123 aix[4-9]*)
13124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13125 test "$enable_shared" = yes && enable_static=no
13128 esac
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13130 $as_echo "$enable_shared" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13133 $as_echo_n "checking whether to build static libraries... " >&6; }
13134 # Make sure either enable_shared or enable_static is yes.
13135 test "$enable_shared" = yes || enable_static=yes
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13137 $as_echo "$enable_static" >&6; }
13143 ac_ext=c
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13149 CC="$lt_save_CC"
13165 ac_config_commands="$ac_config_commands libtool"
13170 # Only expand once:
13175 # Extract the first word of "ar", so it can be a program name with args.
13176 set dummy ar; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_path_AR+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 case $AR in
13183 [\\/]* | ?:[\\/]*)
13184 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13198 done
13199 done
13200 IFS=$as_save_IFS
13202 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13204 esac
13206 AR=$ac_cv_path_AR
13207 if test -n "$AR"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13209 $as_echo "$AR" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 # Extract the first word of "rm", so it can be a program name with args.
13217 set dummy rm; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_path_RM+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 case $RM in
13224 [\\/]* | ?:[\\/]*)
13225 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13231 IFS=$as_save_IFS
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13235 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 break 2
13239 done
13240 done
13241 IFS=$as_save_IFS
13243 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13245 esac
13247 RM=$ac_cv_path_RM
13248 if test -n "$RM"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13250 $as_echo "$RM" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13257 # Extract the first word of "cp", so it can be a program name with args.
13258 set dummy cp; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if ${ac_cv_path_CP+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 case $CP in
13265 [\\/]* | ?:[\\/]*)
13266 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278 break 2
13280 done
13281 done
13282 IFS=$as_save_IFS
13284 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13286 esac
13288 CP=$ac_cv_path_CP
13289 if test -n "$CP"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13291 $as_echo "$CP" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13298 # Extract the first word of "ln", so it can be a program name with args.
13299 set dummy ln; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if ${ac_cv_path_LN+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 case $LN in
13306 [\\/]* | ?:[\\/]*)
13307 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 break 2
13321 done
13322 done
13323 IFS=$as_save_IFS
13325 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13327 esac
13329 LN=$ac_cv_path_LN
13330 if test -n "$LN"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13332 $as_echo "$LN" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13339 # Extract the first word of "ls", so it can be a program name with args.
13340 set dummy ls; ac_word=$2
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342 $as_echo_n "checking for $ac_word... " >&6; }
13343 if ${ac_cv_path_LS+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 case $LS in
13347 [\\/]* | ?:[\\/]*)
13348 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13358 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13362 done
13363 done
13364 IFS=$as_save_IFS
13366 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13368 esac
13370 LS=$ac_cv_path_LS
13371 if test -n "$LS"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13373 $as_echo "$LS" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13380 # Extract the first word of "sed", so it can be a program name with args.
13381 set dummy sed; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_path_SED+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 case $SED in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $PATH
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13403 done
13404 done
13405 IFS=$as_save_IFS
13407 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13409 esac
13411 SED=$ac_cv_path_SED
13412 if test -n "$SED"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13414 $as_echo "$SED" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13421 # Extract the first word of "make", so it can be a program name with args.
13422 set dummy make; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_path_MAKE+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 case $MAKE in
13429 [\\/]* | ?:[\\/]*)
13430 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13444 done
13445 done
13446 IFS=$as_save_IFS
13449 esac
13451 MAKE=$ac_cv_path_MAKE
13452 if test -n "$MAKE"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13454 $as_echo "$MAKE" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13466 $as_echo_n "checking whether NLS is requested... " >&6; }
13467 # Check whether --enable-nls was given.
13468 if test "${enable_nls+set}" = set; then :
13469 enableval=$enable_nls; USE_NLS=$enableval
13470 else
13471 USE_NLS=yes
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13475 $as_echo "$USE_NLS" >&6; }
13482 # Prepare PATH_SEPARATOR.
13483 # The user is always right.
13484 if test "${PATH_SEPARATOR+set}" != set; then
13485 echo "#! /bin/sh" >conf$$.sh
13486 echo "exit 0" >>conf$$.sh
13487 chmod +x conf$$.sh
13488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13489 PATH_SEPARATOR=';'
13490 else
13491 PATH_SEPARATOR=:
13493 rm -f conf$$.sh
13496 # Find out how to test for executable files. Don't use a zero-byte file,
13497 # as systems may use methods other than mode bits to determine executability.
13498 cat >conf$$.file <<_ASEOF
13499 #! /bin/sh
13500 exit 0
13501 _ASEOF
13502 chmod +x conf$$.file
13503 if test -x conf$$.file >/dev/null 2>&1; then
13504 ac_executable_p="test -x"
13505 else
13506 ac_executable_p="test -f"
13508 rm -f conf$$.file
13510 # Extract the first word of "msgfmt", so it can be a program name with args.
13511 set dummy msgfmt; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if ${ac_cv_path_MSGFMT+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 case "$MSGFMT" in
13518 [\\/]* | ?:[\\/]*)
13519 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13523 for ac_dir in $PATH; do
13524 IFS="$ac_save_IFS"
13525 test -z "$ac_dir" && ac_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13528 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13529 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13530 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13531 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13532 break 2
13535 done
13536 done
13537 IFS="$ac_save_IFS"
13538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13540 esac
13542 MSGFMT="$ac_cv_path_MSGFMT"
13543 if test "$MSGFMT" != ":"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13545 $as_echo "$MSGFMT" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13551 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13552 set dummy gmsgfmt; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_path_GMSGFMT+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 case $GMSGFMT in
13559 [\\/]* | ?:[\\/]*)
13560 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13566 IFS=$as_save_IFS
13567 test -z "$as_dir" && as_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13570 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13572 break 2
13574 done
13575 done
13576 IFS=$as_save_IFS
13578 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13580 esac
13582 GMSGFMT=$ac_cv_path_GMSGFMT
13583 if test -n "$GMSGFMT"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13585 $as_echo "$GMSGFMT" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13593 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13594 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13595 *) MSGFMT_015=$MSGFMT ;;
13596 esac
13598 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13599 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13600 *) GMSGFMT_015=$GMSGFMT ;;
13601 esac
13605 # Prepare PATH_SEPARATOR.
13606 # The user is always right.
13607 if test "${PATH_SEPARATOR+set}" != set; then
13608 echo "#! /bin/sh" >conf$$.sh
13609 echo "exit 0" >>conf$$.sh
13610 chmod +x conf$$.sh
13611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13612 PATH_SEPARATOR=';'
13613 else
13614 PATH_SEPARATOR=:
13616 rm -f conf$$.sh
13619 # Find out how to test for executable files. Don't use a zero-byte file,
13620 # as systems may use methods other than mode bits to determine executability.
13621 cat >conf$$.file <<_ASEOF
13622 #! /bin/sh
13623 exit 0
13624 _ASEOF
13625 chmod +x conf$$.file
13626 if test -x conf$$.file >/dev/null 2>&1; then
13627 ac_executable_p="test -x"
13628 else
13629 ac_executable_p="test -f"
13631 rm -f conf$$.file
13633 # Extract the first word of "xgettext", so it can be a program name with args.
13634 set dummy xgettext; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if ${ac_cv_path_XGETTEXT+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 case "$XGETTEXT" in
13641 [\\/]* | ?:[\\/]*)
13642 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13646 for ac_dir in $PATH; do
13647 IFS="$ac_save_IFS"
13648 test -z "$ac_dir" && ac_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13651 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13652 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13653 (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
13654 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13655 break 2
13658 done
13659 done
13660 IFS="$ac_save_IFS"
13661 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13663 esac
13665 XGETTEXT="$ac_cv_path_XGETTEXT"
13666 if test "$XGETTEXT" != ":"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13668 $as_echo "$XGETTEXT" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13674 rm -f messages.po
13676 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13677 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13678 *) XGETTEXT_015=$XGETTEXT ;;
13679 esac
13683 # Prepare PATH_SEPARATOR.
13684 # The user is always right.
13685 if test "${PATH_SEPARATOR+set}" != set; then
13686 echo "#! /bin/sh" >conf$$.sh
13687 echo "exit 0" >>conf$$.sh
13688 chmod +x conf$$.sh
13689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13690 PATH_SEPARATOR=';'
13691 else
13692 PATH_SEPARATOR=:
13694 rm -f conf$$.sh
13697 # Find out how to test for executable files. Don't use a zero-byte file,
13698 # as systems may use methods other than mode bits to determine executability.
13699 cat >conf$$.file <<_ASEOF
13700 #! /bin/sh
13701 exit 0
13702 _ASEOF
13703 chmod +x conf$$.file
13704 if test -x conf$$.file >/dev/null 2>&1; then
13705 ac_executable_p="test -x"
13706 else
13707 ac_executable_p="test -f"
13709 rm -f conf$$.file
13711 # Extract the first word of "msgmerge", so it can be a program name with args.
13712 set dummy msgmerge; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_path_MSGMERGE+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 case "$MSGMERGE" in
13719 [\\/]* | ?:[\\/]*)
13720 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13724 for ac_dir in $PATH; do
13725 IFS="$ac_save_IFS"
13726 test -z "$ac_dir" && ac_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13729 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13730 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13731 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13732 break 2
13735 done
13736 done
13737 IFS="$ac_save_IFS"
13738 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13740 esac
13742 MSGMERGE="$ac_cv_path_MSGMERGE"
13743 if test "$MSGMERGE" != ":"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13745 $as_echo "$MSGMERGE" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13752 test -n "$localedir" || localedir='${datadir}/locale'
13755 ac_config_commands="$ac_config_commands po-directories"
13759 if test "X$prefix" = "XNONE"; then
13760 acl_final_prefix="$ac_default_prefix"
13761 else
13762 acl_final_prefix="$prefix"
13764 if test "X$exec_prefix" = "XNONE"; then
13765 acl_final_exec_prefix='${prefix}'
13766 else
13767 acl_final_exec_prefix="$exec_prefix"
13769 acl_save_prefix="$prefix"
13770 prefix="$acl_final_prefix"
13771 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13772 prefix="$acl_save_prefix"
13775 # Check whether --with-gnu-ld was given.
13776 if test "${with_gnu_ld+set}" = set; then :
13777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13778 else
13779 with_gnu_ld=no
13782 # Prepare PATH_SEPARATOR.
13783 # The user is always right.
13784 if test "${PATH_SEPARATOR+set}" != set; then
13785 echo "#! /bin/sh" >conf$$.sh
13786 echo "exit 0" >>conf$$.sh
13787 chmod +x conf$$.sh
13788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13789 PATH_SEPARATOR=';'
13790 else
13791 PATH_SEPARATOR=:
13793 rm -f conf$$.sh
13795 ac_prog=ld
13796 if test "$GCC" = yes; then
13797 # Check if gcc -print-prog-name=ld gives a path.
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13799 $as_echo_n "checking for ld used by GCC... " >&6; }
13800 case $host in
13801 *-*-mingw*)
13802 # gcc leaves a trailing carriage return which upsets mingw
13803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13806 esac
13807 case $ac_prog in
13808 # Accept absolute paths.
13809 [\\/]* | [A-Za-z]:[\\/]*)
13810 re_direlt='/[^/][^/]*/\.\./'
13811 # Canonicalize the path of ld
13812 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13813 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13814 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13815 done
13816 test -z "$LD" && LD="$ac_prog"
13819 # If it fails, then pretend we aren't using GCC.
13820 ac_prog=ld
13823 # If it is relative, then search for the first ld in PATH.
13824 with_gnu_ld=unknown
13826 esac
13827 elif test "$with_gnu_ld" = yes; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13829 $as_echo_n "checking for GNU ld... " >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13832 $as_echo_n "checking for non-GNU ld... " >&6; }
13834 if ${acl_cv_path_LD+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 if test -z "$LD"; then
13838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13839 for ac_dir in $PATH; do
13840 test -z "$ac_dir" && ac_dir=.
13841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13842 acl_cv_path_LD="$ac_dir/$ac_prog"
13843 # Check to see if the program is GNU ld. I'd rather use --version,
13844 # but apparently some GNU ld's only accept -v.
13845 # Break only if it was the GNU/non-GNU ld that we prefer.
13846 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13847 *GNU* | *'with BFD'*)
13848 test "$with_gnu_ld" != no && break ;;
13850 test "$with_gnu_ld" != yes && break ;;
13851 esac
13853 done
13854 IFS="$ac_save_ifs"
13855 else
13856 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13860 LD="$acl_cv_path_LD"
13861 if test -n "$LD"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13863 $as_echo "$LD" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13868 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13871 if ${acl_cv_prog_gnu_ld+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13875 case `$LD -v 2>&1 </dev/null` in
13876 *GNU* | *'with BFD'*)
13877 acl_cv_prog_gnu_ld=yes ;;
13879 acl_cv_prog_gnu_ld=no ;;
13880 esac
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13883 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13884 with_gnu_ld=$acl_cv_prog_gnu_ld
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13890 $as_echo_n "checking for shared library run path origin... " >&6; }
13891 if ${acl_cv_rpath+:} false; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13895 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13896 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13897 . ./conftest.sh
13898 rm -f ./conftest.sh
13899 acl_cv_rpath=done
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13903 $as_echo "$acl_cv_rpath" >&6; }
13904 wl="$acl_cv_wl"
13905 libext="$acl_cv_libext"
13906 shlibext="$acl_cv_shlibext"
13907 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13908 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13909 hardcode_direct="$acl_cv_hardcode_direct"
13910 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13911 # Check whether --enable-rpath was given.
13912 if test "${enable_rpath+set}" = set; then :
13913 enableval=$enable_rpath; :
13914 else
13915 enable_rpath=yes
13920 acl_libdirstem=lib
13921 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13922 if test -n "$searchpath"; then
13923 acl_save_IFS="${IFS= }"; IFS=":"
13924 for searchdir in $searchpath; do
13925 if test -d "$searchdir"; then
13926 case "$searchdir" in
13927 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13928 *) searchdir=`cd "$searchdir" && pwd`
13929 case "$searchdir" in
13930 */lib64 ) acl_libdirstem=lib64 ;;
13931 esac ;;
13932 esac
13934 done
13935 IFS="$acl_save_IFS"
13945 use_additional=yes
13947 acl_save_prefix="$prefix"
13948 prefix="$acl_final_prefix"
13949 acl_save_exec_prefix="$exec_prefix"
13950 exec_prefix="$acl_final_exec_prefix"
13952 eval additional_includedir=\"$includedir\"
13953 eval additional_libdir=\"$libdir\"
13955 exec_prefix="$acl_save_exec_prefix"
13956 prefix="$acl_save_prefix"
13959 # Check whether --with-libiconv-prefix was given.
13960 if test "${with_libiconv_prefix+set}" = set; then :
13961 withval=$with_libiconv_prefix;
13962 if test "X$withval" = "Xno"; then
13963 use_additional=no
13964 else
13965 if test "X$withval" = "X"; then
13967 acl_save_prefix="$prefix"
13968 prefix="$acl_final_prefix"
13969 acl_save_exec_prefix="$exec_prefix"
13970 exec_prefix="$acl_final_exec_prefix"
13972 eval additional_includedir=\"$includedir\"
13973 eval additional_libdir=\"$libdir\"
13975 exec_prefix="$acl_save_exec_prefix"
13976 prefix="$acl_save_prefix"
13978 else
13979 additional_includedir="$withval/include"
13980 additional_libdir="$withval/$acl_libdirstem"
13986 LIBICONV=
13987 LTLIBICONV=
13988 INCICONV=
13989 rpathdirs=
13990 ltrpathdirs=
13991 names_already_handled=
13992 names_next_round='iconv '
13993 while test -n "$names_next_round"; do
13994 names_this_round="$names_next_round"
13995 names_next_round=
13996 for name in $names_this_round; do
13997 already_handled=
13998 for n in $names_already_handled; do
13999 if test "$n" = "$name"; then
14000 already_handled=yes
14001 break
14003 done
14004 if test -z "$already_handled"; then
14005 names_already_handled="$names_already_handled $name"
14006 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14007 eval value=\"\$HAVE_LIB$uppername\"
14008 if test -n "$value"; then
14009 if test "$value" = yes; then
14010 eval value=\"\$LIB$uppername\"
14011 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14012 eval value=\"\$LTLIB$uppername\"
14013 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14014 else
14017 else
14018 found_dir=
14019 found_la=
14020 found_so=
14021 found_a=
14022 if test $use_additional = yes; then
14023 if test -n "$shlibext" \
14024 && { test -f "$additional_libdir/lib$name.$shlibext" \
14025 || { test "$shlibext" = dll \
14026 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14027 found_dir="$additional_libdir"
14028 if test -f "$additional_libdir/lib$name.$shlibext"; then
14029 found_so="$additional_libdir/lib$name.$shlibext"
14030 else
14031 found_so="$additional_libdir/lib$name.dll.a"
14033 if test -f "$additional_libdir/lib$name.la"; then
14034 found_la="$additional_libdir/lib$name.la"
14036 else
14037 if test -f "$additional_libdir/lib$name.$libext"; then
14038 found_dir="$additional_libdir"
14039 found_a="$additional_libdir/lib$name.$libext"
14040 if test -f "$additional_libdir/lib$name.la"; then
14041 found_la="$additional_libdir/lib$name.la"
14046 if test "X$found_dir" = "X"; then
14047 for x in $LDFLAGS $LTLIBICONV; do
14049 acl_save_prefix="$prefix"
14050 prefix="$acl_final_prefix"
14051 acl_save_exec_prefix="$exec_prefix"
14052 exec_prefix="$acl_final_exec_prefix"
14053 eval x=\"$x\"
14054 exec_prefix="$acl_save_exec_prefix"
14055 prefix="$acl_save_prefix"
14057 case "$x" in
14058 -L*)
14059 dir=`echo "X$x" | sed -e 's/^X-L//'`
14060 if test -n "$shlibext" \
14061 && { test -f "$dir/lib$name.$shlibext" \
14062 || { test "$shlibext" = dll \
14063 && test -f "$dir/lib$name.dll.a"; }; }; then
14064 found_dir="$dir"
14065 if test -f "$dir/lib$name.$shlibext"; then
14066 found_so="$dir/lib$name.$shlibext"
14067 else
14068 found_so="$dir/lib$name.dll.a"
14070 if test -f "$dir/lib$name.la"; then
14071 found_la="$dir/lib$name.la"
14073 else
14074 if test -f "$dir/lib$name.$libext"; then
14075 found_dir="$dir"
14076 found_a="$dir/lib$name.$libext"
14077 if test -f "$dir/lib$name.la"; then
14078 found_la="$dir/lib$name.la"
14083 esac
14084 if test "X$found_dir" != "X"; then
14085 break
14087 done
14089 if test "X$found_dir" != "X"; then
14090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14091 if test "X$found_so" != "X"; then
14092 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14094 else
14095 haveit=
14096 for x in $ltrpathdirs; do
14097 if test "X$x" = "X$found_dir"; then
14098 haveit=yes
14099 break
14101 done
14102 if test -z "$haveit"; then
14103 ltrpathdirs="$ltrpathdirs $found_dir"
14105 if test "$hardcode_direct" = yes; then
14106 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14107 else
14108 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14109 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14110 haveit=
14111 for x in $rpathdirs; do
14112 if test "X$x" = "X$found_dir"; then
14113 haveit=yes
14114 break
14116 done
14117 if test -z "$haveit"; then
14118 rpathdirs="$rpathdirs $found_dir"
14120 else
14121 haveit=
14122 for x in $LDFLAGS $LIBICONV; do
14124 acl_save_prefix="$prefix"
14125 prefix="$acl_final_prefix"
14126 acl_save_exec_prefix="$exec_prefix"
14127 exec_prefix="$acl_final_exec_prefix"
14128 eval x=\"$x\"
14129 exec_prefix="$acl_save_exec_prefix"
14130 prefix="$acl_save_prefix"
14132 if test "X$x" = "X-L$found_dir"; then
14133 haveit=yes
14134 break
14136 done
14137 if test -z "$haveit"; then
14138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14140 if test "$hardcode_minus_L" != no; then
14141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14142 else
14143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14148 else
14149 if test "X$found_a" != "X"; then
14150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14151 else
14152 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14155 additional_includedir=
14156 case "$found_dir" in
14157 */$acl_libdirstem | */$acl_libdirstem/)
14158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14159 additional_includedir="$basedir/include"
14161 esac
14162 if test "X$additional_includedir" != "X"; then
14163 if test "X$additional_includedir" != "X/usr/include"; then
14164 haveit=
14165 if test "X$additional_includedir" = "X/usr/local/include"; then
14166 if test -n "$GCC"; then
14167 case $host_os in
14168 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14169 esac
14172 if test -z "$haveit"; then
14173 for x in $CPPFLAGS $INCICONV; do
14175 acl_save_prefix="$prefix"
14176 prefix="$acl_final_prefix"
14177 acl_save_exec_prefix="$exec_prefix"
14178 exec_prefix="$acl_final_exec_prefix"
14179 eval x=\"$x\"
14180 exec_prefix="$acl_save_exec_prefix"
14181 prefix="$acl_save_prefix"
14183 if test "X$x" = "X-I$additional_includedir"; then
14184 haveit=yes
14185 break
14187 done
14188 if test -z "$haveit"; then
14189 if test -d "$additional_includedir"; then
14190 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14196 if test -n "$found_la"; then
14197 save_libdir="$libdir"
14198 case "$found_la" in
14199 */* | *\\*) . "$found_la" ;;
14200 *) . "./$found_la" ;;
14201 esac
14202 libdir="$save_libdir"
14203 for dep in $dependency_libs; do
14204 case "$dep" in
14205 -L*)
14206 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14207 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14208 haveit=
14209 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14210 if test -n "$GCC"; then
14211 case $host_os in
14212 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14213 esac
14216 if test -z "$haveit"; then
14217 haveit=
14218 for x in $LDFLAGS $LIBICONV; do
14220 acl_save_prefix="$prefix"
14221 prefix="$acl_final_prefix"
14222 acl_save_exec_prefix="$exec_prefix"
14223 exec_prefix="$acl_final_exec_prefix"
14224 eval x=\"$x\"
14225 exec_prefix="$acl_save_exec_prefix"
14226 prefix="$acl_save_prefix"
14228 if test "X$x" = "X-L$additional_libdir"; then
14229 haveit=yes
14230 break
14232 done
14233 if test -z "$haveit"; then
14234 if test -d "$additional_libdir"; then
14235 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14238 haveit=
14239 for x in $LDFLAGS $LTLIBICONV; do
14241 acl_save_prefix="$prefix"
14242 prefix="$acl_final_prefix"
14243 acl_save_exec_prefix="$exec_prefix"
14244 exec_prefix="$acl_final_exec_prefix"
14245 eval x=\"$x\"
14246 exec_prefix="$acl_save_exec_prefix"
14247 prefix="$acl_save_prefix"
14249 if test "X$x" = "X-L$additional_libdir"; then
14250 haveit=yes
14251 break
14253 done
14254 if test -z "$haveit"; then
14255 if test -d "$additional_libdir"; then
14256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14262 -R*)
14263 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14264 if test "$enable_rpath" != no; then
14265 haveit=
14266 for x in $rpathdirs; do
14267 if test "X$x" = "X$dir"; then
14268 haveit=yes
14269 break
14271 done
14272 if test -z "$haveit"; then
14273 rpathdirs="$rpathdirs $dir"
14275 haveit=
14276 for x in $ltrpathdirs; do
14277 if test "X$x" = "X$dir"; then
14278 haveit=yes
14279 break
14281 done
14282 if test -z "$haveit"; then
14283 ltrpathdirs="$ltrpathdirs $dir"
14287 -l*)
14288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14290 *.la)
14291 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14294 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14295 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14297 esac
14298 done
14300 else
14301 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14306 done
14307 done
14308 if test "X$rpathdirs" != "X"; then
14309 if test -n "$hardcode_libdir_separator"; then
14310 alldirs=
14311 for found_dir in $rpathdirs; do
14312 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14313 done
14314 acl_save_libdir="$libdir"
14315 libdir="$alldirs"
14316 eval flag=\"$hardcode_libdir_flag_spec\"
14317 libdir="$acl_save_libdir"
14318 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14319 else
14320 for found_dir in $rpathdirs; do
14321 acl_save_libdir="$libdir"
14322 libdir="$found_dir"
14323 eval flag=\"$hardcode_libdir_flag_spec\"
14324 libdir="$acl_save_libdir"
14325 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14326 done
14329 if test "X$ltrpathdirs" != "X"; then
14330 for found_dir in $ltrpathdirs; do
14331 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14332 done
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14360 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14361 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 gt_save_LIBS="$LIBS"
14365 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 #include <CoreFoundation/CFPreferences.h>
14370 main ()
14372 CFPreferencesCopyAppValue(NULL, NULL)
14374 return 0;
14376 _ACEOF
14377 if ac_fn_c_try_link "$LINENO"; then :
14378 gt_cv_func_CFPreferencesCopyAppValue=yes
14379 else
14380 gt_cv_func_CFPreferencesCopyAppValue=no
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
14384 LIBS="$gt_save_LIBS"
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14387 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14388 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14390 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14394 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14395 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 gt_save_LIBS="$LIBS"
14399 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 #include <CoreFoundation/CFLocale.h>
14404 main ()
14406 CFLocaleCopyCurrent();
14408 return 0;
14410 _ACEOF
14411 if ac_fn_c_try_link "$LINENO"; then :
14412 gt_cv_func_CFLocaleCopyCurrent=yes
14413 else
14414 gt_cv_func_CFLocaleCopyCurrent=no
14416 rm -f core conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14418 LIBS="$gt_save_LIBS"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14421 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14422 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14424 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14427 INTL_MACOSX_LIBS=
14428 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14429 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14437 LIBINTL=
14438 LTLIBINTL=
14439 POSUB=
14441 case " $gt_needs " in
14442 *" need-formatstring-macros "*) gt_api_version=3 ;;
14443 *" need-ngettext "*) gt_api_version=2 ;;
14444 *) gt_api_version=1 ;;
14445 esac
14446 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14447 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14449 if test "$USE_NLS" = "yes"; then
14450 gt_use_preinstalled_gnugettext=no
14453 if test $gt_api_version -ge 3; then
14454 gt_revision_test_code='
14455 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14456 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14457 #endif
14458 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14460 else
14461 gt_revision_test_code=
14463 if test $gt_api_version -ge 2; then
14464 gt_expression_test_code=' + * ngettext ("", "", 0)'
14465 else
14466 gt_expression_test_code=
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14470 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14471 if eval \${$gt_func_gnugettext_libc+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 #include <libintl.h>
14477 $gt_revision_test_code
14478 extern int _nl_msg_cat_cntr;
14479 extern int *_nl_domain_bindings;
14481 main ()
14483 bindtextdomain ("", "");
14484 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14486 return 0;
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490 eval "$gt_func_gnugettext_libc=yes"
14491 else
14492 eval "$gt_func_gnugettext_libc=no"
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14497 eval ac_res=\$$gt_func_gnugettext_libc
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14499 $as_echo "$ac_res" >&6; }
14501 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14507 am_save_CPPFLAGS="$CPPFLAGS"
14509 for element in $INCICONV; do
14510 haveit=
14511 for x in $CPPFLAGS; do
14513 acl_save_prefix="$prefix"
14514 prefix="$acl_final_prefix"
14515 acl_save_exec_prefix="$exec_prefix"
14516 exec_prefix="$acl_final_exec_prefix"
14517 eval x=\"$x\"
14518 exec_prefix="$acl_save_exec_prefix"
14519 prefix="$acl_save_prefix"
14521 if test "X$x" = "X$element"; then
14522 haveit=yes
14523 break
14525 done
14526 if test -z "$haveit"; then
14527 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14529 done
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14533 $as_echo_n "checking for iconv... " >&6; }
14534 if ${am_cv_func_iconv+:} false; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14538 am_cv_func_iconv="no, consider installing GNU libiconv"
14539 am_cv_lib_iconv=no
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdlib.h>
14543 #include <iconv.h>
14545 main ()
14547 iconv_t cd = iconv_open("","");
14548 iconv(cd,NULL,NULL,NULL,NULL);
14549 iconv_close(cd);
14551 return 0;
14553 _ACEOF
14554 if ac_fn_c_try_link "$LINENO"; then :
14555 am_cv_func_iconv=yes
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 if test "$am_cv_func_iconv" != yes; then
14560 am_save_LIBS="$LIBS"
14561 LIBS="$LIBS $LIBICONV"
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 #include <stdlib.h>
14565 #include <iconv.h>
14567 main ()
14569 iconv_t cd = iconv_open("","");
14570 iconv(cd,NULL,NULL,NULL,NULL);
14571 iconv_close(cd);
14573 return 0;
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 am_cv_lib_iconv=yes
14578 am_cv_func_iconv=yes
14580 rm -f core conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 LIBS="$am_save_LIBS"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14587 $as_echo "$am_cv_func_iconv" >&6; }
14588 if test "$am_cv_func_iconv" = yes; then
14590 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14593 if test "$am_cv_lib_iconv" = yes; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14595 $as_echo_n "checking how to link with libiconv... " >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14597 $as_echo "$LIBICONV" >&6; }
14598 else
14599 CPPFLAGS="$am_save_CPPFLAGS"
14600 LIBICONV=
14601 LTLIBICONV=
14610 use_additional=yes
14612 acl_save_prefix="$prefix"
14613 prefix="$acl_final_prefix"
14614 acl_save_exec_prefix="$exec_prefix"
14615 exec_prefix="$acl_final_exec_prefix"
14617 eval additional_includedir=\"$includedir\"
14618 eval additional_libdir=\"$libdir\"
14620 exec_prefix="$acl_save_exec_prefix"
14621 prefix="$acl_save_prefix"
14624 # Check whether --with-libintl-prefix was given.
14625 if test "${with_libintl_prefix+set}" = set; then :
14626 withval=$with_libintl_prefix;
14627 if test "X$withval" = "Xno"; then
14628 use_additional=no
14629 else
14630 if test "X$withval" = "X"; then
14632 acl_save_prefix="$prefix"
14633 prefix="$acl_final_prefix"
14634 acl_save_exec_prefix="$exec_prefix"
14635 exec_prefix="$acl_final_exec_prefix"
14637 eval additional_includedir=\"$includedir\"
14638 eval additional_libdir=\"$libdir\"
14640 exec_prefix="$acl_save_exec_prefix"
14641 prefix="$acl_save_prefix"
14643 else
14644 additional_includedir="$withval/include"
14645 additional_libdir="$withval/$acl_libdirstem"
14651 LIBINTL=
14652 LTLIBINTL=
14653 INCINTL=
14654 rpathdirs=
14655 ltrpathdirs=
14656 names_already_handled=
14657 names_next_round='intl '
14658 while test -n "$names_next_round"; do
14659 names_this_round="$names_next_round"
14660 names_next_round=
14661 for name in $names_this_round; do
14662 already_handled=
14663 for n in $names_already_handled; do
14664 if test "$n" = "$name"; then
14665 already_handled=yes
14666 break
14668 done
14669 if test -z "$already_handled"; then
14670 names_already_handled="$names_already_handled $name"
14671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14672 eval value=\"\$HAVE_LIB$uppername\"
14673 if test -n "$value"; then
14674 if test "$value" = yes; then
14675 eval value=\"\$LIB$uppername\"
14676 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14677 eval value=\"\$LTLIB$uppername\"
14678 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14679 else
14682 else
14683 found_dir=
14684 found_la=
14685 found_so=
14686 found_a=
14687 if test $use_additional = yes; then
14688 if test -n "$shlibext" \
14689 && { test -f "$additional_libdir/lib$name.$shlibext" \
14690 || { test "$shlibext" = dll \
14691 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14692 found_dir="$additional_libdir"
14693 if test -f "$additional_libdir/lib$name.$shlibext"; then
14694 found_so="$additional_libdir/lib$name.$shlibext"
14695 else
14696 found_so="$additional_libdir/lib$name.dll.a"
14698 if test -f "$additional_libdir/lib$name.la"; then
14699 found_la="$additional_libdir/lib$name.la"
14701 else
14702 if test -f "$additional_libdir/lib$name.$libext"; then
14703 found_dir="$additional_libdir"
14704 found_a="$additional_libdir/lib$name.$libext"
14705 if test -f "$additional_libdir/lib$name.la"; then
14706 found_la="$additional_libdir/lib$name.la"
14711 if test "X$found_dir" = "X"; then
14712 for x in $LDFLAGS $LTLIBINTL; do
14714 acl_save_prefix="$prefix"
14715 prefix="$acl_final_prefix"
14716 acl_save_exec_prefix="$exec_prefix"
14717 exec_prefix="$acl_final_exec_prefix"
14718 eval x=\"$x\"
14719 exec_prefix="$acl_save_exec_prefix"
14720 prefix="$acl_save_prefix"
14722 case "$x" in
14723 -L*)
14724 dir=`echo "X$x" | sed -e 's/^X-L//'`
14725 if test -n "$shlibext" \
14726 && { test -f "$dir/lib$name.$shlibext" \
14727 || { test "$shlibext" = dll \
14728 && test -f "$dir/lib$name.dll.a"; }; }; then
14729 found_dir="$dir"
14730 if test -f "$dir/lib$name.$shlibext"; then
14731 found_so="$dir/lib$name.$shlibext"
14732 else
14733 found_so="$dir/lib$name.dll.a"
14735 if test -f "$dir/lib$name.la"; then
14736 found_la="$dir/lib$name.la"
14738 else
14739 if test -f "$dir/lib$name.$libext"; then
14740 found_dir="$dir"
14741 found_a="$dir/lib$name.$libext"
14742 if test -f "$dir/lib$name.la"; then
14743 found_la="$dir/lib$name.la"
14748 esac
14749 if test "X$found_dir" != "X"; then
14750 break
14752 done
14754 if test "X$found_dir" != "X"; then
14755 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14756 if test "X$found_so" != "X"; then
14757 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14758 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14759 else
14760 haveit=
14761 for x in $ltrpathdirs; do
14762 if test "X$x" = "X$found_dir"; then
14763 haveit=yes
14764 break
14766 done
14767 if test -z "$haveit"; then
14768 ltrpathdirs="$ltrpathdirs $found_dir"
14770 if test "$hardcode_direct" = yes; then
14771 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14772 else
14773 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14774 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14775 haveit=
14776 for x in $rpathdirs; do
14777 if test "X$x" = "X$found_dir"; then
14778 haveit=yes
14779 break
14781 done
14782 if test -z "$haveit"; then
14783 rpathdirs="$rpathdirs $found_dir"
14785 else
14786 haveit=
14787 for x in $LDFLAGS $LIBINTL; do
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14793 eval x=\"$x\"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14797 if test "X$x" = "X-L$found_dir"; then
14798 haveit=yes
14799 break
14801 done
14802 if test -z "$haveit"; then
14803 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14805 if test "$hardcode_minus_L" != no; then
14806 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14807 else
14808 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14813 else
14814 if test "X$found_a" != "X"; then
14815 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14816 else
14817 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14820 additional_includedir=
14821 case "$found_dir" in
14822 */$acl_libdirstem | */$acl_libdirstem/)
14823 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14824 additional_includedir="$basedir/include"
14826 esac
14827 if test "X$additional_includedir" != "X"; then
14828 if test "X$additional_includedir" != "X/usr/include"; then
14829 haveit=
14830 if test "X$additional_includedir" = "X/usr/local/include"; then
14831 if test -n "$GCC"; then
14832 case $host_os in
14833 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14834 esac
14837 if test -z "$haveit"; then
14838 for x in $CPPFLAGS $INCINTL; do
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14844 eval x=\"$x\"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14848 if test "X$x" = "X-I$additional_includedir"; then
14849 haveit=yes
14850 break
14852 done
14853 if test -z "$haveit"; then
14854 if test -d "$additional_includedir"; then
14855 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14861 if test -n "$found_la"; then
14862 save_libdir="$libdir"
14863 case "$found_la" in
14864 */* | *\\*) . "$found_la" ;;
14865 *) . "./$found_la" ;;
14866 esac
14867 libdir="$save_libdir"
14868 for dep in $dependency_libs; do
14869 case "$dep" in
14870 -L*)
14871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14872 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14873 haveit=
14874 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14875 if test -n "$GCC"; then
14876 case $host_os in
14877 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14878 esac
14881 if test -z "$haveit"; then
14882 haveit=
14883 for x in $LDFLAGS $LIBINTL; do
14885 acl_save_prefix="$prefix"
14886 prefix="$acl_final_prefix"
14887 acl_save_exec_prefix="$exec_prefix"
14888 exec_prefix="$acl_final_exec_prefix"
14889 eval x=\"$x\"
14890 exec_prefix="$acl_save_exec_prefix"
14891 prefix="$acl_save_prefix"
14893 if test "X$x" = "X-L$additional_libdir"; then
14894 haveit=yes
14895 break
14897 done
14898 if test -z "$haveit"; then
14899 if test -d "$additional_libdir"; then
14900 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14903 haveit=
14904 for x in $LDFLAGS $LTLIBINTL; do
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14914 if test "X$x" = "X-L$additional_libdir"; then
14915 haveit=yes
14916 break
14918 done
14919 if test -z "$haveit"; then
14920 if test -d "$additional_libdir"; then
14921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14927 -R*)
14928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14929 if test "$enable_rpath" != no; then
14930 haveit=
14931 for x in $rpathdirs; do
14932 if test "X$x" = "X$dir"; then
14933 haveit=yes
14934 break
14936 done
14937 if test -z "$haveit"; then
14938 rpathdirs="$rpathdirs $dir"
14940 haveit=
14941 for x in $ltrpathdirs; do
14942 if test "X$x" = "X$dir"; then
14943 haveit=yes
14944 break
14946 done
14947 if test -z "$haveit"; then
14948 ltrpathdirs="$ltrpathdirs $dir"
14952 -l*)
14953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14955 *.la)
14956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14959 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14960 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14962 esac
14963 done
14965 else
14966 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14967 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14971 done
14972 done
14973 if test "X$rpathdirs" != "X"; then
14974 if test -n "$hardcode_libdir_separator"; then
14975 alldirs=
14976 for found_dir in $rpathdirs; do
14977 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14978 done
14979 acl_save_libdir="$libdir"
14980 libdir="$alldirs"
14981 eval flag=\"$hardcode_libdir_flag_spec\"
14982 libdir="$acl_save_libdir"
14983 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14984 else
14985 for found_dir in $rpathdirs; do
14986 acl_save_libdir="$libdir"
14987 libdir="$found_dir"
14988 eval flag=\"$hardcode_libdir_flag_spec\"
14989 libdir="$acl_save_libdir"
14990 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14991 done
14994 if test "X$ltrpathdirs" != "X"; then
14995 for found_dir in $ltrpathdirs; do
14996 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14997 done
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15001 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15002 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 gt_save_CPPFLAGS="$CPPFLAGS"
15006 CPPFLAGS="$CPPFLAGS $INCINTL"
15007 gt_save_LIBS="$LIBS"
15008 LIBS="$LIBS $LIBINTL"
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 #include <libintl.h>
15012 $gt_revision_test_code
15013 extern int _nl_msg_cat_cntr;
15014 extern
15015 #ifdef __cplusplus
15017 #endif
15018 const char *_nl_expand_alias (const char *);
15020 main ()
15022 bindtextdomain ("", "");
15023 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15025 return 0;
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029 eval "$gt_func_gnugettext_libintl=yes"
15030 else
15031 eval "$gt_func_gnugettext_libintl=no"
15033 rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15036 LIBS="$LIBS $LIBICONV"
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 #include <libintl.h>
15040 $gt_revision_test_code
15041 extern int _nl_msg_cat_cntr;
15042 extern
15043 #ifdef __cplusplus
15045 #endif
15046 const char *_nl_expand_alias (const char *);
15048 main ()
15050 bindtextdomain ("", "");
15051 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15053 return 0;
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 LIBINTL="$LIBINTL $LIBICONV"
15058 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15059 eval "$gt_func_gnugettext_libintl=yes"
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15065 CPPFLAGS="$gt_save_CPPFLAGS"
15066 LIBS="$gt_save_LIBS"
15068 eval ac_res=\$$gt_func_gnugettext_libintl
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15070 $as_echo "$ac_res" >&6; }
15073 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15074 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15075 && test "$PACKAGE" != gettext-runtime \
15076 && test "$PACKAGE" != gettext-tools; }; then
15077 gt_use_preinstalled_gnugettext=yes
15078 else
15079 LIBINTL=
15080 LTLIBINTL=
15081 INCINTL=
15086 if test -n "$INTL_MACOSX_LIBS"; then
15087 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15088 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15089 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15090 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15094 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15095 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15097 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15099 else
15100 USE_NLS=no
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15105 $as_echo_n "checking whether to use NLS... " >&6; }
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15107 $as_echo "$USE_NLS" >&6; }
15108 if test "$USE_NLS" = "yes"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15110 $as_echo_n "checking where the gettext function comes from... " >&6; }
15111 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15112 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15113 gt_source="external libintl"
15114 else
15115 gt_source="libc"
15117 else
15118 gt_source="included intl directory"
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15121 $as_echo "$gt_source" >&6; }
15124 if test "$USE_NLS" = "yes"; then
15126 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15127 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15129 $as_echo_n "checking how to link with libintl... " >&6; }
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15131 $as_echo "$LIBINTL" >&6; }
15133 for element in $INCINTL; do
15134 haveit=
15135 for x in $CPPFLAGS; do
15137 acl_save_prefix="$prefix"
15138 prefix="$acl_final_prefix"
15139 acl_save_exec_prefix="$exec_prefix"
15140 exec_prefix="$acl_final_exec_prefix"
15141 eval x=\"$x\"
15142 exec_prefix="$acl_save_exec_prefix"
15143 prefix="$acl_save_prefix"
15145 if test "X$x" = "X$element"; then
15146 haveit=yes
15147 break
15149 done
15150 if test -z "$haveit"; then
15151 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15153 done
15158 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15161 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15165 POSUB=po
15170 INTLLIBS="$LIBINTL"
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15179 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15180 # Check whether --enable-dmalloc was given.
15181 if test "${enable_dmalloc+set}" = set; then :
15182 enableval=$enable_dmalloc;
15185 if test x$enable_dmalloc = "xyes" ; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 $as_echo "yes" >&6; }
15188 else
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15194 # Check whether --with-dmalloc-dir was given.
15195 if test "${with_dmalloc_dir+set}" = set; then :
15196 withval=$with_dmalloc_dir;
15197 if test "x$withval" != "xno" ; then
15198 enable_dmalloc = "yes"
15199 CPPFLAGS="$CPPFLAGS -I${withval}"
15200 LDFLAGS="$LDFLAGS -L${withval}"
15206 if test x$enable_dmalloc = "xyes" ; then
15208 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15212 ALPINE_datestamp=`date`
15214 # Check whether --with-date-stamp was given.
15215 if test "${with_date_stamp+set}" = set; then :
15216 withval=$with_date_stamp;
15217 if test "x$withval" != "xno" ; then
15218 ALPINE_datestamp=$withval
15223 ALPINE_DATESTAMP=$ALPINE_datestamp
15226 ALPINE_hoststamp=`hostname`
15228 # Check whether --with-host-stamp was given.
15229 if test "${with_host_stamp+set}" = set; then :
15230 withval=$with_host_stamp;
15231 if test "x$withval" != "xno" ; then
15232 ALPINE_hoststamp="$withval"
15237 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15240 ALPINE_psefcmd="/bin/ps auxww"
15241 ALPINE_psfailed="0"
15242 ALPINE_PSTEST="-"
15244 # Check whether --with-ps-cmd was given.
15245 if test "${with_ps_cmd+set}" = set; then :
15246 withval=$with_ps_cmd;
15247 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
15248 withval=$ALPINE_psefcmd
15250 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15251 if test -n "$ALPINE_PSTEST" ; then
15252 ALPINE_psefcmd="$withval"
15253 else
15254 ALPINE_psfailed="1"
15255 if test "x$ALPINE_psefcmd" != "x$withval" ; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
15257 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
15263 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
15264 withval="$ALPINE_psefcmd"
15265 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15266 if test -z "$ALPINE_PSTEST" ; then
15267 ALPINE_psfailed="1"
15268 else
15269 ALPINE_psfailed="0"
15272 if test "$ALPINE_psfailed" = "0" ; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define PSEFCMD "$ALPINE_psefcmd"
15276 _ACEOF
15280 case $host in
15281 *apple-darwin*)
15282 if test -d /opt/local ; then
15283 localedir="/opt/local/share/locale"
15284 else
15285 localedir="\${datadir}/locale"
15288 *-*-cygwin)
15289 localedir="/usr/share"
15292 localedir="\${datadir}/locale"
15294 esac
15297 # Check whether --with-localedir was given.
15298 if test "${with_localedir+set}" = set; then :
15299 withval=$with_localedir;
15300 case $withval in
15301 yes)
15306 localedir=$withval
15308 esac
15312 localedir="$localedir"
15315 # Setup OS-Specific features
15316 case "$host" in
15317 *darwin*)
15318 # Check whether --enable-osx-universal-binaries was given.
15319 if test "${enable_osx_universal_binaries+set}" = set; then :
15320 enableval=$enable_osx_universal_binaries;
15323 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15324 if test "x$enable_dependency_tracking" != xno ; then
15325 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15326 Please re-run configure with these options:
15327 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15329 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15330 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15331 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15332 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15333 else
15334 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15336 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15337 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15338 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15339 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15340 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15341 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15344 esac
15347 # Check whether --with-include-path was given.
15348 if test "${with_include_path+set}" = set; then :
15349 withval=$with_include_path;
15350 case $withval in
15353 yes)
15356 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15357 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15358 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15360 esac
15366 # Check whether --with-lib-path was given.
15367 if test "${with_lib_path+set}" = set; then :
15368 withval=$with_lib_path;
15369 case $withval in
15372 yes)
15375 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15376 LDFLAGS="$LDFLAGS $new_ldflags"
15377 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15379 esac
15385 # Check whether --with-pubcookie was given.
15386 if test "${with_pubcookie+set}" = set; then :
15387 withval=$with_pubcookie;
15388 if test "x$withval" != "xno" ; then
15389 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15397 # Check whether --with-web-bin was given.
15398 if test "${with_web_bin+set}" = set; then :
15399 withval=$with_web_bin;
15400 case "$withval" in
15403 yes)
15406 WEB_BINDIR=$withval
15408 esac
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15414 $as_echo_n "checking option: debugging is enabled... " >&6; }
15415 # Check whether --enable-debug was given.
15416 if test "${enable_debug+set}" = set; then :
15417 enableval=$enable_debug;
15420 if test x$enable_debug != "xno" ; then
15421 AM_CFLAGS="$AM_CFLAGS -g"
15423 $as_echo "#define DEBUG 1" >>confdefs.h
15426 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15429 $as_echo "yes" >&6; }
15430 else
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432 $as_echo "no" >&6; }
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15436 $as_echo_n "checking option: optimization is enabled... " >&6; }
15437 # Check whether --enable-optimization was given.
15438 if test "${enable_optimization+set}" = set; then :
15439 enableval=$enable_optimization;
15442 if test x$enable_optimization != "xno" ; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15444 $as_echo "yes" >&6; }
15445 else
15446 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15447 alpine_c_client_gccoptlevel="-O0"
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15453 $as_echo_n "checking option: mouse support enabled... " >&6; }
15454 # Check whether --enable-mouse was given.
15455 if test "${enable_mouse+set}" = set; then :
15456 enableval=$enable_mouse;
15459 if test x$enable_mouse != "xno" ; then
15461 $as_echo "#define MOUSE /**/" >>confdefs.h
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15464 $as_echo "yes" >&6; }
15465 else
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467 $as_echo "no" >&6; }
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15471 $as_echo_n "checking option: quotas enabled... " >&6; }
15472 # Check whether --enable-quotas was given.
15473 if test "${enable_quotas+set}" = set; then :
15474 enableval=$enable_quotas;
15477 if test x$enable_quotas = "xyes" ; then
15479 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15482 $as_echo "yes" >&6; }
15483 else
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15489 $as_echo_n "checking option: From changing enabled... " >&6; }
15490 # Check whether --enable-from_changing was given.
15491 if test "${enable_from_changing+set}" = set; then :
15492 enableval=$enable_from_changing;
15495 if test x$enable_from_changing != "xno" ; then
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15497 $as_echo "yes" >&6; }
15498 else
15500 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503 $as_echo "no" >&6; }
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15507 $as_echo_n "checking option: background post enabled... " >&6; }
15508 # Check whether --enable-background-post was given.
15509 if test "${enable_background_post+set}" = set; then :
15510 enableval=$enable_background_post;
15513 if test x$enable_background_post != "xno" ; then
15515 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15518 $as_echo "yes" >&6; }
15519 else
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15525 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15526 # Check whether --enable-keyboard-lock was given.
15527 if test "${enable_keyboard_lock+set}" = set; then :
15528 enableval=$enable_keyboard_lock;
15531 if test x$enable_keyboard_lock != "xno" ; then
15533 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15543 $as_echo_n "checking option: from encoding enabled... " >&6; }
15544 # Check whether --enable-from-encoding was given.
15545 if test "${enable_from_encoding+set}" = set; then :
15546 enableval=$enable_from_encoding;
15549 if test x$enable_from_encoding = "xyes" ; then
15551 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15554 $as_echo "yes" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15561 # Check whether --with-smtp-msa was given.
15562 if test "${with_smtp_msa+set}" = set; then :
15563 withval=$with_smtp_msa;
15564 case "$withval" in
15567 yes)
15568 # Extract the first word of "sendmail", so it can be a program name with args.
15569 set dummy sendmail; ac_word=$2
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15571 $as_echo_n "checking for $ac_word... " >&6; }
15572 if ${ac_cv_path_SENDMAIL+:} false; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575 case $SENDMAIL in
15576 [\\/]* | ?:[\\/]*)
15577 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 as_dummy="$PATH:/usr/sbin:/usr/lib"
15582 for as_dir in $as_dummy
15584 IFS=$as_save_IFS
15585 test -z "$as_dir" && as_dir=.
15586 for ac_exec_ext in '' $ac_executable_extensions; do
15587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15588 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590 break 2
15592 done
15593 done
15594 IFS=$as_save_IFS
15596 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15598 esac
15600 SENDMAIL=$ac_cv_path_SENDMAIL
15601 if test -n "$SENDMAIL"; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15603 $as_echo "$SENDMAIL" >&6; }
15604 else
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606 $as_echo "no" >&6; }
15612 SENDMAIL=$withval
15614 esac
15616 else
15618 # Extract the first word of "sendmail", so it can be a program name with args.
15619 set dummy sendmail; ac_word=$2
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15621 $as_echo_n "checking for $ac_word... " >&6; }
15622 if ${ac_cv_path_SENDMAIL+:} false; then :
15623 $as_echo_n "(cached) " >&6
15624 else
15625 case $SENDMAIL in
15626 [\\/]* | ?:[\\/]*)
15627 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 as_dummy="$PATH:/usr/sbin:/usr/lib"
15632 for as_dir in $as_dummy
15634 IFS=$as_save_IFS
15635 test -z "$as_dir" && as_dir=.
15636 for ac_exec_ext in '' $ac_executable_extensions; do
15637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15638 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15640 break 2
15642 done
15643 done
15644 IFS=$as_save_IFS
15646 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15648 esac
15650 SENDMAIL=$ac_cv_path_SENDMAIL
15651 if test -n "$SENDMAIL"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15653 $as_echo "$SENDMAIL" >&6; }
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15663 if test -n "$SENDMAIL" ; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define SENDMAIL "$SENDMAIL"
15667 _ACEOF
15671 smtp_msa_flags="-bs -odb -oem"
15673 # Check whether --with-smtp-msa-flags was given.
15674 if test "${with_smtp_msa_flags+set}" = set; then :
15675 withval=$with_smtp_msa_flags;
15676 if test "x$withval" != "xno" ; then
15677 smtp_msa_flags=$withval
15683 cat >>confdefs.h <<_ACEOF
15684 #define SENDMAILFLAGS "$smtp_msa_flags"
15685 _ACEOF
15688 npa="inews"
15690 # Check whether --with-npa was given.
15691 if test "${with_npa+set}" = set; then :
15692 withval=$with_npa;
15693 case "$withval" in
15696 yes)
15697 # Extract the first word of "inews", so it can be a program name with args.
15698 set dummy inews; ac_word=$2
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15700 $as_echo_n "checking for $ac_word... " >&6; }
15701 if ${ac_cv_path_NPA_PROG+:} false; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 case $NPA_PROG in
15705 [\\/]* | ?:[\\/]*)
15706 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15710 as_dummy="$PATH:/usr/sbin:/usr/lib"
15711 for as_dir in $as_dummy
15713 IFS=$as_save_IFS
15714 test -z "$as_dir" && as_dir=.
15715 for ac_exec_ext in '' $ac_executable_extensions; do
15716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15717 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15719 break 2
15721 done
15722 done
15723 IFS=$as_save_IFS
15725 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15727 esac
15729 NPA_PROG=$ac_cv_path_NPA_PROG
15730 if test -n "$NPA_PROG"; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15732 $as_echo "$NPA_PROG" >&6; }
15733 else
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15741 NPA_PROG=$withval
15743 esac
15745 else
15747 # Extract the first word of "inews", so it can be a program name with args.
15748 set dummy inews; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750 $as_echo_n "checking for $ac_word... " >&6; }
15751 if ${ac_cv_path_NPA_PROG+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 case $NPA_PROG in
15755 [\\/]* | ?:[\\/]*)
15756 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760 as_dummy="$PATH:/usr/sbin:/usr/lib"
15761 for as_dir in $as_dummy
15763 IFS=$as_save_IFS
15764 test -z "$as_dir" && as_dir=.
15765 for ac_exec_ext in '' $ac_executable_extensions; do
15766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15767 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15769 break 2
15771 done
15772 done
15773 IFS=$as_save_IFS
15775 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15777 esac
15779 NPA_PROG=$ac_cv_path_NPA_PROG
15780 if test -n "$NPA_PROG"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15782 $as_echo "$NPA_PROG" >&6; }
15783 else
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 $as_echo "no" >&6; }
15793 npa_flags="-h"
15795 # Check whether --with-npa-flags was given.
15796 if test "${with_npa_flags+set}" = set; then :
15797 withval=$with_npa_flags;
15798 if test "x$withval" != "xno" ; then
15799 npa_flags=$withval
15804 if test -n "$NPA_PROG" ; then
15806 cat >>confdefs.h <<_ACEOF
15807 #define SENDNEWS "$NPA_PROG $npa_flags"
15808 _ACEOF
15813 # Check whether --with-password-prog was given.
15814 if test "${with_password_prog+set}" = set; then :
15815 withval=$with_password_prog;
15816 case "$withval" in
15819 yes)
15820 # Extract the first word of "passwd", so it can be a program name with args.
15821 set dummy passwd; ac_word=$2
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15823 $as_echo_n "checking for $ac_word... " >&6; }
15824 if ${ac_cv_path_PWPROG+:} false; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 case $PWPROG in
15828 [\\/]* | ?:[\\/]*)
15829 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15833 as_dummy="$PATH:/usr/sbin:/usr/lib"
15834 for as_dir in $as_dummy
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15844 done
15845 done
15846 IFS=$as_save_IFS
15848 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15850 esac
15852 PWPROG=$ac_cv_path_PWPROG
15853 if test -n "$PWPROG"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15855 $as_echo "$PWPROG" >&6; }
15856 else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15864 # Extract the first word of "$withval", so it can be a program name with args.
15865 set dummy $withval; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_path_PWPROG+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 case $PWPROG in
15872 [\\/]* | ?:[\\/]*)
15873 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877 as_dummy="$PATH:/usr/sbin:/usr/lib"
15878 for as_dir in $as_dummy
15880 IFS=$as_save_IFS
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15886 break 2
15888 done
15889 done
15890 IFS=$as_save_IFS
15892 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15894 esac
15896 PWPROG=$ac_cv_path_PWPROG
15897 if test -n "$PWPROG"; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15899 $as_echo "$PWPROG" >&6; }
15900 else
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15902 $as_echo "no" >&6; }
15907 esac
15909 else
15911 # Extract the first word of "passwd", so it can be a program name with args.
15912 set dummy passwd; ac_word=$2
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15914 $as_echo_n "checking for $ac_word... " >&6; }
15915 if ${ac_cv_path_PWPROG+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 case $PWPROG in
15919 [\\/]* | ?:[\\/]*)
15920 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15924 as_dummy="$PATH:/usr/sbin:/usr/lib"
15925 for as_dir in $as_dummy
15927 IFS=$as_save_IFS
15928 test -z "$as_dir" && as_dir=.
15929 for ac_exec_ext in '' $ac_executable_extensions; do
15930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15931 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15933 break 2
15935 done
15936 done
15937 IFS=$as_save_IFS
15939 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15941 esac
15943 PWPROG=$ac_cv_path_PWPROG
15944 if test -n "$PWPROG"; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15946 $as_echo "$PWPROG" >&6; }
15947 else
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15956 if test -n "$PWPROG" ; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define PASSWD_PROG "$PWPROG"
15960 _ACEOF
15965 # Check whether --with-simple-spellcheck was given.
15966 if test "${with_simple_spellcheck+set}" = set; then :
15967 withval=$with_simple_spellcheck;
15968 if test "x$withval" != "xno" ; then
15969 SPELLPROG=$withval
15972 else
15974 # Extract the first word of "hunspell", so it can be a program name with args.
15975 set dummy hunspell; ac_word=$2
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15977 $as_echo_n "checking for $ac_word... " >&6; }
15978 if ${ac_cv_prog_SPELLPROG+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 if test -n "$SPELLPROG"; then
15982 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15983 else
15984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15987 IFS=$as_save_IFS
15988 test -z "$as_dir" && as_dir=.
15989 for ac_exec_ext in '' $ac_executable_extensions; do
15990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15991 ac_cv_prog_SPELLPROG="hunspell"
15992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15993 break 2
15995 done
15996 done
15997 IFS=$as_save_IFS
16001 SPELLPROG=$ac_cv_prog_SPELLPROG
16002 if test -n "$SPELLPROG"; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16004 $as_echo "$SPELLPROG" >&6; }
16005 else
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007 $as_echo "no" >&6; }
16011 if test -z "$SPELLPROG" ; then
16012 # Extract the first word of "aspell", so it can be a program name with args.
16013 set dummy aspell; ac_word=$2
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16015 $as_echo_n "checking for $ac_word... " >&6; }
16016 if ${ac_cv_prog_SPELLPROG+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 if test -n "$SPELLPROG"; then
16020 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16021 else
16022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16023 for as_dir in $PATH
16025 IFS=$as_save_IFS
16026 test -z "$as_dir" && as_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16029 ac_cv_prog_SPELLPROG="aspell"
16030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16031 break 2
16033 done
16034 done
16035 IFS=$as_save_IFS
16039 SPELLPROG=$ac_cv_prog_SPELLPROG
16040 if test -n "$SPELLPROG"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16042 $as_echo "$SPELLPROG" >&6; }
16043 else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16049 if test -z "$SPELLPROG" ; then
16050 # Extract the first word of "ispell", so it can be a program name with args.
16051 set dummy ispell; ac_word=$2
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16053 $as_echo_n "checking for $ac_word... " >&6; }
16054 if ${ac_cv_prog_SPELLPROG+:} false; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16057 if test -n "$SPELLPROG"; then
16058 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16059 else
16060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16061 for as_dir in $PATH
16063 IFS=$as_save_IFS
16064 test -z "$as_dir" && as_dir=.
16065 for ac_exec_ext in '' $ac_executable_extensions; do
16066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16067 ac_cv_prog_SPELLPROG="ispell"
16068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16069 break 2
16071 done
16072 done
16073 IFS=$as_save_IFS
16077 SPELLPROG=$ac_cv_prog_SPELLPROG
16078 if test -n "$SPELLPROG"; then
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16080 $as_echo "$SPELLPROG" >&6; }
16081 else
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16083 $as_echo "no" >&6; }
16087 if test -z "$SPELLPROG" ; then
16088 SPELLPROG="spell"
16096 if test "x$SPELLPROG" != "xno" ; then
16097 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
16098 set dummy $SPELLPROG; ac_word=$2
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16100 $as_echo_n "checking for $ac_word... " >&6; }
16101 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 case $alpine_simple_spellcheck in
16105 [\\/]* | ?:[\\/]*)
16106 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110 for as_dir in $PATH
16112 IFS=$as_save_IFS
16113 test -z "$as_dir" && as_dir=.
16114 for ac_exec_ext in '' $ac_executable_extensions; do
16115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16116 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16118 break 2
16120 done
16121 done
16122 IFS=$as_save_IFS
16125 esac
16127 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
16128 if test -n "$alpine_simple_spellcheck"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
16130 $as_echo "$alpine_simple_spellcheck" >&6; }
16131 else
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16137 if test -n "$alpine_simple_spellcheck" ; then
16138 case "$SPELLPROG" in
16139 hunspell)
16140 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16142 aspell)
16143 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
16145 ispell)
16146 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16150 esac
16155 # Check whether --with-interactive-spellcheck was given.
16156 if test "${with_interactive_spellcheck+set}" = set; then :
16157 withval=$with_interactive_spellcheck;
16158 if test "x$withval" != "xno" ; then
16159 ISPELLPROG=$withval
16162 else
16164 # Extract the first word of "hunspell", so it can be a program name with args.
16165 set dummy hunspell; ac_word=$2
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16167 $as_echo_n "checking for $ac_word... " >&6; }
16168 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16169 $as_echo_n "(cached) " >&6
16170 else
16171 if test -n "$ISPELLPROG"; then
16172 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16173 else
16174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16175 for as_dir in $PATH
16177 IFS=$as_save_IFS
16178 test -z "$as_dir" && as_dir=.
16179 for ac_exec_ext in '' $ac_executable_extensions; do
16180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16181 ac_cv_prog_ISPELLPROG="hunspell"
16182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16183 break 2
16185 done
16186 done
16187 IFS=$as_save_IFS
16191 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16192 if test -n "$ISPELLPROG"; then
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16194 $as_echo "$ISPELLPROG" >&6; }
16195 else
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16197 $as_echo "no" >&6; }
16201 if test -z "$ISPELLPROG" ; then
16202 # Extract the first word of "aspell", so it can be a program name with args.
16203 set dummy aspell; ac_word=$2
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16205 $as_echo_n "checking for $ac_word... " >&6; }
16206 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16207 $as_echo_n "(cached) " >&6
16208 else
16209 if test -n "$ISPELLPROG"; then
16210 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16211 else
16212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16213 for as_dir in $PATH
16215 IFS=$as_save_IFS
16216 test -z "$as_dir" && as_dir=.
16217 for ac_exec_ext in '' $ac_executable_extensions; do
16218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16219 ac_cv_prog_ISPELLPROG="aspell"
16220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16221 break 2
16223 done
16224 done
16225 IFS=$as_save_IFS
16229 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16230 if test -n "$ISPELLPROG"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16232 $as_echo "$ISPELLPROG" >&6; }
16233 else
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16239 if test -z "$SPELLPROG" ; then
16240 ISPELLPROG="ispell"
16247 if test "x$ISPELLPROG" != "xno" ; then
16248 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16249 set dummy $ISPELLPROG; ac_word=$2
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16251 $as_echo_n "checking for $ac_word... " >&6; }
16252 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16253 $as_echo_n "(cached) " >&6
16254 else
16255 case $alpine_interactive_spellcheck in
16256 [\\/]* | ?:[\\/]*)
16257 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16263 IFS=$as_save_IFS
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16269 break 2
16271 done
16272 done
16273 IFS=$as_save_IFS
16276 esac
16278 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16279 if test -n "$alpine_interactive_spellcheck"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16281 $as_echo "$alpine_interactive_spellcheck" >&6; }
16282 else
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16288 if test -n "$alpine_interactive_spellcheck" ; then
16289 case "$ISPELLPROG" in
16290 aspell)
16291 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16295 esac
16299 if test -n "$alpine_interactive_spellcheck" ; then
16301 cat >>confdefs.h <<_ACEOF
16302 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16303 _ACEOF
16307 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16308 alpine_simple_spellcheck=test
16311 cat >>confdefs.h <<_ACEOF
16312 #define SPELLER "$alpine_simple_spellcheck"
16313 _ACEOF
16316 case "$prefix" in
16317 NONE) dpv=/usr/local/lib/pine.conf ;;
16318 *) dpv=${prefix}/lib/pine.conf ;;
16319 esac
16321 # Check whether --with-system-pinerc was given.
16322 if test "${with_system_pinerc+set}" = set; then :
16323 withval=$with_system_pinerc;
16324 case "$withval" in
16327 yes)
16330 dpv=$withval
16332 esac
16337 cat >>confdefs.h <<_ACEOF
16338 #define SYSTEM_PINERC "$dpv"
16339 _ACEOF
16342 case "$prefix" in
16343 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16344 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16345 esac
16347 # Check whether --with-system-fixed-pinerc was given.
16348 if test "${with_system_fixed_pinerc+set}" = set; then :
16349 withval=$with_system_fixed_pinerc;
16350 case "$withval" in
16353 yes)
16356 dpv=$withval
16358 esac
16363 cat >>confdefs.h <<_ACEOF
16364 #define SYSTEM_PINERC_FIXED "$dpv"
16365 _ACEOF
16368 case "$prefix" in
16369 NONE) dpv=/usr/local/lib/pine.info ;;
16370 *) dpv=${prefix}/lib/pine.info ;;
16371 esac
16373 # Check whether --with-local-support-info was given.
16374 if test "${with_local_support_info+set}" = set; then :
16375 withval=$with_local_support_info;
16376 case "$withval" in
16379 yes)
16382 dpv=$withval
16384 esac
16389 cat >>confdefs.h <<_ACEOF
16390 #define SYSTEM_PINE_INFO_PATH "$dpv"
16391 _ACEOF
16399 dpv=150
16401 # Check whether --with-mailcheck-interval was given.
16402 if test "${with_mailcheck_interval+set}" = set; then :
16403 withval=$with_mailcheck_interval;
16404 if test "x$withval" != "xno" ; then
16405 dpv=$withval
16411 cat >>confdefs.h <<_ACEOF
16412 #define DF_MAILCHECK "$dpv"
16413 _ACEOF
16417 dpv=420
16419 # Check whether --with-checkpoint-interval was given.
16420 if test "${with_checkpoint_interval+set}" = set; then :
16421 withval=$with_checkpoint_interval;
16422 if test "x$withval" != "xno" ; then
16423 dpv=$withval
16429 cat >>confdefs.h <<_ACEOF
16430 #define CHECK_POINT_TIME $dpv
16431 _ACEOF
16435 dpv=12
16437 # Check whether --with-checkpoint-frequency was given.
16438 if test "${with_checkpoint_frequency+set}" = set; then :
16439 withval=$with_checkpoint_frequency;
16440 if test "x$withval" != "xno" ; then
16441 dpv=$withval
16447 cat >>confdefs.h <<_ACEOF
16448 #define CHECK_POINT_FREQ $dpv
16449 _ACEOF
16453 dpv=24
16455 # Check whether --with-display-rows was given.
16456 if test "${with_display_rows+set}" = set; then :
16457 withval=$with_display_rows;
16458 if test "x$withval" != "xno" ; then
16459 dpv=$withval
16465 cat >>confdefs.h <<_ACEOF
16466 #define DEFAULT_LINES_ON_TERMINAL $dpv
16467 _ACEOF
16471 dpv=80
16473 # Check whether --with-display-columns was given.
16474 if test "${with_display_columns+set}" = set; then :
16475 withval=$with_display_columns;
16476 if test "x$withval" != "xno" ; then
16477 dpv=$withval
16483 cat >>confdefs.h <<_ACEOF
16484 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16485 _ACEOF
16489 dpv=200
16491 # Check whether --with-max-display-rows was given.
16492 if test "${with_max_display_rows+set}" = set; then :
16493 withval=$with_max_display_rows;
16494 if test "x$withval" != "xno" ; then
16495 dpv=$withval
16501 cat >>confdefs.h <<_ACEOF
16502 #define MAX_SCREEN_ROWS $dpv
16503 _ACEOF
16507 dpv=500
16509 # Check whether --with-max-display-columns was given.
16510 if test "${with_max_display_columns+set}" = set; then :
16511 withval=$with_max_display_columns;
16512 if test "x$withval" != "xno" ; then
16513 dpv=$withval
16519 cat >>confdefs.h <<_ACEOF
16520 #define MAX_SCREEN_COLS $dpv
16521 _ACEOF
16525 dpv=74
16527 # Check whether --with-fill-column was given.
16528 if test "${with_fill_column+set}" = set; then :
16529 withval=$with_fill_column;
16530 if test "x$withval" != "xno" ; then
16531 dpv=$withval
16537 cat >>confdefs.h <<_ACEOF
16538 #define DF_FILLCOL "$dpv"
16539 _ACEOF
16543 dpv=80
16545 # Check whether --with-max_fill-column was given.
16546 if test "${with_max_fill_column+set}" = set; then :
16547 withval=$with_max_fill_column;
16548 if test "x$withval" != "xno" ; then
16549 dpv=$withval
16555 cat >>confdefs.h <<_ACEOF
16556 #define MAX_FILLCOL $dpv
16557 _ACEOF
16561 dpv=2
16563 # Check whether --with-debug-level was given.
16564 if test "${with_debug_level+set}" = set; then :
16565 withval=$with_debug_level;
16566 if test "x$withval" != "xno" ; then
16567 dpv=$withval
16573 cat >>confdefs.h <<_ACEOF
16574 #define DEFAULT_DEBUG $dpv
16575 _ACEOF
16579 dpv=4
16581 # Check whether --with-debug-files was given.
16582 if test "${with_debug_files+set}" = set; then :
16583 withval=$with_debug_files;
16584 if test "x$withval" != "xno" ; then
16585 dpv=$withval
16591 cat >>confdefs.h <<_ACEOF
16592 #define NUMDEBUGFILES $dpv
16593 _ACEOF
16597 dpv=.pine-debug
16599 # Check whether --with-debug-file was given.
16600 if test "${with_debug_file+set}" = set; then :
16601 withval=$with_debug_file;
16602 if test "x$withval" != "xno" ; then
16603 dpv=$withval
16609 cat >>confdefs.h <<_ACEOF
16610 #define DEBUGFILE "$dpv"
16611 _ACEOF
16615 dpv="\$Forwarded"
16617 # Check whether --with-forwarded-keyword was given.
16618 if test "${with_forwarded_keyword+set}" = set; then :
16619 withval=$with_forwarded_keyword;
16620 if test "x$withval" != "xno" ; then
16621 dpv=$withval
16627 cat >>confdefs.h <<_ACEOF
16628 #define FORWARDED_FLAG "$dpv"
16629 _ACEOF
16633 dpv=2
16635 # Check whether --with-display-overlap was given.
16636 if test "${with_display_overlap+set}" = set; then :
16637 withval=$with_display_overlap;
16638 if test "x$withval" != "xno" ; then
16639 dpv=$withval
16645 cat >>confdefs.h <<_ACEOF
16646 #define DF_OVERLAP "$dpv"
16647 _ACEOF
16651 dpv=0
16653 # Check whether --with-display-margin was given.
16654 if test "${with_display_margin+set}" = set; then :
16655 withval=$with_display_margin;
16656 if test "x$withval" != "xno" ; then
16657 dpv=$withval
16663 cat >>confdefs.h <<_ACEOF
16664 #define DF_MARGIN "$dpv"
16665 _ACEOF
16669 dpv=sent-mail
16671 # Check whether --with-default-fcc was given.
16672 if test "${with_default_fcc+set}" = set; then :
16673 withval=$with_default_fcc;
16674 if test "x$withval" != "xno" ; then
16675 dpv=$withval
16681 cat >>confdefs.h <<_ACEOF
16682 #define DF_DEFAULT_FCC "$dpv"
16683 _ACEOF
16687 dpv=saved-messages
16689 # Check whether --with-default-save-folder was given.
16690 if test "${with_default_save_folder+set}" = set; then :
16691 withval=$with_default_save_folder;
16692 if test "x$withval" != "xno" ; then
16693 dpv=$withval
16699 cat >>confdefs.h <<_ACEOF
16700 #define DEFAULT_SAVE "$dpv"
16701 _ACEOF
16705 dpv=postponed-mail
16707 # Check whether --with-default-legacy-postponed-folder was given.
16708 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16709 withval=$with_default_legacy_postponed_folder;
16710 if test "x$withval" != "xno" ; then
16711 dpv=$withval
16717 cat >>confdefs.h <<_ACEOF
16718 #define POSTPONED_MAIL "$dpv"
16719 _ACEOF
16723 dpv=postponed-msgs
16725 # Check whether --with-default-postponed-folder was given.
16726 if test "${with_default_postponed_folder+set}" = set; then :
16727 withval=$with_default_postponed_folder;
16728 if test "x$withval" != "xno" ; then
16729 dpv=$withval
16735 cat >>confdefs.h <<_ACEOF
16736 #define POSTPONED_MSGS "$dpv"
16737 _ACEOF
16741 dpv=Trash
16743 # Check whether --with-default-trash-folder was given.
16744 if test "${with_default_trash_folder+set}" = set; then :
16745 withval=$with_default_trash_folder;
16746 if test "x$withval" != "xno" ; then
16747 dpv=$withval
16753 cat >>confdefs.h <<_ACEOF
16754 #define TRASH_FOLDER "$dpv"
16755 _ACEOF
16759 dpv=.pine-interrupted-mail
16761 # Check whether --with-default-interrupted-mail was given.
16762 if test "${with_default_interrupted_mail+set}" = set; then :
16763 withval=$with_default_interrupted_mail;
16764 if test "x$withval" != "xno" ; then
16765 dpv=$withval
16771 cat >>confdefs.h <<_ACEOF
16772 #define INTERRUPTED_MAIL "$dpv"
16773 _ACEOF
16777 dpv=dead.letter
16779 # Check whether --with-default-dead-letter-folder was given.
16780 if test "${with_default_dead_letter_folder+set}" = set; then :
16781 withval=$with_default_dead_letter_folder;
16782 if test "x$withval" != "xno" ; then
16783 dpv=$withval
16789 cat >>confdefs.h <<_ACEOF
16790 #define DEADLETTER "$dpv"
16791 _ACEOF
16795 dpv=mail
16797 # Check whether --with-default-mail-directory was given.
16798 if test "${with_default_mail_directory+set}" = set; then :
16799 withval=$with_default_mail_directory;
16800 if test "x$withval" != "xno" ; then
16801 dpv=$withval
16807 cat >>confdefs.h <<_ACEOF
16808 #define DF_MAIL_DIRECTORY "$dpv"
16809 _ACEOF
16813 dpv=INBOX
16815 # Check whether --with-default-inbox-name was given.
16816 if test "${with_default_inbox_name+set}" = set; then :
16817 withval=$with_default_inbox_name;
16818 if test "x$withval" != "xno" ; then
16819 dpv=$withval
16825 cat >>confdefs.h <<_ACEOF
16826 #define INBOX_NAME "$dpv"
16827 _ACEOF
16831 dpv=.signature
16833 # Check whether --with-default-signature-file was given.
16834 if test "${with_default_signature_file+set}" = set; then :
16835 withval=$with_default_signature_file;
16836 if test "x$withval" != "xno" ; then
16837 dpv=$withval
16843 cat >>confdefs.h <<_ACEOF
16844 #define DF_SIGNATURE_FILE "$dpv"
16845 _ACEOF
16849 dpv=no
16851 # Check whether --with-default-elm-style-save was given.
16852 if test "${with_default_elm_style_save+set}" = set; then :
16853 withval=$with_default_elm_style_save;
16854 if test "x$withval" != "xno" ; then
16855 dpv=$withval
16861 cat >>confdefs.h <<_ACEOF
16862 #define DF_ELM_STYLE_SAVE "$dpv"
16863 _ACEOF
16867 dpv=no
16869 # Check whether --with-default-header-in-reply was given.
16870 if test "${with_default_header_in_reply+set}" = set; then :
16871 withval=$with_default_header_in_reply;
16872 if test "x$withval" != "xno" ; then
16873 dpv=$withval
16879 cat >>confdefs.h <<_ACEOF
16880 #define DF_HEADER_IN_REPLY "$dpv"
16881 _ACEOF
16885 dpv=no
16887 # Check whether --with-default-old-style-reply was given.
16888 if test "${with_default_old_style_reply+set}" = set; then :
16889 withval=$with_default_old_style_reply;
16890 if test "x$withval" != "xno" ; then
16891 dpv=$withval
16897 cat >>confdefs.h <<_ACEOF
16898 #define DF_OLD_STYLE_REPLY "$dpv"
16899 _ACEOF
16903 dpv=no
16905 # Check whether --with-default-use-only-domain-name was given.
16906 if test "${with_default_use_only_domain_name+set}" = set; then :
16907 withval=$with_default_use_only_domain_name;
16908 if test "x$withval" != "xno" ; then
16909 dpv=$withval
16915 cat >>confdefs.h <<_ACEOF
16916 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16917 _ACEOF
16921 dpv=no
16923 # Check whether --with-default-save-by-sender was given.
16924 if test "${with_default_save_by_sender+set}" = set; then :
16925 withval=$with_default_save_by_sender;
16926 if test "x$withval" != "xno" ; then
16927 dpv=$withval
16933 cat >>confdefs.h <<_ACEOF
16934 #define DF_SAVE_BY_SENDER "$dpv"
16935 _ACEOF
16939 dpv=arrival
16941 # Check whether --with-default-sort-key was given.
16942 if test "${with_default_sort_key+set}" = set; then :
16943 withval=$with_default_sort_key;
16944 if test "x$withval" != "xno" ; then
16945 dpv=$withval
16951 cat >>confdefs.h <<_ACEOF
16952 #define DF_SORT_KEY "$dpv"
16953 _ACEOF
16957 dpv=fullname-with-lists-last
16959 # Check whether --with-default-addressbook-sort-rule was given.
16960 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16961 withval=$with_default_addressbook_sort_rule;
16962 if test "x$withval" != "xno" ; then
16963 dpv=$withval
16969 cat >>confdefs.h <<_ACEOF
16970 #define DF_AB_SORT_RULE "$dpv"
16971 _ACEOF
16975 dpv=alphabetical
16977 # Check whether --with-default-folder-sort-rule was given.
16978 if test "${with_default_folder_sort_rule+set}" = set; then :
16979 withval=$with_default_folder_sort_rule;
16980 if test "x$withval" != "xno" ; then
16981 dpv=$withval
16987 cat >>confdefs.h <<_ACEOF
16988 #define DF_FLD_SORT_RULE "$dpv"
16989 _ACEOF
16993 dpv=default-folder
16995 # Check whether --with-default-saved-message-name-rule was given.
16996 if test "${with_default_saved_message_name_rule+set}" = set; then :
16997 withval=$with_default_saved_message_name_rule;
16998 if test "x$withval" != "xno" ; then
16999 dpv=$withval
17005 cat >>confdefs.h <<_ACEOF
17006 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17007 _ACEOF
17011 dpv=default-fcc
17013 # Check whether --with-default-fcc-rule was given.
17014 if test "${with_default_fcc_rule+set}" = set; then :
17015 withval=$with_default_fcc_rule;
17016 if test "x$withval" != "xno" ; then
17017 dpv=$withval
17023 cat >>confdefs.h <<_ACEOF
17024 #define DF_FCC_RULE "$dpv"
17025 _ACEOF
17029 dpv=lpr
17031 # Check whether --with-default-standard-printer was given.
17032 if test "${with_default_standard_printer+set}" = set; then :
17033 withval=$with_default_standard_printer;
17034 if test "x$withval" != "xno" ; then
17035 dpv=$withval
17041 cat >>confdefs.h <<_ACEOF
17042 #define DF_STANDARD_PRINTER "$dpv"
17043 _ACEOF
17047 dpv=attached-to-ansi
17049 # Check whether --with-default-ansi-printer was given.
17050 if test "${with_default_ansi_printer+set}" = set; then :
17051 withval=$with_default_ansi_printer;
17052 if test "x$withval" != "xno" ; then
17053 dpv=$withval
17059 cat >>confdefs.h <<_ACEOF
17060 #define ANSI_PRINTER "$dpv"
17061 _ACEOF
17065 dpv=.addressbook
17067 # Check whether --with-default-addressbook was given.
17068 if test "${with_default_addressbook+set}" = set; then :
17069 withval=$with_default_addressbook;
17070 if test "x$withval" != "xno" ; then
17071 dpv=$withval
17077 cat >>confdefs.h <<_ACEOF
17078 #define DF_ADDRESSBOOK "$dpv"
17079 _ACEOF
17083 dpv="Local Support"
17085 # Check whether --with-default-local-fullname was given.
17086 if test "${with_default_local_fullname+set}" = set; then :
17087 withval=$with_default_local_fullname;
17088 if test "x$withval" != "xno" ; then
17089 dpv=$withval
17095 cat >>confdefs.h <<_ACEOF
17096 #define DF_LOCAL_FULLNAME "$dpv"
17097 _ACEOF
17101 dpv=postmaster
17103 # Check whether --with-default-local-address was given.
17104 if test "${with_default_local_address+set}" = set; then :
17105 withval=$with_default_local_address;
17106 if test "x$withval" != "xno" ; then
17107 dpv=$withval
17113 cat >>confdefs.h <<_ACEOF
17114 #define DF_LOCAL_ADDRESS "$dpv"
17115 _ACEOF
17119 dpv=1
17121 # Check whether --with-default-keyboard-lock-count was given.
17122 if test "${with_default_keyboard_lock_count+set}" = set; then :
17123 withval=$with_default_keyboard_lock_count;
17124 if test "x$withval" != "xno" ; then
17125 dpv=$withval
17131 cat >>confdefs.h <<_ACEOF
17132 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
17133 _ACEOF
17137 dpv=3
17139 # Check whether --with-default-remote-addressbook-history was given.
17140 if test "${with_default_remote_addressbook_history+set}" = set; then :
17141 withval=$with_default_remote_addressbook_history;
17142 if test "x$withval" != "xno" ; then
17143 dpv=$withval
17149 cat >>confdefs.h <<_ACEOF
17150 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
17151 _ACEOF
17155 dpv=.alpine-smime/public
17157 # Check whether --with-smime-public-cert-directory was given.
17158 if test "${with_smime_public_cert_directory+set}" = set; then :
17159 withval=$with_smime_public_cert_directory;
17160 if test "x$withval" != "xno" ; then
17161 dpv=$withval
17167 cat >>confdefs.h <<_ACEOF
17168 #define DF_PUBLICCERT_DIR "$dpv"
17169 _ACEOF
17173 dpv=.alpine-smime/private
17175 # Check whether --with-smime-private-key-directory was given.
17176 if test "${with_smime_private_key_directory+set}" = set; then :
17177 withval=$with_smime_private_key_directory;
17178 if test "x$withval" != "xno" ; then
17179 dpv=$withval
17185 cat >>confdefs.h <<_ACEOF
17186 #define DF_PRIVATEKEY_DIR "$dpv"
17187 _ACEOF
17191 dpv=.alpine-smime/ca
17193 # Check whether --with-smime-cacert-directory was given.
17194 if test "${with_smime_cacert_directory+set}" = set; then :
17195 withval=$with_smime_cacert_directory;
17196 if test "x$withval" != "xno" ; then
17197 dpv=$withval
17203 cat >>confdefs.h <<_ACEOF
17204 #define DF_CACERT_DIR "$dpv"
17205 _ACEOF
17209 dpv=ANSI_PRINTER
17211 # Check whether --with-default-printer was given.
17212 if test "${with_default_printer+set}" = set; then :
17213 withval=$with_default_printer;
17214 if test "x$withval" != "xno" ; then
17215 dpv=$withval
17221 cat >>confdefs.h <<_ACEOF
17222 #define DF_DEFAULT_PRINTER $dpv
17223 _ACEOF
17228 cat >>confdefs.h <<_ACEOF
17229 #define DF_PUBLIC_CONTAINER "PublicContainer"
17230 _ACEOF
17233 cat >>confdefs.h <<_ACEOF
17234 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17235 _ACEOF
17238 cat >>confdefs.h <<_ACEOF
17239 #define DF_CA_CONTAINER "CAContainer"
17240 _ACEOF
17244 # Check whether --with-passfile was given.
17245 if test "${with_passfile+set}" = set; then :
17246 withval=$with_passfile;
17247 case "$withval" in
17250 yes)
17253 alpine_PASSFILE=$withval
17255 esac
17262 # Check whether --with-local-password-cache was given.
17263 if test "${with_local_password_cache+set}" = set; then :
17264 withval=$with_local_password_cache;
17265 alpine_os_credential_cache=$withval
17271 # Check whether --with-local-password-cache-method was given.
17272 if test "${with_local_password_cache_method+set}" = set; then :
17273 withval=$with_local_password_cache_method;
17274 alpine_os_credential_cache_method=$withval
17279 if test -n "$alpine_PASSFILE" ; then
17280 case $alpine_os_credential_cache in
17284 alpine_os_credential_cache="no"
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17286 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17288 esac
17290 cat >>confdefs.h <<_ACEOF
17291 #define PASSFILE "$alpine_PASSFILE"
17292 _ACEOF
17297 # Check whether --with-default-sshpath was given.
17298 if test "${with_default_sshpath+set}" = set; then :
17299 withval=$with_default_sshpath;
17300 case "$withval" in
17303 yes)
17307 cat >>confdefs.h <<_ACEOF
17308 #define DF_SSHPATH "$withval"
17309 _ACEOF
17312 esac
17318 # Check whether --with-default-sshcmd was given.
17319 if test "${with_default_sshcmd+set}" = set; then :
17320 withval=$with_default_sshcmd;
17321 case "$withval" in
17324 yes)
17328 cat >>confdefs.h <<_ACEOF
17329 #define DF_SSHCMD "$withval"
17330 _ACEOF
17333 esac
17339 # Check whether --with-ssl was given.
17340 if test "${with_ssl+set}" = set; then :
17341 withval=$with_ssl; with_ssl=$withval
17345 if test "x$with_ssl" = "xno" ; then
17346 alpine_SSLTYPE="none"
17347 elif test -d /usr/local/ssl ; then
17348 alpine_SSLDIR="/usr/local/ssl"
17349 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17350 alpine_SSLLIB="$alpine_SSLDIR/lib"
17351 else
17352 case $host in
17353 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17354 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17355 alpine_SSLTYPE="nopwd"
17356 if test -d /etc/pki/tls ; then
17357 alpine_SSLDIR="/etc/pki/tls"
17358 else
17359 alpine_SSLDIR="/usr/share/ssl"
17361 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17362 alpine_SSLKEYS="$alpine_SSLDIR/private"
17363 alpine_SSLINCLUDE="/usr/include/openssl"
17364 alpine_SSLLIB="/usr/lib"
17365 elif test -f /etc/mandrake-release ; then
17366 alpine_SSLDIR="/usr/lib/ssl"
17367 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17368 alpine_SSLKEYS="$alpine_SSLDIR/private"
17369 alpine_SSLINCLUDE="/usr/include/openssl"
17370 alpine_SSLLIB="/usr/lib"
17371 elif test -f /etc/SuSE-release ; then
17372 alpine_SSLTYPE="nopwd"
17373 alpine_SSLDIR="/etc/ssl"
17374 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17375 alpine_SSLKEYS="$alpine_SSLDIR/private"
17376 alpine_SSLINCLUDE="/usr/include/openssl"
17377 alpine_SSLLIB="/usr/lib"
17378 elif test -d /etc/osso-af-init ; then
17379 alpine_SSLTYPE="nopwd"
17380 alpine_SSLDIR="/usr"
17381 alpine_SSLCERTS="/usr/share/certs"
17382 alpine_SSLINCLUDE="/usr/include/openssl"
17383 alpine_SSLLIB="/usr/lib"
17384 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17385 if test ! -d /etc/osso-af-init ; then
17386 alpine_SSLDIR="/etc/ssl"
17387 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17388 alpine_SSLKEYS="$alpine_SSLDIR/private"
17389 alpine_SSLINCLUDE="/usr/include/openssl"
17390 alpine_SSLLIB="/usr/lib"
17392 elif test -f /etc/manjaro-release ; then
17393 alpine_SSLDIR="/etc/ssl"
17394 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17395 alpine_SSLKEYS="$alpine_SSLDIR/private"
17396 alpine_SSLINCLUDE="/usr/include/openssl"
17397 alpine_SSLLIB="/usr/lib"
17398 else
17399 alpine_SSLTYPE="nopwd"
17400 alpine_SSLDIR="/usr"
17401 alpine_SSLCERTS="/etc/ssl/certs"
17404 *-apple-darwin*)
17405 alpine_SSLTYPE="nopwd"
17406 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17407 if test -d /usr/local/opt/openssl ; then
17408 alpine_SSLDIR="/usr/local/opt/openssl"
17409 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17410 alpine_SSLLIB="$alpine_SSLDIR/lib"
17411 alpine_SSLCERTS="/usr/local/etc/openssl"
17412 alpine_SSLKEYS="$alpine_SSLDIR/private"
17413 elif test -d /opt/local/etc/openssl ; then
17414 alpine_SSLDIR="/opt/local"
17415 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17416 alpine_SSLLIB="$alpine_SSLDIR/lib"
17417 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17418 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17419 elif test -d /sw/etc/ssl ; then
17420 alpine_SSLDIR="/sw/etc/ssl"
17421 alpine_SSLINCLUDE="/sw/include"
17422 alpine_SSLLIB="/sw/lib"
17423 alpine_SSLCERTS="/sw/etc/ssl/certs"
17424 alpine_SSLKEYS="/sw/etc/ssl/private"
17425 elif test -d /usr/local/ssl ; then
17426 alpine_SSLDIR="/usr/local/ssl"
17427 elif test -d /System/Library/OpenSSL ; then
17428 alpine_SSLDIR="/System/Library/OpenSSL"
17429 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17430 alpine_SSLKEYS="$alpine_SSLDIR/private"
17431 alpine_SSLLIB="/usr/lib"
17432 alpine_SSLINCLUDE="/usr/include/openssl"
17435 *-*-netbsd*)
17436 alpine_SSLDIR="/etc/openssl"
17437 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17438 alpine_SSLKEYS="$alpine_SSLDIR/private"
17439 alpine_SSLINCLUDE="/usr/include/openssl"
17440 alpine_SSLLIB="/usr/lib"
17442 *-*-dragonfly*)
17443 alpine_SSLDIR="/etc/openssl"
17444 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17445 alpine_SSLKEYS="$alpine_SSLDIR/private"
17446 alpine_SSLINCLUDE="/usr/include/openssl"
17447 alpine_SSLLIB="/usr/lib"
17449 *-openbsd*)
17450 alpine_SSLTYPE="nopwd"
17451 alpine_SSLDIR="/usr"
17452 alpine_SSLCERTS="/etc/ssl/certs"
17454 *-*-freebsd*)
17455 alpine_SSLDIR="/etc/ssl"
17456 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17457 alpine_SSLKEYS="$alpine_SSLDIR/private"
17458 if test -d /usr/local/include/openssl ; then
17459 alpine_SSLINCLUDE="/usr/local/include/openssl"
17460 alpine_SSLLIB="/usr/local/lib"
17461 else
17462 alpine_SSLINCLUDE="/usr/include/openssl"
17463 alpine_SSLLIB="/usr/lib"
17466 *-*-openbsd*)
17467 alpine_SSLDIR="/etc/ssl"
17468 alpine_SSLINCLUDE="/usr/include/openssl"
17469 alpine_SSLLIB="/usr/lib"
17470 alpine_SSLCERTS="/etc/ssl"
17471 alpine_SSLKEYS="/etc/ssl/private"
17473 *-*-cygwin)
17474 alpine_SSLDIR="/usr/ssl"
17475 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17476 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17477 alpine_SSLINCLUDE="/usr/include/openssl"
17478 alpine_SSLLIB="/usr/lib"
17480 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17481 alpine_SSLTYPE="sco.nopwd"
17482 alpine_SSLDIR="/usr/local/ssl"
17484 *-*-solaris*)
17485 if test -d /usr/include/openssl ; then
17486 alpine_SSLINCLUDE="/usr/include/openssl"
17487 elif test -d /usr/sfw/include/openssl ; then
17488 alpine_SSLDIR="/usr/sfw"
17489 elif test -d /opt/csw/include/openssl ; then
17490 alpine_SSLDIR="/opt/csw"
17491 if test -d /opt/csw/ssl/certs ; then
17492 alpine_SSLCERTS="/opt/csw/ssl/certs"
17495 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17496 alpine_SSLCERTS="/etc/certs"
17500 alpine_SSLTYPE="nopwd"
17501 alpine_SSLDIR="/usr/local/ssl"
17503 esac
17506 if test "x$alpine_SSLTYPE" != "xnone" ; then
17508 # Check whether --with-ssl-dir was given.
17509 if test "${with_ssl_dir+set}" = set; then :
17510 withval=$with_ssl_dir;
17511 if test "x$withval" != "xno" ; then
17512 alpine_SSLDIR=$withval
17513 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17514 alpine_SSLLIB=$alpine_SSLDIR/lib
17521 # Check whether --with-ssl-certs-dir was given.
17522 if test "${with_ssl_certs_dir+set}" = set; then :
17523 withval=$with_ssl_certs_dir;
17524 if test "x$withval" != "xno" ; then
17525 alpine_SSLCERTS=$withval
17532 # Check whether --with-ssl-include-dir was given.
17533 if test "${with_ssl_include_dir+set}" = set; then :
17534 withval=$with_ssl_include_dir;
17535 if test "x$withval" != "xno" ; then
17536 alpine_SSLINCLUDE=$withval
17543 # Check whether --with-ssl-lib-dir was given.
17544 if test "${with_ssl_lib_dir+set}" = set; then :
17545 withval=$with_ssl_lib_dir;
17546 if test "x$withval" != "xno" ; then
17547 alpine_SSLLIB=$withval
17553 if test -n "$alpine_SSLINCLUDE" ; then
17554 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17555 elif test -n "$alpine_SSLDIR" ; then
17556 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17558 if test -n "$alpine_SSLLIB" ; then
17559 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17560 elif test -n "$alpine_SSLDIR" ; then
17561 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17567 # Check whether --with-krb5 was given.
17568 if test "${with_krb5+set}" = set; then :
17569 withval=$with_krb5; with_krb5=$withval
17573 if test "x$with_krb5" = "xno" ; then
17574 alpine_GSSTYPE="none"
17575 else
17576 alpine_GSSTYPE=
17579 # Check whether --with-krb5-dir was given.
17580 if test "${with_krb5_dir+set}" = set; then :
17581 withval=$with_krb5_dir;
17582 if test "x$withval" != "xno" ; then
17583 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17584 LDFLAGS="$LDFLAGS -L${withval}/lib"
17591 # Check whether --with-krb5-include-dir was given.
17592 if test "${with_krb5_include_dir+set}" = set; then :
17593 withval=$with_krb5_include_dir;
17594 if test "x$withval" != "xno" ; then
17595 CPPFLAGS="$CPPFLAGS -I$withval"
17602 # Check whether --with-krb5-lib-dir was given.
17603 if test "${with_krb5_lib_dir+set}" = set; then :
17604 withval=$with_krb5_lib_dir;
17605 if test "x$withval" != "xno" ; then
17606 LDFLAGS="$LDFLAGS -L$withval"
17614 # Check whether --with-ldap was given.
17615 if test "${with_ldap+set}" = set; then :
17616 withval=$with_ldap; with_ldap=$withval
17620 if test "x$with_ldap" = "xno" ; then
17621 alpine_with_ldap=
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17623 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17624 else
17626 case $host in
17627 *-*-freebsd*)
17628 alpine_LDAPDIR="/usr/local"
17629 alpine_LDAPINCLUDE="${LDAPDIR}/include"
17630 alpine_LDAPLIB="${LDAPDIR}/lib"
17632 esac;
17634 alpine_with_ldap=yes
17637 # Check whether --with-ldap-dir was given.
17638 if test "${with_ldap_dir+set}" = set; then :
17639 withval=$with_ldap_dir;
17640 if test "x$withval" != "xno" ; then
17641 alpine_LDAPDIR="${withval}"
17642 alpine_LDAPINCLUDE="${LDAPDIR}/include"
17643 alpine_LDAPLIB="${LDAPDIR}/lib"
17650 # Check whether --with-ldap-include-dir was given.
17651 if test "${with_ldap_include_dir+set}" = set; then :
17652 withval=$with_ldap_include_dir;
17653 if test "x$withval" != "xno" ; then
17654 alpine_LDAPINCLUDE="$withval"
17661 # Check whether --with-ldap-lib-dir was given.
17662 if test "${with_ldap_lib_dir+set}" = set; then :
17663 withval=$with_ldap_lib_dir;
17664 if test "x$withval" != "xno" ; then
17665 alpine_LDAPLIB="${withval}"
17671 if test -n "$alpine_LDAPINCLUDE" ; then
17672 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17674 if test -n "$alpine_LDAPLIB" ; then
17675 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17680 # Check whether --with-smime was given.
17681 if test "${with_smime+set}" = set; then :
17682 withval=$with_smime; with_smime=$withval
17687 # Check whether --with-tcl was given.
17688 if test "${with_tcl+set}" = set; then :
17689 withval=$with_tcl; with_tcl=$withval
17693 if test "x$with_tcl" = "xno" ; then
17694 WEB_BUILD=
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17696 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17697 else
17699 # Check whether --with-tcl-lib was given.
17700 if test "${with_tcl_lib+set}" = set; then :
17701 withval=$with_tcl_lib;
17702 if test "x$withval" != "xno" ; then
17703 alpine_TCLLIB=$withval
17709 # Check whether --with-tcl-include was given.
17710 if test "${with_tcl_include+set}" = set; then :
17711 withval=$with_tcl_include;
17712 if test "x$withval" != "xno" ; then
17713 CPPFLAGS="$CPPFLAGS -I$withval"
17714 alpine_TCLINC=$withval
17722 # Check whether --with-supplied-regex was given.
17723 if test "${with_supplied_regex+set}" = set; then :
17724 withval=$with_supplied_regex; alpine_REGEX=$withval
17729 # Check whether --with-pthread was given.
17730 if test "${with_pthread+set}" = set; then :
17731 withval=$with_pthread; with_pthread=$withval
17736 # Check whether --with-system-mail-directory was given.
17737 if test "${with_system_mail_directory+set}" = set; then :
17738 withval=$with_system_mail_directory;
17739 if test "x$withval" != "xno" ; then
17740 alpine_with_local_maildir="$withval"
17747 # Check whether --with-c-client-target was given.
17748 if test "${with_c_client_target+set}" = set; then :
17749 withval=$with_c_client_target;
17750 if test "x$withval" != "xno" ;then
17751 alpine_with_c_client_target="$withval"
17758 alpine_PAM="none"
17760 case "$host" in
17761 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17762 alpine_path_delim="/"
17763 alpine_mode_readonly="(0600)"
17764 if test -f /etc/fedora-release ; then
17765 systype="LFD"
17766 alpine_PAM="yes"
17767 if test -d /etc/pki/tls ; then
17768 alpine_c_client_target="lfd"
17769 else
17770 alpine_c_client_target="lrh"
17772 elif test -f /etc/mandrake-release ; then
17773 systype="LMD"
17774 alpine_c_client_target="lmd"
17775 alpine_PAM="yes"
17776 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17777 systype="LRH"
17778 alpine_PAM="yes"
17779 if test -d /etc/pki/tls ; then
17780 alpine_c_client_target="lr5"
17781 else
17782 alpine_c_client_target="lrh"
17784 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17785 if test -d /etc/osso-af-init ; then
17786 systype="LN8"
17787 alpine_c_client_target="ln8"
17788 else
17789 systype="DEB"
17790 alpine_c_client_target="ldb"
17791 alpine_PAM="yes"
17793 elif test -f /etc/SuSE-release ; then
17794 systype="LSU"
17795 alpine_c_client_target="lsu"
17796 alpine_PAM="yes"
17797 else
17798 systype="LNX"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17800 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17801 if ${ac_cv_lib_pam_pam_start+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lpam $LIBS"
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char pam_start ();
17817 main ()
17819 return pam_start ();
17821 return 0;
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825 ac_cv_lib_pam_pam_start=yes
17826 else
17827 ac_cv_lib_pam_pam_start=no
17829 rm -f core conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17834 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17835 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17837 alpine_c_client_target="lnp"
17838 alpine_PAM="yes"
17840 else
17842 if test -f /etc/shadow ; then
17843 alpine_c_client_target="slx"
17844 else
17845 alpine_c_client_target="lnx"
17852 *-apple-darwin*)
17853 systype="OSX"
17854 alpine_path_delim="/"
17855 alpine_mode_readonly="(0600)"
17856 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17857 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17859 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17861 case "$alpine_os_credential_cache" in
17866 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17869 esac
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17871 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17872 if ${ac_cv_lib_pam_pam_start+:} false; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 ac_check_lib_save_LIBS=$LIBS
17876 LIBS="-lpam $LIBS"
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char pam_start ();
17888 main ()
17890 return pam_start ();
17892 return 0;
17894 _ACEOF
17895 if ac_fn_c_try_link "$LINENO"; then :
17896 ac_cv_lib_pam_pam_start=yes
17897 else
17898 ac_cv_lib_pam_pam_start=no
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17905 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17906 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17908 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17909 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17911 alpine_PAM="yes"
17912 alpine_c_client_target="oxs"
17914 else
17915 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17916 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17918 alpine_PAM="yes"
17919 alpine_c_client_target="oxp"
17921 else
17923 alpine_PAM="none"
17924 alpine_pam_none_reason="header files not found"
17934 else
17936 alpine_c_client_target="osx"
17941 *-*-solaris*)
17942 if test x$GCC = "xyes" ; then
17943 systype="GSO"
17944 alpine_c_client_target="gso"
17945 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17946 else
17947 systype="SOC"
17948 alpine_c_client_target="soc"
17950 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17953 alpine_path_delim="/"
17954 alpine_mode_readonly="(0600)"
17956 *-*-sunos4*)
17957 systype="SUN"
17958 alpine_path_delim="/"
17959 alpine_mode_readonly="(0600)"
17960 alpine_c_client_target="s40"
17962 *-*-sco3.2v5*)
17963 if test x$GCC = "xyes" ; then
17964 systype="GO5"
17965 alpine_c_client_target="go5"
17966 else
17967 systype="SC5"
17968 alpine_c_client_target="sc5"
17970 alpine_path_delim="/"
17971 alpine_mode_readonly="(0600)"
17973 *-next-*)
17974 systype="NXT"
17975 alpine_path_delim="/"
17976 alpine_mode_readonly="(0600)"
17977 alpine_c_client_target="nx3"
17979 *-*-netbsd*)
17980 systype="NEB"
17981 alpine_path_delim="/"
17982 alpine_mode_readonly="(0600)"
17983 alpine_c_client_target="neb"
17985 *-*-dragonfly*)
17986 systype="DFB"
17987 alpine_path_delim="/"
17988 alpine_mode_readonly="(0600)"
17989 alpine_c_client_target="neb"
17991 *-*-bsdi*)
17992 systype="BSI"
17993 alpine_path_delim="/"
17994 alpine_mode_readonly="(0600)"
17995 alpine_c_client_target="bsi"
17997 *-*-freebsd*)
17998 systype="BSF"
17999 alpine_path_delim="/"
18000 alpine_mode_readonly="(0600)"
18001 alpine_c_client_target="bsf"
18002 LIBS="$LIBS $LIBINTL"
18004 *-*-openbsd*)
18005 systype="BSO"
18006 alpine_path_delim="/"
18007 alpine_mode_readonly="(0600)"
18008 alpine_c_client_target="bso"
18009 LIBS="$LIBS $LIBINTL"
18011 *-*-aix5*)
18012 systype="A52"
18013 alpine_path_delim="/"
18014 alpine_mode_readonly="(0600)"
18015 alpine_c_client_target="a52"
18017 *-*-aix4*)
18018 systype="A41"
18019 alpine_path_delim="/"
18020 alpine_mode_readonly="(0600)"
18021 alpine_c_client_target="a41"
18023 *-*-aix3*)
18024 systype="A32"
18025 alpine_path_delim="/"
18026 alpine_mode_readonly="(0600)"
18027 alpine_c_client_target="a32"
18029 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
18030 systype="UW2"
18031 alpine_path_delim="/"
18032 alpine_mode_readonly="(0600)"
18033 alpine_c_client_target="uw2"
18035 *-*-osf5*)
18036 systype="OSF"
18037 alpine_path_delim="/"
18038 alpine_mode_readonly="(0600)"
18039 alpine_c_client_target="osf"
18041 *-*-cygwin)
18042 systype="CYG"
18043 alpine_path_delim="/"
18044 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18045 alpine_c_client_target="cyg"
18046 LIBS="$LIBS $LIBINTL"
18048 windows* | *-*-pw32*)
18049 systype="WNT"
18050 alpine_path_delim="\\"
18051 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18052 alpine_c_client_target="wnt"
18054 $as_echo "#define _WINDOWS 1" >>confdefs.h
18058 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
18060 esac
18063 # Check whether --with-ipv6 was given.
18064 if test "${with_ipv6+set}" = set; then :
18065 withval=$with_ipv6; with_ipv6=$withval
18069 if test "x$with_ipv6" = "xno" ; then
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
18071 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
18072 c_client_specials="${c_client_specials}IP6=4 "
18073 c_client_ip6="true"
18074 else
18075 c_client_ip6="touch imap/ip6"
18080 if test x$enable_dmalloc = "xyes" ; then
18081 if test "x$with_pthread" = "xyes" ; then
18082 dmalloc_lib=dmallocth
18083 else
18084 dmalloc_lib=dmalloc
18087 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
18089 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
18090 if eval \${$as_ac_Lib+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 ac_check_lib_save_LIBS=$LIBS
18094 LIBS="-l$dmalloc_lib $LIBS"
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18101 #ifdef __cplusplus
18102 extern "C"
18103 #endif
18104 char dmalloc_shutdown ();
18106 main ()
18108 return dmalloc_shutdown ();
18110 return 0;
18112 _ACEOF
18113 if ac_fn_c_try_link "$LINENO"; then :
18114 eval "$as_ac_Lib=yes"
18115 else
18116 eval "$as_ac_Lib=no"
18118 rm -f core conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 eval ac_res=\$$as_ac_Lib
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18124 $as_echo "$ac_res" >&6; }
18125 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18126 cat >>confdefs.h <<_ACEOF
18127 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18128 _ACEOF
18130 LIBS="-l$dmalloc_lib $LIBS"
18132 else
18134 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18141 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18142 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18145 ac_check_lib_save_LIBS=$LIBS
18146 LIBS="-ltinfo $LIBS"
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char setupterm ();
18158 main ()
18160 return setupterm ();
18162 return 0;
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166 ac_cv_lib_tinfo_setupterm=yes
18167 else
18168 ac_cv_lib_tinfo_setupterm=no
18170 rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 LIBS=$ac_check_lib_save_LIBS
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18175 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18176 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18178 alpine_termdata=info
18179 LIBS="$LIBS -ltinfo"
18181 else
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18184 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18185 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lncurses $LIBS"
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char setupterm ();
18201 main ()
18203 return setupterm ();
18205 return 0;
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209 ac_cv_lib_ncurses_setupterm=yes
18210 else
18211 ac_cv_lib_ncurses_setupterm=no
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18218 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18219 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18221 alpine_termdata=info
18222 LIBS="$LIBS -lncurses"
18224 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18227 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18228 if ${ac_cv_lib_curses_setupterm+:} false; then :
18229 $as_echo_n "(cached) " >&6
18230 else
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lcurses $LIBS"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18239 #ifdef __cplusplus
18240 extern "C"
18241 #endif
18242 char setupterm ();
18244 main ()
18246 return setupterm ();
18248 return 0;
18250 _ACEOF
18251 if ac_fn_c_try_link "$LINENO"; then :
18252 ac_cv_lib_curses_setupterm=yes
18253 else
18254 ac_cv_lib_curses_setupterm=no
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18261 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18262 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18264 alpine_termdata=info
18265 LIBS="$LIBS -lcurses"
18267 else
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18270 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18271 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18272 $as_echo_n "(cached) " >&6
18273 else
18274 ac_check_lib_save_LIBS=$LIBS
18275 LIBS="-ltermlib $LIBS"
18276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h. */
18279 /* Override any GCC internal prototype to avoid an error.
18280 Use char because int might match the return type of a GCC
18281 builtin and then its argument prototype would still apply. */
18282 #ifdef __cplusplus
18283 extern "C"
18284 #endif
18285 char tgetent ();
18287 main ()
18289 return tgetent ();
18291 return 0;
18293 _ACEOF
18294 if ac_fn_c_try_link "$LINENO"; then :
18295 ac_cv_lib_termlib_tgetent=yes
18296 else
18297 ac_cv_lib_termlib_tgetent=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18304 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18305 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18307 alpine_termdata=cap
18308 LIBS="$LIBS -ltermlib"
18310 else
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18313 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18314 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18315 $as_echo_n "(cached) " >&6
18316 else
18317 ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-ltermcap $LIBS"
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18322 /* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
18325 #ifdef __cplusplus
18326 extern "C"
18327 #endif
18328 char tgetent ();
18330 main ()
18332 return tgetent ();
18334 return 0;
18336 _ACEOF
18337 if ac_fn_c_try_link "$LINENO"; then :
18338 ac_cv_lib_termcap_tgetent=yes
18339 else
18340 ac_cv_lib_termcap_tgetent=no
18342 rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18347 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18348 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18350 alpine_termdata=cap
18351 LIBS="$LIBS -ltermcap"
18353 else
18355 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18371 case $alpine_termdata in
18372 info)
18374 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18377 cap)
18379 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18382 esac
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18385 $as_echo_n "checking for library containing dlopen... " >&6; }
18386 if ${ac_cv_search_dlopen+:} false; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 ac_func_search_save_LIBS=$LIBS
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char dlopen ();
18401 main ()
18403 return dlopen ();
18405 return 0;
18407 _ACEOF
18408 for ac_lib in '' dl dld; do
18409 if test -z "$ac_lib"; then
18410 ac_res="none required"
18411 else
18412 ac_res=-l$ac_lib
18413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18415 if ac_fn_c_try_link "$LINENO"; then :
18416 ac_cv_search_dlopen=$ac_res
18418 rm -f core conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext
18420 if ${ac_cv_search_dlopen+:} false; then :
18421 break
18423 done
18424 if ${ac_cv_search_dlopen+:} false; then :
18426 else
18427 ac_cv_search_dlopen=no
18429 rm conftest.$ac_ext
18430 LIBS=$ac_func_search_save_LIBS
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18433 $as_echo "$ac_cv_search_dlopen" >&6; }
18434 ac_res=$ac_cv_search_dlopen
18435 if test "$ac_res" != no; then :
18436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18438 else
18439 alpine_DL="none"
18442 if test "x$alpine_DL" = "xnone" ; then
18443 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18444 exit 1
18447 if test "x$alpine_SSLTYPE" != "xnone" ; then
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18449 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18453 #include <stdio.h>
18454 #include <stdlib.h>
18455 #if HAVE_STDINT_H
18456 #include <stdint.h>
18457 #endif /* HAVE_STDINT_H */
18458 #include <openssl/ssl.h>
18461 main ()
18464 #if OPENSSL_VERSION_NUMBER < 0x20000000L
18465 #error
18466 #endif
18469 return 0;
18471 _ACEOF
18472 if ac_fn_c_try_compile "$LINENO"; then :
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18474 $as_echo "yes" >&6; }
18475 alpine_SSLPROVIDER="libressl"
18477 else
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18487 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 #include <stdio.h>
18492 #include <stdlib.h>
18493 #if HAVE_STDINT_H
18494 #include <stdint.h>
18495 #endif /* HAVE_STDINT_H */
18496 #include <openssl/ssl.h>
18499 main ()
18502 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18503 #error
18504 #endif
18507 return 0;
18509 _ACEOF
18510 if ac_fn_c_try_compile "$LINENO"; then :
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18512 $as_echo "yes" >&6; }
18513 alpine_SSLPROVIDER="openssl"
18515 else
18516 alpine_SSLTYPE="none"
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 if test "x$alpine_SSLTYPE" = "xnone" ; then
18521 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18522 exit 1
18526 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18528 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 #include <stdio.h>
18533 #include <stdlib.h>
18534 #if HAVE_STDINT_H
18535 #include <stdint.h>
18536 #endif /* HAVE_STDINT_H */
18537 #include <openssl/ssl.h>
18540 main ()
18543 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18544 #error
18545 #endif
18548 return 0;
18550 _ACEOF
18551 if ac_fn_c_try_compile "$LINENO"; then :
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18553 $as_echo "yes" >&6; }
18554 alpine_SSLVERSION="new"
18555 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18557 else
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559 $as_echo "no" >&6; }
18560 alpine_SSLVERSION="old"
18562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565 if test "x$alpine_SSLTYPE" != "xnone" ; then
18566 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18568 $as_echo_n "checking for library containing SSLeay... " >&6; }
18569 if ${ac_cv_search_SSLeay+:} false; then :
18570 $as_echo_n "(cached) " >&6
18571 else
18572 ac_func_search_save_LIBS=$LIBS
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18576 /* Override any GCC internal prototype to avoid an error.
18577 Use char because int might match the return type of a GCC
18578 builtin and then its argument prototype would still apply. */
18579 #ifdef __cplusplus
18580 extern "C"
18581 #endif
18582 char SSLeay ();
18584 main ()
18586 return SSLeay ();
18588 return 0;
18590 _ACEOF
18591 for ac_lib in '' crypto; do
18592 if test -z "$ac_lib"; then
18593 ac_res="none required"
18594 else
18595 ac_res=-l$ac_lib
18596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18598 if ac_fn_c_try_link "$LINENO"; then :
18599 ac_cv_search_SSLeay=$ac_res
18601 rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext
18603 if ${ac_cv_search_SSLeay+:} false; then :
18604 break
18606 done
18607 if ${ac_cv_search_SSLeay+:} false; then :
18609 else
18610 ac_cv_search_SSLeay=no
18612 rm conftest.$ac_ext
18613 LIBS=$ac_func_search_save_LIBS
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18616 $as_echo "$ac_cv_search_SSLeay" >&6; }
18617 ac_res=$ac_cv_search_SSLeay
18618 if test "$ac_res" != no; then :
18619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18621 else
18622 alpine_CRYPTO="none"
18625 else
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18627 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18628 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18629 $as_echo_n "(cached) " >&6
18630 else
18631 ac_func_search_save_LIBS=$LIBS
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18635 /* Override any GCC internal prototype to avoid an error.
18636 Use char because int might match the return type of a GCC
18637 builtin and then its argument prototype would still apply. */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 char OpenSSL_version_num ();
18643 main ()
18645 return OpenSSL_version_num ();
18647 return 0;
18649 _ACEOF
18650 for ac_lib in '' crypto; do
18651 if test -z "$ac_lib"; then
18652 ac_res="none required"
18653 else
18654 ac_res=-l$ac_lib
18655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18657 if ac_fn_c_try_link "$LINENO"; then :
18658 ac_cv_search_OpenSSL_version_num=$ac_res
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext
18662 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18663 break
18665 done
18666 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18668 else
18669 ac_cv_search_OpenSSL_version_num=no
18671 rm conftest.$ac_ext
18672 LIBS=$ac_func_search_save_LIBS
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18675 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18676 ac_res=$ac_cv_search_OpenSSL_version_num
18677 if test "$ac_res" != no; then :
18678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18680 else
18681 alpine_CRYPTO="none"
18685 if test "x$alpine_CRYPTO" = "xnone" ; then
18686 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18687 exit 1
18689 case $host in
18690 *-*-cygwin)
18691 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18692 if test "x$ac_cv_header_crypto_h" = xyes; then :
18694 else
18695 alpine_CRYPTO_DEVEL="none"
18699 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18700 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
18701 exit 1
18704 *) ;;
18705 esac
18708 if test "x$alpine_SSLTYPE" != "xnone" ; then
18709 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
18711 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
18712 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18713 $as_echo_n "(cached) " >&6
18714 else
18715 ac_func_search_save_LIBS=$LIBS
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 char TLSv1_2_client_method ();
18727 main ()
18729 return TLSv1_2_client_method ();
18731 return 0;
18733 _ACEOF
18734 for ac_lib in '' ssl; do
18735 if test -z "$ac_lib"; then
18736 ac_res="none required"
18737 else
18738 ac_res=-l$ac_lib
18739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18741 if ac_fn_c_try_link "$LINENO"; then :
18742 ac_cv_search_TLSv1_2_client_method=$ac_res
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext
18746 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18747 break
18749 done
18750 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18752 else
18753 ac_cv_search_TLSv1_2_client_method=no
18755 rm conftest.$ac_ext
18756 LIBS=$ac_func_search_save_LIBS
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
18759 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
18760 ac_res=$ac_cv_search_TLSv1_2_client_method
18761 if test "$ac_res" != no; then :
18762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18763 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
18765 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18770 else
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLS_client_method" >&5
18772 $as_echo_n "checking for library containing TLS_client_method... " >&6; }
18773 if ${ac_cv_search_TLS_client_method+:} false; then :
18774 $as_echo_n "(cached) " >&6
18775 else
18776 ac_func_search_save_LIBS=$LIBS
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char TLS_client_method ();
18788 main ()
18790 return TLS_client_method ();
18792 return 0;
18794 _ACEOF
18795 for ac_lib in '' ssl; do
18796 if test -z "$ac_lib"; then
18797 ac_res="none required"
18798 else
18799 ac_res=-l$ac_lib
18800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 ac_cv_search_TLS_client_method=$ac_res
18805 rm -f core conftest.err conftest.$ac_objext \
18806 conftest$ac_exeext
18807 if ${ac_cv_search_TLS_client_method+:} false; then :
18808 break
18810 done
18811 if ${ac_cv_search_TLS_client_method+:} false; then :
18813 else
18814 ac_cv_search_TLS_client_method=no
18816 rm conftest.$ac_ext
18817 LIBS=$ac_func_search_save_LIBS
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLS_client_method" >&5
18820 $as_echo "$ac_cv_search_TLS_client_method" >&6; }
18821 ac_res=$ac_cv_search_TLS_client_method
18822 if test "$ac_res" != no; then :
18823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18825 else
18826 alpine_SSLTYPE="none"
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DTLS_client_method" >&5
18830 $as_echo_n "checking for library containing DTLS_client_method... " >&6; }
18831 if ${ac_cv_search_DTLS_client_method+:} false; then :
18832 $as_echo_n "(cached) " >&6
18833 else
18834 ac_func_search_save_LIBS=$LIBS
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 char DTLS_client_method ();
18846 main ()
18848 return DTLS_client_method ();
18850 return 0;
18852 _ACEOF
18853 for ac_lib in '' ssl; do
18854 if test -z "$ac_lib"; then
18855 ac_res="none required"
18856 else
18857 ac_res=-l$ac_lib
18858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18860 if ac_fn_c_try_link "$LINENO"; then :
18861 ac_cv_search_DTLS_client_method=$ac_res
18863 rm -f core conftest.err conftest.$ac_objext \
18864 conftest$ac_exeext
18865 if ${ac_cv_search_DTLS_client_method+:} false; then :
18866 break
18868 done
18869 if ${ac_cv_search_DTLS_client_method+:} false; then :
18871 else
18872 ac_cv_search_DTLS_client_method=no
18874 rm conftest.$ac_ext
18875 LIBS=$ac_func_search_save_LIBS
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DTLS_client_method" >&5
18878 $as_echo "$ac_cv_search_DTLS_client_method" >&6; }
18879 ac_res=$ac_cv_search_DTLS_client_method
18880 if test "$ac_res" != no; then :
18881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18883 else
18884 alpine_SSLTYPE="none"
18887 if test "x$alpine_SSLTYPE" != "xnone" ; then
18888 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
18890 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18896 if test "x$alpine_SSLTYPE" != "xnone" ; then
18897 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18899 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18900 if ${ac_cv_search_SSL_library_init+:} false; then :
18901 $as_echo_n "(cached) " >&6
18902 else
18903 ac_func_search_save_LIBS=$LIBS
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char SSL_library_init ();
18915 main ()
18917 return SSL_library_init ();
18919 return 0;
18921 _ACEOF
18922 for ac_lib in '' ssl; do
18923 if test -z "$ac_lib"; then
18924 ac_res="none required"
18925 else
18926 ac_res=-l$ac_lib
18927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18929 if ac_fn_c_try_link "$LINENO"; then :
18930 ac_cv_search_SSL_library_init=$ac_res
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext
18934 if ${ac_cv_search_SSL_library_init+:} false; then :
18935 break
18937 done
18938 if ${ac_cv_search_SSL_library_init+:} false; then :
18940 else
18941 ac_cv_search_SSL_library_init=no
18943 rm conftest.$ac_ext
18944 LIBS=$ac_func_search_save_LIBS
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18947 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18948 ac_res=$ac_cv_search_SSL_library_init
18949 if test "$ac_res" != no; then :
18950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18952 else
18953 alpine_SSLTYPE="none"
18956 if test "x$alpine_SSLTYPE" = "xnone" ; then
18957 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18958 exit 1
18960 else
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18962 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18963 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18964 $as_echo_n "(cached) " >&6
18965 else
18966 ac_func_search_save_LIBS=$LIBS
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 char OPENSSL_init_ssl ();
18978 main ()
18980 return OPENSSL_init_ssl ();
18982 return 0;
18984 _ACEOF
18985 for ac_lib in '' ssl; do
18986 if test -z "$ac_lib"; then
18987 ac_res="none required"
18988 else
18989 ac_res=-l$ac_lib
18990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18992 if ac_fn_c_try_link "$LINENO"; then :
18993 ac_cv_search_OPENSSL_init_ssl=$ac_res
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext
18997 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18998 break
19000 done
19001 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19003 else
19004 ac_cv_search_OPENSSL_init_ssl=no
19006 rm conftest.$ac_ext
19007 LIBS=$ac_func_search_save_LIBS
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19010 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19011 ac_res=$ac_cv_search_OPENSSL_init_ssl
19012 if test "$ac_res" != no; then :
19013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19015 else
19016 alpine_SSLTYPE="none"
19019 if test "x$alpine_SSLTYPE" = "xnone" ; then
19020 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19021 exit 1
19026 if test "$alpine_with_ldap" = "yes" ; then
19027 alpine_has_ldap=
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19029 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19030 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19031 $as_echo_n "(cached) " >&6
19032 else
19033 ac_check_lib_save_LIBS=$LIBS
19034 LIBS="-llber $LIBS"
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19041 #ifdef __cplusplus
19042 extern "C"
19043 #endif
19044 char ber_alloc ();
19046 main ()
19048 return ber_alloc ();
19050 return 0;
19052 _ACEOF
19053 if ac_fn_c_try_link "$LINENO"; then :
19054 ac_cv_lib_lber_ber_alloc=yes
19055 else
19056 ac_cv_lib_lber_ber_alloc=no
19058 rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19063 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19064 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19066 LIBS="$LIBS -llber"
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19071 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19072 if ${ac_cv_search_ldap_initialize+:} false; then :
19073 $as_echo_n "(cached) " >&6
19074 else
19075 ac_func_search_save_LIBS=$LIBS
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char ldap_initialize ();
19087 main ()
19089 return ldap_initialize ();
19091 return 0;
19093 _ACEOF
19094 for ac_lib in '' ldap; do
19095 if test -z "$ac_lib"; then
19096 ac_res="none required"
19097 else
19098 ac_res=-l$ac_lib
19099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19101 if ac_fn_c_try_link "$LINENO"; then :
19102 ac_cv_search_ldap_initialize=$ac_res
19104 rm -f core conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext
19106 if ${ac_cv_search_ldap_initialize+:} false; then :
19107 break
19109 done
19110 if ${ac_cv_search_ldap_initialize+:} false; then :
19112 else
19113 ac_cv_search_ldap_initialize=no
19115 rm conftest.$ac_ext
19116 LIBS=$ac_func_search_save_LIBS
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
19119 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
19120 ac_res=$ac_cv_search_ldap_initialize
19121 if test "$ac_res" != no; then :
19122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19124 alpine_has_ldap=yes
19126 else
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
19129 $as_echo_n "checking for library containing ldap_open... " >&6; }
19130 if ${ac_cv_search_ldap_open+:} false; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 ac_func_search_save_LIBS=$LIBS
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19137 /* Override any GCC internal prototype to avoid an error.
19138 Use char because int might match the return type of a GCC
19139 builtin and then its argument prototype would still apply. */
19140 #ifdef __cplusplus
19141 extern "C"
19142 #endif
19143 char ldap_open ();
19145 main ()
19147 return ldap_open ();
19149 return 0;
19151 _ACEOF
19152 for ac_lib in '' ldap; do
19153 if test -z "$ac_lib"; then
19154 ac_res="none required"
19155 else
19156 ac_res=-l$ac_lib
19157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19159 if ac_fn_c_try_link "$LINENO"; then :
19160 ac_cv_search_ldap_open=$ac_res
19162 rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext
19164 if ${ac_cv_search_ldap_open+:} false; then :
19165 break
19167 done
19168 if ${ac_cv_search_ldap_open+:} false; then :
19170 else
19171 ac_cv_search_ldap_open=no
19173 rm conftest.$ac_ext
19174 LIBS=$ac_func_search_save_LIBS
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
19177 $as_echo "$ac_cv_search_ldap_open" >&6; }
19178 ac_res=$ac_cv_search_ldap_open
19179 if test "$ac_res" != no; then :
19180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19182 alpine_has_ldap=yes
19190 if test "$alpine_has_ldap" = "yes" ; then
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19192 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19194 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19199 if test "x$alpine_PAM" != "xnone" ; then
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19201 $as_echo_n "checking for library containing pam_start... " >&6; }
19202 if ${ac_cv_search_pam_start+:} false; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 ac_func_search_save_LIBS=$LIBS
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19209 /* Override any GCC internal prototype to avoid an error.
19210 Use char because int might match the return type of a GCC
19211 builtin and then its argument prototype would still apply. */
19212 #ifdef __cplusplus
19213 extern "C"
19214 #endif
19215 char pam_start ();
19217 main ()
19219 return pam_start ();
19221 return 0;
19223 _ACEOF
19224 for ac_lib in '' pam; do
19225 if test -z "$ac_lib"; then
19226 ac_res="none required"
19227 else
19228 ac_res=-l$ac_lib
19229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19231 if ac_fn_c_try_link "$LINENO"; then :
19232 ac_cv_search_pam_start=$ac_res
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext
19236 if ${ac_cv_search_pam_start+:} false; then :
19237 break
19239 done
19240 if ${ac_cv_search_pam_start+:} false; then :
19242 else
19243 ac_cv_search_pam_start=no
19245 rm conftest.$ac_ext
19246 LIBS=$ac_func_search_save_LIBS
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19249 $as_echo "$ac_cv_search_pam_start" >&6; }
19250 ac_res=$ac_cv_search_pam_start
19251 if test "$ac_res" != no; then :
19252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19254 LIBS="$LIBS -lpam"
19255 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19256 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19258 alpine_PAM="yes"
19260 else
19261 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19262 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19264 alpine_PAM="yes"
19265 if test "x$alpine_c_client_target" != "xoxp" ; then
19266 alpine_PAM="none"
19267 alpine_pam_none_reason="header files not in security/ directory"
19270 else
19272 alpine_PAM="none"
19273 alpine_pam_none_reason="header files not found"
19283 else
19285 alpine_PAM="none"
19286 alpine_pam_none_reason="library files not found"
19290 if test -n "$alpine_pam_none_reason" ; then
19291 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
19296 if test "x$alpine_GSSTYPE" != "xnone" ; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19298 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19299 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19300 $as_echo_n "(cached) " >&6
19301 else
19302 ac_func_search_save_LIBS=$LIBS
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 char gss_init_sec_context ();
19314 main ()
19316 return gss_init_sec_context ();
19318 return 0;
19320 _ACEOF
19321 for ac_lib in '' gss gssapi gssapi_krb5; do
19322 if test -z "$ac_lib"; then
19323 ac_res="none required"
19324 else
19325 ac_res=-l$ac_lib
19326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19328 if ac_fn_c_try_link "$LINENO"; then :
19329 ac_cv_search_gss_init_sec_context=$ac_res
19331 rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext
19333 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19334 break
19336 done
19337 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19339 else
19340 ac_cv_search_gss_init_sec_context=no
19342 rm conftest.$ac_ext
19343 LIBS=$ac_func_search_save_LIBS
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19346 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19347 ac_res=$ac_cv_search_gss_init_sec_context
19348 if test "$ac_res" != no; then :
19349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19351 LIBS="$LIBS -lkrb5"
19352 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19353 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19355 else
19357 if test ! -d /usr/kerberos/include ; then
19358 alpine_GSSTYPE="none"
19359 alpine_gss_none_reason="header files not found"
19366 else
19368 alpine_GSSTYPE="none"
19369 alpine_gss_none_reason="libraries not found"
19373 if test -n "$alpine_gss_none_reason" ; then
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19375 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19380 # Check whether --with-ntlm was given.
19381 if test "${with_ntlm+set}" = set; then :
19382 withval=$with_ntlm; with_ntlm=$withval
19386 if test "x$with_ntlm" = "xno" ; then
19387 alpine_NTLM="none"
19388 else
19389 alpine_NTLM=
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19392 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19393 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19394 $as_echo_n "(cached) " >&6
19395 else
19396 ac_func_search_save_LIBS=$LIBS
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char buildSmbNtlmAuthRequest ();
19408 main ()
19410 return buildSmbNtlmAuthRequest ();
19412 return 0;
19414 _ACEOF
19415 for ac_lib in '' ntlm; do
19416 if test -z "$ac_lib"; then
19417 ac_res="none required"
19418 else
19419 ac_res=-l$ac_lib
19420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19425 rm -f core conftest.err conftest.$ac_objext \
19426 conftest$ac_exeext
19427 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19428 break
19430 done
19431 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19433 else
19434 ac_cv_search_buildSmbNtlmAuthRequest=no
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19440 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19441 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19442 if test "$ac_res" != no; then :
19443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19445 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19446 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19448 extra_auth_ntlm=ntl
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19450 $as_echo "$as_me: including NTLM support" >&6;}
19452 else
19454 alpine_NTLM="none"
19455 alpine_ntlm_none_reason="header file ntlm.h not found"
19461 else
19463 alpine_NTLM="none"
19464 alpine_ntlm_none_reason="ntlm library not found"
19468 if test -n "$alpine_ntlm_none_reason" ; then
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19470 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19474 if test -n "$WEB_BUILD" ; then
19475 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19476 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19477 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19479 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19480 if ${ac_cv_search_Tcl_Eval+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 ac_func_search_save_LIBS=$LIBS
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 char Tcl_Eval ();
19495 main ()
19497 return Tcl_Eval ();
19499 return 0;
19501 _ACEOF
19502 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19503 if test -z "$ac_lib"; then
19504 ac_res="none required"
19505 else
19506 ac_res=-l$ac_lib
19507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19509 if ac_fn_c_try_link "$LINENO"; then :
19510 ac_cv_search_Tcl_Eval=$ac_res
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext
19514 if ${ac_cv_search_Tcl_Eval+:} false; then :
19515 break
19517 done
19518 if ${ac_cv_search_Tcl_Eval+:} false; then :
19520 else
19521 ac_cv_search_Tcl_Eval=no
19523 rm conftest.$ac_ext
19524 LIBS=$ac_func_search_save_LIBS
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19527 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19528 ac_res=$ac_cv_search_Tcl_Eval
19529 if test "$ac_res" != no; then :
19530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19532 else
19534 WEB_BUILD=
19539 if test -n "$alpine_TCLINC" ; then
19540 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19541 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19544 else
19546 WEB_BUILD=
19551 if test -z "$WEB_BUILD" ; then
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19553 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19555 else
19556 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19557 if test "x$ac_cv_header_tcl_h" = xyes; then :
19559 else
19561 for base in /usr /usr/local ; do
19562 for dir in ${TCL_VERSIONS} ; do
19563 if test -f $base/include/$dir/tcl.h ; then
19564 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19565 found=yes
19566 break
19568 done
19569 if test "x$found" = "xyes" ; then
19570 break
19572 done
19573 if test "$found" != "yes" ; then
19574 WEB_BUILD=
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19576 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19585 if test "x$alpine_REGEX" != "xyes" ; then
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19587 $as_echo_n "checking for library containing regcomp... " >&6; }
19588 if ${ac_cv_search_regcomp+:} false; then :
19589 $as_echo_n "(cached) " >&6
19590 else
19591 ac_func_search_save_LIBS=$LIBS
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char regcomp ();
19603 main ()
19605 return regcomp ();
19607 return 0;
19609 _ACEOF
19610 for ac_lib in '' posix regexp regex re; do
19611 if test -z "$ac_lib"; then
19612 ac_res="none required"
19613 else
19614 ac_res=-l$ac_lib
19615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19617 if ac_fn_c_try_link "$LINENO"; then :
19618 ac_cv_search_regcomp=$ac_res
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext
19622 if ${ac_cv_search_regcomp+:} false; then :
19623 break
19625 done
19626 if ${ac_cv_search_regcomp+:} false; then :
19628 else
19629 ac_cv_search_regcomp=no
19631 rm conftest.$ac_ext
19632 LIBS=$ac_func_search_save_LIBS
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19635 $as_echo "$ac_cv_search_regcomp" >&6; }
19636 ac_res=$ac_cv_search_regcomp
19637 if test "$ac_res" != no; then :
19638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19640 else
19642 if test x$alpine_REGEX = "xno" ; then
19643 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19644 else
19645 alpine_REGEX=yes
19651 if test "x$alpine_REGEX" != "xyes" ; then
19652 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19653 if test "x$ac_cv_header_regex_h" = xyes; then :
19655 else
19657 if test x$alpine_REGEX = "xno" ; then
19658 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19659 else
19660 alpine_REGEX=yes
19668 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19670 if test "x$alpine_REGEX" = "xyes" ; then
19671 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19672 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19673 REGEX_BUILD=regex
19674 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19677 if test "x$with_pthread" != "xno" ; then
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19679 $as_echo_n "checking for pthread support... " >&6; }
19683 ac_ext=c
19684 ac_cpp='$CPP $CPPFLAGS'
19685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19689 acx_pthread_ok=no
19691 # We used to check for pthread.h first, but this fails if pthread.h
19692 # requires special compiler flags (e.g. on True64 or Sequent).
19693 # It gets checked for in the link test anyway.
19695 # First of all, check if the user has set any of the PTHREAD_LIBS,
19696 # etcetera environment variables, and if threads linking works using
19697 # them:
19698 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19699 save_CFLAGS="$CFLAGS"
19700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19701 save_LIBS="$LIBS"
19702 LIBS="$PTHREAD_LIBS $LIBS"
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19704 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h. */
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char pthread_join ();
19716 main ()
19718 return pthread_join ();
19720 return 0;
19722 _ACEOF
19723 if ac_fn_c_try_link "$LINENO"; then :
19724 acx_pthread_ok=yes
19726 rm -f core conftest.err conftest.$ac_objext \
19727 conftest$ac_exeext conftest.$ac_ext
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19729 $as_echo "$acx_pthread_ok" >&6; }
19730 if test x"$acx_pthread_ok" = xno; then
19731 PTHREAD_LIBS=""
19732 PTHREAD_CFLAGS=""
19734 LIBS="$save_LIBS"
19735 CFLAGS="$save_CFLAGS"
19738 # We must check for the threads library under a number of different
19739 # names; the ordering is very important because some systems
19740 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19741 # libraries is broken (non-POSIX).
19743 # Create a list of thread flags to try. Items starting with a "-" are
19744 # C compiler flags, and other items are library names, except for "none"
19745 # which indicates that we try without any flags at all, and "pthread-config"
19746 # which is a program returning the flags for the Pth emulation library.
19748 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19750 # The ordering *is* (sometimes) important. Some notes on the
19751 # individual items follow:
19753 # pthreads: AIX (must check this before -lpthread)
19754 # none: in case threads are in libc; should be tried before -Kthread and
19755 # other compiler flags to prevent continual compiler warnings
19756 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19757 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19758 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19759 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19760 # -pthreads: Solaris/gcc
19761 # -mthreads: Mingw32/gcc, Lynx/gcc
19762 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19763 # doesn't hurt to check since this sometimes defines pthreads too;
19764 # also defines -D_REENTRANT)
19765 # ... -mt is also the pthreads flag for HP/aCC
19766 # pthread: Linux, etcetera
19767 # --thread-safe: KAI C++
19768 # pthread-config: use pthread-config program (for GNU Pth library)
19770 case "${host_cpu}-${host_os}" in
19771 *solaris*)
19773 # On Solaris (at least, for some versions), libc contains stubbed
19774 # (non-functional) versions of the pthreads routines, so link-based
19775 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19776 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19777 # a function called by this macro, so we could check for that, but
19778 # who knows whether they'll stub that too in a future libc.) So,
19779 # we'll just look for -pthreads and -lpthread first:
19781 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19783 esac
19785 if test x"$acx_pthread_ok" = xno; then
19786 for flag in $acx_pthread_flags; do
19788 case $flag in
19789 none)
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19791 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19796 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19797 PTHREAD_CFLAGS="$flag"
19800 pthread-config)
19801 # Extract the first word of "pthread-config", so it can be a program name with args.
19802 set dummy pthread-config; ac_word=$2
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19804 $as_echo_n "checking for $ac_word... " >&6; }
19805 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 if test -n "$acx_pthread_config"; then
19809 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19810 else
19811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19812 for as_dir in $PATH
19814 IFS=$as_save_IFS
19815 test -z "$as_dir" && as_dir=.
19816 for ac_exec_ext in '' $ac_executable_extensions; do
19817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19818 ac_cv_prog_acx_pthread_config="yes"
19819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19820 break 2
19822 done
19823 done
19824 IFS=$as_save_IFS
19826 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19829 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19830 if test -n "$acx_pthread_config"; then
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19832 $as_echo "$acx_pthread_config" >&6; }
19833 else
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835 $as_echo "no" >&6; }
19839 if test x"$acx_pthread_config" = xno; then continue; fi
19840 PTHREAD_CFLAGS="`pthread-config --cflags`"
19841 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19846 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19847 PTHREAD_LIBS="-l$flag"
19849 esac
19851 save_LIBS="$LIBS"
19852 save_CFLAGS="$CFLAGS"
19853 LIBS="$PTHREAD_LIBS $LIBS"
19854 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19856 # Check for various functions. We must include pthread.h,
19857 # since some functions may be macros. (On the Sequent, we
19858 # need a special flag -Kthread to make this header compile.)
19859 # We check for pthread_join because it is in -lpthread on IRIX
19860 # while pthread_create is in libc. We check for pthread_attr_init
19861 # due to DEC craziness with -lpthreads. We check for
19862 # pthread_cleanup_push because it is one of the few pthread
19863 # functions on Solaris that doesn't have a non-functional libc stub.
19864 # We try pthread_create on general principles.
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19867 #include <pthread.h>
19869 main ()
19871 pthread_t th; pthread_join(th, 0);
19872 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19873 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19875 return 0;
19877 _ACEOF
19878 if ac_fn_c_try_link "$LINENO"; then :
19879 acx_pthread_ok=yes
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19884 LIBS="$save_LIBS"
19885 CFLAGS="$save_CFLAGS"
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19888 $as_echo "$acx_pthread_ok" >&6; }
19889 if test "x$acx_pthread_ok" = xyes; then
19890 break;
19893 PTHREAD_LIBS=""
19894 PTHREAD_CFLAGS=""
19895 done
19898 # Various other checks:
19899 if test "x$acx_pthread_ok" = xyes; then
19900 save_LIBS="$LIBS"
19901 LIBS="$PTHREAD_LIBS $LIBS"
19902 save_CFLAGS="$CFLAGS"
19903 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19905 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19907 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19908 attr_name=unknown
19909 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 #include <pthread.h>
19914 main ()
19916 int attr=$attr; return attr;
19918 return 0;
19920 _ACEOF
19921 if ac_fn_c_try_link "$LINENO"; then :
19922 attr_name=$attr; break
19924 rm -f core conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19926 done
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19928 $as_echo "$attr_name" >&6; }
19929 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define PTHREAD_CREATE_JOINABLE $attr_name
19933 _ACEOF
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19938 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19939 flag=no
19940 case "${host_cpu}-${host_os}" in
19941 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19942 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19943 esac
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19945 $as_echo "${flag}" >&6; }
19946 if test "x$flag" != xno; then
19947 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19950 LIBS="$save_LIBS"
19951 CFLAGS="$save_CFLAGS"
19953 # More AIX lossage: must compile with xlc_r or cc_r
19954 if test x"$GCC" != xyes; then
19955 for ac_prog in xlc_r cc_r
19957 # Extract the first word of "$ac_prog", so it can be a program name with args.
19958 set dummy $ac_prog; ac_word=$2
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960 $as_echo_n "checking for $ac_word... " >&6; }
19961 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19962 $as_echo_n "(cached) " >&6
19963 else
19964 if test -n "$PTHREAD_CC"; then
19965 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19966 else
19967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968 for as_dir in $PATH
19970 IFS=$as_save_IFS
19971 test -z "$as_dir" && as_dir=.
19972 for ac_exec_ext in '' $ac_executable_extensions; do
19973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19974 ac_cv_prog_PTHREAD_CC="$ac_prog"
19975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19976 break 2
19978 done
19979 done
19980 IFS=$as_save_IFS
19984 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19985 if test -n "$PTHREAD_CC"; then
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19987 $as_echo "$PTHREAD_CC" >&6; }
19988 else
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19990 $as_echo "no" >&6; }
19994 test -n "$PTHREAD_CC" && break
19995 done
19996 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19998 else
19999 PTHREAD_CC=$CC
20001 else
20002 PTHREAD_CC="$CC"
20009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20010 if test x"$acx_pthread_ok" = xyes; then
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20013 $as_echo "yes" >&6; }
20014 case "$target" in
20015 *openbsd*)
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20017 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20018 AM_CFLAGS="$AM_CFLAGS -pthread"
20020 esac
20021 LIBS="$PTHREAD_LIBS $LIBS"
20022 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20023 CC="$PTHREAD_CC"
20025 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20029 else
20030 acx_pthread_ok=no
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20033 $as_echo "no" >&6; }
20036 ac_ext=c
20037 ac_cpp='$CPP $CPPFLAGS'
20038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
20045 $as_echo_n "checking for library containing nanosleep... " >&6; }
20046 if ${ac_cv_search_nanosleep+:} false; then :
20047 $as_echo_n "(cached) " >&6
20048 else
20049 ac_func_search_save_LIBS=$LIBS
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20056 #ifdef __cplusplus
20057 extern "C"
20058 #endif
20059 char nanosleep ();
20061 main ()
20063 return nanosleep ();
20065 return 0;
20067 _ACEOF
20068 for ac_lib in '' rt posix4; do
20069 if test -z "$ac_lib"; then
20070 ac_res="none required"
20071 else
20072 ac_res=-l$ac_lib
20073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20075 if ac_fn_c_try_link "$LINENO"; then :
20076 ac_cv_search_nanosleep=$ac_res
20078 rm -f core conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext
20080 if ${ac_cv_search_nanosleep+:} false; then :
20081 break
20083 done
20084 if ${ac_cv_search_nanosleep+:} false; then :
20086 else
20087 ac_cv_search_nanosleep=no
20089 rm conftest.$ac_ext
20090 LIBS=$ac_func_search_save_LIBS
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
20093 $as_echo "$ac_cv_search_nanosleep" >&6; }
20094 ac_res=$ac_cv_search_nanosleep
20095 if test "$ac_res" != no; then :
20096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20099 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20110 $as_echo_n "checking for ANSI C header files... " >&6; }
20111 if ${ac_cv_header_stdc+:} false; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20116 #include <stdlib.h>
20117 #include <stdarg.h>
20118 #include <string.h>
20119 #include <float.h>
20122 main ()
20126 return 0;
20128 _ACEOF
20129 if ac_fn_c_try_compile "$LINENO"; then :
20130 ac_cv_header_stdc=yes
20131 else
20132 ac_cv_header_stdc=no
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 if test $ac_cv_header_stdc = yes; then
20137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20140 #include <string.h>
20142 _ACEOF
20143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20144 $EGREP "memchr" >/dev/null 2>&1; then :
20146 else
20147 ac_cv_header_stdc=no
20149 rm -f conftest*
20153 if test $ac_cv_header_stdc = yes; then
20154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20157 #include <stdlib.h>
20159 _ACEOF
20160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20161 $EGREP "free" >/dev/null 2>&1; then :
20163 else
20164 ac_cv_header_stdc=no
20166 rm -f conftest*
20170 if test $ac_cv_header_stdc = yes; then
20171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20172 if test "$cross_compiling" = yes; then :
20174 else
20175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20177 #include <ctype.h>
20178 #include <stdlib.h>
20179 #if ((' ' & 0x0FF) == 0x020)
20180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20182 #else
20183 # define ISLOWER(c) \
20184 (('a' <= (c) && (c) <= 'i') \
20185 || ('j' <= (c) && (c) <= 'r') \
20186 || ('s' <= (c) && (c) <= 'z'))
20187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20188 #endif
20190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20192 main ()
20194 int i;
20195 for (i = 0; i < 256; i++)
20196 if (XOR (islower (i), ISLOWER (i))
20197 || toupper (i) != TOUPPER (i))
20198 return 2;
20199 return 0;
20201 _ACEOF
20202 if ac_fn_c_try_run "$LINENO"; then :
20204 else
20205 ac_cv_header_stdc=no
20207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20208 conftest.$ac_objext conftest.beam conftest.$ac_ext
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20214 $as_echo "$ac_cv_header_stdc" >&6; }
20215 if test $ac_cv_header_stdc = yes; then
20217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20221 ac_header_dirent=no
20222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20223 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20225 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20226 if eval \${$as_ac_Header+:} false; then :
20227 $as_echo_n "(cached) " >&6
20228 else
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20231 #include <sys/types.h>
20232 #include <$ac_hdr>
20235 main ()
20237 if ((DIR *) 0)
20238 return 0;
20240 return 0;
20242 _ACEOF
20243 if ac_fn_c_try_compile "$LINENO"; then :
20244 eval "$as_ac_Header=yes"
20245 else
20246 eval "$as_ac_Header=no"
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 eval ac_res=\$$as_ac_Header
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20252 $as_echo "$ac_res" >&6; }
20253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20254 cat >>confdefs.h <<_ACEOF
20255 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20256 _ACEOF
20258 ac_header_dirent=$ac_hdr; break
20261 done
20262 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20263 if test $ac_header_dirent = dirent.h; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20265 $as_echo_n "checking for library containing opendir... " >&6; }
20266 if ${ac_cv_search_opendir+:} false; then :
20267 $as_echo_n "(cached) " >&6
20268 else
20269 ac_func_search_save_LIBS=$LIBS
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20276 #ifdef __cplusplus
20277 extern "C"
20278 #endif
20279 char opendir ();
20281 main ()
20283 return opendir ();
20285 return 0;
20287 _ACEOF
20288 for ac_lib in '' dir; do
20289 if test -z "$ac_lib"; then
20290 ac_res="none required"
20291 else
20292 ac_res=-l$ac_lib
20293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20295 if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_search_opendir=$ac_res
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext
20300 if ${ac_cv_search_opendir+:} false; then :
20301 break
20303 done
20304 if ${ac_cv_search_opendir+:} false; then :
20306 else
20307 ac_cv_search_opendir=no
20309 rm conftest.$ac_ext
20310 LIBS=$ac_func_search_save_LIBS
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20313 $as_echo "$ac_cv_search_opendir" >&6; }
20314 ac_res=$ac_cv_search_opendir
20315 if test "$ac_res" != no; then :
20316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20320 else
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20322 $as_echo_n "checking for library containing opendir... " >&6; }
20323 if ${ac_cv_search_opendir+:} false; then :
20324 $as_echo_n "(cached) " >&6
20325 else
20326 ac_func_search_save_LIBS=$LIBS
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char opendir ();
20338 main ()
20340 return opendir ();
20342 return 0;
20344 _ACEOF
20345 for ac_lib in '' x; do
20346 if test -z "$ac_lib"; then
20347 ac_res="none required"
20348 else
20349 ac_res=-l$ac_lib
20350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20352 if ac_fn_c_try_link "$LINENO"; then :
20353 ac_cv_search_opendir=$ac_res
20355 rm -f core conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext
20357 if ${ac_cv_search_opendir+:} false; then :
20358 break
20360 done
20361 if ${ac_cv_search_opendir+:} false; then :
20363 else
20364 ac_cv_search_opendir=no
20366 rm conftest.$ac_ext
20367 LIBS=$ac_func_search_save_LIBS
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20370 $as_echo "$ac_cv_search_opendir" >&6; }
20371 ac_res=$ac_cv_search_opendir
20372 if test "$ac_res" != no; then :
20373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20380 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20381 if ${ac_cv_header_stat_broken+:} false; then :
20382 $as_echo_n "(cached) " >&6
20383 else
20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h. */
20386 #include <sys/types.h>
20387 #include <sys/stat.h>
20389 #if defined S_ISBLK && defined S_IFDIR
20390 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20391 #endif
20393 #if defined S_ISBLK && defined S_IFCHR
20394 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20395 #endif
20397 #if defined S_ISLNK && defined S_IFREG
20398 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20399 #endif
20401 #if defined S_ISSOCK && defined S_IFREG
20402 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20403 #endif
20405 _ACEOF
20406 if ac_fn_c_try_compile "$LINENO"; then :
20407 ac_cv_header_stat_broken=no
20408 else
20409 ac_cv_header_stat_broken=yes
20411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20414 $as_echo "$ac_cv_header_stat_broken" >&6; }
20415 if test $ac_cv_header_stat_broken = yes; then
20417 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20422 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20423 if ${ac_cv_header_sys_wait_h+:} false; then :
20424 $as_echo_n "(cached) " >&6
20425 else
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <sys/types.h>
20429 #include <sys/wait.h>
20430 #ifndef WEXITSTATUS
20431 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20432 #endif
20433 #ifndef WIFEXITED
20434 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20435 #endif
20438 main ()
20440 int s;
20441 wait (&s);
20442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20444 return 0;
20446 _ACEOF
20447 if ac_fn_c_try_compile "$LINENO"; then :
20448 ac_cv_header_sys_wait_h=yes
20449 else
20450 ac_cv_header_sys_wait_h=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20455 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20456 if test $ac_cv_header_sys_wait_h = yes; then
20458 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20463 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20464 if ${ac_cv_header_time+:} false; then :
20465 $as_echo_n "(cached) " >&6
20466 else
20467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468 /* end confdefs.h. */
20469 #include <sys/types.h>
20470 #include <sys/time.h>
20471 #include <time.h>
20474 main ()
20476 if ((struct tm *) 0)
20477 return 0;
20479 return 0;
20481 _ACEOF
20482 if ac_fn_c_try_compile "$LINENO"; then :
20483 ac_cv_header_time=yes
20484 else
20485 ac_cv_header_time=no
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20490 $as_echo "$ac_cv_header_time" >&6; }
20491 if test $ac_cv_header_time = yes; then
20493 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20498 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20499 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20500 $as_echo_n "(cached) " >&6
20501 else
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20504 #include <sys/types.h>
20505 #include <termios.h>
20506 #ifdef TIOCGWINSZ
20508 #endif
20510 _ACEOF
20511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20512 $EGREP "yes" >/dev/null 2>&1; then :
20513 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20514 else
20515 ac_cv_sys_tiocgwinsz_in_termios_h=no
20517 rm -f conftest*
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20521 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20523 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20525 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20526 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20527 $as_echo_n "(cached) " >&6
20528 else
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531 #include <sys/types.h>
20532 #include <sys/ioctl.h>
20533 #ifdef TIOCGWINSZ
20535 #endif
20537 _ACEOF
20538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20539 $EGREP "yes" >/dev/null 2>&1; then :
20540 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20541 else
20542 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20544 rm -f conftest*
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20548 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20550 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20552 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20558 for ac_header in unistd.h
20559 do :
20560 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20561 if test "x$ac_cv_header_unistd_h" = xyes; then :
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_UNISTD_H 1
20564 _ACEOF
20568 done
20571 for ac_header in errno.h \
20572 ctype.h \
20573 fcntl.h \
20574 signal.h \
20575 setjmp.h \
20576 memory.h \
20577 sys/ioctl.h \
20578 sys/param.h \
20579 sys/socket.h \
20580 sys/uio.h \
20581 sys/un.h \
20582 limits.h \
20583 wchar.h \
20584 sys/poll.h \
20585 stropts.h \
20586 netdb.h \
20587 syslog.h \
20588 sys/syslog.h \
20589 locale.h \
20590 langinfo.h \
20591 utime.h \
20592 sys/utime.h \
20593 pthread.h \
20594 pwd.h \
20595 assert.h
20596 do :
20597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20600 cat >>confdefs.h <<_ACEOF
20601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20602 _ACEOF
20606 done
20609 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20610 if test "x$ac_cv_header_termios_h" = xyes; then :
20612 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20614 else
20616 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20617 if test "x$ac_cv_header_termio_h" = xyes; then :
20619 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20621 else
20623 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20624 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20626 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20628 else
20630 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20647 $as_echo_n "checking return type of signal handlers... " >&6; }
20648 if ${ac_cv_type_signal+:} false; then :
20649 $as_echo_n "(cached) " >&6
20650 else
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h. */
20653 #include <sys/types.h>
20654 #include <signal.h>
20657 main ()
20659 return *(signal (0, 0)) (0) == 1;
20661 return 0;
20663 _ACEOF
20664 if ac_fn_c_try_compile "$LINENO"; then :
20665 ac_cv_type_signal=int
20666 else
20667 ac_cv_type_signal=void
20669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20672 $as_echo "$ac_cv_type_signal" >&6; }
20674 cat >>confdefs.h <<_ACEOF
20675 #define RETSIGTYPE $ac_cv_type_signal
20676 _ACEOF
20679 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20680 if test "x$ac_cv_type_size_t" = xyes; then :
20682 else
20684 cat >>confdefs.h <<_ACEOF
20685 #define size_t unsigned int
20686 _ACEOF
20690 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20691 if test "x$ac_cv_type_mode_t" = xyes; then :
20693 else
20695 cat >>confdefs.h <<_ACEOF
20696 #define mode_t int
20697 _ACEOF
20701 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20702 if test "x$ac_cv_type_pid_t" = xyes; then :
20704 else
20706 cat >>confdefs.h <<_ACEOF
20707 #define pid_t int
20708 _ACEOF
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20713 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20714 if ${ac_cv_type_uid_t+:} false; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20719 #include <sys/types.h>
20721 _ACEOF
20722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20723 $EGREP "uid_t" >/dev/null 2>&1; then :
20724 ac_cv_type_uid_t=yes
20725 else
20726 ac_cv_type_uid_t=no
20728 rm -f conftest*
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20732 $as_echo "$ac_cv_type_uid_t" >&6; }
20733 if test $ac_cv_type_uid_t = no; then
20735 $as_echo "#define uid_t int" >>confdefs.h
20738 $as_echo "#define gid_t int" >>confdefs.h
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20743 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20744 if ${ac_cv_struct_tm+:} false; then :
20745 $as_echo_n "(cached) " >&6
20746 else
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20749 #include <sys/types.h>
20750 #include <time.h>
20753 main ()
20755 struct tm tm;
20756 int *p = &tm.tm_sec;
20757 return !p;
20759 return 0;
20761 _ACEOF
20762 if ac_fn_c_try_compile "$LINENO"; then :
20763 ac_cv_struct_tm=time.h
20764 else
20765 ac_cv_struct_tm=sys/time.h
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20770 $as_echo "$ac_cv_struct_tm" >&6; }
20771 if test $ac_cv_struct_tm = sys/time.h; then
20773 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20778 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20779 if test "x$ac_cv_type_union_wait" = xyes; then :
20781 cat >>confdefs.h <<_ACEOF
20782 #define HAVE_UNION_WAIT 1
20783 _ACEOF
20789 for ac_header in stdint.h
20790 do :
20791 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20792 if test "x$ac_cv_header_stdint_h" = xyes; then :
20793 cat >>confdefs.h <<_ACEOF
20794 #define HAVE_STDINT_H 1
20795 _ACEOF
20796 uint16=uint16_t
20797 else
20799 for ac_header in inttypes.h
20800 do :
20801 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20802 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_INTTYPES_H 1
20805 _ACEOF
20806 uint16=uint16_t
20807 else
20809 for ac_header in sys/types.h
20810 do :
20811 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20812 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_SYS_TYPES_H 1
20815 _ACEOF
20816 uint16=u_int16_t
20817 else
20819 # The cast to long int works around a bug in the HP C Compiler
20820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20822 # This bug is HP SR number 8606223364.
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20824 $as_echo_n "checking size of unsigned short... " >&6; }
20825 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20826 $as_echo_n "(cached) " >&6
20827 else
20828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20830 else
20831 if test "$ac_cv_type_unsigned_short" = yes; then
20832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20834 as_fn_error 77 "cannot compute sizeof (unsigned short)
20835 See \`config.log' for more details" "$LINENO" 5; }
20836 else
20837 ac_cv_sizeof_unsigned_short=0
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20843 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20847 cat >>confdefs.h <<_ACEOF
20848 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20849 _ACEOF
20852 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20853 uint16="unsigned short"
20854 else
20855 # The cast to long int works around a bug in the HP C Compiler
20856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20858 # This bug is HP SR number 8606223364.
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20860 $as_echo_n "checking size of unsigned int... " >&6; }
20861 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20862 $as_echo_n "(cached) " >&6
20863 else
20864 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20866 else
20867 if test "$ac_cv_type_unsigned_int" = yes; then
20868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20870 as_fn_error 77 "cannot compute sizeof (unsigned int)
20871 See \`config.log' for more details" "$LINENO" 5; }
20872 else
20873 ac_cv_sizeof_unsigned_int=0
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20879 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20883 cat >>confdefs.h <<_ACEOF
20884 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20885 _ACEOF
20888 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20889 uint16="unsigned int"
20890 else
20891 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20897 done
20902 done
20907 done
20910 cat >>confdefs.h <<_ACEOF
20911 #define UINT16 $uint16
20912 _ACEOF
20915 for ac_header in stdint.h
20916 do :
20917 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20918 if test "x$ac_cv_header_stdint_h" = xyes; then :
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_STDINT_H 1
20921 _ACEOF
20922 uint32=uint32_t
20923 else
20925 for ac_header in inttypes.h
20926 do :
20927 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20928 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20929 cat >>confdefs.h <<_ACEOF
20930 #define HAVE_INTTYPES_H 1
20931 _ACEOF
20932 uint32=uint32_t
20933 else
20935 for ac_header in sys/types.h
20936 do :
20937 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20938 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20939 cat >>confdefs.h <<_ACEOF
20940 #define HAVE_SYS_TYPES_H 1
20941 _ACEOF
20942 uint32=u_int32_t
20943 else
20945 # The cast to long int works around a bug in the HP C Compiler
20946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20948 # This bug is HP SR number 8606223364.
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20950 $as_echo_n "checking size of unsigned int... " >&6; }
20951 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20952 $as_echo_n "(cached) " >&6
20953 else
20954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20956 else
20957 if test "$ac_cv_type_unsigned_int" = yes; then
20958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20960 as_fn_error 77 "cannot compute sizeof (unsigned int)
20961 See \`config.log' for more details" "$LINENO" 5; }
20962 else
20963 ac_cv_sizeof_unsigned_int=0
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20969 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20973 cat >>confdefs.h <<_ACEOF
20974 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20975 _ACEOF
20978 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20979 uint32="unsigned int"
20980 else
20981 # The cast to long int works around a bug in the HP C Compiler
20982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20984 # This bug is HP SR number 8606223364.
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20986 $as_echo_n "checking size of unsigned long... " >&6; }
20987 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20988 $as_echo_n "(cached) " >&6
20989 else
20990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20992 else
20993 if test "$ac_cv_type_unsigned_long" = yes; then
20994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20996 as_fn_error 77 "cannot compute sizeof (unsigned long)
20997 See \`config.log' for more details" "$LINENO" 5; }
20998 else
20999 ac_cv_sizeof_unsigned_long=0
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21005 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21009 cat >>confdefs.h <<_ACEOF
21010 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21011 _ACEOF
21014 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21015 uint32="unsigned long"
21016 else
21017 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21023 done
21028 done
21033 done
21036 cat >>confdefs.h <<_ACEOF
21037 #define UINT32 $uint32
21038 _ACEOF
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
21042 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
21043 if ${ac_cv_func_qsort_argtype+:} false; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047 /* end confdefs.h. */
21049 #if HAVE_STDLIB_H
21050 #include "stdlib.h"
21051 #endif
21053 extern void *base;
21054 extern sortf(const void *, const void *);
21055 int sortf(a, b)
21056 const void *a;
21057 const void *b; { return 0; }
21060 main ()
21063 qsort(base, 2, sizeof(char *), sortf);
21066 return 0;
21068 _ACEOF
21069 if ac_fn_c_try_compile "$LINENO"; then :
21070 ac_cv_func_qsort_argtype=void
21071 else
21072 ac_cv_func_qsort_argtype=char
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21078 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21080 cat >>confdefs.h <<_ACEOF
21081 #define qsort_t $ac_cv_func_qsort_argtype
21082 _ACEOF
21086 for ac_header in sys/select.h sys/socket.h
21087 do :
21088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21091 cat >>confdefs.h <<_ACEOF
21092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21093 _ACEOF
21097 done
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21100 $as_echo_n "checking types of arguments for select... " >&6; }
21101 if ${ac_cv_func_select_args+:} false; then :
21102 $as_echo_n "(cached) " >&6
21103 else
21104 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21105 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21106 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21109 $ac_includes_default
21110 #ifdef HAVE_SYS_SELECT_H
21111 # include <sys/select.h>
21112 #endif
21113 #ifdef HAVE_SYS_SOCKET_H
21114 # include <sys/socket.h>
21115 #endif
21118 main ()
21120 extern int select ($ac_arg1,
21121 $ac_arg234, $ac_arg234, $ac_arg234,
21122 $ac_arg5);
21124 return 0;
21126 _ACEOF
21127 if ac_fn_c_try_compile "$LINENO"; then :
21128 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 done
21132 done
21133 done
21134 # Provide a safe default value.
21135 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21139 $as_echo "$ac_cv_func_select_args" >&6; }
21140 ac_save_IFS=$IFS; IFS=','
21141 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21142 IFS=$ac_save_IFS
21143 shift
21145 cat >>confdefs.h <<_ACEOF
21146 #define SELECT_TYPE_ARG1 $1
21147 _ACEOF
21150 cat >>confdefs.h <<_ACEOF
21151 #define SELECT_TYPE_ARG234 ($2)
21152 _ACEOF
21155 cat >>confdefs.h <<_ACEOF
21156 #define SELECT_TYPE_ARG5 ($3)
21157 _ACEOF
21159 rm -f conftest*
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21163 $as_echo_n "checking for working strcoll... " >&6; }
21164 if ${ac_cv_func_strcoll_works+:} false; then :
21165 $as_echo_n "(cached) " >&6
21166 else
21167 if test "$cross_compiling" = yes; then :
21168 ac_cv_func_strcoll_works=no
21169 else
21170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21171 /* end confdefs.h. */
21172 $ac_includes_default
21174 main ()
21176 return (strcoll ("abc", "def") >= 0 ||
21177 strcoll ("ABC", "DEF") >= 0 ||
21178 strcoll ("123", "456") >= 0)
21180 return 0;
21182 _ACEOF
21183 if ac_fn_c_try_run "$LINENO"; then :
21184 ac_cv_func_strcoll_works=yes
21185 else
21186 ac_cv_func_strcoll_works=no
21188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21189 conftest.$ac_objext conftest.beam conftest.$ac_ext
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21194 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21195 if test $ac_cv_func_strcoll_works = yes; then
21197 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21203 for ac_header in vfork.h
21204 do :
21205 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21206 if test "x$ac_cv_header_vfork_h" = xyes; then :
21207 cat >>confdefs.h <<_ACEOF
21208 #define HAVE_VFORK_H 1
21209 _ACEOF
21213 done
21215 for ac_func in fork vfork
21216 do :
21217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21218 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21219 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21220 cat >>confdefs.h <<_ACEOF
21221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21222 _ACEOF
21225 done
21227 if test "x$ac_cv_func_fork" = xyes; then
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21229 $as_echo_n "checking for working fork... " >&6; }
21230 if ${ac_cv_func_fork_works+:} false; then :
21231 $as_echo_n "(cached) " >&6
21232 else
21233 if test "$cross_compiling" = yes; then :
21234 ac_cv_func_fork_works=cross
21235 else
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238 $ac_includes_default
21240 main ()
21243 /* By Ruediger Kuhlmann. */
21244 return fork () < 0;
21247 return 0;
21249 _ACEOF
21250 if ac_fn_c_try_run "$LINENO"; then :
21251 ac_cv_func_fork_works=yes
21252 else
21253 ac_cv_func_fork_works=no
21255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21256 conftest.$ac_objext conftest.beam conftest.$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21261 $as_echo "$ac_cv_func_fork_works" >&6; }
21263 else
21264 ac_cv_func_fork_works=$ac_cv_func_fork
21266 if test "x$ac_cv_func_fork_works" = xcross; then
21267 case $host in
21268 *-*-amigaos* | *-*-msdosdjgpp*)
21269 # Override, as these systems have only a dummy fork() stub
21270 ac_cv_func_fork_works=no
21273 ac_cv_func_fork_works=yes
21275 esac
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21277 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21279 ac_cv_func_vfork_works=$ac_cv_func_vfork
21280 if test "x$ac_cv_func_vfork" = xyes; then
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21282 $as_echo_n "checking for working vfork... " >&6; }
21283 if ${ac_cv_func_vfork_works+:} false; then :
21284 $as_echo_n "(cached) " >&6
21285 else
21286 if test "$cross_compiling" = yes; then :
21287 ac_cv_func_vfork_works=cross
21288 else
21289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21290 /* end confdefs.h. */
21291 /* Thanks to Paul Eggert for this test. */
21292 $ac_includes_default
21293 #include <sys/wait.h>
21294 #ifdef HAVE_VFORK_H
21295 # include <vfork.h>
21296 #endif
21297 /* On some sparc systems, changes by the child to local and incoming
21298 argument registers are propagated back to the parent. The compiler
21299 is told about this with #include <vfork.h>, but some compilers
21300 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21301 static variable whose address is put into a register that is
21302 clobbered by the vfork. */
21303 static void
21304 #ifdef __cplusplus
21305 sparc_address_test (int arg)
21306 # else
21307 sparc_address_test (arg) int arg;
21308 #endif
21310 static pid_t child;
21311 if (!child) {
21312 child = vfork ();
21313 if (child < 0) {
21314 perror ("vfork");
21315 _exit(2);
21317 if (!child) {
21318 arg = getpid();
21319 write(-1, "", 0);
21320 _exit (arg);
21326 main ()
21328 pid_t parent = getpid ();
21329 pid_t child;
21331 sparc_address_test (0);
21333 child = vfork ();
21335 if (child == 0) {
21336 /* Here is another test for sparc vfork register problems. This
21337 test uses lots of local variables, at least as many local
21338 variables as main has allocated so far including compiler
21339 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21340 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21341 reuse the register of parent for one of the local variables,
21342 since it will think that parent can't possibly be used any more
21343 in this routine. Assigning to the local variable will thus
21344 munge parent in the parent process. */
21345 pid_t
21346 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21347 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21348 /* Convince the compiler that p..p7 are live; otherwise, it might
21349 use the same hardware register for all 8 local variables. */
21350 if (p != p1 || p != p2 || p != p3 || p != p4
21351 || p != p5 || p != p6 || p != p7)
21352 _exit(1);
21354 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21355 from child file descriptors. If the child closes a descriptor
21356 before it execs or exits, this munges the parent's descriptor
21357 as well. Test for this by closing stdout in the child. */
21358 _exit(close(fileno(stdout)) != 0);
21359 } else {
21360 int status;
21361 struct stat st;
21363 while (wait(&status) != child)
21365 return (
21366 /* Was there some problem with vforking? */
21367 child < 0
21369 /* Did the child fail? (This shouldn't happen.) */
21370 || status
21372 /* Did the vfork/compiler bug occur? */
21373 || parent != getpid()
21375 /* Did the file descriptor bug occur? */
21376 || fstat(fileno(stdout), &st) != 0
21380 _ACEOF
21381 if ac_fn_c_try_run "$LINENO"; then :
21382 ac_cv_func_vfork_works=yes
21383 else
21384 ac_cv_func_vfork_works=no
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21387 conftest.$ac_objext conftest.beam conftest.$ac_ext
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21392 $as_echo "$ac_cv_func_vfork_works" >&6; }
21395 if test "x$ac_cv_func_fork_works" = xcross; then
21396 ac_cv_func_vfork_works=$ac_cv_func_vfork
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21398 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21401 if test "x$ac_cv_func_vfork_works" = xyes; then
21403 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21405 else
21407 $as_echo "#define vfork fork" >>confdefs.h
21410 if test "x$ac_cv_func_fork_works" = xyes; then
21412 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21416 for ac_func in strchr \
21417 memcpy \
21418 strtol \
21419 strtoul \
21420 select \
21421 poll \
21422 qsort \
21423 getuid \
21424 getpwuid \
21425 getpwnam \
21426 gettimeofday \
21427 tmpfile \
21428 uname \
21429 rename \
21430 read \
21431 signal \
21432 setjmp \
21433 chown \
21434 wait4 \
21435 waitpid \
21436 wait \
21437 srandom \
21438 popen \
21439 pclose \
21440 fsync \
21441 truncate \
21442 listen \
21443 wcwidth \
21444 mbstowcs \
21445 wcrtomb \
21446 putenv \
21447 setenv
21448 do :
21449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21452 cat >>confdefs.h <<_ACEOF
21453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21454 _ACEOF
21457 done
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21461 $as_echo_n "checking for library containing gethostname... " >&6; }
21462 if ${ac_cv_search_gethostname+:} false; then :
21463 $as_echo_n "(cached) " >&6
21464 else
21465 ac_func_search_save_LIBS=$LIBS
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21469 /* Override any GCC internal prototype to avoid an error.
21470 Use char because int might match the return type of a GCC
21471 builtin and then its argument prototype would still apply. */
21472 #ifdef __cplusplus
21473 extern "C"
21474 #endif
21475 char gethostname ();
21477 main ()
21479 return gethostname ();
21481 return 0;
21483 _ACEOF
21484 for ac_lib in '' nsl; do
21485 if test -z "$ac_lib"; then
21486 ac_res="none required"
21487 else
21488 ac_res=-l$ac_lib
21489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21491 if ac_fn_c_try_link "$LINENO"; then :
21492 ac_cv_search_gethostname=$ac_res
21494 rm -f core conftest.err conftest.$ac_objext \
21495 conftest$ac_exeext
21496 if ${ac_cv_search_gethostname+:} false; then :
21497 break
21499 done
21500 if ${ac_cv_search_gethostname+:} false; then :
21502 else
21503 ac_cv_search_gethostname=no
21505 rm conftest.$ac_ext
21506 LIBS=$ac_func_search_save_LIBS
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21509 $as_echo "$ac_cv_search_gethostname" >&6; }
21510 ac_res=$ac_cv_search_gethostname
21511 if test "$ac_res" != no; then :
21512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21518 $as_echo_n "checking for library containing socket... " >&6; }
21519 if ${ac_cv_search_socket+:} false; then :
21520 $as_echo_n "(cached) " >&6
21521 else
21522 ac_func_search_save_LIBS=$LIBS
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 char socket ();
21534 main ()
21536 return socket ();
21538 return 0;
21540 _ACEOF
21541 for ac_lib in '' socket; do
21542 if test -z "$ac_lib"; then
21543 ac_res="none required"
21544 else
21545 ac_res=-l$ac_lib
21546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21548 if ac_fn_c_try_link "$LINENO"; then :
21549 ac_cv_search_socket=$ac_res
21551 rm -f core conftest.err conftest.$ac_objext \
21552 conftest$ac_exeext
21553 if ${ac_cv_search_socket+:} false; then :
21554 break
21556 done
21557 if ${ac_cv_search_socket+:} false; then :
21559 else
21560 ac_cv_search_socket=no
21562 rm conftest.$ac_ext
21563 LIBS=$ac_func_search_save_LIBS
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21566 $as_echo "$ac_cv_search_socket" >&6; }
21567 ac_res=$ac_cv_search_socket
21568 if test "$ac_res" != no; then :
21569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21571 else
21573 WEB_BUILD=
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21579 $as_echo_n "checking for library containing bind... " >&6; }
21580 if ${ac_cv_search_bind+:} false; then :
21581 $as_echo_n "(cached) " >&6
21582 else
21583 ac_func_search_save_LIBS=$LIBS
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h. */
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21590 #ifdef __cplusplus
21591 extern "C"
21592 #endif
21593 char bind ();
21595 main ()
21597 return bind ();
21599 return 0;
21601 _ACEOF
21602 for ac_lib in '' bind; do
21603 if test -z "$ac_lib"; then
21604 ac_res="none required"
21605 else
21606 ac_res=-l$ac_lib
21607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 ac_cv_search_bind=$ac_res
21612 rm -f core conftest.err conftest.$ac_objext \
21613 conftest$ac_exeext
21614 if ${ac_cv_search_bind+:} false; then :
21615 break
21617 done
21618 if ${ac_cv_search_bind+:} false; then :
21620 else
21621 ac_cv_search_bind=no
21623 rm conftest.$ac_ext
21624 LIBS=$ac_func_search_save_LIBS
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21627 $as_echo "$ac_cv_search_bind" >&6; }
21628 ac_res=$ac_cv_search_bind
21629 if test "$ac_res" != no; then :
21630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21632 else
21634 WEB_BUILD=
21639 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21640 do :
21641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21644 cat >>confdefs.h <<_ACEOF
21645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21646 _ACEOF
21649 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21652 else
21654 for ac_func in sigset sigrelse
21655 do :
21656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21659 cat >>confdefs.h <<_ACEOF
21660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21661 _ACEOF
21664 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21668 done
21672 done
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21676 $as_echo_n "checking for library containing syslog... " >&6; }
21677 if ${ac_cv_search_syslog+:} false; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 ac_func_search_save_LIBS=$LIBS
21681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682 /* end confdefs.h. */
21684 /* Override any GCC internal prototype to avoid an error.
21685 Use char because int might match the return type of a GCC
21686 builtin and then its argument prototype would still apply. */
21687 #ifdef __cplusplus
21688 extern "C"
21689 #endif
21690 char syslog ();
21692 main ()
21694 return syslog ();
21696 return 0;
21698 _ACEOF
21699 for ac_lib in '' bsd socket inet; do
21700 if test -z "$ac_lib"; then
21701 ac_res="none required"
21702 else
21703 ac_res=-l$ac_lib
21704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21706 if ac_fn_c_try_link "$LINENO"; then :
21707 ac_cv_search_syslog=$ac_res
21709 rm -f core conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext
21711 if ${ac_cv_search_syslog+:} false; then :
21712 break
21714 done
21715 if ${ac_cv_search_syslog+:} false; then :
21717 else
21718 ac_cv_search_syslog=no
21720 rm conftest.$ac_ext
21721 LIBS=$ac_func_search_save_LIBS
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21724 $as_echo "$ac_cv_search_syslog" >&6; }
21725 ac_res=$ac_cv_search_syslog
21726 if test "$ac_res" != no; then :
21727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21730 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21737 if test -n "$alpine_with_local_maildir" ; then
21738 alpine_local_maildir=$alpine_with_local_maildir
21739 elif test -d /var/spool/mail ; then
21740 alpine_local_maildir="/var/spool/mail"
21741 elif test -d /var/mail ; then
21742 alpine_local_maildir="/var/mail"
21743 else
21744 alpine_local_maildir="/usr/spool/mail"
21747 if test -n "$alpine_with_c_client_target" ; then
21748 alpine_c_client_target=$alpine_with_c_client_target
21752 cat >>confdefs.h <<_ACEOF
21753 #define SYSTYPE "$systype"
21754 _ACEOF
21757 cat >>confdefs.h <<_ACEOF
21758 #define C_FILESEP '$alpine_path_delim'
21759 _ACEOF
21762 cat >>confdefs.h <<_ACEOF
21763 #define S_FILESEP "$alpine_path_delim"
21764 _ACEOF
21767 cat >>confdefs.h <<_ACEOF
21768 #define MAILDIR "$alpine_local_maildir"
21769 _ACEOF
21772 cat >>confdefs.h <<_ACEOF
21773 #define MODE_READONLY $alpine_mode_readonly
21774 _ACEOF
21777 C_CLIENT_TARGET=$alpine_c_client_target
21779 C_CLIENT_WITH_IPV6=$c_client_ip6
21781 if test "x$alpine_SSLTYPE" = "xnone" ; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21783 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21784 c_client_specials="${c_client_specials}SSLTYPE=none "
21785 else
21787 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21788 certdir="$alpine_SSLCERTS"
21789 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21790 certdir="${alpine_SSLDIR}/certs"
21791 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21792 certdir="${alpine_SSLDIR}/ssl/certs"
21793 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21794 certdir="$alpine_SSLCERTS_ORIG"
21795 elif test -n "$alpine_SSLCERTS" ; then
21796 certdir="$alpine_SSLCERTS"
21797 else
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21799 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21802 if test "x$with_smime" != "xno" ; then
21803 if test -n "$certdir" ; then
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21805 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21807 $as_echo "#define SMIME /**/" >>confdefs.h
21810 cat >>confdefs.h <<_ACEOF
21811 #define SMIME_SSLCERTS "$certdir"
21812 _ACEOF
21818 SSL_CERT_LINK="no"
21819 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21820 SSL_BUNDLE_EXISTS="no"
21821 SSL_PEM="factory.pem ca-bundle.pem"
21822 for SSL_BUNDLE in $SSL_PEM
21824 if test -f ${certdir}/${SSL_BUNDLE} ; then
21825 SSL_BUNDLE_EXISTS="yes"
21827 done
21828 else
21829 SSL_CERT_LINK="yes"
21832 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21834 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21836 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21838 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21840 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21843 if test -n "$alpine_SSLINCLUDE" ; then
21844 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21847 if test -n "$alpine_SSLLIB" ; then
21848 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21851 if test -n "$alpine_SSLDIR" ; then
21852 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21855 if test -n "$certdir" ; then
21856 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21859 if test -n "$alpine_SSLKEYS" ; then
21860 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21864 extra_auth_gss=
21865 if test "x$alpine_GSSTYPE" != "xnone" ; then
21866 extra_auth_gss=gss
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21868 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21871 extra_auth_ntlm=
21872 if test "x$alpine_NTLM" != "xnone" ; then
21873 extra_auth_ntlm=ntl
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21875 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21878 if test -n "$CPPFLAGS" ; then
21879 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21881 if test -n "$CFLAGS" ; then
21882 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21885 if test -n "$alpine_c_client_cflags" ; then
21886 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21890 if test -n "$LDFLAGS" ; then
21891 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21893 if test -n "$LIBS" ; then
21894 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21897 if test -n "$alpine_c_client_ldflags" ; then
21898 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21902 if test -n "$alpine_c_client_gccoptlevel" ; then
21903 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21907 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21908 C_CLIENT_AUTHS=$c_client_auths
21911 C_CLIENT_SPECIALS=$c_client_specials
21914 if test -z "$WEB_BUILD" ; then
21915 WEB_PUBCOOKIE_BUILD=
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21917 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21919 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21920 else
21921 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21922 if test "x$alpine_GSSTYPE" = "xnone" ; then
21923 WEB_PUBCOOKIE_BUILD=
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21925 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21927 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21928 elif test -z "$WEB_BINDIR" ; then
21929 WEB_PUBCOOKIE_BUILD=
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21931 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21932 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21933 Please re-run configure with these options:
21934 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21935 else
21937 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21939 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21940 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21956 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"
21958 cat >confcache <<\_ACEOF
21959 # This file is a shell script that caches the results of configure
21960 # tests run on this system so they can be shared between configure
21961 # scripts and configure runs, see configure's option --config-cache.
21962 # It is not useful on other systems. If it contains results you don't
21963 # want to keep, you may remove or edit it.
21965 # config.status only pays attention to the cache file if you give it
21966 # the --recheck option to rerun configure.
21968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21970 # following values.
21972 _ACEOF
21974 # The following way of writing the cache mishandles newlines in values,
21975 # but we know of no workaround that is simple, portable, and efficient.
21976 # So, we kill variables containing newlines.
21977 # Ultrix sh set writes to stderr and can't be redirected directly,
21978 # and sets the high bit in the cache file unless we assign to the vars.
21980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21981 eval ac_val=\$$ac_var
21982 case $ac_val in #(
21983 *${as_nl}*)
21984 case $ac_var in #(
21985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21987 esac
21988 case $ac_var in #(
21989 _ | IFS | as_nl) ;; #(
21990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21991 *) { eval $ac_var=; unset $ac_var;} ;;
21992 esac ;;
21993 esac
21994 done
21996 (set) 2>&1 |
21997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21998 *${as_nl}ac_space=\ *)
21999 # `set' does not quote correctly, so add quotes: double-quote
22000 # substitution turns \\\\ into \\, and sed turns \\ into \.
22001 sed -n \
22002 "s/'/'\\\\''/g;
22003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22004 ;; #(
22006 # `set' quotes correctly as required by POSIX, so do not add quotes.
22007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22009 esac |
22010 sort
22012 sed '
22013 /^ac_cv_env_/b end
22014 t clear
22015 :clear
22016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22017 t end
22018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22019 :end' >>confcache
22020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22021 if test -w "$cache_file"; then
22022 if test "x$cache_file" != "x/dev/null"; then
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22024 $as_echo "$as_me: updating cache $cache_file" >&6;}
22025 if test ! -f "$cache_file" || test -h "$cache_file"; then
22026 cat confcache >"$cache_file"
22027 else
22028 case $cache_file in #(
22029 */* | ?:*)
22030 mv -f confcache "$cache_file"$$ &&
22031 mv -f "$cache_file"$$ "$cache_file" ;; #(
22033 mv -f confcache "$cache_file" ;;
22034 esac
22037 else
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22039 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22042 rm -f confcache
22044 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22045 # Let make expand exec_prefix.
22046 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22048 DEFS=-DHAVE_CONFIG_H
22050 ac_libobjs=
22051 ac_ltlibobjs=
22053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22054 # 1. Remove the extension, and $U if already installed.
22055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22058 # will be set to the directory where LIBOBJS objects are built.
22059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22061 done
22062 LIBOBJS=$ac_libobjs
22064 LTLIBOBJS=$ac_ltlibobjs
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22068 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22069 if test -n "$am_sleep_pid"; then
22070 # Hide warnings about reused PIDs.
22071 wait $am_sleep_pid 2>/dev/null
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22074 $as_echo "done" >&6; }
22075 if test -n "$EXEEXT"; then
22076 am__EXEEXT_TRUE=
22077 am__EXEEXT_FALSE='#'
22078 else
22079 am__EXEEXT_TRUE='#'
22080 am__EXEEXT_FALSE=
22083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22084 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22088 as_fn_error $? "conditional \"AMDEP\" was never defined.
22089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22092 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22096 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22100 : "${CONFIG_STATUS=./config.status}"
22101 ac_write_fail=0
22102 ac_clean_files_save=$ac_clean_files
22103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22106 as_write_fail=0
22107 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22108 #! $SHELL
22109 # Generated by $as_me.
22110 # Run this file to recreate the current configuration.
22111 # Compiler output produced by configure, useful for debugging
22112 # configure, is in config.log if it exists.
22114 debug=false
22115 ac_cs_recheck=false
22116 ac_cs_silent=false
22118 SHELL=\${CONFIG_SHELL-$SHELL}
22119 export SHELL
22120 _ASEOF
22121 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22122 ## -------------------- ##
22123 ## M4sh Initialization. ##
22124 ## -------------------- ##
22126 # Be more Bourne compatible
22127 DUALCASE=1; export DUALCASE # for MKS sh
22128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22129 emulate sh
22130 NULLCMD=:
22131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22132 # is contrary to our usage. Disable this feature.
22133 alias -g '${1+"$@"}'='"$@"'
22134 setopt NO_GLOB_SUBST
22135 else
22136 case `(set -o) 2>/dev/null` in #(
22137 *posix*) :
22138 set -o posix ;; #(
22139 *) :
22141 esac
22145 as_nl='
22147 export as_nl
22148 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22149 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22152 # Prefer a ksh shell builtin over an external printf program on Solaris,
22153 # but without wasting forks for bash or zsh.
22154 if test -z "$BASH_VERSION$ZSH_VERSION" \
22155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22156 as_echo='print -r --'
22157 as_echo_n='print -rn --'
22158 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22159 as_echo='printf %s\n'
22160 as_echo_n='printf %s'
22161 else
22162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22164 as_echo_n='/usr/ucb/echo -n'
22165 else
22166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22167 as_echo_n_body='eval
22168 arg=$1;
22169 case $arg in #(
22170 *"$as_nl"*)
22171 expr "X$arg" : "X\\(.*\\)$as_nl";
22172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22173 esac;
22174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22176 export as_echo_n_body
22177 as_echo_n='sh -c $as_echo_n_body as_echo'
22179 export as_echo_body
22180 as_echo='sh -c $as_echo_body as_echo'
22183 # The user is always right.
22184 if test "${PATH_SEPARATOR+set}" != set; then
22185 PATH_SEPARATOR=:
22186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22188 PATH_SEPARATOR=';'
22193 # IFS
22194 # We need space, tab and new line, in precisely that order. Quoting is
22195 # there to prevent editors from complaining about space-tab.
22196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22197 # splitting by setting IFS to empty value.)
22198 IFS=" "" $as_nl"
22200 # Find who we are. Look in the path if we contain no directory separator.
22201 as_myself=
22202 case $0 in #((
22203 *[\\/]* ) as_myself=$0 ;;
22204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22205 for as_dir in $PATH
22207 IFS=$as_save_IFS
22208 test -z "$as_dir" && as_dir=.
22209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22210 done
22211 IFS=$as_save_IFS
22214 esac
22215 # We did not find ourselves, most probably we were run as `sh COMMAND'
22216 # in which case we are not to be found in the path.
22217 if test "x$as_myself" = x; then
22218 as_myself=$0
22220 if test ! -f "$as_myself"; then
22221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22222 exit 1
22225 # Unset variables that we do not need and which cause bugs (e.g. in
22226 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22227 # suppresses any "Segmentation fault" message there. '((' could
22228 # trigger a bug in pdksh 5.2.14.
22229 for as_var in BASH_ENV ENV MAIL MAILPATH
22230 do eval test x\${$as_var+set} = xset \
22231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22232 done
22233 PS1='$ '
22234 PS2='> '
22235 PS4='+ '
22237 # NLS nuisances.
22238 LC_ALL=C
22239 export LC_ALL
22240 LANGUAGE=C
22241 export LANGUAGE
22243 # CDPATH.
22244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22248 # ----------------------------------------
22249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22251 # script with STATUS, using 1 if that was 0.
22252 as_fn_error ()
22254 as_status=$1; test $as_status -eq 0 && as_status=1
22255 if test "$4"; then
22256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22259 $as_echo "$as_me: error: $2" >&2
22260 as_fn_exit $as_status
22261 } # as_fn_error
22264 # as_fn_set_status STATUS
22265 # -----------------------
22266 # Set $? to STATUS, without forking.
22267 as_fn_set_status ()
22269 return $1
22270 } # as_fn_set_status
22272 # as_fn_exit STATUS
22273 # -----------------
22274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22275 as_fn_exit ()
22277 set +e
22278 as_fn_set_status $1
22279 exit $1
22280 } # as_fn_exit
22282 # as_fn_unset VAR
22283 # ---------------
22284 # Portably unset VAR.
22285 as_fn_unset ()
22287 { eval $1=; unset $1;}
22289 as_unset=as_fn_unset
22290 # as_fn_append VAR VALUE
22291 # ----------------------
22292 # Append the text in VALUE to the end of the definition contained in VAR. Take
22293 # advantage of any shell optimizations that allow amortized linear growth over
22294 # repeated appends, instead of the typical quadratic growth present in naive
22295 # implementations.
22296 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22297 eval 'as_fn_append ()
22299 eval $1+=\$2
22301 else
22302 as_fn_append ()
22304 eval $1=\$$1\$2
22306 fi # as_fn_append
22308 # as_fn_arith ARG...
22309 # ------------------
22310 # Perform arithmetic evaluation on the ARGs, and store the result in the
22311 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22312 # must be portable across $(()) and expr.
22313 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22314 eval 'as_fn_arith ()
22316 as_val=$(( $* ))
22318 else
22319 as_fn_arith ()
22321 as_val=`expr "$@" || test $? -eq 1`
22323 fi # as_fn_arith
22326 if expr a : '\(a\)' >/dev/null 2>&1 &&
22327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22328 as_expr=expr
22329 else
22330 as_expr=false
22333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22334 as_basename=basename
22335 else
22336 as_basename=false
22339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22340 as_dirname=dirname
22341 else
22342 as_dirname=false
22345 as_me=`$as_basename -- "$0" ||
22346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22347 X"$0" : 'X\(//\)$' \| \
22348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22349 $as_echo X/"$0" |
22350 sed '/^.*\/\([^/][^/]*\)\/*$/{
22351 s//\1/
22354 /^X\/\(\/\/\)$/{
22355 s//\1/
22358 /^X\/\(\/\).*/{
22359 s//\1/
22362 s/.*/./; q'`
22364 # Avoid depending upon Character Ranges.
22365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22368 as_cr_digits='0123456789'
22369 as_cr_alnum=$as_cr_Letters$as_cr_digits
22371 ECHO_C= ECHO_N= ECHO_T=
22372 case `echo -n x` in #(((((
22373 -n*)
22374 case `echo 'xy\c'` in
22375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22376 xy) ECHO_C='\c';;
22377 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22378 ECHO_T=' ';;
22379 esac;;
22381 ECHO_N='-n';;
22382 esac
22384 rm -f conf$$ conf$$.exe conf$$.file
22385 if test -d conf$$.dir; then
22386 rm -f conf$$.dir/conf$$.file
22387 else
22388 rm -f conf$$.dir
22389 mkdir conf$$.dir 2>/dev/null
22391 if (echo >conf$$.file) 2>/dev/null; then
22392 if ln -s conf$$.file conf$$ 2>/dev/null; then
22393 as_ln_s='ln -s'
22394 # ... but there are two gotchas:
22395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22397 # In both cases, we have to default to `cp -pR'.
22398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22399 as_ln_s='cp -pR'
22400 elif ln conf$$.file conf$$ 2>/dev/null; then
22401 as_ln_s=ln
22402 else
22403 as_ln_s='cp -pR'
22405 else
22406 as_ln_s='cp -pR'
22408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22409 rmdir conf$$.dir 2>/dev/null
22412 # as_fn_mkdir_p
22413 # -------------
22414 # Create "$as_dir" as a directory, including parents if necessary.
22415 as_fn_mkdir_p ()
22418 case $as_dir in #(
22419 -*) as_dir=./$as_dir;;
22420 esac
22421 test -d "$as_dir" || eval $as_mkdir_p || {
22422 as_dirs=
22423 while :; do
22424 case $as_dir in #(
22425 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22426 *) as_qdir=$as_dir;;
22427 esac
22428 as_dirs="'$as_qdir' $as_dirs"
22429 as_dir=`$as_dirname -- "$as_dir" ||
22430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431 X"$as_dir" : 'X\(//\)[^/]' \| \
22432 X"$as_dir" : 'X\(//\)$' \| \
22433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22434 $as_echo X"$as_dir" |
22435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22436 s//\1/
22439 /^X\(\/\/\)[^/].*/{
22440 s//\1/
22443 /^X\(\/\/\)$/{
22444 s//\1/
22447 /^X\(\/\).*/{
22448 s//\1/
22451 s/.*/./; q'`
22452 test -d "$as_dir" && break
22453 done
22454 test -z "$as_dirs" || eval "mkdir $as_dirs"
22455 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22458 } # as_fn_mkdir_p
22459 if mkdir -p . 2>/dev/null; then
22460 as_mkdir_p='mkdir -p "$as_dir"'
22461 else
22462 test -d ./-p && rmdir ./-p
22463 as_mkdir_p=false
22467 # as_fn_executable_p FILE
22468 # -----------------------
22469 # Test if FILE is an executable regular file.
22470 as_fn_executable_p ()
22472 test -f "$1" && test -x "$1"
22473 } # as_fn_executable_p
22474 as_test_x='test -x'
22475 as_executable_p=as_fn_executable_p
22477 # Sed expression to map a string onto a valid CPP name.
22478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22480 # Sed expression to map a string onto a valid variable name.
22481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22484 exec 6>&1
22485 ## ----------------------------------- ##
22486 ## Main body of $CONFIG_STATUS script. ##
22487 ## ----------------------------------- ##
22488 _ASEOF
22489 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22492 # Save the log message, to keep $0 and so on meaningful, and to
22493 # report actual input values of CONFIG_FILES etc. instead of their
22494 # values after options handling.
22495 ac_log="
22496 This file was extended by alpine $as_me 2.21.999, which was
22497 generated by GNU Autoconf 2.69. Invocation command line was
22499 CONFIG_FILES = $CONFIG_FILES
22500 CONFIG_HEADERS = $CONFIG_HEADERS
22501 CONFIG_LINKS = $CONFIG_LINKS
22502 CONFIG_COMMANDS = $CONFIG_COMMANDS
22503 $ $0 $@
22505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22508 _ACEOF
22510 case $ac_config_files in *"
22511 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22512 esac
22514 case $ac_config_headers in *"
22515 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22516 esac
22519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22520 # Files that config.status was made for.
22521 config_files="$ac_config_files"
22522 config_headers="$ac_config_headers"
22523 config_commands="$ac_config_commands"
22525 _ACEOF
22527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22528 ac_cs_usage="\
22529 \`$as_me' instantiates files and other configuration actions
22530 from templates according to the current configuration. Unless the files
22531 and actions are specified as TAGs, all are instantiated by default.
22533 Usage: $0 [OPTION]... [TAG]...
22535 -h, --help print this help, then exit
22536 -V, --version print version number and configuration settings, then exit
22537 --config print configuration, then exit
22538 -q, --quiet, --silent
22539 do not print progress messages
22540 -d, --debug don't remove temporary files
22541 --recheck update $as_me by reconfiguring in the same conditions
22542 --file=FILE[:TEMPLATE]
22543 instantiate the configuration file FILE
22544 --header=FILE[:TEMPLATE]
22545 instantiate the configuration header FILE
22547 Configuration files:
22548 $config_files
22550 Configuration headers:
22551 $config_headers
22553 Configuration commands:
22554 $config_commands
22556 Report bugs to <chappa@washington.edu>."
22558 _ACEOF
22559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22560 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22561 ac_cs_version="\\
22562 alpine config.status 2.21.999
22563 configured by $0, generated by GNU Autoconf 2.69,
22564 with options \\"\$ac_cs_config\\"
22566 Copyright (C) 2012 Free Software Foundation, Inc.
22567 This config.status script is free software; the Free Software Foundation
22568 gives unlimited permission to copy, distribute and modify it."
22570 ac_pwd='$ac_pwd'
22571 srcdir='$srcdir'
22572 INSTALL='$INSTALL'
22573 MKDIR_P='$MKDIR_P'
22574 AWK='$AWK'
22575 test -n "\$AWK" || AWK=awk
22576 _ACEOF
22578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22579 # The default lists apply if the user does not specify any file.
22580 ac_need_defaults=:
22581 while test $# != 0
22583 case $1 in
22584 --*=?*)
22585 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22587 ac_shift=:
22589 --*=)
22590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22591 ac_optarg=
22592 ac_shift=:
22595 ac_option=$1
22596 ac_optarg=$2
22597 ac_shift=shift
22599 esac
22601 case $ac_option in
22602 # Handling of the options.
22603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22604 ac_cs_recheck=: ;;
22605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22606 $as_echo "$ac_cs_version"; exit ;;
22607 --config | --confi | --conf | --con | --co | --c )
22608 $as_echo "$ac_cs_config"; exit ;;
22609 --debug | --debu | --deb | --de | --d | -d )
22610 debug=: ;;
22611 --file | --fil | --fi | --f )
22612 $ac_shift
22613 case $ac_optarg in
22614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22615 '') as_fn_error $? "missing file argument" ;;
22616 esac
22617 as_fn_append CONFIG_FILES " '$ac_optarg'"
22618 ac_need_defaults=false;;
22619 --header | --heade | --head | --hea )
22620 $ac_shift
22621 case $ac_optarg in
22622 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22623 esac
22624 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22625 ac_need_defaults=false;;
22626 --he | --h)
22627 # Conflict between --help and --header
22628 as_fn_error $? "ambiguous option: \`$1'
22629 Try \`$0 --help' for more information.";;
22630 --help | --hel | -h )
22631 $as_echo "$ac_cs_usage"; exit ;;
22632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22633 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22634 ac_cs_silent=: ;;
22636 # This is an error.
22637 -*) as_fn_error $? "unrecognized option: \`$1'
22638 Try \`$0 --help' for more information." ;;
22640 *) as_fn_append ac_config_targets " $1"
22641 ac_need_defaults=false ;;
22643 esac
22644 shift
22645 done
22647 ac_configure_extra_args=
22649 if $ac_cs_silent; then
22650 exec 6>/dev/null
22651 ac_configure_extra_args="$ac_configure_extra_args --silent"
22654 _ACEOF
22655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22656 if \$ac_cs_recheck; then
22657 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22658 shift
22659 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22660 CONFIG_SHELL='$SHELL'
22661 export CONFIG_SHELL
22662 exec "\$@"
22665 _ACEOF
22666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22667 exec 5>>config.log
22669 echo
22670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22671 ## Running $as_me. ##
22672 _ASBOX
22673 $as_echo "$ac_log"
22674 } >&5
22676 _ACEOF
22677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22679 # INIT-COMMANDS
22681 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22684 # The HP-UX ksh and POSIX shell print the target directory to stdout
22685 # if CDPATH is set.
22686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22688 sed_quote_subst='$sed_quote_subst'
22689 double_quote_subst='$double_quote_subst'
22690 delay_variable_subst='$delay_variable_subst'
22691 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22692 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22693 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22694 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22695 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22696 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22697 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22698 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22699 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22700 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22701 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22702 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22703 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22704 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22705 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22706 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22707 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22708 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22709 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22710 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22711 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22712 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22713 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22714 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22715 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22716 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22717 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22718 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22719 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22720 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22721 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22722 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22723 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22724 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22725 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22726 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22727 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22728 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22729 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22730 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22731 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22732 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22733 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22734 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22735 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22736 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22737 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22738 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22739 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22740 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22741 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22742 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22743 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22744 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22746 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22747 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"`'
22748 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22749 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22750 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22751 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22752 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22753 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22754 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22755 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22756 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22757 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22758 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22759 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22760 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22761 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22762 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22763 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22764 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22765 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22766 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22767 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22768 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22769 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22770 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22771 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22772 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22773 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22774 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22775 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22776 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22777 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22778 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22779 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22780 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22781 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22782 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22783 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22784 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22785 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22786 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22787 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22788 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22789 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22790 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22791 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22792 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22793 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22794 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22795 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22796 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22797 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22798 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22799 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22800 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22801 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22802 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22803 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22804 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22805 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22806 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22807 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22808 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22809 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22810 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22811 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22812 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22813 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22814 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22815 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22816 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22817 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22818 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22819 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22820 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22822 LTCC='$LTCC'
22823 LTCFLAGS='$LTCFLAGS'
22824 compiler='$compiler_DEFAULT'
22826 # A function that is used when there is no print builtin or printf.
22827 func_fallback_echo ()
22829 eval 'cat <<_LTECHO_EOF
22831 _LTECHO_EOF'
22834 # Quote evaled strings.
22835 for var in SHELL \
22836 ECHO \
22837 PATH_SEPARATOR \
22838 SED \
22839 GREP \
22840 EGREP \
22841 FGREP \
22842 LD \
22843 NM \
22844 LN_S \
22845 lt_SP2NL \
22846 lt_NL2SP \
22847 reload_flag \
22848 OBJDUMP \
22849 deplibs_check_method \
22850 file_magic_cmd \
22851 file_magic_glob \
22852 want_nocaseglob \
22853 DLLTOOL \
22854 sharedlib_from_linklib_cmd \
22855 AR \
22856 AR_FLAGS \
22857 archiver_list_spec \
22858 STRIP \
22859 RANLIB \
22860 CC \
22861 CFLAGS \
22862 compiler \
22863 lt_cv_sys_global_symbol_pipe \
22864 lt_cv_sys_global_symbol_to_cdecl \
22865 lt_cv_sys_global_symbol_to_c_name_address \
22866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22867 nm_file_list_spec \
22868 lt_prog_compiler_no_builtin_flag \
22869 lt_prog_compiler_pic \
22870 lt_prog_compiler_wl \
22871 lt_prog_compiler_static \
22872 lt_cv_prog_compiler_c_o \
22873 need_locks \
22874 MANIFEST_TOOL \
22875 DSYMUTIL \
22876 NMEDIT \
22877 LIPO \
22878 OTOOL \
22879 OTOOL64 \
22880 shrext_cmds \
22881 export_dynamic_flag_spec \
22882 whole_archive_flag_spec \
22883 compiler_needs_object \
22884 with_gnu_ld \
22885 allow_undefined_flag \
22886 no_undefined_flag \
22887 hardcode_libdir_flag_spec \
22888 hardcode_libdir_separator \
22889 exclude_expsyms \
22890 include_expsyms \
22891 file_list_spec \
22892 variables_saved_for_relink \
22893 libname_spec \
22894 library_names_spec \
22895 soname_spec \
22896 install_override_mode \
22897 finish_eval \
22898 old_striplib \
22899 striplib; do
22900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22901 *[\\\\\\\`\\"\\\$]*)
22902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22907 esac
22908 done
22910 # Double-quote double-evaled strings.
22911 for var in reload_cmds \
22912 old_postinstall_cmds \
22913 old_postuninstall_cmds \
22914 old_archive_cmds \
22915 extract_expsyms_cmds \
22916 old_archive_from_new_cmds \
22917 old_archive_from_expsyms_cmds \
22918 archive_cmds \
22919 archive_expsym_cmds \
22920 module_cmds \
22921 module_expsym_cmds \
22922 export_symbols_cmds \
22923 prelink_cmds \
22924 postlink_cmds \
22925 postinstall_cmds \
22926 postuninstall_cmds \
22927 finish_cmds \
22928 sys_lib_search_path_spec \
22929 sys_lib_dlsearch_path_spec; do
22930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22931 *[\\\\\\\`\\"\\\$]*)
22932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22937 esac
22938 done
22940 ac_aux_dir='$ac_aux_dir'
22941 xsi_shell='$xsi_shell'
22942 lt_shell_append='$lt_shell_append'
22944 # See if we are running on zsh, and set the options which allow our
22945 # commands through without removal of \ escapes INIT.
22946 if test -n "\${ZSH_VERSION+set}" ; then
22947 setopt NO_GLOB_SUBST
22951 PACKAGE='$PACKAGE'
22952 VERSION='$VERSION'
22953 TIMESTAMP='$TIMESTAMP'
22954 RM='$RM'
22955 ofile='$ofile'
22959 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22960 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22961 # from automake < 1.5.
22962 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22963 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22964 LINGUAS="${LINGUAS-%UNSET%}"
22967 _ACEOF
22969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22971 # Handling of arguments.
22972 for ac_config_target in $ac_config_targets
22974 case $ac_config_target in
22975 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22977 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22978 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22979 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22980 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22981 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22982 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22983 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22984 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22985 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22986 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22987 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22988 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22989 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22990 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22991 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22995 esac
22996 done
22999 # If the user did not use the arguments to specify the items to instantiate,
23000 # then the envvar interface is used. Set only those that are not.
23001 # We use the long form for the default assignment because of an extremely
23002 # bizarre bug on SunOS 4.1.3.
23003 if $ac_need_defaults; then
23004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23009 # Have a temporary directory for convenience. Make it in the build tree
23010 # simply because there is no reason against having it here, and in addition,
23011 # creating and moving files from /tmp can sometimes cause problems.
23012 # Hook for its removal unless debugging.
23013 # Note that there is a small window in which the directory will not be cleaned:
23014 # after its creation but before its name has been assigned to `$tmp'.
23015 $debug ||
23017 tmp= ac_tmp=
23018 trap 'exit_status=$?
23019 : "${ac_tmp:=$tmp}"
23020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23022 trap 'as_fn_exit 1' 1 2 13 15
23024 # Create a (secure) tmp directory for tmp files.
23027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23028 test -d "$tmp"
23029 } ||
23031 tmp=./conf$$-$RANDOM
23032 (umask 077 && mkdir "$tmp")
23033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23034 ac_tmp=$tmp
23036 # Set up the scripts for CONFIG_FILES section.
23037 # No need to generate them if there are no CONFIG_FILES.
23038 # This happens for instance with `./config.status config.h'.
23039 if test -n "$CONFIG_FILES"; then
23042 ac_cr=`echo X | tr X '\015'`
23043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23044 # But we know of no other shell where ac_cr would be empty at this
23045 # point, so we can use a bashism as a fallback.
23046 if test "x$ac_cr" = x; then
23047 eval ac_cr=\$\'\\r\'
23049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23051 ac_cs_awk_cr='\\r'
23052 else
23053 ac_cs_awk_cr=$ac_cr
23056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23057 _ACEOF
23061 echo "cat >conf$$subs.awk <<_ACEOF" &&
23062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23063 echo "_ACEOF"
23064 } >conf$$subs.sh ||
23065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23067 ac_delim='%!_!# '
23068 for ac_last_try in false false false false false :; do
23069 . ./conf$$subs.sh ||
23070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23073 if test $ac_delim_n = $ac_delim_num; then
23074 break
23075 elif $ac_last_try; then
23076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23077 else
23078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23080 done
23081 rm -f conf$$subs.sh
23083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23085 _ACEOF
23086 sed -n '
23088 s/^/S["/; s/!.*/"]=/
23091 s/^[^!]*!//
23092 :repl
23093 t repl
23094 s/'"$ac_delim"'$//
23095 t delim
23098 s/\(.\{148\}\)..*/\1/
23099 t more1
23100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23103 b repl
23104 :more1
23105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23108 s/.\{148\}//
23109 t nl
23110 :delim
23112 s/\(.\{148\}\)..*/\1/
23113 t more2
23114 s/["\\]/\\&/g; s/^/"/; s/$/"/
23117 :more2
23118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23121 s/.\{148\}//
23122 t delim
23123 ' <conf$$subs.awk | sed '
23124 /^[^""]/{
23126 s/\n//
23128 ' >>$CONFIG_STATUS || ac_write_fail=1
23129 rm -f conf$$subs.awk
23130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23131 _ACAWK
23132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23133 for (key in S) S_is_set[key] = 1
23134 FS = "\a"
23138 line = $ 0
23139 nfields = split(line, field, "@")
23140 substed = 0
23141 len = length(field[1])
23142 for (i = 2; i < nfields; i++) {
23143 key = field[i]
23144 keylen = length(key)
23145 if (S_is_set[key]) {
23146 value = S[key]
23147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23148 len += length(value) + length(field[++i])
23149 substed = 1
23150 } else
23151 len += 1 + keylen
23154 print line
23157 _ACAWK
23158 _ACEOF
23159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23162 else
23164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23166 _ACEOF
23168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23170 # trailing colons and then remove the whole line if VPATH becomes empty
23171 # (actually we leave an empty line to preserve line numbers).
23172 if test "x$srcdir" = x.; then
23173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23175 s///
23176 s/^/:/
23177 s/[ ]*$/:/
23178 s/:\$(srcdir):/:/g
23179 s/:\${srcdir}:/:/g
23180 s/:@srcdir@:/:/g
23181 s/^:*//
23182 s/:*$//
23184 s/\(=[ ]*\).*/\1/
23186 s/\n//
23187 s/^[^=]*=[ ]*$//
23191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23192 fi # test -n "$CONFIG_FILES"
23194 # Set up the scripts for CONFIG_HEADERS section.
23195 # No need to generate them if there are no CONFIG_HEADERS.
23196 # This happens for instance with `./config.status Makefile'.
23197 if test -n "$CONFIG_HEADERS"; then
23198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23199 BEGIN {
23200 _ACEOF
23202 # Transform confdefs.h into an awk script `defines.awk', embedded as
23203 # here-document in config.status, that substitutes the proper values into
23204 # config.h.in to produce config.h.
23206 # Create a delimiter string that does not exist in confdefs.h, to ease
23207 # handling of long lines.
23208 ac_delim='%!_!# '
23209 for ac_last_try in false false :; do
23210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23211 if test -z "$ac_tt"; then
23212 break
23213 elif $ac_last_try; then
23214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23215 else
23216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23218 done
23220 # For the awk script, D is an array of macro values keyed by name,
23221 # likewise P contains macro parameters if any. Preserve backslash
23222 # newline sequences.
23224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23225 sed -n '
23226 s/.\{148\}/&'"$ac_delim"'/g
23227 t rset
23228 :rset
23229 s/^[ ]*#[ ]*define[ ][ ]*/ /
23230 t def
23232 :def
23233 s/\\$//
23234 t bsnl
23235 s/["\\]/\\&/g
23236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23237 D["\1"]=" \3"/p
23238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23240 :bsnl
23241 s/["\\]/\\&/g
23242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23243 D["\1"]=" \3\\\\\\n"\\/p
23244 t cont
23245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23246 t cont
23248 :cont
23250 s/.\{148\}/&'"$ac_delim"'/g
23251 t clear
23252 :clear
23253 s/\\$//
23254 t bsnlc
23255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23257 :bsnlc
23258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23259 b cont
23260 ' <confdefs.h | sed '
23261 s/'"$ac_delim"'/"\\\
23262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23265 for (key in D) D_is_set[key] = 1
23266 FS = "\a"
23268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23269 line = \$ 0
23270 split(line, arg, " ")
23271 if (arg[1] == "#") {
23272 defundef = arg[2]
23273 mac1 = arg[3]
23274 } else {
23275 defundef = substr(arg[1], 2)
23276 mac1 = arg[2]
23278 split(mac1, mac2, "(") #)
23279 macro = mac2[1]
23280 prefix = substr(line, 1, index(line, defundef) - 1)
23281 if (D_is_set[macro]) {
23282 # Preserve the white space surrounding the "#".
23283 print prefix "define", macro P[macro] D[macro]
23284 next
23285 } else {
23286 # Replace #undef with comments. This is necessary, for example,
23287 # in the case of _POSIX_SOURCE, which is predefined and required
23288 # on some systems where configure will not decide to define it.
23289 if (defundef == "undef") {
23290 print "/*", prefix defundef, macro, "*/"
23291 next
23295 { print }
23296 _ACAWK
23297 _ACEOF
23298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23300 fi # test -n "$CONFIG_HEADERS"
23303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23304 shift
23305 for ac_tag
23307 case $ac_tag in
23308 :[FHLC]) ac_mode=$ac_tag; continue;;
23309 esac
23310 case $ac_mode$ac_tag in
23311 :[FHL]*:*);;
23312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23313 :[FH]-) ac_tag=-:-;;
23314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23315 esac
23316 ac_save_IFS=$IFS
23317 IFS=:
23318 set x $ac_tag
23319 IFS=$ac_save_IFS
23320 shift
23321 ac_file=$1
23322 shift
23324 case $ac_mode in
23325 :L) ac_source=$1;;
23326 :[FH])
23327 ac_file_inputs=
23328 for ac_f
23330 case $ac_f in
23331 -) ac_f="$ac_tmp/stdin";;
23332 *) # Look for the file first in the build tree, then in the source tree
23333 # (if the path is not absolute). The absolute path cannot be DOS-style,
23334 # because $ac_f cannot contain `:'.
23335 test -f "$ac_f" ||
23336 case $ac_f in
23337 [\\/$]*) false;;
23338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23339 esac ||
23340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23341 esac
23342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23343 as_fn_append ac_file_inputs " '$ac_f'"
23344 done
23346 # Let's still pretend it is `configure' which instantiates (i.e., don't
23347 # use $as_me), people would be surprised to read:
23348 # /* config.h. Generated by config.status. */
23349 configure_input='Generated from '`
23350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23351 `' by configure.'
23352 if test x"$ac_file" != x-; then
23353 configure_input="$ac_file. $configure_input"
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23355 $as_echo "$as_me: creating $ac_file" >&6;}
23357 # Neutralize special characters interpreted by sed in replacement strings.
23358 case $configure_input in #(
23359 *\&* | *\|* | *\\* )
23360 ac_sed_conf_input=`$as_echo "$configure_input" |
23361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23362 *) ac_sed_conf_input=$configure_input;;
23363 esac
23365 case $ac_tag in
23366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23368 esac
23370 esac
23372 ac_dir=`$as_dirname -- "$ac_file" ||
23373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23374 X"$ac_file" : 'X\(//\)[^/]' \| \
23375 X"$ac_file" : 'X\(//\)$' \| \
23376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23377 $as_echo X"$ac_file" |
23378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23379 s//\1/
23382 /^X\(\/\/\)[^/].*/{
23383 s//\1/
23386 /^X\(\/\/\)$/{
23387 s//\1/
23390 /^X\(\/\).*/{
23391 s//\1/
23394 s/.*/./; q'`
23395 as_dir="$ac_dir"; as_fn_mkdir_p
23396 ac_builddir=.
23398 case "$ac_dir" in
23399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23402 # A ".." for each directory in $ac_dir_suffix.
23403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23404 case $ac_top_builddir_sub in
23405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23407 esac ;;
23408 esac
23409 ac_abs_top_builddir=$ac_pwd
23410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23411 # for backward compatibility:
23412 ac_top_builddir=$ac_top_build_prefix
23414 case $srcdir in
23415 .) # We are building in place.
23416 ac_srcdir=.
23417 ac_top_srcdir=$ac_top_builddir_sub
23418 ac_abs_top_srcdir=$ac_pwd ;;
23419 [\\/]* | ?:[\\/]* ) # Absolute name.
23420 ac_srcdir=$srcdir$ac_dir_suffix;
23421 ac_top_srcdir=$srcdir
23422 ac_abs_top_srcdir=$srcdir ;;
23423 *) # Relative name.
23424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23425 ac_top_srcdir=$ac_top_build_prefix$srcdir
23426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23427 esac
23428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23431 case $ac_mode in
23434 # CONFIG_FILE
23437 case $INSTALL in
23438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23440 esac
23441 ac_MKDIR_P=$MKDIR_P
23442 case $MKDIR_P in
23443 [\\/$]* | ?:[\\/]* ) ;;
23444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23445 esac
23446 _ACEOF
23448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23449 # If the template does not know about datarootdir, expand it.
23450 # FIXME: This hack should be removed a few years after 2.60.
23451 ac_datarootdir_hack=; ac_datarootdir_seen=
23452 ac_sed_dataroot='
23453 /datarootdir/ {
23457 /@datadir@/p
23458 /@docdir@/p
23459 /@infodir@/p
23460 /@localedir@/p
23461 /@mandir@/p'
23462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23463 *datarootdir*) ac_datarootdir_seen=yes;;
23464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23467 _ACEOF
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 ac_datarootdir_hack='
23470 s&@datadir@&$datadir&g
23471 s&@docdir@&$docdir&g
23472 s&@infodir@&$infodir&g
23473 s&@localedir@&$localedir&g
23474 s&@mandir@&$mandir&g
23475 s&\\\${datarootdir}&$datarootdir&g' ;;
23476 esac
23477 _ACEOF
23479 # Neutralize VPATH when `$srcdir' = `.'.
23480 # Shell code in configure.ac might set extrasub.
23481 # FIXME: do we really want to maintain this feature?
23482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23483 ac_sed_extra="$ac_vpsub
23484 $extrasub
23485 _ACEOF
23486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23489 s|@configure_input@|$ac_sed_conf_input|;t t
23490 s&@top_builddir@&$ac_top_builddir_sub&;t t
23491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23492 s&@srcdir@&$ac_srcdir&;t t
23493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23494 s&@top_srcdir@&$ac_top_srcdir&;t t
23495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23496 s&@builddir@&$ac_builddir&;t t
23497 s&@abs_builddir@&$ac_abs_builddir&;t t
23498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23499 s&@INSTALL@&$ac_INSTALL&;t t
23500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23501 $ac_datarootdir_hack
23503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23511 which seems to be undefined. Please make sure it is defined" >&5
23512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23513 which seems to be undefined. Please make sure it is defined" >&2;}
23515 rm -f "$ac_tmp/stdin"
23516 case $ac_file in
23517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23519 esac \
23520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23524 # CONFIG_HEADER
23526 if test x"$ac_file" != x-; then
23528 $as_echo "/* $configure_input */" \
23529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23530 } >"$ac_tmp/config.h" \
23531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23535 else
23536 rm -f "$ac_file"
23537 mv "$ac_tmp/config.h" "$ac_file" \
23538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23540 else
23541 $as_echo "/* $configure_input */" \
23542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23543 || as_fn_error $? "could not create -" "$LINENO" 5
23545 # Compute "$ac_file"'s index in $config_headers.
23546 _am_arg="$ac_file"
23547 _am_stamp_count=1
23548 for _am_header in $config_headers :; do
23549 case $_am_header in
23550 $_am_arg | $_am_arg:* )
23551 break ;;
23553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23554 esac
23555 done
23556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558 X"$_am_arg" : 'X\(//\)[^/]' \| \
23559 X"$_am_arg" : 'X\(//\)$' \| \
23560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23561 $as_echo X"$_am_arg" |
23562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23563 s//\1/
23566 /^X\(\/\/\)[^/].*/{
23567 s//\1/
23570 /^X\(\/\/\)$/{
23571 s//\1/
23574 /^X\(\/\).*/{
23575 s//\1/
23578 s/.*/./; q'`/stamp-h$_am_stamp_count
23581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23582 $as_echo "$as_me: executing $ac_file commands" >&6;}
23584 esac
23587 case $ac_file$ac_mode in
23588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23589 # Older Autoconf quotes --file arguments for eval, but not when files
23590 # are listed without --file. Let's play safe and only enable the eval
23591 # if we detect the quoting.
23592 case $CONFIG_FILES in
23593 *\'*) eval set x "$CONFIG_FILES" ;;
23594 *) set x $CONFIG_FILES ;;
23595 esac
23596 shift
23597 for mf
23599 # Strip MF so we end up with the name of the file.
23600 mf=`echo "$mf" | sed -e 's/:.*$//'`
23601 # Check whether this is an Automake generated Makefile or not.
23602 # We used to match only the files named 'Makefile.in', but
23603 # some people rename them; so instead we look at the file content.
23604 # Grep'ing the first line is not enough: some people post-process
23605 # each Makefile.in and add a new line on top of each file to say so.
23606 # Grep'ing the whole file is not good either: AIX grep has a line
23607 # limit of 2048, but all sed's we know have understand at least 4000.
23608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23609 dirpart=`$as_dirname -- "$mf" ||
23610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611 X"$mf" : 'X\(//\)[^/]' \| \
23612 X"$mf" : 'X\(//\)$' \| \
23613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23614 $as_echo X"$mf" |
23615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23616 s//\1/
23619 /^X\(\/\/\)[^/].*/{
23620 s//\1/
23623 /^X\(\/\/\)$/{
23624 s//\1/
23627 /^X\(\/\).*/{
23628 s//\1/
23631 s/.*/./; q'`
23632 else
23633 continue
23635 # Extract the definition of DEPDIR, am__include, and am__quote
23636 # from the Makefile without running 'make'.
23637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23638 test -z "$DEPDIR" && continue
23639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23640 test -z "$am__include" && continue
23641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23642 # Find all dependency output files, they are included files with
23643 # $(DEPDIR) in their names. We invoke sed twice because it is the
23644 # simplest approach to changing $(DEPDIR) to its actual value in the
23645 # expansion.
23646 for file in `sed -n "
23647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23649 # Make sure the directory exists.
23650 test -f "$dirpart/$file" && continue
23651 fdir=`$as_dirname -- "$file" ||
23652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23653 X"$file" : 'X\(//\)[^/]' \| \
23654 X"$file" : 'X\(//\)$' \| \
23655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23656 $as_echo X"$file" |
23657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23658 s//\1/
23661 /^X\(\/\/\)[^/].*/{
23662 s//\1/
23665 /^X\(\/\/\)$/{
23666 s//\1/
23669 /^X\(\/\).*/{
23670 s//\1/
23673 s/.*/./; q'`
23674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23675 # echo "creating $dirpart/$file"
23676 echo '# dummy' > "$dirpart/$file"
23677 done
23678 done
23681 "libtool":C)
23683 # See if we are running on zsh, and set the options which allow our
23684 # commands through without removal of \ escapes.
23685 if test -n "${ZSH_VERSION+set}" ; then
23686 setopt NO_GLOB_SUBST
23689 cfgfile="${ofile}T"
23690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23691 $RM "$cfgfile"
23693 cat <<_LT_EOF >> "$cfgfile"
23694 #! $SHELL
23696 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23697 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23702 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23703 # Foundation, Inc.
23704 # Written by Gordon Matzigkeit, 1996
23706 # This file is part of GNU Libtool.
23708 # GNU Libtool is free software; you can redistribute it and/or
23709 # modify it under the terms of the GNU General Public License as
23710 # published by the Free Software Foundation; either version 2 of
23711 # the License, or (at your option) any later version.
23713 # As a special exception to the GNU General Public License,
23714 # if you distribute this file as part of a program or library that
23715 # is built using GNU Libtool, you may include this file under the
23716 # same distribution terms that you use for the rest of that program.
23718 # GNU Libtool is distributed in the hope that it will be useful,
23719 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23720 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23721 # GNU General Public License for more details.
23723 # You should have received a copy of the GNU General Public License
23724 # along with GNU Libtool; see the file COPYING. If not, a copy
23725 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23726 # obtained by writing to the Free Software Foundation, Inc.,
23727 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23730 # The names of the tagged configurations supported by this script.
23731 available_tags=""
23733 # ### BEGIN LIBTOOL CONFIG
23735 # Which release of libtool.m4 was used?
23736 macro_version=$macro_version
23737 macro_revision=$macro_revision
23739 # Whether or not to build shared libraries.
23740 build_libtool_libs=$enable_shared
23742 # Whether or not to build static libraries.
23743 build_old_libs=$enable_static
23745 # What type of objects to build.
23746 pic_mode=$pic_mode
23748 # Whether or not to optimize for fast installation.
23749 fast_install=$enable_fast_install
23751 # Shell to use when invoking shell scripts.
23752 SHELL=$lt_SHELL
23754 # An echo program that protects backslashes.
23755 ECHO=$lt_ECHO
23757 # The PATH separator for the build system.
23758 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23760 # The host system.
23761 host_alias=$host_alias
23762 host=$host
23763 host_os=$host_os
23765 # The build system.
23766 build_alias=$build_alias
23767 build=$build
23768 build_os=$build_os
23770 # A sed program that does not truncate output.
23771 SED=$lt_SED
23773 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23774 Xsed="\$SED -e 1s/^X//"
23776 # A grep program that handles long lines.
23777 GREP=$lt_GREP
23779 # An ERE matcher.
23780 EGREP=$lt_EGREP
23782 # A literal string matcher.
23783 FGREP=$lt_FGREP
23785 # A BSD- or MS-compatible name lister.
23786 NM=$lt_NM
23788 # Whether we need soft or hard links.
23789 LN_S=$lt_LN_S
23791 # What is the maximum length of a command?
23792 max_cmd_len=$max_cmd_len
23794 # Object file suffix (normally "o").
23795 objext=$ac_objext
23797 # Executable file suffix (normally "").
23798 exeext=$exeext
23800 # whether the shell understands "unset".
23801 lt_unset=$lt_unset
23803 # turn spaces into newlines.
23804 SP2NL=$lt_lt_SP2NL
23806 # turn newlines into spaces.
23807 NL2SP=$lt_lt_NL2SP
23809 # convert \$build file names to \$host format.
23810 to_host_file_cmd=$lt_cv_to_host_file_cmd
23812 # convert \$build files to toolchain format.
23813 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23815 # An object symbol dumper.
23816 OBJDUMP=$lt_OBJDUMP
23818 # Method to check whether dependent libraries are shared objects.
23819 deplibs_check_method=$lt_deplibs_check_method
23821 # Command to use when deplibs_check_method = "file_magic".
23822 file_magic_cmd=$lt_file_magic_cmd
23824 # How to find potential files when deplibs_check_method = "file_magic".
23825 file_magic_glob=$lt_file_magic_glob
23827 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23828 want_nocaseglob=$lt_want_nocaseglob
23830 # DLL creation program.
23831 DLLTOOL=$lt_DLLTOOL
23833 # Command to associate shared and link libraries.
23834 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23836 # The archiver.
23837 AR=$lt_AR
23839 # Flags to create an archive.
23840 AR_FLAGS=$lt_AR_FLAGS
23842 # How to feed a file listing to the archiver.
23843 archiver_list_spec=$lt_archiver_list_spec
23845 # A symbol stripping program.
23846 STRIP=$lt_STRIP
23848 # Commands used to install an old-style archive.
23849 RANLIB=$lt_RANLIB
23850 old_postinstall_cmds=$lt_old_postinstall_cmds
23851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23853 # Whether to use a lock for old archive extraction.
23854 lock_old_archive_extraction=$lock_old_archive_extraction
23856 # A C compiler.
23857 LTCC=$lt_CC
23859 # LTCC compiler flags.
23860 LTCFLAGS=$lt_CFLAGS
23862 # Take the output of nm and produce a listing of raw symbols and C names.
23863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23865 # Transform the output of nm in a proper C declaration.
23866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23868 # Transform the output of nm in a C name address pair.
23869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23871 # Transform the output of nm in a C name address pair when lib prefix is needed.
23872 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23874 # Specify filename containing input files for \$NM.
23875 nm_file_list_spec=$lt_nm_file_list_spec
23877 # The root where to search for dependent libraries,and in which our libraries should be installed.
23878 lt_sysroot=$lt_sysroot
23880 # The name of the directory that contains temporary libtool files.
23881 objdir=$objdir
23883 # Used to examine libraries when file_magic_cmd begins with "file".
23884 MAGIC_CMD=$MAGIC_CMD
23886 # Must we lock files when doing compilation?
23887 need_locks=$lt_need_locks
23889 # Manifest tool.
23890 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23892 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23893 DSYMUTIL=$lt_DSYMUTIL
23895 # Tool to change global to local symbols on Mac OS X.
23896 NMEDIT=$lt_NMEDIT
23898 # Tool to manipulate fat objects and archives on Mac OS X.
23899 LIPO=$lt_LIPO
23901 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23902 OTOOL=$lt_OTOOL
23904 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23905 OTOOL64=$lt_OTOOL64
23907 # Old archive suffix (normally "a").
23908 libext=$libext
23910 # Shared library suffix (normally ".so").
23911 shrext_cmds=$lt_shrext_cmds
23913 # The commands to extract the exported symbol list from a shared archive.
23914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23916 # Variables whose values should be saved in libtool wrapper scripts and
23917 # restored at link time.
23918 variables_saved_for_relink=$lt_variables_saved_for_relink
23920 # Do we need the "lib" prefix for modules?
23921 need_lib_prefix=$need_lib_prefix
23923 # Do we need a version for libraries?
23924 need_version=$need_version
23926 # Library versioning type.
23927 version_type=$version_type
23929 # Shared library runtime path variable.
23930 runpath_var=$runpath_var
23932 # Shared library path variable.
23933 shlibpath_var=$shlibpath_var
23935 # Is shlibpath searched before the hard-coded library search path?
23936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23938 # Format of library name prefix.
23939 libname_spec=$lt_libname_spec
23941 # List of archive names. First name is the real one, the rest are links.
23942 # The last name is the one that the linker finds with -lNAME
23943 library_names_spec=$lt_library_names_spec
23945 # The coded name of the library, if different from the real name.
23946 soname_spec=$lt_soname_spec
23948 # Permission mode override for installation of shared libraries.
23949 install_override_mode=$lt_install_override_mode
23951 # Command to use after installation of a shared archive.
23952 postinstall_cmds=$lt_postinstall_cmds
23954 # Command to use after uninstallation of a shared archive.
23955 postuninstall_cmds=$lt_postuninstall_cmds
23957 # Commands used to finish a libtool library installation in a directory.
23958 finish_cmds=$lt_finish_cmds
23960 # As "finish_cmds", except a single script fragment to be evaled but
23961 # not shown.
23962 finish_eval=$lt_finish_eval
23964 # Whether we should hardcode library paths into libraries.
23965 hardcode_into_libs=$hardcode_into_libs
23967 # Compile-time system search path for libraries.
23968 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23970 # Run-time system search path for libraries.
23971 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23973 # Whether dlopen is supported.
23974 dlopen_support=$enable_dlopen
23976 # Whether dlopen of programs is supported.
23977 dlopen_self=$enable_dlopen_self
23979 # Whether dlopen of statically linked programs is supported.
23980 dlopen_self_static=$enable_dlopen_self_static
23982 # Commands to strip libraries.
23983 old_striplib=$lt_old_striplib
23984 striplib=$lt_striplib
23987 # The linker used to build libraries.
23988 LD=$lt_LD
23990 # How to create reloadable object files.
23991 reload_flag=$lt_reload_flag
23992 reload_cmds=$lt_reload_cmds
23994 # Commands used to build an old-style archive.
23995 old_archive_cmds=$lt_old_archive_cmds
23997 # A language specific compiler.
23998 CC=$lt_compiler
24000 # Is the compiler the GNU compiler?
24001 with_gcc=$GCC
24003 # Compiler flag to turn off builtin functions.
24004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24006 # Additional compiler flags for building library objects.
24007 pic_flag=$lt_lt_prog_compiler_pic
24009 # How to pass a linker flag through the compiler.
24010 wl=$lt_lt_prog_compiler_wl
24012 # Compiler flag to prevent dynamic linking.
24013 link_static_flag=$lt_lt_prog_compiler_static
24015 # Does compiler simultaneously support -c and -o options?
24016 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24018 # Whether or not to add -lc for building shared libraries.
24019 build_libtool_need_lc=$archive_cmds_need_lc
24021 # Whether or not to disallow shared libs when runtime libs are static.
24022 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24024 # Compiler flag to allow reflexive dlopens.
24025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24027 # Compiler flag to generate shared objects directly from archives.
24028 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24030 # Whether the compiler copes with passing no objects directly.
24031 compiler_needs_object=$lt_compiler_needs_object
24033 # Create an old-style archive from a shared archive.
24034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24036 # Create a temporary old-style archive to link instead of a shared archive.
24037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24039 # Commands used to build a shared archive.
24040 archive_cmds=$lt_archive_cmds
24041 archive_expsym_cmds=$lt_archive_expsym_cmds
24043 # Commands used to build a loadable module if different from building
24044 # a shared archive.
24045 module_cmds=$lt_module_cmds
24046 module_expsym_cmds=$lt_module_expsym_cmds
24048 # Whether we are building with GNU ld or not.
24049 with_gnu_ld=$lt_with_gnu_ld
24051 # Flag that allows shared libraries with undefined symbols to be built.
24052 allow_undefined_flag=$lt_allow_undefined_flag
24054 # Flag that enforces no undefined symbols.
24055 no_undefined_flag=$lt_no_undefined_flag
24057 # Flag to hardcode \$libdir into a binary during linking.
24058 # This must work even if \$libdir does not exist
24059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24061 # Whether we need a single "-rpath" flag with a separated argument.
24062 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24064 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24065 # DIR into the resulting binary.
24066 hardcode_direct=$hardcode_direct
24068 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24069 # DIR into the resulting binary and the resulting library dependency is
24070 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24071 # library is relocated.
24072 hardcode_direct_absolute=$hardcode_direct_absolute
24074 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24075 # into the resulting binary.
24076 hardcode_minus_L=$hardcode_minus_L
24078 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24079 # into the resulting binary.
24080 hardcode_shlibpath_var=$hardcode_shlibpath_var
24082 # Set to "yes" if building a shared library automatically hardcodes DIR
24083 # into the library and all subsequent libraries and executables linked
24084 # against it.
24085 hardcode_automatic=$hardcode_automatic
24087 # Set to yes if linker adds runtime paths of dependent libraries
24088 # to runtime path list.
24089 inherit_rpath=$inherit_rpath
24091 # Whether libtool must link a program against all its dependency libraries.
24092 link_all_deplibs=$link_all_deplibs
24094 # Set to "yes" if exported symbols are required.
24095 always_export_symbols=$always_export_symbols
24097 # The commands to list exported symbols.
24098 export_symbols_cmds=$lt_export_symbols_cmds
24100 # Symbols that should not be listed in the preloaded symbols.
24101 exclude_expsyms=$lt_exclude_expsyms
24103 # Symbols that must always be exported.
24104 include_expsyms=$lt_include_expsyms
24106 # Commands necessary for linking programs (against libraries) with templates.
24107 prelink_cmds=$lt_prelink_cmds
24109 # Commands necessary for finishing linking programs.
24110 postlink_cmds=$lt_postlink_cmds
24112 # Specify filename containing input files.
24113 file_list_spec=$lt_file_list_spec
24115 # How to hardcode a shared library path into an executable.
24116 hardcode_action=$hardcode_action
24118 # ### END LIBTOOL CONFIG
24120 _LT_EOF
24122 case $host_os in
24123 aix3*)
24124 cat <<\_LT_EOF >> "$cfgfile"
24125 # AIX sometimes has problems with the GCC collect2 program. For some
24126 # reason, if we set the COLLECT_NAMES environment variable, the problems
24127 # vanish in a puff of smoke.
24128 if test "X${COLLECT_NAMES+set}" != Xset; then
24129 COLLECT_NAMES=
24130 export COLLECT_NAMES
24132 _LT_EOF
24134 esac
24137 ltmain="$ac_aux_dir/ltmain.sh"
24140 # We use sed instead of cat because bash on DJGPP gets confused if
24141 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24142 # text mode, it properly converts lines to CR/LF. This bash problem
24143 # is reportedly fixed, but why not run on old versions too?
24144 sed '$q' "$ltmain" >> "$cfgfile" \
24145 || (rm -f "$cfgfile"; exit 1)
24147 if test x"$xsi_shell" = xyes; then
24148 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24149 func_dirname ()\
24151 \ case ${1} in\
24152 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24153 \ * ) func_dirname_result="${3}" ;;\
24154 \ esac\
24155 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24156 && mv -f "$cfgfile.tmp" "$cfgfile" \
24157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24158 test 0 -eq $? || _lt_function_replace_fail=:
24161 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24162 func_basename ()\
24164 \ func_basename_result="${1##*/}"\
24165 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24166 && mv -f "$cfgfile.tmp" "$cfgfile" \
24167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24168 test 0 -eq $? || _lt_function_replace_fail=:
24171 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24172 func_dirname_and_basename ()\
24174 \ case ${1} in\
24175 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24176 \ * ) func_dirname_result="${3}" ;;\
24177 \ esac\
24178 \ func_basename_result="${1##*/}"\
24179 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24180 && mv -f "$cfgfile.tmp" "$cfgfile" \
24181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24182 test 0 -eq $? || _lt_function_replace_fail=:
24185 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24186 func_stripname ()\
24188 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24189 \ # positional parameters, so assign one to ordinary parameter first.\
24190 \ func_stripname_result=${3}\
24191 \ func_stripname_result=${func_stripname_result#"${1}"}\
24192 \ func_stripname_result=${func_stripname_result%"${2}"}\
24193 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24194 && mv -f "$cfgfile.tmp" "$cfgfile" \
24195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24196 test 0 -eq $? || _lt_function_replace_fail=:
24199 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24200 func_split_long_opt ()\
24202 \ func_split_long_opt_name=${1%%=*}\
24203 \ func_split_long_opt_arg=${1#*=}\
24204 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24205 && mv -f "$cfgfile.tmp" "$cfgfile" \
24206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24207 test 0 -eq $? || _lt_function_replace_fail=:
24210 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24211 func_split_short_opt ()\
24213 \ func_split_short_opt_arg=${1#??}\
24214 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24215 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24216 && mv -f "$cfgfile.tmp" "$cfgfile" \
24217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24218 test 0 -eq $? || _lt_function_replace_fail=:
24221 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24222 func_lo2o ()\
24224 \ case ${1} in\
24225 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24226 \ *) func_lo2o_result=${1} ;;\
24227 \ esac\
24228 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24229 && mv -f "$cfgfile.tmp" "$cfgfile" \
24230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24231 test 0 -eq $? || _lt_function_replace_fail=:
24234 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24235 func_xform ()\
24237 func_xform_result=${1%.*}.lo\
24238 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24239 && mv -f "$cfgfile.tmp" "$cfgfile" \
24240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24241 test 0 -eq $? || _lt_function_replace_fail=:
24244 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24245 func_arith ()\
24247 func_arith_result=$(( $* ))\
24248 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24249 && mv -f "$cfgfile.tmp" "$cfgfile" \
24250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24251 test 0 -eq $? || _lt_function_replace_fail=:
24254 sed -e '/^func_len ()$/,/^} # func_len /c\
24255 func_len ()\
24257 func_len_result=${#1}\
24258 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24259 && mv -f "$cfgfile.tmp" "$cfgfile" \
24260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24261 test 0 -eq $? || _lt_function_replace_fail=:
24265 if test x"$lt_shell_append" = xyes; then
24266 sed -e '/^func_append ()$/,/^} # func_append /c\
24267 func_append ()\
24269 eval "${1}+=\\${2}"\
24270 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24271 && mv -f "$cfgfile.tmp" "$cfgfile" \
24272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24273 test 0 -eq $? || _lt_function_replace_fail=:
24276 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24277 func_append_quoted ()\
24279 \ func_quote_for_eval "${2}"\
24280 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24281 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24282 && mv -f "$cfgfile.tmp" "$cfgfile" \
24283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24284 test 0 -eq $? || _lt_function_replace_fail=:
24287 # Save a `func_append' function call where possible by direct use of '+='
24288 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24289 && mv -f "$cfgfile.tmp" "$cfgfile" \
24290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24291 test 0 -eq $? || _lt_function_replace_fail=:
24292 else
24293 # Save a `func_append' function call even when '+=' is not available
24294 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24295 && mv -f "$cfgfile.tmp" "$cfgfile" \
24296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24297 test 0 -eq $? || _lt_function_replace_fail=:
24300 if test x"$_lt_function_replace_fail" = x":"; then
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24302 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24306 mv -f "$cfgfile" "$ofile" ||
24307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24308 chmod +x "$ofile"
24311 "po-directories":C)
24312 for ac_file in $CONFIG_FILES; do
24313 # Support "outfile[:infile[:infile...]]"
24314 case "$ac_file" in
24315 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24316 esac
24317 # PO directories have a Makefile.in generated from Makefile.in.in.
24318 case "$ac_file" in */Makefile.in)
24319 # Adjust a relative srcdir.
24320 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24321 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24322 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24323 # In autoconf-2.13 it is called $ac_given_srcdir.
24324 # In autoconf-2.50 it is called $srcdir.
24325 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24326 case "$ac_given_srcdir" in
24327 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24328 /*) top_srcdir="$ac_given_srcdir" ;;
24329 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24330 esac
24331 # Treat a directory as a PO directory if and only if it has a
24332 # POTFILES.in file. This allows packages to have multiple PO
24333 # directories under different names or in different locations.
24334 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24335 rm -f "$ac_dir/POTFILES"
24336 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24337 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24338 POMAKEFILEDEPS="POTFILES.in"
24339 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24340 # on $ac_dir but don't depend on user-specified configuration
24341 # parameters.
24342 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24343 # The LINGUAS file contains the set of available languages.
24344 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24345 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24347 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24348 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24349 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24350 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24351 else
24352 # The set of available languages was given in configure.in.
24353 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24354 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24356 # Compute POFILES
24357 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24358 # Compute UPDATEPOFILES
24359 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24360 # Compute DUMMYPOFILES
24361 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24362 # Compute GMOFILES
24363 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24364 case "$ac_given_srcdir" in
24365 .) srcdirpre= ;;
24366 *) srcdirpre='$(srcdir)/' ;;
24367 esac
24368 POFILES=
24369 UPDATEPOFILES=
24370 DUMMYPOFILES=
24371 GMOFILES=
24372 for lang in $ALL_LINGUAS; do
24373 POFILES="$POFILES $srcdirpre$lang.po"
24374 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24375 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24376 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24377 done
24378 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24379 # environment variable.
24380 INST_LINGUAS=
24381 if test -n "$ALL_LINGUAS"; then
24382 for presentlang in $ALL_LINGUAS; do
24383 useit=no
24384 if test "%UNSET%" != "$LINGUAS"; then
24385 desiredlanguages="$LINGUAS"
24386 else
24387 desiredlanguages="$ALL_LINGUAS"
24389 for desiredlang in $desiredlanguages; do
24390 # Use the presentlang catalog if desiredlang is
24391 # a. equal to presentlang, or
24392 # b. a variant of presentlang (because in this case,
24393 # presentlang can be used as a fallback for messages
24394 # which are not translated in the desiredlang catalog).
24395 case "$desiredlang" in
24396 "$presentlang"*) useit=yes;;
24397 esac
24398 done
24399 if test $useit = yes; then
24400 INST_LINGUAS="$INST_LINGUAS $presentlang"
24402 done
24404 CATALOGS=
24405 if test -n "$INST_LINGUAS"; then
24406 for lang in $INST_LINGUAS; do
24407 CATALOGS="$CATALOGS $lang.gmo"
24408 done
24410 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24411 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"
24412 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24413 if test -f "$f"; then
24414 case "$f" in
24415 *.orig | *.bak | *~) ;;
24416 *) cat "$f" >> "$ac_dir/Makefile" ;;
24417 esac
24419 done
24422 esac
24423 done ;;
24425 esac
24426 done # for ac_tag
24429 as_fn_exit 0
24430 _ACEOF
24431 ac_clean_files=$ac_clean_files_save
24433 test $ac_write_fail = 0 ||
24434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24437 # configure is writing to config.log, and then calls config.status.
24438 # config.status does its own redirection, appending to config.log.
24439 # Unfortunately, on DOS this fails, as config.log is still kept open
24440 # by configure, so config.status won't be able to write to it; its
24441 # output is simply discarded. So we exec the FD to /dev/null,
24442 # effectively closing config.log, so it can be properly (re)opened and
24443 # appended to by config.status. When coming back to configure, we
24444 # need to make the FD available again.
24445 if test "$no_create" != yes; then
24446 ac_cs_success=:
24447 ac_config_status_args=
24448 test "$silent" = yes &&
24449 ac_config_status_args="$ac_config_status_args --quiet"
24450 exec 5>/dev/null
24451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24452 exec 5>>config.log
24453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24454 # would make configure fail if this is the last instruction.
24455 $ac_cs_success || as_fn_exit 1
24457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}