* Rewrite support for specific SSL encryption protocols, including
[alpine.git] / configure
blob0f34f07b311e281ecdcf4e462a10e8cf4005a5f9
1 #! /bin/sh
2 # From configure.ac Rev:27 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.9999.
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.9999'
595 PACKAGE_STRING='alpine 2.21.9999'
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 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 ac_ct_AR
700 DLLTOOL
701 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
707 EGREP
708 GREP
710 LIBTOOL
711 LN_S
712 LDFLAGS_FOR_BUILD
713 CPPFLAGS_FOR_BUILD
714 CFLAGS_FOR_BUILD
715 BUILD_OBJEXT
716 BUILD_EXEEXT
717 CPP_FOR_BUILD
718 ac_ct_CC_FOR_BUILD
719 CC_FOR_BUILD
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_maintainer_mode
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_nls
829 enable_rpath
830 with_libiconv_prefix
831 with_libintl_prefix
832 enable_dmalloc
833 with_dmalloc_dir
834 with_date_stamp
835 with_host_stamp
836 with_ps_cmd
837 with_localedir
838 enable_osx_universal_binaries
839 with_include_path
840 with_lib_path
841 with_pubcookie
842 with_web_bin
843 enable_debug
844 enable_optimization
845 enable_mouse
846 enable_quotas
847 enable_from_changing
848 enable_background_post
849 enable_keyboard_lock
850 enable_from_encoding
851 with_smtp_msa
852 with_smtp_msa_flags
853 with_npa
854 with_npa_flags
855 with_password_prog
856 with_simple_spellcheck
857 with_interactive_spellcheck
858 with_system_pinerc
859 with_system_fixed_pinerc
860 with_local_support_info
861 with_mailcheck_interval
862 with_checkpoint_interval
863 with_checkpoint_frequency
864 with_display_rows
865 with_display_columns
866 with_max_display_rows
867 with_max_display_columns
868 with_fill_column
869 with_max_fill_column
870 with_debug_level
871 with_debug_files
872 with_debug_file
873 with_forwarded_keyword
874 with_display_overlap
875 with_display_margin
876 with_default_fcc
877 with_default_save_folder
878 with_default_legacy_postponed_folder
879 with_default_postponed_folder
880 with_default_trash_folder
881 with_default_interrupted_mail
882 with_default_dead_letter_folder
883 with_default_mail_directory
884 with_default_inbox_name
885 with_default_signature_file
886 with_default_elm_style_save
887 with_default_header_in_reply
888 with_default_old_style_reply
889 with_default_use_only_domain_name
890 with_default_save_by_sender
891 with_default_sort_key
892 with_default_addressbook_sort_rule
893 with_default_folder_sort_rule
894 with_default_saved_message_name_rule
895 with_default_fcc_rule
896 with_default_standard_printer
897 with_default_ansi_printer
898 with_default_addressbook
899 with_default_local_fullname
900 with_default_local_address
901 with_default_keyboard_lock_count
902 with_default_remote_addressbook_history
903 with_smime_public_cert_directory
904 with_smime_private_key_directory
905 with_smime_cacert_directory
906 with_default_printer
907 with_passfile
908 with_local_password_cache
909 with_local_password_cache_method
910 with_default_sshpath
911 with_default_sshcmd
912 with_ssl
913 with_ssl_dir
914 with_ssl_certs_dir
915 with_ssl_include_dir
916 with_ssl_lib_dir
917 with_encryption_minimum_version
918 with_encryption_maximum_version
919 with_encryption_range
920 with_krb5
921 with_krb5_dir
922 with_krb5_include_dir
923 with_krb5_lib_dir
924 with_ldap
925 with_ldap_dir
926 with_ldap_include_dir
927 with_ldap_lib_dir
928 with_smime
929 with_tcl
930 with_tcl_lib_dir
931 with_tcl_lib
932 with_tcl_include
933 with_supplied_regex
934 with_pthread
935 with_system_mail_directory
936 with_c_client_target
937 with_ipv6
938 with_ntlm
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
949 LT_SYS_LIBRARY_PATH'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error $? "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures alpine 2.21.9999 to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking ...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 _ACEOF
1558 if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of alpine 2.21.9999:";;
1561 esac
1562 cat <<\_ACEOF
1564 Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-silent-rules less verbose build output (undo: "make V=1")
1569 --disable-silent-rules verbose build output (undo: "make V=0")
1570 --enable-maintainer-mode
1571 enable make rules and dependencies not useful (and
1572 sometimes confusing) to the casual installer
1573 --enable-dependency-tracking
1574 do not reject slow dependency extractors
1575 --disable-dependency-tracking
1576 speeds up one-time build
1577 --enable-shared[=PKGS] build shared libraries [default=yes]
1578 --enable-static[=PKGS] build static libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --disable-nls do not use Native Language Support
1583 --disable-rpath do not hardcode runtime library paths
1584 --enable-dmalloc Enable dmalloc debugging
1585 --enable-osx-universal-binaries
1586 Produce universal binaries under OS X [[default=no]]
1587 --disable-debug Exclude debug messages from source
1588 --disable-optimization Exclude optimizing compiler flags
1589 --disable-mouse Disable mouse support
1590 --enable-quotas Enable disk quota checking on startup
1591 --disable-from-changing Disallow users changing From addresss
1592 --disable-background-post
1593 Disable background posting
1594 --disable-keyboard-lock Disable keyboard locking
1595 --enable-from-encoding Enable From encoding in sent messages
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-aix-soname=aix|svr4|both
1603 shared library versioning (aka "SONAME") variant to
1604 provide on AIX, [default=aix].
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1607 compiler's sysroot if not specified).
1608 --with-gnu-ld assume the C compiler uses GNU ld default=no
1609 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1610 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1611 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1612 --without-libintl-prefix don't search for libintl in includedir and libdir
1613 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1614 --with-date-stamp=DATE Set this as the date this program was built.
1615 Default: output of `date`
1616 --with-host-stamp=HOST Set name of computer for compilation. Default:
1617 output of `hostname`
1618 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1619 /bin/ps auxww
1620 --with-localedir=DIR Name of gettext locale directory
1621 --with-include-path=PATHS
1622 Colon-separated list of directories used for include
1623 file search
1624 --with-lib-path=PATHS Colon-separated list of directories used for library
1625 search
1626 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1627 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1628 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1629 --with-smtp-msa-flags=FLAGS
1630 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1631 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1632 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1633 --with-password-prog=PATH
1634 Password change program (/bin/passwd)
1635 --with-simple-spellcheck=PROG
1636 Spellcheck program reads stdin, emits misspellings
1637 on stdout
1638 --with-interactive-spellcheck=PROG
1639 Interactive, filewise spell checker
1640 --with-system-pinerc=VALUE
1641 System pinerc (/usr/local/lib/pine.conf)
1642 --with-system-fixed-pinerc=VALUE
1643 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1644 --with-local-support-info=VALUE
1645 Local Support Info File (/usr/local/lib/pine.info)
1646 --with-mailcheck-interval=VALUE
1647 Specify default mail-check-interval (150)
1648 --with-checkpoint-interval=VALUE
1649 Specify default checkpoint-interval (420)
1650 --with-checkpoint-frequency=VALUE
1651 State change count before checkpoint (12)
1652 --with-display-rows=VALUE
1653 Initial rows on display (24)
1654 --with-display-columns=VALUE
1655 Initial columns on display (80)
1656 --with-max-display-rows=VALUE
1657 Maximum display rows (200)
1658 --with-max-display-columns=VALUE
1659 Maximum display columns (500)
1660 --with-fill-column=VALUE
1661 Default fill column (74)
1662 --with-max_fill-column=VALUE
1663 Maximum fill column (80)
1664 --with-debug-level=VALUE
1665 Specify default debug verbosity level (2)
1666 --with-debug-files=VALUE
1667 Specify number of debug files (4)
1668 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1669 --with-forwarded-keyword=VALUE
1670 IMAP (c-client) keyword to store forwarded status
1671 ("\$Forwarded")
1672 --with-display-overlap=VALUE
1673 Lines preserved while paging (2)
1674 --with-display-margin=VALUE
1675 Lines visible while scrolling (0)
1676 --with-default-fcc=VALUE
1677 Default sent mail folder (sent-mail)
1678 --with-default-save-folder=VALUE
1679 Default save folder (saved-messages)
1680 --with-default-legacy-postponed-folder=VALUE
1681 Pre Pine 3.90 postponed folder (postponed-mail)
1682 --with-default-postponed-folder=VALUE
1683 Default postponed folder (postponed-msgs)
1684 --with-default-trash-folder=VALUE
1685 Default Trash folder for Web Alpine (Trash)
1686 --with-default-interrupted-mail=VALUE
1687 Default folder for interrupted mail
1688 (.pine-interrupted-mail)
1689 --with-default-dead-letter-folder=VALUE
1690 Default dead letter folder (dead.letter)
1691 --with-default-mail-directory=VALUE
1692 Default mail directory (mail)
1693 --with-default-inbox-name=VALUE
1694 Default inbox name (INBOX)
1695 --with-default-signature-file=VALUE
1696 Default signature file (.signature)
1697 --with-default-elm-style-save=VALUE
1698 Default to Elm style save (no)
1699 --with-default-header-in-reply=VALUE
1700 Include header in reply (no)
1701 --with-default-old-style-reply=VALUE
1702 Default to old style reply (no)
1703 --with-default-use-only-domain-name=VALUE
1704 Default to using only the domain name (no)
1705 --with-default-save-by-sender=VALUE
1706 Default to save by sender (no)
1707 --with-default-sort-key=VALUE
1708 Default sort key (arrival)
1709 --with-default-addressbook-sort-rule=VALUE
1710 Default addressbook sort rule
1711 (fullname-with-lists-last)
1712 --with-default-folder-sort-rule=VALUE
1713 Default folder sort rule (alphabetical)
1714 --with-default-saved-message-name-rule=VALUE
1715 Default saved message name rule (default-folder)
1716 --with-default-fcc-rule=VALUE
1717 Default fcc rule (default-fcc)
1718 --with-default-standard-printer=VALUE
1719 Default standard printern (lpr)
1720 --with-default-ansi-printer=VALUE
1721 ANSI printer definition (attached-to-ansi)
1722 --with-default-addressbook=VALUE
1723 Default addressbook name (.addressbook)
1724 --with-default-local-fullname=VALUE
1725 Default local support fullname ("Local Support")
1726 --with-default-local-address=VALUE
1727 Default local support address (postmaster)
1728 --with-default-keyboard-lock-count=VALUE
1729 Default keyboard lock count (1)
1730 --with-default-remote-addressbook-history=VALUE
1731 Default address book history count (3)
1732 --with-smime-public-cert-directory=VALUE
1733 Default Public Cert Directory (.alpine-smime/public)
1734 --with-smime-private-key-directory=VALUE
1735 Default Private Key Directory
1736 (.alpine-smime/private)
1737 --with-smime-cacert-directory=VALUE
1738 Default Cert Authority Directory (.alpine-smime/ca)
1739 --with-default-printer=VALUE
1740 Default printer (ANSI_PRINTER)
1741 --with-passfile=FILENAME
1742 Password cache file (recommended when S/MIME is
1743 enabled and configured)
1744 --without-local-password-cache
1745 Disable OS-specific password cache, if supported
1746 --with-local-password-cache-method
1747 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1748 Windows=WINCRED)
1749 --with-default-sshpath=FILENAME
1750 set default value of ssh command path (defining
1751 should cause ssh to be preferred to rsh)
1752 --with-default-sshcmd=PERCENT_S_STRING
1753 set default value of ssh command string (usually "%s
1754 %s -l %s exec /etc/r%sd")
1755 --without-ssl Disable SSL support (OpenSSL)
1756 --with-ssl-dir=DIR Root of SSL lib/include path
1757 --with-ssl-certs-dir=DIR
1758 Path to SSL certificate directory
1759 --with-ssl-include-dir=DIR
1760 SSL include file path
1761 --with-ssl-lib-dir=DIR SSL library path
1762 --encryption-minimum-version=VERSION
1763 Minimum SSL encryption version. Default: no_min
1764 --encryption-maximum-version=VERSION
1765 Maximum SSL encryption version. Default: no_max
1766 --with-encryption-range=VALUE
1767 Default Encryption Range ($alpine_RANGE )
1768 --without-krb5 Disable Kerberos support
1769 --with-krb5-dir=DIR Root of Kerberos lib/include path
1770 --with-krb5-include-dir=DIR
1771 Kerberos include file path
1772 --with-krb5-lib-dir=DIR Kerberos library path
1773 --without-ldap Disable LDAP query support
1774 --with-ldap-dir=DIR Root of LDAP lib/include path
1775 --with-ldap-include-dir=DIR
1776 Directory containing LDAP include files
1777 --with-ldap-lib-dir=DIR LDAP library path
1778 --without-smime Disable S/MIME
1779 --without-tcl Disable TCL, thus Web Alpine support
1780 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1781 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1782 --with-tcl-include=DIR Directory containing TCL include files
1783 --with-supplied-regex Use regex library supplied with alpine
1784 --without-pthread Do NOT test for nor build with POSIX thread support
1785 --with-system-mail-directory=DIR
1786 Directory where local mail is delivered
1787 --with-c-client-target=TARGET
1788 IMAP build target (see imap/Makefile)
1789 --without-ipv6 Disable IPv6, primarily to work around resolver
1790 problems
1791 --without-ntlm Disable NTLM client support
1793 Some influential environment variables:
1794 CC C compiler command
1795 CFLAGS C compiler flags
1796 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1797 nonstandard directory <lib dir>
1798 LIBS libraries to pass to the linker, e.g. -l<library>
1799 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1800 you have headers in a nonstandard directory <include dir>
1801 CPP C preprocessor
1802 LT_SYS_LIBRARY_PATH
1803 User-defined run-time library search path.
1805 Use these variables to override the choices made by `configure' or to help
1806 it to find libraries and programs with nonstandard names/locations.
1808 Report bugs to <chappa@washington.edu>.
1809 _ACEOF
1810 ac_status=$?
1813 if test "$ac_init_help" = "recursive"; then
1814 # If there are subdirs, report their specific --help.
1815 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1816 test -d "$ac_dir" ||
1817 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1818 continue
1819 ac_builddir=.
1821 case "$ac_dir" in
1822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1824 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1825 # A ".." for each directory in $ac_dir_suffix.
1826 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1827 case $ac_top_builddir_sub in
1828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 esac ;;
1831 esac
1832 ac_abs_top_builddir=$ac_pwd
1833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1834 # for backward compatibility:
1835 ac_top_builddir=$ac_top_build_prefix
1837 case $srcdir in
1838 .) # We are building in place.
1839 ac_srcdir=.
1840 ac_top_srcdir=$ac_top_builddir_sub
1841 ac_abs_top_srcdir=$ac_pwd ;;
1842 [\\/]* | ?:[\\/]* ) # Absolute name.
1843 ac_srcdir=$srcdir$ac_dir_suffix;
1844 ac_top_srcdir=$srcdir
1845 ac_abs_top_srcdir=$srcdir ;;
1846 *) # Relative name.
1847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1848 ac_top_srcdir=$ac_top_build_prefix$srcdir
1849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1850 esac
1851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1853 cd "$ac_dir" || { ac_status=$?; continue; }
1854 # Check for guested configure.
1855 if test -f "$ac_srcdir/configure.gnu"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1858 elif test -f "$ac_srcdir/configure"; then
1859 echo &&
1860 $SHELL "$ac_srcdir/configure" --help=recursive
1861 else
1862 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1863 fi || ac_status=$?
1864 cd "$ac_pwd" || { ac_status=$?; break; }
1865 done
1868 test -n "$ac_init_help" && exit $ac_status
1869 if $ac_init_version; then
1870 cat <<\_ACEOF
1871 alpine configure 2.21.9999
1872 generated by GNU Autoconf 2.69
1874 Copyright (C) 2012 Free Software Foundation, Inc.
1875 This configure script is free software; the Free Software Foundation
1876 gives unlimited permission to copy, distribute and modify it.
1877 _ACEOF
1878 exit
1881 ## ------------------------ ##
1882 ## Autoconf initialization. ##
1883 ## ------------------------ ##
1885 # ac_fn_c_try_compile LINENO
1886 # --------------------------
1887 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_compile ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext
1892 if { { ac_try="$ac_compile"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_compile") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest.$ac_objext; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_c_try_compile
1923 # ac_fn_c_try_cpp LINENO
1924 # ----------------------
1925 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_cpp ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { { ac_try="$ac_cpp conftest.$ac_ext"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } > conftest.i && {
1945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1946 test ! -s conftest.err
1947 }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 ac_retval=1
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_cpp
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_link ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 test -x conftest$ac_exeext
1988 }; then :
1989 ac_retval=0
1990 else
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 ac_retval=1
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status $ac_retval
2004 } # ac_fn_c_try_link
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$3=yes"
2025 else
2026 eval "$3=no"
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 } # ac_fn_c_check_header_compile
2037 # ac_fn_c_try_run LINENO
2038 # ----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_c_try_run ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>&5
2052 ac_status=$?
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055 { { case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_try") 2>&5
2062 ac_status=$?
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; }; }; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: program exited with status $ac_status" >&5
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2071 ac_retval=$ac_status
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2077 } # ac_fn_c_try_run
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2107 #undef $2
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2124 main ()
2126 return $2 ();
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_func
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------ ##
2217 ## Report this to chappa@washington.edu ##
2218 ## ------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292 # --------------------------------------------
2293 # Tries to find the compile-time value of EXPR in a program that includes
2294 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2295 # computed
2296 ac_fn_c_compute_int ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if test "$cross_compiling" = yes; then
2300 # Depending upon the size, compute the lo and hi bounds.
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 static int test_array [1 - 2 * !(($2) >= 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_lo=0 ac_mid=0
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=$ac_mid; break
2334 else
2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336 if test $ac_lo -le $ac_mid; then
2337 ac_lo= ac_hi=
2338 break
2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 static int test_array [1 - 2 * !(($2) < 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 ac_hi=-1 ac_mid=-1
2361 while :; do
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2373 return 0;
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 ac_lo=$ac_mid; break
2378 else
2379 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380 if test $ac_mid -le $ac_hi; then
2381 ac_lo= ac_hi=
2382 break
2384 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 else
2389 ac_lo= ac_hi=
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 # Binary search between lo and hi bounds.
2395 while test "x$ac_lo" != "x$ac_hi"; do
2396 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2401 main ()
2403 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2404 test_array [0] = 0;
2405 return test_array [0];
2408 return 0;
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412 ac_hi=$ac_mid
2413 else
2414 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 case $ac_lo in #((
2419 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 '') ac_retval=1 ;;
2421 esac
2422 else
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2426 static long int longval () { return $2; }
2427 static unsigned long int ulongval () { return $2; }
2428 #include <stdio.h>
2429 #include <stdlib.h>
2431 main ()
2434 FILE *f = fopen ("conftest.val", "w");
2435 if (! f)
2436 return 1;
2437 if (($2) < 0)
2439 long int i = longval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%ld", i);
2444 else
2446 unsigned long int i = ulongval ();
2447 if (i != ($2))
2448 return 1;
2449 fprintf (f, "%lu", i);
2451 /* Do not output a trailing newline, as this causes \r\n confusion
2452 on some platforms. */
2453 return ferror (f) || fclose (f) != 0;
2456 return 0;
2458 _ACEOF
2459 if ac_fn_c_try_run "$LINENO"; then :
2460 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 else
2462 ac_retval=1
2464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465 conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 rm -f conftest.val
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_c_compute_int
2473 cat >config.log <<_ACEOF
2474 This file contains any messages produced by compilers while
2475 running configure, to aid debugging if configure makes a mistake.
2477 It was created by alpine $as_me 2.21.9999, which was
2478 generated by GNU Autoconf 2.69. Invocation command line was
2480 $ $0 $@
2482 _ACEOF
2483 exec 5>>config.log
2485 cat <<_ASUNAME
2486 ## --------- ##
2487 ## Platform. ##
2488 ## --------- ##
2490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2507 _ASUNAME
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 $as_echo "PATH: $as_dir"
2515 done
2516 IFS=$as_save_IFS
2518 } >&5
2520 cat >&5 <<_ACEOF
2523 ## ----------- ##
2524 ## Core tests. ##
2525 ## ----------- ##
2527 _ACEOF
2530 # Keep a trace of the command line.
2531 # Strip out --no-create and --no-recursion so they do not pile up.
2532 # Strip out --silent because we don't want to record it for future runs.
2533 # Also quote any args containing shell meta-characters.
2534 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_configure_args=
2536 ac_configure_args0=
2537 ac_configure_args1=
2538 ac_must_keep_next=false
2539 for ac_pass in 1 2
2541 for ac_arg
2543 case $ac_arg in
2544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2546 | -silent | --silent | --silen | --sile | --sil)
2547 continue ;;
2548 *\'*)
2549 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 esac
2551 case $ac_pass in
2552 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2554 as_fn_append ac_configure_args1 " '$ac_arg'"
2555 if test $ac_must_keep_next = true; then
2556 ac_must_keep_next=false # Got value, back to normal.
2557 else
2558 case $ac_arg in
2559 *=* | --config-cache | -C | -disable-* | --disable-* \
2560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2562 | -with-* | --with-* | -without-* | --without-* | --x)
2563 case "$ac_configure_args0 " in
2564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565 esac
2567 -* ) ac_must_keep_next=true ;;
2568 esac
2570 as_fn_append ac_configure_args " '$ac_arg'"
2572 esac
2573 done
2574 done
2575 { ac_configure_args0=; unset ac_configure_args0;}
2576 { ac_configure_args1=; unset ac_configure_args1;}
2578 # When interrupted or exit'd, cleanup temporary files, and complete
2579 # config.log. We remove comments because anyway the quotes in there
2580 # would cause problems or look ugly.
2581 # WARNING: Use '\'' to represent an apostrophe within the trap.
2582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2583 trap 'exit_status=$?
2584 # Save into config.log some information that might help in debugging.
2586 echo
2588 $as_echo "## ---------------- ##
2589 ## Cache variables. ##
2590 ## ---------------- ##"
2591 echo
2592 # The following way of writing the cache mishandles newlines in values,
2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595 eval ac_val=\$$ac_var
2596 case $ac_val in #(
2597 *${as_nl}*)
2598 case $ac_var in #(
2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601 esac
2602 case $ac_var in #(
2603 _ | IFS | as_nl) ;; #(
2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605 *) { eval $ac_var=; unset $ac_var;} ;;
2606 esac ;;
2607 esac
2608 done
2609 (set) 2>&1 |
2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611 *${as_nl}ac_space=\ *)
2612 sed -n \
2613 "s/'\''/'\''\\\\'\'''\''/g;
2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615 ;; #(
2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2619 esac |
2620 sort
2622 echo
2624 $as_echo "## ----------------- ##
2625 ## Output variables. ##
2626 ## ----------------- ##"
2627 echo
2628 for ac_var in $ac_subst_vars
2630 eval ac_val=\$$ac_var
2631 case $ac_val in
2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633 esac
2634 $as_echo "$ac_var='\''$ac_val'\''"
2635 done | sort
2636 echo
2638 if test -n "$ac_subst_files"; then
2639 $as_echo "## ------------------- ##
2640 ## File substitutions. ##
2641 ## ------------------- ##"
2642 echo
2643 for ac_var in $ac_subst_files
2645 eval ac_val=\$$ac_var
2646 case $ac_val in
2647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648 esac
2649 $as_echo "$ac_var='\''$ac_val'\''"
2650 done | sort
2651 echo
2654 if test -s confdefs.h; then
2655 $as_echo "## ----------- ##
2656 ## confdefs.h. ##
2657 ## ----------- ##"
2658 echo
2659 cat confdefs.h
2660 echo
2662 test "$ac_signal" != 0 &&
2663 $as_echo "$as_me: caught signal $ac_signal"
2664 $as_echo "$as_me: exit $exit_status"
2665 } >&5
2666 rm -f core *.core core.conftest.* &&
2667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668 exit $exit_status
2670 for ac_signal in 1 2 13 15; do
2671 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 done
2673 ac_signal=0
2675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2676 rm -f -r conftest* confdefs.h
2678 $as_echo "/* confdefs.h */" > confdefs.h
2680 # Predefined preprocessor variables.
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_NAME "$PACKAGE_NAME"
2684 _ACEOF
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688 _ACEOF
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2692 _ACEOF
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_STRING "$PACKAGE_STRING"
2696 _ACEOF
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700 _ACEOF
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_URL "$PACKAGE_URL"
2704 _ACEOF
2707 # Let the site file select an alternate cache file if it wants to.
2708 # Prefer an explicitly selected file to automatically selected ones.
2709 ac_site_file1=NONE
2710 ac_site_file2=NONE
2711 if test -n "$CONFIG_SITE"; then
2712 # We do not want a PATH search for config.site.
2713 case $CONFIG_SITE in #((
2714 -*) ac_site_file1=./$CONFIG_SITE;;
2715 */*) ac_site_file1=$CONFIG_SITE;;
2716 *) ac_site_file1=./$CONFIG_SITE;;
2717 esac
2718 elif test "x$prefix" != xNONE; then
2719 ac_site_file1=$prefix/share/config.site
2720 ac_site_file2=$prefix/etc/config.site
2721 else
2722 ac_site_file1=$ac_default_prefix/share/config.site
2723 ac_site_file2=$ac_default_prefix/etc/config.site
2725 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2727 test "x$ac_site_file" = xNONE && continue
2728 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731 sed 's/^/| /' "$ac_site_file" >&5
2732 . "$ac_site_file" \
2733 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 as_fn_error $? "failed to load site script $ac_site_file
2736 See \`config.log' for more details" "$LINENO" 5; }
2738 done
2740 if test -r "$cache_file"; then
2741 # Some versions of bash will fail to source /dev/null (special files
2742 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2743 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2745 $as_echo "$as_me: loading cache $cache_file" >&6;}
2746 case $cache_file in
2747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2748 *) . "./$cache_file";;
2749 esac
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2753 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754 >$cache_file
2757 gt_needs="$gt_needs "
2758 # Check that the precious variables saved in the cache have kept the same
2759 # value.
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2767 set,)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2771 ,set)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,);;
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x $ac_old_val`
2780 ac_new_val_w=`echo x $ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784 ac_cache_corrupted=:
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2794 fi;;
2795 esac
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2798 case $ac_new_val in
2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2801 esac
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2805 esac
2807 done
2808 if $ac_cache_corrupted; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 ac_config_headers="$ac_config_headers include/config.h"
2831 am__api_version='1.15'
2833 ac_aux_dir=
2834 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2835 if test -f "$ac_dir/install-sh"; then
2836 ac_aux_dir=$ac_dir
2837 ac_install_sh="$ac_aux_dir/install-sh -c"
2838 break
2839 elif test -f "$ac_dir/install.sh"; then
2840 ac_aux_dir=$ac_dir
2841 ac_install_sh="$ac_aux_dir/install.sh -c"
2842 break
2843 elif test -f "$ac_dir/shtool"; then
2844 ac_aux_dir=$ac_dir
2845 ac_install_sh="$ac_aux_dir/shtool install -c"
2846 break
2848 done
2849 if test -z "$ac_aux_dir"; then
2850 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2862 # Find a good install program. We prefer a C program (faster),
2863 # so one script is as good as another. But avoid the broken or
2864 # incompatible versions:
2865 # SysV /etc/install, /usr/sbin/install
2866 # SunOS /usr/etc/install
2867 # IRIX /sbin/install
2868 # AIX /bin/install
2869 # AmigaOS /C/install, which installs bootblocks on floppy discs
2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873 # OS/2's system install, which has a completely different semantic
2874 # ./install, which can be erroneously created by make from ./install.sh.
2875 # Reject install programs that cannot install multiple files.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2878 if test -z "$INSTALL"; then
2879 if ${ac_cv_path_install+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2888 case $as_dir/ in #((
2889 ./ | .// | /[cC]/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2892 /usr/ucb/* ) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2896 # by default.
2897 for ac_prog in ginstall scoinst install; do
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2900 if test $ac_prog = install &&
2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902 # AIX install. It has an incompatible calling convention.
2904 elif test $ac_prog = install &&
2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # program-specific install script used by HP pwplus--don't use.
2908 else
2909 rm -rf conftest.one conftest.two conftest.dir
2910 echo one > conftest.one
2911 echo two > conftest.two
2912 mkdir conftest.dir
2913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2914 test -s conftest.one && test -s conftest.two &&
2915 test -s conftest.dir/conftest.one &&
2916 test -s conftest.dir/conftest.two
2917 then
2918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919 break 3
2923 done
2924 done
2926 esac
2928 done
2929 IFS=$as_save_IFS
2931 rm -rf conftest.one conftest.two conftest.dir
2934 if test "${ac_cv_path_install+set}" = set; then
2935 INSTALL=$ac_cv_path_install
2936 else
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for INSTALL within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 INSTALL=$ac_install_sh
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2945 $as_echo "$INSTALL" >&6; }
2947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948 # It thinks the first close brace ends the variable substitution.
2949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2956 $as_echo_n "checking whether build environment is sane... " >&6; }
2957 # Reject unsafe characters in $srcdir or the absolute working directory
2958 # name. Accept space and tab only in the latter.
2959 am_lf='
2961 case `pwd` in
2962 *[\\\"\#\$\&\'\`$am_lf]*)
2963 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2964 esac
2965 case $srcdir in
2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2967 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2968 esac
2970 # Do 'set' in a subshell so we don't clobber the current shell's
2971 # arguments. Must try -L first in case configure is actually a
2972 # symlink; some systems play weird games with the mod time of symlinks
2973 # (eg FreeBSD returns the mod time of the symlink's containing
2974 # directory).
2975 if (
2976 am_has_slept=no
2977 for am_try in 1 2; do
2978 echo "timestamp, slept: $am_has_slept" > conftest.file
2979 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2980 if test "$*" = "X"; then
2981 # -L didn't work.
2982 set X `ls -t "$srcdir/configure" conftest.file`
2984 if test "$*" != "X $srcdir/configure conftest.file" \
2985 && test "$*" != "X conftest.file $srcdir/configure"; then
2987 # If neither matched, then we have a broken ls. This can happen
2988 # if, for instance, CONFIG_SHELL is bash and it inherits a
2989 # broken ls alias from the environment. This has actually
2990 # happened. Such a system could not be considered "sane".
2991 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2992 alias in your environment" "$LINENO" 5
2994 if test "$2" = conftest.file || test $am_try -eq 2; then
2995 break
2997 # Just in case.
2998 sleep 1
2999 am_has_slept=yes
3000 done
3001 test "$2" = conftest.file
3003 then
3004 # Ok.
3006 else
3007 as_fn_error $? "newly created file is older than distributed files!
3008 Check your system clock" "$LINENO" 5
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 # If we didn't sleep, we still need to ensure time stamps of config.status and
3013 # generated files are strictly newer.
3014 am_sleep_pid=
3015 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3016 ( sleep 1 ) &
3017 am_sleep_pid=$!
3020 rm -f conftest.file
3022 test "$program_prefix" != NONE &&
3023 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3024 # Use a double $ so make ignores it.
3025 test "$program_suffix" != NONE &&
3026 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3027 # Double any \ or $.
3028 # By default was `s,x,x', remove it if useless.
3029 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3030 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3032 # Expand $ac_aux_dir to an absolute path.
3033 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3035 if test x"${MISSING+set}" != xset; then
3036 case $am_aux_dir in
3037 *\ * | *\ *)
3038 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3040 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3041 esac
3043 # Use eval to expand $SHELL
3044 if eval "$MISSING --is-lightweight"; then
3045 am_missing_run="$MISSING "
3046 else
3047 am_missing_run=
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 if test x"${install_sh+set}" != xset; then
3053 case $am_aux_dir in
3054 *\ * | *\ *)
3055 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3057 install_sh="\${SHELL} $am_aux_dir/install-sh"
3058 esac
3061 # Installed binaries are usually stripped using 'strip' when the user
3062 # run "make install-strip". However 'strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the 'STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_STRIP+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$STRIP"; then
3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 STRIP=$ac_cv_prog_STRIP
3095 if test -n "$STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3097 $as_echo "$STRIP" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3105 if test -z "$ac_cv_prog_STRIP"; then
3106 ac_ct_STRIP=$STRIP
3107 # Extract the first word of "strip", so it can be a program name with args.
3108 set dummy strip; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$ac_ct_STRIP"; then
3115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_ac_ct_STRIP="strip"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3128 done
3129 done
3130 IFS=$as_save_IFS
3134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3135 if test -n "$ac_ct_STRIP"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3137 $as_echo "$ac_ct_STRIP" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3143 if test "x$ac_ct_STRIP" = x; then
3144 STRIP=":"
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 STRIP=$ac_ct_STRIP
3154 else
3155 STRIP="$ac_cv_prog_STRIP"
3159 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3162 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3163 if test -z "$MKDIR_P"; then
3164 if ${ac_cv_path_mkdir+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_prog in mkdir gmkdir; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3175 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3176 'mkdir (GNU coreutils) '* | \
3177 'mkdir (coreutils) '* | \
3178 'mkdir (fileutils) '4.1*)
3179 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3180 break 3;;
3181 esac
3182 done
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 test -d ./--version && rmdir ./--version
3190 if test "${ac_cv_path_mkdir+set}" = set; then
3191 MKDIR_P="$ac_cv_path_mkdir -p"
3192 else
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for MKDIR_P within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 MKDIR_P="$ac_install_sh -d"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3201 $as_echo "$MKDIR_P" >&6; }
3203 for ac_prog in gawk mawk nawk awk
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_AWK+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$AWK"; then
3213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_AWK="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3226 done
3227 done
3228 IFS=$as_save_IFS
3232 AWK=$ac_cv_prog_AWK
3233 if test -n "$AWK"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3235 $as_echo "$AWK" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$AWK" && break
3243 done
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3247 set x ${MAKE-make}
3248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3249 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat >conftest.make <<\_ACEOF
3253 SHELL = /bin/sh
3254 all:
3255 @echo '@@@%%%=$(MAKE)=@@@%%%'
3256 _ACEOF
3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259 *@@@%%%=?*=@@@%%%*)
3260 eval ac_cv_prog_make_${ac_make}_set=yes;;
3262 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 esac
3264 rm -f conftest.make
3266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 SET_MAKE=
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 SET_MAKE="MAKE=${MAKE-make}"
3276 rm -rf .tst 2>/dev/null
3277 mkdir .tst 2>/dev/null
3278 if test -d .tst; then
3279 am__leading_dot=.
3280 else
3281 am__leading_dot=_
3283 rmdir .tst 2>/dev/null
3285 # Check whether --enable-silent-rules was given.
3286 if test "${enable_silent_rules+set}" = set; then :
3287 enableval=$enable_silent_rules;
3290 case $enable_silent_rules in # (((
3291 yes) AM_DEFAULT_VERBOSITY=0;;
3292 no) AM_DEFAULT_VERBOSITY=1;;
3293 *) AM_DEFAULT_VERBOSITY=1;;
3294 esac
3295 am_make=${MAKE-make}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3297 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3298 if ${am_cv_make_support_nested_variables+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if $as_echo 'TRUE=$(BAR$(V))
3302 BAR0=false
3303 BAR1=true
3305 am__doit:
3306 @$(TRUE)
3307 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3308 am_cv_make_support_nested_variables=yes
3309 else
3310 am_cv_make_support_nested_variables=no
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3314 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3315 if test $am_cv_make_support_nested_variables = yes; then
3316 AM_V='$(V)'
3317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3318 else
3319 AM_V=$AM_DEFAULT_VERBOSITY
3320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3322 AM_BACKSLASH='\'
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326 # is not polluted with repeated "-I."
3327 am__isrc=' -I$(srcdir)'
3328 # test to see if srcdir already configured
3329 if test -f $srcdir/config.status; then
3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3334 # test whether we have cygpath
3335 if test -z "$CYGPATH_W"; then
3336 if (cygpath --version) >/dev/null 2>/dev/null; then
3337 CYGPATH_W='cygpath -w'
3338 else
3339 CYGPATH_W=echo
3344 # Define the identity of the package.
3345 PACKAGE='alpine'
3346 VERSION='2.21.9999'
3349 cat >>confdefs.h <<_ACEOF
3350 #define PACKAGE "$PACKAGE"
3351 _ACEOF
3354 cat >>confdefs.h <<_ACEOF
3355 #define VERSION "$VERSION"
3356 _ACEOF
3358 # Some tools Automake needs.
3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3374 # For better backward compatibility. To be removed once Automake 1.9.x
3375 # dies out for good. For more background, see:
3376 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3377 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3378 mkdir_p='$(MKDIR_P)'
3380 # We need awk for the "check" target (and possibly the TAP driver). The
3381 # system "awk" is bad on some platforms.
3382 # Always define AMTAR for backward compatibility. Yes, it's still used
3383 # in the wild :-( We should find a proper way to deprecate it ...
3384 AMTAR='$${TAR-tar}'
3387 # We'll loop over all known methods to create a tar archive until one works.
3388 _am_tools='gnutar pax cpio none'
3390 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3397 # POSIX will say in a future version that running "rm -f" with no argument
3398 # is OK; and we want to be able to make that assumption in our Makefile
3399 # recipes. So use an aggressive probe to check that the usage we want is
3400 # actually supported "in the wild" to an acceptable degree.
3401 # See automake bug#10828.
3402 # To make any issue more visible, cause the running configure to be aborted
3403 # by default if the 'rm' program in use doesn't match our expectations; the
3404 # user can still override this though.
3405 if rm -f && rm -fr && rm -rf; then : OK; else
3406 cat >&2 <<'END'
3407 Oops!
3409 Your 'rm' program seems unable to run without file operands specified
3410 on the command line, even when the '-f' option is present. This is contrary
3411 to the behaviour of most rm programs out there, and not conforming with
3412 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3414 Please tell bug-automake@gnu.org about your system, including the value
3415 of your $PATH and any error possibly output before this message. This
3416 can help us improve future automake versions.
3419 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3420 echo 'Configuration will proceed anyway, since you have set the' >&2
3421 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3422 echo >&2
3423 else
3424 cat >&2 <<'END'
3425 Aborting the configuration process, to ensure you take notice of the issue.
3427 You can download and install GNU coreutils to get an 'rm' implementation
3428 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3430 If you want to complete the configuration process using your problematic
3431 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3432 to "yes", and re-run configure.
3435 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3442 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3443 # Check whether --enable-maintainer-mode was given.
3444 if test "${enable_maintainer_mode+set}" = set; then :
3445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3446 else
3447 USE_MAINTAINER_MODE=no
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3451 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3452 if test $USE_MAINTAINER_MODE = yes; then
3453 MAINTAINER_MODE_TRUE=
3454 MAINTAINER_MODE_FALSE='#'
3455 else
3456 MAINTAINER_MODE_TRUE='#'
3457 MAINTAINER_MODE_FALSE=
3460 MAINT=$MAINTAINER_MODE_TRUE
3464 # Make sure we can run config.sub.
3465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3469 $as_echo_n "checking build system type... " >&6; }
3470 if ${ac_cv_build+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_build_alias=$build_alias
3474 test "x$ac_build_alias" = x &&
3475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3476 test "x$ac_build_alias" = x &&
3477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3483 $as_echo "$ac_cv_build" >&6; }
3484 case $ac_cv_build in
3485 *-*-*) ;;
3486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3487 esac
3488 build=$ac_cv_build
3489 ac_save_IFS=$IFS; IFS='-'
3490 set x $ac_cv_build
3491 shift
3492 build_cpu=$1
3493 build_vendor=$2
3494 shift; shift
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3497 build_os=$*
3498 IFS=$ac_save_IFS
3499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3503 $as_echo_n "checking host system type... " >&6; }
3504 if ${ac_cv_host+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test "x$host_alias" = x; then
3508 ac_cv_host=$ac_cv_build
3509 else
3510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3516 $as_echo "$ac_cv_host" >&6; }
3517 case $ac_cv_host in
3518 *-*-*) ;;
3519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3520 esac
3521 host=$ac_cv_host
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_host
3524 shift
3525 host_cpu=$1
3526 host_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 host_os=$*
3531 IFS=$ac_save_IFS
3532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3544 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3546 # start out with intent to build Web Alpine
3547 WEB_BUILD=web/src/alpined.d
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$ac_cv_prog_CC"; then
3595 ac_ct_CC=$CC
3596 # Extract the first word of "gcc", so it can be a program name with args.
3597 set dummy gcc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_ac_ct_CC="gcc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3632 if test "x$ac_ct_CC" = x; then
3633 CC=""
3634 else
3635 case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3643 else
3644 CC="$ac_cv_prog_CC"
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}cc; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3688 if test -z "$CC"; then
3689 # Extract the first word of "cc", so it can be a program name with args.
3690 set dummy cc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 ac_prog_rejected=no
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708 ac_prog_rejected=yes
3709 continue
3711 ac_cv_prog_CC="cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3719 if test $ac_prog_rejected = yes; then
3720 # We found a bogon in the path, so make sure we never use it.
3721 set dummy $ac_cv_prog_CC
3722 shift
3723 if test $# != 0; then
3724 # We chose a different compiler from the bogus one.
3725 # However, it has the same basename, so the bogon will be chosen
3726 # first if we set CC to just the basename; use the full file name.
3727 shift
3728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3744 if test -z "$CC"; then
3745 if test -n "$ac_tool_prefix"; then
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$CC" && break
3786 done
3788 if test -z "$CC"; then
3789 ac_ct_CC=$CC
3790 for ac_prog in cl.exe
3792 # Extract the first word of "$ac_prog", so it can be a program name with args.
3793 set dummy $ac_prog; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_CC"; then
3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_ac_ct_CC="$ac_prog"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820 if test -n "$ac_ct_CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822 $as_echo "$ac_ct_CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3829 test -n "$ac_ct_CC" && break
3830 done
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841 CC=$ac_ct_CC
3848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error $? "no acceptable C compiler found in \$PATH
3851 See \`config.log' for more details" "$LINENO" 5; }
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3855 set X $ac_compile
3856 ac_compiler=$2
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866 ac_status=$?
3867 if test -s conftest.err; then
3868 sed '10a\
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 done
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 ac_clean_files_save=$ac_clean_files
3890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3891 # Try to create an executable without -o first, disregard a.out.
3892 # It will help us diagnose broken compilers, and finding out an intuition
3893 # of exeext.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3895 $as_echo_n "checking whether the C compiler works... " >&6; }
3896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3898 # The possible output files:
3899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3901 ac_rmfiles=
3902 for ac_file in $ac_files
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3907 esac
3908 done
3909 rm -f $ac_rmfiles
3911 if { { ac_try="$ac_link_default"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link_default") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3925 # so that the user can short-circuit this test for compilers unknown to
3926 # Autoconf.
3927 for ac_file in $ac_files ''
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 [ab].out )
3934 # We found the default executable, but exeext='' is most
3935 # certainly right.
3936 break;;
3937 *.* )
3938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3939 then :; else
3940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 # We set ac_cv_exeext here because the later test for it is not
3943 # safe: cross compilers may not add the suffix if given an `-o'
3944 # argument, so we may need to know it at that point already.
3945 # Even if this section looks crufty: it has the advantage of
3946 # actually working.
3947 break;;
3949 break;;
3950 esac
3951 done
3952 test "$ac_cv_exeext" = no && ac_cv_exeext=
3954 else
3955 ac_file=''
3957 if test -z "$ac_file"; then :
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 $as_echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error 77 "C compiler cannot create executables
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972 $as_echo_n "checking for C compiler default output file name... " >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3974 $as_echo "$ac_file" >&6; }
3975 ac_exeext=$ac_cv_exeext
3977 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3978 ac_clean_files=$ac_clean_files_save
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 # `rm'.
3996 for ac_file in conftest.exe conftest conftest.*; do
3997 test -f "$ac_file" || continue
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 break;;
4002 * ) break;;
4003 esac
4004 done
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details" "$LINENO" 5; }
4011 rm -f conftest conftest$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4015 rm -f conftest.$ac_ext
4016 EXEEXT=$ac_cv_exeext
4017 ac_exeext=$EXEEXT
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdio.h>
4022 main ()
4024 FILE *f = fopen ("conftest.out", "w");
4025 return ferror (f) || fclose (f) != 0;
4028 return 0;
4030 _ACEOF
4031 ac_clean_files="$ac_clean_files conftest.out"
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 if test "$cross_compiling" != yes; then
4037 { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 if { ac_try='./conftest$ac_cv_exeext'
4049 { { case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; }; then
4059 cross_compiling=no
4060 else
4061 if test "$cross_compiling" = maybe; then
4062 cross_compiling=yes
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "cannot run C compiled programs.
4067 If you meant to cross compile, use \`--host'.
4068 See \`config.log' for more details" "$LINENO" 5; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4073 $as_echo "$cross_compiling" >&6; }
4075 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4076 ac_clean_files=$ac_clean_files_save
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if ${ac_cv_objext+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details" "$LINENO" 5; }
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if ${ac_cv_c_compiler_gnu+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if ${ac_cv_prog_cc_g+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 main ()
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if ${ac_cv_prog_cc_c89+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 struct stat;
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4346 if ${am_cv_prog_cc_c_o+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4353 main ()
4357 return 0;
4359 _ACEOF
4360 # Make sure it works both with $CC and with simple cc.
4361 # Following AC_PROG_CC_C_O, we do the test twice because some
4362 # compilers refuse to overwrite an existing .o file with -o,
4363 # though they will create one.
4364 am_cv_prog_cc_c_o=yes
4365 for am_i in 1 2; do
4366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } \
4371 && test -f conftest2.$ac_objext; then
4372 : OK
4373 else
4374 am_cv_prog_cc_c_o=no
4375 break
4377 done
4378 rm -f core conftest*
4379 unset am_i
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4382 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4383 if test "$am_cv_prog_cc_c_o" != yes; then
4384 # Losing compiler, so override with the script.
4385 # FIXME: It is wrong to rewrite CC.
4386 # But if we don't then we get into trouble of one sort or another.
4387 # A longer-term fix would be to have automake use am__CC in this case,
4388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4389 CC="$am_aux_dir/compile $CC"
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 DEPDIR="${am__leading_dot}deps"
4399 ac_config_commands="$ac_config_commands depfiles"
4402 am_make=${MAKE-make}
4403 cat > confinc << 'END'
4404 am__doit:
4405 @echo this is the am__doit target
4406 .PHONY: am__doit
4408 # If we don't find an include directive, just comment out the code.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4410 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4411 am__include="#"
4412 am__quote=
4413 _am_result=none
4414 # First try GNU make style include.
4415 echo "include confinc" > confmf
4416 # Ignore all kinds of additional output from 'make'.
4417 case `$am_make -s -f confmf 2> /dev/null` in #(
4418 *the\ am__doit\ target*)
4419 am__include=include
4420 am__quote=
4421 _am_result=GNU
4423 esac
4424 # Now try BSD make style include.
4425 if test "$am__include" = "#"; then
4426 echo '.include "confinc"' > confmf
4427 case `$am_make -s -f confmf 2> /dev/null` in #(
4428 *the\ am__doit\ target*)
4429 am__include=.include
4430 am__quote="\""
4431 _am_result=BSD
4433 esac
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4438 $as_echo "$_am_result" >&6; }
4439 rm -f confinc confmf
4441 # Check whether --enable-dependency-tracking was given.
4442 if test "${enable_dependency_tracking+set}" = set; then :
4443 enableval=$enable_dependency_tracking;
4446 if test "x$enable_dependency_tracking" != xno; then
4447 am_depcomp="$ac_aux_dir/depcomp"
4448 AMDEPBACKSLASH='\'
4449 am__nodep='_no'
4451 if test "x$enable_dependency_tracking" != xno; then
4452 AMDEP_TRUE=
4453 AMDEP_FALSE='#'
4454 else
4455 AMDEP_TRUE='#'
4456 AMDEP_FALSE=
4461 depcc="$CC" am_compiler_list=
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4464 $as_echo_n "checking dependency style of $depcc... " >&6; }
4465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4469 # We make a subdir and do the tests there. Otherwise we can end up
4470 # making bogus files that we don't know about and never remove. For
4471 # instance it was reported that on HP-UX the gcc test will end up
4472 # making a dummy file named 'D' -- because '-MD' means "put the output
4473 # in D".
4474 rm -rf conftest.dir
4475 mkdir conftest.dir
4476 # Copy depcomp to subdir because otherwise we won't find it if we're
4477 # using a relative directory.
4478 cp "$am_depcomp" conftest.dir
4479 cd conftest.dir
4480 # We will build objects and dependencies in a subdirectory because
4481 # it helps to detect inapplicable dependency modes. For instance
4482 # both Tru64's cc and ICC support -MD to output dependencies as a
4483 # side effect of compilation, but ICC will put the dependencies in
4484 # the current directory while Tru64 will put them in the object
4485 # directory.
4486 mkdir sub
4488 am_cv_CC_dependencies_compiler_type=none
4489 if test "$am_compiler_list" = ""; then
4490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 am__universal=false
4493 case " $depcc " in #(
4494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4495 esac
4497 for depmode in $am_compiler_list; do
4498 # Setup a source with many dependencies, because some compilers
4499 # like to wrap large dependency lists on column 80 (with \), and
4500 # we should not choose a depcomp mode which is confused by this.
4502 # We need to recreate these files for each test, as the compiler may
4503 # overwrite some of them when testing with obscure command lines.
4504 # This happens at least with the AIX C compiler.
4505 : > sub/conftest.c
4506 for i in 1 2 3 4 5 6; do
4507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4509 # Solaris 10 /bin/sh.
4510 echo '/* dummy */' > sub/conftst$i.h
4511 done
4512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4515 # mode. It turns out that the SunPro C++ compiler does not properly
4516 # handle '-M -o', and we need to detect this. Also, some Intel
4517 # versions had trouble with output in subdirs.
4518 am__obj=sub/conftest.${OBJEXT-o}
4519 am__minus_obj="-o $am__obj"
4520 case $depmode in
4521 gcc)
4522 # This depmode causes a compiler race in universal mode.
4523 test "$am__universal" = false || continue
4525 nosideeffect)
4526 # After this tag, mechanisms are not by side-effect, so they'll
4527 # only be used when explicitly requested.
4528 if test "x$enable_dependency_tracking" = xyes; then
4529 continue
4530 else
4531 break
4534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4535 # This compiler won't grok '-c -o', but also, the minuso test has
4536 # not run yet. These depmodes are late enough in the game, and
4537 # so weak that their functioning should not be impacted.
4538 am__obj=conftest.${OBJEXT-o}
4539 am__minus_obj=
4541 none) break ;;
4542 esac
4543 if depmode=$depmode \
4544 source=sub/conftest.c object=$am__obj \
4545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4547 >/dev/null 2>conftest.err &&
4548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4552 # icc doesn't choke on unknown options, it will just issue warnings
4553 # or remarks (even with -Werror). So we grep stderr for any message
4554 # that says an option was ignored or not supported.
4555 # When given -MP, icc 7.0 and 7.1 complain thusly:
4556 # icc: Command line warning: ignoring option '-M'; no argument required
4557 # The diagnosis changed in icc 8.0:
4558 # icc: Command line remark: option '-MP' not supported
4559 if (grep 'ignoring option' conftest.err ||
4560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4561 am_cv_CC_dependencies_compiler_type=$depmode
4562 break
4565 done
4567 cd ..
4568 rm -rf conftest.dir
4569 else
4570 am_cv_CC_dependencies_compiler_type=none
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4579 test "x$enable_dependency_tracking" != xno \
4580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4581 am__fastdepCC_TRUE=
4582 am__fastdepCC_FALSE='#'
4583 else
4584 am__fastdepCC_TRUE='#'
4585 am__fastdepCC_FALSE=
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4595 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4596 # On Suns, sometimes $CPP names a directory.
4597 if test -n "$CPP" && test -d "$CPP"; then
4598 CPP=
4600 if test -z "$CPP"; then
4601 if ${ac_cv_prog_CPP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 # Double quotes because CPP needs to be expanded
4605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4607 ac_preproc_ok=false
4608 for ac_c_preproc_warn_flag in '' yes
4610 # Use a header file that comes with gcc, so configuring glibc
4611 # with a fresh cross-compiler works.
4612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4613 # <limits.h> exists even on freestanding compilers.
4614 # On the NeXT, cc -E runs the code through the compiler's parser,
4615 # not just through cpp. "Syntax error" is here to catch this case.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #ifdef __STDC__
4619 # include <limits.h>
4620 #else
4621 # include <assert.h>
4622 #endif
4623 Syntax error
4624 _ACEOF
4625 if ac_fn_c_try_cpp "$LINENO"; then :
4627 else
4628 # Broken: fails on valid input.
4629 continue
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4633 # OK, works on sane cases. Now check whether nonexistent headers
4634 # can be detected and how.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <ac_nonexistent.h>
4638 _ACEOF
4639 if ac_fn_c_try_cpp "$LINENO"; then :
4640 # Broken: success on invalid input.
4641 continue
4642 else
4643 # Passes both tests.
4644 ac_preproc_ok=:
4645 break
4647 rm -f conftest.err conftest.i conftest.$ac_ext
4649 done
4650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4651 rm -f conftest.i conftest.err conftest.$ac_ext
4652 if $ac_preproc_ok; then :
4653 break
4656 done
4657 ac_cv_prog_CPP=$CPP
4660 CPP=$ac_cv_prog_CPP
4661 else
4662 ac_cv_prog_CPP=$CPP
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4665 $as_echo "$CPP" >&6; }
4666 ac_preproc_ok=false
4667 for ac_c_preproc_warn_flag in '' yes
4669 # Use a header file that comes with gcc, so configuring glibc
4670 # with a fresh cross-compiler works.
4671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4672 # <limits.h> exists even on freestanding compilers.
4673 # On the NeXT, cc -E runs the code through the compiler's parser,
4674 # not just through cpp. "Syntax error" is here to catch this case.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #ifdef __STDC__
4678 # include <limits.h>
4679 #else
4680 # include <assert.h>
4681 #endif
4682 Syntax error
4683 _ACEOF
4684 if ac_fn_c_try_cpp "$LINENO"; then :
4686 else
4687 # Broken: fails on valid input.
4688 continue
4690 rm -f conftest.err conftest.i conftest.$ac_ext
4692 # OK, works on sane cases. Now check whether nonexistent headers
4693 # can be detected and how.
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4697 _ACEOF
4698 if ac_fn_c_try_cpp "$LINENO"; then :
4699 # Broken: success on invalid input.
4700 continue
4701 else
4702 # Passes both tests.
4703 ac_preproc_ok=:
4704 break
4706 rm -f conftest.err conftest.i conftest.$ac_ext
4708 done
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.i conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then :
4713 else
4714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4717 See \`config.log' for more details" "$LINENO" 5; }
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 save_cross_compiling=$cross_compiling
4730 save_ac_tool_prefix=$ac_tool_prefix
4731 cross_compiling=no
4732 ac_tool_prefix=
4734 ac_ext=c
4735 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4736 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4737 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'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$CC_FOR_BUILD"; then
4748 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4768 if test -n "$CC_FOR_BUILD"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4770 $as_echo "$CC_FOR_BUILD" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4779 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4780 # Extract the first word of "gcc", so it can be a program name with args.
4781 set dummy gcc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_CC_FOR_BUILD"; then
4788 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4808 if test -n "$ac_ct_CC_FOR_BUILD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4810 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4816 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4817 CC_FOR_BUILD=""
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4827 else
4828 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4831 if test -z "$CC_FOR_BUILD"; then
4832 if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4834 set dummy ${ac_tool_prefix}cc; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$CC_FOR_BUILD"; then
4841 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4861 if test -n "$CC_FOR_BUILD"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4863 $as_echo "$CC_FOR_BUILD" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4872 if test -z "$CC_FOR_BUILD"; then
4873 # Extract the first word of "cc", so it can be a program name with args.
4874 set dummy cc; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$CC_FOR_BUILD"; then
4881 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4882 else
4883 ac_prog_rejected=no
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4892 ac_prog_rejected=yes
4893 continue
4895 ac_cv_prog_CC_FOR_BUILD="cc"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4903 if test $ac_prog_rejected = yes; then
4904 # We found a bogon in the path, so make sure we never use it.
4905 set dummy $ac_cv_prog_CC_FOR_BUILD
4906 shift
4907 if test $# != 0; then
4908 # We chose a different compiler from the bogus one.
4909 # However, it has the same basename, so the bogon will be chosen
4910 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4911 shift
4912 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4917 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4918 if test -n "$CC_FOR_BUILD"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4920 $as_echo "$CC_FOR_BUILD" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4928 if test -z "$CC_FOR_BUILD"; then
4929 if test -n "$ac_tool_prefix"; then
4930 for ac_prog in cl.exe
4932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$CC_FOR_BUILD"; then
4940 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4959 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4960 if test -n "$CC_FOR_BUILD"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4962 $as_echo "$CC_FOR_BUILD" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$CC_FOR_BUILD" && break
4970 done
4972 if test -z "$CC_FOR_BUILD"; then
4973 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4974 for ac_prog in cl.exe
4976 # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$ac_ct_CC_FOR_BUILD"; then
4984 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5004 if test -n "$ac_ct_CC_FOR_BUILD"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5006 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 test -n "$ac_ct_CC_FOR_BUILD" && break
5014 done
5016 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5017 CC_FOR_BUILD=""
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020 yes:)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5022 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5032 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5034 as_fn_error $? "no acceptable C compiler found in \$PATH
5035 See \`config.log' for more details" "$LINENO" 5; }
5037 # Provide some information about the compiler.
5038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5039 set X $ac_build_compile
5040 ac_compiler=$2
5041 for ac_option in --version -v -V -qversion; do
5042 { { ac_try="$ac_compiler $ac_option >&5"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5048 $as_echo "$ac_try_echo"; } >&5
5049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5050 ac_status=$?
5051 if test -s conftest.err; then
5052 sed '10a\
5053 ... rest of stderr output deleted ...
5054 10q' conftest.err >conftest.er1
5055 cat conftest.er1 >&5
5057 rm -f conftest.er1 conftest.err
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }
5060 done
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5064 if ${ac_cv_c_compiler_gnu+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5071 main ()
5073 #ifndef __GNUC__
5074 choke me
5075 #endif
5078 return 0;
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_compiler_gnu=yes
5083 else
5084 ac_compiler_gnu=no
5086 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5092 if test $ac_compiler_gnu = yes; then
5093 GCC=yes
5094 else
5095 GCC=
5097 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5098 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5100 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5101 if ${ac_cv_build_prog_cc_g+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 ac_save_c_werror_flag=$ac_c_werror_flag
5105 ac_c_werror_flag=yes
5106 ac_cv_build_prog_cc_g=no
5107 CFLAGS_FOR_BUILD="-g"
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5112 main ()
5116 return 0;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_cv_build_prog_cc_g=yes
5121 else
5122 CFLAGS_FOR_BUILD=""
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5127 main ()
5131 return 0;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5136 else
5137 ac_c_werror_flag=$ac_save_c_werror_flag
5138 CFLAGS_FOR_BUILD="-g"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_build_prog_cc_g=yes
5153 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5155 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5157 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5158 ac_c_werror_flag=$ac_save_c_werror_flag
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5161 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5162 if test "$ac_test_CFLAGS" = set; then
5163 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5164 elif test $ac_cv_build_prog_cc_g = yes; then
5165 if test "$GCC" = yes; then
5166 CFLAGS_FOR_BUILD="-g -O2"
5167 else
5168 CFLAGS_FOR_BUILD="-g"
5170 else
5171 if test "$GCC" = yes; then
5172 CFLAGS_FOR_BUILD="-O2"
5173 else
5174 CFLAGS_FOR_BUILD=
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5178 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5179 if ${ac_cv_prog_cc_c89+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 ac_cv_prog_cc_c89=no
5183 ac_save_CC=$CC_FOR_BUILD
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <stdarg.h>
5187 #include <stdio.h>
5188 struct stat;
5189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5190 struct buf { int x; };
5191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5192 static char *e (p, i)
5193 char **p;
5194 int i;
5196 return p[i];
5198 static char *f (char * (*g) (char **, int), char **p, ...)
5200 char *s;
5201 va_list v;
5202 va_start (v,p);
5203 s = g (p, va_arg (v,int));
5204 va_end (v);
5205 return s;
5208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5209 function prototypes and stuff, but not '\xHH' hex character constants.
5210 These don't provoke an error unfortunately, instead are silently treated
5211 as 'x'. The following induces an error, until -std is added to get
5212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5213 array size at least. It's necessary to write '\x00'==0 to get something
5214 that's true only with -std. */
5215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5218 inside strings and character constants. */
5219 #define FOO(x) 'x'
5220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5222 int test (int i, double x);
5223 struct s1 {int (*f) (int a);};
5224 struct s2 {int (*f) (double a);};
5225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5226 int argc;
5227 char **argv;
5229 main ()
5231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5233 return 0;
5235 _ACEOF
5236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5239 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_prog_cc_c89=$ac_arg
5243 rm -f core conftest.err conftest.$ac_build_objext
5244 test "x$ac_cv_prog_cc_c89" != "xno" && break
5245 done
5246 rm -f conftest.$ac_ext
5247 CC_FOR_BUILD=$ac_save_CC
5250 # AC_CACHE_VAL
5251 case "x$ac_cv_prog_cc_c89" in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5254 $as_echo "none needed" >&6; } ;;
5255 xno)
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5257 $as_echo "unsupported" >&6; } ;;
5259 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5262 esac
5263 if test "x$ac_cv_prog_cc_c89" != xno; then :
5267 ac_ext=c
5268 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5269 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5270 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'
5271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273 ac_ext=c
5274 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5275 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5276 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'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5279 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5280 if ${am_cv_prog_cc_c_o+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5287 main ()
5291 return 0;
5293 _ACEOF
5294 # Make sure it works both with $CC and with simple cc.
5295 # Following AC_PROG_CC_C_O, we do the test twice because some
5296 # compilers refuse to overwrite an existing .o file with -o,
5297 # though they will create one.
5298 am_cv_prog_cc_c_o=yes
5299 for am_i in 1 2; do
5300 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5301 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } \
5305 && test -f conftest2.$ac_build_objext; then
5306 : OK
5307 else
5308 am_cv_prog_cc_c_o=no
5309 break
5311 done
5312 rm -f core conftest*
5313 unset am_i
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5316 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5317 if test "$am_cv_prog_cc_c_o" != yes; then
5318 # Losing compiler, so override with the script.
5319 # FIXME: It is wrong to rewrite CC.
5320 # But if we don't then we get into trouble of one sort or another.
5321 # A longer-term fix would be to have automake use am__CC in this case,
5322 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5323 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5325 ac_ext=c
5326 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5327 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5328 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'
5329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332 depcc="$CC_FOR_BUILD" am_compiler_list=
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5335 $as_echo_n "checking dependency style of $depcc... " >&6; }
5336 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340 # We make a subdir and do the tests there. Otherwise we can end up
5341 # making bogus files that we don't know about and never remove. For
5342 # instance it was reported that on HP-UX the gcc test will end up
5343 # making a dummy file named 'D' -- because '-MD' means "put the output
5344 # in D".
5345 rm -rf conftest.dir
5346 mkdir conftest.dir
5347 # Copy depcomp to subdir because otherwise we won't find it if we're
5348 # using a relative directory.
5349 cp "$am_depcomp" conftest.dir
5350 cd conftest.dir
5351 # We will build objects and dependencies in a subdirectory because
5352 # it helps to detect inapplicable dependency modes. For instance
5353 # both Tru64's cc and ICC support -MD to output dependencies as a
5354 # side effect of compilation, but ICC will put the dependencies in
5355 # the current directory while Tru64 will put them in the object
5356 # directory.
5357 mkdir sub
5359 am_cv_CC_dependencies_compiler_type=none
5360 if test "$am_compiler_list" = ""; then
5361 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5363 am__universal=false
5364 case " $depcc " in #(
5365 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5366 esac
5368 for depmode in $am_compiler_list; do
5369 # Setup a source with many dependencies, because some compilers
5370 # like to wrap large dependency lists on column 80 (with \), and
5371 # we should not choose a depcomp mode which is confused by this.
5373 # We need to recreate these files for each test, as the compiler may
5374 # overwrite some of them when testing with obscure command lines.
5375 # This happens at least with the AIX C compiler.
5376 : > sub/conftest.c
5377 for i in 1 2 3 4 5 6; do
5378 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5379 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5380 # Solaris 10 /bin/sh.
5381 echo '/* dummy */' > sub/conftst$i.h
5382 done
5383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5385 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5386 # mode. It turns out that the SunPro C++ compiler does not properly
5387 # handle '-M -o', and we need to detect this. Also, some Intel
5388 # versions had trouble with output in subdirs.
5389 am__obj=sub/conftest.${OBJEXT-o}
5390 am__minus_obj="-o $am__obj"
5391 case $depmode in
5392 gcc)
5393 # This depmode causes a compiler race in universal mode.
5394 test "$am__universal" = false || continue
5396 nosideeffect)
5397 # After this tag, mechanisms are not by side-effect, so they'll
5398 # only be used when explicitly requested.
5399 if test "x$enable_dependency_tracking" = xyes; then
5400 continue
5401 else
5402 break
5405 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5406 # This compiler won't grok '-c -o', but also, the minuso test has
5407 # not run yet. These depmodes are late enough in the game, and
5408 # so weak that their functioning should not be impacted.
5409 am__obj=conftest.${OBJEXT-o}
5410 am__minus_obj=
5412 none) break ;;
5413 esac
5414 if depmode=$depmode \
5415 source=sub/conftest.c object=$am__obj \
5416 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5417 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5418 >/dev/null 2>conftest.err &&
5419 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5421 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5423 # icc doesn't choke on unknown options, it will just issue warnings
5424 # or remarks (even with -Werror). So we grep stderr for any message
5425 # that says an option was ignored or not supported.
5426 # When given -MP, icc 7.0 and 7.1 complain thusly:
5427 # icc: Command line warning: ignoring option '-M'; no argument required
5428 # The diagnosis changed in icc 8.0:
5429 # icc: Command line remark: option '-MP' not supported
5430 if (grep 'ignoring option' conftest.err ||
5431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5432 am_cv_CC_dependencies_compiler_type=$depmode
5433 break
5436 done
5438 cd ..
5439 rm -rf conftest.dir
5440 else
5441 am_cv_CC_dependencies_compiler_type=none
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5446 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5450 test "x$enable_dependency_tracking" != xno \
5451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5452 am__fastdepCC_TRUE=
5453 am__fastdepCC_FALSE='#'
5454 else
5455 am__fastdepCC_TRUE='#'
5456 am__fastdepCC_FALSE=
5460 ac_ext=c
5461 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5462 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5463 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'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5467 # On Suns, sometimes $CPP names a directory.
5468 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5469 CPP_FOR_BUILD=
5471 if test -z "$CPP_FOR_BUILD"; then
5472 if ${ac_cv_build_prog_CPP+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 # Double quotes because CPP needs to be expanded
5476 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5478 ac_preproc_ok=false
5479 for ac_c_preproc_warn_flag in '' yes
5481 # Use a header file that comes with gcc, so configuring glibc
5482 # with a fresh cross-compiler works.
5483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5484 # <limits.h> exists even on freestanding compilers.
5485 # On the NeXT, cc -E runs the code through the compiler's parser,
5486 # not just through cpp. "Syntax error" is here to catch this case.
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #ifdef __STDC__
5490 # include <limits.h>
5491 #else
5492 # include <assert.h>
5493 #endif
5494 Syntax error
5495 _ACEOF
5496 if ac_fn_c_try_cpp "$LINENO"; then :
5498 else
5499 # Broken: fails on valid input.
5500 continue
5502 rm -f conftest.err conftest.i conftest.$ac_ext
5504 # OK, works on sane cases. Now check whether nonexistent headers
5505 # can be detected and how.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <ac_nonexistent.h>
5509 _ACEOF
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5511 # Broken: success on invalid input.
5512 continue
5513 else
5514 # Passes both tests.
5515 ac_preproc_ok=:
5516 break
5518 rm -f conftest.err conftest.i conftest.$ac_ext
5520 done
5521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5522 rm -f conftest.i conftest.err conftest.$ac_ext
5523 if $ac_preproc_ok; then :
5524 break
5527 done
5528 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5531 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5532 else
5533 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5536 $as_echo "$CPP_FOR_BUILD" >&6; }
5537 ac_preproc_ok=false
5538 for ac_c_preproc_warn_flag in '' yes
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #ifdef __STDC__
5549 # include <limits.h>
5550 #else
5551 # include <assert.h>
5552 #endif
5553 Syntax error
5554 _ACEOF
5555 if ac_fn_c_try_cpp "$LINENO"; then :
5557 else
5558 # Broken: fails on valid input.
5559 continue
5561 rm -f conftest.err conftest.i conftest.$ac_ext
5563 # OK, works on sane cases. Now check whether nonexistent headers
5564 # can be detected and how.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <ac_nonexistent.h>
5568 _ACEOF
5569 if ac_fn_c_try_cpp "$LINENO"; then :
5570 # Broken: success on invalid input.
5571 continue
5572 else
5573 # Passes both tests.
5574 ac_preproc_ok=:
5575 break
5577 rm -f conftest.err conftest.i conftest.$ac_ext
5579 done
5580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581 rm -f conftest.i conftest.err conftest.$ac_ext
5582 if $ac_preproc_ok; then :
5584 else
5585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5587 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5588 See \`config.log' for more details" "$LINENO" 5; }
5591 ac_ext=c
5592 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5593 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5594 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'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599 ac_tool_prefix=$save_ac_tool_prefix
5600 cross_compiling=$save_cross_compiling
5603 BUILD_EXEEXT=$ac_build_exeext
5604 BUILD_OBJEXT=$ac_build_objext
5606 case $ac_cv_prog_cc_stdc in #(
5607 no) :
5608 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5609 *) :
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5611 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5612 if ${ac_cv_prog_cc_c99+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_cv_prog_cc_c99=no
5616 ac_save_CC=$CC
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <stdarg.h>
5620 #include <stdbool.h>
5621 #include <stdlib.h>
5622 #include <wchar.h>
5623 #include <stdio.h>
5625 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5626 #define debug(...) fprintf (stderr, __VA_ARGS__)
5627 #define showlist(...) puts (#__VA_ARGS__)
5628 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5629 static void
5630 test_varargs_macros (void)
5632 int x = 1234;
5633 int y = 5678;
5634 debug ("Flag");
5635 debug ("X = %d\n", x);
5636 showlist (The first, second, and third items.);
5637 report (x>y, "x is %d but y is %d", x, y);
5640 // Check long long types.
5641 #define BIG64 18446744073709551615ull
5642 #define BIG32 4294967295ul
5643 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5644 #if !BIG_OK
5645 your preprocessor is broken;
5646 #endif
5647 #if BIG_OK
5648 #else
5649 your preprocessor is broken;
5650 #endif
5651 static long long int bignum = -9223372036854775807LL;
5652 static unsigned long long int ubignum = BIG64;
5654 struct incomplete_array
5656 int datasize;
5657 double data[];
5660 struct named_init {
5661 int number;
5662 const wchar_t *name;
5663 double average;
5666 typedef const char *ccp;
5668 static inline int
5669 test_restrict (ccp restrict text)
5671 // See if C++-style comments work.
5672 // Iterate through items via the restricted pointer.
5673 // Also check for declarations in for loops.
5674 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5675 continue;
5676 return 0;
5679 // Check varargs and va_copy.
5680 static void
5681 test_varargs (const char *format, ...)
5683 va_list args;
5684 va_start (args, format);
5685 va_list args_copy;
5686 va_copy (args_copy, args);
5688 const char *str;
5689 int number;
5690 float fnumber;
5692 while (*format)
5694 switch (*format++)
5696 case 's': // string
5697 str = va_arg (args_copy, const char *);
5698 break;
5699 case 'd': // int
5700 number = va_arg (args_copy, int);
5701 break;
5702 case 'f': // float
5703 fnumber = va_arg (args_copy, double);
5704 break;
5705 default:
5706 break;
5709 va_end (args_copy);
5710 va_end (args);
5714 main ()
5717 // Check bool.
5718 _Bool success = false;
5720 // Check restrict.
5721 if (test_restrict ("String literal") == 0)
5722 success = true;
5723 char *restrict newvar = "Another string";
5725 // Check varargs.
5726 test_varargs ("s, d' f .", "string", 65, 34.234);
5727 test_varargs_macros ();
5729 // Check flexible array members.
5730 struct incomplete_array *ia =
5731 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5732 ia->datasize = 10;
5733 for (int i = 0; i < ia->datasize; ++i)
5734 ia->data[i] = i * 1.234;
5736 // Check named initializers.
5737 struct named_init ni = {
5738 .number = 34,
5739 .name = L"Test wide string",
5740 .average = 543.34343,
5743 ni.number = 58;
5745 int dynamic_array[ni.number];
5746 dynamic_array[ni.number - 1] = 543;
5748 // work around unused variable warnings
5749 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5750 || dynamic_array[ni.number - 1] != 543);
5753 return 0;
5755 _ACEOF
5756 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5758 CC="$ac_save_CC $ac_arg"
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_prog_cc_c99=$ac_arg
5762 rm -f core conftest.err conftest.$ac_objext
5763 test "x$ac_cv_prog_cc_c99" != "xno" && break
5764 done
5765 rm -f conftest.$ac_ext
5766 CC=$ac_save_CC
5769 # AC_CACHE_VAL
5770 case "x$ac_cv_prog_cc_c99" in
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5773 $as_echo "none needed" >&6; } ;;
5774 xno)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5776 $as_echo "unsupported" >&6; } ;;
5778 CC="$CC $ac_cv_prog_cc_c99"
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5780 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5781 esac
5782 if test "x$ac_cv_prog_cc_c99" != xno; then :
5783 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5786 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5787 if ${ac_cv_prog_cc_c89+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 ac_cv_prog_cc_c89=no
5791 ac_save_CC=$CC
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <stdarg.h>
5795 #include <stdio.h>
5796 struct stat;
5797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5798 struct buf { int x; };
5799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5800 static char *e (p, i)
5801 char **p;
5802 int i;
5804 return p[i];
5806 static char *f (char * (*g) (char **, int), char **p, ...)
5808 char *s;
5809 va_list v;
5810 va_start (v,p);
5811 s = g (p, va_arg (v,int));
5812 va_end (v);
5813 return s;
5816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5817 function prototypes and stuff, but not '\xHH' hex character constants.
5818 These don't provoke an error unfortunately, instead are silently treated
5819 as 'x'. The following induces an error, until -std is added to get
5820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5821 array size at least. It's necessary to write '\x00'==0 to get something
5822 that's true only with -std. */
5823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5826 inside strings and character constants. */
5827 #define FOO(x) 'x'
5828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5830 int test (int i, double x);
5831 struct s1 {int (*f) (int a);};
5832 struct s2 {int (*f) (double a);};
5833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5834 int argc;
5835 char **argv;
5837 main ()
5839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5841 return 0;
5843 _ACEOF
5844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5847 CC="$ac_save_CC $ac_arg"
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849 ac_cv_prog_cc_c89=$ac_arg
5851 rm -f core conftest.err conftest.$ac_objext
5852 test "x$ac_cv_prog_cc_c89" != "xno" && break
5853 done
5854 rm -f conftest.$ac_ext
5855 CC=$ac_save_CC
5858 # AC_CACHE_VAL
5859 case "x$ac_cv_prog_cc_c89" in
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5862 $as_echo "none needed" >&6; } ;;
5863 xno)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5865 $as_echo "unsupported" >&6; } ;;
5867 CC="$CC $ac_cv_prog_cc_c89"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5870 esac
5871 if test "x$ac_cv_prog_cc_c89" != xno; then :
5872 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5873 else
5874 ac_cv_prog_cc_stdc=no
5879 esac
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5881 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5882 if ${ac_cv_prog_cc_stdc+:} false; then :
5883 $as_echo_n "(cached) " >&6
5886 case $ac_cv_prog_cc_stdc in #(
5887 no) :
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5889 $as_echo "unsupported" >&6; } ;; #(
5890 '') :
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5892 $as_echo "none needed" >&6; } ;; #(
5893 *) :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5895 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5896 esac
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5901 set x ${MAKE-make}
5902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 cat >conftest.make <<\_ACEOF
5907 SHELL = /bin/sh
5908 all:
5909 @echo '@@@%%%=$(MAKE)=@@@%%%'
5910 _ACEOF
5911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5913 *@@@%%%=?*=@@@%%%*)
5914 eval ac_cv_prog_make_${ac_make}_set=yes;;
5916 eval ac_cv_prog_make_${ac_make}_set=no;;
5917 esac
5918 rm -f conftest.make
5920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5922 $as_echo "yes" >&6; }
5923 SET_MAKE=
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 SET_MAKE="MAKE=${MAKE-make}"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5931 $as_echo_n "checking whether ln -s works... " >&6; }
5932 LN_S=$as_ln_s
5933 if test "$LN_S" = "ln -s"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935 $as_echo "yes" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5938 $as_echo "no, using $LN_S" >&6; }
5941 for ac_prog in gawk mawk nawk awk
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_AWK+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$AWK"; then
5951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_AWK="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 AWK=$ac_cv_prog_AWK
5971 if test -n "$AWK"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5973 $as_echo "$AWK" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5980 test -n "$AWK" && break
5981 done
5983 case `pwd` in
5984 *\ * | *\ *)
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5986 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5987 esac
5991 macro_version='2.4.6'
5992 macro_revision='2.4.6'
6006 ltmain=$ac_aux_dir/ltmain.sh
6008 # Backslashify metacharacters that are still active within
6009 # double-quoted strings.
6010 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6012 # Same as above, but do not quote variable references.
6013 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6015 # Sed substitution to delay expansion of an escaped shell variable in a
6016 # double_quote_subst'ed string.
6017 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6019 # Sed substitution to delay expansion of an escaped single quote.
6020 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6022 # Sed substitution to avoid accidental globbing in evaled expressions
6023 no_glob_subst='s/\*/\\\*/g'
6025 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6026 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6027 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6030 $as_echo_n "checking how to print strings... " >&6; }
6031 # Test print first, because it will be a builtin if present.
6032 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6033 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6034 ECHO='print -r --'
6035 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6036 ECHO='printf %s\n'
6037 else
6038 # Use this function as a fallback that always works.
6039 func_fallback_echo ()
6041 eval 'cat <<_LTECHO_EOF
6043 _LTECHO_EOF'
6045 ECHO='func_fallback_echo'
6048 # func_echo_all arg...
6049 # Invoke $ECHO with all args, space-separated.
6050 func_echo_all ()
6052 $ECHO ""
6055 case $ECHO in
6056 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6057 $as_echo "printf" >&6; } ;;
6058 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6059 $as_echo "print -r" >&6; } ;;
6060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6061 $as_echo "cat" >&6; } ;;
6062 esac
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6078 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6079 if ${ac_cv_path_SED+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6083 for ac_i in 1 2 3 4 5 6 7; do
6084 ac_script="$ac_script$as_nl$ac_script"
6085 done
6086 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6087 { ac_script=; unset ac_script;}
6088 if test -z "$SED"; then
6089 ac_path_SED_found=false
6090 # Loop through the user's path and test for each of PROGNAME-LIST
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_prog in sed gsed; do
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6099 as_fn_executable_p "$ac_path_SED" || continue
6100 # Check for GNU ac_path_SED and select it if it is found.
6101 # Check for GNU $ac_path_SED
6102 case `"$ac_path_SED" --version 2>&1` in
6103 *GNU*)
6104 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6106 ac_count=0
6107 $as_echo_n 0123456789 >"conftest.in"
6108 while :
6110 cat "conftest.in" "conftest.in" >"conftest.tmp"
6111 mv "conftest.tmp" "conftest.in"
6112 cp "conftest.in" "conftest.nl"
6113 $as_echo '' >> "conftest.nl"
6114 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6116 as_fn_arith $ac_count + 1 && ac_count=$as_val
6117 if test $ac_count -gt ${ac_path_SED_max-0}; then
6118 # Best one so far, save it but keep looking for a better one
6119 ac_cv_path_SED="$ac_path_SED"
6120 ac_path_SED_max=$ac_count
6122 # 10*(2^10) chars as input seems more than enough
6123 test $ac_count -gt 10 && break
6124 done
6125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 esac
6128 $ac_path_SED_found && break 3
6129 done
6130 done
6131 done
6132 IFS=$as_save_IFS
6133 if test -z "$ac_cv_path_SED"; then
6134 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6136 else
6137 ac_cv_path_SED=$SED
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6142 $as_echo "$ac_cv_path_SED" >&6; }
6143 SED="$ac_cv_path_SED"
6144 rm -f conftest.sed
6146 test -z "$SED" && SED=sed
6147 Xsed="$SED -e 1s/^X//"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6160 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6161 if ${ac_cv_path_GREP+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -z "$GREP"; then
6165 ac_path_GREP_found=false
6166 # Loop through the user's path and test for each of PROGNAME-LIST
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_prog in grep ggrep; do
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6175 as_fn_executable_p "$ac_path_GREP" || continue
6176 # Check for GNU ac_path_GREP and select it if it is found.
6177 # Check for GNU $ac_path_GREP
6178 case `"$ac_path_GREP" --version 2>&1` in
6179 *GNU*)
6180 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6182 ac_count=0
6183 $as_echo_n 0123456789 >"conftest.in"
6184 while :
6186 cat "conftest.in" "conftest.in" >"conftest.tmp"
6187 mv "conftest.tmp" "conftest.in"
6188 cp "conftest.in" "conftest.nl"
6189 $as_echo 'GREP' >> "conftest.nl"
6190 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6192 as_fn_arith $ac_count + 1 && ac_count=$as_val
6193 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6194 # Best one so far, save it but keep looking for a better one
6195 ac_cv_path_GREP="$ac_path_GREP"
6196 ac_path_GREP_max=$ac_count
6198 # 10*(2^10) chars as input seems more than enough
6199 test $ac_count -gt 10 && break
6200 done
6201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6202 esac
6204 $ac_path_GREP_found && break 3
6205 done
6206 done
6207 done
6208 IFS=$as_save_IFS
6209 if test -z "$ac_cv_path_GREP"; then
6210 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6212 else
6213 ac_cv_path_GREP=$GREP
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6218 $as_echo "$ac_cv_path_GREP" >&6; }
6219 GREP="$ac_cv_path_GREP"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6223 $as_echo_n "checking for egrep... " >&6; }
6224 if ${ac_cv_path_EGREP+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6228 then ac_cv_path_EGREP="$GREP -E"
6229 else
6230 if test -z "$EGREP"; then
6231 ac_path_EGREP_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_prog in egrep; do
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6241 as_fn_executable_p "$ac_path_EGREP" || continue
6242 # Check for GNU ac_path_EGREP and select it if it is found.
6243 # Check for GNU $ac_path_EGREP
6244 case `"$ac_path_EGREP" --version 2>&1` in
6245 *GNU*)
6246 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6248 ac_count=0
6249 $as_echo_n 0123456789 >"conftest.in"
6250 while :
6252 cat "conftest.in" "conftest.in" >"conftest.tmp"
6253 mv "conftest.tmp" "conftest.in"
6254 cp "conftest.in" "conftest.nl"
6255 $as_echo 'EGREP' >> "conftest.nl"
6256 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6258 as_fn_arith $ac_count + 1 && ac_count=$as_val
6259 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6260 # Best one so far, save it but keep looking for a better one
6261 ac_cv_path_EGREP="$ac_path_EGREP"
6262 ac_path_EGREP_max=$ac_count
6264 # 10*(2^10) chars as input seems more than enough
6265 test $ac_count -gt 10 && break
6266 done
6267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 esac
6270 $ac_path_EGREP_found && break 3
6271 done
6272 done
6273 done
6274 IFS=$as_save_IFS
6275 if test -z "$ac_cv_path_EGREP"; then
6276 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6278 else
6279 ac_cv_path_EGREP=$EGREP
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6285 $as_echo "$ac_cv_path_EGREP" >&6; }
6286 EGREP="$ac_cv_path_EGREP"
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6290 $as_echo_n "checking for fgrep... " >&6; }
6291 if ${ac_cv_path_FGREP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6295 then ac_cv_path_FGREP="$GREP -F"
6296 else
6297 if test -z "$FGREP"; then
6298 ac_path_FGREP_found=false
6299 # Loop through the user's path and test for each of PROGNAME-LIST
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_prog in fgrep; do
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6308 as_fn_executable_p "$ac_path_FGREP" || continue
6309 # Check for GNU ac_path_FGREP and select it if it is found.
6310 # Check for GNU $ac_path_FGREP
6311 case `"$ac_path_FGREP" --version 2>&1` in
6312 *GNU*)
6313 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6315 ac_count=0
6316 $as_echo_n 0123456789 >"conftest.in"
6317 while :
6319 cat "conftest.in" "conftest.in" >"conftest.tmp"
6320 mv "conftest.tmp" "conftest.in"
6321 cp "conftest.in" "conftest.nl"
6322 $as_echo 'FGREP' >> "conftest.nl"
6323 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6325 as_fn_arith $ac_count + 1 && ac_count=$as_val
6326 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6327 # Best one so far, save it but keep looking for a better one
6328 ac_cv_path_FGREP="$ac_path_FGREP"
6329 ac_path_FGREP_max=$ac_count
6331 # 10*(2^10) chars as input seems more than enough
6332 test $ac_count -gt 10 && break
6333 done
6334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6335 esac
6337 $ac_path_FGREP_found && break 3
6338 done
6339 done
6340 done
6341 IFS=$as_save_IFS
6342 if test -z "$ac_cv_path_FGREP"; then
6343 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6345 else
6346 ac_cv_path_FGREP=$FGREP
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6352 $as_echo "$ac_cv_path_FGREP" >&6; }
6353 FGREP="$ac_cv_path_FGREP"
6356 test -z "$GREP" && GREP=grep
6376 # Check whether --with-gnu-ld was given.
6377 if test "${with_gnu_ld+set}" = set; then :
6378 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6379 else
6380 with_gnu_ld=no
6383 ac_prog=ld
6384 if test yes = "$GCC"; then
6385 # Check if gcc -print-prog-name=ld gives a path.
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6387 $as_echo_n "checking for ld used by $CC... " >&6; }
6388 case $host in
6389 *-*-mingw*)
6390 # gcc leaves a trailing carriage return, which upsets mingw
6391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6394 esac
6395 case $ac_prog in
6396 # Accept absolute paths.
6397 [\\/]* | ?:[\\/]*)
6398 re_direlt='/[^/][^/]*/\.\./'
6399 # Canonicalize the pathname of ld
6400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6403 done
6404 test -z "$LD" && LD=$ac_prog
6407 # If it fails, then pretend we aren't using GCC.
6408 ac_prog=ld
6411 # If it is relative, then search for the first ld in PATH.
6412 with_gnu_ld=unknown
6414 esac
6415 elif test yes = "$with_gnu_ld"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6417 $as_echo_n "checking for GNU ld... " >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6420 $as_echo_n "checking for non-GNU ld... " >&6; }
6422 if ${lt_cv_path_LD+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -z "$LD"; then
6426 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6427 for ac_dir in $PATH; do
6428 IFS=$lt_save_ifs
6429 test -z "$ac_dir" && ac_dir=.
6430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6431 lt_cv_path_LD=$ac_dir/$ac_prog
6432 # Check to see if the program is GNU ld. I'd rather use --version,
6433 # but apparently some variants of GNU ld only accept -v.
6434 # Break only if it was the GNU/non-GNU ld that we prefer.
6435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6436 *GNU* | *'with BFD'*)
6437 test no != "$with_gnu_ld" && break
6440 test yes != "$with_gnu_ld" && break
6442 esac
6444 done
6445 IFS=$lt_save_ifs
6446 else
6447 lt_cv_path_LD=$LD # Let the user override the test with a path.
6451 LD=$lt_cv_path_LD
6452 if test -n "$LD"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6454 $as_echo "$LD" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6459 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6461 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6462 if ${lt_cv_prog_gnu_ld+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6466 case `$LD -v 2>&1 </dev/null` in
6467 *GNU* | *'with BFD'*)
6468 lt_cv_prog_gnu_ld=yes
6471 lt_cv_prog_gnu_ld=no
6473 esac
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6476 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6477 with_gnu_ld=$lt_cv_prog_gnu_ld
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6488 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6489 if ${lt_cv_path_NM+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$NM"; then
6493 # Let the user override the test.
6494 lt_cv_path_NM=$NM
6495 else
6496 lt_nm_to_check=${ac_tool_prefix}nm
6497 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6498 lt_nm_to_check="$lt_nm_to_check nm"
6500 for lt_tmp_nm in $lt_nm_to_check; do
6501 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6502 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6503 IFS=$lt_save_ifs
6504 test -z "$ac_dir" && ac_dir=.
6505 tmp_nm=$ac_dir/$lt_tmp_nm
6506 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6507 # Check to see if the nm accepts a BSD-compat flag.
6508 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6509 # nm: unknown option "B" ignored
6510 # Tru64's nm complains that /dev/null is an invalid object file
6511 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6512 case $build_os in
6513 mingw*) lt_bad_file=conftest.nm/nofile ;;
6514 *) lt_bad_file=/dev/null ;;
6515 esac
6516 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6517 *$lt_bad_file* | *'Invalid file or object type'*)
6518 lt_cv_path_NM="$tmp_nm -B"
6519 break 2
6522 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6523 */dev/null*)
6524 lt_cv_path_NM="$tmp_nm -p"
6525 break 2
6528 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6529 continue # so that we can try to find one that supports BSD flags
6531 esac
6533 esac
6535 done
6536 IFS=$lt_save_ifs
6537 done
6538 : ${lt_cv_path_NM=no}
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6542 $as_echo "$lt_cv_path_NM" >&6; }
6543 if test no != "$lt_cv_path_NM"; then
6544 NM=$lt_cv_path_NM
6545 else
6546 # Didn't find any BSD compatible name lister, look for dumpbin.
6547 if test -n "$DUMPBIN"; then :
6548 # Let the user override the test.
6549 else
6550 if test -n "$ac_tool_prefix"; then
6551 for ac_prog in dumpbin "link -dump"
6553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_DUMPBIN+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$DUMPBIN"; then
6561 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6574 done
6575 done
6576 IFS=$as_save_IFS
6580 DUMPBIN=$ac_cv_prog_DUMPBIN
6581 if test -n "$DUMPBIN"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6583 $as_echo "$DUMPBIN" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6590 test -n "$DUMPBIN" && break
6591 done
6593 if test -z "$DUMPBIN"; then
6594 ac_ct_DUMPBIN=$DUMPBIN
6595 for ac_prog in dumpbin "link -dump"
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$ac_ct_DUMPBIN"; then
6605 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6624 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6625 if test -n "$ac_ct_DUMPBIN"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6627 $as_echo "$ac_ct_DUMPBIN" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6634 test -n "$ac_ct_DUMPBIN" && break
6635 done
6637 if test "x$ac_ct_DUMPBIN" = x; then
6638 DUMPBIN=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 DUMPBIN=$ac_ct_DUMPBIN
6650 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6651 *COFF*)
6652 DUMPBIN="$DUMPBIN -symbols -headers"
6655 DUMPBIN=:
6657 esac
6660 if test : != "$DUMPBIN"; then
6661 NM=$DUMPBIN
6664 test -z "$NM" && NM=nm
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6672 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6673 if ${lt_cv_nm_interface+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 lt_cv_nm_interface="BSD nm"
6677 echo "int some_variable = 0;" > conftest.$ac_ext
6678 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6679 (eval "$ac_compile" 2>conftest.err)
6680 cat conftest.err >&5
6681 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6682 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6683 cat conftest.err >&5
6684 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6685 cat conftest.out >&5
6686 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6687 lt_cv_nm_interface="MS dumpbin"
6689 rm -f conftest*
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6692 $as_echo "$lt_cv_nm_interface" >&6; }
6694 # find the maximum length of command line arguments
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6696 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6697 if ${lt_cv_sys_max_cmd_len+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6701 teststring=ABCD
6703 case $build_os in
6704 msdosdjgpp*)
6705 # On DJGPP, this test can blow up pretty badly due to problems in libc
6706 # (any single argument exceeding 2000 bytes causes a buffer overrun
6707 # during glob expansion). Even if it were fixed, the result of this
6708 # check would be larger than it should be.
6709 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6712 gnu*)
6713 # Under GNU Hurd, this test is not required because there is
6714 # no limit to the length of command line arguments.
6715 # Libtool will interpret -1 as no limit whatsoever
6716 lt_cv_sys_max_cmd_len=-1;
6719 cygwin* | mingw* | cegcc*)
6720 # On Win9x/ME, this test blows up -- it succeeds, but takes
6721 # about 5 minutes as the teststring grows exponentially.
6722 # Worse, since 9x/ME are not pre-emptively multitasking,
6723 # you end up with a "frozen" computer, even though with patience
6724 # the test eventually succeeds (with a max line length of 256k).
6725 # Instead, let's just punt: use the minimum linelength reported by
6726 # all of the supported platforms: 8192 (on NT/2K/XP).
6727 lt_cv_sys_max_cmd_len=8192;
6730 mint*)
6731 # On MiNT this can take a long time and run out of memory.
6732 lt_cv_sys_max_cmd_len=8192;
6735 amigaos*)
6736 # On AmigaOS with pdksh, this test takes hours, literally.
6737 # So we just punt and use a minimum line length of 8192.
6738 lt_cv_sys_max_cmd_len=8192;
6741 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6742 # This has been around since 386BSD, at least. Likely further.
6743 if test -x /sbin/sysctl; then
6744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6745 elif test -x /usr/sbin/sysctl; then
6746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6747 else
6748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6750 # And add a safety zone
6751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6755 interix*)
6756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6757 lt_cv_sys_max_cmd_len=196608
6760 os2*)
6761 # The test takes a long time on OS/2.
6762 lt_cv_sys_max_cmd_len=8192
6765 osf*)
6766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6768 # nice to cause kernel panics so lets avoid the loop below.
6769 # First set a reasonable default.
6770 lt_cv_sys_max_cmd_len=16384
6772 if test -x /sbin/sysconfig; then
6773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6774 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6775 esac
6778 sco3.2v5*)
6779 lt_cv_sys_max_cmd_len=102400
6781 sysv5* | sco5v6* | sysv4.2uw2*)
6782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6783 if test -n "$kargmax"; then
6784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6785 else
6786 lt_cv_sys_max_cmd_len=32768
6790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6791 if test -n "$lt_cv_sys_max_cmd_len" && \
6792 test undefined != "$lt_cv_sys_max_cmd_len"; then
6793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6795 else
6796 # Make teststring a little bigger before we do anything with it.
6797 # a 1K string should be a reasonable start.
6798 for i in 1 2 3 4 5 6 7 8; do
6799 teststring=$teststring$teststring
6800 done
6801 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6802 # If test is not a shell built-in, we'll probably end up computing a
6803 # maximum length that is only half of the actual maximum length, but
6804 # we can't tell.
6805 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6806 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6807 test 17 != "$i" # 1/2 MB should be enough
6809 i=`expr $i + 1`
6810 teststring=$teststring$teststring
6811 done
6812 # Only check the string length outside the loop.
6813 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6814 teststring=
6815 # Add a significant safety factor because C++ compilers can tack on
6816 # massive amounts of additional arguments before passing them to the
6817 # linker. It appears as though 1/2 is a usable value.
6818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6821 esac
6825 if test -n "$lt_cv_sys_max_cmd_len"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6827 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6830 $as_echo "none" >&6; }
6832 max_cmd_len=$lt_cv_sys_max_cmd_len
6839 : ${CP="cp -f"}
6840 : ${MV="mv -f"}
6841 : ${RM="rm -f"}
6843 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6844 lt_unset=unset
6845 else
6846 lt_unset=false
6853 # test EBCDIC or ASCII
6854 case `echo X|tr X '\101'` in
6855 A) # ASCII based system
6856 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6857 lt_SP2NL='tr \040 \012'
6858 lt_NL2SP='tr \015\012 \040\040'
6860 *) # EBCDIC based system
6861 lt_SP2NL='tr \100 \n'
6862 lt_NL2SP='tr \r\n \100\100'
6864 esac
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6875 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6876 if ${lt_cv_to_host_file_cmd+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 case $host in
6880 *-*-mingw* )
6881 case $build in
6882 *-*-mingw* ) # actually msys
6883 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6885 *-*-cygwin* )
6886 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6888 * ) # otherwise, assume *nix
6889 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6891 esac
6893 *-*-cygwin* )
6894 case $build in
6895 *-*-mingw* ) # actually msys
6896 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6898 *-*-cygwin* )
6899 lt_cv_to_host_file_cmd=func_convert_file_noop
6901 * ) # otherwise, assume *nix
6902 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6904 esac
6906 * ) # unhandled hosts (and "normal" native builds)
6907 lt_cv_to_host_file_cmd=func_convert_file_noop
6909 esac
6913 to_host_file_cmd=$lt_cv_to_host_file_cmd
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6915 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6922 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6923 if ${lt_cv_to_tool_file_cmd+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 #assume ordinary cross tools, or native build.
6927 lt_cv_to_tool_file_cmd=func_convert_file_noop
6928 case $host in
6929 *-*-mingw* )
6930 case $build in
6931 *-*-mingw* ) # actually msys
6932 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6934 esac
6936 esac
6940 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6942 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6949 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6950 if ${lt_cv_ld_reload_flag+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 lt_cv_ld_reload_flag='-r'
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6956 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6957 reload_flag=$lt_cv_ld_reload_flag
6958 case $reload_flag in
6959 "" | " "*) ;;
6960 *) reload_flag=" $reload_flag" ;;
6961 esac
6962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6963 case $host_os in
6964 cygwin* | mingw* | pw32* | cegcc*)
6965 if test yes != "$GCC"; then
6966 reload_cmds=false
6969 darwin*)
6970 if test yes = "$GCC"; then
6971 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6972 else
6973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6976 esac
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_OBJDUMP+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$OBJDUMP"; then
6995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7008 done
7009 done
7010 IFS=$as_save_IFS
7014 OBJDUMP=$ac_cv_prog_OBJDUMP
7015 if test -n "$OBJDUMP"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7017 $as_echo "$OBJDUMP" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7025 if test -z "$ac_cv_prog_OBJDUMP"; then
7026 ac_ct_OBJDUMP=$OBJDUMP
7027 # Extract the first word of "objdump", so it can be a program name with args.
7028 set dummy objdump; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$ac_ct_OBJDUMP"; then
7035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7054 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7055 if test -n "$ac_ct_OBJDUMP"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7057 $as_echo "$ac_ct_OBJDUMP" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7063 if test "x$ac_ct_OBJDUMP" = x; then
7064 OBJDUMP="false"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072 OBJDUMP=$ac_ct_OBJDUMP
7074 else
7075 OBJDUMP="$ac_cv_prog_OBJDUMP"
7078 test -z "$OBJDUMP" && OBJDUMP=objdump
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7089 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7090 if ${lt_cv_deplibs_check_method+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 lt_cv_file_magic_cmd='$MAGIC_CMD'
7094 lt_cv_file_magic_test_file=
7095 lt_cv_deplibs_check_method='unknown'
7096 # Need to set the preceding variable on all platforms that support
7097 # interlibrary dependencies.
7098 # 'none' -- dependencies not supported.
7099 # 'unknown' -- same as none, but documents that we really don't know.
7100 # 'pass_all' -- all dependencies passed with no checks.
7101 # 'test_compile' -- check by making test program.
7102 # 'file_magic [[regex]]' -- check by looking for files in library path
7103 # that responds to the $file_magic_cmd with a given extended regex.
7104 # If you have 'file' or equivalent on your system and you're not sure
7105 # whether 'pass_all' will *always* work, you probably want this one.
7107 case $host_os in
7108 aix[4-9]*)
7109 lt_cv_deplibs_check_method=pass_all
7112 beos*)
7113 lt_cv_deplibs_check_method=pass_all
7116 bsdi[45]*)
7117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7118 lt_cv_file_magic_cmd='/usr/bin/file -L'
7119 lt_cv_file_magic_test_file=/shlib/libc.so
7122 cygwin*)
7123 # func_win32_libid is a shell function defined in ltmain.sh
7124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7125 lt_cv_file_magic_cmd='func_win32_libid'
7128 mingw* | pw32*)
7129 # Base MSYS/MinGW do not provide the 'file' command needed by
7130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7131 # unless we find 'file', for example because we are cross-compiling.
7132 if ( file / ) >/dev/null 2>&1; then
7133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7134 lt_cv_file_magic_cmd='func_win32_libid'
7135 else
7136 # Keep this pattern in sync with the one in func_win32_libid.
7137 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7138 lt_cv_file_magic_cmd='$OBJDUMP -f'
7142 cegcc*)
7143 # use the weaker test based on 'objdump'. See mingw*.
7144 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7145 lt_cv_file_magic_cmd='$OBJDUMP -f'
7148 darwin* | rhapsody*)
7149 lt_cv_deplibs_check_method=pass_all
7152 freebsd* | dragonfly*)
7153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7154 case $host_cpu in
7155 i*86 )
7156 # Not sure whether the presence of OpenBSD here was a mistake.
7157 # Let's accept both of them until this is cleared up.
7158 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7159 lt_cv_file_magic_cmd=/usr/bin/file
7160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7162 esac
7163 else
7164 lt_cv_deplibs_check_method=pass_all
7168 haiku*)
7169 lt_cv_deplibs_check_method=pass_all
7172 hpux10.20* | hpux11*)
7173 lt_cv_file_magic_cmd=/usr/bin/file
7174 case $host_cpu in
7175 ia64*)
7176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7177 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7179 hppa*64*)
7180 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]'
7181 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7185 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7187 esac
7190 interix[3-9]*)
7191 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7195 irix5* | irix6* | nonstopux*)
7196 case $LD in
7197 *-32|*"-32 ") libmagic=32-bit;;
7198 *-n32|*"-n32 ") libmagic=N32;;
7199 *-64|*"-64 ") libmagic=64-bit;;
7200 *) libmagic=never-match;;
7201 esac
7202 lt_cv_deplibs_check_method=pass_all
7205 # This must be glibc/ELF.
7206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7207 lt_cv_deplibs_check_method=pass_all
7210 netbsd*)
7211 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7213 else
7214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7218 newos6*)
7219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7220 lt_cv_file_magic_cmd=/usr/bin/file
7221 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7224 *nto* | *qnx*)
7225 lt_cv_deplibs_check_method=pass_all
7228 openbsd* | bitrig*)
7229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7231 else
7232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7236 osf3* | osf4* | osf5*)
7237 lt_cv_deplibs_check_method=pass_all
7240 rdos*)
7241 lt_cv_deplibs_check_method=pass_all
7244 solaris*)
7245 lt_cv_deplibs_check_method=pass_all
7248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7249 lt_cv_deplibs_check_method=pass_all
7252 sysv4 | sysv4.3*)
7253 case $host_vendor in
7254 motorola)
7255 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]'
7256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7258 ncr)
7259 lt_cv_deplibs_check_method=pass_all
7261 sequent)
7262 lt_cv_file_magic_cmd='/bin/file'
7263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7265 sni)
7266 lt_cv_file_magic_cmd='/bin/file'
7267 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7268 lt_cv_file_magic_test_file=/lib/libc.so
7270 siemens)
7271 lt_cv_deplibs_check_method=pass_all
7274 lt_cv_deplibs_check_method=pass_all
7276 esac
7279 tpf*)
7280 lt_cv_deplibs_check_method=pass_all
7282 os2*)
7283 lt_cv_deplibs_check_method=pass_all
7285 esac
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7289 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7291 file_magic_glob=
7292 want_nocaseglob=no
7293 if test "$build" = "$host"; then
7294 case $host_os in
7295 mingw* | pw32*)
7296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7297 want_nocaseglob=yes
7298 else
7299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7302 esac
7305 file_magic_cmd=$lt_cv_file_magic_cmd
7306 deplibs_check_method=$lt_cv_deplibs_check_method
7307 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_DLLTOOL+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$DLLTOOL"; then
7339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7352 done
7353 done
7354 IFS=$as_save_IFS
7358 DLLTOOL=$ac_cv_prog_DLLTOOL
7359 if test -n "$DLLTOOL"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7361 $as_echo "$DLLTOOL" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7369 if test -z "$ac_cv_prog_DLLTOOL"; then
7370 ac_ct_DLLTOOL=$DLLTOOL
7371 # Extract the first word of "dlltool", so it can be a program name with args.
7372 set dummy dlltool; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$ac_ct_DLLTOOL"; then
7379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7392 done
7393 done
7394 IFS=$as_save_IFS
7398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7399 if test -n "$ac_ct_DLLTOOL"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7401 $as_echo "$ac_ct_DLLTOOL" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7407 if test "x$ac_ct_DLLTOOL" = x; then
7408 DLLTOOL="false"
7409 else
7410 case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416 DLLTOOL=$ac_ct_DLLTOOL
7418 else
7419 DLLTOOL="$ac_cv_prog_DLLTOOL"
7422 test -z "$DLLTOOL" && DLLTOOL=dlltool
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7434 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7435 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 lt_cv_sharedlib_from_linklib_cmd='unknown'
7440 case $host_os in
7441 cygwin* | mingw* | pw32* | cegcc*)
7442 # two different shell functions defined in ltmain.sh;
7443 # decide which one to use based on capabilities of $DLLTOOL
7444 case `$DLLTOOL --help 2>&1` in
7445 *--identify-strict*)
7446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7451 esac
7454 # fallback: assume linklib IS sharedlib
7455 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7457 esac
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7461 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7462 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7463 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7472 if test -n "$ac_tool_prefix"; then
7473 for ac_prog in ar
7475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_AR+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$AR"; then
7483 ac_cv_prog_AR="$AR" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7502 AR=$ac_cv_prog_AR
7503 if test -n "$AR"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7505 $as_echo "$AR" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7512 test -n "$AR" && break
7513 done
7515 if test -z "$AR"; then
7516 ac_ct_AR=$AR
7517 for ac_prog in ar
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if test -n "$ac_ct_AR"; then
7527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536 ac_cv_prog_ac_ct_AR="$ac_prog"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7547 if test -n "$ac_ct_AR"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7549 $as_echo "$ac_ct_AR" >&6; }
7550 else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7556 test -n "$ac_ct_AR" && break
7557 done
7559 if test "x$ac_ct_AR" = x; then
7560 AR="false"
7561 else
7562 case $cross_compiling:$ac_tool_warned in
7563 yes:)
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568 AR=$ac_ct_AR
7572 : ${AR=ar}
7573 : ${AR_FLAGS=cru}
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7586 $as_echo_n "checking for archiver @FILE support... " >&6; }
7587 if ${lt_cv_ar_at_file+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 lt_cv_ar_at_file=no
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7595 main ()
7599 return 0;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 echo conftest.$ac_objext > conftest.lst
7604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7606 (eval $lt_ar_try) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }
7610 if test 0 -eq "$ac_status"; then
7611 # Ensure the archiver fails upon bogus file names.
7612 rm -f conftest.$ac_objext libconftest.a
7613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7614 (eval $lt_ar_try) 2>&5
7615 ac_status=$?
7616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617 test $ac_status = 0; }
7618 if test 0 -ne "$ac_status"; then
7619 lt_cv_ar_at_file=@
7622 rm -f conftest.* libconftest.a
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7629 $as_echo "$lt_cv_ar_at_file" >&6; }
7631 if test no = "$lt_cv_ar_at_file"; then
7632 archiver_list_spec=
7633 else
7634 archiver_list_spec=$lt_cv_ar_at_file
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}strip; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_STRIP+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 if test -n "$STRIP"; then
7652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7665 done
7666 done
7667 IFS=$as_save_IFS
7671 STRIP=$ac_cv_prog_STRIP
7672 if test -n "$STRIP"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7674 $as_echo "$STRIP" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7682 if test -z "$ac_cv_prog_STRIP"; then
7683 ac_ct_STRIP=$STRIP
7684 # Extract the first word of "strip", so it can be a program name with args.
7685 set dummy strip; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 if test -n "$ac_ct_STRIP"; then
7692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_ac_ct_STRIP="strip"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7705 done
7706 done
7707 IFS=$as_save_IFS
7711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7712 if test -n "$ac_ct_STRIP"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7714 $as_echo "$ac_ct_STRIP" >&6; }
7715 else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7720 if test "x$ac_ct_STRIP" = x; then
7721 STRIP=":"
7722 else
7723 case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729 STRIP=$ac_ct_STRIP
7731 else
7732 STRIP="$ac_cv_prog_STRIP"
7735 test -z "$STRIP" && STRIP=:
7742 if test -n "$ac_tool_prefix"; then
7743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_RANLIB+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$RANLIB"; then
7751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7770 RANLIB=$ac_cv_prog_RANLIB
7771 if test -n "$RANLIB"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7773 $as_echo "$RANLIB" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7781 if test -z "$ac_cv_prog_RANLIB"; then
7782 ac_ct_RANLIB=$RANLIB
7783 # Extract the first word of "ranlib", so it can be a program name with args.
7784 set dummy ranlib; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$ac_ct_RANLIB"; then
7791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_ac_ct_RANLIB="ranlib"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7811 if test -n "$ac_ct_RANLIB"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7813 $as_echo "$ac_ct_RANLIB" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 if test "x$ac_ct_RANLIB" = x; then
7820 RANLIB=":"
7821 else
7822 case $cross_compiling:$ac_tool_warned in
7823 yes:)
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826 ac_tool_warned=yes ;;
7827 esac
7828 RANLIB=$ac_ct_RANLIB
7830 else
7831 RANLIB="$ac_cv_prog_RANLIB"
7834 test -z "$RANLIB" && RANLIB=:
7841 # Determine commands to create old-style static archives.
7842 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7843 old_postinstall_cmds='chmod 644 $oldlib'
7844 old_postuninstall_cmds=
7846 if test -n "$RANLIB"; then
7847 case $host_os in
7848 bitrig* | openbsd*)
7849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7854 esac
7855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7858 case $host_os in
7859 darwin*)
7860 lock_old_archive_extraction=yes ;;
7862 lock_old_archive_extraction=no ;;
7863 esac
7903 # If no C compiler was specified, use CC.
7904 LTCC=${LTCC-"$CC"}
7906 # If no C compiler flags were specified, use CFLAGS.
7907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7909 # Allow CC to be a program name with arguments.
7910 compiler=$CC
7913 # Check for command to grab the raw symbol name followed by C symbol from nm.
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7915 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7916 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7920 # These are sane defaults that work on at least a few old systems.
7921 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7923 # Character class describing NM global symbol codes.
7924 symcode='[BCDEGRST]'
7926 # Regexp to match symbols that can be accessed directly from C.
7927 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7929 # Define system-specific variables.
7930 case $host_os in
7931 aix*)
7932 symcode='[BCDT]'
7934 cygwin* | mingw* | pw32* | cegcc*)
7935 symcode='[ABCDGISTW]'
7937 hpux*)
7938 if test ia64 = "$host_cpu"; then
7939 symcode='[ABCDEGRST]'
7942 irix* | nonstopux*)
7943 symcode='[BCDEGRST]'
7945 osf*)
7946 symcode='[BCDEGQRST]'
7948 solaris*)
7949 symcode='[BDRT]'
7951 sco3.2v5*)
7952 symcode='[DT]'
7954 sysv4.2uw2*)
7955 symcode='[DT]'
7957 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7958 symcode='[ABDT]'
7960 sysv4)
7961 symcode='[DFNSTU]'
7963 esac
7965 # If we're using GNU nm, then use its standard symbol codes.
7966 case `$NM -V 2>&1` in
7967 *GNU* | *'with BFD'*)
7968 symcode='[ABCDGIRSTW]' ;;
7969 esac
7971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7972 # Gets list of data symbols to import.
7973 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7974 # Adjust the below global symbol transforms to fixup imported variables.
7975 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7976 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7977 lt_c_name_lib_hook="\
7978 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7979 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7980 else
7981 # Disable hooks by default.
7982 lt_cv_sys_global_symbol_to_import=
7983 lt_cdecl_hook=
7984 lt_c_name_hook=
7985 lt_c_name_lib_hook=
7988 # Transform an extracted symbol line into a proper C declaration.
7989 # Some systems (esp. on ia64) link data and code symbols differently,
7990 # so use this general approach.
7991 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7992 $lt_cdecl_hook\
7993 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7994 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7996 # Transform an extracted symbol line into symbol name and symbol address
7997 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7998 $lt_c_name_hook\
7999 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8000 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8002 # Transform an extracted symbol line into symbol name with lib prefix and
8003 # symbol address.
8004 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8005 $lt_c_name_lib_hook\
8006 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8007 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8008 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8010 # Handle CRLF in mingw tool chain
8011 opt_cr=
8012 case $build_os in
8013 mingw*)
8014 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8016 esac
8018 # Try without a prefix underscore, then with it.
8019 for ac_symprfx in "" "_"; do
8021 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8022 symxfrm="\\1 $ac_symprfx\\2 \\2"
8024 # Write the raw and C identifiers.
8025 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8026 # Fake it for dumpbin and say T for any non-static function,
8027 # D for any global variable and I for any imported variable.
8028 # Also find C++ and __fastcall symbols from MSVC++,
8029 # which start with @ or ?.
8030 lt_cv_sys_global_symbol_pipe="$AWK '"\
8031 " {last_section=section; section=\$ 3};"\
8032 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8033 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8034 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8035 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8036 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8037 " \$ 0!~/External *\|/{next};"\
8038 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8039 " {if(hide[section]) next};"\
8040 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8041 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8042 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8043 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8044 " ' prfx=^$ac_symprfx"
8045 else
8046 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8048 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8050 # Check to see that the pipe works correctly.
8051 pipe_works=no
8053 rm -f conftest*
8054 cat > conftest.$ac_ext <<_LT_EOF
8055 #ifdef __cplusplus
8056 extern "C" {
8057 #endif
8058 char nm_test_var;
8059 void nm_test_func(void);
8060 void nm_test_func(void){}
8061 #ifdef __cplusplus
8063 #endif
8064 int main(){nm_test_var='a';nm_test_func();return(0);}
8065 _LT_EOF
8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8068 (eval $ac_compile) 2>&5
8069 ac_status=$?
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }; then
8072 # Now try to grab the symbols.
8073 nlist=conftest.nm
8074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8075 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8076 ac_status=$?
8077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; } && test -s "$nlist"; then
8079 # Try sorting and uniquifying the output.
8080 if sort "$nlist" | uniq > "$nlist"T; then
8081 mv -f "$nlist"T "$nlist"
8082 else
8083 rm -f "$nlist"T
8086 # Make sure that we snagged all the symbols we need.
8087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8089 cat <<_LT_EOF > conftest.$ac_ext
8090 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8091 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8092 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8093 relocations are performed -- see ld's documentation on pseudo-relocs. */
8094 # define LT_DLSYM_CONST
8095 #elif defined __osf__
8096 /* This system does not cope well with relocations in const data. */
8097 # define LT_DLSYM_CONST
8098 #else
8099 # define LT_DLSYM_CONST const
8100 #endif
8102 #ifdef __cplusplus
8103 extern "C" {
8104 #endif
8106 _LT_EOF
8107 # Now generate the symbol file.
8108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8110 cat <<_LT_EOF >> conftest.$ac_ext
8112 /* The mapping between symbol names and symbols. */
8113 LT_DLSYM_CONST struct {
8114 const char *name;
8115 void *address;
8117 lt__PROGRAM__LTX_preloaded_symbols[] =
8119 { "@PROGRAM@", (void *) 0 },
8120 _LT_EOF
8121 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8122 cat <<\_LT_EOF >> conftest.$ac_ext
8123 {0, (void *) 0}
8126 /* This works around a problem in FreeBSD linker */
8127 #ifdef FREEBSD_WORKAROUND
8128 static const void *lt_preloaded_setup() {
8129 return lt__PROGRAM__LTX_preloaded_symbols;
8131 #endif
8133 #ifdef __cplusplus
8135 #endif
8136 _LT_EOF
8137 # Now try linking the two files.
8138 mv conftest.$ac_objext conftstm.$ac_objext
8139 lt_globsym_save_LIBS=$LIBS
8140 lt_globsym_save_CFLAGS=$CFLAGS
8141 LIBS=conftstm.$ac_objext
8142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8144 (eval $ac_link) 2>&5
8145 ac_status=$?
8146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8148 pipe_works=yes
8150 LIBS=$lt_globsym_save_LIBS
8151 CFLAGS=$lt_globsym_save_CFLAGS
8152 else
8153 echo "cannot find nm_test_func in $nlist" >&5
8155 else
8156 echo "cannot find nm_test_var in $nlist" >&5
8158 else
8159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8161 else
8162 echo "$progname: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8165 rm -rf conftest* conftst*
8167 # Do not use the global_symbol_pipe unless it works.
8168 if test yes = "$pipe_works"; then
8169 break
8170 else
8171 lt_cv_sys_global_symbol_pipe=
8173 done
8177 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8178 lt_cv_sys_global_symbol_to_cdecl=
8180 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8182 $as_echo "failed" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8185 $as_echo "ok" >&6; }
8188 # Response file support.
8189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8190 nm_file_list_spec='@'
8191 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8192 nm_file_list_spec='@'
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8232 $as_echo_n "checking for sysroot... " >&6; }
8234 # Check whether --with-sysroot was given.
8235 if test "${with_sysroot+set}" = set; then :
8236 withval=$with_sysroot;
8237 else
8238 with_sysroot=no
8242 lt_sysroot=
8243 case $with_sysroot in #(
8244 yes)
8245 if test yes = "$GCC"; then
8246 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8248 ;; #(
8250 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8251 ;; #(
8252 no|'')
8253 ;; #(
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8256 $as_echo "$with_sysroot" >&6; }
8257 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8259 esac
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8262 $as_echo "${lt_sysroot:-no}" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8269 $as_echo_n "checking for a working dd... " >&6; }
8270 if ${ac_cv_path_lt_DD+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 printf 0123456789abcdef0123456789abcdef >conftest.i
8274 cat conftest.i conftest.i >conftest2.i
8275 : ${lt_DD:=$DD}
8276 if test -z "$lt_DD"; then
8277 ac_path_lt_DD_found=false
8278 # Loop through the user's path and test for each of PROGNAME-LIST
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_prog in dd; do
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8287 as_fn_executable_p "$ac_path_lt_DD" || continue
8288 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8289 cmp -s conftest.i conftest.out \
8290 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8292 $ac_path_lt_DD_found && break 3
8293 done
8294 done
8295 done
8296 IFS=$as_save_IFS
8297 if test -z "$ac_cv_path_lt_DD"; then
8300 else
8301 ac_cv_path_lt_DD=$lt_DD
8304 rm -f conftest.i conftest2.i conftest.out
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8307 $as_echo "$ac_cv_path_lt_DD" >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8311 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8312 if ${lt_cv_truncate_bin+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 printf 0123456789abcdef0123456789abcdef >conftest.i
8316 cat conftest.i conftest.i >conftest2.i
8317 lt_cv_truncate_bin=
8318 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8319 cmp -s conftest.i conftest.out \
8320 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8322 rm -f conftest.i conftest2.i conftest.out
8323 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8326 $as_echo "$lt_cv_truncate_bin" >&6; }
8334 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8335 func_cc_basename ()
8337 for cc_temp in $*""; do
8338 case $cc_temp in
8339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8341 \-*) ;;
8342 *) break;;
8343 esac
8344 done
8345 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8348 # Check whether --enable-libtool-lock was given.
8349 if test "${enable_libtool_lock+set}" = set; then :
8350 enableval=$enable_libtool_lock;
8353 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8355 # Some flags need to be propagated to the compiler or linker for good
8356 # libtool support.
8357 case $host in
8358 ia64-*-hpux*)
8359 # Find out what ABI is being produced by ac_compile, and set mode
8360 # options accordingly.
8361 echo 'int i;' > conftest.$ac_ext
8362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8363 (eval $ac_compile) 2>&5
8364 ac_status=$?
8365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8366 test $ac_status = 0; }; then
8367 case `/usr/bin/file conftest.$ac_objext` in
8368 *ELF-32*)
8369 HPUX_IA64_MODE=32
8371 *ELF-64*)
8372 HPUX_IA64_MODE=64
8374 esac
8376 rm -rf conftest*
8378 *-*-irix6*)
8379 # Find out what ABI is being produced by ac_compile, and set linker
8380 # options accordingly.
8381 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383 (eval $ac_compile) 2>&5
8384 ac_status=$?
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 if test yes = "$lt_cv_prog_gnu_ld"; then
8388 case `/usr/bin/file conftest.$ac_objext` in
8389 *32-bit*)
8390 LD="${LD-ld} -melf32bsmip"
8392 *N32*)
8393 LD="${LD-ld} -melf32bmipn32"
8395 *64-bit*)
8396 LD="${LD-ld} -melf64bmip"
8398 esac
8399 else
8400 case `/usr/bin/file conftest.$ac_objext` in
8401 *32-bit*)
8402 LD="${LD-ld} -32"
8404 *N32*)
8405 LD="${LD-ld} -n32"
8407 *64-bit*)
8408 LD="${LD-ld} -64"
8410 esac
8413 rm -rf conftest*
8416 mips64*-*linux*)
8417 # Find out what ABI is being produced by ac_compile, and set linker
8418 # options accordingly.
8419 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8421 (eval $ac_compile) 2>&5
8422 ac_status=$?
8423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8424 test $ac_status = 0; }; then
8425 emul=elf
8426 case `/usr/bin/file conftest.$ac_objext` in
8427 *32-bit*)
8428 emul="${emul}32"
8430 *64-bit*)
8431 emul="${emul}64"
8433 esac
8434 case `/usr/bin/file conftest.$ac_objext` in
8435 *MSB*)
8436 emul="${emul}btsmip"
8438 *LSB*)
8439 emul="${emul}ltsmip"
8441 esac
8442 case `/usr/bin/file conftest.$ac_objext` in
8443 *N32*)
8444 emul="${emul}n32"
8446 esac
8447 LD="${LD-ld} -m $emul"
8449 rm -rf conftest*
8452 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8453 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8454 # Find out what ABI is being produced by ac_compile, and set linker
8455 # options accordingly. Note that the listed cases only cover the
8456 # situations where additional linker options are needed (such as when
8457 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8458 # vice versa); the common cases where no linker options are needed do
8459 # not appear in the list.
8460 echo 'int i;' > conftest.$ac_ext
8461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8462 (eval $ac_compile) 2>&5
8463 ac_status=$?
8464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465 test $ac_status = 0; }; then
8466 case `/usr/bin/file conftest.o` in
8467 *32-bit*)
8468 case $host in
8469 x86_64-*kfreebsd*-gnu)
8470 LD="${LD-ld} -m elf_i386_fbsd"
8472 x86_64-*linux*)
8473 case `/usr/bin/file conftest.o` in
8474 *x86-64*)
8475 LD="${LD-ld} -m elf32_x86_64"
8478 LD="${LD-ld} -m elf_i386"
8480 esac
8482 powerpc64le-*linux*)
8483 LD="${LD-ld} -m elf32lppclinux"
8485 powerpc64-*linux*)
8486 LD="${LD-ld} -m elf32ppclinux"
8488 s390x-*linux*)
8489 LD="${LD-ld} -m elf_s390"
8491 sparc64-*linux*)
8492 LD="${LD-ld} -m elf32_sparc"
8494 esac
8496 *64-bit*)
8497 case $host in
8498 x86_64-*kfreebsd*-gnu)
8499 LD="${LD-ld} -m elf_x86_64_fbsd"
8501 x86_64-*linux*)
8502 LD="${LD-ld} -m elf_x86_64"
8504 powerpcle-*linux*)
8505 LD="${LD-ld} -m elf64lppc"
8507 powerpc-*linux*)
8508 LD="${LD-ld} -m elf64ppc"
8510 s390*-*linux*|s390*-*tpf*)
8511 LD="${LD-ld} -m elf64_s390"
8513 sparc*-*linux*)
8514 LD="${LD-ld} -m elf64_sparc"
8516 esac
8518 esac
8520 rm -rf conftest*
8523 *-*-sco3.2v5*)
8524 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8525 SAVE_CFLAGS=$CFLAGS
8526 CFLAGS="$CFLAGS -belf"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8528 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8529 if ${lt_cv_cc_needs_belf+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 ac_ext=c
8533 ac_cpp='$CPP $CPPFLAGS'
8534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8542 main ()
8546 return 0;
8548 _ACEOF
8549 if ac_fn_c_try_link "$LINENO"; then :
8550 lt_cv_cc_needs_belf=yes
8551 else
8552 lt_cv_cc_needs_belf=no
8554 rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 ac_ext=c
8557 ac_cpp='$CPP $CPPFLAGS'
8558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8564 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8565 if test yes != "$lt_cv_cc_needs_belf"; then
8566 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8567 CFLAGS=$SAVE_CFLAGS
8570 *-*solaris*)
8571 # Find out what ABI is being produced by ac_compile, and set linker
8572 # options accordingly.
8573 echo 'int i;' > conftest.$ac_ext
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8575 (eval $ac_compile) 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; }; then
8579 case `/usr/bin/file conftest.o` in
8580 *64-bit*)
8581 case $lt_cv_prog_gnu_ld in
8582 yes*)
8583 case $host in
8584 i?86-*-solaris*|x86_64-*-solaris*)
8585 LD="${LD-ld} -m elf_x86_64"
8587 sparc*-*-solaris*)
8588 LD="${LD-ld} -m elf64_sparc"
8590 esac
8591 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8592 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8593 LD=${LD-ld}_sol2
8597 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8598 LD="${LD-ld} -64"
8601 esac
8603 esac
8605 rm -rf conftest*
8607 esac
8609 need_locks=$enable_libtool_lock
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8613 set dummy ${ac_tool_prefix}mt; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$MANIFEST_TOOL"; then
8620 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8633 done
8634 done
8635 IFS=$as_save_IFS
8639 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8640 if test -n "$MANIFEST_TOOL"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8642 $as_echo "$MANIFEST_TOOL" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8650 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8651 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8652 # Extract the first word of "mt", so it can be a program name with args.
8653 set dummy mt; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$ac_ct_MANIFEST_TOOL"; then
8660 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8679 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8680 if test -n "$ac_ct_MANIFEST_TOOL"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8682 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8688 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8689 MANIFEST_TOOL=":"
8690 else
8691 case $cross_compiling:$ac_tool_warned in
8692 yes:)
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695 ac_tool_warned=yes ;;
8696 esac
8697 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8699 else
8700 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8703 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8705 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8706 if ${lt_cv_path_mainfest_tool+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_path_mainfest_tool=no
8710 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8711 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8712 cat conftest.err >&5
8713 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8714 lt_cv_path_mainfest_tool=yes
8716 rm -f conftest*
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8719 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8720 if test yes != "$lt_cv_path_mainfest_tool"; then
8721 MANIFEST_TOOL=:
8729 case $host_os in
8730 rhapsody* | darwin*)
8731 if test -n "$ac_tool_prefix"; then
8732 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8733 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -n "$DSYMUTIL"; then
8740 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8759 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8760 if test -n "$DSYMUTIL"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8762 $as_echo "$DSYMUTIL" >&6; }
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 if test -z "$ac_cv_prog_DSYMUTIL"; then
8771 ac_ct_DSYMUTIL=$DSYMUTIL
8772 # Extract the first word of "dsymutil", so it can be a program name with args.
8773 set dummy dsymutil; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$ac_ct_DSYMUTIL"; then
8780 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8800 if test -n "$ac_ct_DSYMUTIL"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8802 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8808 if test "x$ac_ct_DSYMUTIL" = x; then
8809 DSYMUTIL=":"
8810 else
8811 case $cross_compiling:$ac_tool_warned in
8812 yes:)
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8815 ac_tool_warned=yes ;;
8816 esac
8817 DSYMUTIL=$ac_ct_DSYMUTIL
8819 else
8820 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8823 if test -n "$ac_tool_prefix"; then
8824 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8825 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_NMEDIT+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$NMEDIT"; then
8832 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8845 done
8846 done
8847 IFS=$as_save_IFS
8851 NMEDIT=$ac_cv_prog_NMEDIT
8852 if test -n "$NMEDIT"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8854 $as_echo "$NMEDIT" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8862 if test -z "$ac_cv_prog_NMEDIT"; then
8863 ac_ct_NMEDIT=$NMEDIT
8864 # Extract the first word of "nmedit", so it can be a program name with args.
8865 set dummy nmedit; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 if test -n "$ac_ct_NMEDIT"; then
8872 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 break 2
8885 done
8886 done
8887 IFS=$as_save_IFS
8891 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8892 if test -n "$ac_ct_NMEDIT"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8894 $as_echo "$ac_ct_NMEDIT" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8900 if test "x$ac_ct_NMEDIT" = x; then
8901 NMEDIT=":"
8902 else
8903 case $cross_compiling:$ac_tool_warned in
8904 yes:)
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907 ac_tool_warned=yes ;;
8908 esac
8909 NMEDIT=$ac_ct_NMEDIT
8911 else
8912 NMEDIT="$ac_cv_prog_NMEDIT"
8915 if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8917 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_LIPO+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$LIPO"; then
8924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 LIPO=$ac_cv_prog_LIPO
8944 if test -n "$LIPO"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8946 $as_echo "$LIPO" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8954 if test -z "$ac_cv_prog_LIPO"; then
8955 ac_ct_LIPO=$LIPO
8956 # Extract the first word of "lipo", so it can be a program name with args.
8957 set dummy lipo; ac_word=$2
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 if test -n "$ac_ct_LIPO"; then
8964 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973 ac_cv_prog_ac_ct_LIPO="lipo"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8977 done
8978 done
8979 IFS=$as_save_IFS
8983 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8984 if test -n "$ac_ct_LIPO"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8986 $as_echo "$ac_ct_LIPO" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8992 if test "x$ac_ct_LIPO" = x; then
8993 LIPO=":"
8994 else
8995 case $cross_compiling:$ac_tool_warned in
8996 yes:)
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8999 ac_tool_warned=yes ;;
9000 esac
9001 LIPO=$ac_ct_LIPO
9003 else
9004 LIPO="$ac_cv_prog_LIPO"
9007 if test -n "$ac_tool_prefix"; then
9008 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9009 set dummy ${ac_tool_prefix}otool; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if ${ac_cv_prog_OTOOL+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 if test -n "$OTOOL"; then
9016 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9025 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9035 OTOOL=$ac_cv_prog_OTOOL
9036 if test -n "$OTOOL"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9038 $as_echo "$OTOOL" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9046 if test -z "$ac_cv_prog_OTOOL"; then
9047 ac_ct_OTOOL=$OTOOL
9048 # Extract the first word of "otool", so it can be a program name with args.
9049 set dummy otool; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 if test -n "$ac_ct_OTOOL"; then
9056 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_ac_ct_OTOOL="otool"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9069 done
9070 done
9071 IFS=$as_save_IFS
9075 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9076 if test -n "$ac_ct_OTOOL"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9078 $as_echo "$ac_ct_OTOOL" >&6; }
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9084 if test "x$ac_ct_OTOOL" = x; then
9085 OTOOL=":"
9086 else
9087 case $cross_compiling:$ac_tool_warned in
9088 yes:)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9091 ac_tool_warned=yes ;;
9092 esac
9093 OTOOL=$ac_ct_OTOOL
9095 else
9096 OTOOL="$ac_cv_prog_OTOOL"
9099 if test -n "$ac_tool_prefix"; then
9100 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9101 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_prog_OTOOL64+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 if test -n "$OTOOL64"; then
9108 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9121 done
9122 done
9123 IFS=$as_save_IFS
9127 OTOOL64=$ac_cv_prog_OTOOL64
9128 if test -n "$OTOOL64"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9130 $as_echo "$OTOOL64" >&6; }
9131 else
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9138 if test -z "$ac_cv_prog_OTOOL64"; then
9139 ac_ct_OTOOL64=$OTOOL64
9140 # Extract the first word of "otool64", so it can be a program name with args.
9141 set dummy otool64; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 if test -n "$ac_ct_OTOOL64"; then
9148 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_ac_ct_OTOOL64="otool64"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9161 done
9162 done
9163 IFS=$as_save_IFS
9167 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9168 if test -n "$ac_ct_OTOOL64"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9170 $as_echo "$ac_ct_OTOOL64" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9176 if test "x$ac_ct_OTOOL64" = x; then
9177 OTOOL64=":"
9178 else
9179 case $cross_compiling:$ac_tool_warned in
9180 yes:)
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9183 ac_tool_warned=yes ;;
9184 esac
9185 OTOOL64=$ac_ct_OTOOL64
9187 else
9188 OTOOL64="$ac_cv_prog_OTOOL64"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9218 $as_echo_n "checking for -single_module linker flag... " >&6; }
9219 if ${lt_cv_apple_cc_single_mod+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 lt_cv_apple_cc_single_mod=no
9223 if test -z "$LT_MULTI_MODULE"; then
9224 # By default we will add the -single_module flag. You can override
9225 # by either setting the environment variable LT_MULTI_MODULE
9226 # non-empty at configure time, or by adding -multi_module to the
9227 # link flags.
9228 rm -rf libconftest.dylib*
9229 echo "int foo(void){return 1;}" > conftest.c
9230 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9231 -dynamiclib -Wl,-single_module conftest.c" >&5
9232 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9233 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9234 _lt_result=$?
9235 # If there is a non-empty error log, and "single_module"
9236 # appears in it, assume the flag caused a linker warning
9237 if test -s conftest.err && $GREP single_module conftest.err; then
9238 cat conftest.err >&5
9239 # Otherwise, if the output was created with a 0 exit code from
9240 # the compiler, it worked.
9241 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9242 lt_cv_apple_cc_single_mod=yes
9243 else
9244 cat conftest.err >&5
9246 rm -rf libconftest.dylib*
9247 rm -f conftest.*
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9251 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9254 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9255 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 lt_cv_ld_exported_symbols_list=no
9259 save_LDFLAGS=$LDFLAGS
9260 echo "_main" > conftest.sym
9261 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9266 main ()
9270 return 0;
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 lt_cv_ld_exported_symbols_list=yes
9275 else
9276 lt_cv_ld_exported_symbols_list=no
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LDFLAGS=$save_LDFLAGS
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9284 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9287 $as_echo_n "checking for -force_load linker flag... " >&6; }
9288 if ${lt_cv_ld_force_load+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 lt_cv_ld_force_load=no
9292 cat > conftest.c << _LT_EOF
9293 int forced_loaded() { return 2;}
9294 _LT_EOF
9295 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9296 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9297 echo "$AR cru libconftest.a conftest.o" >&5
9298 $AR cru libconftest.a conftest.o 2>&5
9299 echo "$RANLIB libconftest.a" >&5
9300 $RANLIB libconftest.a 2>&5
9301 cat > conftest.c << _LT_EOF
9302 int main() { return 0;}
9303 _LT_EOF
9304 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9305 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9306 _lt_result=$?
9307 if test -s conftest.err && $GREP force_load conftest.err; then
9308 cat conftest.err >&5
9309 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9310 lt_cv_ld_force_load=yes
9311 else
9312 cat conftest.err >&5
9314 rm -f conftest.err libconftest.a conftest conftest.c
9315 rm -rf conftest.dSYM
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9319 $as_echo "$lt_cv_ld_force_load" >&6; }
9320 case $host_os in
9321 rhapsody* | darwin1.[012])
9322 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9323 darwin1.*)
9324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9325 darwin*) # darwin 5.x on
9326 # if running on 10.5 or later, the deployment target defaults
9327 # to the OS version, if on x86, and 10.4, the deployment
9328 # target defaults to 10.4. Don't you love it?
9329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9330 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9331 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9332 10.[012][,.]*)
9333 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9334 10.*)
9335 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9336 esac
9338 esac
9339 if test yes = "$lt_cv_apple_cc_single_mod"; then
9340 _lt_dar_single_mod='$single_module'
9342 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9343 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9344 else
9345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9347 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9348 _lt_dsymutil='~$DSYMUTIL $lib || :'
9349 else
9350 _lt_dsymutil=
9353 esac
9355 # func_munge_path_list VARIABLE PATH
9356 # -----------------------------------
9357 # VARIABLE is name of variable containing _space_ separated list of
9358 # directories to be munged by the contents of PATH, which is string
9359 # having a format:
9360 # "DIR[:DIR]:"
9361 # string "DIR[ DIR]" will be prepended to VARIABLE
9362 # ":DIR[:DIR]"
9363 # string "DIR[ DIR]" will be appended to VARIABLE
9364 # "DIRP[:DIRP]::[DIRA:]DIRA"
9365 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9366 # "DIRA[ DIRA]" will be appended to VARIABLE
9367 # "DIR[:DIR]"
9368 # VARIABLE will be replaced by "DIR[ DIR]"
9369 func_munge_path_list ()
9371 case x$2 in
9375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9377 x:*)
9378 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9380 *::*)
9381 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9382 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9387 esac
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9392 $as_echo_n "checking for ANSI C header files... " >&6; }
9393 if ${ac_cv_header_stdc+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398 #include <stdlib.h>
9399 #include <stdarg.h>
9400 #include <string.h>
9401 #include <float.h>
9404 main ()
9408 return 0;
9410 _ACEOF
9411 if ac_fn_c_try_compile "$LINENO"; then :
9412 ac_cv_header_stdc=yes
9413 else
9414 ac_cv_header_stdc=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 if test $ac_cv_header_stdc = yes; then
9419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 #include <string.h>
9424 _ACEOF
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426 $EGREP "memchr" >/dev/null 2>&1; then :
9428 else
9429 ac_cv_header_stdc=no
9431 rm -f conftest*
9435 if test $ac_cv_header_stdc = yes; then
9436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 #include <stdlib.h>
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP "free" >/dev/null 2>&1; then :
9445 else
9446 ac_cv_header_stdc=no
9448 rm -f conftest*
9452 if test $ac_cv_header_stdc = yes; then
9453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9454 if test "$cross_compiling" = yes; then :
9456 else
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9459 #include <ctype.h>
9460 #include <stdlib.h>
9461 #if ((' ' & 0x0FF) == 0x020)
9462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9464 #else
9465 # define ISLOWER(c) \
9466 (('a' <= (c) && (c) <= 'i') \
9467 || ('j' <= (c) && (c) <= 'r') \
9468 || ('s' <= (c) && (c) <= 'z'))
9469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9470 #endif
9472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9474 main ()
9476 int i;
9477 for (i = 0; i < 256; i++)
9478 if (XOR (islower (i), ISLOWER (i))
9479 || toupper (i) != TOUPPER (i))
9480 return 2;
9481 return 0;
9483 _ACEOF
9484 if ac_fn_c_try_run "$LINENO"; then :
9486 else
9487 ac_cv_header_stdc=no
9489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9490 conftest.$ac_objext conftest.beam conftest.$ac_ext
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9496 $as_echo "$ac_cv_header_stdc" >&6; }
9497 if test $ac_cv_header_stdc = yes; then
9499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9505 inttypes.h stdint.h unistd.h
9506 do :
9507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9511 cat >>confdefs.h <<_ACEOF
9512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 _ACEOF
9517 done
9520 for ac_header in dlfcn.h
9521 do :
9522 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9524 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9525 cat >>confdefs.h <<_ACEOF
9526 #define HAVE_DLFCN_H 1
9527 _ACEOF
9531 done
9537 # Set options
9541 enable_dlopen=no
9544 enable_win32_dll=no
9547 # Check whether --enable-shared was given.
9548 if test "${enable_shared+set}" = set; then :
9549 enableval=$enable_shared; p=${PACKAGE-default}
9550 case $enableval in
9551 yes) enable_shared=yes ;;
9552 no) enable_shared=no ;;
9554 enable_shared=no
9555 # Look at the argument we got. We use all the common list separators.
9556 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9557 for pkg in $enableval; do
9558 IFS=$lt_save_ifs
9559 if test "X$pkg" = "X$p"; then
9560 enable_shared=yes
9562 done
9563 IFS=$lt_save_ifs
9565 esac
9566 else
9567 enable_shared=yes
9578 # Check whether --enable-static was given.
9579 if test "${enable_static+set}" = set; then :
9580 enableval=$enable_static; p=${PACKAGE-default}
9581 case $enableval in
9582 yes) enable_static=yes ;;
9583 no) enable_static=no ;;
9585 enable_static=no
9586 # Look at the argument we got. We use all the common list separators.
9587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9588 for pkg in $enableval; do
9589 IFS=$lt_save_ifs
9590 if test "X$pkg" = "X$p"; then
9591 enable_static=yes
9593 done
9594 IFS=$lt_save_ifs
9596 esac
9597 else
9598 enable_static=yes
9610 # Check whether --with-pic was given.
9611 if test "${with_pic+set}" = set; then :
9612 withval=$with_pic; lt_p=${PACKAGE-default}
9613 case $withval in
9614 yes|no) pic_mode=$withval ;;
9616 pic_mode=default
9617 # Look at the argument we got. We use all the common list separators.
9618 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9619 for lt_pkg in $withval; do
9620 IFS=$lt_save_ifs
9621 if test "X$lt_pkg" = "X$lt_p"; then
9622 pic_mode=yes
9624 done
9625 IFS=$lt_save_ifs
9627 esac
9628 else
9629 pic_mode=default
9639 # Check whether --enable-fast-install was given.
9640 if test "${enable_fast_install+set}" = set; then :
9641 enableval=$enable_fast_install; p=${PACKAGE-default}
9642 case $enableval in
9643 yes) enable_fast_install=yes ;;
9644 no) enable_fast_install=no ;;
9646 enable_fast_install=no
9647 # Look at the argument we got. We use all the common list separators.
9648 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9649 for pkg in $enableval; do
9650 IFS=$lt_save_ifs
9651 if test "X$pkg" = "X$p"; then
9652 enable_fast_install=yes
9654 done
9655 IFS=$lt_save_ifs
9657 esac
9658 else
9659 enable_fast_install=yes
9669 shared_archive_member_spec=
9670 case $host,$enable_shared in
9671 power*-*-aix[5-9]*,yes)
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9673 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9675 # Check whether --with-aix-soname was given.
9676 if test "${with_aix_soname+set}" = set; then :
9677 withval=$with_aix_soname; case $withval in
9678 aix|svr4|both)
9681 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9683 esac
9684 lt_cv_with_aix_soname=$with_aix_soname
9685 else
9686 if ${lt_cv_with_aix_soname+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 lt_cv_with_aix_soname=aix
9692 with_aix_soname=$lt_cv_with_aix_soname
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9696 $as_echo "$with_aix_soname" >&6; }
9697 if test aix != "$with_aix_soname"; then
9698 # For the AIX way of multilib, we name the shared archive member
9699 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9700 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9701 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9702 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9703 if test 64 = "${OBJECT_MODE-32}"; then
9704 shared_archive_member_spec=shr_64
9705 else
9706 shared_archive_member_spec=shr
9711 with_aix_soname=aix
9713 esac
9724 # This can be used to rebuild libtool when needed
9725 LIBTOOL_DEPS=$ltmain
9727 # Always use our own libtool.
9728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9759 test -z "$LN_S" && LN_S="ln -s"
9774 if test -n "${ZSH_VERSION+set}"; then
9775 setopt NO_GLOB_SUBST
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9779 $as_echo_n "checking for objdir... " >&6; }
9780 if ${lt_cv_objdir+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 rm -f .libs 2>/dev/null
9784 mkdir .libs 2>/dev/null
9785 if test -d .libs; then
9786 lt_cv_objdir=.libs
9787 else
9788 # MS-DOS does not allow filenames that begin with a dot.
9789 lt_cv_objdir=_libs
9791 rmdir .libs 2>/dev/null
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9794 $as_echo "$lt_cv_objdir" >&6; }
9795 objdir=$lt_cv_objdir
9801 cat >>confdefs.h <<_ACEOF
9802 #define LT_OBJDIR "$lt_cv_objdir/"
9803 _ACEOF
9808 case $host_os in
9809 aix3*)
9810 # AIX sometimes has problems with the GCC collect2 program. For some
9811 # reason, if we set the COLLECT_NAMES environment variable, the problems
9812 # vanish in a puff of smoke.
9813 if test set != "${COLLECT_NAMES+set}"; then
9814 COLLECT_NAMES=
9815 export COLLECT_NAMES
9818 esac
9820 # Global variables:
9821 ofile=libtool
9822 can_build_shared=yes
9824 # All known linkers require a '.a' archive for static linking (except MSVC,
9825 # which needs '.lib').
9826 libext=a
9828 with_gnu_ld=$lt_cv_prog_gnu_ld
9830 old_CC=$CC
9831 old_CFLAGS=$CFLAGS
9833 # Set sane defaults for various variables
9834 test -z "$CC" && CC=cc
9835 test -z "$LTCC" && LTCC=$CC
9836 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9837 test -z "$LD" && LD=ld
9838 test -z "$ac_objext" && ac_objext=o
9840 func_cc_basename $compiler
9841 cc_basename=$func_cc_basename_result
9844 # Only perform the check for file, if the check method requires it
9845 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9846 case $deplibs_check_method in
9847 file_magic*)
9848 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9850 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9851 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 case $MAGIC_CMD in
9855 [\\/*] | ?:[\\/]*)
9856 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9859 lt_save_MAGIC_CMD=$MAGIC_CMD
9860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9862 for ac_dir in $ac_dummy; do
9863 IFS=$lt_save_ifs
9864 test -z "$ac_dir" && ac_dir=.
9865 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9866 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9867 if test -n "$file_magic_test_file"; then
9868 case $deplibs_check_method in
9869 "file_magic "*)
9870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9871 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9873 $EGREP "$file_magic_regex" > /dev/null; then
9875 else
9876 cat <<_LT_EOF 1>&2
9878 *** Warning: the command libtool uses to detect shared libraries,
9879 *** $file_magic_cmd, produces output that libtool cannot recognize.
9880 *** The result is that libtool may fail to recognize shared libraries
9881 *** as such. This will affect the creation of libtool libraries that
9882 *** depend on shared libraries, but programs linked with such libtool
9883 *** libraries will work regardless of this problem. Nevertheless, you
9884 *** may want to report the problem to your system manager and/or to
9885 *** bug-libtool@gnu.org
9887 _LT_EOF
9888 fi ;;
9889 esac
9891 break
9893 done
9894 IFS=$lt_save_ifs
9895 MAGIC_CMD=$lt_save_MAGIC_CMD
9897 esac
9900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9901 if test -n "$MAGIC_CMD"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9903 $as_echo "$MAGIC_CMD" >&6; }
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9913 if test -z "$lt_cv_path_MAGIC_CMD"; then
9914 if test -n "$ac_tool_prefix"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9916 $as_echo_n "checking for file... " >&6; }
9917 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 case $MAGIC_CMD in
9921 [\\/*] | ?:[\\/]*)
9922 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9925 lt_save_MAGIC_CMD=$MAGIC_CMD
9926 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9928 for ac_dir in $ac_dummy; do
9929 IFS=$lt_save_ifs
9930 test -z "$ac_dir" && ac_dir=.
9931 if test -f "$ac_dir/file"; then
9932 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9933 if test -n "$file_magic_test_file"; then
9934 case $deplibs_check_method in
9935 "file_magic "*)
9936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9937 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9939 $EGREP "$file_magic_regex" > /dev/null; then
9941 else
9942 cat <<_LT_EOF 1>&2
9944 *** Warning: the command libtool uses to detect shared libraries,
9945 *** $file_magic_cmd, produces output that libtool cannot recognize.
9946 *** The result is that libtool may fail to recognize shared libraries
9947 *** as such. This will affect the creation of libtool libraries that
9948 *** depend on shared libraries, but programs linked with such libtool
9949 *** libraries will work regardless of this problem. Nevertheless, you
9950 *** may want to report the problem to your system manager and/or to
9951 *** bug-libtool@gnu.org
9953 _LT_EOF
9954 fi ;;
9955 esac
9957 break
9959 done
9960 IFS=$lt_save_ifs
9961 MAGIC_CMD=$lt_save_MAGIC_CMD
9963 esac
9966 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9967 if test -n "$MAGIC_CMD"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9969 $as_echo "$MAGIC_CMD" >&6; }
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9976 else
9977 MAGIC_CMD=:
9983 esac
9985 # Use C for the default configuration in the libtool script
9987 lt_save_CC=$CC
9988 ac_ext=c
9989 ac_cpp='$CPP $CPPFLAGS'
9990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9995 # Source file extension for C test sources.
9996 ac_ext=c
9998 # Object file extension for compiled C test sources.
9999 objext=o
10000 objext=$objext
10002 # Code to be used in simple compile tests
10003 lt_simple_compile_test_code="int some_variable = 0;"
10005 # Code to be used in simple link tests
10006 lt_simple_link_test_code='int main(){return(0);}'
10014 # If no C compiler was specified, use CC.
10015 LTCC=${LTCC-"$CC"}
10017 # If no C compiler flags were specified, use CFLAGS.
10018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10020 # Allow CC to be a program name with arguments.
10021 compiler=$CC
10023 # Save the default compiler, since it gets overwritten when the other
10024 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10025 compiler_DEFAULT=$CC
10027 # save warnings/boilerplate of simple test code
10028 ac_outfile=conftest.$ac_objext
10029 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10031 _lt_compiler_boilerplate=`cat conftest.err`
10032 $RM conftest*
10034 ac_outfile=conftest.$ac_objext
10035 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10037 _lt_linker_boilerplate=`cat conftest.err`
10038 $RM -r conftest*
10041 ## CAVEAT EMPTOR:
10042 ## There is no encapsulation within the following macros, do not change
10043 ## the running order or otherwise move them around unless you know exactly
10044 ## what you are doing...
10045 if test -n "$compiler"; then
10047 lt_prog_compiler_no_builtin_flag=
10049 if test yes = "$GCC"; then
10050 case $cc_basename in
10051 nvcc*)
10052 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10054 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10055 esac
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10058 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10059 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 lt_cv_prog_compiler_rtti_exceptions=no
10063 ac_outfile=conftest.$ac_objext
10064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10065 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10066 # Insert the option either (1) after the last *FLAGS variable, or
10067 # (2) before a word containing "conftest.", or (3) at the end.
10068 # Note that $ac_compile itself does not contain backslashes and begins
10069 # with a dollar sign (not a hyphen), so the echo should work correctly.
10070 # The option is referenced via a variable to avoid confusing sed.
10071 lt_compile=`echo "$ac_compile" | $SED \
10072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10074 -e 's:$: $lt_compiler_flag:'`
10075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10076 (eval "$lt_compile" 2>conftest.err)
10077 ac_status=$?
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 if (exit $ac_status) && test -s "$ac_outfile"; then
10081 # The compiler can only warn and ignore the option if not recognized
10082 # So say no if there are warnings other than the usual output.
10083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10086 lt_cv_prog_compiler_rtti_exceptions=yes
10089 $RM conftest*
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10093 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10095 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10096 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10097 else
10108 lt_prog_compiler_wl=
10109 lt_prog_compiler_pic=
10110 lt_prog_compiler_static=
10113 if test yes = "$GCC"; then
10114 lt_prog_compiler_wl='-Wl,'
10115 lt_prog_compiler_static='-static'
10117 case $host_os in
10118 aix*)
10119 # All AIX code is PIC.
10120 if test ia64 = "$host_cpu"; then
10121 # AIX 5 now supports IA64 processor
10122 lt_prog_compiler_static='-Bstatic'
10124 lt_prog_compiler_pic='-fPIC'
10127 amigaos*)
10128 case $host_cpu in
10129 powerpc)
10130 # see comment about AmigaOS4 .so support
10131 lt_prog_compiler_pic='-fPIC'
10133 m68k)
10134 # FIXME: we need at least 68020 code to build shared libraries, but
10135 # adding the '-m68020' flag to GCC prevents building anything better,
10136 # like '-m68040'.
10137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10139 esac
10142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10143 # PIC is the default for these OSes.
10146 mingw* | cygwin* | pw32* | os2* | cegcc*)
10147 # This hack is so that the source file can tell whether it is being
10148 # built for inclusion in a dll (and should export symbols for example).
10149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10150 # (--disable-auto-import) libraries
10151 lt_prog_compiler_pic='-DDLL_EXPORT'
10152 case $host_os in
10153 os2*)
10154 lt_prog_compiler_static='$wl-static'
10156 esac
10159 darwin* | rhapsody*)
10160 # PIC is the default on this platform
10161 # Common symbols not allowed in MH_DYLIB files
10162 lt_prog_compiler_pic='-fno-common'
10165 haiku*)
10166 # PIC is the default for Haiku.
10167 # The "-static" flag exists, but is broken.
10168 lt_prog_compiler_static=
10171 hpux*)
10172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10174 # sets the default TLS model and affects inlining.
10175 case $host_cpu in
10176 hppa*64*)
10177 # +Z the default
10180 lt_prog_compiler_pic='-fPIC'
10182 esac
10185 interix[3-9]*)
10186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10187 # Instead, we relocate shared libraries at runtime.
10190 msdosdjgpp*)
10191 # Just because we use GCC doesn't mean we suddenly get shared libraries
10192 # on systems that don't support them.
10193 lt_prog_compiler_can_build_shared=no
10194 enable_shared=no
10197 *nto* | *qnx*)
10198 # QNX uses GNU C++, but need to define -shared option too, otherwise
10199 # it will coredump.
10200 lt_prog_compiler_pic='-fPIC -shared'
10203 sysv4*MP*)
10204 if test -d /usr/nec; then
10205 lt_prog_compiler_pic=-Kconform_pic
10210 lt_prog_compiler_pic='-fPIC'
10212 esac
10214 case $cc_basename in
10215 nvcc*) # Cuda Compiler Driver 2.2
10216 lt_prog_compiler_wl='-Xlinker '
10217 if test -n "$lt_prog_compiler_pic"; then
10218 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10221 esac
10222 else
10223 # PORTME Check for flag to pass linker flags through the system compiler.
10224 case $host_os in
10225 aix*)
10226 lt_prog_compiler_wl='-Wl,'
10227 if test ia64 = "$host_cpu"; then
10228 # AIX 5 now supports IA64 processor
10229 lt_prog_compiler_static='-Bstatic'
10230 else
10231 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10235 darwin* | rhapsody*)
10236 # PIC is the default on this platform
10237 # Common symbols not allowed in MH_DYLIB files
10238 lt_prog_compiler_pic='-fno-common'
10239 case $cc_basename in
10240 nagfor*)
10241 # NAG Fortran compiler
10242 lt_prog_compiler_wl='-Wl,-Wl,,'
10243 lt_prog_compiler_pic='-PIC'
10244 lt_prog_compiler_static='-Bstatic'
10246 esac
10249 mingw* | cygwin* | pw32* | os2* | cegcc*)
10250 # This hack is so that the source file can tell whether it is being
10251 # built for inclusion in a dll (and should export symbols for example).
10252 lt_prog_compiler_pic='-DDLL_EXPORT'
10253 case $host_os in
10254 os2*)
10255 lt_prog_compiler_static='$wl-static'
10257 esac
10260 hpux9* | hpux10* | hpux11*)
10261 lt_prog_compiler_wl='-Wl,'
10262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10263 # not for PA HP-UX.
10264 case $host_cpu in
10265 hppa*64*|ia64*)
10266 # +Z the default
10269 lt_prog_compiler_pic='+Z'
10271 esac
10272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10273 lt_prog_compiler_static='$wl-a ${wl}archive'
10276 irix5* | irix6* | nonstopux*)
10277 lt_prog_compiler_wl='-Wl,'
10278 # PIC (with -KPIC) is the default.
10279 lt_prog_compiler_static='-non_shared'
10282 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10283 case $cc_basename in
10284 # old Intel for x86_64, which still supported -KPIC.
10285 ecc*)
10286 lt_prog_compiler_wl='-Wl,'
10287 lt_prog_compiler_pic='-KPIC'
10288 lt_prog_compiler_static='-static'
10290 # icc used to be incompatible with GCC.
10291 # ICC 10 doesn't accept -KPIC any more.
10292 icc* | ifort*)
10293 lt_prog_compiler_wl='-Wl,'
10294 lt_prog_compiler_pic='-fPIC'
10295 lt_prog_compiler_static='-static'
10297 # Lahey Fortran 8.1.
10298 lf95*)
10299 lt_prog_compiler_wl='-Wl,'
10300 lt_prog_compiler_pic='--shared'
10301 lt_prog_compiler_static='--static'
10303 nagfor*)
10304 # NAG Fortran compiler
10305 lt_prog_compiler_wl='-Wl,-Wl,,'
10306 lt_prog_compiler_pic='-PIC'
10307 lt_prog_compiler_static='-Bstatic'
10309 tcc*)
10310 # Fabrice Bellard et al's Tiny C Compiler
10311 lt_prog_compiler_wl='-Wl,'
10312 lt_prog_compiler_pic='-fPIC'
10313 lt_prog_compiler_static='-static'
10315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10316 # Portland Group compilers (*not* the Pentium gcc compiler,
10317 # which looks to be a dead project)
10318 lt_prog_compiler_wl='-Wl,'
10319 lt_prog_compiler_pic='-fpic'
10320 lt_prog_compiler_static='-Bstatic'
10322 ccc*)
10323 lt_prog_compiler_wl='-Wl,'
10324 # All Alpha code is PIC.
10325 lt_prog_compiler_static='-non_shared'
10327 xl* | bgxl* | bgf* | mpixl*)
10328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10329 lt_prog_compiler_wl='-Wl,'
10330 lt_prog_compiler_pic='-qpic'
10331 lt_prog_compiler_static='-qstaticlink'
10334 case `$CC -V 2>&1 | sed 5q` in
10335 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10337 lt_prog_compiler_pic='-KPIC'
10338 lt_prog_compiler_static='-Bstatic'
10339 lt_prog_compiler_wl=''
10341 *Sun\ F* | *Sun*Fortran*)
10342 lt_prog_compiler_pic='-KPIC'
10343 lt_prog_compiler_static='-Bstatic'
10344 lt_prog_compiler_wl='-Qoption ld '
10346 *Sun\ C*)
10347 # Sun C 5.9
10348 lt_prog_compiler_pic='-KPIC'
10349 lt_prog_compiler_static='-Bstatic'
10350 lt_prog_compiler_wl='-Wl,'
10352 *Intel*\ [CF]*Compiler*)
10353 lt_prog_compiler_wl='-Wl,'
10354 lt_prog_compiler_pic='-fPIC'
10355 lt_prog_compiler_static='-static'
10357 *Portland\ Group*)
10358 lt_prog_compiler_wl='-Wl,'
10359 lt_prog_compiler_pic='-fpic'
10360 lt_prog_compiler_static='-Bstatic'
10362 esac
10364 esac
10367 newsos6)
10368 lt_prog_compiler_pic='-KPIC'
10369 lt_prog_compiler_static='-Bstatic'
10372 *nto* | *qnx*)
10373 # QNX uses GNU C++, but need to define -shared option too, otherwise
10374 # it will coredump.
10375 lt_prog_compiler_pic='-fPIC -shared'
10378 osf3* | osf4* | osf5*)
10379 lt_prog_compiler_wl='-Wl,'
10380 # All OSF/1 code is PIC.
10381 lt_prog_compiler_static='-non_shared'
10384 rdos*)
10385 lt_prog_compiler_static='-non_shared'
10388 solaris*)
10389 lt_prog_compiler_pic='-KPIC'
10390 lt_prog_compiler_static='-Bstatic'
10391 case $cc_basename in
10392 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10393 lt_prog_compiler_wl='-Qoption ld ';;
10395 lt_prog_compiler_wl='-Wl,';;
10396 esac
10399 sunos4*)
10400 lt_prog_compiler_wl='-Qoption ld '
10401 lt_prog_compiler_pic='-PIC'
10402 lt_prog_compiler_static='-Bstatic'
10405 sysv4 | sysv4.2uw2* | sysv4.3*)
10406 lt_prog_compiler_wl='-Wl,'
10407 lt_prog_compiler_pic='-KPIC'
10408 lt_prog_compiler_static='-Bstatic'
10411 sysv4*MP*)
10412 if test -d /usr/nec; then
10413 lt_prog_compiler_pic='-Kconform_pic'
10414 lt_prog_compiler_static='-Bstatic'
10418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10419 lt_prog_compiler_wl='-Wl,'
10420 lt_prog_compiler_pic='-KPIC'
10421 lt_prog_compiler_static='-Bstatic'
10424 unicos*)
10425 lt_prog_compiler_wl='-Wl,'
10426 lt_prog_compiler_can_build_shared=no
10429 uts4*)
10430 lt_prog_compiler_pic='-pic'
10431 lt_prog_compiler_static='-Bstatic'
10435 lt_prog_compiler_can_build_shared=no
10437 esac
10440 case $host_os in
10441 # For platforms that do not support PIC, -DPIC is meaningless:
10442 *djgpp*)
10443 lt_prog_compiler_pic=
10446 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10448 esac
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10451 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10452 if ${lt_cv_prog_compiler_pic+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10458 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10459 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10462 # Check to make sure the PIC flag actually works.
10464 if test -n "$lt_prog_compiler_pic"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10466 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10467 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 lt_cv_prog_compiler_pic_works=no
10471 ac_outfile=conftest.$ac_objext
10472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10473 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10474 # Insert the option either (1) after the last *FLAGS variable, or
10475 # (2) before a word containing "conftest.", or (3) at the end.
10476 # Note that $ac_compile itself does not contain backslashes and begins
10477 # with a dollar sign (not a hyphen), so the echo should work correctly.
10478 # The option is referenced via a variable to avoid confusing sed.
10479 lt_compile=`echo "$ac_compile" | $SED \
10480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10482 -e 's:$: $lt_compiler_flag:'`
10483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10484 (eval "$lt_compile" 2>conftest.err)
10485 ac_status=$?
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 if (exit $ac_status) && test -s "$ac_outfile"; then
10489 # The compiler can only warn and ignore the option if not recognized
10490 # So say no if there are warnings other than the usual output.
10491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10494 lt_cv_prog_compiler_pic_works=yes
10497 $RM conftest*
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10501 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10503 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10504 case $lt_prog_compiler_pic in
10505 "" | " "*) ;;
10506 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10507 esac
10508 else
10509 lt_prog_compiler_pic=
10510 lt_prog_compiler_can_build_shared=no
10526 # Check to make sure the static flag actually works.
10528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10531 if ${lt_cv_prog_compiler_static_works+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 lt_cv_prog_compiler_static_works=no
10535 save_LDFLAGS=$LDFLAGS
10536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10539 # The linker can only warn and ignore the option if not recognized
10540 # So say no if there are warnings
10541 if test -s conftest.err; then
10542 # Append any errors to the config.log.
10543 cat conftest.err 1>&5
10544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10546 if diff conftest.exp conftest.er2 >/dev/null; then
10547 lt_cv_prog_compiler_static_works=yes
10549 else
10550 lt_cv_prog_compiler_static_works=yes
10553 $RM -r conftest*
10554 LDFLAGS=$save_LDFLAGS
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10560 if test yes = "$lt_cv_prog_compiler_static_works"; then
10562 else
10563 lt_prog_compiler_static=
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10574 if ${lt_cv_prog_compiler_c_o+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 lt_cv_prog_compiler_c_o=no
10578 $RM -r conftest 2>/dev/null
10579 mkdir conftest
10580 cd conftest
10581 mkdir out
10582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10584 lt_compiler_flag="-o out/conftest2.$ac_objext"
10585 # Insert the option either (1) after the last *FLAGS variable, or
10586 # (2) before a word containing "conftest.", or (3) at the end.
10587 # Note that $ac_compile itself does not contain backslashes and begins
10588 # with a dollar sign (not a hyphen), so the echo should work correctly.
10589 lt_compile=`echo "$ac_compile" | $SED \
10590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10592 -e 's:$: $lt_compiler_flag:'`
10593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10594 (eval "$lt_compile" 2>out/conftest.err)
10595 ac_status=$?
10596 cat out/conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10599 then
10600 # The compiler can only warn and ignore the option if not recognized
10601 # So say no if there are warnings
10602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10605 lt_cv_prog_compiler_c_o=yes
10608 chmod u+w . 2>&5
10609 $RM conftest*
10610 # SGI C++ compiler will create directory out/ii_files/ for
10611 # template instantiation
10612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10613 $RM out/* && rmdir out
10614 cd ..
10615 $RM -r conftest
10616 $RM conftest*
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10629 if ${lt_cv_prog_compiler_c_o+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 lt_cv_prog_compiler_c_o=no
10633 $RM -r conftest 2>/dev/null
10634 mkdir conftest
10635 cd conftest
10636 mkdir out
10637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10639 lt_compiler_flag="-o out/conftest2.$ac_objext"
10640 # Insert the option either (1) after the last *FLAGS variable, or
10641 # (2) before a word containing "conftest.", or (3) at the end.
10642 # Note that $ac_compile itself does not contain backslashes and begins
10643 # with a dollar sign (not a hyphen), so the echo should work correctly.
10644 lt_compile=`echo "$ac_compile" | $SED \
10645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10647 -e 's:$: $lt_compiler_flag:'`
10648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10649 (eval "$lt_compile" 2>out/conftest.err)
10650 ac_status=$?
10651 cat out/conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10654 then
10655 # The compiler can only warn and ignore the option if not recognized
10656 # So say no if there are warnings
10657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10660 lt_cv_prog_compiler_c_o=yes
10663 chmod u+w . 2>&5
10664 $RM conftest*
10665 # SGI C++ compiler will create directory out/ii_files/ for
10666 # template instantiation
10667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10668 $RM out/* && rmdir out
10669 cd ..
10670 $RM -r conftest
10671 $RM conftest*
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10680 hard_links=nottested
10681 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10682 # do not overwrite the value of need_locks provided by the user
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10684 $as_echo_n "checking if we can lock with hard links... " >&6; }
10685 hard_links=yes
10686 $RM conftest*
10687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10688 touch conftest.a
10689 ln conftest.a conftest.b 2>&5 || hard_links=no
10690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10692 $as_echo "$hard_links" >&6; }
10693 if test no = "$hard_links"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10695 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10696 need_locks=warn
10698 else
10699 need_locks=no
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10710 runpath_var=
10711 allow_undefined_flag=
10712 always_export_symbols=no
10713 archive_cmds=
10714 archive_expsym_cmds=
10715 compiler_needs_object=no
10716 enable_shared_with_static_runtimes=no
10717 export_dynamic_flag_spec=
10718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10719 hardcode_automatic=no
10720 hardcode_direct=no
10721 hardcode_direct_absolute=no
10722 hardcode_libdir_flag_spec=
10723 hardcode_libdir_separator=
10724 hardcode_minus_L=no
10725 hardcode_shlibpath_var=unsupported
10726 inherit_rpath=no
10727 link_all_deplibs=unknown
10728 module_cmds=
10729 module_expsym_cmds=
10730 old_archive_from_new_cmds=
10731 old_archive_from_expsyms_cmds=
10732 thread_safe_flag_spec=
10733 whole_archive_flag_spec=
10734 # include_expsyms should be a list of space-separated symbols to be *always*
10735 # included in the symbol list
10736 include_expsyms=
10737 # exclude_expsyms can be an extended regexp of symbols to exclude
10738 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10739 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10740 # as well as any symbol that contains 'd'.
10741 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10743 # platforms (ab)use it in PIC code, but their linkers get confused if
10744 # the symbol is explicitly referenced. Since portable code cannot
10745 # rely on this symbol name, it's probably fine to never include it in
10746 # preloaded symbol tables.
10747 # Exclude shared library initialization/finalization symbols.
10748 extract_expsyms_cmds=
10750 case $host_os in
10751 cygwin* | mingw* | pw32* | cegcc*)
10752 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10753 # When not using gcc, we currently assume that we are using
10754 # Microsoft Visual C++.
10755 if test yes != "$GCC"; then
10756 with_gnu_ld=no
10759 interix*)
10760 # we just hope/assume this is gcc and not c89 (= MSVC++)
10761 with_gnu_ld=yes
10763 openbsd* | bitrig*)
10764 with_gnu_ld=no
10766 esac
10768 ld_shlibs=yes
10770 # On some targets, GNU ld is compatible enough with the native linker
10771 # that we're better off using the native interface for both.
10772 lt_use_gnu_ld_interface=no
10773 if test yes = "$with_gnu_ld"; then
10774 case $host_os in
10775 aix*)
10776 # The AIX port of GNU ld has always aspired to compatibility
10777 # with the native linker. However, as the warning in the GNU ld
10778 # block says, versions before 2.19.5* couldn't really create working
10779 # shared libraries, regardless of the interface used.
10780 case `$LD -v 2>&1` in
10781 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10782 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10783 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10785 lt_use_gnu_ld_interface=yes
10787 esac
10790 lt_use_gnu_ld_interface=yes
10792 esac
10795 if test yes = "$lt_use_gnu_ld_interface"; then
10796 # If archive_cmds runs LD, not CC, wlarc should be empty
10797 wlarc='$wl'
10799 # Set some defaults for GNU ld with shared library support. These
10800 # are reset later if shared libraries are not supported. Putting them
10801 # here allows them to be overridden if necessary.
10802 runpath_var=LD_RUN_PATH
10803 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10804 export_dynamic_flag_spec='$wl--export-dynamic'
10805 # ancient GNU ld didn't support --whole-archive et. al.
10806 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10807 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10808 else
10809 whole_archive_flag_spec=
10811 supports_anon_versioning=no
10812 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10813 *GNU\ gold*) supports_anon_versioning=yes ;;
10814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10817 *\ 2.11.*) ;; # other 2.11 versions
10818 *) supports_anon_versioning=yes ;;
10819 esac
10821 # See if GNU ld supports shared libraries.
10822 case $host_os in
10823 aix[3-9]*)
10824 # On AIX/PPC, the GNU linker is very broken
10825 if test ia64 != "$host_cpu"; then
10826 ld_shlibs=no
10827 cat <<_LT_EOF 1>&2
10829 *** Warning: the GNU linker, at least up to release 2.19, is reported
10830 *** to be unable to reliably create shared libraries on AIX.
10831 *** Therefore, libtool is disabling shared libraries support. If you
10832 *** really care for shared libraries, you may want to install binutils
10833 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10834 *** You will then need to restart the configuration process.
10836 _LT_EOF
10840 amigaos*)
10841 case $host_cpu in
10842 powerpc)
10843 # see comment about AmigaOS4 .so support
10844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10845 archive_expsym_cmds=''
10847 m68k)
10848 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)'
10849 hardcode_libdir_flag_spec='-L$libdir'
10850 hardcode_minus_L=yes
10852 esac
10855 beos*)
10856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10857 allow_undefined_flag=unsupported
10858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10859 # support --undefined. This deserves some investigation. FIXME
10860 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10861 else
10862 ld_shlibs=no
10866 cygwin* | mingw* | pw32* | cegcc*)
10867 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10868 # as there is no search path for DLLs.
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 export_dynamic_flag_spec='$wl--export-all-symbols'
10871 allow_undefined_flag=unsupported
10872 always_export_symbols=no
10873 enable_shared_with_static_runtimes=yes
10874 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'
10875 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10877 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10879 # If the export-symbols file already is a .def file, use it as
10880 # is; otherwise, prepend EXPORTS...
10881 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10882 cp $export_symbols $output_objdir/$soname.def;
10883 else
10884 echo EXPORTS > $output_objdir/$soname.def;
10885 cat $export_symbols >> $output_objdir/$soname.def;
10887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10888 else
10889 ld_shlibs=no
10893 haiku*)
10894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10895 link_all_deplibs=yes
10898 os2*)
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_minus_L=yes
10901 allow_undefined_flag=unsupported
10902 shrext_cmds=.dll
10903 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10904 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10905 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10906 $ECHO EXPORTS >> $output_objdir/$libname.def~
10907 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10909 emximp -o $lib $output_objdir/$libname.def'
10910 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10911 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10912 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10913 $ECHO EXPORTS >> $output_objdir/$libname.def~
10914 prefix_cmds="$SED"~
10915 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10916 prefix_cmds="$prefix_cmds -e 1d";
10918 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10919 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10920 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10921 emximp -o $lib $output_objdir/$libname.def'
10922 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10923 enable_shared_with_static_runtimes=yes
10926 interix[3-9]*)
10927 hardcode_direct=no
10928 hardcode_shlibpath_var=no
10929 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10930 export_dynamic_flag_spec='$wl-E'
10931 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10932 # Instead, shared libraries are loaded at an image base (0x10000000 by
10933 # default) and relocated if they conflict, which is a slow very memory
10934 # consuming and fragmenting process. To avoid this, we pick a random,
10935 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10936 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10938 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'
10941 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10942 tmp_diet=no
10943 if test linux-dietlibc = "$host_os"; then
10944 case $cc_basename in
10945 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10946 esac
10948 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10949 && test no = "$tmp_diet"
10950 then
10951 tmp_addflag=' $pic_flag'
10952 tmp_sharedflag='-shared'
10953 case $cc_basename,$host_cpu in
10954 pgcc*) # Portland Group C compiler
10955 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'
10956 tmp_addflag=' $pic_flag'
10958 pgf77* | pgf90* | pgf95* | pgfortran*)
10959 # Portland Group f77 and f90 compilers
10960 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'
10961 tmp_addflag=' $pic_flag -Mnomain' ;;
10962 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10963 tmp_addflag=' -i_dynamic' ;;
10964 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10965 tmp_addflag=' -i_dynamic -nofor_main' ;;
10966 ifc* | ifort*) # Intel Fortran compiler
10967 tmp_addflag=' -nofor_main' ;;
10968 lf95*) # Lahey Fortran 8.1
10969 whole_archive_flag_spec=
10970 tmp_sharedflag='--shared' ;;
10971 nagfor*) # NAGFOR 5.3
10972 tmp_sharedflag='-Wl,-shared' ;;
10973 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10974 tmp_sharedflag='-qmkshrobj'
10975 tmp_addflag= ;;
10976 nvcc*) # Cuda Compiler Driver 2.2
10977 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'
10978 compiler_needs_object=yes
10980 esac
10981 case `$CC -V 2>&1 | sed 5q` in
10982 *Sun\ C*) # Sun C 5.9
10983 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'
10984 compiler_needs_object=yes
10985 tmp_sharedflag='-G' ;;
10986 *Sun\ F*) # Sun Fortran 8.3
10987 tmp_sharedflag='-G' ;;
10988 esac
10989 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10991 if test yes = "$supports_anon_versioning"; then
10992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10994 echo "local: *; };" >> $output_objdir/$libname.ver~
10995 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10998 case $cc_basename in
10999 tcc*)
11000 export_dynamic_flag_spec='-rdynamic'
11002 xlf* | bgf* | bgxlf* | mpixlf*)
11003 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11004 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11005 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11006 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11007 if test yes = "$supports_anon_versioning"; then
11008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11010 echo "local: *; };" >> $output_objdir/$libname.ver~
11011 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11014 esac
11015 else
11016 ld_shlibs=no
11020 netbsd*)
11021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11023 wlarc=
11024 else
11025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11030 solaris*)
11031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11032 ld_shlibs=no
11033 cat <<_LT_EOF 1>&2
11035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11036 *** create shared libraries on Solaris systems. Therefore, libtool
11037 *** is disabling shared libraries support. We urge you to upgrade GNU
11038 *** binutils to release 2.9.1 or newer. Another option is to modify
11039 *** your PATH or compiler configuration so that the native linker is
11040 *** used, and then restart.
11042 _LT_EOF
11043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11046 else
11047 ld_shlibs=no
11051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11052 case `$LD -v 2>&1` in
11053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11054 ld_shlibs=no
11055 cat <<_LT_EOF 1>&2
11057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11058 *** reliably create shared libraries on SCO systems. Therefore, libtool
11059 *** is disabling shared libraries support. We urge you to upgrade GNU
11060 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11061 *** your PATH or compiler configuration so that the native linker is
11062 *** used, and then restart.
11064 _LT_EOF
11067 # For security reasons, it is highly recommended that you always
11068 # use absolute paths for naming shared libraries, and exclude the
11069 # DT_RUNPATH tag from executables and libraries. But doing so
11070 # requires that you compile everything twice, which is a pain.
11071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11072 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11075 else
11076 ld_shlibs=no
11079 esac
11082 sunos4*)
11083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11084 wlarc=
11085 hardcode_direct=yes
11086 hardcode_shlibpath_var=no
11090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11093 else
11094 ld_shlibs=no
11097 esac
11099 if test no = "$ld_shlibs"; then
11100 runpath_var=
11101 hardcode_libdir_flag_spec=
11102 export_dynamic_flag_spec=
11103 whole_archive_flag_spec=
11105 else
11106 # PORTME fill in a description of your system's linker (not GNU ld)
11107 case $host_os in
11108 aix3*)
11109 allow_undefined_flag=unsupported
11110 always_export_symbols=yes
11111 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'
11112 # Note: this linker hardcodes the directories in LIBPATH if there
11113 # are no directories specified by -L.
11114 hardcode_minus_L=yes
11115 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11116 # Neither direct hardcoding nor static linking is supported with a
11117 # broken collect2.
11118 hardcode_direct=unsupported
11122 aix[4-9]*)
11123 if test ia64 = "$host_cpu"; then
11124 # On IA64, the linker does run time linking by default, so we don't
11125 # have to do anything special.
11126 aix_use_runtimelinking=no
11127 exp_sym_flag='-Bexport'
11128 no_entry_flag=
11129 else
11130 # If we're using GNU nm, then we don't want the "-C" option.
11131 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11132 # Without the "-l" option, or with the "-B" option, AIX nm treats
11133 # weak defined symbols like other global defined symbols, whereas
11134 # GNU nm marks them as "W".
11135 # While the 'weak' keyword is ignored in the Export File, we need
11136 # it in the Import File for the 'aix-soname' feature, so we have
11137 # to replace the "-B" option with "-P" for AIX nm.
11138 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11139 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11140 else
11141 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11143 aix_use_runtimelinking=no
11145 # Test if we are trying to use run time linking or normal
11146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11147 # have runtime linking enabled, and use it for executables.
11148 # For shared libraries, we enable/disable runtime linking
11149 # depending on the kind of the shared library created -
11150 # when "with_aix_soname,aix_use_runtimelinking" is:
11151 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11152 # "aix,yes" lib.so shared, rtl:yes, for executables
11153 # lib.a static archive
11154 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11155 # lib.a(lib.so.V) shared, rtl:no, for executables
11156 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11157 # lib.a(lib.so.V) shared, rtl:no
11158 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11159 # lib.a static archive
11160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11161 for ld_flag in $LDFLAGS; do
11162 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11163 aix_use_runtimelinking=yes
11164 break
11166 done
11167 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11168 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11169 # so we don't have lib.a shared libs to link our executables.
11170 # We have to force runtime linking in this case.
11171 aix_use_runtimelinking=yes
11172 LDFLAGS="$LDFLAGS -Wl,-brtl"
11175 esac
11177 exp_sym_flag='-bexport'
11178 no_entry_flag='-bnoentry'
11181 # When large executables or shared objects are built, AIX ld can
11182 # have problems creating the table of contents. If linking a library
11183 # or program results in "error TOC overflow" add -mminimal-toc to
11184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11187 archive_cmds=''
11188 hardcode_direct=yes
11189 hardcode_direct_absolute=yes
11190 hardcode_libdir_separator=':'
11191 link_all_deplibs=yes
11192 file_list_spec='$wl-f,'
11193 case $with_aix_soname,$aix_use_runtimelinking in
11194 aix,*) ;; # traditional, no import file
11195 svr4,* | *,yes) # use import file
11196 # The Import File defines what to hardcode.
11197 hardcode_direct=no
11198 hardcode_direct_absolute=no
11200 esac
11202 if test yes = "$GCC"; then
11203 case $host_os in aix4.[012]|aix4.[012].*)
11204 # We only want to do this on AIX 4.2 and lower, the check
11205 # below for broken collect2 doesn't work under 4.3+
11206 collect2name=`$CC -print-prog-name=collect2`
11207 if test -f "$collect2name" &&
11208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11209 then
11210 # We have reworked collect2
11212 else
11213 # We have old collect2
11214 hardcode_direct=unsupported
11215 # It fails to find uninstalled libraries when the uninstalled
11216 # path is not listed in the libpath. Setting hardcode_minus_L
11217 # to unsupported forces relinking
11218 hardcode_minus_L=yes
11219 hardcode_libdir_flag_spec='-L$libdir'
11220 hardcode_libdir_separator=
11223 esac
11224 shared_flag='-shared'
11225 if test yes = "$aix_use_runtimelinking"; then
11226 shared_flag="$shared_flag "'$wl-G'
11228 # Need to ensure runtime linking is disabled for the traditional
11229 # shared library, or the linker may eventually find shared libraries
11230 # /with/ Import File - we do not want to mix them.
11231 shared_flag_aix='-shared'
11232 shared_flag_svr4='-shared $wl-G'
11233 else
11234 # not using gcc
11235 if test ia64 = "$host_cpu"; then
11236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11237 # chokes on -Wl,-G. The following line is correct:
11238 shared_flag='-G'
11239 else
11240 if test yes = "$aix_use_runtimelinking"; then
11241 shared_flag='$wl-G'
11242 else
11243 shared_flag='$wl-bM:SRE'
11245 shared_flag_aix='$wl-bM:SRE'
11246 shared_flag_svr4='$wl-G'
11250 export_dynamic_flag_spec='$wl-bexpall'
11251 # It seems that -bexpall does not export symbols beginning with
11252 # underscore (_), so it is better to generate a list of symbols to export.
11253 always_export_symbols=yes
11254 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11255 # Warning - without using the other runtime loading flags (-brtl),
11256 # -berok will link without error, but may produce a broken library.
11257 allow_undefined_flag='-berok'
11258 # Determine the default libpath from the value encoded in an
11259 # empty executable.
11260 if test set = "${lt_cv_aix_libpath+set}"; then
11261 aix_libpath=$lt_cv_aix_libpath
11262 else
11263 if ${lt_cv_aix_libpath_+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11270 main ()
11274 return 0;
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11279 lt_aix_libpath_sed='
11280 /Import File Strings/,/^$/ {
11281 /^0/ {
11282 s/^0 *\([^ ]*\) *$/\1/
11286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11287 # Check for a 64-bit object if we didn't find anything.
11288 if test -z "$lt_cv_aix_libpath_"; then
11289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$lt_cv_aix_libpath_"; then
11295 lt_cv_aix_libpath_=/usr/lib:/lib
11300 aix_libpath=$lt_cv_aix_libpath_
11303 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11304 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11305 else
11306 if test ia64 = "$host_cpu"; then
11307 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11308 allow_undefined_flag="-z nodefs"
11309 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"
11310 else
11311 # Determine the default libpath from the value encoded in an
11312 # empty executable.
11313 if test set = "${lt_cv_aix_libpath+set}"; then
11314 aix_libpath=$lt_cv_aix_libpath
11315 else
11316 if ${lt_cv_aix_libpath_+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11323 main ()
11327 return 0;
11329 _ACEOF
11330 if ac_fn_c_try_link "$LINENO"; then :
11332 lt_aix_libpath_sed='
11333 /Import File Strings/,/^$/ {
11334 /^0/ {
11335 s/^0 *\([^ ]*\) *$/\1/
11339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340 # Check for a 64-bit object if we didn't find anything.
11341 if test -z "$lt_cv_aix_libpath_"; then
11342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 if test -z "$lt_cv_aix_libpath_"; then
11348 lt_cv_aix_libpath_=/usr/lib:/lib
11353 aix_libpath=$lt_cv_aix_libpath_
11356 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11357 # Warning - without using the other run time loading flags,
11358 # -berok will link without error, but may produce a broken library.
11359 no_undefined_flag=' $wl-bernotok'
11360 allow_undefined_flag=' $wl-berok'
11361 if test yes = "$with_gnu_ld"; then
11362 # We only use this code for GNU lds that support --whole-archive.
11363 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11364 else
11365 # Exported symbols can be pulled into shared objects from archives
11366 whole_archive_flag_spec='$convenience'
11368 archive_cmds_need_lc=yes
11369 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11370 # -brtl affects multiple linker settings, -berok does not and is overridden later
11371 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11372 if test svr4 != "$with_aix_soname"; then
11373 # This is similar to how AIX traditionally builds its shared libraries.
11374 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11376 if test aix != "$with_aix_soname"; then
11377 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11378 else
11379 # used by -dlpreopen to get the symbols
11380 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11382 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11387 amigaos*)
11388 case $host_cpu in
11389 powerpc)
11390 # see comment about AmigaOS4 .so support
11391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11392 archive_expsym_cmds=''
11394 m68k)
11395 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)'
11396 hardcode_libdir_flag_spec='-L$libdir'
11397 hardcode_minus_L=yes
11399 esac
11402 bsdi[45]*)
11403 export_dynamic_flag_spec=-rdynamic
11406 cygwin* | mingw* | pw32* | cegcc*)
11407 # When not using gcc, we currently assume that we are using
11408 # Microsoft Visual C++.
11409 # hardcode_libdir_flag_spec is actually meaningless, as there is
11410 # no search path for DLLs.
11411 case $cc_basename in
11412 cl*)
11413 # Native MSVC
11414 hardcode_libdir_flag_spec=' '
11415 allow_undefined_flag=unsupported
11416 always_export_symbols=yes
11417 file_list_spec='@'
11418 # Tell ltmain to make .lib files, not .a files.
11419 libext=lib
11420 # Tell ltmain to make .dll files, not .so files.
11421 shrext_cmds=.dll
11422 # FIXME: Setting linknames here is a bad hack.
11423 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11424 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11425 cp "$export_symbols" "$output_objdir/$soname.def";
11426 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11427 else
11428 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11430 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11431 linknames='
11432 # The linker will not automatically build a static lib if we build a DLL.
11433 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11434 enable_shared_with_static_runtimes=yes
11435 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11437 # Don't use ranlib
11438 old_postinstall_cmds='chmod 644 $oldlib'
11439 postlink_cmds='lt_outputfile="@OUTPUT@"~
11440 lt_tool_outputfile="@TOOL_OUTPUT@"~
11441 case $lt_outputfile in
11442 *.exe|*.EXE) ;;
11444 lt_outputfile=$lt_outputfile.exe
11445 lt_tool_outputfile=$lt_tool_outputfile.exe
11447 esac~
11448 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11449 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11450 $RM "$lt_outputfile.manifest";
11454 # Assume MSVC wrapper
11455 hardcode_libdir_flag_spec=' '
11456 allow_undefined_flag=unsupported
11457 # Tell ltmain to make .lib files, not .a files.
11458 libext=lib
11459 # Tell ltmain to make .dll files, not .so files.
11460 shrext_cmds=.dll
11461 # FIXME: Setting linknames here is a bad hack.
11462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11463 # The linker will automatically build a .lib file if we build a DLL.
11464 old_archive_from_new_cmds='true'
11465 # FIXME: Should let the user specify the lib program.
11466 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11467 enable_shared_with_static_runtimes=yes
11469 esac
11472 darwin* | rhapsody*)
11475 archive_cmds_need_lc=no
11476 hardcode_direct=no
11477 hardcode_automatic=yes
11478 hardcode_shlibpath_var=unsupported
11479 if test yes = "$lt_cv_ld_force_load"; then
11480 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\"`'
11482 else
11483 whole_archive_flag_spec=''
11485 link_all_deplibs=yes
11486 allow_undefined_flag=$_lt_dar_allow_undefined
11487 case $cc_basename in
11488 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11489 *) _lt_dar_can_shared=$GCC ;;
11490 esac
11491 if test yes = "$_lt_dar_can_shared"; then
11492 output_verbose_link_cmd=func_echo_all
11493 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11494 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11495 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"
11496 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"
11498 else
11499 ld_shlibs=no
11504 dgux*)
11505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11506 hardcode_libdir_flag_spec='-L$libdir'
11507 hardcode_shlibpath_var=no
11510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11511 # support. Future versions do this automatically, but an explicit c++rt0.o
11512 # does not break anything, and helps significantly (at the cost of a little
11513 # extra space).
11514 freebsd2.2*)
11515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11516 hardcode_libdir_flag_spec='-R$libdir'
11517 hardcode_direct=yes
11518 hardcode_shlibpath_var=no
11521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11522 freebsd2.*)
11523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_direct=yes
11525 hardcode_minus_L=yes
11526 hardcode_shlibpath_var=no
11529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11530 freebsd* | dragonfly*)
11531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11532 hardcode_libdir_flag_spec='-R$libdir'
11533 hardcode_direct=yes
11534 hardcode_shlibpath_var=no
11537 hpux9*)
11538 if test yes = "$GCC"; then
11539 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11540 else
11541 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11543 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11544 hardcode_libdir_separator=:
11545 hardcode_direct=yes
11547 # hardcode_minus_L: Not really in the search PATH,
11548 # but as the default location of the library.
11549 hardcode_minus_L=yes
11550 export_dynamic_flag_spec='$wl-E'
11553 hpux10*)
11554 if test yes,no = "$GCC,$with_gnu_ld"; then
11555 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11556 else
11557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11559 if test no = "$with_gnu_ld"; then
11560 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11561 hardcode_libdir_separator=:
11562 hardcode_direct=yes
11563 hardcode_direct_absolute=yes
11564 export_dynamic_flag_spec='$wl-E'
11565 # hardcode_minus_L: Not really in the search PATH,
11566 # but as the default location of the library.
11567 hardcode_minus_L=yes
11571 hpux11*)
11572 if test yes,no = "$GCC,$with_gnu_ld"; then
11573 case $host_cpu in
11574 hppa*64*)
11575 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11577 ia64*)
11578 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11581 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11583 esac
11584 else
11585 case $host_cpu in
11586 hppa*64*)
11587 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11589 ia64*)
11590 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11594 # Older versions of the 11.00 compiler do not understand -b yet
11595 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11597 $as_echo_n "checking if $CC understands -b... " >&6; }
11598 if ${lt_cv_prog_compiler__b+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 lt_cv_prog_compiler__b=no
11602 save_LDFLAGS=$LDFLAGS
11603 LDFLAGS="$LDFLAGS -b"
11604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11606 # The linker can only warn and ignore the option if not recognized
11607 # So say no if there are warnings
11608 if test -s conftest.err; then
11609 # Append any errors to the config.log.
11610 cat conftest.err 1>&5
11611 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11613 if diff conftest.exp conftest.er2 >/dev/null; then
11614 lt_cv_prog_compiler__b=yes
11616 else
11617 lt_cv_prog_compiler__b=yes
11620 $RM -r conftest*
11621 LDFLAGS=$save_LDFLAGS
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11625 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11627 if test yes = "$lt_cv_prog_compiler__b"; then
11628 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11629 else
11630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11634 esac
11636 if test no = "$with_gnu_ld"; then
11637 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11638 hardcode_libdir_separator=:
11640 case $host_cpu in
11641 hppa*64*|ia64*)
11642 hardcode_direct=no
11643 hardcode_shlibpath_var=no
11646 hardcode_direct=yes
11647 hardcode_direct_absolute=yes
11648 export_dynamic_flag_spec='$wl-E'
11650 # hardcode_minus_L: Not really in the search PATH,
11651 # but as the default location of the library.
11652 hardcode_minus_L=yes
11654 esac
11658 irix5* | irix6* | nonstopux*)
11659 if test yes = "$GCC"; then
11660 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'
11661 # Try to use the -exported_symbol ld option, if it does not
11662 # work, assume that -exports_file does not work either and
11663 # implicitly export all symbols.
11664 # This should be the same for all languages, so no per-tag cache variable.
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11666 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11667 if ${lt_cv_irix_exported_symbol+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 save_LDFLAGS=$LDFLAGS
11671 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674 int foo (void) { return 0; }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 lt_cv_irix_exported_symbol=yes
11678 else
11679 lt_cv_irix_exported_symbol=no
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LDFLAGS=$save_LDFLAGS
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11686 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11687 if test yes = "$lt_cv_irix_exported_symbol"; then
11688 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'
11690 else
11691 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'
11692 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'
11694 archive_cmds_need_lc='no'
11695 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11696 hardcode_libdir_separator=:
11697 inherit_rpath=yes
11698 link_all_deplibs=yes
11701 linux*)
11702 case $cc_basename in
11703 tcc*)
11704 # Fabrice Bellard et al's Tiny C Compiler
11705 ld_shlibs=yes
11706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11708 esac
11711 netbsd*)
11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11714 else
11715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11717 hardcode_libdir_flag_spec='-R$libdir'
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11722 newsos6)
11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_direct=yes
11725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11726 hardcode_libdir_separator=:
11727 hardcode_shlibpath_var=no
11730 *nto* | *qnx*)
11733 openbsd* | bitrig*)
11734 if test -f /usr/libexec/ld.so; then
11735 hardcode_direct=yes
11736 hardcode_shlibpath_var=no
11737 hardcode_direct_absolute=yes
11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11741 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11742 export_dynamic_flag_spec='$wl-E'
11743 else
11744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11745 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11747 else
11748 ld_shlibs=no
11752 os2*)
11753 hardcode_libdir_flag_spec='-L$libdir'
11754 hardcode_minus_L=yes
11755 allow_undefined_flag=unsupported
11756 shrext_cmds=.dll
11757 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11758 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11759 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11760 $ECHO EXPORTS >> $output_objdir/$libname.def~
11761 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11763 emximp -o $lib $output_objdir/$libname.def'
11764 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11765 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11766 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11767 $ECHO EXPORTS >> $output_objdir/$libname.def~
11768 prefix_cmds="$SED"~
11769 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11770 prefix_cmds="$prefix_cmds -e 1d";
11772 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11773 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11774 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11775 emximp -o $lib $output_objdir/$libname.def'
11776 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11777 enable_shared_with_static_runtimes=yes
11780 osf3*)
11781 if test yes = "$GCC"; then
11782 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11783 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'
11784 else
11785 allow_undefined_flag=' -expect_unresolved \*'
11786 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'
11788 archive_cmds_need_lc='no'
11789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11790 hardcode_libdir_separator=:
11793 osf4* | osf5*) # as osf3* with the addition of -msym flag
11794 if test yes = "$GCC"; then
11795 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11796 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'
11797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11798 else
11799 allow_undefined_flag=' -expect_unresolved \*'
11800 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'
11801 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~
11802 $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'
11804 # Both c and cxx compiler support -rpath directly
11805 hardcode_libdir_flag_spec='-rpath $libdir'
11807 archive_cmds_need_lc='no'
11808 hardcode_libdir_separator=:
11811 solaris*)
11812 no_undefined_flag=' -z defs'
11813 if test yes = "$GCC"; then
11814 wlarc='$wl'
11815 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11817 $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'
11818 else
11819 case `$CC -V 2>&1` in
11820 *"Compilers 5.0"*)
11821 wlarc=''
11822 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11824 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11827 wlarc='$wl'
11828 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11830 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11832 esac
11834 hardcode_libdir_flag_spec='-R$libdir'
11835 hardcode_shlibpath_var=no
11836 case $host_os in
11837 solaris2.[0-5] | solaris2.[0-5].*) ;;
11839 # The compiler driver will combine and reorder linker options,
11840 # but understands '-z linker_flag'. GCC discards it without '$wl',
11841 # but is careful enough not to reorder.
11842 # Supported since Solaris 2.6 (maybe 2.5.1?)
11843 if test yes = "$GCC"; then
11844 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11845 else
11846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11849 esac
11850 link_all_deplibs=yes
11853 sunos4*)
11854 if test sequent = "$host_vendor"; then
11855 # Use $CC to link under sequent, because it throws in some extra .o
11856 # files that make .init and .fini sections work.
11857 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11858 else
11859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11861 hardcode_libdir_flag_spec='-L$libdir'
11862 hardcode_direct=yes
11863 hardcode_minus_L=yes
11864 hardcode_shlibpath_var=no
11867 sysv4)
11868 case $host_vendor in
11869 sni)
11870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11871 hardcode_direct=yes # is this really true???
11873 siemens)
11874 ## LD is ld it makes a PLAMLIB
11875 ## CC just makes a GrossModule.
11876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11877 reload_cmds='$CC -r -o $output$reload_objs'
11878 hardcode_direct=no
11880 motorola)
11881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11884 esac
11885 runpath_var='LD_RUN_PATH'
11886 hardcode_shlibpath_var=no
11889 sysv4.3*)
11890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891 hardcode_shlibpath_var=no
11892 export_dynamic_flag_spec='-Bexport'
11895 sysv4*MP*)
11896 if test -d /usr/nec; then
11897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11898 hardcode_shlibpath_var=no
11899 runpath_var=LD_RUN_PATH
11900 hardcode_runpath_var=yes
11901 ld_shlibs=yes
11905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11906 no_undefined_flag='$wl-z,text'
11907 archive_cmds_need_lc=no
11908 hardcode_shlibpath_var=no
11909 runpath_var='LD_RUN_PATH'
11911 if test yes = "$GCC"; then
11912 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914 else
11915 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11920 sysv5* | sco3.2v5* | sco5v6*)
11921 # Note: We CANNOT use -z defs as we might desire, because we do not
11922 # link with -lc, and that would cause any symbols used from libc to
11923 # always be unresolved, which means just about no library would
11924 # ever link correctly. If we're not using GNU ld we use -z text
11925 # though, which does catch some bad symbols but isn't as heavy-handed
11926 # as -z defs.
11927 no_undefined_flag='$wl-z,text'
11928 allow_undefined_flag='$wl-z,nodefs'
11929 archive_cmds_need_lc=no
11930 hardcode_shlibpath_var=no
11931 hardcode_libdir_flag_spec='$wl-R,$libdir'
11932 hardcode_libdir_separator=':'
11933 link_all_deplibs=yes
11934 export_dynamic_flag_spec='$wl-Bexport'
11935 runpath_var='LD_RUN_PATH'
11937 if test yes = "$GCC"; then
11938 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 else
11941 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 uts4*)
11947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_libdir_flag_spec='-L$libdir'
11949 hardcode_shlibpath_var=no
11953 ld_shlibs=no
11955 esac
11957 if test sni = "$host_vendor"; then
11958 case $host in
11959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11960 export_dynamic_flag_spec='$wl-Blargedynsym'
11962 esac
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11967 $as_echo "$ld_shlibs" >&6; }
11968 test no = "$ld_shlibs" && can_build_shared=no
11970 with_gnu_ld=$with_gnu_ld
11987 # Do we need to explicitly link libc?
11989 case "x$archive_cmds_need_lc" in
11990 x|xyes)
11991 # Assume -lc should be added
11992 archive_cmds_need_lc=yes
11994 if test yes,yes = "$GCC,$enable_shared"; then
11995 case $archive_cmds in
11996 *'~'*)
11997 # FIXME: we may have to deal with multi-command sequences.
11999 '$CC '*)
12000 # Test whether the compiler implicitly links with -lc since on some
12001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12002 # to ld, don't add -lc before -lgcc.
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12004 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12005 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 $RM conftest*
12009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12012 (eval $ac_compile) 2>&5
12013 ac_status=$?
12014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12015 test $ac_status = 0; } 2>conftest.err; then
12016 soname=conftest
12017 lib=conftest
12018 libobjs=conftest.$ac_objext
12019 deplibs=
12020 wl=$lt_prog_compiler_wl
12021 pic_flag=$lt_prog_compiler_pic
12022 compiler_flags=-v
12023 linker_flags=-v
12024 verstring=
12025 output_objdir=.
12026 libname=conftest
12027 lt_save_allow_undefined_flag=$allow_undefined_flag
12028 allow_undefined_flag=
12029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12030 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12031 ac_status=$?
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }
12034 then
12035 lt_cv_archive_cmds_need_lc=no
12036 else
12037 lt_cv_archive_cmds_need_lc=yes
12039 allow_undefined_flag=$lt_save_allow_undefined_flag
12040 else
12041 cat conftest.err 1>&5
12043 $RM conftest*
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12047 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12048 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12050 esac
12053 esac
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12207 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12209 if test yes = "$GCC"; then
12210 case $host_os in
12211 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12212 *) lt_awk_arg='/^libraries:/' ;;
12213 esac
12214 case $host_os in
12215 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12216 *) lt_sed_strip_eq='s|=/|/|g' ;;
12217 esac
12218 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12219 case $lt_search_path_spec in
12220 *\;*)
12221 # if the path contains ";" then we assume it to be the separator
12222 # otherwise default to the standard path separator (i.e. ":") - it is
12223 # assumed that no part of a normal pathname contains ";" but that should
12224 # okay in the real world where ";" in dirpaths is itself problematic.
12225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12230 esac
12231 # Ok, now we have the path, separated by spaces, we can step through it
12232 # and add multilib dir if necessary...
12233 lt_tmp_lt_search_path_spec=
12234 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12235 # ...but if some path component already ends with the multilib dir we assume
12236 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12237 case "$lt_multi_os_dir; $lt_search_path_spec " in
12238 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12239 lt_multi_os_dir=
12241 esac
12242 for lt_sys_path in $lt_search_path_spec; do
12243 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12245 elif test -n "$lt_multi_os_dir"; then
12246 test -d "$lt_sys_path" && \
12247 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12249 done
12250 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12251 BEGIN {RS = " "; FS = "/|\n";} {
12252 lt_foo = "";
12253 lt_count = 0;
12254 for (lt_i = NF; lt_i > 0; lt_i--) {
12255 if ($lt_i != "" && $lt_i != ".") {
12256 if ($lt_i == "..") {
12257 lt_count++;
12258 } else {
12259 if (lt_count == 0) {
12260 lt_foo = "/" $lt_i lt_foo;
12261 } else {
12262 lt_count--;
12267 if (lt_foo != "") { lt_freq[lt_foo]++; }
12268 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12270 # AWK program above erroneously prepends '/' to C:/dos/paths
12271 # for these hosts.
12272 case $host_os in
12273 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12274 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12275 esac
12276 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12277 else
12278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12280 library_names_spec=
12281 libname_spec='lib$name'
12282 soname_spec=
12283 shrext_cmds=.so
12284 postinstall_cmds=
12285 postuninstall_cmds=
12286 finish_cmds=
12287 finish_eval=
12288 shlibpath_var=
12289 shlibpath_overrides_runpath=unknown
12290 version_type=none
12291 dynamic_linker="$host_os ld.so"
12292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12293 need_lib_prefix=unknown
12294 hardcode_into_libs=no
12296 # when you set need_version to no, make sure it does not cause -set_version
12297 # flags to be left without arguments
12298 need_version=unknown
12302 case $host_os in
12303 aix3*)
12304 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12306 shlibpath_var=LIBPATH
12308 # AIX 3 has no versioning support, so we append a major version to the name.
12309 soname_spec='$libname$release$shared_ext$major'
12312 aix[4-9]*)
12313 version_type=linux # correct to gnu/linux during the next big refactor
12314 need_lib_prefix=no
12315 need_version=no
12316 hardcode_into_libs=yes
12317 if test ia64 = "$host_cpu"; then
12318 # AIX 5 supports IA64
12319 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 else
12322 # With GCC up to 2.95.x, collect2 would create an import file
12323 # for dependence libraries. The import file would start with
12324 # the line '#! .'. This would cause the generated library to
12325 # depend on '.', always an invalid library. This was fixed in
12326 # development snapshots of GCC prior to 3.0.
12327 case $host_os in
12328 aix4 | aix4.[01] | aix4.[01].*)
12329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12330 echo ' yes '
12331 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12333 else
12334 can_build_shared=no
12337 esac
12338 # Using Import Files as archive members, it is possible to support
12339 # filename-based versioning of shared library archives on AIX. While
12340 # this would work for both with and without runtime linking, it will
12341 # prevent static linking of such archives. So we do filename-based
12342 # shared library versioning with .so extension only, which is used
12343 # when both runtime linking and shared linking is enabled.
12344 # Unfortunately, runtime linking may impact performance, so we do
12345 # not want this to be the default eventually. Also, we use the
12346 # versioned .so libs for executables only if there is the -brtl
12347 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12348 # To allow for filename-based versioning support, we need to create
12349 # libNAME.so.V as an archive file, containing:
12350 # *) an Import File, referring to the versioned filename of the
12351 # archive as well as the shared archive member, telling the
12352 # bitwidth (32 or 64) of that shared object, and providing the
12353 # list of exported symbols of that shared object, eventually
12354 # decorated with the 'weak' keyword
12355 # *) the shared object with the F_LOADONLY flag set, to really avoid
12356 # it being seen by the linker.
12357 # At run time we better use the real file rather than another symlink,
12358 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12360 case $with_aix_soname,$aix_use_runtimelinking in
12361 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12362 # soname into executable. Probably we can add versioning support to
12363 # collect2, so additional links can be useful in future.
12364 aix,yes) # traditional libtool
12365 dynamic_linker='AIX unversionable lib.so'
12366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12367 # instead of lib<name>.a to let people know that these are not
12368 # typical AIX shared libraries.
12369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 aix,no) # traditional AIX only
12372 dynamic_linker='AIX lib.a(lib.so.V)'
12373 # We preserve .a as extension for shared libraries through AIX4.2
12374 # and later when we are not doing run time linking.
12375 library_names_spec='$libname$release.a $libname.a'
12376 soname_spec='$libname$release$shared_ext$major'
12378 svr4,*) # full svr4 only
12379 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12380 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12381 # We do not specify a path in Import Files, so LIBPATH fires.
12382 shlibpath_overrides_runpath=yes
12384 *,yes) # both, prefer svr4
12385 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12386 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12387 # unpreferred sharedlib libNAME.a needs extra handling
12388 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12389 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12390 # We do not specify a path in Import Files, so LIBPATH fires.
12391 shlibpath_overrides_runpath=yes
12393 *,no) # both, prefer aix
12394 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12395 library_names_spec='$libname$release.a $libname.a'
12396 soname_spec='$libname$release$shared_ext$major'
12397 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12398 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12399 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12401 esac
12402 shlibpath_var=LIBPATH
12406 amigaos*)
12407 case $host_cpu in
12408 powerpc)
12409 # Since July 2007 AmigaOS4 officially supports .so libraries.
12410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12413 m68k)
12414 library_names_spec='$libname.ixlibrary $libname.a'
12415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12416 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12418 esac
12421 beos*)
12422 library_names_spec='$libname$shared_ext'
12423 dynamic_linker="$host_os ld.so"
12424 shlibpath_var=LIBRARY_PATH
12427 bsdi[45]*)
12428 version_type=linux # correct to gnu/linux during the next big refactor
12429 need_version=no
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12436 # the default ld.so.conf also contains /usr/contrib/lib and
12437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12438 # libtool to hard-code these into programs
12441 cygwin* | mingw* | pw32* | cegcc*)
12442 version_type=windows
12443 shrext_cmds=.dll
12444 need_version=no
12445 need_lib_prefix=no
12447 case $GCC,$cc_basename in
12448 yes,*)
12449 # gcc
12450 library_names_spec='$libname.dll.a'
12451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12452 postinstall_cmds='base_file=`basename \$file`~
12453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12454 dldir=$destdir/`dirname \$dlpath`~
12455 test -d \$dldir || mkdir -p \$dldir~
12456 $install_prog $dir/$dlname \$dldir/$dlname~
12457 chmod a+x \$dldir/$dlname~
12458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12462 dlpath=$dir/\$dldll~
12463 $RM \$dlpath'
12464 shlibpath_overrides_runpath=yes
12466 case $host_os in
12467 cygwin*)
12468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12469 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12473 mingw* | cegcc*)
12474 # MinGW DLLs use traditional 'lib' prefix
12475 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12477 pw32*)
12478 # pw32 DLLs use 'pw' prefix rather than 'lib'
12479 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12481 esac
12482 dynamic_linker='Win32 ld.exe'
12485 *,cl*)
12486 # Native MSVC
12487 libname_spec='$name'
12488 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12489 library_names_spec='$libname.dll.lib'
12491 case $build_os in
12492 mingw*)
12493 sys_lib_search_path_spec=
12494 lt_save_ifs=$IFS
12495 IFS=';'
12496 for lt_path in $LIB
12498 IFS=$lt_save_ifs
12499 # Let DOS variable expansion print the short 8.3 style file name.
12500 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12501 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12502 done
12503 IFS=$lt_save_ifs
12504 # Convert to MSYS style.
12505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12507 cygwin*)
12508 # Convert to unix form, then to dos form, then back to unix form
12509 # but this time dos style (no spaces!) so that the unix form looks
12510 # like /cygdrive/c/PROGRA~1:/cygdr...
12511 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12512 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12513 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12516 sys_lib_search_path_spec=$LIB
12517 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12518 # It is most probably a Windows format PATH.
12519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12520 else
12521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12523 # FIXME: find the short name or the path components, as spaces are
12524 # common. (e.g. "Program Files" -> "PROGRA~1")
12526 esac
12528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12529 postinstall_cmds='base_file=`basename \$file`~
12530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12531 dldir=$destdir/`dirname \$dlpath`~
12532 test -d \$dldir || mkdir -p \$dldir~
12533 $install_prog $dir/$dlname \$dldir/$dlname'
12534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12535 dlpath=$dir/\$dldll~
12536 $RM \$dlpath'
12537 shlibpath_overrides_runpath=yes
12538 dynamic_linker='Win32 link.exe'
12542 # Assume MSVC wrapper
12543 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12544 dynamic_linker='Win32 ld.exe'
12546 esac
12547 # FIXME: first we should search . and the directory the executable is in
12548 shlibpath_var=PATH
12551 darwin* | rhapsody*)
12552 dynamic_linker="$host_os dyld"
12553 version_type=darwin
12554 need_lib_prefix=no
12555 need_version=no
12556 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12557 soname_spec='$libname$release$major$shared_ext'
12558 shlibpath_overrides_runpath=yes
12559 shlibpath_var=DYLD_LIBRARY_PATH
12560 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12562 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12566 dgux*)
12567 version_type=linux # correct to gnu/linux during the next big refactor
12568 need_lib_prefix=no
12569 need_version=no
12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12571 soname_spec='$libname$release$shared_ext$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12575 freebsd* | dragonfly*)
12576 # DragonFly does not have aout. When/if they implement a new
12577 # versioning mechanism, adjust this.
12578 if test -x /usr/bin/objformat; then
12579 objformat=`/usr/bin/objformat`
12580 else
12581 case $host_os in
12582 freebsd[23].*) objformat=aout ;;
12583 *) objformat=elf ;;
12584 esac
12586 version_type=freebsd-$objformat
12587 case $version_type in
12588 freebsd-elf*)
12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12590 soname_spec='$libname$release$shared_ext$major'
12591 need_version=no
12592 need_lib_prefix=no
12594 freebsd-*)
12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12596 need_version=yes
12598 esac
12599 shlibpath_var=LD_LIBRARY_PATH
12600 case $host_os in
12601 freebsd2.*)
12602 shlibpath_overrides_runpath=yes
12604 freebsd3.[01]* | freebsdelf3.[01]*)
12605 shlibpath_overrides_runpath=yes
12606 hardcode_into_libs=yes
12608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12610 shlibpath_overrides_runpath=no
12611 hardcode_into_libs=yes
12613 *) # from 4.6 on, and DragonFly
12614 shlibpath_overrides_runpath=yes
12615 hardcode_into_libs=yes
12617 esac
12620 haiku*)
12621 version_type=linux # correct to gnu/linux during the next big refactor
12622 need_lib_prefix=no
12623 need_version=no
12624 dynamic_linker="$host_os runtime_loader"
12625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12626 soname_spec='$libname$release$shared_ext$major'
12627 shlibpath_var=LIBRARY_PATH
12628 shlibpath_overrides_runpath=no
12629 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12630 hardcode_into_libs=yes
12633 hpux9* | hpux10* | hpux11*)
12634 # Give a soname corresponding to the major version so that dld.sl refuses to
12635 # link against other versions.
12636 version_type=sunos
12637 need_lib_prefix=no
12638 need_version=no
12639 case $host_cpu in
12640 ia64*)
12641 shrext_cmds='.so'
12642 hardcode_into_libs=yes
12643 dynamic_linker="$host_os dld.so"
12644 shlibpath_var=LD_LIBRARY_PATH
12645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 if test 32 = "$HPUX_IA64_MODE"; then
12649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12650 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12651 else
12652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12653 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12656 hppa*64*)
12657 shrext_cmds='.sl'
12658 hardcode_into_libs=yes
12659 dynamic_linker="$host_os dld.sl"
12660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12663 soname_spec='$libname$release$shared_ext$major'
12664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12668 shrext_cmds='.sl'
12669 dynamic_linker="$host_os dld.sl"
12670 shlibpath_var=SHLIB_PATH
12671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12673 soname_spec='$libname$release$shared_ext$major'
12675 esac
12676 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12677 postinstall_cmds='chmod 555 $lib'
12678 # or fails outright, so override atomically:
12679 install_override_mode=555
12682 interix[3-9]*)
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 need_lib_prefix=no
12685 need_version=no
12686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12687 soname_spec='$libname$release$shared_ext$major'
12688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12689 shlibpath_var=LD_LIBRARY_PATH
12690 shlibpath_overrides_runpath=no
12691 hardcode_into_libs=yes
12694 irix5* | irix6* | nonstopux*)
12695 case $host_os in
12696 nonstopux*) version_type=nonstopux ;;
12698 if test yes = "$lt_cv_prog_gnu_ld"; then
12699 version_type=linux # correct to gnu/linux during the next big refactor
12700 else
12701 version_type=irix
12702 fi ;;
12703 esac
12704 need_lib_prefix=no
12705 need_version=no
12706 soname_spec='$libname$release$shared_ext$major'
12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12708 case $host_os in
12709 irix5* | nonstopux*)
12710 libsuff= shlibsuff=
12713 case $LD in # libtool.m4 will add one of these switches to LD
12714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12715 libsuff= shlibsuff= libmagic=32-bit;;
12716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12717 libsuff=32 shlibsuff=N32 libmagic=N32;;
12718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12720 *) libsuff= shlibsuff= libmagic=never-match;;
12721 esac
12723 esac
12724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12725 shlibpath_overrides_runpath=no
12726 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12727 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12728 hardcode_into_libs=yes
12731 # No shared lib support for Linux oldld, aout, or coff.
12732 linux*oldld* | linux*aout* | linux*coff*)
12733 dynamic_linker=no
12736 linux*android*)
12737 version_type=none # Android doesn't support versioned libraries.
12738 need_lib_prefix=no
12739 need_version=no
12740 library_names_spec='$libname$release$shared_ext'
12741 soname_spec='$libname$release$shared_ext'
12742 finish_cmds=
12743 shlibpath_var=LD_LIBRARY_PATH
12744 shlibpath_overrides_runpath=yes
12746 # This implies no fast_install, which is unacceptable.
12747 # Some rework will be needed to allow for fast_install
12748 # before this can be enabled.
12749 hardcode_into_libs=yes
12751 dynamic_linker='Android linker'
12752 # Don't embed -rpath directories since the linker doesn't support them.
12753 hardcode_libdir_flag_spec='-L$libdir'
12756 # This must be glibc/ELF.
12757 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12758 version_type=linux # correct to gnu/linux during the next big refactor
12759 need_lib_prefix=no
12760 need_version=no
12761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12762 soname_spec='$libname$release$shared_ext$major'
12763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath=no
12767 # Some binutils ld are patched to set DT_RUNPATH
12768 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 lt_cv_shlibpath_overrides_runpath=no
12772 save_LDFLAGS=$LDFLAGS
12773 save_libdir=$libdir
12774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12780 main ()
12784 return 0;
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12789 lt_cv_shlibpath_overrides_runpath=yes
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LDFLAGS=$save_LDFLAGS
12795 libdir=$save_libdir
12799 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12801 # This implies no fast_install, which is unacceptable.
12802 # Some rework will be needed to allow for fast_install
12803 # before this can be enabled.
12804 hardcode_into_libs=yes
12806 # Ideally, we could use ldconfig to report *all* directores which are
12807 # searched for libraries, however this is still not possible. Aside from not
12808 # being certain /sbin/ldconfig is available, command
12809 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12810 # even though it is searched at run-time. Try to do the best guess by
12811 # appending ld.so.conf contents (and includes) to the search path.
12812 if test -f /etc/ld.so.conf; then
12813 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' ' '`
12814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12817 # We used to test for /lib/ld.so.1 and disable shared libraries on
12818 # powerpc, because MkLinux only supported shared libraries with the
12819 # GNU dynamic linker. Since this was broken with cross compilers,
12820 # most powerpc-linux boxes support dynamic linking these days and
12821 # people can always --disable-shared, the test was removed, and we
12822 # assume the GNU/Linux dynamic linker is in use.
12823 dynamic_linker='GNU/Linux ld.so'
12826 netbsd*)
12827 version_type=sunos
12828 need_lib_prefix=no
12829 need_version=no
12830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12833 dynamic_linker='NetBSD (a.out) ld.so'
12834 else
12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12836 soname_spec='$libname$release$shared_ext$major'
12837 dynamic_linker='NetBSD ld.elf_so'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=yes
12841 hardcode_into_libs=yes
12844 newsos6)
12845 version_type=linux # correct to gnu/linux during the next big refactor
12846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12851 *nto* | *qnx*)
12852 version_type=qnx
12853 need_lib_prefix=no
12854 need_version=no
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 soname_spec='$libname$release$shared_ext$major'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=no
12859 hardcode_into_libs=yes
12860 dynamic_linker='ldqnx.so'
12863 openbsd* | bitrig*)
12864 version_type=sunos
12865 sys_lib_dlsearch_path_spec=/usr/lib
12866 need_lib_prefix=no
12867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12868 need_version=no
12869 else
12870 need_version=yes
12872 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes
12878 os2*)
12879 libname_spec='$name'
12880 version_type=windows
12881 shrext_cmds=.dll
12882 need_version=no
12883 need_lib_prefix=no
12884 # OS/2 can only load a DLL with a base name of 8 characters or less.
12885 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12886 v=$($ECHO $release$versuffix | tr -d .-);
12887 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12888 $ECHO $n$v`$shared_ext'
12889 library_names_spec='${libname}_dll.$libext'
12890 dynamic_linker='OS/2 ld.exe'
12891 shlibpath_var=BEGINLIBPATH
12892 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894 postinstall_cmds='base_file=`basename \$file`~
12895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12896 dldir=$destdir/`dirname \$dlpath`~
12897 test -d \$dldir || mkdir -p \$dldir~
12898 $install_prog $dir/$dlname \$dldir/$dlname~
12899 chmod a+x \$dldir/$dlname~
12900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12904 dlpath=$dir/\$dldll~
12905 $RM \$dlpath'
12908 osf3* | osf4* | osf5*)
12909 version_type=osf
12910 need_lib_prefix=no
12911 need_version=no
12912 soname_spec='$libname$release$shared_ext$major'
12913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12919 rdos*)
12920 dynamic_linker=no
12923 solaris*)
12924 version_type=linux # correct to gnu/linux during the next big refactor
12925 need_lib_prefix=no
12926 need_version=no
12927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12928 soname_spec='$libname$release$shared_ext$major'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 shlibpath_overrides_runpath=yes
12931 hardcode_into_libs=yes
12932 # ldd complains unless libraries are executable
12933 postinstall_cmds='chmod +x $lib'
12936 sunos4*)
12937 version_type=sunos
12938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12939 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=yes
12942 if test yes = "$with_gnu_ld"; then
12943 need_lib_prefix=no
12945 need_version=yes
12948 sysv4 | sysv4.3*)
12949 version_type=linux # correct to gnu/linux during the next big refactor
12950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12951 soname_spec='$libname$release$shared_ext$major'
12952 shlibpath_var=LD_LIBRARY_PATH
12953 case $host_vendor in
12954 sni)
12955 shlibpath_overrides_runpath=no
12956 need_lib_prefix=no
12957 runpath_var=LD_RUN_PATH
12959 siemens)
12960 need_lib_prefix=no
12962 motorola)
12963 need_lib_prefix=no
12964 need_version=no
12965 shlibpath_overrides_runpath=no
12966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12968 esac
12971 sysv4*MP*)
12972 if test -d /usr/nec; then
12973 version_type=linux # correct to gnu/linux during the next big refactor
12974 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12975 soname_spec='$libname$shared_ext.$major'
12976 shlibpath_var=LD_LIBRARY_PATH
12980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12981 version_type=sco
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12985 soname_spec='$libname$release$shared_ext$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=yes
12988 hardcode_into_libs=yes
12989 if test yes = "$with_gnu_ld"; then
12990 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12991 else
12992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12993 case $host_os in
12994 sco3.2v5*)
12995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12997 esac
12999 sys_lib_dlsearch_path_spec='/usr/lib'
13002 tpf*)
13003 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13004 version_type=linux # correct to gnu/linux during the next big refactor
13005 need_lib_prefix=no
13006 need_version=no
13007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=no
13010 hardcode_into_libs=yes
13013 uts4*)
13014 version_type=linux # correct to gnu/linux during the next big refactor
13015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13016 soname_spec='$libname$release$shared_ext$major'
13017 shlibpath_var=LD_LIBRARY_PATH
13021 dynamic_linker=no
13023 esac
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13025 $as_echo "$dynamic_linker" >&6; }
13026 test no = "$dynamic_linker" && can_build_shared=no
13028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13029 if test yes = "$GCC"; then
13030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13033 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13034 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13037 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13038 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13041 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13042 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13044 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13045 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13047 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13048 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13147 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13148 hardcode_action=
13149 if test -n "$hardcode_libdir_flag_spec" ||
13150 test -n "$runpath_var" ||
13151 test yes = "$hardcode_automatic"; then
13153 # We can hardcode non-existent directories.
13154 if test no != "$hardcode_direct" &&
13155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13156 # have to relink, otherwise we might link with an installed library
13157 # when we should be linking with a yet-to-be-installed one
13158 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13159 test no != "$hardcode_minus_L"; then
13160 # Linking always hardcodes the temporary library directory.
13161 hardcode_action=relink
13162 else
13163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13164 hardcode_action=immediate
13166 else
13167 # We cannot hardcode anything, or else we can only hardcode existing
13168 # directories.
13169 hardcode_action=unsupported
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13172 $as_echo "$hardcode_action" >&6; }
13174 if test relink = "$hardcode_action" ||
13175 test yes = "$inherit_rpath"; then
13176 # Fast installation is not supported
13177 enable_fast_install=no
13178 elif test yes = "$shlibpath_overrides_runpath" ||
13179 test no = "$enable_shared"; then
13180 # Fast installation is not necessary
13181 enable_fast_install=needless
13189 if test yes != "$enable_dlopen"; then
13190 enable_dlopen=unknown
13191 enable_dlopen_self=unknown
13192 enable_dlopen_self_static=unknown
13193 else
13194 lt_cv_dlopen=no
13195 lt_cv_dlopen_libs=
13197 case $host_os in
13198 beos*)
13199 lt_cv_dlopen=load_add_on
13200 lt_cv_dlopen_libs=
13201 lt_cv_dlopen_self=yes
13204 mingw* | pw32* | cegcc*)
13205 lt_cv_dlopen=LoadLibrary
13206 lt_cv_dlopen_libs=
13209 cygwin*)
13210 lt_cv_dlopen=dlopen
13211 lt_cv_dlopen_libs=
13214 darwin*)
13215 # if libdl is installed we need to link against it
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13218 if ${ac_cv_lib_dl_dlopen+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-ldl $LIBS"
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13229 #ifdef __cplusplus
13230 extern "C"
13231 #endif
13232 char dlopen ();
13234 main ()
13236 return dlopen ();
13238 return 0;
13240 _ACEOF
13241 if ac_fn_c_try_link "$LINENO"; then :
13242 ac_cv_lib_dl_dlopen=yes
13243 else
13244 ac_cv_lib_dl_dlopen=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13252 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13253 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13254 else
13256 lt_cv_dlopen=dyld
13257 lt_cv_dlopen_libs=
13258 lt_cv_dlopen_self=yes
13264 tpf*)
13265 # Don't try to run any link tests for TPF. We know it's impossible
13266 # because TPF is a cross-compiler, and we know how we open DSOs.
13267 lt_cv_dlopen=dlopen
13268 lt_cv_dlopen_libs=
13269 lt_cv_dlopen_self=no
13273 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13274 if test "x$ac_cv_func_shl_load" = xyes; then :
13275 lt_cv_dlopen=shl_load
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13278 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13279 if ${ac_cv_lib_dld_shl_load+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-ldld $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char shl_load ();
13295 main ()
13297 return shl_load ();
13299 return 0;
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_dld_shl_load=yes
13304 else
13305 ac_cv_lib_dld_shl_load=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13312 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13313 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13314 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13315 else
13316 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13317 if test "x$ac_cv_func_dlopen" = xyes; then :
13318 lt_cv_dlopen=dlopen
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13321 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13322 if ${ac_cv_lib_dl_dlopen+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 ac_check_lib_save_LIBS=$LIBS
13326 LIBS="-ldl $LIBS"
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 char dlopen ();
13338 main ()
13340 return dlopen ();
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 ac_cv_lib_dl_dlopen=yes
13347 else
13348 ac_cv_lib_dl_dlopen=no
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 LIBS=$ac_check_lib_save_LIBS
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13355 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13356 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13357 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13360 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13361 if ${ac_cv_lib_svld_dlopen+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lsvld $LIBS"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char dlopen ();
13377 main ()
13379 return dlopen ();
13381 return 0;
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_lib_svld_dlopen=yes
13386 else
13387 ac_cv_lib_svld_dlopen=no
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13394 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13395 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13396 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13397 else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13399 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13400 if ${ac_cv_lib_dld_dld_link+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 ac_check_lib_save_LIBS=$LIBS
13404 LIBS="-ldld $LIBS"
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13408 /* Override any GCC internal prototype to avoid an error.
13409 Use char because int might match the return type of a GCC
13410 builtin and then its argument prototype would still apply. */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 char dld_link ();
13416 main ()
13418 return dld_link ();
13420 return 0;
13422 _ACEOF
13423 if ac_fn_c_try_link "$LINENO"; then :
13424 ac_cv_lib_dld_dld_link=yes
13425 else
13426 ac_cv_lib_dld_dld_link=no
13428 rm -f core conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13433 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13434 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13435 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13454 esac
13456 if test no = "$lt_cv_dlopen"; then
13457 enable_dlopen=no
13458 else
13459 enable_dlopen=yes
13462 case $lt_cv_dlopen in
13463 dlopen)
13464 save_CPPFLAGS=$CPPFLAGS
13465 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13467 save_LDFLAGS=$LDFLAGS
13468 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13470 save_LIBS=$LIBS
13471 LIBS="$lt_cv_dlopen_libs $LIBS"
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13474 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13475 if ${lt_cv_dlopen_self+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 if test yes = "$cross_compiling"; then :
13479 lt_cv_dlopen_self=cross
13480 else
13481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13482 lt_status=$lt_dlunknown
13483 cat > conftest.$ac_ext <<_LT_EOF
13484 #line $LINENO "configure"
13485 #include "confdefs.h"
13487 #if HAVE_DLFCN_H
13488 #include <dlfcn.h>
13489 #endif
13491 #include <stdio.h>
13493 #ifdef RTLD_GLOBAL
13494 # define LT_DLGLOBAL RTLD_GLOBAL
13495 #else
13496 # ifdef DL_GLOBAL
13497 # define LT_DLGLOBAL DL_GLOBAL
13498 # else
13499 # define LT_DLGLOBAL 0
13500 # endif
13501 #endif
13503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13504 find out it does not work in some platform. */
13505 #ifndef LT_DLLAZY_OR_NOW
13506 # ifdef RTLD_LAZY
13507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13508 # else
13509 # ifdef DL_LAZY
13510 # define LT_DLLAZY_OR_NOW DL_LAZY
13511 # else
13512 # ifdef RTLD_NOW
13513 # define LT_DLLAZY_OR_NOW RTLD_NOW
13514 # else
13515 # ifdef DL_NOW
13516 # define LT_DLLAZY_OR_NOW DL_NOW
13517 # else
13518 # define LT_DLLAZY_OR_NOW 0
13519 # endif
13520 # endif
13521 # endif
13522 # endif
13523 #endif
13525 /* When -fvisibility=hidden is used, assume the code has been annotated
13526 correspondingly for the symbols needed. */
13527 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13528 int fnord () __attribute__((visibility("default")));
13529 #endif
13531 int fnord () { return 42; }
13532 int main ()
13534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13535 int status = $lt_dlunknown;
13537 if (self)
13539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13540 else
13542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13543 else puts (dlerror ());
13545 /* dlclose (self); */
13547 else
13548 puts (dlerror ());
13550 return status;
13552 _LT_EOF
13553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13554 (eval $ac_link) 2>&5
13555 ac_status=$?
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13558 (./conftest; exit; ) >&5 2>/dev/null
13559 lt_status=$?
13560 case x$lt_status in
13561 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13562 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13563 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13564 esac
13565 else :
13566 # compilation failed
13567 lt_cv_dlopen_self=no
13570 rm -fr conftest*
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13575 $as_echo "$lt_cv_dlopen_self" >&6; }
13577 if test yes = "$lt_cv_dlopen_self"; then
13578 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13580 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13581 if ${lt_cv_dlopen_self_static+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 if test yes = "$cross_compiling"; then :
13585 lt_cv_dlopen_self_static=cross
13586 else
13587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13588 lt_status=$lt_dlunknown
13589 cat > conftest.$ac_ext <<_LT_EOF
13590 #line $LINENO "configure"
13591 #include "confdefs.h"
13593 #if HAVE_DLFCN_H
13594 #include <dlfcn.h>
13595 #endif
13597 #include <stdio.h>
13599 #ifdef RTLD_GLOBAL
13600 # define LT_DLGLOBAL RTLD_GLOBAL
13601 #else
13602 # ifdef DL_GLOBAL
13603 # define LT_DLGLOBAL DL_GLOBAL
13604 # else
13605 # define LT_DLGLOBAL 0
13606 # endif
13607 #endif
13609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13610 find out it does not work in some platform. */
13611 #ifndef LT_DLLAZY_OR_NOW
13612 # ifdef RTLD_LAZY
13613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13614 # else
13615 # ifdef DL_LAZY
13616 # define LT_DLLAZY_OR_NOW DL_LAZY
13617 # else
13618 # ifdef RTLD_NOW
13619 # define LT_DLLAZY_OR_NOW RTLD_NOW
13620 # else
13621 # ifdef DL_NOW
13622 # define LT_DLLAZY_OR_NOW DL_NOW
13623 # else
13624 # define LT_DLLAZY_OR_NOW 0
13625 # endif
13626 # endif
13627 # endif
13628 # endif
13629 #endif
13631 /* When -fvisibility=hidden is used, assume the code has been annotated
13632 correspondingly for the symbols needed. */
13633 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13634 int fnord () __attribute__((visibility("default")));
13635 #endif
13637 int fnord () { return 42; }
13638 int main ()
13640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13641 int status = $lt_dlunknown;
13643 if (self)
13645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13646 else
13648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13649 else puts (dlerror ());
13651 /* dlclose (self); */
13653 else
13654 puts (dlerror ());
13656 return status;
13658 _LT_EOF
13659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13660 (eval $ac_link) 2>&5
13661 ac_status=$?
13662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13663 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13664 (./conftest; exit; ) >&5 2>/dev/null
13665 lt_status=$?
13666 case x$lt_status in
13667 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13668 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13669 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13670 esac
13671 else :
13672 # compilation failed
13673 lt_cv_dlopen_self_static=no
13676 rm -fr conftest*
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13681 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13684 CPPFLAGS=$save_CPPFLAGS
13685 LDFLAGS=$save_LDFLAGS
13686 LIBS=$save_LIBS
13688 esac
13690 case $lt_cv_dlopen_self in
13691 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13692 *) enable_dlopen_self=unknown ;;
13693 esac
13695 case $lt_cv_dlopen_self_static in
13696 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13697 *) enable_dlopen_self_static=unknown ;;
13698 esac
13717 striplib=
13718 old_striplib=
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13720 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13721 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13722 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13723 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13725 $as_echo "yes" >&6; }
13726 else
13727 # FIXME - insert some real tests, host_os isn't really good enough
13728 case $host_os in
13729 darwin*)
13730 if test -n "$STRIP"; then
13731 striplib="$STRIP -x"
13732 old_striplib="$STRIP -S"
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13734 $as_echo "yes" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13744 esac
13758 # Report what library types will actually be built
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13762 $as_echo "$can_build_shared" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13765 $as_echo_n "checking whether to build shared libraries... " >&6; }
13766 test no = "$can_build_shared" && enable_shared=no
13768 # On AIX, shared libraries and static libraries use the same namespace, and
13769 # are all built from PIC.
13770 case $host_os in
13771 aix3*)
13772 test yes = "$enable_shared" && enable_static=no
13773 if test -n "$RANLIB"; then
13774 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13775 postinstall_cmds='$RANLIB $lib'
13779 aix[4-9]*)
13780 if test ia64 != "$host_cpu"; then
13781 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13782 yes,aix,yes) ;; # shared object as lib.so file only
13783 yes,svr4,*) ;; # shared object as lib.so archive member only
13784 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13785 esac
13788 esac
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13790 $as_echo "$enable_shared" >&6; }
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13793 $as_echo_n "checking whether to build static libraries... " >&6; }
13794 # Make sure either enable_shared or enable_static is yes.
13795 test yes = "$enable_shared" || enable_static=yes
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13797 $as_echo "$enable_static" >&6; }
13803 ac_ext=c
13804 ac_cpp='$CPP $CPPFLAGS'
13805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13809 CC=$lt_save_CC
13825 ac_config_commands="$ac_config_commands libtool"
13830 # Only expand once:
13835 # Extract the first word of "ar", so it can be a program name with args.
13836 set dummy ar; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 $as_echo_n "checking for $ac_word... " >&6; }
13839 if ${ac_cv_path_AR+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 case $AR in
13843 [\\/]* | ?:[\\/]*)
13844 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13854 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13858 done
13859 done
13860 IFS=$as_save_IFS
13862 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13864 esac
13866 AR=$ac_cv_path_AR
13867 if test -n "$AR"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13869 $as_echo "$AR" >&6; }
13870 else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13876 # Extract the first word of "rm", so it can be a program name with args.
13877 set dummy rm; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_path_RM+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 case $RM in
13884 [\\/]* | ?:[\\/]*)
13885 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897 break 2
13899 done
13900 done
13901 IFS=$as_save_IFS
13903 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13905 esac
13907 RM=$ac_cv_path_RM
13908 if test -n "$RM"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13910 $as_echo "$RM" >&6; }
13911 else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13917 # Extract the first word of "cp", so it can be a program name with args.
13918 set dummy cp; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if ${ac_cv_path_CP+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 case $CP in
13925 [\\/]* | ?:[\\/]*)
13926 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13940 done
13941 done
13942 IFS=$as_save_IFS
13944 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13946 esac
13948 CP=$ac_cv_path_CP
13949 if test -n "$CP"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13951 $as_echo "$CP" >&6; }
13952 else
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13958 # Extract the first word of "ln", so it can be a program name with args.
13959 set dummy ln; ac_word=$2
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13961 $as_echo_n "checking for $ac_word... " >&6; }
13962 if ${ac_cv_path_LN+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 case $LN in
13966 [\\/]* | ?:[\\/]*)
13967 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971 for as_dir in $PATH
13973 IFS=$as_save_IFS
13974 test -z "$as_dir" && as_dir=.
13975 for ac_exec_ext in '' $ac_executable_extensions; do
13976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13977 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13979 break 2
13981 done
13982 done
13983 IFS=$as_save_IFS
13985 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13987 esac
13989 LN=$ac_cv_path_LN
13990 if test -n "$LN"; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13992 $as_echo "$LN" >&6; }
13993 else
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13999 # Extract the first word of "ls", so it can be a program name with args.
14000 set dummy ls; ac_word=$2
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002 $as_echo_n "checking for $ac_word... " >&6; }
14003 if ${ac_cv_path_LS+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 case $LS in
14007 [\\/]* | ?:[\\/]*)
14008 ac_cv_path_LS="$LS" # Let the user override the test with a path.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14022 done
14023 done
14024 IFS=$as_save_IFS
14026 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
14028 esac
14030 LS=$ac_cv_path_LS
14031 if test -n "$LS"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
14033 $as_echo "$LS" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14040 # Extract the first word of "sed", so it can be a program name with args.
14041 set dummy sed; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if ${ac_cv_path_SED+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 case $SED in
14048 [\\/]* | ?:[\\/]*)
14049 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14055 IFS=$as_save_IFS
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
14058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14059 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14061 break 2
14063 done
14064 done
14065 IFS=$as_save_IFS
14067 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14069 esac
14071 SED=$ac_cv_path_SED
14072 if test -n "$SED"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14074 $as_echo "$SED" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14081 # Extract the first word of "make", so it can be a program name with args.
14082 set dummy make; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if ${ac_cv_path_MAKE+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 case $MAKE in
14089 [\\/]* | ?:[\\/]*)
14090 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14100 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
14101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14104 done
14105 done
14106 IFS=$as_save_IFS
14109 esac
14111 MAKE=$ac_cv_path_MAKE
14112 if test -n "$MAKE"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
14114 $as_echo "$MAKE" >&6; }
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14126 $as_echo_n "checking whether NLS is requested... " >&6; }
14127 # Check whether --enable-nls was given.
14128 if test "${enable_nls+set}" = set; then :
14129 enableval=$enable_nls; USE_NLS=$enableval
14130 else
14131 USE_NLS=yes
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14135 $as_echo "$USE_NLS" >&6; }
14142 # Prepare PATH_SEPARATOR.
14143 # The user is always right.
14144 if test "${PATH_SEPARATOR+set}" != set; then
14145 echo "#! /bin/sh" >conf$$.sh
14146 echo "exit 0" >>conf$$.sh
14147 chmod +x conf$$.sh
14148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14149 PATH_SEPARATOR=';'
14150 else
14151 PATH_SEPARATOR=:
14153 rm -f conf$$.sh
14156 # Find out how to test for executable files. Don't use a zero-byte file,
14157 # as systems may use methods other than mode bits to determine executability.
14158 cat >conf$$.file <<_ASEOF
14159 #! /bin/sh
14160 exit 0
14161 _ASEOF
14162 chmod +x conf$$.file
14163 if test -x conf$$.file >/dev/null 2>&1; then
14164 ac_executable_p="test -x"
14165 else
14166 ac_executable_p="test -f"
14168 rm -f conf$$.file
14170 # Extract the first word of "msgfmt", so it can be a program name with args.
14171 set dummy msgfmt; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_path_MSGFMT+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 case "$MSGFMT" in
14178 [\\/]* | ?:[\\/]*)
14179 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14182 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14183 for ac_dir in $PATH; do
14184 IFS="$ac_save_IFS"
14185 test -z "$ac_dir" && ac_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14188 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14189 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14190 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14191 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14192 break 2
14195 done
14196 done
14197 IFS="$ac_save_IFS"
14198 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14200 esac
14202 MSGFMT="$ac_cv_path_MSGFMT"
14203 if test "$MSGFMT" != ":"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14205 $as_echo "$MSGFMT" >&6; }
14206 else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 $as_echo "no" >&6; }
14211 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14212 set dummy gmsgfmt; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_path_GMSGFMT+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 case $GMSGFMT in
14219 [\\/]* | ?:[\\/]*)
14220 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14234 done
14235 done
14236 IFS=$as_save_IFS
14238 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14240 esac
14242 GMSGFMT=$ac_cv_path_GMSGFMT
14243 if test -n "$GMSGFMT"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14245 $as_echo "$GMSGFMT" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14253 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14254 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14255 *) MSGFMT_015=$MSGFMT ;;
14256 esac
14258 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14259 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14260 *) GMSGFMT_015=$GMSGFMT ;;
14261 esac
14265 # Prepare PATH_SEPARATOR.
14266 # The user is always right.
14267 if test "${PATH_SEPARATOR+set}" != set; then
14268 echo "#! /bin/sh" >conf$$.sh
14269 echo "exit 0" >>conf$$.sh
14270 chmod +x conf$$.sh
14271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14272 PATH_SEPARATOR=';'
14273 else
14274 PATH_SEPARATOR=:
14276 rm -f conf$$.sh
14279 # Find out how to test for executable files. Don't use a zero-byte file,
14280 # as systems may use methods other than mode bits to determine executability.
14281 cat >conf$$.file <<_ASEOF
14282 #! /bin/sh
14283 exit 0
14284 _ASEOF
14285 chmod +x conf$$.file
14286 if test -x conf$$.file >/dev/null 2>&1; then
14287 ac_executable_p="test -x"
14288 else
14289 ac_executable_p="test -f"
14291 rm -f conf$$.file
14293 # Extract the first word of "xgettext", so it can be a program name with args.
14294 set dummy xgettext; ac_word=$2
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14296 $as_echo_n "checking for $ac_word... " >&6; }
14297 if ${ac_cv_path_XGETTEXT+:} false; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 case "$XGETTEXT" in
14301 [\\/]* | ?:[\\/]*)
14302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14306 for ac_dir in $PATH; do
14307 IFS="$ac_save_IFS"
14308 test -z "$ac_dir" && ac_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14311 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14312 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14313 (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
14314 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14315 break 2
14318 done
14319 done
14320 IFS="$ac_save_IFS"
14321 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14323 esac
14325 XGETTEXT="$ac_cv_path_XGETTEXT"
14326 if test "$XGETTEXT" != ":"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14328 $as_echo "$XGETTEXT" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14334 rm -f messages.po
14336 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14337 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14338 *) XGETTEXT_015=$XGETTEXT ;;
14339 esac
14343 # Prepare PATH_SEPARATOR.
14344 # The user is always right.
14345 if test "${PATH_SEPARATOR+set}" != set; then
14346 echo "#! /bin/sh" >conf$$.sh
14347 echo "exit 0" >>conf$$.sh
14348 chmod +x conf$$.sh
14349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14350 PATH_SEPARATOR=';'
14351 else
14352 PATH_SEPARATOR=:
14354 rm -f conf$$.sh
14357 # Find out how to test for executable files. Don't use a zero-byte file,
14358 # as systems may use methods other than mode bits to determine executability.
14359 cat >conf$$.file <<_ASEOF
14360 #! /bin/sh
14361 exit 0
14362 _ASEOF
14363 chmod +x conf$$.file
14364 if test -x conf$$.file >/dev/null 2>&1; then
14365 ac_executable_p="test -x"
14366 else
14367 ac_executable_p="test -f"
14369 rm -f conf$$.file
14371 # Extract the first word of "msgmerge", so it can be a program name with args.
14372 set dummy msgmerge; ac_word=$2
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14374 $as_echo_n "checking for $ac_word... " >&6; }
14375 if ${ac_cv_path_MSGMERGE+:} false; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 case "$MSGMERGE" in
14379 [\\/]* | ?:[\\/]*)
14380 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14384 for ac_dir in $PATH; do
14385 IFS="$ac_save_IFS"
14386 test -z "$ac_dir" && ac_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14389 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14390 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14391 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14392 break 2
14395 done
14396 done
14397 IFS="$ac_save_IFS"
14398 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14400 esac
14402 MSGMERGE="$ac_cv_path_MSGMERGE"
14403 if test "$MSGMERGE" != ":"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14405 $as_echo "$MSGMERGE" >&6; }
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14412 test -n "$localedir" || localedir='${datadir}/locale'
14415 ac_config_commands="$ac_config_commands po-directories"
14419 if test "X$prefix" = "XNONE"; then
14420 acl_final_prefix="$ac_default_prefix"
14421 else
14422 acl_final_prefix="$prefix"
14424 if test "X$exec_prefix" = "XNONE"; then
14425 acl_final_exec_prefix='${prefix}'
14426 else
14427 acl_final_exec_prefix="$exec_prefix"
14429 acl_save_prefix="$prefix"
14430 prefix="$acl_final_prefix"
14431 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14432 prefix="$acl_save_prefix"
14435 # Check whether --with-gnu-ld was given.
14436 if test "${with_gnu_ld+set}" = set; then :
14437 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14438 else
14439 with_gnu_ld=no
14442 # Prepare PATH_SEPARATOR.
14443 # The user is always right.
14444 if test "${PATH_SEPARATOR+set}" != set; then
14445 echo "#! /bin/sh" >conf$$.sh
14446 echo "exit 0" >>conf$$.sh
14447 chmod +x conf$$.sh
14448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14449 PATH_SEPARATOR=';'
14450 else
14451 PATH_SEPARATOR=:
14453 rm -f conf$$.sh
14455 ac_prog=ld
14456 if test "$GCC" = yes; then
14457 # Check if gcc -print-prog-name=ld gives a path.
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14459 $as_echo_n "checking for ld used by GCC... " >&6; }
14460 case $host in
14461 *-*-mingw*)
14462 # gcc leaves a trailing carriage return which upsets mingw
14463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14466 esac
14467 case $ac_prog in
14468 # Accept absolute paths.
14469 [\\/]* | [A-Za-z]:[\\/]*)
14470 re_direlt='/[^/][^/]*/\.\./'
14471 # Canonicalize the path of ld
14472 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14473 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14474 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14475 done
14476 test -z "$LD" && LD="$ac_prog"
14479 # If it fails, then pretend we aren't using GCC.
14480 ac_prog=ld
14483 # If it is relative, then search for the first ld in PATH.
14484 with_gnu_ld=unknown
14486 esac
14487 elif test "$with_gnu_ld" = yes; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14489 $as_echo_n "checking for GNU ld... " >&6; }
14490 else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14492 $as_echo_n "checking for non-GNU ld... " >&6; }
14494 if ${acl_cv_path_LD+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 if test -z "$LD"; then
14498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14499 for ac_dir in $PATH; do
14500 test -z "$ac_dir" && ac_dir=.
14501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14502 acl_cv_path_LD="$ac_dir/$ac_prog"
14503 # Check to see if the program is GNU ld. I'd rather use --version,
14504 # but apparently some GNU ld's only accept -v.
14505 # Break only if it was the GNU/non-GNU ld that we prefer.
14506 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14507 *GNU* | *'with BFD'*)
14508 test "$with_gnu_ld" != no && break ;;
14510 test "$with_gnu_ld" != yes && break ;;
14511 esac
14513 done
14514 IFS="$ac_save_ifs"
14515 else
14516 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14520 LD="$acl_cv_path_LD"
14521 if test -n "$LD"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14523 $as_echo "$LD" >&6; }
14524 else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14531 if ${acl_cv_prog_gnu_ld+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14535 case `$LD -v 2>&1 </dev/null` in
14536 *GNU* | *'with BFD'*)
14537 acl_cv_prog_gnu_ld=yes ;;
14539 acl_cv_prog_gnu_ld=no ;;
14540 esac
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14543 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14544 with_gnu_ld=$acl_cv_prog_gnu_ld
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14550 $as_echo_n "checking for shared library run path origin... " >&6; }
14551 if ${acl_cv_rpath+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14555 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14556 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14557 . ./conftest.sh
14558 rm -f ./conftest.sh
14559 acl_cv_rpath=done
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14563 $as_echo "$acl_cv_rpath" >&6; }
14564 wl="$acl_cv_wl"
14565 libext="$acl_cv_libext"
14566 shlibext="$acl_cv_shlibext"
14567 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14568 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14569 hardcode_direct="$acl_cv_hardcode_direct"
14570 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14571 # Check whether --enable-rpath was given.
14572 if test "${enable_rpath+set}" = set; then :
14573 enableval=$enable_rpath; :
14574 else
14575 enable_rpath=yes
14580 acl_libdirstem=lib
14581 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14582 if test -n "$searchpath"; then
14583 acl_save_IFS="${IFS= }"; IFS=":"
14584 for searchdir in $searchpath; do
14585 if test -d "$searchdir"; then
14586 case "$searchdir" in
14587 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14588 *) searchdir=`cd "$searchdir" && pwd`
14589 case "$searchdir" in
14590 */lib64 ) acl_libdirstem=lib64 ;;
14591 esac ;;
14592 esac
14594 done
14595 IFS="$acl_save_IFS"
14605 use_additional=yes
14607 acl_save_prefix="$prefix"
14608 prefix="$acl_final_prefix"
14609 acl_save_exec_prefix="$exec_prefix"
14610 exec_prefix="$acl_final_exec_prefix"
14612 eval additional_includedir=\"$includedir\"
14613 eval additional_libdir=\"$libdir\"
14615 exec_prefix="$acl_save_exec_prefix"
14616 prefix="$acl_save_prefix"
14619 # Check whether --with-libiconv-prefix was given.
14620 if test "${with_libiconv_prefix+set}" = set; then :
14621 withval=$with_libiconv_prefix;
14622 if test "X$withval" = "Xno"; then
14623 use_additional=no
14624 else
14625 if test "X$withval" = "X"; then
14627 acl_save_prefix="$prefix"
14628 prefix="$acl_final_prefix"
14629 acl_save_exec_prefix="$exec_prefix"
14630 exec_prefix="$acl_final_exec_prefix"
14632 eval additional_includedir=\"$includedir\"
14633 eval additional_libdir=\"$libdir\"
14635 exec_prefix="$acl_save_exec_prefix"
14636 prefix="$acl_save_prefix"
14638 else
14639 additional_includedir="$withval/include"
14640 additional_libdir="$withval/$acl_libdirstem"
14646 LIBICONV=
14647 LTLIBICONV=
14648 INCICONV=
14649 rpathdirs=
14650 ltrpathdirs=
14651 names_already_handled=
14652 names_next_round='iconv '
14653 while test -n "$names_next_round"; do
14654 names_this_round="$names_next_round"
14655 names_next_round=
14656 for name in $names_this_round; do
14657 already_handled=
14658 for n in $names_already_handled; do
14659 if test "$n" = "$name"; then
14660 already_handled=yes
14661 break
14663 done
14664 if test -z "$already_handled"; then
14665 names_already_handled="$names_already_handled $name"
14666 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14667 eval value=\"\$HAVE_LIB$uppername\"
14668 if test -n "$value"; then
14669 if test "$value" = yes; then
14670 eval value=\"\$LIB$uppername\"
14671 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14672 eval value=\"\$LTLIB$uppername\"
14673 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14674 else
14677 else
14678 found_dir=
14679 found_la=
14680 found_so=
14681 found_a=
14682 if test $use_additional = yes; then
14683 if test -n "$shlibext" \
14684 && { test -f "$additional_libdir/lib$name.$shlibext" \
14685 || { test "$shlibext" = dll \
14686 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14687 found_dir="$additional_libdir"
14688 if test -f "$additional_libdir/lib$name.$shlibext"; then
14689 found_so="$additional_libdir/lib$name.$shlibext"
14690 else
14691 found_so="$additional_libdir/lib$name.dll.a"
14693 if test -f "$additional_libdir/lib$name.la"; then
14694 found_la="$additional_libdir/lib$name.la"
14696 else
14697 if test -f "$additional_libdir/lib$name.$libext"; then
14698 found_dir="$additional_libdir"
14699 found_a="$additional_libdir/lib$name.$libext"
14700 if test -f "$additional_libdir/lib$name.la"; then
14701 found_la="$additional_libdir/lib$name.la"
14706 if test "X$found_dir" = "X"; then
14707 for x in $LDFLAGS $LTLIBICONV; do
14709 acl_save_prefix="$prefix"
14710 prefix="$acl_final_prefix"
14711 acl_save_exec_prefix="$exec_prefix"
14712 exec_prefix="$acl_final_exec_prefix"
14713 eval x=\"$x\"
14714 exec_prefix="$acl_save_exec_prefix"
14715 prefix="$acl_save_prefix"
14717 case "$x" in
14718 -L*)
14719 dir=`echo "X$x" | sed -e 's/^X-L//'`
14720 if test -n "$shlibext" \
14721 && { test -f "$dir/lib$name.$shlibext" \
14722 || { test "$shlibext" = dll \
14723 && test -f "$dir/lib$name.dll.a"; }; }; then
14724 found_dir="$dir"
14725 if test -f "$dir/lib$name.$shlibext"; then
14726 found_so="$dir/lib$name.$shlibext"
14727 else
14728 found_so="$dir/lib$name.dll.a"
14730 if test -f "$dir/lib$name.la"; then
14731 found_la="$dir/lib$name.la"
14733 else
14734 if test -f "$dir/lib$name.$libext"; then
14735 found_dir="$dir"
14736 found_a="$dir/lib$name.$libext"
14737 if test -f "$dir/lib$name.la"; then
14738 found_la="$dir/lib$name.la"
14743 esac
14744 if test "X$found_dir" != "X"; then
14745 break
14747 done
14749 if test "X$found_dir" != "X"; then
14750 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14751 if test "X$found_so" != "X"; then
14752 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14754 else
14755 haveit=
14756 for x in $ltrpathdirs; do
14757 if test "X$x" = "X$found_dir"; then
14758 haveit=yes
14759 break
14761 done
14762 if test -z "$haveit"; then
14763 ltrpathdirs="$ltrpathdirs $found_dir"
14765 if test "$hardcode_direct" = yes; then
14766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14767 else
14768 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14770 haveit=
14771 for x in $rpathdirs; do
14772 if test "X$x" = "X$found_dir"; then
14773 haveit=yes
14774 break
14776 done
14777 if test -z "$haveit"; then
14778 rpathdirs="$rpathdirs $found_dir"
14780 else
14781 haveit=
14782 for x in $LDFLAGS $LIBICONV; do
14784 acl_save_prefix="$prefix"
14785 prefix="$acl_final_prefix"
14786 acl_save_exec_prefix="$exec_prefix"
14787 exec_prefix="$acl_final_exec_prefix"
14788 eval x=\"$x\"
14789 exec_prefix="$acl_save_exec_prefix"
14790 prefix="$acl_save_prefix"
14792 if test "X$x" = "X-L$found_dir"; then
14793 haveit=yes
14794 break
14796 done
14797 if test -z "$haveit"; then
14798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14800 if test "$hardcode_minus_L" != no; then
14801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14802 else
14803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14808 else
14809 if test "X$found_a" != "X"; then
14810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14811 else
14812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14815 additional_includedir=
14816 case "$found_dir" in
14817 */$acl_libdirstem | */$acl_libdirstem/)
14818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14819 additional_includedir="$basedir/include"
14821 esac
14822 if test "X$additional_includedir" != "X"; then
14823 if test "X$additional_includedir" != "X/usr/include"; then
14824 haveit=
14825 if test "X$additional_includedir" = "X/usr/local/include"; then
14826 if test -n "$GCC"; then
14827 case $host_os in
14828 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14829 esac
14832 if test -z "$haveit"; then
14833 for x in $CPPFLAGS $INCICONV; do
14835 acl_save_prefix="$prefix"
14836 prefix="$acl_final_prefix"
14837 acl_save_exec_prefix="$exec_prefix"
14838 exec_prefix="$acl_final_exec_prefix"
14839 eval x=\"$x\"
14840 exec_prefix="$acl_save_exec_prefix"
14841 prefix="$acl_save_prefix"
14843 if test "X$x" = "X-I$additional_includedir"; then
14844 haveit=yes
14845 break
14847 done
14848 if test -z "$haveit"; then
14849 if test -d "$additional_includedir"; then
14850 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14856 if test -n "$found_la"; then
14857 save_libdir="$libdir"
14858 case "$found_la" in
14859 */* | *\\*) . "$found_la" ;;
14860 *) . "./$found_la" ;;
14861 esac
14862 libdir="$save_libdir"
14863 for dep in $dependency_libs; do
14864 case "$dep" in
14865 -L*)
14866 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14867 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14868 haveit=
14869 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14870 if test -n "$GCC"; then
14871 case $host_os in
14872 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14873 esac
14876 if test -z "$haveit"; then
14877 haveit=
14878 for x in $LDFLAGS $LIBICONV; do
14880 acl_save_prefix="$prefix"
14881 prefix="$acl_final_prefix"
14882 acl_save_exec_prefix="$exec_prefix"
14883 exec_prefix="$acl_final_exec_prefix"
14884 eval x=\"$x\"
14885 exec_prefix="$acl_save_exec_prefix"
14886 prefix="$acl_save_prefix"
14888 if test "X$x" = "X-L$additional_libdir"; then
14889 haveit=yes
14890 break
14892 done
14893 if test -z "$haveit"; then
14894 if test -d "$additional_libdir"; then
14895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14898 haveit=
14899 for x in $LDFLAGS $LTLIBICONV; do
14901 acl_save_prefix="$prefix"
14902 prefix="$acl_final_prefix"
14903 acl_save_exec_prefix="$exec_prefix"
14904 exec_prefix="$acl_final_exec_prefix"
14905 eval x=\"$x\"
14906 exec_prefix="$acl_save_exec_prefix"
14907 prefix="$acl_save_prefix"
14909 if test "X$x" = "X-L$additional_libdir"; then
14910 haveit=yes
14911 break
14913 done
14914 if test -z "$haveit"; then
14915 if test -d "$additional_libdir"; then
14916 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14922 -R*)
14923 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14924 if test "$enable_rpath" != no; then
14925 haveit=
14926 for x in $rpathdirs; do
14927 if test "X$x" = "X$dir"; then
14928 haveit=yes
14929 break
14931 done
14932 if test -z "$haveit"; then
14933 rpathdirs="$rpathdirs $dir"
14935 haveit=
14936 for x in $ltrpathdirs; do
14937 if test "X$x" = "X$dir"; then
14938 haveit=yes
14939 break
14941 done
14942 if test -z "$haveit"; then
14943 ltrpathdirs="$ltrpathdirs $dir"
14947 -l*)
14948 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14950 *.la)
14951 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14954 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14957 esac
14958 done
14960 else
14961 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14966 done
14967 done
14968 if test "X$rpathdirs" != "X"; then
14969 if test -n "$hardcode_libdir_separator"; then
14970 alldirs=
14971 for found_dir in $rpathdirs; do
14972 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14973 done
14974 acl_save_libdir="$libdir"
14975 libdir="$alldirs"
14976 eval flag=\"$hardcode_libdir_flag_spec\"
14977 libdir="$acl_save_libdir"
14978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14979 else
14980 for found_dir in $rpathdirs; do
14981 acl_save_libdir="$libdir"
14982 libdir="$found_dir"
14983 eval flag=\"$hardcode_libdir_flag_spec\"
14984 libdir="$acl_save_libdir"
14985 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14986 done
14989 if test "X$ltrpathdirs" != "X"; then
14990 for found_dir in $ltrpathdirs; do
14991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14992 done
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15020 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15021 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 gt_save_LIBS="$LIBS"
15025 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <CoreFoundation/CFPreferences.h>
15030 main ()
15032 CFPreferencesCopyAppValue(NULL, NULL)
15034 return 0;
15036 _ACEOF
15037 if ac_fn_c_try_link "$LINENO"; then :
15038 gt_cv_func_CFPreferencesCopyAppValue=yes
15039 else
15040 gt_cv_func_CFPreferencesCopyAppValue=no
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 LIBS="$gt_save_LIBS"
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15047 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15048 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15050 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15054 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15055 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 gt_save_LIBS="$LIBS"
15059 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062 #include <CoreFoundation/CFLocale.h>
15064 main ()
15066 CFLocaleCopyCurrent();
15068 return 0;
15070 _ACEOF
15071 if ac_fn_c_try_link "$LINENO"; then :
15072 gt_cv_func_CFLocaleCopyCurrent=yes
15073 else
15074 gt_cv_func_CFLocaleCopyCurrent=no
15076 rm -f core conftest.err conftest.$ac_objext \
15077 conftest$ac_exeext conftest.$ac_ext
15078 LIBS="$gt_save_LIBS"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15081 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15082 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15084 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15087 INTL_MACOSX_LIBS=
15088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15089 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15097 LIBINTL=
15098 LTLIBINTL=
15099 POSUB=
15101 case " $gt_needs " in
15102 *" need-formatstring-macros "*) gt_api_version=3 ;;
15103 *" need-ngettext "*) gt_api_version=2 ;;
15104 *) gt_api_version=1 ;;
15105 esac
15106 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15107 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15109 if test "$USE_NLS" = "yes"; then
15110 gt_use_preinstalled_gnugettext=no
15113 if test $gt_api_version -ge 3; then
15114 gt_revision_test_code='
15115 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15116 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15117 #endif
15118 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15120 else
15121 gt_revision_test_code=
15123 if test $gt_api_version -ge 2; then
15124 gt_expression_test_code=' + * ngettext ("", "", 0)'
15125 else
15126 gt_expression_test_code=
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15130 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15131 if eval \${$gt_func_gnugettext_libc+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 #include <libintl.h>
15137 $gt_revision_test_code
15138 extern int _nl_msg_cat_cntr;
15139 extern int *_nl_domain_bindings;
15141 main ()
15143 bindtextdomain ("", "");
15144 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15146 return 0;
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 eval "$gt_func_gnugettext_libc=yes"
15151 else
15152 eval "$gt_func_gnugettext_libc=no"
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15157 eval ac_res=\$$gt_func_gnugettext_libc
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15159 $as_echo "$ac_res" >&6; }
15161 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15167 am_save_CPPFLAGS="$CPPFLAGS"
15169 for element in $INCICONV; do
15170 haveit=
15171 for x in $CPPFLAGS; do
15173 acl_save_prefix="$prefix"
15174 prefix="$acl_final_prefix"
15175 acl_save_exec_prefix="$exec_prefix"
15176 exec_prefix="$acl_final_exec_prefix"
15177 eval x=\"$x\"
15178 exec_prefix="$acl_save_exec_prefix"
15179 prefix="$acl_save_prefix"
15181 if test "X$x" = "X$element"; then
15182 haveit=yes
15183 break
15185 done
15186 if test -z "$haveit"; then
15187 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15189 done
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15193 $as_echo_n "checking for iconv... " >&6; }
15194 if ${am_cv_func_iconv+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15198 am_cv_func_iconv="no, consider installing GNU libiconv"
15199 am_cv_lib_iconv=no
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 #include <stdlib.h>
15203 #include <iconv.h>
15205 main ()
15207 iconv_t cd = iconv_open("","");
15208 iconv(cd,NULL,NULL,NULL,NULL);
15209 iconv_close(cd);
15211 return 0;
15213 _ACEOF
15214 if ac_fn_c_try_link "$LINENO"; then :
15215 am_cv_func_iconv=yes
15217 rm -f core conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15219 if test "$am_cv_func_iconv" != yes; then
15220 am_save_LIBS="$LIBS"
15221 LIBS="$LIBS $LIBICONV"
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <stdlib.h>
15225 #include <iconv.h>
15227 main ()
15229 iconv_t cd = iconv_open("","");
15230 iconv(cd,NULL,NULL,NULL,NULL);
15231 iconv_close(cd);
15233 return 0;
15235 _ACEOF
15236 if ac_fn_c_try_link "$LINENO"; then :
15237 am_cv_lib_iconv=yes
15238 am_cv_func_iconv=yes
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS="$am_save_LIBS"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15247 $as_echo "$am_cv_func_iconv" >&6; }
15248 if test "$am_cv_func_iconv" = yes; then
15250 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15253 if test "$am_cv_lib_iconv" = yes; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15255 $as_echo_n "checking how to link with libiconv... " >&6; }
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15257 $as_echo "$LIBICONV" >&6; }
15258 else
15259 CPPFLAGS="$am_save_CPPFLAGS"
15260 LIBICONV=
15261 LTLIBICONV=
15270 use_additional=yes
15272 acl_save_prefix="$prefix"
15273 prefix="$acl_final_prefix"
15274 acl_save_exec_prefix="$exec_prefix"
15275 exec_prefix="$acl_final_exec_prefix"
15277 eval additional_includedir=\"$includedir\"
15278 eval additional_libdir=\"$libdir\"
15280 exec_prefix="$acl_save_exec_prefix"
15281 prefix="$acl_save_prefix"
15284 # Check whether --with-libintl-prefix was given.
15285 if test "${with_libintl_prefix+set}" = set; then :
15286 withval=$with_libintl_prefix;
15287 if test "X$withval" = "Xno"; then
15288 use_additional=no
15289 else
15290 if test "X$withval" = "X"; then
15292 acl_save_prefix="$prefix"
15293 prefix="$acl_final_prefix"
15294 acl_save_exec_prefix="$exec_prefix"
15295 exec_prefix="$acl_final_exec_prefix"
15297 eval additional_includedir=\"$includedir\"
15298 eval additional_libdir=\"$libdir\"
15300 exec_prefix="$acl_save_exec_prefix"
15301 prefix="$acl_save_prefix"
15303 else
15304 additional_includedir="$withval/include"
15305 additional_libdir="$withval/$acl_libdirstem"
15311 LIBINTL=
15312 LTLIBINTL=
15313 INCINTL=
15314 rpathdirs=
15315 ltrpathdirs=
15316 names_already_handled=
15317 names_next_round='intl '
15318 while test -n "$names_next_round"; do
15319 names_this_round="$names_next_round"
15320 names_next_round=
15321 for name in $names_this_round; do
15322 already_handled=
15323 for n in $names_already_handled; do
15324 if test "$n" = "$name"; then
15325 already_handled=yes
15326 break
15328 done
15329 if test -z "$already_handled"; then
15330 names_already_handled="$names_already_handled $name"
15331 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15332 eval value=\"\$HAVE_LIB$uppername\"
15333 if test -n "$value"; then
15334 if test "$value" = yes; then
15335 eval value=\"\$LIB$uppername\"
15336 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15337 eval value=\"\$LTLIB$uppername\"
15338 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15339 else
15342 else
15343 found_dir=
15344 found_la=
15345 found_so=
15346 found_a=
15347 if test $use_additional = yes; then
15348 if test -n "$shlibext" \
15349 && { test -f "$additional_libdir/lib$name.$shlibext" \
15350 || { test "$shlibext" = dll \
15351 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15352 found_dir="$additional_libdir"
15353 if test -f "$additional_libdir/lib$name.$shlibext"; then
15354 found_so="$additional_libdir/lib$name.$shlibext"
15355 else
15356 found_so="$additional_libdir/lib$name.dll.a"
15358 if test -f "$additional_libdir/lib$name.la"; then
15359 found_la="$additional_libdir/lib$name.la"
15361 else
15362 if test -f "$additional_libdir/lib$name.$libext"; then
15363 found_dir="$additional_libdir"
15364 found_a="$additional_libdir/lib$name.$libext"
15365 if test -f "$additional_libdir/lib$name.la"; then
15366 found_la="$additional_libdir/lib$name.la"
15371 if test "X$found_dir" = "X"; then
15372 for x in $LDFLAGS $LTLIBINTL; do
15374 acl_save_prefix="$prefix"
15375 prefix="$acl_final_prefix"
15376 acl_save_exec_prefix="$exec_prefix"
15377 exec_prefix="$acl_final_exec_prefix"
15378 eval x=\"$x\"
15379 exec_prefix="$acl_save_exec_prefix"
15380 prefix="$acl_save_prefix"
15382 case "$x" in
15383 -L*)
15384 dir=`echo "X$x" | sed -e 's/^X-L//'`
15385 if test -n "$shlibext" \
15386 && { test -f "$dir/lib$name.$shlibext" \
15387 || { test "$shlibext" = dll \
15388 && test -f "$dir/lib$name.dll.a"; }; }; then
15389 found_dir="$dir"
15390 if test -f "$dir/lib$name.$shlibext"; then
15391 found_so="$dir/lib$name.$shlibext"
15392 else
15393 found_so="$dir/lib$name.dll.a"
15395 if test -f "$dir/lib$name.la"; then
15396 found_la="$dir/lib$name.la"
15398 else
15399 if test -f "$dir/lib$name.$libext"; then
15400 found_dir="$dir"
15401 found_a="$dir/lib$name.$libext"
15402 if test -f "$dir/lib$name.la"; then
15403 found_la="$dir/lib$name.la"
15408 esac
15409 if test "X$found_dir" != "X"; then
15410 break
15412 done
15414 if test "X$found_dir" != "X"; then
15415 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15416 if test "X$found_so" != "X"; then
15417 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15418 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15419 else
15420 haveit=
15421 for x in $ltrpathdirs; do
15422 if test "X$x" = "X$found_dir"; then
15423 haveit=yes
15424 break
15426 done
15427 if test -z "$haveit"; then
15428 ltrpathdirs="$ltrpathdirs $found_dir"
15430 if test "$hardcode_direct" = yes; then
15431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15432 else
15433 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15434 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15435 haveit=
15436 for x in $rpathdirs; do
15437 if test "X$x" = "X$found_dir"; then
15438 haveit=yes
15439 break
15441 done
15442 if test -z "$haveit"; then
15443 rpathdirs="$rpathdirs $found_dir"
15445 else
15446 haveit=
15447 for x in $LDFLAGS $LIBINTL; do
15449 acl_save_prefix="$prefix"
15450 prefix="$acl_final_prefix"
15451 acl_save_exec_prefix="$exec_prefix"
15452 exec_prefix="$acl_final_exec_prefix"
15453 eval x=\"$x\"
15454 exec_prefix="$acl_save_exec_prefix"
15455 prefix="$acl_save_prefix"
15457 if test "X$x" = "X-L$found_dir"; then
15458 haveit=yes
15459 break
15461 done
15462 if test -z "$haveit"; then
15463 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15465 if test "$hardcode_minus_L" != no; then
15466 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15467 else
15468 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15473 else
15474 if test "X$found_a" != "X"; then
15475 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15476 else
15477 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15480 additional_includedir=
15481 case "$found_dir" in
15482 */$acl_libdirstem | */$acl_libdirstem/)
15483 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15484 additional_includedir="$basedir/include"
15486 esac
15487 if test "X$additional_includedir" != "X"; then
15488 if test "X$additional_includedir" != "X/usr/include"; then
15489 haveit=
15490 if test "X$additional_includedir" = "X/usr/local/include"; then
15491 if test -n "$GCC"; then
15492 case $host_os in
15493 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15494 esac
15497 if test -z "$haveit"; then
15498 for x in $CPPFLAGS $INCINTL; do
15500 acl_save_prefix="$prefix"
15501 prefix="$acl_final_prefix"
15502 acl_save_exec_prefix="$exec_prefix"
15503 exec_prefix="$acl_final_exec_prefix"
15504 eval x=\"$x\"
15505 exec_prefix="$acl_save_exec_prefix"
15506 prefix="$acl_save_prefix"
15508 if test "X$x" = "X-I$additional_includedir"; then
15509 haveit=yes
15510 break
15512 done
15513 if test -z "$haveit"; then
15514 if test -d "$additional_includedir"; then
15515 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15521 if test -n "$found_la"; then
15522 save_libdir="$libdir"
15523 case "$found_la" in
15524 */* | *\\*) . "$found_la" ;;
15525 *) . "./$found_la" ;;
15526 esac
15527 libdir="$save_libdir"
15528 for dep in $dependency_libs; do
15529 case "$dep" in
15530 -L*)
15531 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15532 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15533 haveit=
15534 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15535 if test -n "$GCC"; then
15536 case $host_os in
15537 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15538 esac
15541 if test -z "$haveit"; then
15542 haveit=
15543 for x in $LDFLAGS $LIBINTL; do
15545 acl_save_prefix="$prefix"
15546 prefix="$acl_final_prefix"
15547 acl_save_exec_prefix="$exec_prefix"
15548 exec_prefix="$acl_final_exec_prefix"
15549 eval x=\"$x\"
15550 exec_prefix="$acl_save_exec_prefix"
15551 prefix="$acl_save_prefix"
15553 if test "X$x" = "X-L$additional_libdir"; then
15554 haveit=yes
15555 break
15557 done
15558 if test -z "$haveit"; then
15559 if test -d "$additional_libdir"; then
15560 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15563 haveit=
15564 for x in $LDFLAGS $LTLIBINTL; do
15566 acl_save_prefix="$prefix"
15567 prefix="$acl_final_prefix"
15568 acl_save_exec_prefix="$exec_prefix"
15569 exec_prefix="$acl_final_exec_prefix"
15570 eval x=\"$x\"
15571 exec_prefix="$acl_save_exec_prefix"
15572 prefix="$acl_save_prefix"
15574 if test "X$x" = "X-L$additional_libdir"; then
15575 haveit=yes
15576 break
15578 done
15579 if test -z "$haveit"; then
15580 if test -d "$additional_libdir"; then
15581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15587 -R*)
15588 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15589 if test "$enable_rpath" != no; then
15590 haveit=
15591 for x in $rpathdirs; do
15592 if test "X$x" = "X$dir"; then
15593 haveit=yes
15594 break
15596 done
15597 if test -z "$haveit"; then
15598 rpathdirs="$rpathdirs $dir"
15600 haveit=
15601 for x in $ltrpathdirs; do
15602 if test "X$x" = "X$dir"; then
15603 haveit=yes
15604 break
15606 done
15607 if test -z "$haveit"; then
15608 ltrpathdirs="$ltrpathdirs $dir"
15612 -l*)
15613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15615 *.la)
15616 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15619 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15622 esac
15623 done
15625 else
15626 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15631 done
15632 done
15633 if test "X$rpathdirs" != "X"; then
15634 if test -n "$hardcode_libdir_separator"; then
15635 alldirs=
15636 for found_dir in $rpathdirs; do
15637 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15638 done
15639 acl_save_libdir="$libdir"
15640 libdir="$alldirs"
15641 eval flag=\"$hardcode_libdir_flag_spec\"
15642 libdir="$acl_save_libdir"
15643 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15644 else
15645 for found_dir in $rpathdirs; do
15646 acl_save_libdir="$libdir"
15647 libdir="$found_dir"
15648 eval flag=\"$hardcode_libdir_flag_spec\"
15649 libdir="$acl_save_libdir"
15650 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15651 done
15654 if test "X$ltrpathdirs" != "X"; then
15655 for found_dir in $ltrpathdirs; do
15656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15657 done
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15661 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15662 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 gt_save_CPPFLAGS="$CPPFLAGS"
15666 CPPFLAGS="$CPPFLAGS $INCINTL"
15667 gt_save_LIBS="$LIBS"
15668 LIBS="$LIBS $LIBINTL"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #include <libintl.h>
15672 $gt_revision_test_code
15673 extern int _nl_msg_cat_cntr;
15674 extern
15675 #ifdef __cplusplus
15677 #endif
15678 const char *_nl_expand_alias (const char *);
15680 main ()
15682 bindtextdomain ("", "");
15683 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15685 return 0;
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 eval "$gt_func_gnugettext_libintl=yes"
15690 else
15691 eval "$gt_func_gnugettext_libintl=no"
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15696 LIBS="$LIBS $LIBICONV"
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 #include <libintl.h>
15700 $gt_revision_test_code
15701 extern int _nl_msg_cat_cntr;
15702 extern
15703 #ifdef __cplusplus
15705 #endif
15706 const char *_nl_expand_alias (const char *);
15708 main ()
15710 bindtextdomain ("", "");
15711 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15713 return 0;
15715 _ACEOF
15716 if ac_fn_c_try_link "$LINENO"; then :
15717 LIBINTL="$LIBINTL $LIBICONV"
15718 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15719 eval "$gt_func_gnugettext_libintl=yes"
15722 rm -f core conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15725 CPPFLAGS="$gt_save_CPPFLAGS"
15726 LIBS="$gt_save_LIBS"
15728 eval ac_res=\$$gt_func_gnugettext_libintl
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15730 $as_echo "$ac_res" >&6; }
15733 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15734 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15735 && test "$PACKAGE" != gettext-runtime \
15736 && test "$PACKAGE" != gettext-tools; }; then
15737 gt_use_preinstalled_gnugettext=yes
15738 else
15739 LIBINTL=
15740 LTLIBINTL=
15741 INCINTL=
15746 if test -n "$INTL_MACOSX_LIBS"; then
15747 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15748 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15749 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15750 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15754 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15755 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15757 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15759 else
15760 USE_NLS=no
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15765 $as_echo_n "checking whether to use NLS... " >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15767 $as_echo "$USE_NLS" >&6; }
15768 if test "$USE_NLS" = "yes"; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15770 $as_echo_n "checking where the gettext function comes from... " >&6; }
15771 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15772 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15773 gt_source="external libintl"
15774 else
15775 gt_source="libc"
15777 else
15778 gt_source="included intl directory"
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15781 $as_echo "$gt_source" >&6; }
15784 if test "$USE_NLS" = "yes"; then
15786 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15787 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15789 $as_echo_n "checking how to link with libintl... " >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15791 $as_echo "$LIBINTL" >&6; }
15793 for element in $INCINTL; do
15794 haveit=
15795 for x in $CPPFLAGS; do
15797 acl_save_prefix="$prefix"
15798 prefix="$acl_final_prefix"
15799 acl_save_exec_prefix="$exec_prefix"
15800 exec_prefix="$acl_final_exec_prefix"
15801 eval x=\"$x\"
15802 exec_prefix="$acl_save_exec_prefix"
15803 prefix="$acl_save_prefix"
15805 if test "X$x" = "X$element"; then
15806 haveit=yes
15807 break
15809 done
15810 if test -z "$haveit"; then
15811 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15813 done
15818 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15821 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15825 POSUB=po
15830 INTLLIBS="$LIBINTL"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15839 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15840 # Check whether --enable-dmalloc was given.
15841 if test "${enable_dmalloc+set}" = set; then :
15842 enableval=$enable_dmalloc;
15845 if test x$enable_dmalloc = "xyes" ; then
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15847 $as_echo "yes" >&6; }
15848 else
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15850 $as_echo "no" >&6; }
15854 # Check whether --with-dmalloc-dir was given.
15855 if test "${with_dmalloc_dir+set}" = set; then :
15856 withval=$with_dmalloc_dir;
15857 if test "x$withval" != "xno" ; then
15858 enable_dmalloc = "yes"
15859 CPPFLAGS="$CPPFLAGS -I${withval}"
15860 LDFLAGS="$LDFLAGS -L${withval}"
15866 if test x$enable_dmalloc = "xyes" ; then
15868 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15872 ALPINE_datestamp=`date`
15874 # Check whether --with-date-stamp was given.
15875 if test "${with_date_stamp+set}" = set; then :
15876 withval=$with_date_stamp;
15877 if test "x$withval" != "xno" ; then
15878 ALPINE_datestamp=$withval
15883 ALPINE_DATESTAMP=$ALPINE_datestamp
15886 ALPINE_hoststamp=`hostname`
15888 # Check whether --with-host-stamp was given.
15889 if test "${with_host_stamp+set}" = set; then :
15890 withval=$with_host_stamp;
15891 if test "x$withval" != "xno" ; then
15892 ALPINE_hoststamp="$withval"
15897 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15900 ALPINE_psefcmd="/bin/ps auxww"
15901 ALPINE_psfailed="0"
15902 ALPINE_PSTEST="-"
15904 # Check whether --with-ps-cmd was given.
15905 if test "${with_ps_cmd+set}" = set; then :
15906 withval=$with_ps_cmd;
15907 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
15908 withval=$ALPINE_psefcmd
15910 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15911 if test -n "$ALPINE_PSTEST" ; then
15912 ALPINE_psefcmd="$withval"
15913 else
15914 ALPINE_psfailed="1"
15915 if test "x$ALPINE_psefcmd" != "x$withval" ; then
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
15917 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
15923 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
15924 withval="$ALPINE_psefcmd"
15925 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15926 if test -z "$ALPINE_PSTEST" ; then
15927 ALPINE_psfailed="1"
15928 else
15929 ALPINE_psfailed="0"
15932 if test "$ALPINE_psfailed" = "0" ; then
15934 cat >>confdefs.h <<_ACEOF
15935 #define PSEFCMD "$ALPINE_psefcmd"
15936 _ACEOF
15940 case $host in
15941 *apple-darwin*)
15942 if test -d /opt/local ; then
15943 localedir="/opt/local/share/locale"
15944 else
15945 localedir="\${datadir}/locale"
15948 *-*-cygwin)
15949 localedir="/usr/share"
15952 localedir="\${datadir}/locale"
15954 esac
15957 # Check whether --with-localedir was given.
15958 if test "${with_localedir+set}" = set; then :
15959 withval=$with_localedir;
15960 case $withval in
15961 yes)
15966 localedir=$withval
15968 esac
15972 localedir="$localedir"
15975 # Setup OS-Specific features
15976 case "$host" in
15977 *darwin*)
15978 # Check whether --enable-osx-universal-binaries was given.
15979 if test "${enable_osx_universal_binaries+set}" = set; then :
15980 enableval=$enable_osx_universal_binaries;
15983 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15984 if test "x$enable_dependency_tracking" != xno ; then
15985 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15986 Please re-run configure with these options:
15987 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15989 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15990 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15991 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15992 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15993 else
15994 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15996 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15997 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15998 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15999 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
16000 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
16001 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
16004 esac
16007 # Check whether --with-include-path was given.
16008 if test "${with_include_path+set}" = set; then :
16009 withval=$with_include_path;
16010 case $withval in
16013 yes)
16016 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
16017 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
16018 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
16020 esac
16026 # Check whether --with-lib-path was given.
16027 if test "${with_lib_path+set}" = set; then :
16028 withval=$with_lib_path;
16029 case $withval in
16032 yes)
16035 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
16036 LDFLAGS="$LDFLAGS $new_ldflags"
16037 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
16039 esac
16045 # Check whether --with-pubcookie was given.
16046 if test "${with_pubcookie+set}" = set; then :
16047 withval=$with_pubcookie;
16048 if test "x$withval" != "xno" ; then
16049 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
16057 # Check whether --with-web-bin was given.
16058 if test "${with_web_bin+set}" = set; then :
16059 withval=$with_web_bin;
16060 case "$withval" in
16063 yes)
16066 WEB_BINDIR=$withval
16068 esac
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
16074 $as_echo_n "checking option: debugging is enabled... " >&6; }
16075 # Check whether --enable-debug was given.
16076 if test "${enable_debug+set}" = set; then :
16077 enableval=$enable_debug;
16080 if test x$enable_debug != "xno" ; then
16081 AM_CFLAGS="$AM_CFLAGS -g"
16083 $as_echo "#define DEBUG 1" >>confdefs.h
16086 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16089 $as_echo "yes" >&6; }
16090 else
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
16096 $as_echo_n "checking option: optimization is enabled... " >&6; }
16097 # Check whether --enable-optimization was given.
16098 if test "${enable_optimization+set}" = set; then :
16099 enableval=$enable_optimization;
16102 if test x$enable_optimization != "xno" ; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104 $as_echo "yes" >&6; }
16105 else
16106 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
16107 alpine_c_client_gccoptlevel="-O0"
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
16113 $as_echo_n "checking option: mouse support enabled... " >&6; }
16114 # Check whether --enable-mouse was given.
16115 if test "${enable_mouse+set}" = set; then :
16116 enableval=$enable_mouse;
16119 if test x$enable_mouse != "xno" ; then
16121 $as_echo "#define MOUSE /**/" >>confdefs.h
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16124 $as_echo "yes" >&6; }
16125 else
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
16131 $as_echo_n "checking option: quotas enabled... " >&6; }
16132 # Check whether --enable-quotas was given.
16133 if test "${enable_quotas+set}" = set; then :
16134 enableval=$enable_quotas;
16137 if test x$enable_quotas = "xyes" ; then
16139 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 $as_echo "yes" >&6; }
16143 else
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
16149 $as_echo_n "checking option: From changing enabled... " >&6; }
16150 # Check whether --enable-from_changing was given.
16151 if test "${enable_from_changing+set}" = set; then :
16152 enableval=$enable_from_changing;
16155 if test x$enable_from_changing != "xno" ; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16157 $as_echo "yes" >&6; }
16158 else
16160 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
16167 $as_echo_n "checking option: background post enabled... " >&6; }
16168 # Check whether --enable-background-post was given.
16169 if test "${enable_background_post+set}" = set; then :
16170 enableval=$enable_background_post;
16173 if test x$enable_background_post != "xno" ; then
16175 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16178 $as_echo "yes" >&6; }
16179 else
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181 $as_echo "no" >&6; }
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
16185 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
16186 # Check whether --enable-keyboard-lock was given.
16187 if test "${enable_keyboard_lock+set}" = set; then :
16188 enableval=$enable_keyboard_lock;
16191 if test x$enable_keyboard_lock != "xno" ; then
16193 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16196 $as_echo "yes" >&6; }
16197 else
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
16203 $as_echo_n "checking option: from encoding enabled... " >&6; }
16204 # Check whether --enable-from-encoding was given.
16205 if test "${enable_from_encoding+set}" = set; then :
16206 enableval=$enable_from_encoding;
16209 if test x$enable_from_encoding = "xyes" ; then
16211 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16214 $as_echo "yes" >&6; }
16215 else
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16217 $as_echo "no" >&6; }
16221 # Check whether --with-smtp-msa was given.
16222 if test "${with_smtp_msa+set}" = set; then :
16223 withval=$with_smtp_msa;
16224 case "$withval" in
16227 yes)
16228 # Extract the first word of "sendmail", so it can be a program name with args.
16229 set dummy sendmail; ac_word=$2
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231 $as_echo_n "checking for $ac_word... " >&6; }
16232 if ${ac_cv_path_SENDMAIL+:} false; then :
16233 $as_echo_n "(cached) " >&6
16234 else
16235 case $SENDMAIL in
16236 [\\/]* | ?:[\\/]*)
16237 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 as_dummy="$PATH:/usr/sbin:/usr/lib"
16242 for as_dir in $as_dummy
16244 IFS=$as_save_IFS
16245 test -z "$as_dir" && as_dir=.
16246 for ac_exec_ext in '' $ac_executable_extensions; do
16247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16248 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16250 break 2
16252 done
16253 done
16254 IFS=$as_save_IFS
16256 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16258 esac
16260 SENDMAIL=$ac_cv_path_SENDMAIL
16261 if test -n "$SENDMAIL"; then
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16263 $as_echo "$SENDMAIL" >&6; }
16264 else
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16272 SENDMAIL=$withval
16274 esac
16276 else
16278 # Extract the first word of "sendmail", so it can be a program name with args.
16279 set dummy sendmail; ac_word=$2
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16281 $as_echo_n "checking for $ac_word... " >&6; }
16282 if ${ac_cv_path_SENDMAIL+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 case $SENDMAIL in
16286 [\\/]* | ?:[\\/]*)
16287 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16291 as_dummy="$PATH:/usr/sbin:/usr/lib"
16292 for as_dir in $as_dummy
16294 IFS=$as_save_IFS
16295 test -z "$as_dir" && as_dir=.
16296 for ac_exec_ext in '' $ac_executable_extensions; do
16297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16298 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16300 break 2
16302 done
16303 done
16304 IFS=$as_save_IFS
16306 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16308 esac
16310 SENDMAIL=$ac_cv_path_SENDMAIL
16311 if test -n "$SENDMAIL"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16313 $as_echo "$SENDMAIL" >&6; }
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16323 if test -n "$SENDMAIL" ; then
16325 cat >>confdefs.h <<_ACEOF
16326 #define SENDMAIL "$SENDMAIL"
16327 _ACEOF
16331 smtp_msa_flags="-bs -odb -oem"
16333 # Check whether --with-smtp-msa-flags was given.
16334 if test "${with_smtp_msa_flags+set}" = set; then :
16335 withval=$with_smtp_msa_flags;
16336 if test "x$withval" != "xno" ; then
16337 smtp_msa_flags=$withval
16343 cat >>confdefs.h <<_ACEOF
16344 #define SENDMAILFLAGS "$smtp_msa_flags"
16345 _ACEOF
16348 npa="inews"
16350 # Check whether --with-npa was given.
16351 if test "${with_npa+set}" = set; then :
16352 withval=$with_npa;
16353 case "$withval" in
16356 yes)
16357 # Extract the first word of "inews", so it can be a program name with args.
16358 set dummy inews; ac_word=$2
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16360 $as_echo_n "checking for $ac_word... " >&6; }
16361 if ${ac_cv_path_NPA_PROG+:} false; then :
16362 $as_echo_n "(cached) " >&6
16363 else
16364 case $NPA_PROG in
16365 [\\/]* | ?:[\\/]*)
16366 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370 as_dummy="$PATH:/usr/sbin:/usr/lib"
16371 for as_dir in $as_dummy
16373 IFS=$as_save_IFS
16374 test -z "$as_dir" && as_dir=.
16375 for ac_exec_ext in '' $ac_executable_extensions; do
16376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16377 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16379 break 2
16381 done
16382 done
16383 IFS=$as_save_IFS
16385 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16387 esac
16389 NPA_PROG=$ac_cv_path_NPA_PROG
16390 if test -n "$NPA_PROG"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16392 $as_echo "$NPA_PROG" >&6; }
16393 else
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16401 NPA_PROG=$withval
16403 esac
16405 else
16407 # Extract the first word of "inews", so it can be a program name with args.
16408 set dummy inews; ac_word=$2
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16410 $as_echo_n "checking for $ac_word... " >&6; }
16411 if ${ac_cv_path_NPA_PROG+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 case $NPA_PROG in
16415 [\\/]* | ?:[\\/]*)
16416 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 as_dummy="$PATH:/usr/sbin:/usr/lib"
16421 for as_dir in $as_dummy
16423 IFS=$as_save_IFS
16424 test -z "$as_dir" && as_dir=.
16425 for ac_exec_ext in '' $ac_executable_extensions; do
16426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16427 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16429 break 2
16431 done
16432 done
16433 IFS=$as_save_IFS
16435 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16437 esac
16439 NPA_PROG=$ac_cv_path_NPA_PROG
16440 if test -n "$NPA_PROG"; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16442 $as_echo "$NPA_PROG" >&6; }
16443 else
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16453 npa_flags="-h"
16455 # Check whether --with-npa-flags was given.
16456 if test "${with_npa_flags+set}" = set; then :
16457 withval=$with_npa_flags;
16458 if test "x$withval" != "xno" ; then
16459 npa_flags=$withval
16464 if test -n "$NPA_PROG" ; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define SENDNEWS "$NPA_PROG $npa_flags"
16468 _ACEOF
16473 # Check whether --with-password-prog was given.
16474 if test "${with_password_prog+set}" = set; then :
16475 withval=$with_password_prog;
16476 case "$withval" in
16479 yes)
16480 # Extract the first word of "passwd", so it can be a program name with args.
16481 set dummy passwd; ac_word=$2
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483 $as_echo_n "checking for $ac_word... " >&6; }
16484 if ${ac_cv_path_PWPROG+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486 else
16487 case $PWPROG in
16488 [\\/]* | ?:[\\/]*)
16489 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16493 as_dummy="$PATH:/usr/sbin:/usr/lib"
16494 for as_dir in $as_dummy
16496 IFS=$as_save_IFS
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 break 2
16504 done
16505 done
16506 IFS=$as_save_IFS
16508 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16510 esac
16512 PWPROG=$ac_cv_path_PWPROG
16513 if test -n "$PWPROG"; then
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16515 $as_echo "$PWPROG" >&6; }
16516 else
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 $as_echo "no" >&6; }
16524 # Extract the first word of "$withval", so it can be a program name with args.
16525 set dummy $withval; ac_word=$2
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527 $as_echo_n "checking for $ac_word... " >&6; }
16528 if ${ac_cv_path_PWPROG+:} false; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 case $PWPROG in
16532 [\\/]* | ?:[\\/]*)
16533 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 as_dummy="$PATH:/usr/sbin:/usr/lib"
16538 for as_dir in $as_dummy
16540 IFS=$as_save_IFS
16541 test -z "$as_dir" && as_dir=.
16542 for ac_exec_ext in '' $ac_executable_extensions; do
16543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16544 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16546 break 2
16548 done
16549 done
16550 IFS=$as_save_IFS
16552 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16554 esac
16556 PWPROG=$ac_cv_path_PWPROG
16557 if test -n "$PWPROG"; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16559 $as_echo "$PWPROG" >&6; }
16560 else
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16567 esac
16569 else
16571 # Extract the first word of "passwd", so it can be a program name with args.
16572 set dummy passwd; ac_word=$2
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16574 $as_echo_n "checking for $ac_word... " >&6; }
16575 if ${ac_cv_path_PWPROG+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 case $PWPROG in
16579 [\\/]* | ?:[\\/]*)
16580 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16584 as_dummy="$PATH:/usr/sbin:/usr/lib"
16585 for as_dir in $as_dummy
16587 IFS=$as_save_IFS
16588 test -z "$as_dir" && as_dir=.
16589 for ac_exec_ext in '' $ac_executable_extensions; do
16590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16591 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16593 break 2
16595 done
16596 done
16597 IFS=$as_save_IFS
16599 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16601 esac
16603 PWPROG=$ac_cv_path_PWPROG
16604 if test -n "$PWPROG"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16606 $as_echo "$PWPROG" >&6; }
16607 else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16616 if test -n "$PWPROG" ; then
16618 cat >>confdefs.h <<_ACEOF
16619 #define PASSWD_PROG "$PWPROG"
16620 _ACEOF
16625 # Check whether --with-simple-spellcheck was given.
16626 if test "${with_simple_spellcheck+set}" = set; then :
16627 withval=$with_simple_spellcheck;
16628 if test "x$withval" != "xno" ; then
16629 SPELLPROG=$withval
16632 else
16634 # Extract the first word of "hunspell", so it can be a program name with args.
16635 set dummy hunspell; ac_word=$2
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637 $as_echo_n "checking for $ac_word... " >&6; }
16638 if ${ac_cv_prog_SPELLPROG+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 if test -n "$SPELLPROG"; then
16642 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16643 else
16644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16645 for as_dir in $PATH
16647 IFS=$as_save_IFS
16648 test -z "$as_dir" && as_dir=.
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16651 ac_cv_prog_SPELLPROG="hunspell"
16652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16653 break 2
16655 done
16656 done
16657 IFS=$as_save_IFS
16661 SPELLPROG=$ac_cv_prog_SPELLPROG
16662 if test -n "$SPELLPROG"; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16664 $as_echo "$SPELLPROG" >&6; }
16665 else
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667 $as_echo "no" >&6; }
16671 if test -z "$SPELLPROG" ; then
16672 # Extract the first word of "aspell", so it can be a program name with args.
16673 set dummy aspell; ac_word=$2
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675 $as_echo_n "checking for $ac_word... " >&6; }
16676 if ${ac_cv_prog_SPELLPROG+:} false; then :
16677 $as_echo_n "(cached) " >&6
16678 else
16679 if test -n "$SPELLPROG"; then
16680 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16681 else
16682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16683 for as_dir in $PATH
16685 IFS=$as_save_IFS
16686 test -z "$as_dir" && as_dir=.
16687 for ac_exec_ext in '' $ac_executable_extensions; do
16688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16689 ac_cv_prog_SPELLPROG="aspell"
16690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16691 break 2
16693 done
16694 done
16695 IFS=$as_save_IFS
16699 SPELLPROG=$ac_cv_prog_SPELLPROG
16700 if test -n "$SPELLPROG"; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16702 $as_echo "$SPELLPROG" >&6; }
16703 else
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16709 if test -z "$SPELLPROG" ; then
16710 # Extract the first word of "ispell", so it can be a program name with args.
16711 set dummy ispell; ac_word=$2
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713 $as_echo_n "checking for $ac_word... " >&6; }
16714 if ${ac_cv_prog_SPELLPROG+:} false; then :
16715 $as_echo_n "(cached) " >&6
16716 else
16717 if test -n "$SPELLPROG"; then
16718 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16719 else
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16723 IFS=$as_save_IFS
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_prog_SPELLPROG="ispell"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729 break 2
16731 done
16732 done
16733 IFS=$as_save_IFS
16737 SPELLPROG=$ac_cv_prog_SPELLPROG
16738 if test -n "$SPELLPROG"; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16740 $as_echo "$SPELLPROG" >&6; }
16741 else
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 $as_echo "no" >&6; }
16747 if test -z "$SPELLPROG" ; then
16748 SPELLPROG="spell"
16756 if test "x$SPELLPROG" != "xno" ; then
16757 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
16758 set dummy $SPELLPROG; ac_word=$2
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16760 $as_echo_n "checking for $ac_word... " >&6; }
16761 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 case $alpine_simple_spellcheck in
16765 [\\/]* | ?:[\\/]*)
16766 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
16769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16770 for as_dir in $PATH
16772 IFS=$as_save_IFS
16773 test -z "$as_dir" && as_dir=.
16774 for ac_exec_ext in '' $ac_executable_extensions; do
16775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16776 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16778 break 2
16780 done
16781 done
16782 IFS=$as_save_IFS
16785 esac
16787 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
16788 if test -n "$alpine_simple_spellcheck"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
16790 $as_echo "$alpine_simple_spellcheck" >&6; }
16791 else
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793 $as_echo "no" >&6; }
16797 if test -n "$alpine_simple_spellcheck" ; then
16798 case "$SPELLPROG" in
16799 hunspell)
16800 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16802 aspell)
16803 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
16805 ispell)
16806 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16810 esac
16815 # Check whether --with-interactive-spellcheck was given.
16816 if test "${with_interactive_spellcheck+set}" = set; then :
16817 withval=$with_interactive_spellcheck;
16818 if test "x$withval" != "xno" ; then
16819 ISPELLPROG=$withval
16822 else
16824 # Extract the first word of "hunspell", so it can be a program name with args.
16825 set dummy hunspell; ac_word=$2
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16827 $as_echo_n "checking for $ac_word... " >&6; }
16828 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16829 $as_echo_n "(cached) " >&6
16830 else
16831 if test -n "$ISPELLPROG"; then
16832 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16833 else
16834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16835 for as_dir in $PATH
16837 IFS=$as_save_IFS
16838 test -z "$as_dir" && as_dir=.
16839 for ac_exec_ext in '' $ac_executable_extensions; do
16840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16841 ac_cv_prog_ISPELLPROG="hunspell"
16842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16843 break 2
16845 done
16846 done
16847 IFS=$as_save_IFS
16851 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16852 if test -n "$ISPELLPROG"; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16854 $as_echo "$ISPELLPROG" >&6; }
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 $as_echo "no" >&6; }
16861 if test -z "$ISPELLPROG" ; then
16862 # Extract the first word of "aspell", so it can be a program name with args.
16863 set dummy aspell; ac_word=$2
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865 $as_echo_n "checking for $ac_word... " >&6; }
16866 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 if test -n "$ISPELLPROG"; then
16870 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16871 else
16872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16873 for as_dir in $PATH
16875 IFS=$as_save_IFS
16876 test -z "$as_dir" && as_dir=.
16877 for ac_exec_ext in '' $ac_executable_extensions; do
16878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16879 ac_cv_prog_ISPELLPROG="aspell"
16880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881 break 2
16883 done
16884 done
16885 IFS=$as_save_IFS
16889 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16890 if test -n "$ISPELLPROG"; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16892 $as_echo "$ISPELLPROG" >&6; }
16893 else
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895 $as_echo "no" >&6; }
16899 if test -z "$SPELLPROG" ; then
16900 ISPELLPROG="ispell"
16907 if test "x$ISPELLPROG" != "xno" ; then
16908 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16909 set dummy $ISPELLPROG; ac_word=$2
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16911 $as_echo_n "checking for $ac_word... " >&6; }
16912 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16913 $as_echo_n "(cached) " >&6
16914 else
16915 case $alpine_interactive_spellcheck in
16916 [\\/]* | ?:[\\/]*)
16917 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16921 for as_dir in $PATH
16923 IFS=$as_save_IFS
16924 test -z "$as_dir" && as_dir=.
16925 for ac_exec_ext in '' $ac_executable_extensions; do
16926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16927 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16929 break 2
16931 done
16932 done
16933 IFS=$as_save_IFS
16936 esac
16938 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16939 if test -n "$alpine_interactive_spellcheck"; then
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16941 $as_echo "$alpine_interactive_spellcheck" >&6; }
16942 else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16944 $as_echo "no" >&6; }
16948 if test -n "$alpine_interactive_spellcheck" ; then
16949 case "$ISPELLPROG" in
16950 aspell)
16951 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16955 esac
16959 if test -n "$alpine_interactive_spellcheck" ; then
16961 cat >>confdefs.h <<_ACEOF
16962 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16963 _ACEOF
16967 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16968 alpine_simple_spellcheck=test
16971 cat >>confdefs.h <<_ACEOF
16972 #define SPELLER "$alpine_simple_spellcheck"
16973 _ACEOF
16976 case "$prefix" in
16977 NONE) dpv=/usr/local/lib/pine.conf ;;
16978 *) dpv=${prefix}/lib/pine.conf ;;
16979 esac
16981 # Check whether --with-system-pinerc was given.
16982 if test "${with_system_pinerc+set}" = set; then :
16983 withval=$with_system_pinerc;
16984 case "$withval" in
16987 yes)
16990 dpv=$withval
16992 esac
16997 cat >>confdefs.h <<_ACEOF
16998 #define SYSTEM_PINERC "$dpv"
16999 _ACEOF
17002 case "$prefix" in
17003 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
17004 *) dpv=${prefix}/lib/pine.conf.fixed ;;
17005 esac
17007 # Check whether --with-system-fixed-pinerc was given.
17008 if test "${with_system_fixed_pinerc+set}" = set; then :
17009 withval=$with_system_fixed_pinerc;
17010 case "$withval" in
17013 yes)
17016 dpv=$withval
17018 esac
17023 cat >>confdefs.h <<_ACEOF
17024 #define SYSTEM_PINERC_FIXED "$dpv"
17025 _ACEOF
17028 case "$prefix" in
17029 NONE) dpv=/usr/local/lib/pine.info ;;
17030 *) dpv=${prefix}/lib/pine.info ;;
17031 esac
17033 # Check whether --with-local-support-info was given.
17034 if test "${with_local_support_info+set}" = set; then :
17035 withval=$with_local_support_info;
17036 case "$withval" in
17039 yes)
17042 dpv=$withval
17044 esac
17049 cat >>confdefs.h <<_ACEOF
17050 #define SYSTEM_PINE_INFO_PATH "$dpv"
17051 _ACEOF
17059 dpv=150
17061 # Check whether --with-mailcheck-interval was given.
17062 if test "${with_mailcheck_interval+set}" = set; then :
17063 withval=$with_mailcheck_interval;
17064 if test "x$withval" != "xno" ; then
17065 dpv=$withval
17071 cat >>confdefs.h <<_ACEOF
17072 #define DF_MAILCHECK "$dpv"
17073 _ACEOF
17077 dpv=420
17079 # Check whether --with-checkpoint-interval was given.
17080 if test "${with_checkpoint_interval+set}" = set; then :
17081 withval=$with_checkpoint_interval;
17082 if test "x$withval" != "xno" ; then
17083 dpv=$withval
17089 cat >>confdefs.h <<_ACEOF
17090 #define CHECK_POINT_TIME $dpv
17091 _ACEOF
17095 dpv=12
17097 # Check whether --with-checkpoint-frequency was given.
17098 if test "${with_checkpoint_frequency+set}" = set; then :
17099 withval=$with_checkpoint_frequency;
17100 if test "x$withval" != "xno" ; then
17101 dpv=$withval
17107 cat >>confdefs.h <<_ACEOF
17108 #define CHECK_POINT_FREQ $dpv
17109 _ACEOF
17113 dpv=24
17115 # Check whether --with-display-rows was given.
17116 if test "${with_display_rows+set}" = set; then :
17117 withval=$with_display_rows;
17118 if test "x$withval" != "xno" ; then
17119 dpv=$withval
17125 cat >>confdefs.h <<_ACEOF
17126 #define DEFAULT_LINES_ON_TERMINAL $dpv
17127 _ACEOF
17131 dpv=80
17133 # Check whether --with-display-columns was given.
17134 if test "${with_display_columns+set}" = set; then :
17135 withval=$with_display_columns;
17136 if test "x$withval" != "xno" ; then
17137 dpv=$withval
17143 cat >>confdefs.h <<_ACEOF
17144 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
17145 _ACEOF
17149 dpv=200
17151 # Check whether --with-max-display-rows was given.
17152 if test "${with_max_display_rows+set}" = set; then :
17153 withval=$with_max_display_rows;
17154 if test "x$withval" != "xno" ; then
17155 dpv=$withval
17161 cat >>confdefs.h <<_ACEOF
17162 #define MAX_SCREEN_ROWS $dpv
17163 _ACEOF
17167 dpv=500
17169 # Check whether --with-max-display-columns was given.
17170 if test "${with_max_display_columns+set}" = set; then :
17171 withval=$with_max_display_columns;
17172 if test "x$withval" != "xno" ; then
17173 dpv=$withval
17179 cat >>confdefs.h <<_ACEOF
17180 #define MAX_SCREEN_COLS $dpv
17181 _ACEOF
17185 dpv=74
17187 # Check whether --with-fill-column was given.
17188 if test "${with_fill_column+set}" = set; then :
17189 withval=$with_fill_column;
17190 if test "x$withval" != "xno" ; then
17191 dpv=$withval
17197 cat >>confdefs.h <<_ACEOF
17198 #define DF_FILLCOL "$dpv"
17199 _ACEOF
17203 dpv=80
17205 # Check whether --with-max_fill-column was given.
17206 if test "${with_max_fill_column+set}" = set; then :
17207 withval=$with_max_fill_column;
17208 if test "x$withval" != "xno" ; then
17209 dpv=$withval
17215 cat >>confdefs.h <<_ACEOF
17216 #define MAX_FILLCOL $dpv
17217 _ACEOF
17221 dpv=2
17223 # Check whether --with-debug-level was given.
17224 if test "${with_debug_level+set}" = set; then :
17225 withval=$with_debug_level;
17226 if test "x$withval" != "xno" ; then
17227 dpv=$withval
17233 cat >>confdefs.h <<_ACEOF
17234 #define DEFAULT_DEBUG $dpv
17235 _ACEOF
17239 dpv=4
17241 # Check whether --with-debug-files was given.
17242 if test "${with_debug_files+set}" = set; then :
17243 withval=$with_debug_files;
17244 if test "x$withval" != "xno" ; then
17245 dpv=$withval
17251 cat >>confdefs.h <<_ACEOF
17252 #define NUMDEBUGFILES $dpv
17253 _ACEOF
17257 dpv=.pine-debug
17259 # Check whether --with-debug-file was given.
17260 if test "${with_debug_file+set}" = set; then :
17261 withval=$with_debug_file;
17262 if test "x$withval" != "xno" ; then
17263 dpv=$withval
17269 cat >>confdefs.h <<_ACEOF
17270 #define DEBUGFILE "$dpv"
17271 _ACEOF
17275 dpv="\$Forwarded"
17277 # Check whether --with-forwarded-keyword was given.
17278 if test "${with_forwarded_keyword+set}" = set; then :
17279 withval=$with_forwarded_keyword;
17280 if test "x$withval" != "xno" ; then
17281 dpv=$withval
17287 cat >>confdefs.h <<_ACEOF
17288 #define FORWARDED_FLAG "$dpv"
17289 _ACEOF
17293 dpv=2
17295 # Check whether --with-display-overlap was given.
17296 if test "${with_display_overlap+set}" = set; then :
17297 withval=$with_display_overlap;
17298 if test "x$withval" != "xno" ; then
17299 dpv=$withval
17305 cat >>confdefs.h <<_ACEOF
17306 #define DF_OVERLAP "$dpv"
17307 _ACEOF
17311 dpv=0
17313 # Check whether --with-display-margin was given.
17314 if test "${with_display_margin+set}" = set; then :
17315 withval=$with_display_margin;
17316 if test "x$withval" != "xno" ; then
17317 dpv=$withval
17323 cat >>confdefs.h <<_ACEOF
17324 #define DF_MARGIN "$dpv"
17325 _ACEOF
17329 dpv=sent-mail
17331 # Check whether --with-default-fcc was given.
17332 if test "${with_default_fcc+set}" = set; then :
17333 withval=$with_default_fcc;
17334 if test "x$withval" != "xno" ; then
17335 dpv=$withval
17341 cat >>confdefs.h <<_ACEOF
17342 #define DF_DEFAULT_FCC "$dpv"
17343 _ACEOF
17347 dpv=saved-messages
17349 # Check whether --with-default-save-folder was given.
17350 if test "${with_default_save_folder+set}" = set; then :
17351 withval=$with_default_save_folder;
17352 if test "x$withval" != "xno" ; then
17353 dpv=$withval
17359 cat >>confdefs.h <<_ACEOF
17360 #define DEFAULT_SAVE "$dpv"
17361 _ACEOF
17365 dpv=postponed-mail
17367 # Check whether --with-default-legacy-postponed-folder was given.
17368 if test "${with_default_legacy_postponed_folder+set}" = set; then :
17369 withval=$with_default_legacy_postponed_folder;
17370 if test "x$withval" != "xno" ; then
17371 dpv=$withval
17377 cat >>confdefs.h <<_ACEOF
17378 #define POSTPONED_MAIL "$dpv"
17379 _ACEOF
17383 dpv=postponed-msgs
17385 # Check whether --with-default-postponed-folder was given.
17386 if test "${with_default_postponed_folder+set}" = set; then :
17387 withval=$with_default_postponed_folder;
17388 if test "x$withval" != "xno" ; then
17389 dpv=$withval
17395 cat >>confdefs.h <<_ACEOF
17396 #define POSTPONED_MSGS "$dpv"
17397 _ACEOF
17401 dpv=Trash
17403 # Check whether --with-default-trash-folder was given.
17404 if test "${with_default_trash_folder+set}" = set; then :
17405 withval=$with_default_trash_folder;
17406 if test "x$withval" != "xno" ; then
17407 dpv=$withval
17413 cat >>confdefs.h <<_ACEOF
17414 #define TRASH_FOLDER "$dpv"
17415 _ACEOF
17419 dpv=.pine-interrupted-mail
17421 # Check whether --with-default-interrupted-mail was given.
17422 if test "${with_default_interrupted_mail+set}" = set; then :
17423 withval=$with_default_interrupted_mail;
17424 if test "x$withval" != "xno" ; then
17425 dpv=$withval
17431 cat >>confdefs.h <<_ACEOF
17432 #define INTERRUPTED_MAIL "$dpv"
17433 _ACEOF
17437 dpv=dead.letter
17439 # Check whether --with-default-dead-letter-folder was given.
17440 if test "${with_default_dead_letter_folder+set}" = set; then :
17441 withval=$with_default_dead_letter_folder;
17442 if test "x$withval" != "xno" ; then
17443 dpv=$withval
17449 cat >>confdefs.h <<_ACEOF
17450 #define DEADLETTER "$dpv"
17451 _ACEOF
17455 dpv=mail
17457 # Check whether --with-default-mail-directory was given.
17458 if test "${with_default_mail_directory+set}" = set; then :
17459 withval=$with_default_mail_directory;
17460 if test "x$withval" != "xno" ; then
17461 dpv=$withval
17467 cat >>confdefs.h <<_ACEOF
17468 #define DF_MAIL_DIRECTORY "$dpv"
17469 _ACEOF
17473 dpv=INBOX
17475 # Check whether --with-default-inbox-name was given.
17476 if test "${with_default_inbox_name+set}" = set; then :
17477 withval=$with_default_inbox_name;
17478 if test "x$withval" != "xno" ; then
17479 dpv=$withval
17485 cat >>confdefs.h <<_ACEOF
17486 #define INBOX_NAME "$dpv"
17487 _ACEOF
17491 dpv=.signature
17493 # Check whether --with-default-signature-file was given.
17494 if test "${with_default_signature_file+set}" = set; then :
17495 withval=$with_default_signature_file;
17496 if test "x$withval" != "xno" ; then
17497 dpv=$withval
17503 cat >>confdefs.h <<_ACEOF
17504 #define DF_SIGNATURE_FILE "$dpv"
17505 _ACEOF
17509 dpv=no
17511 # Check whether --with-default-elm-style-save was given.
17512 if test "${with_default_elm_style_save+set}" = set; then :
17513 withval=$with_default_elm_style_save;
17514 if test "x$withval" != "xno" ; then
17515 dpv=$withval
17521 cat >>confdefs.h <<_ACEOF
17522 #define DF_ELM_STYLE_SAVE "$dpv"
17523 _ACEOF
17527 dpv=no
17529 # Check whether --with-default-header-in-reply was given.
17530 if test "${with_default_header_in_reply+set}" = set; then :
17531 withval=$with_default_header_in_reply;
17532 if test "x$withval" != "xno" ; then
17533 dpv=$withval
17539 cat >>confdefs.h <<_ACEOF
17540 #define DF_HEADER_IN_REPLY "$dpv"
17541 _ACEOF
17545 dpv=no
17547 # Check whether --with-default-old-style-reply was given.
17548 if test "${with_default_old_style_reply+set}" = set; then :
17549 withval=$with_default_old_style_reply;
17550 if test "x$withval" != "xno" ; then
17551 dpv=$withval
17557 cat >>confdefs.h <<_ACEOF
17558 #define DF_OLD_STYLE_REPLY "$dpv"
17559 _ACEOF
17563 dpv=no
17565 # Check whether --with-default-use-only-domain-name was given.
17566 if test "${with_default_use_only_domain_name+set}" = set; then :
17567 withval=$with_default_use_only_domain_name;
17568 if test "x$withval" != "xno" ; then
17569 dpv=$withval
17575 cat >>confdefs.h <<_ACEOF
17576 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
17577 _ACEOF
17581 dpv=no
17583 # Check whether --with-default-save-by-sender was given.
17584 if test "${with_default_save_by_sender+set}" = set; then :
17585 withval=$with_default_save_by_sender;
17586 if test "x$withval" != "xno" ; then
17587 dpv=$withval
17593 cat >>confdefs.h <<_ACEOF
17594 #define DF_SAVE_BY_SENDER "$dpv"
17595 _ACEOF
17599 dpv=arrival
17601 # Check whether --with-default-sort-key was given.
17602 if test "${with_default_sort_key+set}" = set; then :
17603 withval=$with_default_sort_key;
17604 if test "x$withval" != "xno" ; then
17605 dpv=$withval
17611 cat >>confdefs.h <<_ACEOF
17612 #define DF_SORT_KEY "$dpv"
17613 _ACEOF
17617 dpv=fullname-with-lists-last
17619 # Check whether --with-default-addressbook-sort-rule was given.
17620 if test "${with_default_addressbook_sort_rule+set}" = set; then :
17621 withval=$with_default_addressbook_sort_rule;
17622 if test "x$withval" != "xno" ; then
17623 dpv=$withval
17629 cat >>confdefs.h <<_ACEOF
17630 #define DF_AB_SORT_RULE "$dpv"
17631 _ACEOF
17635 dpv=alphabetical
17637 # Check whether --with-default-folder-sort-rule was given.
17638 if test "${with_default_folder_sort_rule+set}" = set; then :
17639 withval=$with_default_folder_sort_rule;
17640 if test "x$withval" != "xno" ; then
17641 dpv=$withval
17647 cat >>confdefs.h <<_ACEOF
17648 #define DF_FLD_SORT_RULE "$dpv"
17649 _ACEOF
17653 dpv=default-folder
17655 # Check whether --with-default-saved-message-name-rule was given.
17656 if test "${with_default_saved_message_name_rule+set}" = set; then :
17657 withval=$with_default_saved_message_name_rule;
17658 if test "x$withval" != "xno" ; then
17659 dpv=$withval
17665 cat >>confdefs.h <<_ACEOF
17666 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17667 _ACEOF
17671 dpv=default-fcc
17673 # Check whether --with-default-fcc-rule was given.
17674 if test "${with_default_fcc_rule+set}" = set; then :
17675 withval=$with_default_fcc_rule;
17676 if test "x$withval" != "xno" ; then
17677 dpv=$withval
17683 cat >>confdefs.h <<_ACEOF
17684 #define DF_FCC_RULE "$dpv"
17685 _ACEOF
17689 dpv=lpr
17691 # Check whether --with-default-standard-printer was given.
17692 if test "${with_default_standard_printer+set}" = set; then :
17693 withval=$with_default_standard_printer;
17694 if test "x$withval" != "xno" ; then
17695 dpv=$withval
17701 cat >>confdefs.h <<_ACEOF
17702 #define DF_STANDARD_PRINTER "$dpv"
17703 _ACEOF
17707 dpv=attached-to-ansi
17709 # Check whether --with-default-ansi-printer was given.
17710 if test "${with_default_ansi_printer+set}" = set; then :
17711 withval=$with_default_ansi_printer;
17712 if test "x$withval" != "xno" ; then
17713 dpv=$withval
17719 cat >>confdefs.h <<_ACEOF
17720 #define ANSI_PRINTER "$dpv"
17721 _ACEOF
17725 dpv=.addressbook
17727 # Check whether --with-default-addressbook was given.
17728 if test "${with_default_addressbook+set}" = set; then :
17729 withval=$with_default_addressbook;
17730 if test "x$withval" != "xno" ; then
17731 dpv=$withval
17737 cat >>confdefs.h <<_ACEOF
17738 #define DF_ADDRESSBOOK "$dpv"
17739 _ACEOF
17743 dpv="Local Support"
17745 # Check whether --with-default-local-fullname was given.
17746 if test "${with_default_local_fullname+set}" = set; then :
17747 withval=$with_default_local_fullname;
17748 if test "x$withval" != "xno" ; then
17749 dpv=$withval
17755 cat >>confdefs.h <<_ACEOF
17756 #define DF_LOCAL_FULLNAME "$dpv"
17757 _ACEOF
17761 dpv=postmaster
17763 # Check whether --with-default-local-address was given.
17764 if test "${with_default_local_address+set}" = set; then :
17765 withval=$with_default_local_address;
17766 if test "x$withval" != "xno" ; then
17767 dpv=$withval
17773 cat >>confdefs.h <<_ACEOF
17774 #define DF_LOCAL_ADDRESS "$dpv"
17775 _ACEOF
17779 dpv=1
17781 # Check whether --with-default-keyboard-lock-count was given.
17782 if test "${with_default_keyboard_lock_count+set}" = set; then :
17783 withval=$with_default_keyboard_lock_count;
17784 if test "x$withval" != "xno" ; then
17785 dpv=$withval
17791 cat >>confdefs.h <<_ACEOF
17792 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
17793 _ACEOF
17797 dpv=3
17799 # Check whether --with-default-remote-addressbook-history was given.
17800 if test "${with_default_remote_addressbook_history+set}" = set; then :
17801 withval=$with_default_remote_addressbook_history;
17802 if test "x$withval" != "xno" ; then
17803 dpv=$withval
17809 cat >>confdefs.h <<_ACEOF
17810 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
17811 _ACEOF
17815 dpv=.alpine-smime/public
17817 # Check whether --with-smime-public-cert-directory was given.
17818 if test "${with_smime_public_cert_directory+set}" = set; then :
17819 withval=$with_smime_public_cert_directory;
17820 if test "x$withval" != "xno" ; then
17821 dpv=$withval
17827 cat >>confdefs.h <<_ACEOF
17828 #define DF_PUBLICCERT_DIR "$dpv"
17829 _ACEOF
17833 dpv=.alpine-smime/private
17835 # Check whether --with-smime-private-key-directory was given.
17836 if test "${with_smime_private_key_directory+set}" = set; then :
17837 withval=$with_smime_private_key_directory;
17838 if test "x$withval" != "xno" ; then
17839 dpv=$withval
17845 cat >>confdefs.h <<_ACEOF
17846 #define DF_PRIVATEKEY_DIR "$dpv"
17847 _ACEOF
17851 dpv=.alpine-smime/ca
17853 # Check whether --with-smime-cacert-directory was given.
17854 if test "${with_smime_cacert_directory+set}" = set; then :
17855 withval=$with_smime_cacert_directory;
17856 if test "x$withval" != "xno" ; then
17857 dpv=$withval
17863 cat >>confdefs.h <<_ACEOF
17864 #define DF_CACERT_DIR "$dpv"
17865 _ACEOF
17869 dpv=ANSI_PRINTER
17871 # Check whether --with-default-printer was given.
17872 if test "${with_default_printer+set}" = set; then :
17873 withval=$with_default_printer;
17874 if test "x$withval" != "xno" ; then
17875 dpv=$withval
17881 cat >>confdefs.h <<_ACEOF
17882 #define DF_DEFAULT_PRINTER $dpv
17883 _ACEOF
17888 cat >>confdefs.h <<_ACEOF
17889 #define DF_PUBLIC_CONTAINER "PublicContainer"
17890 _ACEOF
17893 cat >>confdefs.h <<_ACEOF
17894 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17895 _ACEOF
17898 cat >>confdefs.h <<_ACEOF
17899 #define DF_CA_CONTAINER "CAContainer"
17900 _ACEOF
17904 # Check whether --with-passfile was given.
17905 if test "${with_passfile+set}" = set; then :
17906 withval=$with_passfile;
17907 case "$withval" in
17910 yes)
17913 alpine_PASSFILE=$withval
17915 esac
17922 # Check whether --with-local-password-cache was given.
17923 if test "${with_local_password_cache+set}" = set; then :
17924 withval=$with_local_password_cache;
17925 alpine_os_credential_cache=$withval
17931 # Check whether --with-local-password-cache-method was given.
17932 if test "${with_local_password_cache_method+set}" = set; then :
17933 withval=$with_local_password_cache_method;
17934 alpine_os_credential_cache_method=$withval
17939 if test -n "$alpine_PASSFILE" ; then
17940 case $alpine_os_credential_cache in
17944 alpine_os_credential_cache="no"
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17946 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17948 esac
17950 cat >>confdefs.h <<_ACEOF
17951 #define PASSFILE "$alpine_PASSFILE"
17952 _ACEOF
17957 # Check whether --with-default-sshpath was given.
17958 if test "${with_default_sshpath+set}" = set; then :
17959 withval=$with_default_sshpath;
17960 case "$withval" in
17963 yes)
17967 cat >>confdefs.h <<_ACEOF
17968 #define DF_SSHPATH "$withval"
17969 _ACEOF
17972 esac
17978 # Check whether --with-default-sshcmd was given.
17979 if test "${with_default_sshcmd+set}" = set; then :
17980 withval=$with_default_sshcmd;
17981 case "$withval" in
17984 yes)
17988 cat >>confdefs.h <<_ACEOF
17989 #define DF_SSHCMD "$withval"
17990 _ACEOF
17993 esac
17999 # Check whether --with-ssl was given.
18000 if test "${with_ssl+set}" = set; then :
18001 withval=$with_ssl; with_ssl=$withval
18005 if test "x$with_ssl" = "xno" ; then
18006 alpine_SSLTYPE="none"
18007 elif test -d /usr/local/ssl ; then
18008 alpine_SSLDIR="/usr/local/ssl"
18009 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18010 alpine_SSLLIB="$alpine_SSLDIR/lib"
18011 else
18012 case $host in
18013 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
18014 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
18015 alpine_SSLTYPE="nopwd"
18016 if test -d /etc/pki/tls ; then
18017 alpine_SSLDIR="/etc/pki/tls"
18018 else
18019 alpine_SSLDIR="/usr/share/ssl"
18021 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18022 alpine_SSLKEYS="$alpine_SSLDIR/private"
18023 alpine_SSLINCLUDE="/usr/include/openssl"
18024 alpine_SSLLIB="/usr/lib"
18025 elif test -f /etc/mandrake-release ; then
18026 alpine_SSLDIR="/usr/lib/ssl"
18027 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18028 alpine_SSLKEYS="$alpine_SSLDIR/private"
18029 alpine_SSLINCLUDE="/usr/include/openssl"
18030 alpine_SSLLIB="/usr/lib"
18031 elif test -f /etc/SuSE-release ; then
18032 alpine_SSLTYPE="nopwd"
18033 alpine_SSLDIR="/etc/ssl"
18034 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18035 alpine_SSLKEYS="$alpine_SSLDIR/private"
18036 alpine_SSLINCLUDE="/usr/include/openssl"
18037 alpine_SSLLIB="/usr/lib"
18038 elif test -d /etc/osso-af-init ; then
18039 alpine_SSLTYPE="nopwd"
18040 alpine_SSLDIR="/usr"
18041 alpine_SSLCERTS="/usr/share/certs"
18042 alpine_SSLINCLUDE="/usr/include/openssl"
18043 alpine_SSLLIB="/usr/lib"
18044 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18045 if test ! -d /etc/osso-af-init ; then
18046 alpine_SSLDIR="/etc/ssl"
18047 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18048 alpine_SSLKEYS="$alpine_SSLDIR/private"
18049 alpine_SSLINCLUDE="/usr/include/openssl"
18050 alpine_SSLLIB="/usr/lib"
18052 elif test -f /etc/manjaro-release ; then
18053 alpine_SSLDIR="/etc/ssl"
18054 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18055 alpine_SSLKEYS="$alpine_SSLDIR/private"
18056 alpine_SSLINCLUDE="/usr/include/openssl"
18057 alpine_SSLLIB="/usr/lib"
18058 else
18059 alpine_SSLTYPE="nopwd"
18060 alpine_SSLDIR="/usr"
18061 alpine_SSLCERTS="/etc/ssl/certs"
18064 *-apple-darwin*)
18065 alpine_SSLTYPE="nopwd"
18066 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
18067 if test -d /usr/local/opt/openssl ; then
18068 alpine_SSLDIR="/usr/local/opt/openssl"
18069 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18070 alpine_SSLLIB="$alpine_SSLDIR/lib"
18071 alpine_SSLCERTS="/usr/local/etc/openssl"
18072 alpine_SSLKEYS="$alpine_SSLDIR/private"
18073 elif test -d /opt/local/etc/openssl ; then
18074 alpine_SSLDIR="/opt/local"
18075 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18076 alpine_SSLLIB="$alpine_SSLDIR/lib"
18077 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
18078 alpine_SSLKEYS="/opt/local/etc/openssl/private"
18079 elif test -d /sw/etc/ssl ; then
18080 alpine_SSLDIR="/sw/etc/ssl"
18081 alpine_SSLINCLUDE="/sw/include"
18082 alpine_SSLLIB="/sw/lib"
18083 alpine_SSLCERTS="/sw/etc/ssl/certs"
18084 alpine_SSLKEYS="/sw/etc/ssl/private"
18085 elif test -d /usr/local/ssl ; then
18086 alpine_SSLDIR="/usr/local/ssl"
18087 elif test -d /System/Library/OpenSSL ; then
18088 alpine_SSLDIR="/System/Library/OpenSSL"
18089 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18090 alpine_SSLKEYS="$alpine_SSLDIR/private"
18091 alpine_SSLLIB="/usr/lib"
18092 alpine_SSLINCLUDE="/usr/include/openssl"
18095 *-*-netbsd*)
18096 alpine_SSLDIR="/etc/openssl"
18097 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18098 alpine_SSLKEYS="$alpine_SSLDIR/private"
18099 alpine_SSLINCLUDE="/usr/include/openssl"
18100 alpine_SSLLIB="/usr/lib"
18102 *-*-dragonfly*)
18103 alpine_SSLDIR="/etc/openssl"
18104 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18105 alpine_SSLKEYS="$alpine_SSLDIR/private"
18106 alpine_SSLINCLUDE="/usr/include/openssl"
18107 alpine_SSLLIB="/usr/lib"
18109 *-openbsd*)
18110 alpine_SSLTYPE="nopwd"
18111 alpine_SSLDIR="/usr"
18112 alpine_SSLCERTS="/etc/ssl/certs"
18114 *-*-freebsd*)
18115 alpine_SSLDIR="/etc/ssl"
18116 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18117 alpine_SSLKEYS="$alpine_SSLDIR/private"
18118 if test -d /usr/local/include/openssl ; then
18119 alpine_SSLINCLUDE="/usr/local/include/openssl"
18120 alpine_SSLLIB="/usr/local/lib"
18121 else
18122 alpine_SSLINCLUDE="/usr/include/openssl"
18123 alpine_SSLLIB="/usr/lib"
18126 *-*-openbsd*)
18127 alpine_SSLDIR="/etc/ssl"
18128 alpine_SSLINCLUDE="/usr/include/openssl"
18129 alpine_SSLLIB="/usr/lib"
18130 alpine_SSLCERTS="/etc/ssl"
18131 alpine_SSLKEYS="/etc/ssl/private"
18133 *-*-cygwin)
18134 alpine_SSLDIR="/usr/ssl"
18135 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18136 alpine_SSLKEYS="$alpine_SSLDIR/certs"
18137 alpine_SSLINCLUDE="/usr/include/openssl"
18138 alpine_SSLLIB="/usr/lib"
18140 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
18141 alpine_SSLTYPE="sco.nopwd"
18142 alpine_SSLDIR="/usr/local/ssl"
18144 *-*-solaris*)
18145 if test -d /usr/include/openssl ; then
18146 alpine_SSLINCLUDE="/usr/include/openssl"
18147 elif test -d /usr/sfw/include/openssl ; then
18148 alpine_SSLDIR="/usr/sfw"
18149 elif test -d /opt/csw/include/openssl ; then
18150 alpine_SSLDIR="/opt/csw"
18151 if test -d /opt/csw/ssl/certs ; then
18152 alpine_SSLCERTS="/opt/csw/ssl/certs"
18155 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
18156 alpine_SSLCERTS="/etc/certs"
18160 alpine_SSLTYPE="nopwd"
18161 alpine_SSLDIR="/usr/local/ssl"
18163 esac
18166 if test "x$alpine_SSLTYPE" != "xnone" ; then
18168 # Check whether --with-ssl-dir was given.
18169 if test "${with_ssl_dir+set}" = set; then :
18170 withval=$with_ssl_dir;
18171 if test "x$withval" != "xno" ; then
18172 alpine_SSLDIR=$withval
18173 alpine_SSLINCLUDE=$alpine_SSLDIR/include
18174 alpine_SSLLIB=$alpine_SSLDIR/lib
18181 # Check whether --with-ssl-certs-dir was given.
18182 if test "${with_ssl_certs_dir+set}" = set; then :
18183 withval=$with_ssl_certs_dir;
18184 if test "x$withval" != "xno" ; then
18185 alpine_SSLCERTS=$withval
18192 # Check whether --with-ssl-include-dir was given.
18193 if test "${with_ssl_include_dir+set}" = set; then :
18194 withval=$with_ssl_include_dir;
18195 if test "x$withval" != "xno" ; then
18196 alpine_SSLINCLUDE=$withval
18203 # Check whether --with-ssl-lib-dir was given.
18204 if test "${with_ssl_lib_dir+set}" = set; then :
18205 withval=$with_ssl_lib_dir;
18206 if test "x$withval" != "xno" ; then
18207 alpine_SSLLIB=$withval
18213 if test -n "$alpine_SSLINCLUDE" ; then
18214 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
18215 elif test -n "$alpine_SSLDIR" ; then
18216 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
18218 if test -n "$alpine_SSLLIB" ; then
18219 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
18220 elif test -n "$alpine_SSLDIR" ; then
18221 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
18225 if test "x$alpine_SSLTYPE" != "xnone" ; then
18226 alpine_default_SSLMIN="no_min"
18227 alpine_default_SSLMAX="no_max"
18228 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
18229 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
18230 alpine_SSLMIN="$alpine_default_SSLMIN"
18231 alpine_SSLMAX="$alpine_default_SSLMAX"
18232 alpine_RANGE="$alpine_default_RANGE"
18234 # Check whether --with-encryption-minimum-version was given.
18235 if test "${with_encryption_minimum_version+set}" = set; then :
18236 withval=$with_encryption_minimum_version;
18237 if test "x$withval" != "xno" ; then
18238 alpine_SSLMIN=$withval
18244 # Check whether --with-encryption-maximum-version was given.
18245 if test "${with_encryption_maximum_version+set}" = set; then :
18246 withval=$with_encryption_maximum_version;
18247 if test "x$withval" != "xno" ; then
18248 alpine_SSLMAX=$withval
18253 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
18254 for range in ${alpine_RANGE} ; do
18255 for encryption in ${alpine_ENCRYPTION} ; do
18256 if test "x$range" = "x$encryption" ; then
18257 if test -z $alpine_min ; then
18258 alpine_min="yes"
18259 else
18260 alpine_max="yes"
18263 done
18264 done
18266 if test -z $alpine_max ; then
18267 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
18270 if test -z $alpine_min ; then
18271 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
18274 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
18275 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
18276 if test -n "$alpine_RANGE_FEASIBLE" ; then
18277 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18278 else
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
18280 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
18281 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
18283 else
18284 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
18286 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
18287 alpine_SSLMAX="$alpine_default_SSLMAX"
18289 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
18291 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
18292 alpine_SSLMIN="$alpine_default_SSLMIN"
18294 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18297 dpv=$alpine_RANGE
18299 # Check whether --with-encryption-range was given.
18300 if test "${with_encryption_range+set}" = set; then :
18301 withval=$with_encryption_range;
18302 if test "x$withval" != "xno" ; then
18303 dpv=$withval
18309 cat >>confdefs.h <<_ACEOF
18310 #define DF_ENCRYPTION_RANGE "$dpv"
18311 _ACEOF
18317 # Check whether --with-krb5 was given.
18318 if test "${with_krb5+set}" = set; then :
18319 withval=$with_krb5; with_krb5=$withval
18323 if test "x$with_krb5" = "xno" ; then
18324 alpine_GSSTYPE="none"
18325 else
18326 alpine_GSSTYPE=
18329 # Check whether --with-krb5-dir was given.
18330 if test "${with_krb5_dir+set}" = set; then :
18331 withval=$with_krb5_dir;
18332 if test "x$withval" != "xno" ; then
18333 CPPFLAGS="$CPPFLAGS -I${withval}/include"
18334 LDFLAGS="$LDFLAGS -L${withval}/lib"
18341 # Check whether --with-krb5-include-dir was given.
18342 if test "${with_krb5_include_dir+set}" = set; then :
18343 withval=$with_krb5_include_dir;
18344 if test "x$withval" != "xno" ; then
18345 CPPFLAGS="$CPPFLAGS -I$withval"
18352 # Check whether --with-krb5-lib-dir was given.
18353 if test "${with_krb5_lib_dir+set}" = set; then :
18354 withval=$with_krb5_lib_dir;
18355 if test "x$withval" != "xno" ; then
18356 LDFLAGS="$LDFLAGS -L$withval"
18364 # Check whether --with-ldap was given.
18365 if test "${with_ldap+set}" = set; then :
18366 withval=$with_ldap; with_ldap=$withval
18370 if test "x$with_ldap" = "xno" ; then
18371 alpine_with_ldap=
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
18373 $as_echo "$as_me: Excluding LDAP Support" >&6;}
18374 else
18376 case $host in
18377 *-*-freebsd*)
18378 alpine_LDAPDIR="/usr/local"
18379 alpine_LDAPINCLUDE="${LDAPDIR}/include"
18380 alpine_LDAPLIB="${LDAPDIR}/lib"
18382 esac;
18384 alpine_with_ldap=yes
18387 # Check whether --with-ldap-dir was given.
18388 if test "${with_ldap_dir+set}" = set; then :
18389 withval=$with_ldap_dir;
18390 if test "x$withval" != "xno" ; then
18391 alpine_LDAPDIR="${withval}"
18392 alpine_LDAPINCLUDE="${LDAPDIR}/include"
18393 alpine_LDAPLIB="${LDAPDIR}/lib"
18400 # Check whether --with-ldap-include-dir was given.
18401 if test "${with_ldap_include_dir+set}" = set; then :
18402 withval=$with_ldap_include_dir;
18403 if test "x$withval" != "xno" ; then
18404 alpine_LDAPINCLUDE="$withval"
18411 # Check whether --with-ldap-lib-dir was given.
18412 if test "${with_ldap_lib_dir+set}" = set; then :
18413 withval=$with_ldap_lib_dir;
18414 if test "x$withval" != "xno" ; then
18415 alpine_LDAPLIB="${withval}"
18421 if test -n "$alpine_LDAPINCLUDE" ; then
18422 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
18424 if test -n "$alpine_LDAPLIB" ; then
18425 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
18430 # Check whether --with-smime was given.
18431 if test "${with_smime+set}" = set; then :
18432 withval=$with_smime; with_smime=$withval
18437 # Check whether --with-tcl was given.
18438 if test "${with_tcl+set}" = set; then :
18439 withval=$with_tcl; with_tcl=$withval
18443 if test "x$with_tcl" = "xno" ; then
18444 WEB_BUILD=
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
18446 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
18447 else
18449 # Check whether --with-tcl-lib-dir was given.
18450 if test "${with_tcl_lib_dir+set}" = set; then :
18451 withval=$with_tcl_lib_dir;
18452 if test "x$withval" != "xno" ; then
18453 alpine_TCLLIBDIR=$withval
18454 if test -n "$alpine_TCLLIBDIR" ; then
18455 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
18462 # Check whether --with-tcl-lib was given.
18463 if test "${with_tcl_lib+set}" = set; then :
18464 withval=$with_tcl_lib;
18465 if test "x$withval" != "xno" ; then
18466 alpine_TCLLIB=$withval
18472 # Check whether --with-tcl-include was given.
18473 if test "${with_tcl_include+set}" = set; then :
18474 withval=$with_tcl_include;
18475 if test "x$withval" != "xno" ; then
18476 CPPFLAGS="$CPPFLAGS -I$withval"
18477 alpine_TCLINC=$withval
18485 # Check whether --with-supplied-regex was given.
18486 if test "${with_supplied_regex+set}" = set; then :
18487 withval=$with_supplied_regex; alpine_REGEX=$withval
18492 # Check whether --with-pthread was given.
18493 if test "${with_pthread+set}" = set; then :
18494 withval=$with_pthread; with_pthread=$withval
18499 # Check whether --with-system-mail-directory was given.
18500 if test "${with_system_mail_directory+set}" = set; then :
18501 withval=$with_system_mail_directory;
18502 if test "x$withval" != "xno" ; then
18503 alpine_with_local_maildir="$withval"
18510 # Check whether --with-c-client-target was given.
18511 if test "${with_c_client_target+set}" = set; then :
18512 withval=$with_c_client_target;
18513 if test "x$withval" != "xno" ;then
18514 alpine_with_c_client_target="$withval"
18521 alpine_PAM="none"
18523 case "$host" in
18524 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
18525 alpine_path_delim="/"
18526 alpine_mode_readonly="(0600)"
18527 if test -f /etc/fedora-release ; then
18528 systype="LFD"
18529 alpine_PAM="yes"
18530 if test -d /etc/pki/tls ; then
18531 alpine_c_client_target="lfd"
18532 else
18533 alpine_c_client_target="lrh"
18535 elif test -f /etc/mandrake-release ; then
18536 systype="LMD"
18537 alpine_c_client_target="lmd"
18538 alpine_PAM="yes"
18539 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
18540 systype="LRH"
18541 alpine_PAM="yes"
18542 if test -d /etc/pki/tls ; then
18543 alpine_c_client_target="lr5"
18544 else
18545 alpine_c_client_target="lrh"
18547 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18548 if test -d /etc/osso-af-init ; then
18549 systype="LN8"
18550 alpine_c_client_target="ln8"
18551 else
18552 systype="DEB"
18553 alpine_c_client_target="ldb"
18554 alpine_PAM="yes"
18556 elif test -f /etc/SuSE-release ; then
18557 systype="LSU"
18558 alpine_c_client_target="lsu"
18559 alpine_PAM="yes"
18560 else
18561 systype="LNX"
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18563 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18564 if ${ac_cv_lib_pam_pam_start+:} false; then :
18565 $as_echo_n "(cached) " >&6
18566 else
18567 ac_check_lib_save_LIBS=$LIBS
18568 LIBS="-lpam $LIBS"
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char pam_start ();
18580 main ()
18582 return pam_start ();
18584 return 0;
18586 _ACEOF
18587 if ac_fn_c_try_link "$LINENO"; then :
18588 ac_cv_lib_pam_pam_start=yes
18589 else
18590 ac_cv_lib_pam_pam_start=no
18592 rm -f core conftest.err conftest.$ac_objext \
18593 conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18597 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18598 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18600 alpine_c_client_target="lnp"
18601 alpine_PAM="yes"
18603 else
18605 if test -f /etc/shadow ; then
18606 alpine_c_client_target="slx"
18607 else
18608 alpine_c_client_target="lnx"
18615 *-apple-darwin*)
18616 systype="OSX"
18617 alpine_path_delim="/"
18618 alpine_mode_readonly="(0600)"
18619 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
18620 AM_CFLAGS="$AM_CFLAGS -Dbsd"
18622 $as_echo "#define OSX_TARGET 1" >>confdefs.h
18624 case "$alpine_os_credential_cache" in
18629 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
18632 esac
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18634 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18635 if ${ac_cv_lib_pam_pam_start+:} false; then :
18636 $as_echo_n "(cached) " >&6
18637 else
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lpam $LIBS"
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18646 #ifdef __cplusplus
18647 extern "C"
18648 #endif
18649 char pam_start ();
18651 main ()
18653 return pam_start ();
18655 return 0;
18657 _ACEOF
18658 if ac_fn_c_try_link "$LINENO"; then :
18659 ac_cv_lib_pam_pam_start=yes
18660 else
18661 ac_cv_lib_pam_pam_start=no
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18665 LIBS=$ac_check_lib_save_LIBS
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18668 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18669 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18671 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18672 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18674 alpine_PAM="yes"
18675 alpine_c_client_target="oxs"
18677 else
18678 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18679 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18681 alpine_PAM="yes"
18682 alpine_c_client_target="oxp"
18684 else
18686 alpine_PAM="none"
18687 alpine_pam_none_reason="header files not found"
18697 else
18699 alpine_c_client_target="osx"
18704 *-*-solaris*)
18705 if test x$GCC = "xyes" ; then
18706 systype="GSO"
18707 alpine_c_client_target="gso"
18708 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
18709 else
18710 systype="SOC"
18711 alpine_c_client_target="soc"
18713 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18716 alpine_path_delim="/"
18717 alpine_mode_readonly="(0600)"
18719 *-*-sunos4*)
18720 systype="SUN"
18721 alpine_path_delim="/"
18722 alpine_mode_readonly="(0600)"
18723 alpine_c_client_target="s40"
18725 *-*-sco3.2v5*)
18726 if test x$GCC = "xyes" ; then
18727 systype="GO5"
18728 alpine_c_client_target="go5"
18729 else
18730 systype="SC5"
18731 alpine_c_client_target="sc5"
18733 alpine_path_delim="/"
18734 alpine_mode_readonly="(0600)"
18736 *-next-*)
18737 systype="NXT"
18738 alpine_path_delim="/"
18739 alpine_mode_readonly="(0600)"
18740 alpine_c_client_target="nx3"
18742 *-*-netbsd*)
18743 systype="NEB"
18744 alpine_path_delim="/"
18745 alpine_mode_readonly="(0600)"
18746 alpine_c_client_target="neb"
18748 *-*-dragonfly*)
18749 systype="DFB"
18750 alpine_path_delim="/"
18751 alpine_mode_readonly="(0600)"
18752 alpine_c_client_target="neb"
18754 *-*-bsdi*)
18755 systype="BSI"
18756 alpine_path_delim="/"
18757 alpine_mode_readonly="(0600)"
18758 alpine_c_client_target="bsi"
18760 *-*-freebsd*)
18761 systype="BSF"
18762 alpine_path_delim="/"
18763 alpine_mode_readonly="(0600)"
18764 alpine_c_client_target="bsf"
18765 LIBS="$LIBS $LIBINTL"
18767 *-*-openbsd*)
18768 systype="BSO"
18769 alpine_path_delim="/"
18770 alpine_mode_readonly="(0600)"
18771 alpine_c_client_target="bso"
18772 LIBS="$LIBS $LIBINTL"
18774 *-*-aix5*)
18775 systype="A52"
18776 alpine_path_delim="/"
18777 alpine_mode_readonly="(0600)"
18778 alpine_c_client_target="a52"
18780 *-*-aix4*)
18781 systype="A41"
18782 alpine_path_delim="/"
18783 alpine_mode_readonly="(0600)"
18784 alpine_c_client_target="a41"
18786 *-*-aix3*)
18787 systype="A32"
18788 alpine_path_delim="/"
18789 alpine_mode_readonly="(0600)"
18790 alpine_c_client_target="a32"
18792 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
18793 systype="UW2"
18794 alpine_path_delim="/"
18795 alpine_mode_readonly="(0600)"
18796 alpine_c_client_target="uw2"
18798 *-*-osf5*)
18799 systype="OSF"
18800 alpine_path_delim="/"
18801 alpine_mode_readonly="(0600)"
18802 alpine_c_client_target="osf"
18804 *-*-cygwin)
18805 systype="CYG"
18806 alpine_path_delim="/"
18807 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18808 alpine_c_client_target="cyg"
18809 LIBS="$LIBS $LIBINTL"
18811 windows* | *-*-pw32*)
18812 systype="WNT"
18813 alpine_path_delim="\\"
18814 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18815 alpine_c_client_target="wnt"
18817 $as_echo "#define _WINDOWS 1" >>confdefs.h
18821 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
18823 esac
18826 # Check whether --with-ipv6 was given.
18827 if test "${with_ipv6+set}" = set; then :
18828 withval=$with_ipv6; with_ipv6=$withval
18832 if test "x$with_ipv6" = "xno" ; then
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
18834 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
18835 c_client_specials="${c_client_specials}IP6=4 "
18836 c_client_ip6="true"
18837 else
18838 c_client_ip6="touch imap/ip6"
18843 if test x$enable_dmalloc = "xyes" ; then
18844 if test "x$with_pthread" = "xyes" ; then
18845 dmalloc_lib=dmallocth
18846 else
18847 dmalloc_lib=dmalloc
18850 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
18852 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
18853 if eval \${$as_ac_Lib+:} false; then :
18854 $as_echo_n "(cached) " >&6
18855 else
18856 ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-l$dmalloc_lib $LIBS"
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18861 /* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 char dmalloc_shutdown ();
18869 main ()
18871 return dmalloc_shutdown ();
18873 return 0;
18875 _ACEOF
18876 if ac_fn_c_try_link "$LINENO"; then :
18877 eval "$as_ac_Lib=yes"
18878 else
18879 eval "$as_ac_Lib=no"
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18885 eval ac_res=\$$as_ac_Lib
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18887 $as_echo "$ac_res" >&6; }
18888 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18889 cat >>confdefs.h <<_ACEOF
18890 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18891 _ACEOF
18893 LIBS="-l$dmalloc_lib $LIBS"
18895 else
18897 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18904 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18905 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907 else
18908 ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-ltinfo $LIBS"
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18916 #ifdef __cplusplus
18917 extern "C"
18918 #endif
18919 char setupterm ();
18921 main ()
18923 return setupterm ();
18925 return 0;
18927 _ACEOF
18928 if ac_fn_c_try_link "$LINENO"; then :
18929 ac_cv_lib_tinfo_setupterm=yes
18930 else
18931 ac_cv_lib_tinfo_setupterm=no
18933 rm -f core conftest.err conftest.$ac_objext \
18934 conftest$ac_exeext conftest.$ac_ext
18935 LIBS=$ac_check_lib_save_LIBS
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18938 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18939 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18941 alpine_termdata=info
18942 LIBS="$LIBS -ltinfo"
18944 else
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18947 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18948 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18949 $as_echo_n "(cached) " >&6
18950 else
18951 ac_check_lib_save_LIBS=$LIBS
18952 LIBS="-lncurses $LIBS"
18953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h. */
18956 /* Override any GCC internal prototype to avoid an error.
18957 Use char because int might match the return type of a GCC
18958 builtin and then its argument prototype would still apply. */
18959 #ifdef __cplusplus
18960 extern "C"
18961 #endif
18962 char setupterm ();
18964 main ()
18966 return setupterm ();
18968 return 0;
18970 _ACEOF
18971 if ac_fn_c_try_link "$LINENO"; then :
18972 ac_cv_lib_ncurses_setupterm=yes
18973 else
18974 ac_cv_lib_ncurses_setupterm=no
18976 rm -f core conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18981 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18982 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18984 alpine_termdata=info
18985 LIBS="$LIBS -lncurses"
18987 else
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18990 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18991 if ${ac_cv_lib_curses_setupterm+:} false; then :
18992 $as_echo_n "(cached) " >&6
18993 else
18994 ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lcurses $LIBS"
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18999 /* Override any GCC internal prototype to avoid an error.
19000 Use char because int might match the return type of a GCC
19001 builtin and then its argument prototype would still apply. */
19002 #ifdef __cplusplus
19003 extern "C"
19004 #endif
19005 char setupterm ();
19007 main ()
19009 return setupterm ();
19011 return 0;
19013 _ACEOF
19014 if ac_fn_c_try_link "$LINENO"; then :
19015 ac_cv_lib_curses_setupterm=yes
19016 else
19017 ac_cv_lib_curses_setupterm=no
19019 rm -f core conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19021 LIBS=$ac_check_lib_save_LIBS
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
19024 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
19025 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
19027 alpine_termdata=info
19028 LIBS="$LIBS -lcurses"
19030 else
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
19033 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
19034 if ${ac_cv_lib_termlib_tgetent+:} false; then :
19035 $as_echo_n "(cached) " >&6
19036 else
19037 ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-ltermlib $LIBS"
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19042 /* Override any GCC internal prototype to avoid an error.
19043 Use char because int might match the return type of a GCC
19044 builtin and then its argument prototype would still apply. */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 char tgetent ();
19050 main ()
19052 return tgetent ();
19054 return 0;
19056 _ACEOF
19057 if ac_fn_c_try_link "$LINENO"; then :
19058 ac_cv_lib_termlib_tgetent=yes
19059 else
19060 ac_cv_lib_termlib_tgetent=no
19062 rm -f core conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
19067 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
19068 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
19070 alpine_termdata=cap
19071 LIBS="$LIBS -ltermlib"
19073 else
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
19076 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
19077 if ${ac_cv_lib_termcap_tgetent+:} false; then :
19078 $as_echo_n "(cached) " >&6
19079 else
19080 ac_check_lib_save_LIBS=$LIBS
19081 LIBS="-ltermcap $LIBS"
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19085 /* Override any GCC internal prototype to avoid an error.
19086 Use char because int might match the return type of a GCC
19087 builtin and then its argument prototype would still apply. */
19088 #ifdef __cplusplus
19089 extern "C"
19090 #endif
19091 char tgetent ();
19093 main ()
19095 return tgetent ();
19097 return 0;
19099 _ACEOF
19100 if ac_fn_c_try_link "$LINENO"; then :
19101 ac_cv_lib_termcap_tgetent=yes
19102 else
19103 ac_cv_lib_termcap_tgetent=no
19105 rm -f core conftest.err conftest.$ac_objext \
19106 conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19110 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
19111 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
19113 alpine_termdata=cap
19114 LIBS="$LIBS -ltermcap"
19116 else
19118 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
19134 case $alpine_termdata in
19135 info)
19137 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
19140 cap)
19142 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
19145 esac
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19148 $as_echo_n "checking for library containing dlopen... " >&6; }
19149 if ${ac_cv_search_dlopen+:} false; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19152 ac_func_search_save_LIBS=$LIBS
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char dlopen ();
19164 main ()
19166 return dlopen ();
19168 return 0;
19170 _ACEOF
19171 for ac_lib in '' dl dld; do
19172 if test -z "$ac_lib"; then
19173 ac_res="none required"
19174 else
19175 ac_res=-l$ac_lib
19176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19178 if ac_fn_c_try_link "$LINENO"; then :
19179 ac_cv_search_dlopen=$ac_res
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext
19183 if ${ac_cv_search_dlopen+:} false; then :
19184 break
19186 done
19187 if ${ac_cv_search_dlopen+:} false; then :
19189 else
19190 ac_cv_search_dlopen=no
19192 rm conftest.$ac_ext
19193 LIBS=$ac_func_search_save_LIBS
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19196 $as_echo "$ac_cv_search_dlopen" >&6; }
19197 ac_res=$ac_cv_search_dlopen
19198 if test "$ac_res" != no; then :
19199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19201 else
19202 alpine_DL="none"
19205 if test "x$alpine_DL" = "xnone" ; then
19206 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
19207 exit 1
19210 if test "x$alpine_SSLTYPE" != "xnone" ; then
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
19212 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19214 /* end confdefs.h. */
19216 #include <stdio.h>
19217 #include <stdlib.h>
19218 #if HAVE_STDINT_H
19219 #include <stdint.h>
19220 #endif /* HAVE_STDINT_H */
19221 #include <openssl/ssl.h>
19224 main ()
19227 #if OPENSSL_VERSION_NUMBER < 0x20000000L
19228 #error
19229 #endif
19232 return 0;
19234 _ACEOF
19235 if ac_fn_c_try_compile "$LINENO"; then :
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19237 $as_echo "yes" >&6; }
19238 alpine_SSLPROVIDER="libressl"
19240 else
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
19250 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19254 #include <stdio.h>
19255 #include <stdlib.h>
19256 #if HAVE_STDINT_H
19257 #include <stdint.h>
19258 #endif /* HAVE_STDINT_H */
19259 #include <openssl/ssl.h>
19262 main ()
19265 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
19266 #error
19267 #endif
19270 return 0;
19272 _ACEOF
19273 if ac_fn_c_try_compile "$LINENO"; then :
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19275 $as_echo "yes" >&6; }
19276 alpine_SSLPROVIDER="openssl"
19278 else
19279 alpine_SSLTYPE="none"
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 if test "x$alpine_SSLTYPE" = "xnone" ; then
19284 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
19285 exit 1
19289 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
19291 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 #include <stdio.h>
19296 #include <stdlib.h>
19297 #if HAVE_STDINT_H
19298 #include <stdint.h>
19299 #endif /* HAVE_STDINT_H */
19300 #include <openssl/ssl.h>
19303 main ()
19306 #if OPENSSL_VERSION_NUMBER < 0x10100000L
19307 #error
19308 #endif
19311 return 0;
19313 _ACEOF
19314 if ac_fn_c_try_compile "$LINENO"; then :
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316 $as_echo "yes" >&6; }
19317 alpine_SSLVERSION="new"
19318 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
19320 else
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19323 alpine_SSLVERSION="old"
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328 if test "x$alpine_SSLTYPE" != "xnone" ; then
19329 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
19331 $as_echo_n "checking for library containing SSLeay... " >&6; }
19332 if ${ac_cv_search_SSLeay+:} false; then :
19333 $as_echo_n "(cached) " >&6
19334 else
19335 ac_func_search_save_LIBS=$LIBS
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char SSLeay ();
19347 main ()
19349 return SSLeay ();
19351 return 0;
19353 _ACEOF
19354 for ac_lib in '' crypto; do
19355 if test -z "$ac_lib"; then
19356 ac_res="none required"
19357 else
19358 ac_res=-l$ac_lib
19359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19361 if ac_fn_c_try_link "$LINENO"; then :
19362 ac_cv_search_SSLeay=$ac_res
19364 rm -f core conftest.err conftest.$ac_objext \
19365 conftest$ac_exeext
19366 if ${ac_cv_search_SSLeay+:} false; then :
19367 break
19369 done
19370 if ${ac_cv_search_SSLeay+:} false; then :
19372 else
19373 ac_cv_search_SSLeay=no
19375 rm conftest.$ac_ext
19376 LIBS=$ac_func_search_save_LIBS
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
19379 $as_echo "$ac_cv_search_SSLeay" >&6; }
19380 ac_res=$ac_cv_search_SSLeay
19381 if test "$ac_res" != no; then :
19382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19384 else
19385 alpine_CRYPTO="none"
19388 else
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
19390 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
19391 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19392 $as_echo_n "(cached) " >&6
19393 else
19394 ac_func_search_save_LIBS=$LIBS
19395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h. */
19398 /* Override any GCC internal prototype to avoid an error.
19399 Use char because int might match the return type of a GCC
19400 builtin and then its argument prototype would still apply. */
19401 #ifdef __cplusplus
19402 extern "C"
19403 #endif
19404 char OpenSSL_version_num ();
19406 main ()
19408 return OpenSSL_version_num ();
19410 return 0;
19412 _ACEOF
19413 for ac_lib in '' crypto; do
19414 if test -z "$ac_lib"; then
19415 ac_res="none required"
19416 else
19417 ac_res=-l$ac_lib
19418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19420 if ac_fn_c_try_link "$LINENO"; then :
19421 ac_cv_search_OpenSSL_version_num=$ac_res
19423 rm -f core conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext
19425 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19426 break
19428 done
19429 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19431 else
19432 ac_cv_search_OpenSSL_version_num=no
19434 rm conftest.$ac_ext
19435 LIBS=$ac_func_search_save_LIBS
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
19438 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
19439 ac_res=$ac_cv_search_OpenSSL_version_num
19440 if test "$ac_res" != no; then :
19441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19443 else
19444 alpine_CRYPTO="none"
19448 if test "x$alpine_CRYPTO" = "xnone" ; then
19449 as_fn_error $? "crypto library NOT found" "$LINENO" 5
19450 exit 1
19452 case $host in
19453 *-*-cygwin)
19454 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
19455 if test "x$ac_cv_header_crypto_h" = xyes; then :
19457 else
19458 alpine_CRYPTO_DEVEL="none"
19462 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
19463 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
19464 exit 1
19467 *) ;;
19468 esac
19471 if test "x$alpine_SSLTYPE" != "xnone" ; then
19472 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
19474 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
19475 if ${ac_cv_search_SSL_library_init+:} false; then :
19476 $as_echo_n "(cached) " >&6
19477 else
19478 ac_func_search_save_LIBS=$LIBS
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19482 /* Override any GCC internal prototype to avoid an error.
19483 Use char because int might match the return type of a GCC
19484 builtin and then its argument prototype would still apply. */
19485 #ifdef __cplusplus
19486 extern "C"
19487 #endif
19488 char SSL_library_init ();
19490 main ()
19492 return SSL_library_init ();
19494 return 0;
19496 _ACEOF
19497 for ac_lib in '' ssl; do
19498 if test -z "$ac_lib"; then
19499 ac_res="none required"
19500 else
19501 ac_res=-l$ac_lib
19502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19504 if ac_fn_c_try_link "$LINENO"; then :
19505 ac_cv_search_SSL_library_init=$ac_res
19507 rm -f core conftest.err conftest.$ac_objext \
19508 conftest$ac_exeext
19509 if ${ac_cv_search_SSL_library_init+:} false; then :
19510 break
19512 done
19513 if ${ac_cv_search_SSL_library_init+:} false; then :
19515 else
19516 ac_cv_search_SSL_library_init=no
19518 rm conftest.$ac_ext
19519 LIBS=$ac_func_search_save_LIBS
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
19522 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
19523 ac_res=$ac_cv_search_SSL_library_init
19524 if test "$ac_res" != no; then :
19525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19527 else
19528 alpine_SSLTYPE="none"
19531 if test "x$alpine_SSLTYPE" = "xnone" ; then
19532 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
19533 exit 1
19535 else
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
19537 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
19538 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 ac_func_search_save_LIBS=$LIBS
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 /* Override any GCC internal prototype to avoid an error.
19546 Use char because int might match the return type of a GCC
19547 builtin and then its argument prototype would still apply. */
19548 #ifdef __cplusplus
19549 extern "C"
19550 #endif
19551 char OPENSSL_init_ssl ();
19553 main ()
19555 return OPENSSL_init_ssl ();
19557 return 0;
19559 _ACEOF
19560 for ac_lib in '' ssl; do
19561 if test -z "$ac_lib"; then
19562 ac_res="none required"
19563 else
19564 ac_res=-l$ac_lib
19565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19567 if ac_fn_c_try_link "$LINENO"; then :
19568 ac_cv_search_OPENSSL_init_ssl=$ac_res
19570 rm -f core conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext
19572 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19573 break
19575 done
19576 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19578 else
19579 ac_cv_search_OPENSSL_init_ssl=no
19581 rm conftest.$ac_ext
19582 LIBS=$ac_func_search_save_LIBS
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19585 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19586 ac_res=$ac_cv_search_OPENSSL_init_ssl
19587 if test "$ac_res" != no; then :
19588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19590 else
19591 alpine_SSLTYPE="none"
19594 if test "x$alpine_SSLTYPE" = "xnone" ; then
19595 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19596 exit 1
19601 if test "$alpine_with_ldap" = "yes" ; then
19602 alpine_has_ldap=
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19604 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19605 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19606 $as_echo_n "(cached) " >&6
19607 else
19608 ac_check_lib_save_LIBS=$LIBS
19609 LIBS="-llber $LIBS"
19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19616 #ifdef __cplusplus
19617 extern "C"
19618 #endif
19619 char ber_alloc ();
19621 main ()
19623 return ber_alloc ();
19625 return 0;
19627 _ACEOF
19628 if ac_fn_c_try_link "$LINENO"; then :
19629 ac_cv_lib_lber_ber_alloc=yes
19630 else
19631 ac_cv_lib_lber_ber_alloc=no
19633 rm -f core conftest.err conftest.$ac_objext \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19638 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19639 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19641 LIBS="$LIBS -llber"
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19646 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19647 if ${ac_cv_search_ldap_initialize+:} false; then :
19648 $as_echo_n "(cached) " >&6
19649 else
19650 ac_func_search_save_LIBS=$LIBS
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char ldap_initialize ();
19662 main ()
19664 return ldap_initialize ();
19666 return 0;
19668 _ACEOF
19669 for ac_lib in '' ldap; do
19670 if test -z "$ac_lib"; then
19671 ac_res="none required"
19672 else
19673 ac_res=-l$ac_lib
19674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19676 if ac_fn_c_try_link "$LINENO"; then :
19677 ac_cv_search_ldap_initialize=$ac_res
19679 rm -f core conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext
19681 if ${ac_cv_search_ldap_initialize+:} false; then :
19682 break
19684 done
19685 if ${ac_cv_search_ldap_initialize+:} false; then :
19687 else
19688 ac_cv_search_ldap_initialize=no
19690 rm conftest.$ac_ext
19691 LIBS=$ac_func_search_save_LIBS
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
19694 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
19695 ac_res=$ac_cv_search_ldap_initialize
19696 if test "$ac_res" != no; then :
19697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19699 alpine_has_ldap=yes
19701 else
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
19704 $as_echo_n "checking for library containing ldap_open... " >&6; }
19705 if ${ac_cv_search_ldap_open+:} false; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 ac_func_search_save_LIBS=$LIBS
19709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h. */
19712 /* Override any GCC internal prototype to avoid an error.
19713 Use char because int might match the return type of a GCC
19714 builtin and then its argument prototype would still apply. */
19715 #ifdef __cplusplus
19716 extern "C"
19717 #endif
19718 char ldap_open ();
19720 main ()
19722 return ldap_open ();
19724 return 0;
19726 _ACEOF
19727 for ac_lib in '' ldap; do
19728 if test -z "$ac_lib"; then
19729 ac_res="none required"
19730 else
19731 ac_res=-l$ac_lib
19732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19734 if ac_fn_c_try_link "$LINENO"; then :
19735 ac_cv_search_ldap_open=$ac_res
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext
19739 if ${ac_cv_search_ldap_open+:} false; then :
19740 break
19742 done
19743 if ${ac_cv_search_ldap_open+:} false; then :
19745 else
19746 ac_cv_search_ldap_open=no
19748 rm conftest.$ac_ext
19749 LIBS=$ac_func_search_save_LIBS
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
19752 $as_echo "$ac_cv_search_ldap_open" >&6; }
19753 ac_res=$ac_cv_search_ldap_open
19754 if test "$ac_res" != no; then :
19755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19757 alpine_has_ldap=yes
19765 if test "$alpine_has_ldap" = "yes" ; then
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19767 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19769 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19774 if test "x$alpine_PAM" != "xnone" ; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19776 $as_echo_n "checking for library containing pam_start... " >&6; }
19777 if ${ac_cv_search_pam_start+:} false; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 ac_func_search_save_LIBS=$LIBS
19781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h. */
19784 /* Override any GCC internal prototype to avoid an error.
19785 Use char because int might match the return type of a GCC
19786 builtin and then its argument prototype would still apply. */
19787 #ifdef __cplusplus
19788 extern "C"
19789 #endif
19790 char pam_start ();
19792 main ()
19794 return pam_start ();
19796 return 0;
19798 _ACEOF
19799 for ac_lib in '' pam; do
19800 if test -z "$ac_lib"; then
19801 ac_res="none required"
19802 else
19803 ac_res=-l$ac_lib
19804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 ac_cv_search_pam_start=$ac_res
19809 rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext
19811 if ${ac_cv_search_pam_start+:} false; then :
19812 break
19814 done
19815 if ${ac_cv_search_pam_start+:} false; then :
19817 else
19818 ac_cv_search_pam_start=no
19820 rm conftest.$ac_ext
19821 LIBS=$ac_func_search_save_LIBS
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19824 $as_echo "$ac_cv_search_pam_start" >&6; }
19825 ac_res=$ac_cv_search_pam_start
19826 if test "$ac_res" != no; then :
19827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19829 LIBS="$LIBS -lpam"
19830 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19831 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19833 alpine_PAM="yes"
19835 else
19836 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19837 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19839 alpine_PAM="yes"
19840 if test "x$alpine_c_client_target" != "xoxp" ; then
19841 alpine_PAM="none"
19842 alpine_pam_none_reason="header files not in security/ directory"
19845 else
19847 alpine_PAM="none"
19848 alpine_pam_none_reason="header files not found"
19858 else
19860 alpine_PAM="none"
19861 alpine_pam_none_reason="library files not found"
19865 if test -n "$alpine_pam_none_reason" ; then
19866 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
19871 if test "x$alpine_GSSTYPE" != "xnone" ; then
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19873 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19874 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 ac_func_search_save_LIBS=$LIBS
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19881 /* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 char gss_init_sec_context ();
19889 main ()
19891 return gss_init_sec_context ();
19893 return 0;
19895 _ACEOF
19896 for ac_lib in '' gss gssapi gssapi_krb5; do
19897 if test -z "$ac_lib"; then
19898 ac_res="none required"
19899 else
19900 ac_res=-l$ac_lib
19901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19903 if ac_fn_c_try_link "$LINENO"; then :
19904 ac_cv_search_gss_init_sec_context=$ac_res
19906 rm -f core conftest.err conftest.$ac_objext \
19907 conftest$ac_exeext
19908 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19909 break
19911 done
19912 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19914 else
19915 ac_cv_search_gss_init_sec_context=no
19917 rm conftest.$ac_ext
19918 LIBS=$ac_func_search_save_LIBS
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19921 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19922 ac_res=$ac_cv_search_gss_init_sec_context
19923 if test "$ac_res" != no; then :
19924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19926 LIBS="$LIBS -lkrb5"
19927 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19928 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19930 else
19932 if test ! -d /usr/kerberos/include ; then
19933 alpine_GSSTYPE="none"
19934 alpine_gss_none_reason="header files not found"
19941 else
19943 alpine_GSSTYPE="none"
19944 alpine_gss_none_reason="libraries not found"
19948 if test -n "$alpine_gss_none_reason" ; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19950 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19955 # Check whether --with-ntlm was given.
19956 if test "${with_ntlm+set}" = set; then :
19957 withval=$with_ntlm; with_ntlm=$withval
19961 if test "x$with_ntlm" = "xno" ; then
19962 alpine_NTLM="none"
19963 else
19964 alpine_NTLM=
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19967 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19968 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19969 $as_echo_n "(cached) " >&6
19970 else
19971 ac_func_search_save_LIBS=$LIBS
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19975 /* Override any GCC internal prototype to avoid an error.
19976 Use char because int might match the return type of a GCC
19977 builtin and then its argument prototype would still apply. */
19978 #ifdef __cplusplus
19979 extern "C"
19980 #endif
19981 char buildSmbNtlmAuthRequest ();
19983 main ()
19985 return buildSmbNtlmAuthRequest ();
19987 return 0;
19989 _ACEOF
19990 for ac_lib in '' ntlm; do
19991 if test -z "$ac_lib"; then
19992 ac_res="none required"
19993 else
19994 ac_res=-l$ac_lib
19995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19997 if ac_fn_c_try_link "$LINENO"; then :
19998 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext
20002 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20003 break
20005 done
20006 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20008 else
20009 ac_cv_search_buildSmbNtlmAuthRequest=no
20011 rm conftest.$ac_ext
20012 LIBS=$ac_func_search_save_LIBS
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
20015 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
20016 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
20017 if test "$ac_res" != no; then :
20018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20020 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
20021 if test "x$ac_cv_header_ntlm_h" = xyes; then :
20023 extra_auth_ntlm=ntl
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
20025 $as_echo "$as_me: including NTLM support" >&6;}
20027 else
20029 alpine_NTLM="none"
20030 alpine_ntlm_none_reason="header file ntlm.h not found"
20036 else
20038 alpine_NTLM="none"
20039 alpine_ntlm_none_reason="ntlm library not found"
20043 if test -n "$alpine_ntlm_none_reason" ; then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
20045 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
20049 if test -n "$WEB_BUILD" ; then
20050 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
20051 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
20052 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
20054 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
20055 if ${ac_cv_search_Tcl_Eval+:} false; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20058 ac_func_search_save_LIBS=$LIBS
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char Tcl_Eval ();
20070 main ()
20072 return Tcl_Eval ();
20074 return 0;
20076 _ACEOF
20077 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
20078 if test -z "$ac_lib"; then
20079 ac_res="none required"
20080 else
20081 ac_res=-l$ac_lib
20082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20084 if ac_fn_c_try_link "$LINENO"; then :
20085 ac_cv_search_Tcl_Eval=$ac_res
20087 rm -f core conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext
20089 if ${ac_cv_search_Tcl_Eval+:} false; then :
20090 break
20092 done
20093 if ${ac_cv_search_Tcl_Eval+:} false; then :
20095 else
20096 ac_cv_search_Tcl_Eval=no
20098 rm conftest.$ac_ext
20099 LIBS=$ac_func_search_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
20102 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
20103 ac_res=$ac_cv_search_Tcl_Eval
20104 if test "$ac_res" != no; then :
20105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20107 else
20109 WEB_BUILD=
20114 if test -n "$alpine_TCLINC" ; then
20115 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
20116 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
20117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20119 else
20121 WEB_BUILD=
20126 if test -z "$WEB_BUILD" ; then
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
20128 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
20130 else
20131 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
20132 if test "x$ac_cv_header_tcl_h" = xyes; then :
20134 else
20136 for base in /usr /usr/local ; do
20137 for dir in ${TCL_VERSIONS} ; do
20138 if test -f $base/include/$dir/tcl.h ; then
20139 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
20140 found=yes
20141 break
20143 done
20144 if test "x$found" = "xyes" ; then
20145 break
20147 done
20148 if test "$found" != "yes" ; then
20149 WEB_BUILD=
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
20151 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
20160 if test "x$alpine_REGEX" != "xyes" ; then
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20162 $as_echo_n "checking for library containing regcomp... " >&6; }
20163 if ${ac_cv_search_regcomp+:} false; then :
20164 $as_echo_n "(cached) " >&6
20165 else
20166 ac_func_search_save_LIBS=$LIBS
20167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168 /* end confdefs.h. */
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20173 #ifdef __cplusplus
20174 extern "C"
20175 #endif
20176 char regcomp ();
20178 main ()
20180 return regcomp ();
20182 return 0;
20184 _ACEOF
20185 for ac_lib in '' posix regexp regex re; do
20186 if test -z "$ac_lib"; then
20187 ac_res="none required"
20188 else
20189 ac_res=-l$ac_lib
20190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20192 if ac_fn_c_try_link "$LINENO"; then :
20193 ac_cv_search_regcomp=$ac_res
20195 rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext
20197 if ${ac_cv_search_regcomp+:} false; then :
20198 break
20200 done
20201 if ${ac_cv_search_regcomp+:} false; then :
20203 else
20204 ac_cv_search_regcomp=no
20206 rm conftest.$ac_ext
20207 LIBS=$ac_func_search_save_LIBS
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20210 $as_echo "$ac_cv_search_regcomp" >&6; }
20211 ac_res=$ac_cv_search_regcomp
20212 if test "$ac_res" != no; then :
20213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20215 else
20217 if test x$alpine_REGEX = "xno" ; then
20218 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
20219 else
20220 alpine_REGEX=yes
20226 if test "x$alpine_REGEX" != "xyes" ; then
20227 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
20228 if test "x$ac_cv_header_regex_h" = xyes; then :
20230 else
20232 if test x$alpine_REGEX = "xno" ; then
20233 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
20234 else
20235 alpine_REGEX=yes
20243 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
20245 if test "x$alpine_REGEX" = "xyes" ; then
20246 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
20247 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
20248 REGEX_BUILD=regex
20249 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
20252 if test "x$with_pthread" != "xno" ; then
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
20254 $as_echo_n "checking for pthread support... " >&6; }
20258 ac_ext=c
20259 ac_cpp='$CPP $CPPFLAGS'
20260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20264 acx_pthread_ok=no
20266 # We used to check for pthread.h first, but this fails if pthread.h
20267 # requires special compiler flags (e.g. on True64 or Sequent).
20268 # It gets checked for in the link test anyway.
20270 # First of all, check if the user has set any of the PTHREAD_LIBS,
20271 # etcetera environment variables, and if threads linking works using
20272 # them:
20273 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20274 save_CFLAGS="$CFLAGS"
20275 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20276 save_LIBS="$LIBS"
20277 LIBS="$PTHREAD_LIBS $LIBS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20279 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char pthread_join ();
20291 main ()
20293 return pthread_join ();
20295 return 0;
20297 _ACEOF
20298 if ac_fn_c_try_link "$LINENO"; then :
20299 acx_pthread_ok=yes
20301 rm -f core conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20304 $as_echo "$acx_pthread_ok" >&6; }
20305 if test x"$acx_pthread_ok" = xno; then
20306 PTHREAD_LIBS=""
20307 PTHREAD_CFLAGS=""
20309 LIBS="$save_LIBS"
20310 CFLAGS="$save_CFLAGS"
20313 # We must check for the threads library under a number of different
20314 # names; the ordering is very important because some systems
20315 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20316 # libraries is broken (non-POSIX).
20318 # Create a list of thread flags to try. Items starting with a "-" are
20319 # C compiler flags, and other items are library names, except for "none"
20320 # which indicates that we try without any flags at all, and "pthread-config"
20321 # which is a program returning the flags for the Pth emulation library.
20323 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20325 # The ordering *is* (sometimes) important. Some notes on the
20326 # individual items follow:
20328 # pthreads: AIX (must check this before -lpthread)
20329 # none: in case threads are in libc; should be tried before -Kthread and
20330 # other compiler flags to prevent continual compiler warnings
20331 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20334 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20335 # -pthreads: Solaris/gcc
20336 # -mthreads: Mingw32/gcc, Lynx/gcc
20337 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20338 # doesn't hurt to check since this sometimes defines pthreads too;
20339 # also defines -D_REENTRANT)
20340 # ... -mt is also the pthreads flag for HP/aCC
20341 # pthread: Linux, etcetera
20342 # --thread-safe: KAI C++
20343 # pthread-config: use pthread-config program (for GNU Pth library)
20345 case "${host_cpu}-${host_os}" in
20346 *solaris*)
20348 # On Solaris (at least, for some versions), libc contains stubbed
20349 # (non-functional) versions of the pthreads routines, so link-based
20350 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20351 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20352 # a function called by this macro, so we could check for that, but
20353 # who knows whether they'll stub that too in a future libc.) So,
20354 # we'll just look for -pthreads and -lpthread first:
20356 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20358 esac
20360 if test x"$acx_pthread_ok" = xno; then
20361 for flag in $acx_pthread_flags; do
20363 case $flag in
20364 none)
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20366 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20371 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20372 PTHREAD_CFLAGS="$flag"
20375 pthread-config)
20376 # Extract the first word of "pthread-config", so it can be a program name with args.
20377 set dummy pthread-config; ac_word=$2
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20379 $as_echo_n "checking for $ac_word... " >&6; }
20380 if ${ac_cv_prog_acx_pthread_config+:} false; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20383 if test -n "$acx_pthread_config"; then
20384 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20385 else
20386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20387 for as_dir in $PATH
20389 IFS=$as_save_IFS
20390 test -z "$as_dir" && as_dir=.
20391 for ac_exec_ext in '' $ac_executable_extensions; do
20392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20393 ac_cv_prog_acx_pthread_config="yes"
20394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20395 break 2
20397 done
20398 done
20399 IFS=$as_save_IFS
20401 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20404 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20405 if test -n "$acx_pthread_config"; then
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20407 $as_echo "$acx_pthread_config" >&6; }
20408 else
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20410 $as_echo "no" >&6; }
20414 if test x"$acx_pthread_config" = xno; then continue; fi
20415 PTHREAD_CFLAGS="`pthread-config --cflags`"
20416 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20421 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20422 PTHREAD_LIBS="-l$flag"
20424 esac
20426 save_LIBS="$LIBS"
20427 save_CFLAGS="$CFLAGS"
20428 LIBS="$PTHREAD_LIBS $LIBS"
20429 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20431 # Check for various functions. We must include pthread.h,
20432 # since some functions may be macros. (On the Sequent, we
20433 # need a special flag -Kthread to make this header compile.)
20434 # We check for pthread_join because it is in -lpthread on IRIX
20435 # while pthread_create is in libc. We check for pthread_attr_init
20436 # due to DEC craziness with -lpthreads. We check for
20437 # pthread_cleanup_push because it is one of the few pthread
20438 # functions on Solaris that doesn't have a non-functional libc stub.
20439 # We try pthread_create on general principles.
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20442 #include <pthread.h>
20444 main ()
20446 pthread_t th; pthread_join(th, 0);
20447 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20448 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20450 return 0;
20452 _ACEOF
20453 if ac_fn_c_try_link "$LINENO"; then :
20454 acx_pthread_ok=yes
20456 rm -f core conftest.err conftest.$ac_objext \
20457 conftest$ac_exeext conftest.$ac_ext
20459 LIBS="$save_LIBS"
20460 CFLAGS="$save_CFLAGS"
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20463 $as_echo "$acx_pthread_ok" >&6; }
20464 if test "x$acx_pthread_ok" = xyes; then
20465 break;
20468 PTHREAD_LIBS=""
20469 PTHREAD_CFLAGS=""
20470 done
20473 # Various other checks:
20474 if test "x$acx_pthread_ok" = xyes; then
20475 save_LIBS="$LIBS"
20476 LIBS="$PTHREAD_LIBS $LIBS"
20477 save_CFLAGS="$CFLAGS"
20478 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20480 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20482 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20483 attr_name=unknown
20484 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487 #include <pthread.h>
20489 main ()
20491 int attr=$attr; return attr;
20493 return 0;
20495 _ACEOF
20496 if ac_fn_c_try_link "$LINENO"; then :
20497 attr_name=$attr; break
20499 rm -f core conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20501 done
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20503 $as_echo "$attr_name" >&6; }
20504 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20506 cat >>confdefs.h <<_ACEOF
20507 #define PTHREAD_CREATE_JOINABLE $attr_name
20508 _ACEOF
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20513 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20514 flag=no
20515 case "${host_cpu}-${host_os}" in
20516 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20517 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20518 esac
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20520 $as_echo "${flag}" >&6; }
20521 if test "x$flag" != xno; then
20522 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20525 LIBS="$save_LIBS"
20526 CFLAGS="$save_CFLAGS"
20528 # More AIX lossage: must compile with xlc_r or cc_r
20529 if test x"$GCC" != xyes; then
20530 for ac_prog in xlc_r cc_r
20532 # Extract the first word of "$ac_prog", so it can be a program name with args.
20533 set dummy $ac_prog; ac_word=$2
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20535 $as_echo_n "checking for $ac_word... " >&6; }
20536 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20537 $as_echo_n "(cached) " >&6
20538 else
20539 if test -n "$PTHREAD_CC"; then
20540 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20541 else
20542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20543 for as_dir in $PATH
20545 IFS=$as_save_IFS
20546 test -z "$as_dir" && as_dir=.
20547 for ac_exec_ext in '' $ac_executable_extensions; do
20548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20549 ac_cv_prog_PTHREAD_CC="$ac_prog"
20550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20551 break 2
20553 done
20554 done
20555 IFS=$as_save_IFS
20559 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20560 if test -n "$PTHREAD_CC"; then
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20562 $as_echo "$PTHREAD_CC" >&6; }
20563 else
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20569 test -n "$PTHREAD_CC" && break
20570 done
20571 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20573 else
20574 PTHREAD_CC=$CC
20576 else
20577 PTHREAD_CC="$CC"
20584 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20585 if test x"$acx_pthread_ok" = xyes; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20588 $as_echo "yes" >&6; }
20589 case "$target" in
20590 *openbsd*)
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20592 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20593 AM_CFLAGS="$AM_CFLAGS -pthread"
20595 esac
20596 LIBS="$PTHREAD_LIBS $LIBS"
20597 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20598 CC="$PTHREAD_CC"
20600 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20604 else
20605 acx_pthread_ok=no
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20608 $as_echo "no" >&6; }
20611 ac_ext=c
20612 ac_cpp='$CPP $CPPFLAGS'
20613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
20620 $as_echo_n "checking for library containing nanosleep... " >&6; }
20621 if ${ac_cv_search_nanosleep+:} false; then :
20622 $as_echo_n "(cached) " >&6
20623 else
20624 ac_func_search_save_LIBS=$LIBS
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h. */
20628 /* Override any GCC internal prototype to avoid an error.
20629 Use char because int might match the return type of a GCC
20630 builtin and then its argument prototype would still apply. */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 char nanosleep ();
20636 main ()
20638 return nanosleep ();
20640 return 0;
20642 _ACEOF
20643 for ac_lib in '' rt posix4; do
20644 if test -z "$ac_lib"; then
20645 ac_res="none required"
20646 else
20647 ac_res=-l$ac_lib
20648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20650 if ac_fn_c_try_link "$LINENO"; then :
20651 ac_cv_search_nanosleep=$ac_res
20653 rm -f core conftest.err conftest.$ac_objext \
20654 conftest$ac_exeext
20655 if ${ac_cv_search_nanosleep+:} false; then :
20656 break
20658 done
20659 if ${ac_cv_search_nanosleep+:} false; then :
20661 else
20662 ac_cv_search_nanosleep=no
20664 rm conftest.$ac_ext
20665 LIBS=$ac_func_search_save_LIBS
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
20668 $as_echo "$ac_cv_search_nanosleep" >&6; }
20669 ac_res=$ac_cv_search_nanosleep
20670 if test "$ac_res" != no; then :
20671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20674 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20685 $as_echo_n "checking for ANSI C header files... " >&6; }
20686 if ${ac_cv_header_stdc+:} false; then :
20687 $as_echo_n "(cached) " >&6
20688 else
20689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h. */
20691 #include <stdlib.h>
20692 #include <stdarg.h>
20693 #include <string.h>
20694 #include <float.h>
20697 main ()
20701 return 0;
20703 _ACEOF
20704 if ac_fn_c_try_compile "$LINENO"; then :
20705 ac_cv_header_stdc=yes
20706 else
20707 ac_cv_header_stdc=no
20709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 if test $ac_cv_header_stdc = yes; then
20712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h. */
20715 #include <string.h>
20717 _ACEOF
20718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20719 $EGREP "memchr" >/dev/null 2>&1; then :
20721 else
20722 ac_cv_header_stdc=no
20724 rm -f conftest*
20728 if test $ac_cv_header_stdc = yes; then
20729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h. */
20732 #include <stdlib.h>
20734 _ACEOF
20735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20736 $EGREP "free" >/dev/null 2>&1; then :
20738 else
20739 ac_cv_header_stdc=no
20741 rm -f conftest*
20745 if test $ac_cv_header_stdc = yes; then
20746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20747 if test "$cross_compiling" = yes; then :
20749 else
20750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h. */
20752 #include <ctype.h>
20753 #include <stdlib.h>
20754 #if ((' ' & 0x0FF) == 0x020)
20755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20757 #else
20758 # define ISLOWER(c) \
20759 (('a' <= (c) && (c) <= 'i') \
20760 || ('j' <= (c) && (c) <= 'r') \
20761 || ('s' <= (c) && (c) <= 'z'))
20762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20763 #endif
20765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20767 main ()
20769 int i;
20770 for (i = 0; i < 256; i++)
20771 if (XOR (islower (i), ISLOWER (i))
20772 || toupper (i) != TOUPPER (i))
20773 return 2;
20774 return 0;
20776 _ACEOF
20777 if ac_fn_c_try_run "$LINENO"; then :
20779 else
20780 ac_cv_header_stdc=no
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20783 conftest.$ac_objext conftest.beam conftest.$ac_ext
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20789 $as_echo "$ac_cv_header_stdc" >&6; }
20790 if test $ac_cv_header_stdc = yes; then
20792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20796 ac_header_dirent=no
20797 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20798 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20800 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20801 if eval \${$as_ac_Header+:} false; then :
20802 $as_echo_n "(cached) " >&6
20803 else
20804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h. */
20806 #include <sys/types.h>
20807 #include <$ac_hdr>
20810 main ()
20812 if ((DIR *) 0)
20813 return 0;
20815 return 0;
20817 _ACEOF
20818 if ac_fn_c_try_compile "$LINENO"; then :
20819 eval "$as_ac_Header=yes"
20820 else
20821 eval "$as_ac_Header=no"
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 eval ac_res=\$$as_ac_Header
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20827 $as_echo "$ac_res" >&6; }
20828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20829 cat >>confdefs.h <<_ACEOF
20830 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20831 _ACEOF
20833 ac_header_dirent=$ac_hdr; break
20836 done
20837 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20838 if test $ac_header_dirent = dirent.h; then
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20840 $as_echo_n "checking for library containing opendir... " >&6; }
20841 if ${ac_cv_search_opendir+:} false; then :
20842 $as_echo_n "(cached) " >&6
20843 else
20844 ac_func_search_save_LIBS=$LIBS
20845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20851 #ifdef __cplusplus
20852 extern "C"
20853 #endif
20854 char opendir ();
20856 main ()
20858 return opendir ();
20860 return 0;
20862 _ACEOF
20863 for ac_lib in '' dir; do
20864 if test -z "$ac_lib"; then
20865 ac_res="none required"
20866 else
20867 ac_res=-l$ac_lib
20868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20870 if ac_fn_c_try_link "$LINENO"; then :
20871 ac_cv_search_opendir=$ac_res
20873 rm -f core conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext
20875 if ${ac_cv_search_opendir+:} false; then :
20876 break
20878 done
20879 if ${ac_cv_search_opendir+:} false; then :
20881 else
20882 ac_cv_search_opendir=no
20884 rm conftest.$ac_ext
20885 LIBS=$ac_func_search_save_LIBS
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20888 $as_echo "$ac_cv_search_opendir" >&6; }
20889 ac_res=$ac_cv_search_opendir
20890 if test "$ac_res" != no; then :
20891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20895 else
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20897 $as_echo_n "checking for library containing opendir... " >&6; }
20898 if ${ac_cv_search_opendir+:} false; then :
20899 $as_echo_n "(cached) " >&6
20900 else
20901 ac_func_search_save_LIBS=$LIBS
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20905 /* Override any GCC internal prototype to avoid an error.
20906 Use char because int might match the return type of a GCC
20907 builtin and then its argument prototype would still apply. */
20908 #ifdef __cplusplus
20909 extern "C"
20910 #endif
20911 char opendir ();
20913 main ()
20915 return opendir ();
20917 return 0;
20919 _ACEOF
20920 for ac_lib in '' x; do
20921 if test -z "$ac_lib"; then
20922 ac_res="none required"
20923 else
20924 ac_res=-l$ac_lib
20925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20927 if ac_fn_c_try_link "$LINENO"; then :
20928 ac_cv_search_opendir=$ac_res
20930 rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext
20932 if ${ac_cv_search_opendir+:} false; then :
20933 break
20935 done
20936 if ${ac_cv_search_opendir+:} false; then :
20938 else
20939 ac_cv_search_opendir=no
20941 rm conftest.$ac_ext
20942 LIBS=$ac_func_search_save_LIBS
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20945 $as_echo "$ac_cv_search_opendir" >&6; }
20946 ac_res=$ac_cv_search_opendir
20947 if test "$ac_res" != no; then :
20948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20955 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20956 if ${ac_cv_header_stat_broken+:} false; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20961 #include <sys/types.h>
20962 #include <sys/stat.h>
20964 #if defined S_ISBLK && defined S_IFDIR
20965 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20966 #endif
20968 #if defined S_ISBLK && defined S_IFCHR
20969 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20970 #endif
20972 #if defined S_ISLNK && defined S_IFREG
20973 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20974 #endif
20976 #if defined S_ISSOCK && defined S_IFREG
20977 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20978 #endif
20980 _ACEOF
20981 if ac_fn_c_try_compile "$LINENO"; then :
20982 ac_cv_header_stat_broken=no
20983 else
20984 ac_cv_header_stat_broken=yes
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20989 $as_echo "$ac_cv_header_stat_broken" >&6; }
20990 if test $ac_cv_header_stat_broken = yes; then
20992 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20997 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20998 if ${ac_cv_header_sys_wait_h+:} false; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003 #include <sys/types.h>
21004 #include <sys/wait.h>
21005 #ifndef WEXITSTATUS
21006 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21007 #endif
21008 #ifndef WIFEXITED
21009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21010 #endif
21013 main ()
21015 int s;
21016 wait (&s);
21017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21019 return 0;
21021 _ACEOF
21022 if ac_fn_c_try_compile "$LINENO"; then :
21023 ac_cv_header_sys_wait_h=yes
21024 else
21025 ac_cv_header_sys_wait_h=no
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21030 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21031 if test $ac_cv_header_sys_wait_h = yes; then
21033 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21038 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21039 if ${ac_cv_header_time+:} false; then :
21040 $as_echo_n "(cached) " >&6
21041 else
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <sys/time.h>
21046 #include <time.h>
21049 main ()
21051 if ((struct tm *) 0)
21052 return 0;
21054 return 0;
21056 _ACEOF
21057 if ac_fn_c_try_compile "$LINENO"; then :
21058 ac_cv_header_time=yes
21059 else
21060 ac_cv_header_time=no
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21065 $as_echo "$ac_cv_header_time" >&6; }
21066 if test $ac_cv_header_time = yes; then
21068 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
21073 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
21074 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
21075 $as_echo_n "(cached) " >&6
21076 else
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21079 #include <sys/types.h>
21080 #include <termios.h>
21081 #ifdef TIOCGWINSZ
21083 #endif
21085 _ACEOF
21086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21087 $EGREP "yes" >/dev/null 2>&1; then :
21088 ac_cv_sys_tiocgwinsz_in_termios_h=yes
21089 else
21090 ac_cv_sys_tiocgwinsz_in_termios_h=no
21092 rm -f conftest*
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
21096 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
21098 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
21100 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
21101 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
21102 $as_echo_n "(cached) " >&6
21103 else
21104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21105 /* end confdefs.h. */
21106 #include <sys/types.h>
21107 #include <sys/ioctl.h>
21108 #ifdef TIOCGWINSZ
21110 #endif
21112 _ACEOF
21113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21114 $EGREP "yes" >/dev/null 2>&1; then :
21115 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
21116 else
21117 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
21119 rm -f conftest*
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
21123 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
21125 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
21127 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
21133 for ac_header in unistd.h
21134 do :
21135 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21136 if test "x$ac_cv_header_unistd_h" = xyes; then :
21137 cat >>confdefs.h <<_ACEOF
21138 #define HAVE_UNISTD_H 1
21139 _ACEOF
21143 done
21146 for ac_header in errno.h \
21147 ctype.h \
21148 fcntl.h \
21149 signal.h \
21150 setjmp.h \
21151 memory.h \
21152 sys/ioctl.h \
21153 sys/param.h \
21154 sys/socket.h \
21155 sys/uio.h \
21156 sys/un.h \
21157 limits.h \
21158 wchar.h \
21159 sys/poll.h \
21160 stropts.h \
21161 netdb.h \
21162 syslog.h \
21163 sys/syslog.h \
21164 locale.h \
21165 langinfo.h \
21166 utime.h \
21167 sys/utime.h \
21168 pthread.h \
21169 pwd.h \
21170 assert.h
21171 do :
21172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21173 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21174 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21175 cat >>confdefs.h <<_ACEOF
21176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21177 _ACEOF
21181 done
21184 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21185 if test "x$ac_cv_header_termios_h" = xyes; then :
21187 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
21189 else
21191 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
21192 if test "x$ac_cv_header_termio_h" = xyes; then :
21194 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
21196 else
21198 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
21199 if test "x$ac_cv_header_sgtty_h" = xyes; then :
21201 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
21203 else
21205 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21222 $as_echo_n "checking return type of signal handlers... " >&6; }
21223 if ${ac_cv_type_signal+:} false; then :
21224 $as_echo_n "(cached) " >&6
21225 else
21226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h. */
21228 #include <sys/types.h>
21229 #include <signal.h>
21232 main ()
21234 return *(signal (0, 0)) (0) == 1;
21236 return 0;
21238 _ACEOF
21239 if ac_fn_c_try_compile "$LINENO"; then :
21240 ac_cv_type_signal=int
21241 else
21242 ac_cv_type_signal=void
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21247 $as_echo "$ac_cv_type_signal" >&6; }
21249 cat >>confdefs.h <<_ACEOF
21250 #define RETSIGTYPE $ac_cv_type_signal
21251 _ACEOF
21254 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21255 if test "x$ac_cv_type_size_t" = xyes; then :
21257 else
21259 cat >>confdefs.h <<_ACEOF
21260 #define size_t unsigned int
21261 _ACEOF
21265 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21266 if test "x$ac_cv_type_mode_t" = xyes; then :
21268 else
21270 cat >>confdefs.h <<_ACEOF
21271 #define mode_t int
21272 _ACEOF
21276 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21277 if test "x$ac_cv_type_pid_t" = xyes; then :
21279 else
21281 cat >>confdefs.h <<_ACEOF
21282 #define pid_t int
21283 _ACEOF
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21288 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21289 if ${ac_cv_type_uid_t+:} false; then :
21290 $as_echo_n "(cached) " >&6
21291 else
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <sys/types.h>
21296 _ACEOF
21297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21298 $EGREP "uid_t" >/dev/null 2>&1; then :
21299 ac_cv_type_uid_t=yes
21300 else
21301 ac_cv_type_uid_t=no
21303 rm -f conftest*
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21307 $as_echo "$ac_cv_type_uid_t" >&6; }
21308 if test $ac_cv_type_uid_t = no; then
21310 $as_echo "#define uid_t int" >>confdefs.h
21313 $as_echo "#define gid_t int" >>confdefs.h
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21318 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21319 if ${ac_cv_struct_tm+:} false; then :
21320 $as_echo_n "(cached) " >&6
21321 else
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324 #include <sys/types.h>
21325 #include <time.h>
21328 main ()
21330 struct tm tm;
21331 int *p = &tm.tm_sec;
21332 return !p;
21334 return 0;
21336 _ACEOF
21337 if ac_fn_c_try_compile "$LINENO"; then :
21338 ac_cv_struct_tm=time.h
21339 else
21340 ac_cv_struct_tm=sys/time.h
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21345 $as_echo "$ac_cv_struct_tm" >&6; }
21346 if test $ac_cv_struct_tm = sys/time.h; then
21348 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21353 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
21354 if test "x$ac_cv_type_union_wait" = xyes; then :
21356 cat >>confdefs.h <<_ACEOF
21357 #define HAVE_UNION_WAIT 1
21358 _ACEOF
21364 for ac_header in stdint.h
21365 do :
21366 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21367 if test "x$ac_cv_header_stdint_h" = xyes; then :
21368 cat >>confdefs.h <<_ACEOF
21369 #define HAVE_STDINT_H 1
21370 _ACEOF
21371 uint16=uint16_t
21372 else
21374 for ac_header in inttypes.h
21375 do :
21376 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21377 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21378 cat >>confdefs.h <<_ACEOF
21379 #define HAVE_INTTYPES_H 1
21380 _ACEOF
21381 uint16=uint16_t
21382 else
21384 for ac_header in sys/types.h
21385 do :
21386 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21387 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21388 cat >>confdefs.h <<_ACEOF
21389 #define HAVE_SYS_TYPES_H 1
21390 _ACEOF
21391 uint16=u_int16_t
21392 else
21394 # The cast to long int works around a bug in the HP C Compiler
21395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21397 # This bug is HP SR number 8606223364.
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21399 $as_echo_n "checking size of unsigned short... " >&6; }
21400 if ${ac_cv_sizeof_unsigned_short+:} false; then :
21401 $as_echo_n "(cached) " >&6
21402 else
21403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21405 else
21406 if test "$ac_cv_type_unsigned_short" = yes; then
21407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21409 as_fn_error 77 "cannot compute sizeof (unsigned short)
21410 See \`config.log' for more details" "$LINENO" 5; }
21411 else
21412 ac_cv_sizeof_unsigned_short=0
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21418 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21422 cat >>confdefs.h <<_ACEOF
21423 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21424 _ACEOF
21427 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
21428 uint16="unsigned short"
21429 else
21430 # The cast to long int works around a bug in the HP C Compiler
21431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21433 # This bug is HP SR number 8606223364.
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21435 $as_echo_n "checking size of unsigned int... " >&6; }
21436 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21437 $as_echo_n "(cached) " >&6
21438 else
21439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21441 else
21442 if test "$ac_cv_type_unsigned_int" = yes; then
21443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21445 as_fn_error 77 "cannot compute sizeof (unsigned int)
21446 See \`config.log' for more details" "$LINENO" 5; }
21447 else
21448 ac_cv_sizeof_unsigned_int=0
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21454 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21458 cat >>confdefs.h <<_ACEOF
21459 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21460 _ACEOF
21463 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
21464 uint16="unsigned int"
21465 else
21466 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
21472 done
21477 done
21482 done
21485 cat >>confdefs.h <<_ACEOF
21486 #define UINT16 $uint16
21487 _ACEOF
21490 for ac_header in stdint.h
21491 do :
21492 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21493 if test "x$ac_cv_header_stdint_h" = xyes; then :
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_STDINT_H 1
21496 _ACEOF
21497 uint32=uint32_t
21498 else
21500 for ac_header in inttypes.h
21501 do :
21502 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21503 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21504 cat >>confdefs.h <<_ACEOF
21505 #define HAVE_INTTYPES_H 1
21506 _ACEOF
21507 uint32=uint32_t
21508 else
21510 for ac_header in sys/types.h
21511 do :
21512 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21513 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21514 cat >>confdefs.h <<_ACEOF
21515 #define HAVE_SYS_TYPES_H 1
21516 _ACEOF
21517 uint32=u_int32_t
21518 else
21520 # The cast to long int works around a bug in the HP C Compiler
21521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21523 # This bug is HP SR number 8606223364.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21525 $as_echo_n "checking size of unsigned int... " >&6; }
21526 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21527 $as_echo_n "(cached) " >&6
21528 else
21529 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21531 else
21532 if test "$ac_cv_type_unsigned_int" = yes; then
21533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21535 as_fn_error 77 "cannot compute sizeof (unsigned int)
21536 See \`config.log' for more details" "$LINENO" 5; }
21537 else
21538 ac_cv_sizeof_unsigned_int=0
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21544 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21548 cat >>confdefs.h <<_ACEOF
21549 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21550 _ACEOF
21553 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
21554 uint32="unsigned int"
21555 else
21556 # The cast to long int works around a bug in the HP C Compiler
21557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21559 # This bug is HP SR number 8606223364.
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21561 $as_echo_n "checking size of unsigned long... " >&6; }
21562 if ${ac_cv_sizeof_unsigned_long+:} false; then :
21563 $as_echo_n "(cached) " >&6
21564 else
21565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21567 else
21568 if test "$ac_cv_type_unsigned_long" = yes; then
21569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21571 as_fn_error 77 "cannot compute sizeof (unsigned long)
21572 See \`config.log' for more details" "$LINENO" 5; }
21573 else
21574 ac_cv_sizeof_unsigned_long=0
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21580 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21584 cat >>confdefs.h <<_ACEOF
21585 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21586 _ACEOF
21589 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21590 uint32="unsigned long"
21591 else
21592 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21598 done
21603 done
21608 done
21611 cat >>confdefs.h <<_ACEOF
21612 #define UINT32 $uint32
21613 _ACEOF
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
21617 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
21618 if ${ac_cv_func_qsort_argtype+:} false; then :
21619 $as_echo_n "(cached) " >&6
21620 else
21621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21622 /* end confdefs.h. */
21624 #if HAVE_STDLIB_H
21625 #include "stdlib.h"
21626 #endif
21628 extern void *base;
21629 extern sortf(const void *, const void *);
21630 int sortf(a, b)
21631 const void *a;
21632 const void *b; { return 0; }
21635 main ()
21638 qsort(base, 2, sizeof(char *), sortf);
21641 return 0;
21643 _ACEOF
21644 if ac_fn_c_try_compile "$LINENO"; then :
21645 ac_cv_func_qsort_argtype=void
21646 else
21647 ac_cv_func_qsort_argtype=char
21649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21653 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21655 cat >>confdefs.h <<_ACEOF
21656 #define qsort_t $ac_cv_func_qsort_argtype
21657 _ACEOF
21661 for ac_header in sys/select.h sys/socket.h
21662 do :
21663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21664 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21666 cat >>confdefs.h <<_ACEOF
21667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21668 _ACEOF
21672 done
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21675 $as_echo_n "checking types of arguments for select... " >&6; }
21676 if ${ac_cv_func_select_args+:} false; then :
21677 $as_echo_n "(cached) " >&6
21678 else
21679 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21680 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21681 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 #ifdef HAVE_SYS_SELECT_H
21686 # include <sys/select.h>
21687 #endif
21688 #ifdef HAVE_SYS_SOCKET_H
21689 # include <sys/socket.h>
21690 #endif
21693 main ()
21695 extern int select ($ac_arg1,
21696 $ac_arg234, $ac_arg234, $ac_arg234,
21697 $ac_arg5);
21699 return 0;
21701 _ACEOF
21702 if ac_fn_c_try_compile "$LINENO"; then :
21703 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 done
21707 done
21708 done
21709 # Provide a safe default value.
21710 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21714 $as_echo "$ac_cv_func_select_args" >&6; }
21715 ac_save_IFS=$IFS; IFS=','
21716 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21717 IFS=$ac_save_IFS
21718 shift
21720 cat >>confdefs.h <<_ACEOF
21721 #define SELECT_TYPE_ARG1 $1
21722 _ACEOF
21725 cat >>confdefs.h <<_ACEOF
21726 #define SELECT_TYPE_ARG234 ($2)
21727 _ACEOF
21730 cat >>confdefs.h <<_ACEOF
21731 #define SELECT_TYPE_ARG5 ($3)
21732 _ACEOF
21734 rm -f conftest*
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21738 $as_echo_n "checking for working strcoll... " >&6; }
21739 if ${ac_cv_func_strcoll_works+:} false; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 if test "$cross_compiling" = yes; then :
21743 ac_cv_func_strcoll_works=no
21744 else
21745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21747 $ac_includes_default
21749 main ()
21751 return (strcoll ("abc", "def") >= 0 ||
21752 strcoll ("ABC", "DEF") >= 0 ||
21753 strcoll ("123", "456") >= 0)
21755 return 0;
21757 _ACEOF
21758 if ac_fn_c_try_run "$LINENO"; then :
21759 ac_cv_func_strcoll_works=yes
21760 else
21761 ac_cv_func_strcoll_works=no
21763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21764 conftest.$ac_objext conftest.beam conftest.$ac_ext
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21769 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21770 if test $ac_cv_func_strcoll_works = yes; then
21772 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21778 for ac_header in vfork.h
21779 do :
21780 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21781 if test "x$ac_cv_header_vfork_h" = xyes; then :
21782 cat >>confdefs.h <<_ACEOF
21783 #define HAVE_VFORK_H 1
21784 _ACEOF
21788 done
21790 for ac_func in fork vfork
21791 do :
21792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21794 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21795 cat >>confdefs.h <<_ACEOF
21796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21797 _ACEOF
21800 done
21802 if test "x$ac_cv_func_fork" = xyes; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21804 $as_echo_n "checking for working fork... " >&6; }
21805 if ${ac_cv_func_fork_works+:} false; then :
21806 $as_echo_n "(cached) " >&6
21807 else
21808 if test "$cross_compiling" = yes; then :
21809 ac_cv_func_fork_works=cross
21810 else
21811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21812 /* end confdefs.h. */
21813 $ac_includes_default
21815 main ()
21818 /* By Ruediger Kuhlmann. */
21819 return fork () < 0;
21822 return 0;
21824 _ACEOF
21825 if ac_fn_c_try_run "$LINENO"; then :
21826 ac_cv_func_fork_works=yes
21827 else
21828 ac_cv_func_fork_works=no
21830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21831 conftest.$ac_objext conftest.beam conftest.$ac_ext
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21836 $as_echo "$ac_cv_func_fork_works" >&6; }
21838 else
21839 ac_cv_func_fork_works=$ac_cv_func_fork
21841 if test "x$ac_cv_func_fork_works" = xcross; then
21842 case $host in
21843 *-*-amigaos* | *-*-msdosdjgpp*)
21844 # Override, as these systems have only a dummy fork() stub
21845 ac_cv_func_fork_works=no
21848 ac_cv_func_fork_works=yes
21850 esac
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21852 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21854 ac_cv_func_vfork_works=$ac_cv_func_vfork
21855 if test "x$ac_cv_func_vfork" = xyes; then
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21857 $as_echo_n "checking for working vfork... " >&6; }
21858 if ${ac_cv_func_vfork_works+:} false; then :
21859 $as_echo_n "(cached) " >&6
21860 else
21861 if test "$cross_compiling" = yes; then :
21862 ac_cv_func_vfork_works=cross
21863 else
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h. */
21866 /* Thanks to Paul Eggert for this test. */
21867 $ac_includes_default
21868 #include <sys/wait.h>
21869 #ifdef HAVE_VFORK_H
21870 # include <vfork.h>
21871 #endif
21872 /* On some sparc systems, changes by the child to local and incoming
21873 argument registers are propagated back to the parent. The compiler
21874 is told about this with #include <vfork.h>, but some compilers
21875 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21876 static variable whose address is put into a register that is
21877 clobbered by the vfork. */
21878 static void
21879 #ifdef __cplusplus
21880 sparc_address_test (int arg)
21881 # else
21882 sparc_address_test (arg) int arg;
21883 #endif
21885 static pid_t child;
21886 if (!child) {
21887 child = vfork ();
21888 if (child < 0) {
21889 perror ("vfork");
21890 _exit(2);
21892 if (!child) {
21893 arg = getpid();
21894 write(-1, "", 0);
21895 _exit (arg);
21901 main ()
21903 pid_t parent = getpid ();
21904 pid_t child;
21906 sparc_address_test (0);
21908 child = vfork ();
21910 if (child == 0) {
21911 /* Here is another test for sparc vfork register problems. This
21912 test uses lots of local variables, at least as many local
21913 variables as main has allocated so far including compiler
21914 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21915 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21916 reuse the register of parent for one of the local variables,
21917 since it will think that parent can't possibly be used any more
21918 in this routine. Assigning to the local variable will thus
21919 munge parent in the parent process. */
21920 pid_t
21921 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21922 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21923 /* Convince the compiler that p..p7 are live; otherwise, it might
21924 use the same hardware register for all 8 local variables. */
21925 if (p != p1 || p != p2 || p != p3 || p != p4
21926 || p != p5 || p != p6 || p != p7)
21927 _exit(1);
21929 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21930 from child file descriptors. If the child closes a descriptor
21931 before it execs or exits, this munges the parent's descriptor
21932 as well. Test for this by closing stdout in the child. */
21933 _exit(close(fileno(stdout)) != 0);
21934 } else {
21935 int status;
21936 struct stat st;
21938 while (wait(&status) != child)
21940 return (
21941 /* Was there some problem with vforking? */
21942 child < 0
21944 /* Did the child fail? (This shouldn't happen.) */
21945 || status
21947 /* Did the vfork/compiler bug occur? */
21948 || parent != getpid()
21950 /* Did the file descriptor bug occur? */
21951 || fstat(fileno(stdout), &st) != 0
21955 _ACEOF
21956 if ac_fn_c_try_run "$LINENO"; then :
21957 ac_cv_func_vfork_works=yes
21958 else
21959 ac_cv_func_vfork_works=no
21961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21962 conftest.$ac_objext conftest.beam conftest.$ac_ext
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21967 $as_echo "$ac_cv_func_vfork_works" >&6; }
21970 if test "x$ac_cv_func_fork_works" = xcross; then
21971 ac_cv_func_vfork_works=$ac_cv_func_vfork
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21973 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21976 if test "x$ac_cv_func_vfork_works" = xyes; then
21978 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21980 else
21982 $as_echo "#define vfork fork" >>confdefs.h
21985 if test "x$ac_cv_func_fork_works" = xyes; then
21987 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21991 for ac_func in strchr \
21992 memcpy \
21993 strtol \
21994 strtoul \
21995 select \
21996 poll \
21997 qsort \
21998 getuid \
21999 getpwuid \
22000 getpwnam \
22001 gettimeofday \
22002 tmpfile \
22003 uname \
22004 rename \
22005 read \
22006 signal \
22007 setjmp \
22008 chown \
22009 wait4 \
22010 waitpid \
22011 wait \
22012 srandom \
22013 popen \
22014 pclose \
22015 fsync \
22016 truncate \
22017 listen \
22018 wcwidth \
22019 mbstowcs \
22020 wcrtomb \
22021 putenv \
22022 setenv
22023 do :
22024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22027 cat >>confdefs.h <<_ACEOF
22028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22029 _ACEOF
22032 done
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
22036 $as_echo_n "checking for library containing gethostname... " >&6; }
22037 if ${ac_cv_search_gethostname+:} false; then :
22038 $as_echo_n "(cached) " >&6
22039 else
22040 ac_func_search_save_LIBS=$LIBS
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char gethostname ();
22052 main ()
22054 return gethostname ();
22056 return 0;
22058 _ACEOF
22059 for ac_lib in '' nsl; do
22060 if test -z "$ac_lib"; then
22061 ac_res="none required"
22062 else
22063 ac_res=-l$ac_lib
22064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22066 if ac_fn_c_try_link "$LINENO"; then :
22067 ac_cv_search_gethostname=$ac_res
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext
22071 if ${ac_cv_search_gethostname+:} false; then :
22072 break
22074 done
22075 if ${ac_cv_search_gethostname+:} false; then :
22077 else
22078 ac_cv_search_gethostname=no
22080 rm conftest.$ac_ext
22081 LIBS=$ac_func_search_save_LIBS
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
22084 $as_echo "$ac_cv_search_gethostname" >&6; }
22085 ac_res=$ac_cv_search_gethostname
22086 if test "$ac_res" != no; then :
22087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
22093 $as_echo_n "checking for library containing socket... " >&6; }
22094 if ${ac_cv_search_socket+:} false; then :
22095 $as_echo_n "(cached) " >&6
22096 else
22097 ac_func_search_save_LIBS=$LIBS
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22101 /* Override any GCC internal prototype to avoid an error.
22102 Use char because int might match the return type of a GCC
22103 builtin and then its argument prototype would still apply. */
22104 #ifdef __cplusplus
22105 extern "C"
22106 #endif
22107 char socket ();
22109 main ()
22111 return socket ();
22113 return 0;
22115 _ACEOF
22116 for ac_lib in '' socket; do
22117 if test -z "$ac_lib"; then
22118 ac_res="none required"
22119 else
22120 ac_res=-l$ac_lib
22121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22123 if ac_fn_c_try_link "$LINENO"; then :
22124 ac_cv_search_socket=$ac_res
22126 rm -f core conftest.err conftest.$ac_objext \
22127 conftest$ac_exeext
22128 if ${ac_cv_search_socket+:} false; then :
22129 break
22131 done
22132 if ${ac_cv_search_socket+:} false; then :
22134 else
22135 ac_cv_search_socket=no
22137 rm conftest.$ac_ext
22138 LIBS=$ac_func_search_save_LIBS
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22141 $as_echo "$ac_cv_search_socket" >&6; }
22142 ac_res=$ac_cv_search_socket
22143 if test "$ac_res" != no; then :
22144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22146 else
22148 WEB_BUILD=
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
22154 $as_echo_n "checking for library containing bind... " >&6; }
22155 if ${ac_cv_search_bind+:} false; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 ac_func_search_save_LIBS=$LIBS
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char bind ();
22170 main ()
22172 return bind ();
22174 return 0;
22176 _ACEOF
22177 for ac_lib in '' bind; do
22178 if test -z "$ac_lib"; then
22179 ac_res="none required"
22180 else
22181 ac_res=-l$ac_lib
22182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22184 if ac_fn_c_try_link "$LINENO"; then :
22185 ac_cv_search_bind=$ac_res
22187 rm -f core conftest.err conftest.$ac_objext \
22188 conftest$ac_exeext
22189 if ${ac_cv_search_bind+:} false; then :
22190 break
22192 done
22193 if ${ac_cv_search_bind+:} false; then :
22195 else
22196 ac_cv_search_bind=no
22198 rm conftest.$ac_ext
22199 LIBS=$ac_func_search_save_LIBS
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
22202 $as_echo "$ac_cv_search_bind" >&6; }
22203 ac_res=$ac_cv_search_bind
22204 if test "$ac_res" != no; then :
22205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22207 else
22209 WEB_BUILD=
22214 for ac_func in sigaction sigemptyset sigaddset sigprocmask
22215 do :
22216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22219 cat >>confdefs.h <<_ACEOF
22220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22221 _ACEOF
22224 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
22227 else
22229 for ac_func in sigset sigrelse
22230 do :
22231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22234 cat >>confdefs.h <<_ACEOF
22235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22236 _ACEOF
22239 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
22243 done
22247 done
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
22251 $as_echo_n "checking for library containing syslog... " >&6; }
22252 if ${ac_cv_search_syslog+:} false; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 ac_func_search_save_LIBS=$LIBS
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22259 /* Override any GCC internal prototype to avoid an error.
22260 Use char because int might match the return type of a GCC
22261 builtin and then its argument prototype would still apply. */
22262 #ifdef __cplusplus
22263 extern "C"
22264 #endif
22265 char syslog ();
22267 main ()
22269 return syslog ();
22271 return 0;
22273 _ACEOF
22274 for ac_lib in '' bsd socket inet; do
22275 if test -z "$ac_lib"; then
22276 ac_res="none required"
22277 else
22278 ac_res=-l$ac_lib
22279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22281 if ac_fn_c_try_link "$LINENO"; then :
22282 ac_cv_search_syslog=$ac_res
22284 rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext
22286 if ${ac_cv_search_syslog+:} false; then :
22287 break
22289 done
22290 if ${ac_cv_search_syslog+:} false; then :
22292 else
22293 ac_cv_search_syslog=no
22295 rm conftest.$ac_ext
22296 LIBS=$ac_func_search_save_LIBS
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
22299 $as_echo "$ac_cv_search_syslog" >&6; }
22300 ac_res=$ac_cv_search_syslog
22301 if test "$ac_res" != no; then :
22302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22305 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
22312 if test -n "$alpine_with_local_maildir" ; then
22313 alpine_local_maildir=$alpine_with_local_maildir
22314 elif test -d /var/spool/mail ; then
22315 alpine_local_maildir="/var/spool/mail"
22316 elif test -d /var/mail ; then
22317 alpine_local_maildir="/var/mail"
22318 else
22319 alpine_local_maildir="/usr/spool/mail"
22322 if test -n "$alpine_with_c_client_target" ; then
22323 alpine_c_client_target=$alpine_with_c_client_target
22327 cat >>confdefs.h <<_ACEOF
22328 #define SYSTYPE "$systype"
22329 _ACEOF
22332 cat >>confdefs.h <<_ACEOF
22333 #define C_FILESEP '$alpine_path_delim'
22334 _ACEOF
22337 cat >>confdefs.h <<_ACEOF
22338 #define S_FILESEP "$alpine_path_delim"
22339 _ACEOF
22342 cat >>confdefs.h <<_ACEOF
22343 #define MAILDIR "$alpine_local_maildir"
22344 _ACEOF
22347 cat >>confdefs.h <<_ACEOF
22348 #define MODE_READONLY $alpine_mode_readonly
22349 _ACEOF
22352 C_CLIENT_TARGET=$alpine_c_client_target
22354 C_CLIENT_WITH_IPV6=$c_client_ip6
22356 if test "x$alpine_SSLTYPE" = "xnone" ; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
22358 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
22359 c_client_specials="${c_client_specials}SSLTYPE=none "
22360 else
22362 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
22363 certdir="$alpine_SSLCERTS"
22364 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
22365 certdir="${alpine_SSLDIR}/certs"
22366 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
22367 certdir="${alpine_SSLDIR}/ssl/certs"
22368 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
22369 certdir="$alpine_SSLCERTS_ORIG"
22370 elif test -n "$alpine_SSLCERTS" ; then
22371 certdir="$alpine_SSLCERTS"
22372 else
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
22374 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
22377 if test "x$with_smime" != "xno" ; then
22378 if test -n "$certdir" ; then
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
22380 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
22382 $as_echo "#define SMIME /**/" >>confdefs.h
22385 cat >>confdefs.h <<_ACEOF
22386 #define SMIME_SSLCERTS "$certdir"
22387 _ACEOF
22393 SSL_CERT_LINK="no"
22394 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
22395 SSL_BUNDLE_EXISTS="no"
22396 SSL_PEM="factory.pem ca-bundle.pem ca-bundle.crt ca-root-nss.crt"
22397 for SSL_BUNDLE in $SSL_PEM
22399 if test -f ${certdir}/${SSL_BUNDLE} ; then
22400 SSL_BUNDLE_EXISTS="yes"
22402 done
22403 else
22404 SSL_CERT_LINK="yes"
22407 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
22409 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
22411 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
22413 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
22415 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
22418 if test -n "$alpine_SSLINCLUDE" ; then
22419 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
22422 if test -n "$alpine_SSLLIB" ; then
22423 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
22426 if test -n "$alpine_SSLDIR" ; then
22427 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
22430 if test -n "$certdir" ; then
22431 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
22434 if test -n "$alpine_SSLKEYS" ; then
22435 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
22439 extra_auth_gss=
22440 if test "x$alpine_GSSTYPE" != "xnone" ; then
22441 extra_auth_gss=gss
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
22443 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
22446 extra_auth_ntlm=
22447 if test "x$alpine_NTLM" != "xnone" ; then
22448 extra_auth_ntlm=ntl
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
22450 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
22453 if test -n "$CPPFLAGS" ; then
22454 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
22456 if test -n "$CFLAGS" ; then
22457 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
22460 if test -n "$alpine_c_client_cflags" ; then
22461 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
22465 if test -n "$LDFLAGS" ; then
22466 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
22468 if test -n "$LIBS" ; then
22469 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
22472 if test -n "$alpine_c_client_ldflags" ; then
22473 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
22477 if test -n "$alpine_c_client_gccoptlevel" ; then
22478 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
22482 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
22483 C_CLIENT_AUTHS=$c_client_auths
22486 C_CLIENT_SPECIALS=$c_client_specials
22489 if test -z "$WEB_BUILD" ; then
22490 WEB_PUBCOOKIE_BUILD=
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
22492 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
22494 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
22495 else
22496 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
22497 if test "x$alpine_GSSTYPE" = "xnone" ; then
22498 WEB_PUBCOOKIE_BUILD=
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
22500 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
22502 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
22503 elif test -z "$WEB_BINDIR" ; then
22504 WEB_PUBCOOKIE_BUILD=
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
22506 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
22507 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
22508 Please re-run configure with these options:
22509 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
22510 else
22512 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
22514 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
22515 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
22531 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"
22533 cat >confcache <<\_ACEOF
22534 # This file is a shell script that caches the results of configure
22535 # tests run on this system so they can be shared between configure
22536 # scripts and configure runs, see configure's option --config-cache.
22537 # It is not useful on other systems. If it contains results you don't
22538 # want to keep, you may remove or edit it.
22540 # config.status only pays attention to the cache file if you give it
22541 # the --recheck option to rerun configure.
22543 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22545 # following values.
22547 _ACEOF
22549 # The following way of writing the cache mishandles newlines in values,
22550 # but we know of no workaround that is simple, portable, and efficient.
22551 # So, we kill variables containing newlines.
22552 # Ultrix sh set writes to stderr and can't be redirected directly,
22553 # and sets the high bit in the cache file unless we assign to the vars.
22555 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22556 eval ac_val=\$$ac_var
22557 case $ac_val in #(
22558 *${as_nl}*)
22559 case $ac_var in #(
22560 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22561 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22562 esac
22563 case $ac_var in #(
22564 _ | IFS | as_nl) ;; #(
22565 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22566 *) { eval $ac_var=; unset $ac_var;} ;;
22567 esac ;;
22568 esac
22569 done
22571 (set) 2>&1 |
22572 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22573 *${as_nl}ac_space=\ *)
22574 # `set' does not quote correctly, so add quotes: double-quote
22575 # substitution turns \\\\ into \\, and sed turns \\ into \.
22576 sed -n \
22577 "s/'/'\\\\''/g;
22578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22579 ;; #(
22581 # `set' quotes correctly as required by POSIX, so do not add quotes.
22582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22584 esac |
22585 sort
22587 sed '
22588 /^ac_cv_env_/b end
22589 t clear
22590 :clear
22591 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22592 t end
22593 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22594 :end' >>confcache
22595 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22596 if test -w "$cache_file"; then
22597 if test "x$cache_file" != "x/dev/null"; then
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22599 $as_echo "$as_me: updating cache $cache_file" >&6;}
22600 if test ! -f "$cache_file" || test -h "$cache_file"; then
22601 cat confcache >"$cache_file"
22602 else
22603 case $cache_file in #(
22604 */* | ?:*)
22605 mv -f confcache "$cache_file"$$ &&
22606 mv -f "$cache_file"$$ "$cache_file" ;; #(
22608 mv -f confcache "$cache_file" ;;
22609 esac
22612 else
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22614 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22617 rm -f confcache
22619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22620 # Let make expand exec_prefix.
22621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22623 DEFS=-DHAVE_CONFIG_H
22625 ac_libobjs=
22626 ac_ltlibobjs=
22628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22629 # 1. Remove the extension, and $U if already installed.
22630 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22631 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22632 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22633 # will be set to the directory where LIBOBJS objects are built.
22634 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22635 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22636 done
22637 LIBOBJS=$ac_libobjs
22639 LTLIBOBJS=$ac_ltlibobjs
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22643 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22644 if test -n "$am_sleep_pid"; then
22645 # Hide warnings about reused PIDs.
22646 wait $am_sleep_pid 2>/dev/null
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22649 $as_echo "done" >&6; }
22650 if test -n "$EXEEXT"; then
22651 am__EXEEXT_TRUE=
22652 am__EXEEXT_FALSE='#'
22653 else
22654 am__EXEEXT_TRUE='#'
22655 am__EXEEXT_FALSE=
22658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22659 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22663 as_fn_error $? "conditional \"AMDEP\" was never defined.
22664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 : "${CONFIG_STATUS=./config.status}"
22676 ac_write_fail=0
22677 ac_clean_files_save=$ac_clean_files
22678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22681 as_write_fail=0
22682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22683 #! $SHELL
22684 # Generated by $as_me.
22685 # Run this file to recreate the current configuration.
22686 # Compiler output produced by configure, useful for debugging
22687 # configure, is in config.log if it exists.
22689 debug=false
22690 ac_cs_recheck=false
22691 ac_cs_silent=false
22693 SHELL=\${CONFIG_SHELL-$SHELL}
22694 export SHELL
22695 _ASEOF
22696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22697 ## -------------------- ##
22698 ## M4sh Initialization. ##
22699 ## -------------------- ##
22701 # Be more Bourne compatible
22702 DUALCASE=1; export DUALCASE # for MKS sh
22703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22704 emulate sh
22705 NULLCMD=:
22706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22707 # is contrary to our usage. Disable this feature.
22708 alias -g '${1+"$@"}'='"$@"'
22709 setopt NO_GLOB_SUBST
22710 else
22711 case `(set -o) 2>/dev/null` in #(
22712 *posix*) :
22713 set -o posix ;; #(
22714 *) :
22716 esac
22720 as_nl='
22722 export as_nl
22723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22727 # Prefer a ksh shell builtin over an external printf program on Solaris,
22728 # but without wasting forks for bash or zsh.
22729 if test -z "$BASH_VERSION$ZSH_VERSION" \
22730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22731 as_echo='print -r --'
22732 as_echo_n='print -rn --'
22733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22734 as_echo='printf %s\n'
22735 as_echo_n='printf %s'
22736 else
22737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22739 as_echo_n='/usr/ucb/echo -n'
22740 else
22741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22742 as_echo_n_body='eval
22743 arg=$1;
22744 case $arg in #(
22745 *"$as_nl"*)
22746 expr "X$arg" : "X\\(.*\\)$as_nl";
22747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22748 esac;
22749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22751 export as_echo_n_body
22752 as_echo_n='sh -c $as_echo_n_body as_echo'
22754 export as_echo_body
22755 as_echo='sh -c $as_echo_body as_echo'
22758 # The user is always right.
22759 if test "${PATH_SEPARATOR+set}" != set; then
22760 PATH_SEPARATOR=:
22761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22763 PATH_SEPARATOR=';'
22768 # IFS
22769 # We need space, tab and new line, in precisely that order. Quoting is
22770 # there to prevent editors from complaining about space-tab.
22771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22772 # splitting by setting IFS to empty value.)
22773 IFS=" "" $as_nl"
22775 # Find who we are. Look in the path if we contain no directory separator.
22776 as_myself=
22777 case $0 in #((
22778 *[\\/]* ) as_myself=$0 ;;
22779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780 for as_dir in $PATH
22782 IFS=$as_save_IFS
22783 test -z "$as_dir" && as_dir=.
22784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22785 done
22786 IFS=$as_save_IFS
22789 esac
22790 # We did not find ourselves, most probably we were run as `sh COMMAND'
22791 # in which case we are not to be found in the path.
22792 if test "x$as_myself" = x; then
22793 as_myself=$0
22795 if test ! -f "$as_myself"; then
22796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22797 exit 1
22800 # Unset variables that we do not need and which cause bugs (e.g. in
22801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22802 # suppresses any "Segmentation fault" message there. '((' could
22803 # trigger a bug in pdksh 5.2.14.
22804 for as_var in BASH_ENV ENV MAIL MAILPATH
22805 do eval test x\${$as_var+set} = xset \
22806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22807 done
22808 PS1='$ '
22809 PS2='> '
22810 PS4='+ '
22812 # NLS nuisances.
22813 LC_ALL=C
22814 export LC_ALL
22815 LANGUAGE=C
22816 export LANGUAGE
22818 # CDPATH.
22819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22823 # ----------------------------------------
22824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22826 # script with STATUS, using 1 if that was 0.
22827 as_fn_error ()
22829 as_status=$1; test $as_status -eq 0 && as_status=1
22830 if test "$4"; then
22831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22834 $as_echo "$as_me: error: $2" >&2
22835 as_fn_exit $as_status
22836 } # as_fn_error
22839 # as_fn_set_status STATUS
22840 # -----------------------
22841 # Set $? to STATUS, without forking.
22842 as_fn_set_status ()
22844 return $1
22845 } # as_fn_set_status
22847 # as_fn_exit STATUS
22848 # -----------------
22849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22850 as_fn_exit ()
22852 set +e
22853 as_fn_set_status $1
22854 exit $1
22855 } # as_fn_exit
22857 # as_fn_unset VAR
22858 # ---------------
22859 # Portably unset VAR.
22860 as_fn_unset ()
22862 { eval $1=; unset $1;}
22864 as_unset=as_fn_unset
22865 # as_fn_append VAR VALUE
22866 # ----------------------
22867 # Append the text in VALUE to the end of the definition contained in VAR. Take
22868 # advantage of any shell optimizations that allow amortized linear growth over
22869 # repeated appends, instead of the typical quadratic growth present in naive
22870 # implementations.
22871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22872 eval 'as_fn_append ()
22874 eval $1+=\$2
22876 else
22877 as_fn_append ()
22879 eval $1=\$$1\$2
22881 fi # as_fn_append
22883 # as_fn_arith ARG...
22884 # ------------------
22885 # Perform arithmetic evaluation on the ARGs, and store the result in the
22886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22887 # must be portable across $(()) and expr.
22888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22889 eval 'as_fn_arith ()
22891 as_val=$(( $* ))
22893 else
22894 as_fn_arith ()
22896 as_val=`expr "$@" || test $? -eq 1`
22898 fi # as_fn_arith
22901 if expr a : '\(a\)' >/dev/null 2>&1 &&
22902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22903 as_expr=expr
22904 else
22905 as_expr=false
22908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22909 as_basename=basename
22910 else
22911 as_basename=false
22914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22915 as_dirname=dirname
22916 else
22917 as_dirname=false
22920 as_me=`$as_basename -- "$0" ||
22921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22922 X"$0" : 'X\(//\)$' \| \
22923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22924 $as_echo X/"$0" |
22925 sed '/^.*\/\([^/][^/]*\)\/*$/{
22926 s//\1/
22929 /^X\/\(\/\/\)$/{
22930 s//\1/
22933 /^X\/\(\/\).*/{
22934 s//\1/
22937 s/.*/./; q'`
22939 # Avoid depending upon Character Ranges.
22940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22943 as_cr_digits='0123456789'
22944 as_cr_alnum=$as_cr_Letters$as_cr_digits
22946 ECHO_C= ECHO_N= ECHO_T=
22947 case `echo -n x` in #(((((
22948 -n*)
22949 case `echo 'xy\c'` in
22950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22951 xy) ECHO_C='\c';;
22952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22953 ECHO_T=' ';;
22954 esac;;
22956 ECHO_N='-n';;
22957 esac
22959 rm -f conf$$ conf$$.exe conf$$.file
22960 if test -d conf$$.dir; then
22961 rm -f conf$$.dir/conf$$.file
22962 else
22963 rm -f conf$$.dir
22964 mkdir conf$$.dir 2>/dev/null
22966 if (echo >conf$$.file) 2>/dev/null; then
22967 if ln -s conf$$.file conf$$ 2>/dev/null; then
22968 as_ln_s='ln -s'
22969 # ... but there are two gotchas:
22970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22972 # In both cases, we have to default to `cp -pR'.
22973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22974 as_ln_s='cp -pR'
22975 elif ln conf$$.file conf$$ 2>/dev/null; then
22976 as_ln_s=ln
22977 else
22978 as_ln_s='cp -pR'
22980 else
22981 as_ln_s='cp -pR'
22983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22984 rmdir conf$$.dir 2>/dev/null
22987 # as_fn_mkdir_p
22988 # -------------
22989 # Create "$as_dir" as a directory, including parents if necessary.
22990 as_fn_mkdir_p ()
22993 case $as_dir in #(
22994 -*) as_dir=./$as_dir;;
22995 esac
22996 test -d "$as_dir" || eval $as_mkdir_p || {
22997 as_dirs=
22998 while :; do
22999 case $as_dir in #(
23000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23001 *) as_qdir=$as_dir;;
23002 esac
23003 as_dirs="'$as_qdir' $as_dirs"
23004 as_dir=`$as_dirname -- "$as_dir" ||
23005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$as_dir" : 'X\(//\)[^/]' \| \
23007 X"$as_dir" : 'X\(//\)$' \| \
23008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23009 $as_echo X"$as_dir" |
23010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23011 s//\1/
23014 /^X\(\/\/\)[^/].*/{
23015 s//\1/
23018 /^X\(\/\/\)$/{
23019 s//\1/
23022 /^X\(\/\).*/{
23023 s//\1/
23026 s/.*/./; q'`
23027 test -d "$as_dir" && break
23028 done
23029 test -z "$as_dirs" || eval "mkdir $as_dirs"
23030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23033 } # as_fn_mkdir_p
23034 if mkdir -p . 2>/dev/null; then
23035 as_mkdir_p='mkdir -p "$as_dir"'
23036 else
23037 test -d ./-p && rmdir ./-p
23038 as_mkdir_p=false
23042 # as_fn_executable_p FILE
23043 # -----------------------
23044 # Test if FILE is an executable regular file.
23045 as_fn_executable_p ()
23047 test -f "$1" && test -x "$1"
23048 } # as_fn_executable_p
23049 as_test_x='test -x'
23050 as_executable_p=as_fn_executable_p
23052 # Sed expression to map a string onto a valid CPP name.
23053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23055 # Sed expression to map a string onto a valid variable name.
23056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23059 exec 6>&1
23060 ## ----------------------------------- ##
23061 ## Main body of $CONFIG_STATUS script. ##
23062 ## ----------------------------------- ##
23063 _ASEOF
23064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23067 # Save the log message, to keep $0 and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling.
23070 ac_log="
23071 This file was extended by alpine $as_me 2.21.9999, which was
23072 generated by GNU Autoconf 2.69. Invocation command line was
23074 CONFIG_FILES = $CONFIG_FILES
23075 CONFIG_HEADERS = $CONFIG_HEADERS
23076 CONFIG_LINKS = $CONFIG_LINKS
23077 CONFIG_COMMANDS = $CONFIG_COMMANDS
23078 $ $0 $@
23080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23083 _ACEOF
23085 case $ac_config_files in *"
23086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23087 esac
23089 case $ac_config_headers in *"
23090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23091 esac
23094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23095 # Files that config.status was made for.
23096 config_files="$ac_config_files"
23097 config_headers="$ac_config_headers"
23098 config_commands="$ac_config_commands"
23100 _ACEOF
23102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23103 ac_cs_usage="\
23104 \`$as_me' instantiates files and other configuration actions
23105 from templates according to the current configuration. Unless the files
23106 and actions are specified as TAGs, all are instantiated by default.
23108 Usage: $0 [OPTION]... [TAG]...
23110 -h, --help print this help, then exit
23111 -V, --version print version number and configuration settings, then exit
23112 --config print configuration, then exit
23113 -q, --quiet, --silent
23114 do not print progress messages
23115 -d, --debug don't remove temporary files
23116 --recheck update $as_me by reconfiguring in the same conditions
23117 --file=FILE[:TEMPLATE]
23118 instantiate the configuration file FILE
23119 --header=FILE[:TEMPLATE]
23120 instantiate the configuration header FILE
23122 Configuration files:
23123 $config_files
23125 Configuration headers:
23126 $config_headers
23128 Configuration commands:
23129 $config_commands
23131 Report bugs to <chappa@washington.edu>."
23133 _ACEOF
23134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23136 ac_cs_version="\\
23137 alpine config.status 2.21.9999
23138 configured by $0, generated by GNU Autoconf 2.69,
23139 with options \\"\$ac_cs_config\\"
23141 Copyright (C) 2012 Free Software Foundation, Inc.
23142 This config.status script is free software; the Free Software Foundation
23143 gives unlimited permission to copy, distribute and modify it."
23145 ac_pwd='$ac_pwd'
23146 srcdir='$srcdir'
23147 INSTALL='$INSTALL'
23148 MKDIR_P='$MKDIR_P'
23149 AWK='$AWK'
23150 test -n "\$AWK" || AWK=awk
23151 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23154 # The default lists apply if the user does not specify any file.
23155 ac_need_defaults=:
23156 while test $# != 0
23158 case $1 in
23159 --*=?*)
23160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23162 ac_shift=:
23164 --*=)
23165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23166 ac_optarg=
23167 ac_shift=:
23170 ac_option=$1
23171 ac_optarg=$2
23172 ac_shift=shift
23174 esac
23176 case $ac_option in
23177 # Handling of the options.
23178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23179 ac_cs_recheck=: ;;
23180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23181 $as_echo "$ac_cs_version"; exit ;;
23182 --config | --confi | --conf | --con | --co | --c )
23183 $as_echo "$ac_cs_config"; exit ;;
23184 --debug | --debu | --deb | --de | --d | -d )
23185 debug=: ;;
23186 --file | --fil | --fi | --f )
23187 $ac_shift
23188 case $ac_optarg in
23189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23190 '') as_fn_error $? "missing file argument" ;;
23191 esac
23192 as_fn_append CONFIG_FILES " '$ac_optarg'"
23193 ac_need_defaults=false;;
23194 --header | --heade | --head | --hea )
23195 $ac_shift
23196 case $ac_optarg in
23197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23198 esac
23199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23200 ac_need_defaults=false;;
23201 --he | --h)
23202 # Conflict between --help and --header
23203 as_fn_error $? "ambiguous option: \`$1'
23204 Try \`$0 --help' for more information.";;
23205 --help | --hel | -h )
23206 $as_echo "$ac_cs_usage"; exit ;;
23207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23209 ac_cs_silent=: ;;
23211 # This is an error.
23212 -*) as_fn_error $? "unrecognized option: \`$1'
23213 Try \`$0 --help' for more information." ;;
23215 *) as_fn_append ac_config_targets " $1"
23216 ac_need_defaults=false ;;
23218 esac
23219 shift
23220 done
23222 ac_configure_extra_args=
23224 if $ac_cs_silent; then
23225 exec 6>/dev/null
23226 ac_configure_extra_args="$ac_configure_extra_args --silent"
23229 _ACEOF
23230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23231 if \$ac_cs_recheck; then
23232 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23233 shift
23234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23235 CONFIG_SHELL='$SHELL'
23236 export CONFIG_SHELL
23237 exec "\$@"
23240 _ACEOF
23241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23242 exec 5>>config.log
23244 echo
23245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23246 ## Running $as_me. ##
23247 _ASBOX
23248 $as_echo "$ac_log"
23249 } >&5
23251 _ACEOF
23252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23254 # INIT-COMMANDS
23256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23259 # The HP-UX ksh and POSIX shell print the target directory to stdout
23260 # if CDPATH is set.
23261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23263 sed_quote_subst='$sed_quote_subst'
23264 double_quote_subst='$double_quote_subst'
23265 delay_variable_subst='$delay_variable_subst'
23266 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23267 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23268 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23269 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23270 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23271 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23272 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23273 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23274 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23275 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23276 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23277 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23278 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23279 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23280 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23281 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23282 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23283 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23284 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23285 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23286 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23287 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23288 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23289 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23290 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23291 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23292 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23293 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23294 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23295 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23296 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23297 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23298 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23299 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23300 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23301 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23302 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23303 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23304 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23305 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23306 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23307 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23308 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23309 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23310 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23311 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23312 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23313 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23314 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23315 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23316 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23317 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23318 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23319 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23320 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23321 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23322 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23323 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23324 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"`'
23325 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23326 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23327 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23328 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23329 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23330 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23331 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23332 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23333 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23334 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23335 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23336 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23337 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23338 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23339 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23340 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23341 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23342 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23343 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23344 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23345 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23346 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23347 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23348 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23349 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23350 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23351 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23352 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23353 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23354 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23355 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23356 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23357 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23358 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23359 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23360 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23361 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23362 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23363 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23364 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23365 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23366 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23367 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23368 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23369 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23370 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23371 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23372 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23373 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23374 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23375 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23376 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23377 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23378 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23379 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23380 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23381 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23382 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23383 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23384 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23385 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23386 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23387 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23388 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23389 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23390 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23391 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23392 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23393 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23394 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23395 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23396 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23397 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23398 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23399 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23400 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23402 LTCC='$LTCC'
23403 LTCFLAGS='$LTCFLAGS'
23404 compiler='$compiler_DEFAULT'
23406 # A function that is used when there is no print builtin or printf.
23407 func_fallback_echo ()
23409 eval 'cat <<_LTECHO_EOF
23411 _LTECHO_EOF'
23414 # Quote evaled strings.
23415 for var in SHELL \
23416 ECHO \
23417 PATH_SEPARATOR \
23418 SED \
23419 GREP \
23420 EGREP \
23421 FGREP \
23422 LD \
23423 NM \
23424 LN_S \
23425 lt_SP2NL \
23426 lt_NL2SP \
23427 reload_flag \
23428 OBJDUMP \
23429 deplibs_check_method \
23430 file_magic_cmd \
23431 file_magic_glob \
23432 want_nocaseglob \
23433 DLLTOOL \
23434 sharedlib_from_linklib_cmd \
23435 AR \
23436 AR_FLAGS \
23437 archiver_list_spec \
23438 STRIP \
23439 RANLIB \
23440 CC \
23441 CFLAGS \
23442 compiler \
23443 lt_cv_sys_global_symbol_pipe \
23444 lt_cv_sys_global_symbol_to_cdecl \
23445 lt_cv_sys_global_symbol_to_import \
23446 lt_cv_sys_global_symbol_to_c_name_address \
23447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23448 lt_cv_nm_interface \
23449 nm_file_list_spec \
23450 lt_cv_truncate_bin \
23451 lt_prog_compiler_no_builtin_flag \
23452 lt_prog_compiler_pic \
23453 lt_prog_compiler_wl \
23454 lt_prog_compiler_static \
23455 lt_cv_prog_compiler_c_o \
23456 need_locks \
23457 MANIFEST_TOOL \
23458 DSYMUTIL \
23459 NMEDIT \
23460 LIPO \
23461 OTOOL \
23462 OTOOL64 \
23463 shrext_cmds \
23464 export_dynamic_flag_spec \
23465 whole_archive_flag_spec \
23466 compiler_needs_object \
23467 with_gnu_ld \
23468 allow_undefined_flag \
23469 no_undefined_flag \
23470 hardcode_libdir_flag_spec \
23471 hardcode_libdir_separator \
23472 exclude_expsyms \
23473 include_expsyms \
23474 file_list_spec \
23475 variables_saved_for_relink \
23476 libname_spec \
23477 library_names_spec \
23478 soname_spec \
23479 install_override_mode \
23480 finish_eval \
23481 old_striplib \
23482 striplib; do
23483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23484 *[\\\\\\\`\\"\\\$]*)
23485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23490 esac
23491 done
23493 # Double-quote double-evaled strings.
23494 for var in reload_cmds \
23495 old_postinstall_cmds \
23496 old_postuninstall_cmds \
23497 old_archive_cmds \
23498 extract_expsyms_cmds \
23499 old_archive_from_new_cmds \
23500 old_archive_from_expsyms_cmds \
23501 archive_cmds \
23502 archive_expsym_cmds \
23503 module_cmds \
23504 module_expsym_cmds \
23505 export_symbols_cmds \
23506 prelink_cmds \
23507 postlink_cmds \
23508 postinstall_cmds \
23509 postuninstall_cmds \
23510 finish_cmds \
23511 sys_lib_search_path_spec \
23512 configure_time_dlsearch_path \
23513 configure_time_lt_sys_library_path; do
23514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23515 *[\\\\\\\`\\"\\\$]*)
23516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23521 esac
23522 done
23524 ac_aux_dir='$ac_aux_dir'
23526 # See if we are running on zsh, and set the options that allow our
23527 # commands through without removal of \ escapes INIT.
23528 if test -n "\${ZSH_VERSION+set}"; then
23529 setopt NO_GLOB_SUBST
23533 PACKAGE='$PACKAGE'
23534 VERSION='$VERSION'
23535 RM='$RM'
23536 ofile='$ofile'
23540 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23541 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23542 # from automake < 1.5.
23543 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23544 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23545 LINGUAS="${LINGUAS-%UNSET%}"
23548 _ACEOF
23550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23552 # Handling of arguments.
23553 for ac_config_target in $ac_config_targets
23555 case $ac_config_target in
23556 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23559 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23560 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23561 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23562 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
23563 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
23564 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
23565 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
23566 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
23567 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
23568 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
23569 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
23570 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
23571 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
23572 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
23573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23575 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23576 esac
23577 done
23580 # If the user did not use the arguments to specify the items to instantiate,
23581 # then the envvar interface is used. Set only those that are not.
23582 # We use the long form for the default assignment because of an extremely
23583 # bizarre bug on SunOS 4.1.3.
23584 if $ac_need_defaults; then
23585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23590 # Have a temporary directory for convenience. Make it in the build tree
23591 # simply because there is no reason against having it here, and in addition,
23592 # creating and moving files from /tmp can sometimes cause problems.
23593 # Hook for its removal unless debugging.
23594 # Note that there is a small window in which the directory will not be cleaned:
23595 # after its creation but before its name has been assigned to `$tmp'.
23596 $debug ||
23598 tmp= ac_tmp=
23599 trap 'exit_status=$?
23600 : "${ac_tmp:=$tmp}"
23601 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23603 trap 'as_fn_exit 1' 1 2 13 15
23605 # Create a (secure) tmp directory for tmp files.
23608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23609 test -d "$tmp"
23610 } ||
23612 tmp=./conf$$-$RANDOM
23613 (umask 077 && mkdir "$tmp")
23614 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23615 ac_tmp=$tmp
23617 # Set up the scripts for CONFIG_FILES section.
23618 # No need to generate them if there are no CONFIG_FILES.
23619 # This happens for instance with `./config.status config.h'.
23620 if test -n "$CONFIG_FILES"; then
23623 ac_cr=`echo X | tr X '\015'`
23624 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23625 # But we know of no other shell where ac_cr would be empty at this
23626 # point, so we can use a bashism as a fallback.
23627 if test "x$ac_cr" = x; then
23628 eval ac_cr=\$\'\\r\'
23630 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23631 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23632 ac_cs_awk_cr='\\r'
23633 else
23634 ac_cs_awk_cr=$ac_cr
23637 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23638 _ACEOF
23642 echo "cat >conf$$subs.awk <<_ACEOF" &&
23643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23644 echo "_ACEOF"
23645 } >conf$$subs.sh ||
23646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23648 ac_delim='%!_!# '
23649 for ac_last_try in false false false false false :; do
23650 . ./conf$$subs.sh ||
23651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23653 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23654 if test $ac_delim_n = $ac_delim_num; then
23655 break
23656 elif $ac_last_try; then
23657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23658 else
23659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23661 done
23662 rm -f conf$$subs.sh
23664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23665 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23666 _ACEOF
23667 sed -n '
23669 s/^/S["/; s/!.*/"]=/
23672 s/^[^!]*!//
23673 :repl
23674 t repl
23675 s/'"$ac_delim"'$//
23676 t delim
23679 s/\(.\{148\}\)..*/\1/
23680 t more1
23681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23684 b repl
23685 :more1
23686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23689 s/.\{148\}//
23690 t nl
23691 :delim
23693 s/\(.\{148\}\)..*/\1/
23694 t more2
23695 s/["\\]/\\&/g; s/^/"/; s/$/"/
23698 :more2
23699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23702 s/.\{148\}//
23703 t delim
23704 ' <conf$$subs.awk | sed '
23705 /^[^""]/{
23707 s/\n//
23709 ' >>$CONFIG_STATUS || ac_write_fail=1
23710 rm -f conf$$subs.awk
23711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23712 _ACAWK
23713 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23714 for (key in S) S_is_set[key] = 1
23715 FS = "\a"
23719 line = $ 0
23720 nfields = split(line, field, "@")
23721 substed = 0
23722 len = length(field[1])
23723 for (i = 2; i < nfields; i++) {
23724 key = field[i]
23725 keylen = length(key)
23726 if (S_is_set[key]) {
23727 value = S[key]
23728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23729 len += length(value) + length(field[++i])
23730 substed = 1
23731 } else
23732 len += 1 + keylen
23735 print line
23738 _ACAWK
23739 _ACEOF
23740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23743 else
23745 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23746 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23747 _ACEOF
23749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23751 # trailing colons and then remove the whole line if VPATH becomes empty
23752 # (actually we leave an empty line to preserve line numbers).
23753 if test "x$srcdir" = x.; then
23754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23756 s///
23757 s/^/:/
23758 s/[ ]*$/:/
23759 s/:\$(srcdir):/:/g
23760 s/:\${srcdir}:/:/g
23761 s/:@srcdir@:/:/g
23762 s/^:*//
23763 s/:*$//
23765 s/\(=[ ]*\).*/\1/
23767 s/\n//
23768 s/^[^=]*=[ ]*$//
23772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23773 fi # test -n "$CONFIG_FILES"
23775 # Set up the scripts for CONFIG_HEADERS section.
23776 # No need to generate them if there are no CONFIG_HEADERS.
23777 # This happens for instance with `./config.status Makefile'.
23778 if test -n "$CONFIG_HEADERS"; then
23779 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23780 BEGIN {
23781 _ACEOF
23783 # Transform confdefs.h into an awk script `defines.awk', embedded as
23784 # here-document in config.status, that substitutes the proper values into
23785 # config.h.in to produce config.h.
23787 # Create a delimiter string that does not exist in confdefs.h, to ease
23788 # handling of long lines.
23789 ac_delim='%!_!# '
23790 for ac_last_try in false false :; do
23791 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23792 if test -z "$ac_tt"; then
23793 break
23794 elif $ac_last_try; then
23795 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23796 else
23797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23799 done
23801 # For the awk script, D is an array of macro values keyed by name,
23802 # likewise P contains macro parameters if any. Preserve backslash
23803 # newline sequences.
23805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23806 sed -n '
23807 s/.\{148\}/&'"$ac_delim"'/g
23808 t rset
23809 :rset
23810 s/^[ ]*#[ ]*define[ ][ ]*/ /
23811 t def
23813 :def
23814 s/\\$//
23815 t bsnl
23816 s/["\\]/\\&/g
23817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23818 D["\1"]=" \3"/p
23819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23821 :bsnl
23822 s/["\\]/\\&/g
23823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23824 D["\1"]=" \3\\\\\\n"\\/p
23825 t cont
23826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23827 t cont
23829 :cont
23831 s/.\{148\}/&'"$ac_delim"'/g
23832 t clear
23833 :clear
23834 s/\\$//
23835 t bsnlc
23836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23838 :bsnlc
23839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23840 b cont
23841 ' <confdefs.h | sed '
23842 s/'"$ac_delim"'/"\\\
23843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23846 for (key in D) D_is_set[key] = 1
23847 FS = "\a"
23849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23850 line = \$ 0
23851 split(line, arg, " ")
23852 if (arg[1] == "#") {
23853 defundef = arg[2]
23854 mac1 = arg[3]
23855 } else {
23856 defundef = substr(arg[1], 2)
23857 mac1 = arg[2]
23859 split(mac1, mac2, "(") #)
23860 macro = mac2[1]
23861 prefix = substr(line, 1, index(line, defundef) - 1)
23862 if (D_is_set[macro]) {
23863 # Preserve the white space surrounding the "#".
23864 print prefix "define", macro P[macro] D[macro]
23865 next
23866 } else {
23867 # Replace #undef with comments. This is necessary, for example,
23868 # in the case of _POSIX_SOURCE, which is predefined and required
23869 # on some systems where configure will not decide to define it.
23870 if (defundef == "undef") {
23871 print "/*", prefix defundef, macro, "*/"
23872 next
23876 { print }
23877 _ACAWK
23878 _ACEOF
23879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23880 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23881 fi # test -n "$CONFIG_HEADERS"
23884 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23885 shift
23886 for ac_tag
23888 case $ac_tag in
23889 :[FHLC]) ac_mode=$ac_tag; continue;;
23890 esac
23891 case $ac_mode$ac_tag in
23892 :[FHL]*:*);;
23893 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23894 :[FH]-) ac_tag=-:-;;
23895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23896 esac
23897 ac_save_IFS=$IFS
23898 IFS=:
23899 set x $ac_tag
23900 IFS=$ac_save_IFS
23901 shift
23902 ac_file=$1
23903 shift
23905 case $ac_mode in
23906 :L) ac_source=$1;;
23907 :[FH])
23908 ac_file_inputs=
23909 for ac_f
23911 case $ac_f in
23912 -) ac_f="$ac_tmp/stdin";;
23913 *) # Look for the file first in the build tree, then in the source tree
23914 # (if the path is not absolute). The absolute path cannot be DOS-style,
23915 # because $ac_f cannot contain `:'.
23916 test -f "$ac_f" ||
23917 case $ac_f in
23918 [\\/$]*) false;;
23919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23920 esac ||
23921 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23922 esac
23923 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23924 as_fn_append ac_file_inputs " '$ac_f'"
23925 done
23927 # Let's still pretend it is `configure' which instantiates (i.e., don't
23928 # use $as_me), people would be surprised to read:
23929 # /* config.h. Generated by config.status. */
23930 configure_input='Generated from '`
23931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23932 `' by configure.'
23933 if test x"$ac_file" != x-; then
23934 configure_input="$ac_file. $configure_input"
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23936 $as_echo "$as_me: creating $ac_file" >&6;}
23938 # Neutralize special characters interpreted by sed in replacement strings.
23939 case $configure_input in #(
23940 *\&* | *\|* | *\\* )
23941 ac_sed_conf_input=`$as_echo "$configure_input" |
23942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23943 *) ac_sed_conf_input=$configure_input;;
23944 esac
23946 case $ac_tag in
23947 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23949 esac
23951 esac
23953 ac_dir=`$as_dirname -- "$ac_file" ||
23954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23955 X"$ac_file" : 'X\(//\)[^/]' \| \
23956 X"$ac_file" : 'X\(//\)$' \| \
23957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23958 $as_echo X"$ac_file" |
23959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23960 s//\1/
23963 /^X\(\/\/\)[^/].*/{
23964 s//\1/
23967 /^X\(\/\/\)$/{
23968 s//\1/
23971 /^X\(\/\).*/{
23972 s//\1/
23975 s/.*/./; q'`
23976 as_dir="$ac_dir"; as_fn_mkdir_p
23977 ac_builddir=.
23979 case "$ac_dir" in
23980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23983 # A ".." for each directory in $ac_dir_suffix.
23984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23985 case $ac_top_builddir_sub in
23986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23988 esac ;;
23989 esac
23990 ac_abs_top_builddir=$ac_pwd
23991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23992 # for backward compatibility:
23993 ac_top_builddir=$ac_top_build_prefix
23995 case $srcdir in
23996 .) # We are building in place.
23997 ac_srcdir=.
23998 ac_top_srcdir=$ac_top_builddir_sub
23999 ac_abs_top_srcdir=$ac_pwd ;;
24000 [\\/]* | ?:[\\/]* ) # Absolute name.
24001 ac_srcdir=$srcdir$ac_dir_suffix;
24002 ac_top_srcdir=$srcdir
24003 ac_abs_top_srcdir=$srcdir ;;
24004 *) # Relative name.
24005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24006 ac_top_srcdir=$ac_top_build_prefix$srcdir
24007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24008 esac
24009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24012 case $ac_mode in
24015 # CONFIG_FILE
24018 case $INSTALL in
24019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24021 esac
24022 ac_MKDIR_P=$MKDIR_P
24023 case $MKDIR_P in
24024 [\\/$]* | ?:[\\/]* ) ;;
24025 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24026 esac
24027 _ACEOF
24029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24030 # If the template does not know about datarootdir, expand it.
24031 # FIXME: This hack should be removed a few years after 2.60.
24032 ac_datarootdir_hack=; ac_datarootdir_seen=
24033 ac_sed_dataroot='
24034 /datarootdir/ {
24038 /@datadir@/p
24039 /@docdir@/p
24040 /@infodir@/p
24041 /@localedir@/p
24042 /@mandir@/p'
24043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24044 *datarootdir*) ac_datarootdir_seen=yes;;
24045 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24047 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24048 _ACEOF
24049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24050 ac_datarootdir_hack='
24051 s&@datadir@&$datadir&g
24052 s&@docdir@&$docdir&g
24053 s&@infodir@&$infodir&g
24054 s&@localedir@&$localedir&g
24055 s&@mandir@&$mandir&g
24056 s&\\\${datarootdir}&$datarootdir&g' ;;
24057 esac
24058 _ACEOF
24060 # Neutralize VPATH when `$srcdir' = `.'.
24061 # Shell code in configure.ac might set extrasub.
24062 # FIXME: do we really want to maintain this feature?
24063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24064 ac_sed_extra="$ac_vpsub
24065 $extrasub
24066 _ACEOF
24067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24070 s|@configure_input@|$ac_sed_conf_input|;t t
24071 s&@top_builddir@&$ac_top_builddir_sub&;t t
24072 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24073 s&@srcdir@&$ac_srcdir&;t t
24074 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24075 s&@top_srcdir@&$ac_top_srcdir&;t t
24076 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24077 s&@builddir@&$ac_builddir&;t t
24078 s&@abs_builddir@&$ac_abs_builddir&;t t
24079 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24080 s&@INSTALL@&$ac_INSTALL&;t t
24081 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24082 $ac_datarootdir_hack
24084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24085 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24090 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24092 which seems to be undefined. Please make sure it is defined" >&5
24093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24094 which seems to be undefined. Please make sure it is defined" >&2;}
24096 rm -f "$ac_tmp/stdin"
24097 case $ac_file in
24098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24100 esac \
24101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24105 # CONFIG_HEADER
24107 if test x"$ac_file" != x-; then
24109 $as_echo "/* $configure_input */" \
24110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24111 } >"$ac_tmp/config.h" \
24112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24113 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24116 else
24117 rm -f "$ac_file"
24118 mv "$ac_tmp/config.h" "$ac_file" \
24119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24121 else
24122 $as_echo "/* $configure_input */" \
24123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24124 || as_fn_error $? "could not create -" "$LINENO" 5
24126 # Compute "$ac_file"'s index in $config_headers.
24127 _am_arg="$ac_file"
24128 _am_stamp_count=1
24129 for _am_header in $config_headers :; do
24130 case $_am_header in
24131 $_am_arg | $_am_arg:* )
24132 break ;;
24134 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24135 esac
24136 done
24137 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24138 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24139 X"$_am_arg" : 'X\(//\)[^/]' \| \
24140 X"$_am_arg" : 'X\(//\)$' \| \
24141 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24142 $as_echo X"$_am_arg" |
24143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24144 s//\1/
24147 /^X\(\/\/\)[^/].*/{
24148 s//\1/
24151 /^X\(\/\/\)$/{
24152 s//\1/
24155 /^X\(\/\).*/{
24156 s//\1/
24159 s/.*/./; q'`/stamp-h$_am_stamp_count
24162 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24163 $as_echo "$as_me: executing $ac_file commands" >&6;}
24165 esac
24168 case $ac_file$ac_mode in
24169 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24170 # Older Autoconf quotes --file arguments for eval, but not when files
24171 # are listed without --file. Let's play safe and only enable the eval
24172 # if we detect the quoting.
24173 case $CONFIG_FILES in
24174 *\'*) eval set x "$CONFIG_FILES" ;;
24175 *) set x $CONFIG_FILES ;;
24176 esac
24177 shift
24178 for mf
24180 # Strip MF so we end up with the name of the file.
24181 mf=`echo "$mf" | sed -e 's/:.*$//'`
24182 # Check whether this is an Automake generated Makefile or not.
24183 # We used to match only the files named 'Makefile.in', but
24184 # some people rename them; so instead we look at the file content.
24185 # Grep'ing the first line is not enough: some people post-process
24186 # each Makefile.in and add a new line on top of each file to say so.
24187 # Grep'ing the whole file is not good either: AIX grep has a line
24188 # limit of 2048, but all sed's we know have understand at least 4000.
24189 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24190 dirpart=`$as_dirname -- "$mf" ||
24191 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24192 X"$mf" : 'X\(//\)[^/]' \| \
24193 X"$mf" : 'X\(//\)$' \| \
24194 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24195 $as_echo X"$mf" |
24196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24197 s//\1/
24200 /^X\(\/\/\)[^/].*/{
24201 s//\1/
24204 /^X\(\/\/\)$/{
24205 s//\1/
24208 /^X\(\/\).*/{
24209 s//\1/
24212 s/.*/./; q'`
24213 else
24214 continue
24216 # Extract the definition of DEPDIR, am__include, and am__quote
24217 # from the Makefile without running 'make'.
24218 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24219 test -z "$DEPDIR" && continue
24220 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24221 test -z "$am__include" && continue
24222 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24223 # Find all dependency output files, they are included files with
24224 # $(DEPDIR) in their names. We invoke sed twice because it is the
24225 # simplest approach to changing $(DEPDIR) to its actual value in the
24226 # expansion.
24227 for file in `sed -n "
24228 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24229 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24230 # Make sure the directory exists.
24231 test -f "$dirpart/$file" && continue
24232 fdir=`$as_dirname -- "$file" ||
24233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24234 X"$file" : 'X\(//\)[^/]' \| \
24235 X"$file" : 'X\(//\)$' \| \
24236 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24237 $as_echo X"$file" |
24238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24239 s//\1/
24242 /^X\(\/\/\)[^/].*/{
24243 s//\1/
24246 /^X\(\/\/\)$/{
24247 s//\1/
24250 /^X\(\/\).*/{
24251 s//\1/
24254 s/.*/./; q'`
24255 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24256 # echo "creating $dirpart/$file"
24257 echo '# dummy' > "$dirpart/$file"
24258 done
24259 done
24262 "libtool":C)
24264 # See if we are running on zsh, and set the options that allow our
24265 # commands through without removal of \ escapes.
24266 if test -n "${ZSH_VERSION+set}"; then
24267 setopt NO_GLOB_SUBST
24270 cfgfile=${ofile}T
24271 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24272 $RM "$cfgfile"
24274 cat <<_LT_EOF >> "$cfgfile"
24275 #! $SHELL
24276 # Generated automatically by $as_me ($PACKAGE) $VERSION
24277 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24279 # Provide generalized library-building support services.
24280 # Written by Gordon Matzigkeit, 1996
24282 # Copyright (C) 2014 Free Software Foundation, Inc.
24283 # This is free software; see the source for copying conditions. There is NO
24284 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24286 # GNU Libtool is free software; you can redistribute it and/or modify
24287 # it under the terms of the GNU General Public License as published by
24288 # the Free Software Foundation; either version 2 of of the License, or
24289 # (at your option) any later version.
24291 # As a special exception to the GNU General Public License, if you
24292 # distribute this file as part of a program or library that is built
24293 # using GNU Libtool, you may include this file under the same
24294 # distribution terms that you use for the rest of that program.
24296 # GNU Libtool is distributed in the hope that it will be useful, but
24297 # WITHOUT ANY WARRANTY; without even the implied warranty of
24298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24299 # GNU General Public License for more details.
24301 # You should have received a copy of the GNU General Public License
24302 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24305 # The names of the tagged configurations supported by this script.
24306 available_tags=''
24308 # Configured defaults for sys_lib_dlsearch_path munging.
24309 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24311 # ### BEGIN LIBTOOL CONFIG
24313 # Which release of libtool.m4 was used?
24314 macro_version=$macro_version
24315 macro_revision=$macro_revision
24317 # Whether or not to build shared libraries.
24318 build_libtool_libs=$enable_shared
24320 # Whether or not to build static libraries.
24321 build_old_libs=$enable_static
24323 # What type of objects to build.
24324 pic_mode=$pic_mode
24326 # Whether or not to optimize for fast installation.
24327 fast_install=$enable_fast_install
24329 # Shared archive member basename,for filename based shared library versioning on AIX.
24330 shared_archive_member_spec=$shared_archive_member_spec
24332 # Shell to use when invoking shell scripts.
24333 SHELL=$lt_SHELL
24335 # An echo program that protects backslashes.
24336 ECHO=$lt_ECHO
24338 # The PATH separator for the build system.
24339 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24341 # The host system.
24342 host_alias=$host_alias
24343 host=$host
24344 host_os=$host_os
24346 # The build system.
24347 build_alias=$build_alias
24348 build=$build
24349 build_os=$build_os
24351 # A sed program that does not truncate output.
24352 SED=$lt_SED
24354 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24355 Xsed="\$SED -e 1s/^X//"
24357 # A grep program that handles long lines.
24358 GREP=$lt_GREP
24360 # An ERE matcher.
24361 EGREP=$lt_EGREP
24363 # A literal string matcher.
24364 FGREP=$lt_FGREP
24366 # A BSD- or MS-compatible name lister.
24367 NM=$lt_NM
24369 # Whether we need soft or hard links.
24370 LN_S=$lt_LN_S
24372 # What is the maximum length of a command?
24373 max_cmd_len=$max_cmd_len
24375 # Object file suffix (normally "o").
24376 objext=$ac_objext
24378 # Executable file suffix (normally "").
24379 exeext=$exeext
24381 # whether the shell understands "unset".
24382 lt_unset=$lt_unset
24384 # turn spaces into newlines.
24385 SP2NL=$lt_lt_SP2NL
24387 # turn newlines into spaces.
24388 NL2SP=$lt_lt_NL2SP
24390 # convert \$build file names to \$host format.
24391 to_host_file_cmd=$lt_cv_to_host_file_cmd
24393 # convert \$build files to toolchain format.
24394 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24396 # An object symbol dumper.
24397 OBJDUMP=$lt_OBJDUMP
24399 # Method to check whether dependent libraries are shared objects.
24400 deplibs_check_method=$lt_deplibs_check_method
24402 # Command to use when deplibs_check_method = "file_magic".
24403 file_magic_cmd=$lt_file_magic_cmd
24405 # How to find potential files when deplibs_check_method = "file_magic".
24406 file_magic_glob=$lt_file_magic_glob
24408 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24409 want_nocaseglob=$lt_want_nocaseglob
24411 # DLL creation program.
24412 DLLTOOL=$lt_DLLTOOL
24414 # Command to associate shared and link libraries.
24415 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24417 # The archiver.
24418 AR=$lt_AR
24420 # Flags to create an archive.
24421 AR_FLAGS=$lt_AR_FLAGS
24423 # How to feed a file listing to the archiver.
24424 archiver_list_spec=$lt_archiver_list_spec
24426 # A symbol stripping program.
24427 STRIP=$lt_STRIP
24429 # Commands used to install an old-style archive.
24430 RANLIB=$lt_RANLIB
24431 old_postinstall_cmds=$lt_old_postinstall_cmds
24432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24434 # Whether to use a lock for old archive extraction.
24435 lock_old_archive_extraction=$lock_old_archive_extraction
24437 # A C compiler.
24438 LTCC=$lt_CC
24440 # LTCC compiler flags.
24441 LTCFLAGS=$lt_CFLAGS
24443 # Take the output of nm and produce a listing of raw symbols and C names.
24444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24446 # Transform the output of nm in a proper C declaration.
24447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24449 # Transform the output of nm into a list of symbols to manually relocate.
24450 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24452 # Transform the output of nm in a C name address pair.
24453 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24455 # Transform the output of nm in a C name address pair when lib prefix is needed.
24456 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24458 # The name lister interface.
24459 nm_interface=$lt_lt_cv_nm_interface
24461 # Specify filename containing input files for \$NM.
24462 nm_file_list_spec=$lt_nm_file_list_spec
24464 # The root where to search for dependent libraries,and where our libraries should be installed.
24465 lt_sysroot=$lt_sysroot
24467 # Command to truncate a binary pipe.
24468 lt_truncate_bin=$lt_lt_cv_truncate_bin
24470 # The name of the directory that contains temporary libtool files.
24471 objdir=$objdir
24473 # Used to examine libraries when file_magic_cmd begins with "file".
24474 MAGIC_CMD=$MAGIC_CMD
24476 # Must we lock files when doing compilation?
24477 need_locks=$lt_need_locks
24479 # Manifest tool.
24480 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24482 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24483 DSYMUTIL=$lt_DSYMUTIL
24485 # Tool to change global to local symbols on Mac OS X.
24486 NMEDIT=$lt_NMEDIT
24488 # Tool to manipulate fat objects and archives on Mac OS X.
24489 LIPO=$lt_LIPO
24491 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24492 OTOOL=$lt_OTOOL
24494 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24495 OTOOL64=$lt_OTOOL64
24497 # Old archive suffix (normally "a").
24498 libext=$libext
24500 # Shared library suffix (normally ".so").
24501 shrext_cmds=$lt_shrext_cmds
24503 # The commands to extract the exported symbol list from a shared archive.
24504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24506 # Variables whose values should be saved in libtool wrapper scripts and
24507 # restored at link time.
24508 variables_saved_for_relink=$lt_variables_saved_for_relink
24510 # Do we need the "lib" prefix for modules?
24511 need_lib_prefix=$need_lib_prefix
24513 # Do we need a version for libraries?
24514 need_version=$need_version
24516 # Library versioning type.
24517 version_type=$version_type
24519 # Shared library runtime path variable.
24520 runpath_var=$runpath_var
24522 # Shared library path variable.
24523 shlibpath_var=$shlibpath_var
24525 # Is shlibpath searched before the hard-coded library search path?
24526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24528 # Format of library name prefix.
24529 libname_spec=$lt_libname_spec
24531 # List of archive names. First name is the real one, the rest are links.
24532 # The last name is the one that the linker finds with -lNAME
24533 library_names_spec=$lt_library_names_spec
24535 # The coded name of the library, if different from the real name.
24536 soname_spec=$lt_soname_spec
24538 # Permission mode override for installation of shared libraries.
24539 install_override_mode=$lt_install_override_mode
24541 # Command to use after installation of a shared archive.
24542 postinstall_cmds=$lt_postinstall_cmds
24544 # Command to use after uninstallation of a shared archive.
24545 postuninstall_cmds=$lt_postuninstall_cmds
24547 # Commands used to finish a libtool library installation in a directory.
24548 finish_cmds=$lt_finish_cmds
24550 # As "finish_cmds", except a single script fragment to be evaled but
24551 # not shown.
24552 finish_eval=$lt_finish_eval
24554 # Whether we should hardcode library paths into libraries.
24555 hardcode_into_libs=$hardcode_into_libs
24557 # Compile-time system search path for libraries.
24558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24560 # Detected run-time system search path for libraries.
24561 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24563 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24564 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24566 # Whether dlopen is supported.
24567 dlopen_support=$enable_dlopen
24569 # Whether dlopen of programs is supported.
24570 dlopen_self=$enable_dlopen_self
24572 # Whether dlopen of statically linked programs is supported.
24573 dlopen_self_static=$enable_dlopen_self_static
24575 # Commands to strip libraries.
24576 old_striplib=$lt_old_striplib
24577 striplib=$lt_striplib
24580 # The linker used to build libraries.
24581 LD=$lt_LD
24583 # How to create reloadable object files.
24584 reload_flag=$lt_reload_flag
24585 reload_cmds=$lt_reload_cmds
24587 # Commands used to build an old-style archive.
24588 old_archive_cmds=$lt_old_archive_cmds
24590 # A language specific compiler.
24591 CC=$lt_compiler
24593 # Is the compiler the GNU compiler?
24594 with_gcc=$GCC
24596 # Compiler flag to turn off builtin functions.
24597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24599 # Additional compiler flags for building library objects.
24600 pic_flag=$lt_lt_prog_compiler_pic
24602 # How to pass a linker flag through the compiler.
24603 wl=$lt_lt_prog_compiler_wl
24605 # Compiler flag to prevent dynamic linking.
24606 link_static_flag=$lt_lt_prog_compiler_static
24608 # Does compiler simultaneously support -c and -o options?
24609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24611 # Whether or not to add -lc for building shared libraries.
24612 build_libtool_need_lc=$archive_cmds_need_lc
24614 # Whether or not to disallow shared libs when runtime libs are static.
24615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24617 # Compiler flag to allow reflexive dlopens.
24618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24620 # Compiler flag to generate shared objects directly from archives.
24621 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24623 # Whether the compiler copes with passing no objects directly.
24624 compiler_needs_object=$lt_compiler_needs_object
24626 # Create an old-style archive from a shared archive.
24627 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24629 # Create a temporary old-style archive to link instead of a shared archive.
24630 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24632 # Commands used to build a shared archive.
24633 archive_cmds=$lt_archive_cmds
24634 archive_expsym_cmds=$lt_archive_expsym_cmds
24636 # Commands used to build a loadable module if different from building
24637 # a shared archive.
24638 module_cmds=$lt_module_cmds
24639 module_expsym_cmds=$lt_module_expsym_cmds
24641 # Whether we are building with GNU ld or not.
24642 with_gnu_ld=$lt_with_gnu_ld
24644 # Flag that allows shared libraries with undefined symbols to be built.
24645 allow_undefined_flag=$lt_allow_undefined_flag
24647 # Flag that enforces no undefined symbols.
24648 no_undefined_flag=$lt_no_undefined_flag
24650 # Flag to hardcode \$libdir into a binary during linking.
24651 # This must work even if \$libdir does not exist
24652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24654 # Whether we need a single "-rpath" flag with a separated argument.
24655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24657 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24658 # DIR into the resulting binary.
24659 hardcode_direct=$hardcode_direct
24661 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24662 # DIR into the resulting binary and the resulting library dependency is
24663 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24664 # library is relocated.
24665 hardcode_direct_absolute=$hardcode_direct_absolute
24667 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24668 # into the resulting binary.
24669 hardcode_minus_L=$hardcode_minus_L
24671 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24672 # into the resulting binary.
24673 hardcode_shlibpath_var=$hardcode_shlibpath_var
24675 # Set to "yes" if building a shared library automatically hardcodes DIR
24676 # into the library and all subsequent libraries and executables linked
24677 # against it.
24678 hardcode_automatic=$hardcode_automatic
24680 # Set to yes if linker adds runtime paths of dependent libraries
24681 # to runtime path list.
24682 inherit_rpath=$inherit_rpath
24684 # Whether libtool must link a program against all its dependency libraries.
24685 link_all_deplibs=$link_all_deplibs
24687 # Set to "yes" if exported symbols are required.
24688 always_export_symbols=$always_export_symbols
24690 # The commands to list exported symbols.
24691 export_symbols_cmds=$lt_export_symbols_cmds
24693 # Symbols that should not be listed in the preloaded symbols.
24694 exclude_expsyms=$lt_exclude_expsyms
24696 # Symbols that must always be exported.
24697 include_expsyms=$lt_include_expsyms
24699 # Commands necessary for linking programs (against libraries) with templates.
24700 prelink_cmds=$lt_prelink_cmds
24702 # Commands necessary for finishing linking programs.
24703 postlink_cmds=$lt_postlink_cmds
24705 # Specify filename containing input files.
24706 file_list_spec=$lt_file_list_spec
24708 # How to hardcode a shared library path into an executable.
24709 hardcode_action=$hardcode_action
24711 # ### END LIBTOOL CONFIG
24713 _LT_EOF
24715 cat <<'_LT_EOF' >> "$cfgfile"
24717 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24719 # func_munge_path_list VARIABLE PATH
24720 # -----------------------------------
24721 # VARIABLE is name of variable containing _space_ separated list of
24722 # directories to be munged by the contents of PATH, which is string
24723 # having a format:
24724 # "DIR[:DIR]:"
24725 # string "DIR[ DIR]" will be prepended to VARIABLE
24726 # ":DIR[:DIR]"
24727 # string "DIR[ DIR]" will be appended to VARIABLE
24728 # "DIRP[:DIRP]::[DIRA:]DIRA"
24729 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24730 # "DIRA[ DIRA]" will be appended to VARIABLE
24731 # "DIR[:DIR]"
24732 # VARIABLE will be replaced by "DIR[ DIR]"
24733 func_munge_path_list ()
24735 case x$2 in
24739 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24741 x:*)
24742 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24744 *::*)
24745 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24746 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24749 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24751 esac
24755 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24756 func_cc_basename ()
24758 for cc_temp in $*""; do
24759 case $cc_temp in
24760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24762 \-*) ;;
24763 *) break;;
24764 esac
24765 done
24766 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24770 # ### END FUNCTIONS SHARED WITH CONFIGURE
24772 _LT_EOF
24774 case $host_os in
24775 aix3*)
24776 cat <<\_LT_EOF >> "$cfgfile"
24777 # AIX sometimes has problems with the GCC collect2 program. For some
24778 # reason, if we set the COLLECT_NAMES environment variable, the problems
24779 # vanish in a puff of smoke.
24780 if test set != "${COLLECT_NAMES+set}"; then
24781 COLLECT_NAMES=
24782 export COLLECT_NAMES
24784 _LT_EOF
24786 esac
24789 ltmain=$ac_aux_dir/ltmain.sh
24792 # We use sed instead of cat because bash on DJGPP gets confused if
24793 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24794 # text mode, it properly converts lines to CR/LF. This bash problem
24795 # is reportedly fixed, but why not run on old versions too?
24796 sed '$q' "$ltmain" >> "$cfgfile" \
24797 || (rm -f "$cfgfile"; exit 1)
24799 mv -f "$cfgfile" "$ofile" ||
24800 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24801 chmod +x "$ofile"
24804 "po-directories":C)
24805 for ac_file in $CONFIG_FILES; do
24806 # Support "outfile[:infile[:infile...]]"
24807 case "$ac_file" in
24808 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24809 esac
24810 # PO directories have a Makefile.in generated from Makefile.in.in.
24811 case "$ac_file" in */Makefile.in)
24812 # Adjust a relative srcdir.
24813 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24814 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24815 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24816 # In autoconf-2.13 it is called $ac_given_srcdir.
24817 # In autoconf-2.50 it is called $srcdir.
24818 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24819 case "$ac_given_srcdir" in
24820 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24821 /*) top_srcdir="$ac_given_srcdir" ;;
24822 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24823 esac
24824 # Treat a directory as a PO directory if and only if it has a
24825 # POTFILES.in file. This allows packages to have multiple PO
24826 # directories under different names or in different locations.
24827 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24828 rm -f "$ac_dir/POTFILES"
24829 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24830 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24831 POMAKEFILEDEPS="POTFILES.in"
24832 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24833 # on $ac_dir but don't depend on user-specified configuration
24834 # parameters.
24835 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24836 # The LINGUAS file contains the set of available languages.
24837 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24838 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24840 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24841 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24842 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24843 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24844 else
24845 # The set of available languages was given in configure.in.
24846 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24847 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24849 # Compute POFILES
24850 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24851 # Compute UPDATEPOFILES
24852 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24853 # Compute DUMMYPOFILES
24854 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24855 # Compute GMOFILES
24856 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24857 case "$ac_given_srcdir" in
24858 .) srcdirpre= ;;
24859 *) srcdirpre='$(srcdir)/' ;;
24860 esac
24861 POFILES=
24862 UPDATEPOFILES=
24863 DUMMYPOFILES=
24864 GMOFILES=
24865 for lang in $ALL_LINGUAS; do
24866 POFILES="$POFILES $srcdirpre$lang.po"
24867 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24868 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24869 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24870 done
24871 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24872 # environment variable.
24873 INST_LINGUAS=
24874 if test -n "$ALL_LINGUAS"; then
24875 for presentlang in $ALL_LINGUAS; do
24876 useit=no
24877 if test "%UNSET%" != "$LINGUAS"; then
24878 desiredlanguages="$LINGUAS"
24879 else
24880 desiredlanguages="$ALL_LINGUAS"
24882 for desiredlang in $desiredlanguages; do
24883 # Use the presentlang catalog if desiredlang is
24884 # a. equal to presentlang, or
24885 # b. a variant of presentlang (because in this case,
24886 # presentlang can be used as a fallback for messages
24887 # which are not translated in the desiredlang catalog).
24888 case "$desiredlang" in
24889 "$presentlang"*) useit=yes;;
24890 esac
24891 done
24892 if test $useit = yes; then
24893 INST_LINGUAS="$INST_LINGUAS $presentlang"
24895 done
24897 CATALOGS=
24898 if test -n "$INST_LINGUAS"; then
24899 for lang in $INST_LINGUAS; do
24900 CATALOGS="$CATALOGS $lang.gmo"
24901 done
24903 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24904 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"
24905 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24906 if test -f "$f"; then
24907 case "$f" in
24908 *.orig | *.bak | *~) ;;
24909 *) cat "$f" >> "$ac_dir/Makefile" ;;
24910 esac
24912 done
24915 esac
24916 done ;;
24918 esac
24919 done # for ac_tag
24922 as_fn_exit 0
24923 _ACEOF
24924 ac_clean_files=$ac_clean_files_save
24926 test $ac_write_fail = 0 ||
24927 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24930 # configure is writing to config.log, and then calls config.status.
24931 # config.status does its own redirection, appending to config.log.
24932 # Unfortunately, on DOS this fails, as config.log is still kept open
24933 # by configure, so config.status won't be able to write to it; its
24934 # output is simply discarded. So we exec the FD to /dev/null,
24935 # effectively closing config.log, so it can be properly (re)opened and
24936 # appended to by config.status. When coming back to configure, we
24937 # need to make the FD available again.
24938 if test "$no_create" != yes; then
24939 ac_cs_success=:
24940 ac_config_status_args=
24941 test "$silent" = yes &&
24942 ac_config_status_args="$ac_config_status_args --quiet"
24943 exec 5>/dev/null
24944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24945 exec 5>>config.log
24946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24947 # would make configure fail if this is the last instruction.
24948 $ac_cs_success || as_fn_exit 1
24950 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24952 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}