* new version 2.20.6
[alpine.git] / configure
blob85226522d5a96724f7d56433c7bc7dd77b51f8f3
1 #! /bin/sh
2 # From configure.ac Rev:17 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.20.6.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: chappa@washington.edu about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.20.6'
595 PACKAGE_STRING='alpine 2.20.6'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_GCCOPTLEVEL
651 C_CLIENT_LDFLAGS
652 C_CLIENT_CFLAGS
653 C_CLIENT_WITH_IPV6
654 C_CLIENT_TARGET
655 PTHREAD_CFLAGS
656 PTHREAD_LIBS
657 PTHREAD_CC
658 acx_pthread_config
659 alpine_interactive_spellcheck
660 ISPELLPROG
661 alpine_simple_spellcheck
662 SPELLPROG
663 PWPROG
664 NPA_PROG
665 SENDMAIL
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 LTLIBICONV
671 LIBICONV
672 INTL_MACOSX_LIBS
673 MSGMERGE
674 XGETTEXT_015
675 XGETTEXT
676 GMSGFMT_015
677 MSGFMT_015
678 GMSGFMT
679 MSGFMT
680 USE_NLS
681 MAKE
686 LIBTOOL_DEPS
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 ac_ct_AR
696 DLLTOOL
697 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
703 EGREP
704 GREP
706 LIBTOOL
707 RANLIB
708 LN_S
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 MAINT
735 MAINTAINER_MODE_FALSE
736 MAINTAINER_MODE_TRUE
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_silent_rules
806 enable_maintainer_mode
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 enable_nls
816 enable_rpath
817 with_libiconv_prefix
818 with_libintl_prefix
819 enable_dmalloc
820 with_dmalloc_dir
821 with_ps_cmd
822 with_localedir
823 enable_osx_universal_binaries
824 with_include_path
825 with_lib_path
826 with_pubcookie
827 with_web_bin
828 enable_debug
829 enable_optimization
830 enable_mouse
831 enable_quotas
832 enable_from_changing
833 enable_background_post
834 enable_keyboard_lock
835 enable_from_encoding
836 with_smtp_msa
837 with_smtp_msa_flags
838 with_npa
839 with_npa_flags
840 with_password_prog
841 with_simple_spellcheck
842 with_interactive_spellcheck
843 with_system_pinerc
844 with_system_fixed_pinerc
845 with_local_support_info
846 with_mailcheck_interval
847 with_checkpoint_interval
848 with_checkpoint_frequency
849 with_display_rows
850 with_display_columns
851 with_max_display_rows
852 with_max_display_columns
853 with_fill_column
854 with_max_fill_column
855 with_debug_level
856 with_debug_files
857 with_debug_file
858 with_forwarded_keyword
859 with_display_overlap
860 with_display_margin
861 with_default_fcc
862 with_default_save_folder
863 with_default_legacy_postponed_folder
864 with_default_postponed_folder
865 with_default_trash_folder
866 with_default_interrupted_mail
867 with_default_dead_letter_folder
868 with_default_mail_directory
869 with_default_inbox_name
870 with_default_signature_file
871 with_default_elm_style_save
872 with_default_header_in_reply
873 with_default_old_style_reply
874 with_default_use_only_domain_name
875 with_default_save_by_sender
876 with_default_sort_key
877 with_default_addressbook_sort_rule
878 with_default_folder_sort_rule
879 with_default_saved_message_name_rule
880 with_default_fcc_rule
881 with_default_standard_printer
882 with_default_ansi_printer
883 with_default_addressbook
884 with_default_local_fullname
885 with_default_local_address
886 with_default_keyboard_lock_count
887 with_default_remote_addressbook_history
888 with_smime_public_cert_directory
889 with_smime_private_key_directory
890 with_smime_cacert_directory
891 with_default_printer
892 with_passfile
893 with_local_password_cache
894 with_local_password_cache_method
895 with_default_sshpath
896 with_default_sshcmd
897 with_ssl
898 with_ssl_dir
899 with_ssl_certs_dir
900 with_ssl_include_dir
901 with_ssl_lib_dir
902 with_krb5
903 with_krb5_dir
904 with_krb5_include_dir
905 with_krb5_lib_dir
906 with_ldap
907 with_ldap_dir
908 with_ldap_include_dir
909 with_ldap_lib_dir
910 with_smime
911 with_tcl
912 with_tcl_lib
913 with_tcl_include
914 with_supplied_regex
915 with_pthread
916 with_system_mail_directory
917 with_c_client_target
918 with_ipv6
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP'
931 # Initialize some variables set by options.
932 ac_init_help=
933 ac_init_version=false
934 ac_unrecognized_opts=
935 ac_unrecognized_sep=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
979 ac_prev=
980 ac_dashdash=
981 for ac_option
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
990 case $ac_option in
991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
994 esac
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1000 ac_dashdash=yes ;;
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
1060 -enable-* | --enable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336 esac
1337 done
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1421 /^X\(\/\/\)$/{
1422 s//\1/
1425 /^X\(\/\).*/{
1426 s//\1/
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1434 else
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures alpine 2.20.6 to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1524 cat <<\_ACEOF
1526 Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 _ACEOF
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of alpine 2.20.6:";;
1540 esac
1541 cat <<\_ACEOF
1543 Optional Features:
1544 --disable-option-checking ignore unrecognized --enable/--with options
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-silent-rules less verbose build output (undo: "make V=1")
1548 --disable-silent-rules verbose build output (undo: "make V=0")
1549 --enable-maintainer-mode
1550 enable make rules and dependencies not useful (and
1551 sometimes confusing) to the casual installer
1552 --enable-dependency-tracking
1553 do not reject slow dependency extractors
1554 --disable-dependency-tracking
1555 speeds up one-time build
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --disable-nls do not use Native Language Support
1562 --disable-rpath do not hardcode runtime library paths
1563 --enable-dmalloc Enable dmalloc debugging
1564 --enable-osx-universal-binaries
1565 Produce universal binaries under OS X [[default=no]]
1566 --disable-debug Exclude debug messages from source
1567 --disable-optimization Exclude optimizing compiler flags
1568 --disable-mouse Disable mouse support
1569 --enable-quotas Enable disk quota checking on startup
1570 --disable-from-changing Disallow users changing From addresss
1571 --disable-background-post
1572 Disable background posting
1573 --disable-keyboard-lock Disable keyboard locking
1574 --enable-from-encoding Enable From encoding in sent messages
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-sysroot=DIR Search for dependent libraries within DIR
1583 (or the compiler's sysroot if not specified).
1584 --with-gnu-ld assume the C compiler uses GNU ld default=no
1585 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1586 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1587 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1588 --without-libintl-prefix don't search for libintl in includedir and libdir
1589 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1590 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1591 /bin/ps auxww
1592 --with-localedir=DIR Name of gettext locale directory
1593 --with-include-path=PATHS
1594 Colon-separated list of directories used for include
1595 file search
1596 --with-lib-path=PATHS Colon-separated list of directories used for library
1597 search
1598 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1599 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1600 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1601 --with-smtp-msa-flags=FLAGS
1602 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1603 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1604 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1605 --with-password-prog=PATH
1606 Password change program (/bin/passwd)
1607 --with-simple-spellcheck=PROG
1608 Spellcheck program reads stdin, emits misspellings
1609 on stdout
1610 --with-interactive-spellcheck=PROG
1611 Interactive, filewise spell checker
1612 --with-system-pinerc=VALUE
1613 System pinerc (/usr/local/lib/pine.conf)
1614 --with-system-fixed-pinerc=VALUE
1615 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1616 --with-local-support-info=VALUE
1617 Local Support Info File (/usr/local/lib/pine.info)
1618 --with-mailcheck-interval=VALUE
1619 Specify default mail-check-interval (150)
1620 --with-checkpoint-interval=VALUE
1621 Specify default checkpoint-interval (420)
1622 --with-checkpoint-frequency=VALUE
1623 State change count before checkpoint (12)
1624 --with-display-rows=VALUE
1625 Initial rows on display (24)
1626 --with-display-columns=VALUE
1627 Initial columns on display (80)
1628 --with-max-display-rows=VALUE
1629 Maximum display rows (200)
1630 --with-max-display-columns=VALUE
1631 Maximum display columns (500)
1632 --with-fill-column=VALUE
1633 Default fill column (74)
1634 --with-max_fill-column=VALUE
1635 Maximum fill column (80)
1636 --with-debug-level=VALUE
1637 Specify default debug verbosity level (2)
1638 --with-debug-files=VALUE
1639 Specify number of debug files (4)
1640 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1641 --with-forwarded-keyword=VALUE
1642 IMAP (c-client) keyword to store forwarded status
1643 ("\$Forwarded")
1644 --with-display-overlap=VALUE
1645 Lines preserved while paging (2)
1646 --with-display-margin=VALUE
1647 Lines visible while scrolling (0)
1648 --with-default-fcc=VALUE
1649 Default sent mail folder (sent-mail)
1650 --with-default-save-folder=VALUE
1651 Default save folder (saved-messages)
1652 --with-default-legacy-postponed-folder=VALUE
1653 Pre Pine 3.90 postponed folder (postponed-mail)
1654 --with-default-postponed-folder=VALUE
1655 Default postponed folder (postponed-msgs)
1656 --with-default-trash-folder=VALUE
1657 Default Trash folder for Web Alpine (Trash)
1658 --with-default-interrupted-mail=VALUE
1659 Default folder for interrupted mail
1660 (.pine-interrupted-mail)
1661 --with-default-dead-letter-folder=VALUE
1662 Default dead letter folder (dead.letter)
1663 --with-default-mail-directory=VALUE
1664 Default mail directory (mail)
1665 --with-default-inbox-name=VALUE
1666 Default inbox name (INBOX)
1667 --with-default-signature-file=VALUE
1668 Default signature file (.signature)
1669 --with-default-elm-style-save=VALUE
1670 Default to Elm style save (no)
1671 --with-default-header-in-reply=VALUE
1672 Include header in reply (no)
1673 --with-default-old-style-reply=VALUE
1674 Default to old style reply (no)
1675 --with-default-use-only-domain-name=VALUE
1676 Default to using only the domain name (no)
1677 --with-default-save-by-sender=VALUE
1678 Default to save by sender (no)
1679 --with-default-sort-key=VALUE
1680 Default sort key (arrival)
1681 --with-default-addressbook-sort-rule=VALUE
1682 Default addressbook sort rule
1683 (fullname-with-lists-last)
1684 --with-default-folder-sort-rule=VALUE
1685 Default folder sort rule (alphabetical)
1686 --with-default-saved-message-name-rule=VALUE
1687 Default saved message name rule (default-folder)
1688 --with-default-fcc-rule=VALUE
1689 Default fcc rule (default-fcc)
1690 --with-default-standard-printer=VALUE
1691 Default standard printern (lpr)
1692 --with-default-ansi-printer=VALUE
1693 ANSI printer definition (attached-to-ansi)
1694 --with-default-addressbook=VALUE
1695 Default addressbook name (.addressbook)
1696 --with-default-local-fullname=VALUE
1697 Default local support fullname ("Local Support")
1698 --with-default-local-address=VALUE
1699 Default local support address (postmaster)
1700 --with-default-keyboard-lock-count=VALUE
1701 Default keyboard lock count (1)
1702 --with-default-remote-addressbook-history=VALUE
1703 Default address book history count (3)
1704 --with-smime-public-cert-directory=VALUE
1705 Default Public Cert Directory (.alpine-smime/public)
1706 --with-smime-private-key-directory=VALUE
1707 Default Private Key Directory
1708 (.alpine-smime/private)
1709 --with-smime-cacert-directory=VALUE
1710 Default Cert Authority Directory (.alpine-smime/ca)
1711 --with-default-printer=VALUE
1712 Default printer (ANSI_PRINTER)
1713 --with-passfile=FILENAME
1714 Password cache file (recommended when S/MIME is
1715 enabled and configured)
1716 --without-local-password-cache
1717 Disable OS-specific password cache, if supported
1718 --with-local-password-cache-method
1719 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1720 Windows=WINCRED)
1721 --with-default-sshpath=FILENAME
1722 set default value of ssh command path (defining
1723 should cause ssh to be preferred to rsh)
1724 --with-default-sshcmd=PERCENT_S_STRING
1725 set default value of ssh command string (usually "%s
1726 %s -l %s exec /etc/r%sd")
1727 --without-ssl Disable SSL support (OpenSSL)
1728 --with-ssl-dir=DIR Root of SSL lib/include path
1729 --with-ssl-certs-dir=DIR
1730 Path to SSL certificate directory
1731 --with-ssl-include-dir=DIR
1732 SSL include file path
1733 --with-ssl-lib-dir=DIR SSL library path
1734 --without-krb5 Disable Kerberos support
1735 --with-krb5-dir=DIR Root of Kerberos lib/include path
1736 --with-krb5-include-dir=DIR
1737 Kerberos include file path
1738 --with-krb5-lib-dir=DIR Kerberos library path
1739 --without-ldap Disable LDAP query support
1740 --with-ldap-dir=DIR Root of LDAP lib/include path
1741 --with-ldap-include-dir=DIR
1742 Directory containing LDAP include files
1743 --with-ldap-lib-dir=DIR LDAP library path
1744 --without-smime Disable S/MIME
1745 --without-tcl Disable TCL, thus Web Alpine support
1746 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1747 --with-tcl-include=DIR Directory containing TCL include files
1748 --with-supplied-regex Use regex library supplied with alpine
1749 --without-pthread Do NOT test for nor build with POSIX thread support
1750 --with-system-mail-directory=DIR
1751 Directory where local mail is delivered
1752 --with-c-client-target=TARGET
1753 IMAP build target (see imap/Makefile)
1754 --without-ipv6 Disable IPv6, primarily to work around resolver
1755 problems
1757 Some influential environment variables:
1758 CC C compiler command
1759 CFLAGS C compiler flags
1760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1761 nonstandard directory <lib dir>
1762 LIBS libraries to pass to the linker, e.g. -l<library>
1763 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1764 you have headers in a nonstandard directory <include dir>
1765 CPP C preprocessor
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1770 Report bugs to <chappa@washington.edu>.
1771 _ACEOF
1772 ac_status=$?
1775 if test "$ac_init_help" = "recursive"; then
1776 # If there are subdirs, report their specific --help.
1777 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1778 test -d "$ac_dir" ||
1779 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 continue
1781 ac_builddir=.
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1787 # A ".." for each directory in $ac_dir_suffix.
1788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1789 case $ac_top_builddir_sub in
1790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1799 case $srcdir in
1800 .) # We are building in place.
1801 ac_srcdir=.
1802 ac_top_srcdir=$ac_top_builddir_sub
1803 ac_abs_top_srcdir=$ac_pwd ;;
1804 [\\/]* | ?:[\\/]* ) # Absolute name.
1805 ac_srcdir=$srcdir$ac_dir_suffix;
1806 ac_top_srcdir=$srcdir
1807 ac_abs_top_srcdir=$srcdir ;;
1808 *) # Relative name.
1809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810 ac_top_srcdir=$ac_top_build_prefix$srcdir
1811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815 cd "$ac_dir" || { ac_status=$?; continue; }
1816 # Check for guested configure.
1817 if test -f "$ac_srcdir/configure.gnu"; then
1818 echo &&
1819 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820 elif test -f "$ac_srcdir/configure"; then
1821 echo &&
1822 $SHELL "$ac_srcdir/configure" --help=recursive
1823 else
1824 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825 fi || ac_status=$?
1826 cd "$ac_pwd" || { ac_status=$?; break; }
1827 done
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832 cat <<\_ACEOF
1833 alpine configure 2.20.6
1834 generated by GNU Autoconf 2.69
1836 Copyright (C) 2012 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1839 _ACEOF
1840 exit
1843 ## ------------------------ ##
1844 ## Autoconf initialization. ##
1845 ## ------------------------ ##
1847 # ac_fn_c_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 ac_retval=1
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
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_link") 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_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=1
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_cpp LINENO
1963 # ----------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_cpp ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_cpp conftest.$ac_ext"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } > conftest.i && {
1984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1997 } # ac_fn_c_try_cpp
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2039 } # ac_fn_c_try_run
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2056 #define $2 innocuous_$2
2058 /* System header to define __stub macros and hopefully few prototypes,
2059 which can conflict with char $2 (); below.
2060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061 <limits.h> exists even on freestanding compilers. */
2063 #ifdef __STDC__
2064 # include <limits.h>
2065 #else
2066 # include <assert.h>
2067 #endif
2069 #undef $2
2071 /* Override any GCC internal prototype to avoid an error.
2072 Use char because int might match the return type of a GCC
2073 builtin and then its argument prototype would still apply. */
2074 #ifdef __cplusplus
2075 extern "C"
2076 #endif
2077 char $2 ();
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined __stub_$2 || defined __stub___$2
2082 choke me
2083 #endif
2086 main ()
2088 return $2 ();
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_link "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2098 rm -f core conftest.err conftest.$ac_objext \
2099 conftest$ac_exeext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_func
2108 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2109 # -------------------------------------------------------
2110 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2111 # the include files in INCLUDES and setting the cache variable VAR
2112 # accordingly.
2113 ac_fn_c_check_header_mongrel ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if eval \${$3+:} false; then :
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 else
2126 # Is the header compilable?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2128 $as_echo_n "checking $2 usability... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_header_compiler=yes
2136 else
2137 ac_header_compiler=no
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2141 $as_echo "$ac_header_compiler" >&6; }
2143 # Is the header present?
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2145 $as_echo_n "checking $2 presence... " >&6; }
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 #include <$2>
2149 _ACEOF
2150 if ac_fn_c_try_cpp "$LINENO"; then :
2151 ac_header_preproc=yes
2152 else
2153 ac_header_preproc=no
2155 rm -f conftest.err conftest.i conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2157 $as_echo "$ac_header_preproc" >&6; }
2159 # So? What about this header?
2160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2161 yes:no: )
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2163 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 no:yes:* )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2169 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2171 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2173 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2175 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ( $as_echo "## ------------------------------------ ##
2179 ## Report this to chappa@washington.edu ##
2180 ## ------------------------------------ ##"
2181 ) | sed "s/^/$as_me: WARNING: /" >&2
2183 esac
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 eval "$3=\$ac_header_compiler"
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_header_mongrel
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 eval "$3=no"
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 if (sizeof ($2))
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2229 main ()
2231 if (sizeof (($2)))
2232 return 0;
2234 return 0;
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2239 else
2240 eval "$3=yes"
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_type
2253 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254 # --------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 # computed
2258 ac_fn_c_compute_int ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2270 test_array [0] = 0;
2271 return test_array [0];
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 ac_lo=0 ac_mid=0
2279 while :; do
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2296 else
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2299 ac_lo= ac_hi=
2300 break
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2311 main ()
2313 static int test_array [1 - 2 * !(($2) < 0)];
2314 test_array [0] = 0;
2315 return test_array [0];
2318 return 0;
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_hi=-1 ac_mid=-1
2323 while :; do
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2328 main ()
2330 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2331 test_array [0] = 0;
2332 return test_array [0];
2335 return 0;
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339 ac_lo=$ac_mid; break
2340 else
2341 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342 if test $ac_mid -le $ac_hi; then
2343 ac_lo= ac_hi=
2344 break
2346 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 done
2350 else
2351 ac_lo= ac_hi=
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 # Binary search between lo and hi bounds.
2357 while test "x$ac_lo" != "x$ac_hi"; do
2358 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 ac_hi=$ac_mid
2375 else
2376 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 done
2380 case $ac_lo in #((
2381 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382 '') ac_retval=1 ;;
2383 esac
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2388 static long int longval () { return $2; }
2389 static unsigned long int ulongval () { return $2; }
2390 #include <stdio.h>
2391 #include <stdlib.h>
2393 main ()
2396 FILE *f = fopen ("conftest.val", "w");
2397 if (! f)
2398 return 1;
2399 if (($2) < 0)
2401 long int i = longval ();
2402 if (i != ($2))
2403 return 1;
2404 fprintf (f, "%ld", i);
2406 else
2408 unsigned long int i = ulongval ();
2409 if (i != ($2))
2410 return 1;
2411 fprintf (f, "%lu", i);
2413 /* Do not output a trailing newline, as this causes \r\n confusion
2414 on some platforms. */
2415 return ferror (f) || fclose (f) != 0;
2418 return 0;
2420 _ACEOF
2421 if ac_fn_c_try_run "$LINENO"; then :
2422 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2423 else
2424 ac_retval=1
2426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427 conftest.$ac_objext conftest.beam conftest.$ac_ext
2428 rm -f conftest.val
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_c_compute_int
2435 cat >config.log <<_ACEOF
2436 This file contains any messages produced by compilers while
2437 running configure, to aid debugging if configure makes a mistake.
2439 It was created by alpine $as_me 2.20.6, which was
2440 generated by GNU Autoconf 2.69. Invocation command line was
2442 $ $0 $@
2444 _ACEOF
2445 exec 5>>config.log
2447 cat <<_ASUNAME
2448 ## --------- ##
2449 ## Platform. ##
2450 ## --------- ##
2452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 _ASUNAME
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 $as_echo "PATH: $as_dir"
2477 done
2478 IFS=$as_save_IFS
2480 } >&5
2482 cat >&5 <<_ACEOF
2485 ## ----------- ##
2486 ## Core tests. ##
2487 ## ----------- ##
2489 _ACEOF
2492 # Keep a trace of the command line.
2493 # Strip out --no-create and --no-recursion so they do not pile up.
2494 # Strip out --silent because we don't want to record it for future runs.
2495 # Also quote any args containing shell meta-characters.
2496 # Make two passes to allow for proper duplicate-argument suppression.
2497 ac_configure_args=
2498 ac_configure_args0=
2499 ac_configure_args1=
2500 ac_must_keep_next=false
2501 for ac_pass in 1 2
2503 for ac_arg
2505 case $ac_arg in
2506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2508 | -silent | --silent | --silen | --sile | --sil)
2509 continue ;;
2510 *\'*)
2511 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 esac
2513 case $ac_pass in
2514 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516 as_fn_append ac_configure_args1 " '$ac_arg'"
2517 if test $ac_must_keep_next = true; then
2518 ac_must_keep_next=false # Got value, back to normal.
2519 else
2520 case $ac_arg in
2521 *=* | --config-cache | -C | -disable-* | --disable-* \
2522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2524 | -with-* | --with-* | -without-* | --without-* | --x)
2525 case "$ac_configure_args0 " in
2526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 esac
2529 -* ) ac_must_keep_next=true ;;
2530 esac
2532 as_fn_append ac_configure_args " '$ac_arg'"
2534 esac
2535 done
2536 done
2537 { ac_configure_args0=; unset ac_configure_args0;}
2538 { ac_configure_args1=; unset ac_configure_args1;}
2540 # When interrupted or exit'd, cleanup temporary files, and complete
2541 # config.log. We remove comments because anyway the quotes in there
2542 # would cause problems or look ugly.
2543 # WARNING: Use '\'' to represent an apostrophe within the trap.
2544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2545 trap 'exit_status=$?
2546 # Save into config.log some information that might help in debugging.
2548 echo
2550 $as_echo "## ---------------- ##
2551 ## Cache variables. ##
2552 ## ---------------- ##"
2553 echo
2554 # The following way of writing the cache mishandles newlines in values,
2556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2557 eval ac_val=\$$ac_var
2558 case $ac_val in #(
2559 *${as_nl}*)
2560 case $ac_var in #(
2561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 esac
2564 case $ac_var in #(
2565 _ | IFS | as_nl) ;; #(
2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567 *) { eval $ac_var=; unset $ac_var;} ;;
2568 esac ;;
2569 esac
2570 done
2571 (set) 2>&1 |
2572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2573 *${as_nl}ac_space=\ *)
2574 sed -n \
2575 "s/'\''/'\''\\\\'\'''\''/g;
2576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 ;; #(
2579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581 esac |
2582 sort
2584 echo
2586 $as_echo "## ----------------- ##
2587 ## Output variables. ##
2588 ## ----------------- ##"
2589 echo
2590 for ac_var in $ac_subst_vars
2592 eval ac_val=\$$ac_var
2593 case $ac_val in
2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595 esac
2596 $as_echo "$ac_var='\''$ac_val'\''"
2597 done | sort
2598 echo
2600 if test -n "$ac_subst_files"; then
2601 $as_echo "## ------------------- ##
2602 ## File substitutions. ##
2603 ## ------------------- ##"
2604 echo
2605 for ac_var in $ac_subst_files
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2616 if test -s confdefs.h; then
2617 $as_echo "## ----------- ##
2618 ## confdefs.h. ##
2619 ## ----------- ##"
2620 echo
2621 cat confdefs.h
2622 echo
2624 test "$ac_signal" != 0 &&
2625 $as_echo "$as_me: caught signal $ac_signal"
2626 $as_echo "$as_me: exit $exit_status"
2627 } >&5
2628 rm -f core *.core core.conftest.* &&
2629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 exit $exit_status
2632 for ac_signal in 1 2 13 15; do
2633 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2634 done
2635 ac_signal=0
2637 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2638 rm -f -r conftest* confdefs.h
2640 $as_echo "/* confdefs.h */" > confdefs.h
2642 # Predefined preprocessor variables.
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 _ACEOF
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 _ACEOF
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 _ACEOF
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 _ACEOF
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 _ACEOF
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_URL "$PACKAGE_URL"
2666 _ACEOF
2669 # Let the site file select an alternate cache file if it wants to.
2670 # Prefer an explicitly selected file to automatically selected ones.
2671 ac_site_file1=NONE
2672 ac_site_file2=NONE
2673 if test -n "$CONFIG_SITE"; then
2674 # We do not want a PATH search for config.site.
2675 case $CONFIG_SITE in #((
2676 -*) ac_site_file1=./$CONFIG_SITE;;
2677 */*) ac_site_file1=$CONFIG_SITE;;
2678 *) ac_site_file1=./$CONFIG_SITE;;
2679 esac
2680 elif test "x$prefix" != xNONE; then
2681 ac_site_file1=$prefix/share/config.site
2682 ac_site_file2=$prefix/etc/config.site
2683 else
2684 ac_site_file1=$ac_default_prefix/share/config.site
2685 ac_site_file2=$ac_default_prefix/etc/config.site
2687 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689 test "x$ac_site_file" = xNONE && continue
2690 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2692 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2693 sed 's/^/| /' "$ac_site_file" >&5
2694 . "$ac_site_file" \
2695 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error $? "failed to load site script $ac_site_file
2698 See \`config.log' for more details" "$LINENO" 5; }
2700 done
2702 if test -r "$cache_file"; then
2703 # Some versions of bash will fail to source /dev/null (special files
2704 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2705 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2707 $as_echo "$as_me: loading cache $cache_file" >&6;}
2708 case $cache_file in
2709 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710 *) . "./$cache_file";;
2711 esac
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2715 $as_echo "$as_me: creating cache $cache_file" >&6;}
2716 >$cache_file
2719 gt_needs="$gt_needs "
2720 # Check that the precious variables saved in the cache have kept the same
2721 # value.
2722 ac_cache_corrupted=false
2723 for ac_var in $ac_precious_vars; do
2724 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2725 eval ac_new_set=\$ac_env_${ac_var}_set
2726 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2727 eval ac_new_val=\$ac_env_${ac_var}_value
2728 case $ac_old_set,$ac_new_set in
2729 set,)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2731 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2732 ac_cache_corrupted=: ;;
2733 ,set)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2735 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2736 ac_cache_corrupted=: ;;
2737 ,);;
2739 if test "x$ac_old_val" != "x$ac_new_val"; then
2740 # differences in whitespace do not lead to failure.
2741 ac_old_val_w=`echo x $ac_old_val`
2742 ac_new_val_w=`echo x $ac_new_val`
2743 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2745 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2746 ac_cache_corrupted=:
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2749 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2750 eval $ac_var=\$ac_old_val
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2753 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2755 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2756 fi;;
2757 esac
2758 # Pass precious variables to config.status.
2759 if test "$ac_new_set" = set; then
2760 case $ac_new_val in
2761 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2762 *) ac_arg=$ac_var=$ac_new_val ;;
2763 esac
2764 case " $ac_configure_args " in
2765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2766 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767 esac
2769 done
2770 if $ac_cache_corrupted; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2774 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2775 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2777 ## -------------------- ##
2778 ## Main body of script. ##
2779 ## -------------------- ##
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 ac_config_headers="$ac_config_headers include/config.h"
2793 am__api_version='1.13'
2795 ac_aux_dir=
2796 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2797 if test -f "$ac_dir/install-sh"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/install-sh -c"
2800 break
2801 elif test -f "$ac_dir/install.sh"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/install.sh -c"
2804 break
2805 elif test -f "$ac_dir/shtool"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/shtool install -c"
2808 break
2810 done
2811 if test -z "$ac_aux_dir"; then
2812 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2815 # These three variables are undocumented and unsupported,
2816 # and are intended to be withdrawn in a future Autoconf release.
2817 # They can cause serious problems if a builder's source tree is in a directory
2818 # whose full name contains unusual characters.
2819 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2820 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2821 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2824 # Find a good install program. We prefer a C program (faster),
2825 # so one script is as good as another. But avoid the broken or
2826 # incompatible versions:
2827 # SysV /etc/install, /usr/sbin/install
2828 # SunOS /usr/etc/install
2829 # IRIX /sbin/install
2830 # AIX /bin/install
2831 # AmigaOS /C/install, which installs bootblocks on floppy discs
2832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835 # OS/2's system install, which has a completely different semantic
2836 # ./install, which can be erroneously created by make from ./install.sh.
2837 # Reject install programs that cannot install multiple files.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2839 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2840 if test -z "$INSTALL"; then
2841 if ${ac_cv_path_install+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 # Account for people who put trailing slashes in PATH elements.
2850 case $as_dir/ in #((
2851 ./ | .// | /[cC]/* | \
2852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2853 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2854 /usr/ucb/* ) ;;
2856 # OSF1 and SCO ODT 3.0 have their own names for install.
2857 # Don't use installbsd from OSF since it installs stuff as root
2858 # by default.
2859 for ac_prog in ginstall scoinst install; do
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2862 if test $ac_prog = install &&
2863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2864 # AIX install. It has an incompatible calling convention.
2866 elif test $ac_prog = install &&
2867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # program-specific install script used by HP pwplus--don't use.
2870 else
2871 rm -rf conftest.one conftest.two conftest.dir
2872 echo one > conftest.one
2873 echo two > conftest.two
2874 mkdir conftest.dir
2875 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2876 test -s conftest.one && test -s conftest.two &&
2877 test -s conftest.dir/conftest.one &&
2878 test -s conftest.dir/conftest.two
2879 then
2880 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881 break 3
2885 done
2886 done
2888 esac
2890 done
2891 IFS=$as_save_IFS
2893 rm -rf conftest.one conftest.two conftest.dir
2896 if test "${ac_cv_path_install+set}" = set; then
2897 INSTALL=$ac_cv_path_install
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for INSTALL within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 INSTALL=$ac_install_sh
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2907 $as_echo "$INSTALL" >&6; }
2909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2910 # It thinks the first close brace ends the variable substitution.
2911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2918 $as_echo_n "checking whether build environment is sane... " >&6; }
2919 # Reject unsafe characters in $srcdir or the absolute working directory
2920 # name. Accept space and tab only in the latter.
2921 am_lf='
2923 case `pwd` in
2924 *[\\\"\#\$\&\'\`$am_lf]*)
2925 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2926 esac
2927 case $srcdir in
2928 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2929 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2930 esac
2932 # Do 'set' in a subshell so we don't clobber the current shell's
2933 # arguments. Must try -L first in case configure is actually a
2934 # symlink; some systems play weird games with the mod time of symlinks
2935 # (eg FreeBSD returns the mod time of the symlink's containing
2936 # directory).
2937 if (
2938 am_has_slept=no
2939 for am_try in 1 2; do
2940 echo "timestamp, slept: $am_has_slept" > conftest.file
2941 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2942 if test "$*" = "X"; then
2943 # -L didn't work.
2944 set X `ls -t "$srcdir/configure" conftest.file`
2946 if test "$*" != "X $srcdir/configure conftest.file" \
2947 && test "$*" != "X conftest.file $srcdir/configure"; then
2949 # If neither matched, then we have a broken ls. This can happen
2950 # if, for instance, CONFIG_SHELL is bash and it inherits a
2951 # broken ls alias from the environment. This has actually
2952 # happened. Such a system could not be considered "sane".
2953 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2954 alias in your environment" "$LINENO" 5
2956 if test "$2" = conftest.file || test $am_try -eq 2; then
2957 break
2959 # Just in case.
2960 sleep 1
2961 am_has_slept=yes
2962 done
2963 test "$2" = conftest.file
2965 then
2966 # Ok.
2968 else
2969 as_fn_error $? "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 # If we didn't sleep, we still need to ensure time stamps of config.status and
2975 # generated files are strictly newer.
2976 am_sleep_pid=
2977 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2978 ( sleep 1 ) &
2979 am_sleep_pid=$!
2982 rm -f conftest.file
2984 test "$program_prefix" != NONE &&
2985 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2986 # Use a double $ so make ignores it.
2987 test "$program_suffix" != NONE &&
2988 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2989 # Double any \ or $.
2990 # By default was `s,x,x', remove it if useless.
2991 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2992 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2994 # expand $ac_aux_dir to an absolute path
2995 am_aux_dir=`cd $ac_aux_dir && pwd`
2997 if test x"${MISSING+set}" != xset; then
2998 case $am_aux_dir in
2999 *\ * | *\ *)
3000 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3002 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3003 esac
3005 # Use eval to expand $SHELL
3006 if eval "$MISSING --is-lightweight"; then
3007 am_missing_run="$MISSING "
3008 else
3009 am_missing_run=
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3011 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3014 if test x"${install_sh}" != xset; then
3015 case $am_aux_dir in
3016 *\ * | *\ *)
3017 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3019 install_sh="\${SHELL} $am_aux_dir/install-sh"
3020 esac
3023 # Installed binaries are usually stripped using 'strip' when the user
3024 # run "make install-strip". However 'strip' might not be the right
3025 # tool to use in cross-compilation environments, therefore Automake
3026 # will honor the 'STRIP' environment variable to overrule this program.
3027 if test "$cross_compiling" != no; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}strip; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_STRIP+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$STRIP"; then
3037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3059 $as_echo "$STRIP" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3067 if test -z "$ac_cv_prog_STRIP"; then
3068 ac_ct_STRIP=$STRIP
3069 # Extract the first word of "strip", so it can be a program name with args.
3070 set dummy strip; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$ac_ct_STRIP"; then
3077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_ac_ct_STRIP="strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3097 if test -n "$ac_ct_STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3099 $as_echo "$ac_ct_STRIP" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3105 if test "x$ac_ct_STRIP" = x; then
3106 STRIP=":"
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 STRIP=$ac_ct_STRIP
3116 else
3117 STRIP="$ac_cv_prog_STRIP"
3121 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3124 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3125 if test -z "$MKDIR_P"; then
3126 if ${ac_cv_path_mkdir+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_prog in mkdir gmkdir; do
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3138 'mkdir (GNU coreutils) '* | \
3139 'mkdir (coreutils) '* | \
3140 'mkdir (fileutils) '4.1*)
3141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3142 break 3;;
3143 esac
3144 done
3145 done
3146 done
3147 IFS=$as_save_IFS
3151 test -d ./--version && rmdir ./--version
3152 if test "${ac_cv_path_mkdir+set}" = set; then
3153 MKDIR_P="$ac_cv_path_mkdir -p"
3154 else
3155 # As a last resort, use the slow shell script. Don't cache a
3156 # value for MKDIR_P within a source directory, because that will
3157 # break other packages using the cache if that directory is
3158 # removed, or if the value is a relative name.
3159 MKDIR_P="$ac_install_sh -d"
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3163 $as_echo "$MKDIR_P" >&6; }
3165 for ac_prog in gawk mawk nawk awk
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_AWK+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$AWK"; then
3175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AWK="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 AWK=$ac_cv_prog_AWK
3195 if test -n "$AWK"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3197 $as_echo "$AWK" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$AWK" && break
3205 done
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3209 set x ${MAKE-make}
3210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3211 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 cat >conftest.make <<\_ACEOF
3215 SHELL = /bin/sh
3216 all:
3217 @echo '@@@%%%=$(MAKE)=@@@%%%'
3218 _ACEOF
3219 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3221 *@@@%%%=?*=@@@%%%*)
3222 eval ac_cv_prog_make_${ac_make}_set=yes;;
3224 eval ac_cv_prog_make_${ac_make}_set=no;;
3225 esac
3226 rm -f conftest.make
3228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 $as_echo "yes" >&6; }
3231 SET_MAKE=
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 SET_MAKE="MAKE=${MAKE-make}"
3238 rm -rf .tst 2>/dev/null
3239 mkdir .tst 2>/dev/null
3240 if test -d .tst; then
3241 am__leading_dot=.
3242 else
3243 am__leading_dot=_
3245 rmdir .tst 2>/dev/null
3247 # Check whether --enable-silent-rules was given.
3248 if test "${enable_silent_rules+set}" = set; then :
3249 enableval=$enable_silent_rules;
3252 case $enable_silent_rules in # (((
3253 yes) AM_DEFAULT_VERBOSITY=0;;
3254 no) AM_DEFAULT_VERBOSITY=1;;
3255 *) AM_DEFAULT_VERBOSITY=1;;
3256 esac
3257 am_make=${MAKE-make}
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3259 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3260 if ${am_cv_make_support_nested_variables+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if $as_echo 'TRUE=$(BAR$(V))
3264 BAR0=false
3265 BAR1=true
3267 am__doit:
3268 @$(TRUE)
3269 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3270 am_cv_make_support_nested_variables=yes
3271 else
3272 am_cv_make_support_nested_variables=no
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3276 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3277 if test $am_cv_make_support_nested_variables = yes; then
3278 AM_V='$(V)'
3279 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3280 else
3281 AM_V=$AM_DEFAULT_VERBOSITY
3282 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3284 AM_BACKSLASH='\'
3286 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3287 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3288 # is not polluted with repeated "-I."
3289 am__isrc=' -I$(srcdir)'
3290 # test to see if srcdir already configured
3291 if test -f $srcdir/config.status; then
3292 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3296 # test whether we have cygpath
3297 if test -z "$CYGPATH_W"; then
3298 if (cygpath --version) >/dev/null 2>/dev/null; then
3299 CYGPATH_W='cygpath -w'
3300 else
3301 CYGPATH_W=echo
3306 # Define the identity of the package.
3307 PACKAGE='alpine'
3308 VERSION='2.20.6'
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE "$PACKAGE"
3313 _ACEOF
3316 cat >>confdefs.h <<_ACEOF
3317 #define VERSION "$VERSION"
3318 _ACEOF
3320 # Some tools Automake needs.
3322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3336 # For better backward compatibility. To be removed once Automake 1.9.x
3337 # dies out for good. For more background, see:
3338 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3339 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3340 mkdir_p='$(MKDIR_P)'
3342 # We need awk for the "check" target. The system "awk" is bad on
3343 # some platforms.
3344 # Always define AMTAR for backward compatibility. Yes, it's still used
3345 # in the wild :-( We should find a proper way to deprecate it ...
3346 AMTAR='$${TAR-tar}'
3349 # We'll loop over all known methods to create a tar archive until one works.
3350 _am_tools='gnutar pax cpio none'
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3362 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3363 # Check whether --enable-maintainer-mode was given.
3364 if test "${enable_maintainer_mode+set}" = set; then :
3365 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3366 else
3367 USE_MAINTAINER_MODE=no
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3371 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3372 if test $USE_MAINTAINER_MODE = yes; then
3373 MAINTAINER_MODE_TRUE=
3374 MAINTAINER_MODE_FALSE='#'
3375 else
3376 MAINTAINER_MODE_TRUE='#'
3377 MAINTAINER_MODE_FALSE=
3380 MAINT=$MAINTAINER_MODE_TRUE
3384 # Make sure we can run config.sub.
3385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3386 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3389 $as_echo_n "checking build system type... " >&6; }
3390 if ${ac_cv_build+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_build_alias=$build_alias
3394 test "x$ac_build_alias" = x &&
3395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3396 test "x$ac_build_alias" = x &&
3397 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3403 $as_echo "$ac_cv_build" >&6; }
3404 case $ac_cv_build in
3405 *-*-*) ;;
3406 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3407 esac
3408 build=$ac_cv_build
3409 ac_save_IFS=$IFS; IFS='-'
3410 set x $ac_cv_build
3411 shift
3412 build_cpu=$1
3413 build_vendor=$2
3414 shift; shift
3415 # Remember, the first character of IFS is used to create $*,
3416 # except with old shells:
3417 build_os=$*
3418 IFS=$ac_save_IFS
3419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3423 $as_echo_n "checking host system type... " >&6; }
3424 if ${ac_cv_host+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test "x$host_alias" = x; then
3428 ac_cv_host=$ac_cv_build
3429 else
3430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3436 $as_echo "$ac_cv_host" >&6; }
3437 case $ac_cv_host in
3438 *-*-*) ;;
3439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3440 esac
3441 host=$ac_cv_host
3442 ac_save_IFS=$IFS; IFS='-'
3443 set x $ac_cv_host
3444 shift
3445 host_cpu=$1
3446 host_vendor=$2
3447 shift; shift
3448 # Remember, the first character of IFS is used to create $*,
3449 # except with old shells:
3450 host_os=$*
3451 IFS=$ac_save_IFS
3452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3464 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3466 # start out with intent to build Web Alpine
3467 WEB_BUILD=web/src/alpined.d
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3477 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3514 if test -z "$ac_cv_prog_CC"; then
3515 ac_ct_CC=$CC
3516 # Extract the first word of "gcc", so it can be a program name with args.
3517 set dummy gcc; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$ac_ct_CC"; then
3524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_ac_ct_CC="gcc"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3537 done
3538 done
3539 IFS=$as_save_IFS
3543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544 if test -n "$ac_ct_CC"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546 $as_echo "$ac_ct_CC" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3552 if test "x$ac_ct_CC" = x; then
3553 CC=""
3554 else
3555 case $cross_compiling:$ac_tool_warned in
3556 yes:)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561 CC=$ac_ct_CC
3563 else
3564 CC="$ac_cv_prog_CC"
3567 if test -z "$CC"; then
3568 if test -n "$ac_tool_prefix"; then
3569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3570 set dummy ${ac_tool_prefix}cc; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -n "$CC"; then
3577 ac_cv_prog_CC="$CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_CC="${ac_tool_prefix}cc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3590 done
3591 done
3592 IFS=$as_save_IFS
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3608 if test -z "$CC"; then
3609 # Extract the first word of "cc", so it can be a program name with args.
3610 set dummy cc; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if ${ac_cv_prog_CC+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3618 else
3619 ac_prog_rejected=no
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3628 ac_prog_rejected=yes
3629 continue
3631 ac_cv_prog_CC="cc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3639 if test $ac_prog_rejected = yes; then
3640 # We found a bogon in the path, so make sure we never use it.
3641 set dummy $ac_cv_prog_CC
3642 shift
3643 if test $# != 0; then
3644 # We chose a different compiler from the bogus one.
3645 # However, it has the same basename, so the bogon will be chosen
3646 # first if we set CC to just the basename; use the full file name.
3647 shift
3648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$CC"; then
3665 if test -n "$ac_tool_prefix"; then
3666 for ac_prog in cl.exe
3668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3689 done
3690 done
3691 IFS=$as_save_IFS
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3705 test -n "$CC" && break
3706 done
3708 if test -z "$CC"; then
3709 ac_ct_CC=$CC
3710 for ac_prog in cl.exe
3712 # Extract the first word of "$ac_prog", so it can be a program name with args.
3713 set dummy $ac_prog; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$ac_ct_CC"; then
3720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_ac_ct_CC="$ac_prog"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3740 if test -n "$ac_ct_CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3742 $as_echo "$ac_ct_CC" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3749 test -n "$ac_ct_CC" && break
3750 done
3752 if test "x$ac_ct_CC" = x; then
3753 CC=""
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 CC=$ac_ct_CC
3768 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details" "$LINENO" 5; }
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 ac_status=$?
3787 if test -s conftest.err; then
3788 sed '10a\
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3793 rm -f conftest.er1 conftest.err
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 done
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3802 main ()
3806 return 0;
3808 _ACEOF
3809 ac_clean_files_save=$ac_clean_files
3810 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3811 # Try to create an executable without -o first, disregard a.out.
3812 # It will help us diagnose broken compilers, and finding out an intuition
3813 # of exeext.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3815 $as_echo_n "checking whether the C compiler works... " >&6; }
3816 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3818 # The possible output files:
3819 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3821 ac_rmfiles=
3822 for ac_file in $ac_files
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 esac
3828 done
3829 rm -f $ac_rmfiles
3831 if { { ac_try="$ac_link_default"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_link_default") 2>&5
3839 ac_status=$?
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
3842 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3843 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3844 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3845 # so that the user can short-circuit this test for compilers unknown to
3846 # Autoconf.
3847 for ac_file in $ac_files ''
3849 test -f "$ac_file" || continue
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 [ab].out )
3854 # We found the default executable, but exeext='' is most
3855 # certainly right.
3856 break;;
3857 *.* )
3858 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3859 then :; else
3860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 # We set ac_cv_exeext here because the later test for it is not
3863 # safe: cross compilers may not add the suffix if given an `-o'
3864 # argument, so we may need to know it at that point already.
3865 # Even if this section looks crufty: it has the advantage of
3866 # actually working.
3867 break;;
3869 break;;
3870 esac
3871 done
3872 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874 else
3875 ac_file=''
3877 if test -z "$ac_file"; then :
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error 77 "C compiler cannot create executables
3886 See \`config.log' for more details" "$LINENO" 5; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889 $as_echo "yes" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3892 $as_echo_n "checking for C compiler default output file name... " >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894 $as_echo "$ac_file" >&6; }
3895 ac_exeext=$ac_cv_exeext
3897 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3898 ac_clean_files=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 # `rm'.
3916 for ac_file in conftest.exe conftest conftest.*; do
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 break;;
3922 * ) break;;
3923 esac
3924 done
3925 else
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details" "$LINENO" 5; }
3931 rm -f conftest conftest$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3935 rm -f conftest.$ac_ext
3936 EXEEXT=$ac_cv_exeext
3937 ac_exeext=$EXEEXT
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <stdio.h>
3942 main ()
3944 FILE *f = fopen ("conftest.out", "w");
3945 return ferror (f) || fclose (f) != 0;
3948 return 0;
3950 _ACEOF
3951 ac_clean_files="$ac_clean_files conftest.out"
3952 # Check that the compiler produces executables we can run. If not, either
3953 # the compiler is broken, or we cross compile.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3955 $as_echo_n "checking whether we are cross compiling... " >&6; }
3956 if test "$cross_compiling" != yes; then
3957 { { ac_try="$ac_link"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }
3968 if { ac_try='./conftest$ac_cv_exeext'
3969 { { case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_try") 2>&5
3976 ac_status=$?
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; }; then
3979 cross_compiling=no
3980 else
3981 if test "$cross_compiling" = maybe; then
3982 cross_compiling=yes
3983 else
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error $? "cannot run C compiled programs.
3987 If you meant to cross compile, use \`--host'.
3988 See \`config.log' for more details" "$LINENO" 5; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3993 $as_echo "$cross_compiling" >&6; }
3995 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if ${ac_cv_objext+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4010 return 0;
4012 _ACEOF
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_compile") 2>&5
4022 ac_status=$?
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }; then :
4025 for ac_file in conftest.o conftest.obj conftest.*; do
4026 test -f "$ac_file" || continue;
4027 case $ac_file in
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030 break;;
4031 esac
4032 done
4033 else
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details" "$LINENO" 5; }
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4047 ac_objext=$OBJEXT
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if ${ac_cv_c_compiler_gnu+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4059 #ifndef __GNUC__
4060 choke me
4061 #endif
4064 return 0;
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_compiler_gnu=yes
4069 else
4070 ac_compiler_gnu=no
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4079 GCC=yes
4080 else
4081 GCC=
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if ${ac_cv_prog_cc_g+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_save_c_werror_flag=$ac_c_werror_flag
4091 ac_c_werror_flag=yes
4092 ac_cv_prog_cc_g=no
4093 CFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4098 main ()
4102 return 0;
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_g=yes
4107 else
4108 CFLAGS=""
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4117 return 0;
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4122 else
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 main ()
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149 CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151 if test "$GCC" = yes; then
4152 CFLAGS="-g -O2"
4153 else
4154 CFLAGS="-g"
4156 else
4157 if test "$GCC" = yes; then
4158 CFLAGS="-O2"
4159 else
4160 CFLAGS=
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if ${ac_cv_prog_cc_c89+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 ac_cv_prog_cc_c89=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <stdarg.h>
4173 #include <stdio.h>
4174 struct stat;
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4179 char **p;
4180 int i;
4182 return p[i];
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4186 char *s;
4187 va_list v;
4188 va_start (v,p);
4189 s = g (p, va_arg (v,int));
4190 va_end (v);
4191 return s;
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4195 function prototypes and stuff, but not '\xHH' hex character constants.
4196 These don't provoke an error unfortunately, instead are silently treated
4197 as 'x'. The following induces an error, until -std is added to get
4198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4199 array size at least. It's necessary to write '\x00'==0 to get something
4200 that's true only with -std. */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204 inside strings and character constants. */
4205 #define FOO(x) 'x'
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 int argc;
4213 char **argv;
4215 main ()
4217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 return 0;
4221 _ACEOF
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 CC="$ac_save_CC $ac_arg"
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_prog_cc_c89=$ac_arg
4229 rm -f core conftest.err conftest.$ac_objext
4230 test "x$ac_cv_prog_cc_c89" != "xno" && break
4231 done
4232 rm -f conftest.$ac_ext
4233 CC=$ac_save_CC
4236 # AC_CACHE_VAL
4237 case "x$ac_cv_prog_cc_c89" in
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4241 xno)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4245 CC="$CC $ac_cv_prog_cc_c89"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4248 esac
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 DEPDIR="${am__leading_dot}deps"
4260 ac_config_commands="$ac_config_commands depfiles"
4263 am_make=${MAKE-make}
4264 cat > confinc << 'END'
4265 am__doit:
4266 @echo this is the am__doit target
4267 .PHONY: am__doit
4269 # If we don't find an include directive, just comment out the code.
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4271 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4272 am__include="#"
4273 am__quote=
4274 _am_result=none
4275 # First try GNU make style include.
4276 echo "include confinc" > confmf
4277 # Ignore all kinds of additional output from 'make'.
4278 case `$am_make -s -f confmf 2> /dev/null` in #(
4279 *the\ am__doit\ target*)
4280 am__include=include
4281 am__quote=
4282 _am_result=GNU
4284 esac
4285 # Now try BSD make style include.
4286 if test "$am__include" = "#"; then
4287 echo '.include "confinc"' > confmf
4288 case `$am_make -s -f confmf 2> /dev/null` in #(
4289 *the\ am__doit\ target*)
4290 am__include=.include
4291 am__quote="\""
4292 _am_result=BSD
4294 esac
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4299 $as_echo "$_am_result" >&6; }
4300 rm -f confinc confmf
4302 # Check whether --enable-dependency-tracking was given.
4303 if test "${enable_dependency_tracking+set}" = set; then :
4304 enableval=$enable_dependency_tracking;
4307 if test "x$enable_dependency_tracking" != xno; then
4308 am_depcomp="$ac_aux_dir/depcomp"
4309 AMDEPBACKSLASH='\'
4310 am__nodep='_no'
4312 if test "x$enable_dependency_tracking" != xno; then
4313 AMDEP_TRUE=
4314 AMDEP_FALSE='#'
4315 else
4316 AMDEP_TRUE='#'
4317 AMDEP_FALSE=
4322 depcc="$CC" am_compiler_list=
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4325 $as_echo_n "checking dependency style of $depcc... " >&6; }
4326 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4330 # We make a subdir and do the tests there. Otherwise we can end up
4331 # making bogus files that we don't know about and never remove. For
4332 # instance it was reported that on HP-UX the gcc test will end up
4333 # making a dummy file named 'D' -- because '-MD' means "put the output
4334 # in D".
4335 rm -rf conftest.dir
4336 mkdir conftest.dir
4337 # Copy depcomp to subdir because otherwise we won't find it if we're
4338 # using a relative directory.
4339 cp "$am_depcomp" conftest.dir
4340 cd conftest.dir
4341 # We will build objects and dependencies in a subdirectory because
4342 # it helps to detect inapplicable dependency modes. For instance
4343 # both Tru64's cc and ICC support -MD to output dependencies as a
4344 # side effect of compilation, but ICC will put the dependencies in
4345 # the current directory while Tru64 will put them in the object
4346 # directory.
4347 mkdir sub
4349 am_cv_CC_dependencies_compiler_type=none
4350 if test "$am_compiler_list" = ""; then
4351 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 am__universal=false
4354 case " $depcc " in #(
4355 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4356 esac
4358 for depmode in $am_compiler_list; do
4359 # Setup a source with many dependencies, because some compilers
4360 # like to wrap large dependency lists on column 80 (with \), and
4361 # we should not choose a depcomp mode which is confused by this.
4363 # We need to recreate these files for each test, as the compiler may
4364 # overwrite some of them when testing with obscure command lines.
4365 # This happens at least with the AIX C compiler.
4366 : > sub/conftest.c
4367 for i in 1 2 3 4 5 6; do
4368 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4369 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4370 # Solaris 10 /bin/sh.
4371 echo '/* dummy */' > sub/conftst$i.h
4372 done
4373 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4376 # mode. It turns out that the SunPro C++ compiler does not properly
4377 # handle '-M -o', and we need to detect this. Also, some Intel
4378 # versions had trouble with output in subdirs.
4379 am__obj=sub/conftest.${OBJEXT-o}
4380 am__minus_obj="-o $am__obj"
4381 case $depmode in
4382 gcc)
4383 # This depmode causes a compiler race in universal mode.
4384 test "$am__universal" = false || continue
4386 nosideeffect)
4387 # After this tag, mechanisms are not by side-effect, so they'll
4388 # only be used when explicitly requested.
4389 if test "x$enable_dependency_tracking" = xyes; then
4390 continue
4391 else
4392 break
4395 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4396 # This compiler won't grok '-c -o', but also, the minuso test has
4397 # not run yet. These depmodes are late enough in the game, and
4398 # so weak that their functioning should not be impacted.
4399 am__obj=conftest.${OBJEXT-o}
4400 am__minus_obj=
4402 none) break ;;
4403 esac
4404 if depmode=$depmode \
4405 source=sub/conftest.c object=$am__obj \
4406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4407 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4408 >/dev/null 2>conftest.err &&
4409 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413 # icc doesn't choke on unknown options, it will just issue warnings
4414 # or remarks (even with -Werror). So we grep stderr for any message
4415 # that says an option was ignored or not supported.
4416 # When given -MP, icc 7.0 and 7.1 complain thusly:
4417 # icc: Command line warning: ignoring option '-M'; no argument required
4418 # The diagnosis changed in icc 8.0:
4419 # icc: Command line remark: option '-MP' not supported
4420 if (grep 'ignoring option' conftest.err ||
4421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422 am_cv_CC_dependencies_compiler_type=$depmode
4423 break
4426 done
4428 cd ..
4429 rm -rf conftest.dir
4430 else
4431 am_cv_CC_dependencies_compiler_type=none
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4436 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440 test "x$enable_dependency_tracking" != xno \
4441 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442 am__fastdepCC_TRUE=
4443 am__fastdepCC_FALSE='#'
4444 else
4445 am__fastdepCC_TRUE='#'
4446 am__fastdepCC_FALSE=
4450 case $ac_cv_prog_cc_stdc in #(
4451 no) :
4452 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4453 *) :
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4455 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4456 if ${ac_cv_prog_cc_c99+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_cv_prog_cc_c99=no
4460 ac_save_CC=$CC
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdarg.h>
4464 #include <stdbool.h>
4465 #include <stdlib.h>
4466 #include <wchar.h>
4467 #include <stdio.h>
4469 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4470 #define debug(...) fprintf (stderr, __VA_ARGS__)
4471 #define showlist(...) puts (#__VA_ARGS__)
4472 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4473 static void
4474 test_varargs_macros (void)
4476 int x = 1234;
4477 int y = 5678;
4478 debug ("Flag");
4479 debug ("X = %d\n", x);
4480 showlist (The first, second, and third items.);
4481 report (x>y, "x is %d but y is %d", x, y);
4484 // Check long long types.
4485 #define BIG64 18446744073709551615ull
4486 #define BIG32 4294967295ul
4487 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4488 #if !BIG_OK
4489 your preprocessor is broken;
4490 #endif
4491 #if BIG_OK
4492 #else
4493 your preprocessor is broken;
4494 #endif
4495 static long long int bignum = -9223372036854775807LL;
4496 static unsigned long long int ubignum = BIG64;
4498 struct incomplete_array
4500 int datasize;
4501 double data[];
4504 struct named_init {
4505 int number;
4506 const wchar_t *name;
4507 double average;
4510 typedef const char *ccp;
4512 static inline int
4513 test_restrict (ccp restrict text)
4515 // See if C++-style comments work.
4516 // Iterate through items via the restricted pointer.
4517 // Also check for declarations in for loops.
4518 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4519 continue;
4520 return 0;
4523 // Check varargs and va_copy.
4524 static void
4525 test_varargs (const char *format, ...)
4527 va_list args;
4528 va_start (args, format);
4529 va_list args_copy;
4530 va_copy (args_copy, args);
4532 const char *str;
4533 int number;
4534 float fnumber;
4536 while (*format)
4538 switch (*format++)
4540 case 's': // string
4541 str = va_arg (args_copy, const char *);
4542 break;
4543 case 'd': // int
4544 number = va_arg (args_copy, int);
4545 break;
4546 case 'f': // float
4547 fnumber = va_arg (args_copy, double);
4548 break;
4549 default:
4550 break;
4553 va_end (args_copy);
4554 va_end (args);
4558 main ()
4561 // Check bool.
4562 _Bool success = false;
4564 // Check restrict.
4565 if (test_restrict ("String literal") == 0)
4566 success = true;
4567 char *restrict newvar = "Another string";
4569 // Check varargs.
4570 test_varargs ("s, d' f .", "string", 65, 34.234);
4571 test_varargs_macros ();
4573 // Check flexible array members.
4574 struct incomplete_array *ia =
4575 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4576 ia->datasize = 10;
4577 for (int i = 0; i < ia->datasize; ++i)
4578 ia->data[i] = i * 1.234;
4580 // Check named initializers.
4581 struct named_init ni = {
4582 .number = 34,
4583 .name = L"Test wide string",
4584 .average = 543.34343,
4587 ni.number = 58;
4589 int dynamic_array[ni.number];
4590 dynamic_array[ni.number - 1] = 543;
4592 // work around unused variable warnings
4593 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4594 || dynamic_array[ni.number - 1] != 543);
4597 return 0;
4599 _ACEOF
4600 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4602 CC="$ac_save_CC $ac_arg"
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_c99=$ac_arg
4606 rm -f core conftest.err conftest.$ac_objext
4607 test "x$ac_cv_prog_cc_c99" != "xno" && break
4608 done
4609 rm -f conftest.$ac_ext
4610 CC=$ac_save_CC
4613 # AC_CACHE_VAL
4614 case "x$ac_cv_prog_cc_c99" in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;;
4618 xno)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620 $as_echo "unsupported" >&6; } ;;
4622 CC="$CC $ac_cv_prog_cc_c99"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4624 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4625 esac
4626 if test "x$ac_cv_prog_cc_c99" != xno; then :
4627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4631 if ${ac_cv_prog_cc_c89+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 ac_cv_prog_cc_c89=no
4635 ac_save_CC=$CC
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <stdarg.h>
4639 #include <stdio.h>
4640 struct stat;
4641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4642 struct buf { int x; };
4643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4644 static char *e (p, i)
4645 char **p;
4646 int i;
4648 return p[i];
4650 static char *f (char * (*g) (char **, int), char **p, ...)
4652 char *s;
4653 va_list v;
4654 va_start (v,p);
4655 s = g (p, va_arg (v,int));
4656 va_end (v);
4657 return s;
4660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4661 function prototypes and stuff, but not '\xHH' hex character constants.
4662 These don't provoke an error unfortunately, instead are silently treated
4663 as 'x'. The following induces an error, until -std is added to get
4664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4665 array size at least. It's necessary to write '\x00'==0 to get something
4666 that's true only with -std. */
4667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4670 inside strings and character constants. */
4671 #define FOO(x) 'x'
4672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4674 int test (int i, double x);
4675 struct s1 {int (*f) (int a);};
4676 struct s2 {int (*f) (double a);};
4677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4678 int argc;
4679 char **argv;
4681 main ()
4683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4685 return 0;
4687 _ACEOF
4688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4691 CC="$ac_save_CC $ac_arg"
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_prog_cc_c89=$ac_arg
4695 rm -f core conftest.err conftest.$ac_objext
4696 test "x$ac_cv_prog_cc_c89" != "xno" && break
4697 done
4698 rm -f conftest.$ac_ext
4699 CC=$ac_save_CC
4702 # AC_CACHE_VAL
4703 case "x$ac_cv_prog_cc_c89" in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4706 $as_echo "none needed" >&6; } ;;
4707 xno)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4709 $as_echo "unsupported" >&6; } ;;
4711 CC="$CC $ac_cv_prog_cc_c89"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4714 esac
4715 if test "x$ac_cv_prog_cc_c89" != xno; then :
4716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4717 else
4718 ac_cv_prog_cc_stdc=no
4723 esac
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4725 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4726 if ${ac_cv_prog_cc_stdc+:} false; then :
4727 $as_echo_n "(cached) " >&6
4730 case $ac_cv_prog_cc_stdc in #(
4731 no) :
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;; #(
4734 '') :
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736 $as_echo "none needed" >&6; } ;; #(
4737 *) :
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4739 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4740 esac
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4744 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4745 set x ${MAKE-make}
4746 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4747 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 cat >conftest.make <<\_ACEOF
4751 SHELL = /bin/sh
4752 all:
4753 @echo '@@@%%%=$(MAKE)=@@@%%%'
4754 _ACEOF
4755 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4756 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4757 *@@@%%%=?*=@@@%%%*)
4758 eval ac_cv_prog_make_${ac_make}_set=yes;;
4760 eval ac_cv_prog_make_${ac_make}_set=no;;
4761 esac
4762 rm -f conftest.make
4764 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4766 $as_echo "yes" >&6; }
4767 SET_MAKE=
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 SET_MAKE="MAKE=${MAKE-make}"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4775 $as_echo_n "checking whether ln -s works... " >&6; }
4776 LN_S=$as_ln_s
4777 if test "$LN_S" = "ln -s"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779 $as_echo "yes" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4782 $as_echo "no, using $LN_S" >&6; }
4785 for ac_prog in gawk mawk nawk awk
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_AWK+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$AWK"; then
4795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_AWK="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 AWK=$ac_cv_prog_AWK
4815 if test -n "$AWK"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4817 $as_echo "$AWK" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$AWK" && break
4825 done
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_RANLIB+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 RANLIB=$ac_cv_prog_RANLIB
4856 if test -n "$RANLIB"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4858 $as_echo "$RANLIB" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4866 if test -z "$ac_cv_prog_RANLIB"; then
4867 ac_ct_RANLIB=$RANLIB
4868 # Extract the first word of "ranlib", so it can be a program name with args.
4869 set dummy ranlib; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_RANLIB"; then
4876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_ac_ct_RANLIB="ranlib"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4896 if test -n "$ac_ct_RANLIB"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4898 $as_echo "$ac_ct_RANLIB" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4904 if test "x$ac_ct_RANLIB" = x; then
4905 RANLIB=":"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 RANLIB=$ac_ct_RANLIB
4915 else
4916 RANLIB="$ac_cv_prog_RANLIB"
4919 case `pwd` in
4920 *\ * | *\ *)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4923 esac
4927 macro_version='2.4.2'
4928 macro_revision='1.3337'
4942 ltmain="$ac_aux_dir/ltmain.sh"
4944 # Backslashify metacharacters that are still active within
4945 # double-quoted strings.
4946 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4948 # Same as above, but do not quote variable references.
4949 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4951 # Sed substitution to delay expansion of an escaped shell variable in a
4952 # double_quote_subst'ed string.
4953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955 # Sed substitution to delay expansion of an escaped single quote.
4956 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4958 # Sed substitution to avoid accidental globbing in evaled expressions
4959 no_glob_subst='s/\*/\\\*/g'
4961 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4966 $as_echo_n "checking how to print strings... " >&6; }
4967 # Test print first, because it will be a builtin if present.
4968 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4969 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4970 ECHO='print -r --'
4971 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 ECHO='printf %s\n'
4973 else
4974 # Use this function as a fallback that always works.
4975 func_fallback_echo ()
4977 eval 'cat <<_LTECHO_EOF
4979 _LTECHO_EOF'
4981 ECHO='func_fallback_echo'
4984 # func_echo_all arg...
4985 # Invoke $ECHO with all args, space-separated.
4986 func_echo_all ()
4988 $ECHO ""
4991 case "$ECHO" in
4992 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4993 $as_echo "printf" >&6; } ;;
4994 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4995 $as_echo "print -r" >&6; } ;;
4996 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4997 $as_echo "cat" >&6; } ;;
4998 esac
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5014 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5015 if ${ac_cv_path_SED+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5019 for ac_i in 1 2 3 4 5 6 7; do
5020 ac_script="$ac_script$as_nl$ac_script"
5021 done
5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5023 { ac_script=; unset ac_script;}
5024 if test -z "$SED"; then
5025 ac_path_SED_found=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_prog in sed gsed; do
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5035 as_fn_executable_p "$ac_path_SED" || continue
5036 # Check for GNU ac_path_SED and select it if it is found.
5037 # Check for GNU $ac_path_SED
5038 case `"$ac_path_SED" --version 2>&1` in
5039 *GNU*)
5040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5042 ac_count=0
5043 $as_echo_n 0123456789 >"conftest.in"
5044 while :
5046 cat "conftest.in" "conftest.in" >"conftest.tmp"
5047 mv "conftest.tmp" "conftest.in"
5048 cp "conftest.in" "conftest.nl"
5049 $as_echo '' >> "conftest.nl"
5050 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5052 as_fn_arith $ac_count + 1 && ac_count=$as_val
5053 if test $ac_count -gt ${ac_path_SED_max-0}; then
5054 # Best one so far, save it but keep looking for a better one
5055 ac_cv_path_SED="$ac_path_SED"
5056 ac_path_SED_max=$ac_count
5058 # 10*(2^10) chars as input seems more than enough
5059 test $ac_count -gt 10 && break
5060 done
5061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 esac
5064 $ac_path_SED_found && break 3
5065 done
5066 done
5067 done
5068 IFS=$as_save_IFS
5069 if test -z "$ac_cv_path_SED"; then
5070 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5072 else
5073 ac_cv_path_SED=$SED
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5078 $as_echo "$ac_cv_path_SED" >&6; }
5079 SED="$ac_cv_path_SED"
5080 rm -f conftest.sed
5082 test -z "$SED" && SED=sed
5083 Xsed="$SED -e 1s/^X//"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if ${ac_cv_path_GREP+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 as_fn_executable_p "$ac_path_GREP" || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 else
5149 ac_cv_path_GREP=$GREP
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if ${ac_cv_path_EGREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_EGREP" || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 else
5215 ac_cv_path_EGREP=$EGREP
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5226 $as_echo_n "checking for fgrep... " >&6; }
5227 if ${ac_cv_path_FGREP+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5231 then ac_cv_path_FGREP="$GREP -F"
5232 else
5233 if test -z "$FGREP"; then
5234 ac_path_FGREP_found=false
5235 # Loop through the user's path and test for each of PROGNAME-LIST
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_prog in fgrep; do
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5244 as_fn_executable_p "$ac_path_FGREP" || continue
5245 # Check for GNU ac_path_FGREP and select it if it is found.
5246 # Check for GNU $ac_path_FGREP
5247 case `"$ac_path_FGREP" --version 2>&1` in
5248 *GNU*)
5249 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5251 ac_count=0
5252 $as_echo_n 0123456789 >"conftest.in"
5253 while :
5255 cat "conftest.in" "conftest.in" >"conftest.tmp"
5256 mv "conftest.tmp" "conftest.in"
5257 cp "conftest.in" "conftest.nl"
5258 $as_echo 'FGREP' >> "conftest.nl"
5259 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5261 as_fn_arith $ac_count + 1 && ac_count=$as_val
5262 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5263 # Best one so far, save it but keep looking for a better one
5264 ac_cv_path_FGREP="$ac_path_FGREP"
5265 ac_path_FGREP_max=$ac_count
5267 # 10*(2^10) chars as input seems more than enough
5268 test $ac_count -gt 10 && break
5269 done
5270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5271 esac
5273 $ac_path_FGREP_found && break 3
5274 done
5275 done
5276 done
5277 IFS=$as_save_IFS
5278 if test -z "$ac_cv_path_FGREP"; then
5279 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 else
5282 ac_cv_path_FGREP=$FGREP
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5288 $as_echo "$ac_cv_path_FGREP" >&6; }
5289 FGREP="$ac_cv_path_FGREP"
5292 test -z "$GREP" && GREP=grep
5312 # Check whether --with-gnu-ld was given.
5313 if test "${with_gnu_ld+set}" = set; then :
5314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5315 else
5316 with_gnu_ld=no
5319 ac_prog=ld
5320 if test "$GCC" = yes; then
5321 # Check if gcc -print-prog-name=ld gives a path.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5323 $as_echo_n "checking for ld used by $CC... " >&6; }
5324 case $host in
5325 *-*-mingw*)
5326 # gcc leaves a trailing carriage return which upsets mingw
5327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5330 esac
5331 case $ac_prog in
5332 # Accept absolute paths.
5333 [\\/]* | ?:[\\/]*)
5334 re_direlt='/[^/][^/]*/\.\./'
5335 # Canonicalize the pathname of ld
5336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5339 done
5340 test -z "$LD" && LD="$ac_prog"
5343 # If it fails, then pretend we aren't using GCC.
5344 ac_prog=ld
5347 # If it is relative, then search for the first ld in PATH.
5348 with_gnu_ld=unknown
5350 esac
5351 elif test "$with_gnu_ld" = yes; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5353 $as_echo_n "checking for GNU ld... " >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5356 $as_echo_n "checking for non-GNU ld... " >&6; }
5358 if ${lt_cv_path_LD+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -z "$LD"; then
5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363 for ac_dir in $PATH; do
5364 IFS="$lt_save_ifs"
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5367 lt_cv_path_LD="$ac_dir/$ac_prog"
5368 # Check to see if the program is GNU ld. I'd rather use --version,
5369 # but apparently some variants of GNU ld only accept -v.
5370 # Break only if it was the GNU/non-GNU ld that we prefer.
5371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 test "$with_gnu_ld" != no && break
5376 test "$with_gnu_ld" != yes && break
5378 esac
5380 done
5381 IFS="$lt_save_ifs"
5382 else
5383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5387 LD="$lt_cv_path_LD"
5388 if test -n "$LD"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5390 $as_echo "$LD" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5395 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5398 if ${lt_cv_prog_gnu_ld+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5402 case `$LD -v 2>&1 </dev/null` in
5403 *GNU* | *'with BFD'*)
5404 lt_cv_prog_gnu_ld=yes
5407 lt_cv_prog_gnu_ld=no
5409 esac
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if ${lt_cv_path_NM+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$NM"; then
5429 # Let the user override the test.
5430 lt_cv_path_NM="$NM"
5431 else
5432 lt_nm_to_check="${ac_tool_prefix}nm"
5433 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5434 lt_nm_to_check="$lt_nm_to_check nm"
5436 for lt_tmp_nm in $lt_nm_to_check; do
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5439 IFS="$lt_save_ifs"
5440 test -z "$ac_dir" && ac_dir=.
5441 tmp_nm="$ac_dir/$lt_tmp_nm"
5442 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5443 # Check to see if the nm accepts a BSD-compat flag.
5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445 # nm: unknown option "B" ignored
5446 # Tru64's nm complains that /dev/null is an invalid object file
5447 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5448 */dev/null* | *'Invalid file or object type'*)
5449 lt_cv_path_NM="$tmp_nm -B"
5450 break
5453 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5454 */dev/null*)
5455 lt_cv_path_NM="$tmp_nm -p"
5456 break
5459 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5460 continue # so that we can try to find one that supports BSD flags
5462 esac
5464 esac
5466 done
5467 IFS="$lt_save_ifs"
5468 done
5469 : ${lt_cv_path_NM=no}
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5473 $as_echo "$lt_cv_path_NM" >&6; }
5474 if test "$lt_cv_path_NM" != "no"; then
5475 NM="$lt_cv_path_NM"
5476 else
5477 # Didn't find any BSD compatible name lister, look for dumpbin.
5478 if test -n "$DUMPBIN"; then :
5479 # Let the user override the test.
5480 else
5481 if test -n "$ac_tool_prefix"; then
5482 for ac_prog in dumpbin "link -dump"
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_DUMPBIN+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$DUMPBIN"; then
5492 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 DUMPBIN=$ac_cv_prog_DUMPBIN
5512 if test -n "$DUMPBIN"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5514 $as_echo "$DUMPBIN" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 test -n "$DUMPBIN" && break
5522 done
5524 if test -z "$DUMPBIN"; then
5525 ac_ct_DUMPBIN=$DUMPBIN
5526 for ac_prog in dumpbin "link -dump"
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_DUMPBIN"; then
5536 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5556 if test -n "$ac_ct_DUMPBIN"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5558 $as_echo "$ac_ct_DUMPBIN" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 test -n "$ac_ct_DUMPBIN" && break
5566 done
5568 if test "x$ac_ct_DUMPBIN" = x; then
5569 DUMPBIN=":"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 DUMPBIN=$ac_ct_DUMPBIN
5581 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5582 *COFF*)
5583 DUMPBIN="$DUMPBIN -symbols"
5586 DUMPBIN=:
5588 esac
5591 if test "$DUMPBIN" != ":"; then
5592 NM="$DUMPBIN"
5595 test -z "$NM" && NM=nm
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5603 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5604 if ${lt_cv_nm_interface+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_nm_interface="BSD nm"
5608 echo "int some_variable = 0;" > conftest.$ac_ext
5609 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5610 (eval "$ac_compile" 2>conftest.err)
5611 cat conftest.err >&5
5612 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5613 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5614 cat conftest.err >&5
5615 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5616 cat conftest.out >&5
5617 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5618 lt_cv_nm_interface="MS dumpbin"
5620 rm -f conftest*
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5623 $as_echo "$lt_cv_nm_interface" >&6; }
5625 # find the maximum length of command line arguments
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628 if ${lt_cv_sys_max_cmd_len+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5632 teststring="ABCD"
5634 case $build_os in
5635 msdosdjgpp*)
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5643 gnu*)
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5661 mint*)
5662 # On MiNT this can take a long time and run out of memory.
5663 lt_cv_sys_max_cmd_len=8192;
5666 amigaos*)
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678 else
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 interix*)
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5691 os2*)
5692 # The test takes a long time on OS/2.
5693 lt_cv_sys_max_cmd_len=8192
5696 osf*)
5697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5699 # nice to cause kernel panics so lets avoid the loop below.
5700 # First set a reasonable default.
5701 lt_cv_sys_max_cmd_len=16384
5703 if test -x /sbin/sysconfig; then
5704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5706 esac
5709 sco3.2v5*)
5710 lt_cv_sys_max_cmd_len=102400
5712 sysv5* | sco5v6* | sysv4.2uw2*)
5713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5714 if test -n "$kargmax"; then
5715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5716 else
5717 lt_cv_sys_max_cmd_len=32768
5721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5722 if test -n "$lt_cv_sys_max_cmd_len"; then
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5725 else
5726 # Make teststring a little bigger before we do anything with it.
5727 # a 1K string should be a reasonable start.
5728 for i in 1 2 3 4 5 6 7 8 ; do
5729 teststring=$teststring$teststring
5730 done
5731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5732 # If test is not a shell built-in, we'll probably end up computing a
5733 # maximum length that is only half of the actual maximum length, but
5734 # we can't tell.
5735 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5737 test $i != 17 # 1/2 MB should be enough
5739 i=`expr $i + 1`
5740 teststring=$teststring$teststring
5741 done
5742 # Only check the string length outside the loop.
5743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5744 teststring=
5745 # Add a significant safety factor because C++ compilers can tack on
5746 # massive amounts of additional arguments before passing them to the
5747 # linker. It appears as though 1/2 is a usable value.
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5751 esac
5755 if test -n $lt_cv_sys_max_cmd_len ; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5760 $as_echo "none" >&6; }
5762 max_cmd_len=$lt_cv_sys_max_cmd_len
5769 : ${CP="cp -f"}
5770 : ${MV="mv -f"}
5771 : ${RM="rm -f"}
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5775 # Try some XSI features
5776 xsi_shell=no
5777 ( _lt_dummy="a/b/c"
5778 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5779 = c,a/b,b/c, \
5780 && eval 'test $(( 1 + 1 )) -eq 2 \
5781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5782 && xsi_shell=yes
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5784 $as_echo "$xsi_shell" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5789 lt_shell_append=no
5790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5791 >/dev/null 2>&1 \
5792 && lt_shell_append=yes
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5794 $as_echo "$lt_shell_append" >&6; }
5797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5798 lt_unset=unset
5799 else
5800 lt_unset=false
5807 # test EBCDIC or ASCII
5808 case `echo X|tr X '\101'` in
5809 A) # ASCII based system
5810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5811 lt_SP2NL='tr \040 \012'
5812 lt_NL2SP='tr \015\012 \040\040'
5814 *) # EBCDIC based system
5815 lt_SP2NL='tr \100 \n'
5816 lt_NL2SP='tr \r\n \100\100'
5818 esac
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5829 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5830 if ${lt_cv_to_host_file_cmd+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 case $host in
5834 *-*-mingw* )
5835 case $build in
5836 *-*-mingw* ) # actually msys
5837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5839 *-*-cygwin* )
5840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5842 * ) # otherwise, assume *nix
5843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5845 esac
5847 *-*-cygwin* )
5848 case $build in
5849 *-*-mingw* ) # actually msys
5850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5852 *-*-cygwin* )
5853 lt_cv_to_host_file_cmd=func_convert_file_noop
5855 * ) # otherwise, assume *nix
5856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5858 esac
5860 * ) # unhandled hosts (and "normal" native builds)
5861 lt_cv_to_host_file_cmd=func_convert_file_noop
5863 esac
5867 to_host_file_cmd=$lt_cv_to_host_file_cmd
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5869 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5876 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5877 if ${lt_cv_to_tool_file_cmd+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 #assume ordinary cross tools, or native build.
5881 lt_cv_to_tool_file_cmd=func_convert_file_noop
5882 case $host in
5883 *-*-mingw* )
5884 case $build in
5885 *-*-mingw* ) # actually msys
5886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5888 esac
5890 esac
5894 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5896 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5903 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5904 if ${lt_cv_ld_reload_flag+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 lt_cv_ld_reload_flag='-r'
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5910 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5911 reload_flag=$lt_cv_ld_reload_flag
5912 case $reload_flag in
5913 "" | " "*) ;;
5914 *) reload_flag=" $reload_flag" ;;
5915 esac
5916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5917 case $host_os in
5918 cygwin* | mingw* | pw32* | cegcc*)
5919 if test "$GCC" != yes; then
5920 reload_cmds=false
5923 darwin*)
5924 if test "$GCC" = yes; then
5925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5926 else
5927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930 esac
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_OBJDUMP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$OBJDUMP"; then
5949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 OBJDUMP=$ac_cv_prog_OBJDUMP
5969 if test -n "$OBJDUMP"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971 $as_echo "$OBJDUMP" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5979 if test -z "$ac_cv_prog_OBJDUMP"; then
5980 ac_ct_OBJDUMP=$OBJDUMP
5981 # Extract the first word of "objdump", so it can be a program name with args.
5982 set dummy objdump; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 $as_echo "$ac_ct_OBJDUMP" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6017 if test "x$ac_ct_OBJDUMP" = x; then
6018 OBJDUMP="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 OBJDUMP=$ac_ct_OBJDUMP
6028 else
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6043 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6044 if ${lt_cv_deplibs_check_method+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 lt_cv_file_magic_cmd='$MAGIC_CMD'
6048 lt_cv_file_magic_test_file=
6049 lt_cv_deplibs_check_method='unknown'
6050 # Need to set the preceding variable on all platforms that support
6051 # interlibrary dependencies.
6052 # 'none' -- dependencies not supported.
6053 # `unknown' -- same as none, but documents that we really don't know.
6054 # 'pass_all' -- all dependencies passed with no checks.
6055 # 'test_compile' -- check by making test program.
6056 # 'file_magic [[regex]]' -- check by looking for files in library path
6057 # which responds to the $file_magic_cmd with a given extended regex.
6058 # If you have `file' or equivalent on your system and you're not sure
6059 # whether `pass_all' will *always* work, you probably want this one.
6061 case $host_os in
6062 aix[4-9]*)
6063 lt_cv_deplibs_check_method=pass_all
6066 beos*)
6067 lt_cv_deplibs_check_method=pass_all
6070 bsdi[45]*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6072 lt_cv_file_magic_cmd='/usr/bin/file -L'
6073 lt_cv_file_magic_test_file=/shlib/libc.so
6076 cygwin*)
6077 # func_win32_libid is a shell function defined in ltmain.sh
6078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6079 lt_cv_file_magic_cmd='func_win32_libid'
6082 mingw* | pw32*)
6083 # Base MSYS/MinGW do not provide the 'file' command needed by
6084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6085 # unless we find 'file', for example because we are cross-compiling.
6086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 # Keep this pattern in sync with the one in func_win32_libid.
6092 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6093 lt_cv_file_magic_cmd='$OBJDUMP -f'
6097 cegcc*)
6098 # use the weaker test based on 'objdump'. See mingw*.
6099 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6103 darwin* | rhapsody*)
6104 lt_cv_deplibs_check_method=pass_all
6107 freebsd* | dragonfly*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 case $host_cpu in
6110 i*86 )
6111 # Not sure whether the presence of OpenBSD here was a mistake.
6112 # Let's accept both of them until this is cleared up.
6113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6114 lt_cv_file_magic_cmd=/usr/bin/file
6115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117 esac
6118 else
6119 lt_cv_deplibs_check_method=pass_all
6123 gnu*)
6124 lt_cv_deplibs_check_method=pass_all
6127 haiku*)
6128 lt_cv_deplibs_check_method=pass_all
6131 hpux10.20* | hpux11*)
6132 lt_cv_file_magic_cmd=/usr/bin/file
6133 case $host_cpu in
6134 ia64*)
6135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6138 hppa*64*)
6139 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]'
6140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6144 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6146 esac
6149 interix[3-9]*)
6150 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6154 irix5* | irix6* | nonstopux*)
6155 case $LD in
6156 *-32|*"-32 ") libmagic=32-bit;;
6157 *-n32|*"-n32 ") libmagic=N32;;
6158 *-64|*"-64 ") libmagic=64-bit;;
6159 *) libmagic=never-match;;
6160 esac
6161 lt_cv_deplibs_check_method=pass_all
6164 # This must be glibc/ELF.
6165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6166 lt_cv_deplibs_check_method=pass_all
6169 netbsd*)
6170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6172 else
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6177 newos6*)
6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6179 lt_cv_file_magic_cmd=/usr/bin/file
6180 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6183 *nto* | *qnx*)
6184 lt_cv_deplibs_check_method=pass_all
6187 openbsd*)
6188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6195 osf3* | osf4* | osf5*)
6196 lt_cv_deplibs_check_method=pass_all
6199 rdos*)
6200 lt_cv_deplibs_check_method=pass_all
6203 solaris*)
6204 lt_cv_deplibs_check_method=pass_all
6207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6208 lt_cv_deplibs_check_method=pass_all
6211 sysv4 | sysv4.3*)
6212 case $host_vendor in
6213 motorola)
6214 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]'
6215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6217 ncr)
6218 lt_cv_deplibs_check_method=pass_all
6220 sequent)
6221 lt_cv_file_magic_cmd='/bin/file'
6222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6224 sni)
6225 lt_cv_file_magic_cmd='/bin/file'
6226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6227 lt_cv_file_magic_test_file=/lib/libc.so
6229 siemens)
6230 lt_cv_deplibs_check_method=pass_all
6233 lt_cv_deplibs_check_method=pass_all
6235 esac
6238 tpf*)
6239 lt_cv_deplibs_check_method=pass_all
6241 esac
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6245 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6247 file_magic_glob=
6248 want_nocaseglob=no
6249 if test "$build" = "$host"; then
6250 case $host_os in
6251 mingw* | pw32*)
6252 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6253 want_nocaseglob=yes
6254 else
6255 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6258 esac
6261 file_magic_cmd=$lt_cv_file_magic_cmd
6262 deplibs_check_method=$lt_cv_deplibs_check_method
6263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_DLLTOOL+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$DLLTOOL"; then
6295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 DLLTOOL=$ac_cv_prog_DLLTOOL
6315 if test -n "$DLLTOOL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6317 $as_echo "$DLLTOOL" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_DLLTOOL"; then
6326 ac_ct_DLLTOOL=$DLLTOOL
6327 # Extract the first word of "dlltool", so it can be a program name with args.
6328 set dummy dlltool; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_DLLTOOL"; then
6335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6355 if test -n "$ac_ct_DLLTOOL"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6357 $as_echo "$ac_ct_DLLTOOL" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_DLLTOOL" = x; then
6364 DLLTOOL="false"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 DLLTOOL=$ac_ct_DLLTOOL
6374 else
6375 DLLTOOL="$ac_cv_prog_DLLTOOL"
6378 test -z "$DLLTOOL" && DLLTOOL=dlltool
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6390 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6391 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_sharedlib_from_linklib_cmd='unknown'
6396 case $host_os in
6397 cygwin* | mingw* | pw32* | cegcc*)
6398 # two different shell functions defined in ltmain.sh
6399 # decide which to use based on capabilities of $DLLTOOL
6400 case `$DLLTOOL --help 2>&1` in
6401 *--identify-strict*)
6402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6405 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6407 esac
6410 # fallback: assume linklib IS sharedlib
6411 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6413 esac
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6417 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6418 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6419 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6428 if test -n "$ac_tool_prefix"; then
6429 for ac_prog in ar
6431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_AR+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$AR"; then
6439 ac_cv_prog_AR="$AR" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 AR=$ac_cv_prog_AR
6459 if test -n "$AR"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6461 $as_echo "$AR" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$AR" && break
6469 done
6471 if test -z "$AR"; then
6472 ac_ct_AR=$AR
6473 for ac_prog in ar
6475 # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$ac_ct_AR"; then
6483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_AR="$ac_prog"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6503 if test -n "$ac_ct_AR"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6505 $as_echo "$ac_ct_AR" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6512 test -n "$ac_ct_AR" && break
6513 done
6515 if test "x$ac_ct_AR" = x; then
6516 AR="false"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 AR=$ac_ct_AR
6528 : ${AR=ar}
6529 : ${AR_FLAGS=cru}
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6542 $as_echo_n "checking for archiver @FILE support... " >&6; }
6543 if ${lt_cv_ar_at_file+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 lt_cv_ar_at_file=no
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 main ()
6555 return 0;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 echo conftest.$ac_objext > conftest.lst
6560 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6562 (eval $lt_ar_try) 2>&5
6563 ac_status=$?
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566 if test "$ac_status" -eq 0; then
6567 # Ensure the archiver fails upon bogus file names.
6568 rm -f conftest.$ac_objext libconftest.a
6569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6570 (eval $lt_ar_try) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574 if test "$ac_status" -ne 0; then
6575 lt_cv_ar_at_file=@
6578 rm -f conftest.* libconftest.a
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6585 $as_echo "$lt_cv_ar_at_file" >&6; }
6587 if test "x$lt_cv_ar_at_file" = xno; then
6588 archiver_list_spec=
6589 else
6590 archiver_list_spec=$lt_cv_ar_at_file
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}strip; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_STRIP+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$STRIP"; then
6608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6621 done
6622 done
6623 IFS=$as_save_IFS
6627 STRIP=$ac_cv_prog_STRIP
6628 if test -n "$STRIP"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6630 $as_echo "$STRIP" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test -z "$ac_cv_prog_STRIP"; then
6639 ac_ct_STRIP=$STRIP
6640 # Extract the first word of "strip", so it can be a program name with args.
6641 set dummy strip; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_STRIP"; then
6648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_ac_ct_STRIP="strip"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6668 if test -n "$ac_ct_STRIP"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6670 $as_echo "$ac_ct_STRIP" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6676 if test "x$ac_ct_STRIP" = x; then
6677 STRIP=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 STRIP=$ac_ct_STRIP
6687 else
6688 STRIP="$ac_cv_prog_STRIP"
6691 test -z "$STRIP" && STRIP=:
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_RANLIB+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$RANLIB"; then
6707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 RANLIB=$ac_cv_prog_RANLIB
6727 if test -n "$RANLIB"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6729 $as_echo "$RANLIB" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_RANLIB"; then
6738 ac_ct_RANLIB=$RANLIB
6739 # Extract the first word of "ranlib", so it can be a program name with args.
6740 set dummy ranlib; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_RANLIB"; then
6747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_RANLIB="ranlib"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6767 if test -n "$ac_ct_RANLIB"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6769 $as_echo "$ac_ct_RANLIB" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_RANLIB" = x; then
6776 RANLIB=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 RANLIB=$ac_ct_RANLIB
6786 else
6787 RANLIB="$ac_cv_prog_RANLIB"
6790 test -z "$RANLIB" && RANLIB=:
6797 # Determine commands to create old-style static archives.
6798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6799 old_postinstall_cmds='chmod 644 $oldlib'
6800 old_postuninstall_cmds=
6802 if test -n "$RANLIB"; then
6803 case $host_os in
6804 openbsd*)
6805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6810 esac
6811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6814 case $host_os in
6815 darwin*)
6816 lock_old_archive_extraction=yes ;;
6818 lock_old_archive_extraction=no ;;
6819 esac
6859 # If no C compiler was specified, use CC.
6860 LTCC=${LTCC-"$CC"}
6862 # If no C compiler flags were specified, use CFLAGS.
6863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6865 # Allow CC to be a program name with arguments.
6866 compiler=$CC
6869 # Check for command to grab the raw symbol name followed by C symbol from nm.
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6871 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6872 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6876 # These are sane defaults that work on at least a few old systems.
6877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6879 # Character class describing NM global symbol codes.
6880 symcode='[BCDEGRST]'
6882 # Regexp to match symbols that can be accessed directly from C.
6883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6885 # Define system-specific variables.
6886 case $host_os in
6887 aix*)
6888 symcode='[BCDT]'
6890 cygwin* | mingw* | pw32* | cegcc*)
6891 symcode='[ABCDGISTW]'
6893 hpux*)
6894 if test "$host_cpu" = ia64; then
6895 symcode='[ABCDEGRST]'
6898 irix* | nonstopux*)
6899 symcode='[BCDEGRST]'
6901 osf*)
6902 symcode='[BCDEGQRST]'
6904 solaris*)
6905 symcode='[BDRT]'
6907 sco3.2v5*)
6908 symcode='[DT]'
6910 sysv4.2uw2*)
6911 symcode='[DT]'
6913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6914 symcode='[ABDT]'
6916 sysv4)
6917 symcode='[DFNSTU]'
6919 esac
6921 # If we're using GNU nm, then use its standard symbol codes.
6922 case `$NM -V 2>&1` in
6923 *GNU* | *'with BFD'*)
6924 symcode='[ABCDGIRSTW]' ;;
6925 esac
6927 # Transform an extracted symbol line into a proper C declaration.
6928 # Some systems (esp. on ia64) link data and code symbols differently,
6929 # so use this general approach.
6930 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6932 # Transform an extracted symbol line into symbol name and symbol address
6933 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6936 # Handle CRLF in mingw tool chain
6937 opt_cr=
6938 case $build_os in
6939 mingw*)
6940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6942 esac
6944 # Try without a prefix underscore, then with it.
6945 for ac_symprfx in "" "_"; do
6947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6948 symxfrm="\\1 $ac_symprfx\\2 \\2"
6950 # Write the raw and C identifiers.
6951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952 # Fake it for dumpbin and say T for any non-static function
6953 # and D for any global variable.
6954 # Also find C++ and __fastcall symbols from MSVC++,
6955 # which start with @ or ?.
6956 lt_cv_sys_global_symbol_pipe="$AWK '"\
6957 " {last_section=section; section=\$ 3};"\
6958 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6959 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6960 " \$ 0!~/External *\|/{next};"\
6961 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6962 " {if(hide[section]) next};"\
6963 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6964 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6965 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6966 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6967 " ' prfx=^$ac_symprfx"
6968 else
6969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6971 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6973 # Check to see that the pipe works correctly.
6974 pipe_works=no
6976 rm -f conftest*
6977 cat > conftest.$ac_ext <<_LT_EOF
6978 #ifdef __cplusplus
6979 extern "C" {
6980 #endif
6981 char nm_test_var;
6982 void nm_test_func(void);
6983 void nm_test_func(void){}
6984 #ifdef __cplusplus
6986 #endif
6987 int main(){nm_test_var='a';nm_test_func();return(0);}
6988 _LT_EOF
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 # Now try to grab the symbols.
6996 nlist=conftest.nm
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6998 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6999 ac_status=$?
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; } && test -s "$nlist"; then
7002 # Try sorting and uniquifying the output.
7003 if sort "$nlist" | uniq > "$nlist"T; then
7004 mv -f "$nlist"T "$nlist"
7005 else
7006 rm -f "$nlist"T
7009 # Make sure that we snagged all the symbols we need.
7010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7012 cat <<_LT_EOF > conftest.$ac_ext
7013 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7014 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7015 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7016 relocations are performed -- see ld's documentation on pseudo-relocs. */
7017 # define LT_DLSYM_CONST
7018 #elif defined(__osf__)
7019 /* This system does not cope well with relocations in const data. */
7020 # define LT_DLSYM_CONST
7021 #else
7022 # define LT_DLSYM_CONST const
7023 #endif
7025 #ifdef __cplusplus
7026 extern "C" {
7027 #endif
7029 _LT_EOF
7030 # Now generate the symbol file.
7031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033 cat <<_LT_EOF >> conftest.$ac_ext
7035 /* The mapping between symbol names and symbols. */
7036 LT_DLSYM_CONST struct {
7037 const char *name;
7038 void *address;
7040 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 { "@PROGRAM@", (void *) 0 },
7043 _LT_EOF
7044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7045 cat <<\_LT_EOF >> conftest.$ac_ext
7046 {0, (void *) 0}
7049 /* This works around a problem in FreeBSD linker */
7050 #ifdef FREEBSD_WORKAROUND
7051 static const void *lt_preloaded_setup() {
7052 return lt__PROGRAM__LTX_preloaded_symbols;
7054 #endif
7056 #ifdef __cplusplus
7058 #endif
7059 _LT_EOF
7060 # Now try linking the two files.
7061 mv conftest.$ac_objext conftstm.$ac_objext
7062 lt_globsym_save_LIBS=$LIBS
7063 lt_globsym_save_CFLAGS=$CFLAGS
7064 LIBS="conftstm.$ac_objext"
7065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7067 (eval $ac_link) 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7071 pipe_works=yes
7073 LIBS=$lt_globsym_save_LIBS
7074 CFLAGS=$lt_globsym_save_CFLAGS
7075 else
7076 echo "cannot find nm_test_func in $nlist" >&5
7078 else
7079 echo "cannot find nm_test_var in $nlist" >&5
7081 else
7082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084 else
7085 echo "$progname: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7088 rm -rf conftest* conftst*
7090 # Do not use the global_symbol_pipe unless it works.
7091 if test "$pipe_works" = yes; then
7092 break
7093 else
7094 lt_cv_sys_global_symbol_pipe=
7096 done
7100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7101 lt_cv_sys_global_symbol_to_cdecl=
7103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7105 $as_echo "failed" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7108 $as_echo "ok" >&6; }
7111 # Response file support.
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 nm_file_list_spec='@'
7114 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7115 nm_file_list_spec='@'
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7145 $as_echo_n "checking for sysroot... " >&6; }
7147 # Check whether --with-sysroot was given.
7148 if test "${with_sysroot+set}" = set; then :
7149 withval=$with_sysroot;
7150 else
7151 with_sysroot=no
7155 lt_sysroot=
7156 case ${with_sysroot} in #(
7157 yes)
7158 if test "$GCC" = yes; then
7159 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7161 ;; #(
7163 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7164 ;; #(
7165 no|'')
7166 ;; #(
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7169 $as_echo "${with_sysroot}" >&6; }
7170 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7172 esac
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7175 $as_echo "${lt_sysroot:-no}" >&6; }
7181 # Check whether --enable-libtool-lock was given.
7182 if test "${enable_libtool_lock+set}" = set; then :
7183 enableval=$enable_libtool_lock;
7186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188 # Some flags need to be propagated to the compiler or linker for good
7189 # libtool support.
7190 case $host in
7191 ia64-*-hpux*)
7192 # Find out which ABI we are using.
7193 echo 'int i;' > conftest.$ac_ext
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7195 (eval $ac_compile) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; }; then
7199 case `/usr/bin/file conftest.$ac_objext` in
7200 *ELF-32*)
7201 HPUX_IA64_MODE="32"
7203 *ELF-64*)
7204 HPUX_IA64_MODE="64"
7206 esac
7208 rm -rf conftest*
7210 *-*-irix6*)
7211 # Find out which ABI we are using.
7212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 if test "$lt_cv_prog_gnu_ld" = yes; then
7219 case `/usr/bin/file conftest.$ac_objext` in
7220 *32-bit*)
7221 LD="${LD-ld} -melf32bsmip"
7223 *N32*)
7224 LD="${LD-ld} -melf32bmipn32"
7226 *64-bit*)
7227 LD="${LD-ld} -melf64bmip"
7229 esac
7230 else
7231 case `/usr/bin/file conftest.$ac_objext` in
7232 *32-bit*)
7233 LD="${LD-ld} -32"
7235 *N32*)
7236 LD="${LD-ld} -n32"
7238 *64-bit*)
7239 LD="${LD-ld} -64"
7241 esac
7244 rm -rf conftest*
7247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7249 # Find out which ABI we are using.
7250 echo 'int i;' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 case `/usr/bin/file conftest.o` in
7257 *32-bit*)
7258 case $host in
7259 x86_64-*kfreebsd*-gnu)
7260 LD="${LD-ld} -m elf_i386_fbsd"
7262 x86_64-*linux*)
7263 LD="${LD-ld} -m elf_i386"
7265 powerpc64le-*linux*)
7266 LD="${LD-ld} -m elf32lppclinux"
7268 powerpc64-*linux*)
7269 LD="${LD-ld} -m elf32ppclinux"
7271 s390x-*linux*)
7272 LD="${LD-ld} -m elf_s390"
7274 sparc64-*linux*)
7275 LD="${LD-ld} -m elf32_sparc"
7277 esac
7279 *64-bit*)
7280 case $host in
7281 x86_64-*kfreebsd*-gnu)
7282 LD="${LD-ld} -m elf_x86_64_fbsd"
7284 x86_64-*linux*)
7285 LD="${LD-ld} -m elf_x86_64"
7287 powerpcle-*linux*)
7288 LD="${LD-ld} -m elf64lppc"
7290 powerpc-*linux*)
7291 LD="${LD-ld} -m elf64ppc"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390"
7296 sparc*-*linux*)
7297 LD="${LD-ld} -m elf64_sparc"
7299 esac
7301 esac
7303 rm -rf conftest*
7306 *-*-sco3.2v5*)
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7311 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7312 if ${lt_cv_cc_needs_belf+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 lt_cv_cc_needs_belf=yes
7334 else
7335 lt_cv_cc_needs_belf=no
7337 rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7347 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7348 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7350 CFLAGS="$SAVE_CFLAGS"
7353 *-*solaris*)
7354 # Find out which ABI we are using.
7355 echo 'int i;' > conftest.$ac_ext
7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; }; then
7361 case `/usr/bin/file conftest.o` in
7362 *64-bit*)
7363 case $lt_cv_prog_gnu_ld in
7364 yes*)
7365 case $host in
7366 i?86-*-solaris*)
7367 LD="${LD-ld} -m elf_x86_64"
7369 sparc*-*-solaris*)
7370 LD="${LD-ld} -m elf64_sparc"
7372 esac
7373 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7374 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7375 LD="${LD-ld}_sol2"
7379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7380 LD="${LD-ld} -64"
7383 esac
7385 esac
7387 rm -rf conftest*
7389 esac
7391 need_locks="$enable_libtool_lock"
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}mt; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$MANIFEST_TOOL"; then
7402 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7415 done
7416 done
7417 IFS=$as_save_IFS
7421 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7422 if test -n "$MANIFEST_TOOL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7424 $as_echo "$MANIFEST_TOOL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7432 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7433 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7434 # Extract the first word of "mt", so it can be a program name with args.
7435 set dummy mt; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_MANIFEST_TOOL"; then
7442 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7462 if test -n "$ac_ct_MANIFEST_TOOL"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7464 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7470 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7471 MANIFEST_TOOL=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7481 else
7482 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7485 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7487 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7488 if ${lt_cv_path_mainfest_tool+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 lt_cv_path_mainfest_tool=no
7492 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7493 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7494 cat conftest.err >&5
7495 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7496 lt_cv_path_mainfest_tool=yes
7498 rm -f conftest*
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7501 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7502 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7503 MANIFEST_TOOL=:
7511 case $host_os in
7512 rhapsody* | darwin*)
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$DSYMUTIL"; then
7522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7542 if test -n "$DSYMUTIL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7544 $as_echo "$DSYMUTIL" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_DSYMUTIL"; then
7553 ac_ct_DSYMUTIL=$DSYMUTIL
7554 # Extract the first word of "dsymutil", so it can be a program name with args.
7555 set dummy dsymutil; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_DSYMUTIL"; then
7562 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7582 if test -n "$ac_ct_DSYMUTIL"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7584 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_DSYMUTIL" = x; then
7591 DSYMUTIL=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 DSYMUTIL=$ac_ct_DSYMUTIL
7601 else
7602 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_NMEDIT+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$NMEDIT"; then
7614 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7633 NMEDIT=$ac_cv_prog_NMEDIT
7634 if test -n "$NMEDIT"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7636 $as_echo "$NMEDIT" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7644 if test -z "$ac_cv_prog_NMEDIT"; then
7645 ac_ct_NMEDIT=$NMEDIT
7646 # Extract the first word of "nmedit", so it can be a program name with args.
7647 set dummy nmedit; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_NMEDIT"; then
7654 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7667 done
7668 done
7669 IFS=$as_save_IFS
7673 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7674 if test -n "$ac_ct_NMEDIT"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7676 $as_echo "$ac_ct_NMEDIT" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7682 if test "x$ac_ct_NMEDIT" = x; then
7683 NMEDIT=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 NMEDIT=$ac_ct_NMEDIT
7693 else
7694 NMEDIT="$ac_cv_prog_NMEDIT"
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_LIPO+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$LIPO"; then
7706 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 LIPO=$ac_cv_prog_LIPO
7726 if test -n "$LIPO"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7728 $as_echo "$LIPO" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7736 if test -z "$ac_cv_prog_LIPO"; then
7737 ac_ct_LIPO=$LIPO
7738 # Extract the first word of "lipo", so it can be a program name with args.
7739 set dummy lipo; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$ac_ct_LIPO"; then
7746 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_ac_ct_LIPO="lipo"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7759 done
7760 done
7761 IFS=$as_save_IFS
7765 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7766 if test -n "$ac_ct_LIPO"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7768 $as_echo "$ac_ct_LIPO" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7774 if test "x$ac_ct_LIPO" = x; then
7775 LIPO=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 LIPO=$ac_ct_LIPO
7785 else
7786 LIPO="$ac_cv_prog_LIPO"
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}otool; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_OTOOL+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$OTOOL"; then
7798 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 OTOOL=$ac_cv_prog_OTOOL
7818 if test -n "$OTOOL"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7820 $as_echo "$OTOOL" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7828 if test -z "$ac_cv_prog_OTOOL"; then
7829 ac_ct_OTOOL=$OTOOL
7830 # Extract the first word of "otool", so it can be a program name with args.
7831 set dummy otool; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_OTOOL"; then
7838 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_ac_ct_OTOOL="otool"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7858 if test -n "$ac_ct_OTOOL"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7860 $as_echo "$ac_ct_OTOOL" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7866 if test "x$ac_ct_OTOOL" = x; then
7867 OTOOL=":"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 OTOOL=$ac_ct_OTOOL
7877 else
7878 OTOOL="$ac_cv_prog_OTOOL"
7881 if test -n "$ac_tool_prefix"; then
7882 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_OTOOL64+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$OTOOL64"; then
7890 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7909 OTOOL64=$ac_cv_prog_OTOOL64
7910 if test -n "$OTOOL64"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7912 $as_echo "$OTOOL64" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7920 if test -z "$ac_cv_prog_OTOOL64"; then
7921 ac_ct_OTOOL64=$OTOOL64
7922 # Extract the first word of "otool64", so it can be a program name with args.
7923 set dummy otool64; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$ac_ct_OTOOL64"; then
7930 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_ac_ct_OTOOL64="otool64"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7950 if test -n "$ac_ct_OTOOL64"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7952 $as_echo "$ac_ct_OTOOL64" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7958 if test "x$ac_ct_OTOOL64" = x; then
7959 OTOOL64=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 OTOOL64=$ac_ct_OTOOL64
7969 else
7970 OTOOL64="$ac_cv_prog_OTOOL64"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8000 $as_echo_n "checking for -single_module linker flag... " >&6; }
8001 if ${lt_cv_apple_cc_single_mod+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 lt_cv_apple_cc_single_mod=no
8005 if test -z "${LT_MULTI_MODULE}"; then
8006 # By default we will add the -single_module flag. You can override
8007 # by either setting the environment variable LT_MULTI_MODULE
8008 # non-empty at configure time, or by adding -multi_module to the
8009 # link flags.
8010 rm -rf libconftest.dylib*
8011 echo "int foo(void){return 1;}" > conftest.c
8012 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8013 -dynamiclib -Wl,-single_module conftest.c" >&5
8014 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8015 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8016 _lt_result=$?
8017 # If there is a non-empty error log, and "single_module"
8018 # appears in it, assume the flag caused a linker warning
8019 if test -s conftest.err && $GREP single_module conftest.err; then
8020 cat conftest.err >&5
8021 # Otherwise, if the output was created with a 0 exit code from
8022 # the compiler, it worked.
8023 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8024 lt_cv_apple_cc_single_mod=yes
8025 else
8026 cat conftest.err >&5
8028 rm -rf libconftest.dylib*
8029 rm -f conftest.*
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8036 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8037 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 lt_cv_ld_exported_symbols_list=no
8041 save_LDFLAGS=$LDFLAGS
8042 echo "_main" > conftest.sym
8043 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8048 main ()
8052 return 0;
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 lt_cv_ld_exported_symbols_list=yes
8057 else
8058 lt_cv_ld_exported_symbols_list=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LDFLAGS="$save_LDFLAGS"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8069 $as_echo_n "checking for -force_load linker flag... " >&6; }
8070 if ${lt_cv_ld_force_load+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 lt_cv_ld_force_load=no
8074 cat > conftest.c << _LT_EOF
8075 int forced_loaded() { return 2;}
8076 _LT_EOF
8077 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8078 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8079 echo "$AR cru libconftest.a conftest.o" >&5
8080 $AR cru libconftest.a conftest.o 2>&5
8081 echo "$RANLIB libconftest.a" >&5
8082 $RANLIB libconftest.a 2>&5
8083 cat > conftest.c << _LT_EOF
8084 int main() { return 0;}
8085 _LT_EOF
8086 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8087 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8088 _lt_result=$?
8089 if test -s conftest.err && $GREP force_load conftest.err; then
8090 cat conftest.err >&5
8091 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8092 lt_cv_ld_force_load=yes
8093 else
8094 cat conftest.err >&5
8096 rm -f conftest.err libconftest.a conftest conftest.c
8097 rm -rf conftest.dSYM
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8101 $as_echo "$lt_cv_ld_force_load" >&6; }
8102 case $host_os in
8103 rhapsody* | darwin1.[012])
8104 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8105 darwin1.*)
8106 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8107 darwin*) # darwin 5.x on
8108 # if running on 10.5 or later, the deployment target defaults
8109 # to the OS version, if on x86, and 10.4, the deployment
8110 # target defaults to 10.4. Don't you love it?
8111 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8112 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 10.[012]*)
8115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116 10.*)
8117 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8118 esac
8120 esac
8121 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8122 _lt_dar_single_mod='$single_module'
8124 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8125 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8126 else
8127 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8129 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8130 _lt_dsymutil='~$DSYMUTIL $lib || :'
8131 else
8132 _lt_dsymutil=
8135 esac
8137 ac_ext=c
8138 ac_cpp='$CPP $CPPFLAGS'
8139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8144 # On Suns, sometimes $CPP names a directory.
8145 if test -n "$CPP" && test -d "$CPP"; then
8146 CPP=
8148 if test -z "$CPP"; then
8149 if ${ac_cv_prog_CPP+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 # Double quotes because CPP needs to be expanded
8153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8155 ac_preproc_ok=false
8156 for ac_c_preproc_warn_flag in '' yes
8158 # Use a header file that comes with gcc, so configuring glibc
8159 # with a fresh cross-compiler works.
8160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 # <limits.h> exists even on freestanding compilers.
8162 # On the NeXT, cc -E runs the code through the compiler's parser,
8163 # not just through cpp. "Syntax error" is here to catch this case.
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #ifdef __STDC__
8167 # include <limits.h>
8168 #else
8169 # include <assert.h>
8170 #endif
8171 Syntax error
8172 _ACEOF
8173 if ac_fn_c_try_cpp "$LINENO"; then :
8175 else
8176 # Broken: fails on valid input.
8177 continue
8179 rm -f conftest.err conftest.i conftest.$ac_ext
8181 # OK, works on sane cases. Now check whether nonexistent headers
8182 # can be detected and how.
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <ac_nonexistent.h>
8186 _ACEOF
8187 if ac_fn_c_try_cpp "$LINENO"; then :
8188 # Broken: success on invalid input.
8189 continue
8190 else
8191 # Passes both tests.
8192 ac_preproc_ok=:
8193 break
8195 rm -f conftest.err conftest.i conftest.$ac_ext
8197 done
8198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8199 rm -f conftest.i conftest.err conftest.$ac_ext
8200 if $ac_preproc_ok; then :
8201 break
8204 done
8205 ac_cv_prog_CPP=$CPP
8208 CPP=$ac_cv_prog_CPP
8209 else
8210 ac_cv_prog_CPP=$CPP
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8213 $as_echo "$CPP" >&6; }
8214 ac_preproc_ok=false
8215 for ac_c_preproc_warn_flag in '' yes
8217 # Use a header file that comes with gcc, so configuring glibc
8218 # with a fresh cross-compiler works.
8219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 # <limits.h> exists even on freestanding compilers.
8221 # On the NeXT, cc -E runs the code through the compiler's parser,
8222 # not just through cpp. "Syntax error" is here to catch this case.
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifdef __STDC__
8226 # include <limits.h>
8227 #else
8228 # include <assert.h>
8229 #endif
8230 Syntax error
8231 _ACEOF
8232 if ac_fn_c_try_cpp "$LINENO"; then :
8234 else
8235 # Broken: fails on valid input.
8236 continue
8238 rm -f conftest.err conftest.i conftest.$ac_ext
8240 # OK, works on sane cases. Now check whether nonexistent headers
8241 # can be detected and how.
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <ac_nonexistent.h>
8245 _ACEOF
8246 if ac_fn_c_try_cpp "$LINENO"; then :
8247 # Broken: success on invalid input.
8248 continue
8249 else
8250 # Passes both tests.
8251 ac_preproc_ok=:
8252 break
8254 rm -f conftest.err conftest.i conftest.$ac_ext
8256 done
8257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8258 rm -f conftest.i conftest.err conftest.$ac_ext
8259 if $ac_preproc_ok; then :
8261 else
8262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8264 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8265 See \`config.log' for more details" "$LINENO" 5; }
8268 ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8276 $as_echo_n "checking for ANSI C header files... " >&6; }
8277 if ${ac_cv_header_stdc+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 #include <stdlib.h>
8283 #include <stdarg.h>
8284 #include <string.h>
8285 #include <float.h>
8288 main ()
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 ac_cv_header_stdc=yes
8297 else
8298 ac_cv_header_stdc=no
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 if test $ac_cv_header_stdc = yes; then
8303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #include <string.h>
8308 _ACEOF
8309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8310 $EGREP "memchr" >/dev/null 2>&1; then :
8312 else
8313 ac_cv_header_stdc=no
8315 rm -f conftest*
8319 if test $ac_cv_header_stdc = yes; then
8320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 #include <stdlib.h>
8325 _ACEOF
8326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8327 $EGREP "free" >/dev/null 2>&1; then :
8329 else
8330 ac_cv_header_stdc=no
8332 rm -f conftest*
8336 if test $ac_cv_header_stdc = yes; then
8337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8338 if test "$cross_compiling" = yes; then :
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <ctype.h>
8344 #include <stdlib.h>
8345 #if ((' ' & 0x0FF) == 0x020)
8346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8348 #else
8349 # define ISLOWER(c) \
8350 (('a' <= (c) && (c) <= 'i') \
8351 || ('j' <= (c) && (c) <= 'r') \
8352 || ('s' <= (c) && (c) <= 'z'))
8353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8354 #endif
8356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8358 main ()
8360 int i;
8361 for (i = 0; i < 256; i++)
8362 if (XOR (islower (i), ISLOWER (i))
8363 || toupper (i) != TOUPPER (i))
8364 return 2;
8365 return 0;
8367 _ACEOF
8368 if ac_fn_c_try_run "$LINENO"; then :
8370 else
8371 ac_cv_header_stdc=no
8373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8374 conftest.$ac_objext conftest.beam conftest.$ac_ext
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8380 $as_echo "$ac_cv_header_stdc" >&6; }
8381 if test $ac_cv_header_stdc = yes; then
8383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8389 inttypes.h stdint.h unistd.h
8390 do :
8391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8392 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8395 cat >>confdefs.h <<_ACEOF
8396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8397 _ACEOF
8401 done
8404 for ac_header in dlfcn.h
8405 do :
8406 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8408 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DLFCN_H 1
8411 _ACEOF
8415 done
8421 # Set options
8425 enable_dlopen=no
8428 enable_win32_dll=no
8431 # Check whether --enable-shared was given.
8432 if test "${enable_shared+set}" = set; then :
8433 enableval=$enable_shared; p=${PACKAGE-default}
8434 case $enableval in
8435 yes) enable_shared=yes ;;
8436 no) enable_shared=no ;;
8438 enable_shared=no
8439 # Look at the argument we got. We use all the common list separators.
8440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8441 for pkg in $enableval; do
8442 IFS="$lt_save_ifs"
8443 if test "X$pkg" = "X$p"; then
8444 enable_shared=yes
8446 done
8447 IFS="$lt_save_ifs"
8449 esac
8450 else
8451 enable_shared=yes
8462 # Check whether --enable-static was given.
8463 if test "${enable_static+set}" = set; then :
8464 enableval=$enable_static; p=${PACKAGE-default}
8465 case $enableval in
8466 yes) enable_static=yes ;;
8467 no) enable_static=no ;;
8469 enable_static=no
8470 # Look at the argument we got. We use all the common list separators.
8471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8472 for pkg in $enableval; do
8473 IFS="$lt_save_ifs"
8474 if test "X$pkg" = "X$p"; then
8475 enable_static=yes
8477 done
8478 IFS="$lt_save_ifs"
8480 esac
8481 else
8482 enable_static=yes
8494 # Check whether --with-pic was given.
8495 if test "${with_pic+set}" = set; then :
8496 withval=$with_pic; lt_p=${PACKAGE-default}
8497 case $withval in
8498 yes|no) pic_mode=$withval ;;
8500 pic_mode=default
8501 # Look at the argument we got. We use all the common list separators.
8502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8503 for lt_pkg in $withval; do
8504 IFS="$lt_save_ifs"
8505 if test "X$lt_pkg" = "X$lt_p"; then
8506 pic_mode=yes
8508 done
8509 IFS="$lt_save_ifs"
8511 esac
8512 else
8513 pic_mode=default
8517 test -z "$pic_mode" && pic_mode=default
8525 # Check whether --enable-fast-install was given.
8526 if test "${enable_fast_install+set}" = set; then :
8527 enableval=$enable_fast_install; p=${PACKAGE-default}
8528 case $enableval in
8529 yes) enable_fast_install=yes ;;
8530 no) enable_fast_install=no ;;
8532 enable_fast_install=no
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535 for pkg in $enableval; do
8536 IFS="$lt_save_ifs"
8537 if test "X$pkg" = "X$p"; then
8538 enable_fast_install=yes
8540 done
8541 IFS="$lt_save_ifs"
8543 esac
8544 else
8545 enable_fast_install=yes
8558 # This can be used to rebuild libtool when needed
8559 LIBTOOL_DEPS="$ltmain"
8561 # Always use our own libtool.
8562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8593 test -z "$LN_S" && LN_S="ln -s"
8608 if test -n "${ZSH_VERSION+set}" ; then
8609 setopt NO_GLOB_SUBST
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8613 $as_echo_n "checking for objdir... " >&6; }
8614 if ${lt_cv_objdir+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 rm -f .libs 2>/dev/null
8618 mkdir .libs 2>/dev/null
8619 if test -d .libs; then
8620 lt_cv_objdir=.libs
8621 else
8622 # MS-DOS does not allow filenames that begin with a dot.
8623 lt_cv_objdir=_libs
8625 rmdir .libs 2>/dev/null
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8628 $as_echo "$lt_cv_objdir" >&6; }
8629 objdir=$lt_cv_objdir
8635 cat >>confdefs.h <<_ACEOF
8636 #define LT_OBJDIR "$lt_cv_objdir/"
8637 _ACEOF
8642 case $host_os in
8643 aix3*)
8644 # AIX sometimes has problems with the GCC collect2 program. For some
8645 # reason, if we set the COLLECT_NAMES environment variable, the problems
8646 # vanish in a puff of smoke.
8647 if test "X${COLLECT_NAMES+set}" != Xset; then
8648 COLLECT_NAMES=
8649 export COLLECT_NAMES
8652 esac
8654 # Global variables:
8655 ofile=libtool
8656 can_build_shared=yes
8658 # All known linkers require a `.a' archive for static linking (except MSVC,
8659 # which needs '.lib').
8660 libext=a
8662 with_gnu_ld="$lt_cv_prog_gnu_ld"
8664 old_CC="$CC"
8665 old_CFLAGS="$CFLAGS"
8667 # Set sane defaults for various variables
8668 test -z "$CC" && CC=cc
8669 test -z "$LTCC" && LTCC=$CC
8670 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8671 test -z "$LD" && LD=ld
8672 test -z "$ac_objext" && ac_objext=o
8674 for cc_temp in $compiler""; do
8675 case $cc_temp in
8676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8678 \-*) ;;
8679 *) break;;
8680 esac
8681 done
8682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8685 # Only perform the check for file, if the check method requires it
8686 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8687 case $deplibs_check_method in
8688 file_magic*)
8689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8691 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8692 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $MAGIC_CMD in
8696 [\\/*] | ?:[\\/]*)
8697 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8700 lt_save_MAGIC_CMD="$MAGIC_CMD"
8701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8703 for ac_dir in $ac_dummy; do
8704 IFS="$lt_save_ifs"
8705 test -z "$ac_dir" && ac_dir=.
8706 if test -f $ac_dir/${ac_tool_prefix}file; then
8707 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8708 if test -n "$file_magic_test_file"; then
8709 case $deplibs_check_method in
8710 "file_magic "*)
8711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8714 $EGREP "$file_magic_regex" > /dev/null; then
8716 else
8717 cat <<_LT_EOF 1>&2
8719 *** Warning: the command libtool uses to detect shared libraries,
8720 *** $file_magic_cmd, produces output that libtool cannot recognize.
8721 *** The result is that libtool may fail to recognize shared libraries
8722 *** as such. This will affect the creation of libtool libraries that
8723 *** depend on shared libraries, but programs linked with such libtool
8724 *** libraries will work regardless of this problem. Nevertheless, you
8725 *** may want to report the problem to your system manager and/or to
8726 *** bug-libtool@gnu.org
8728 _LT_EOF
8729 fi ;;
8730 esac
8732 break
8734 done
8735 IFS="$lt_save_ifs"
8736 MAGIC_CMD="$lt_save_MAGIC_CMD"
8738 esac
8741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8742 if test -n "$MAGIC_CMD"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8744 $as_echo "$MAGIC_CMD" >&6; }
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8754 if test -z "$lt_cv_path_MAGIC_CMD"; then
8755 if test -n "$ac_tool_prefix"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8757 $as_echo_n "checking for file... " >&6; }
8758 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 case $MAGIC_CMD in
8762 [\\/*] | ?:[\\/]*)
8763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8766 lt_save_MAGIC_CMD="$MAGIC_CMD"
8767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8769 for ac_dir in $ac_dummy; do
8770 IFS="$lt_save_ifs"
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/file; then
8773 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8774 if test -n "$file_magic_test_file"; then
8775 case $deplibs_check_method in
8776 "file_magic "*)
8777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8780 $EGREP "$file_magic_regex" > /dev/null; then
8782 else
8783 cat <<_LT_EOF 1>&2
8785 *** Warning: the command libtool uses to detect shared libraries,
8786 *** $file_magic_cmd, produces output that libtool cannot recognize.
8787 *** The result is that libtool may fail to recognize shared libraries
8788 *** as such. This will affect the creation of libtool libraries that
8789 *** depend on shared libraries, but programs linked with such libtool
8790 *** libraries will work regardless of this problem. Nevertheless, you
8791 *** may want to report the problem to your system manager and/or to
8792 *** bug-libtool@gnu.org
8794 _LT_EOF
8795 fi ;;
8796 esac
8798 break
8800 done
8801 IFS="$lt_save_ifs"
8802 MAGIC_CMD="$lt_save_MAGIC_CMD"
8804 esac
8807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808 if test -n "$MAGIC_CMD"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8810 $as_echo "$MAGIC_CMD" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8817 else
8818 MAGIC_CMD=:
8824 esac
8826 # Use C for the default configuration in the libtool script
8828 lt_save_CC="$CC"
8829 ac_ext=c
8830 ac_cpp='$CPP $CPPFLAGS'
8831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8836 # Source file extension for C test sources.
8837 ac_ext=c
8839 # Object file extension for compiled C test sources.
8840 objext=o
8841 objext=$objext
8843 # Code to be used in simple compile tests
8844 lt_simple_compile_test_code="int some_variable = 0;"
8846 # Code to be used in simple link tests
8847 lt_simple_link_test_code='int main(){return(0);}'
8855 # If no C compiler was specified, use CC.
8856 LTCC=${LTCC-"$CC"}
8858 # If no C compiler flags were specified, use CFLAGS.
8859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8861 # Allow CC to be a program name with arguments.
8862 compiler=$CC
8864 # Save the default compiler, since it gets overwritten when the other
8865 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8866 compiler_DEFAULT=$CC
8868 # save warnings/boilerplate of simple test code
8869 ac_outfile=conftest.$ac_objext
8870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8872 _lt_compiler_boilerplate=`cat conftest.err`
8873 $RM conftest*
8875 ac_outfile=conftest.$ac_objext
8876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878 _lt_linker_boilerplate=`cat conftest.err`
8879 $RM -r conftest*
8882 ## CAVEAT EMPTOR:
8883 ## There is no encapsulation within the following macros, do not change
8884 ## the running order or otherwise move them around unless you know exactly
8885 ## what you are doing...
8886 if test -n "$compiler"; then
8888 lt_prog_compiler_no_builtin_flag=
8890 if test "$GCC" = yes; then
8891 case $cc_basename in
8892 nvcc*)
8893 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8895 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8896 esac
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8899 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8900 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_rtti_exceptions=no
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906 lt_compiler_flag="-fno-rtti -fno-exceptions"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 # The option is referenced via a variable to avoid confusing sed.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>conftest.err)
8918 ac_status=$?
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s "$ac_outfile"; then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings other than the usual output.
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_rtti_exceptions=yes
8930 $RM conftest*
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8934 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8936 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8938 else
8949 lt_prog_compiler_wl=
8950 lt_prog_compiler_pic=
8951 lt_prog_compiler_static=
8954 if test "$GCC" = yes; then
8955 lt_prog_compiler_wl='-Wl,'
8956 lt_prog_compiler_static='-static'
8958 case $host_os in
8959 aix*)
8960 # All AIX code is PIC.
8961 if test "$host_cpu" = ia64; then
8962 # AIX 5 now supports IA64 processor
8963 lt_prog_compiler_static='-Bstatic'
8967 amigaos*)
8968 case $host_cpu in
8969 powerpc)
8970 # see comment about AmigaOS4 .so support
8971 lt_prog_compiler_pic='-fPIC'
8973 m68k)
8974 # FIXME: we need at least 68020 code to build shared libraries, but
8975 # adding the `-m68020' flag to GCC prevents building anything better,
8976 # like `-m68040'.
8977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8979 esac
8982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8983 # PIC is the default for these OSes.
8986 mingw* | cygwin* | pw32* | os2* | cegcc*)
8987 # This hack is so that the source file can tell whether it is being
8988 # built for inclusion in a dll (and should export symbols for example).
8989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8990 # (--disable-auto-import) libraries
8991 lt_prog_compiler_pic='-DDLL_EXPORT'
8994 darwin* | rhapsody*)
8995 # PIC is the default on this platform
8996 # Common symbols not allowed in MH_DYLIB files
8997 lt_prog_compiler_pic='-fno-common'
9000 haiku*)
9001 # PIC is the default for Haiku.
9002 # The "-static" flag exists, but is broken.
9003 lt_prog_compiler_static=
9006 hpux*)
9007 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9008 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9009 # sets the default TLS model and affects inlining.
9010 case $host_cpu in
9011 hppa*64*)
9012 # +Z the default
9015 lt_prog_compiler_pic='-fPIC'
9017 esac
9020 interix[3-9]*)
9021 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9022 # Instead, we relocate shared libraries at runtime.
9025 msdosdjgpp*)
9026 # Just because we use GCC doesn't mean we suddenly get shared libraries
9027 # on systems that don't support them.
9028 lt_prog_compiler_can_build_shared=no
9029 enable_shared=no
9032 *nto* | *qnx*)
9033 # QNX uses GNU C++, but need to define -shared option too, otherwise
9034 # it will coredump.
9035 lt_prog_compiler_pic='-fPIC -shared'
9038 sysv4*MP*)
9039 if test -d /usr/nec; then
9040 lt_prog_compiler_pic=-Kconform_pic
9045 lt_prog_compiler_pic='-fPIC'
9047 esac
9049 case $cc_basename in
9050 nvcc*) # Cuda Compiler Driver 2.2
9051 lt_prog_compiler_wl='-Xlinker '
9052 if test -n "$lt_prog_compiler_pic"; then
9053 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9056 esac
9057 else
9058 # PORTME Check for flag to pass linker flags through the system compiler.
9059 case $host_os in
9060 aix*)
9061 lt_prog_compiler_wl='-Wl,'
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 now supports IA64 processor
9064 lt_prog_compiler_static='-Bstatic'
9065 else
9066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9070 mingw* | cygwin* | pw32* | os2* | cegcc*)
9071 # This hack is so that the source file can tell whether it is being
9072 # built for inclusion in a dll (and should export symbols for example).
9073 lt_prog_compiler_pic='-DDLL_EXPORT'
9076 hpux9* | hpux10* | hpux11*)
9077 lt_prog_compiler_wl='-Wl,'
9078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9079 # not for PA HP-UX.
9080 case $host_cpu in
9081 hppa*64*|ia64*)
9082 # +Z the default
9085 lt_prog_compiler_pic='+Z'
9087 esac
9088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9089 lt_prog_compiler_static='${wl}-a ${wl}archive'
9092 irix5* | irix6* | nonstopux*)
9093 lt_prog_compiler_wl='-Wl,'
9094 # PIC (with -KPIC) is the default.
9095 lt_prog_compiler_static='-non_shared'
9098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9099 case $cc_basename in
9100 # old Intel for x86_64 which still supported -KPIC.
9101 ecc*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-static'
9106 # icc used to be incompatible with GCC.
9107 # ICC 10 doesn't accept -KPIC any more.
9108 icc* | ifort*)
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='-fPIC'
9111 lt_prog_compiler_static='-static'
9113 # Lahey Fortran 8.1.
9114 lf95*)
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='--shared'
9117 lt_prog_compiler_static='--static'
9119 nagfor*)
9120 # NAG Fortran compiler
9121 lt_prog_compiler_wl='-Wl,-Wl,,'
9122 lt_prog_compiler_pic='-PIC'
9123 lt_prog_compiler_static='-Bstatic'
9125 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9126 # Portland Group compilers (*not* the Pentium gcc compiler,
9127 # which looks to be a dead project)
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_pic='-fpic'
9130 lt_prog_compiler_static='-Bstatic'
9132 ccc*)
9133 lt_prog_compiler_wl='-Wl,'
9134 # All Alpha code is PIC.
9135 lt_prog_compiler_static='-non_shared'
9137 xl* | bgxl* | bgf* | mpixl*)
9138 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-qpic'
9141 lt_prog_compiler_static='-qstaticlink'
9144 case `$CC -V 2>&1 | sed 5q` in
9145 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-Bstatic'
9149 lt_prog_compiler_wl=''
9151 *Sun\ F* | *Sun*Fortran*)
9152 lt_prog_compiler_pic='-KPIC'
9153 lt_prog_compiler_static='-Bstatic'
9154 lt_prog_compiler_wl='-Qoption ld '
9156 *Sun\ C*)
9157 # Sun C 5.9
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-Bstatic'
9160 lt_prog_compiler_wl='-Wl,'
9162 *Intel*\ [CF]*Compiler*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-fPIC'
9165 lt_prog_compiler_static='-static'
9167 *Portland\ Group*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-fpic'
9170 lt_prog_compiler_static='-Bstatic'
9172 esac
9174 esac
9177 newsos6)
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9182 *nto* | *qnx*)
9183 # QNX uses GNU C++, but need to define -shared option too, otherwise
9184 # it will coredump.
9185 lt_prog_compiler_pic='-fPIC -shared'
9188 osf3* | osf4* | osf5*)
9189 lt_prog_compiler_wl='-Wl,'
9190 # All OSF/1 code is PIC.
9191 lt_prog_compiler_static='-non_shared'
9194 rdos*)
9195 lt_prog_compiler_static='-non_shared'
9198 solaris*)
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 case $cc_basename in
9202 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9203 lt_prog_compiler_wl='-Qoption ld ';;
9205 lt_prog_compiler_wl='-Wl,';;
9206 esac
9209 sunos4*)
9210 lt_prog_compiler_wl='-Qoption ld '
9211 lt_prog_compiler_pic='-PIC'
9212 lt_prog_compiler_static='-Bstatic'
9215 sysv4 | sysv4.2uw2* | sysv4.3*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-KPIC'
9218 lt_prog_compiler_static='-Bstatic'
9221 sysv4*MP*)
9222 if test -d /usr/nec ;then
9223 lt_prog_compiler_pic='-Kconform_pic'
9224 lt_prog_compiler_static='-Bstatic'
9228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_pic='-KPIC'
9231 lt_prog_compiler_static='-Bstatic'
9234 unicos*)
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_can_build_shared=no
9239 uts4*)
9240 lt_prog_compiler_pic='-pic'
9241 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_can_build_shared=no
9247 esac
9250 case $host_os in
9251 # For platforms which do not support PIC, -DPIC is meaningless:
9252 *djgpp*)
9253 lt_prog_compiler_pic=
9256 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9258 esac
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9261 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9262 if ${lt_cv_prog_compiler_pic+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9268 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9269 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9272 # Check to make sure the PIC flag actually works.
9274 if test -n "$lt_prog_compiler_pic"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9277 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 lt_cv_prog_compiler_pic_works=no
9281 ac_outfile=conftest.$ac_objext
9282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9284 # Insert the option either (1) after the last *FLAGS variable, or
9285 # (2) before a word containing "conftest.", or (3) at the end.
9286 # Note that $ac_compile itself does not contain backslashes and begins
9287 # with a dollar sign (not a hyphen), so the echo should work correctly.
9288 # The option is referenced via a variable to avoid confusing sed.
9289 lt_compile=`echo "$ac_compile" | $SED \
9290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9292 -e 's:$: $lt_compiler_flag:'`
9293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9294 (eval "$lt_compile" 2>conftest.err)
9295 ac_status=$?
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 if (exit $ac_status) && test -s "$ac_outfile"; then
9299 # The compiler can only warn and ignore the option if not recognized
9300 # So say no if there are warnings other than the usual output.
9301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9304 lt_cv_prog_compiler_pic_works=yes
9307 $RM conftest*
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9311 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9313 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9314 case $lt_prog_compiler_pic in
9315 "" | " "*) ;;
9316 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9317 esac
9318 else
9319 lt_prog_compiler_pic=
9320 lt_prog_compiler_can_build_shared=no
9336 # Check to make sure the static flag actually works.
9338 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9340 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9341 if ${lt_cv_prog_compiler_static_works+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 lt_cv_prog_compiler_static_works=no
9345 save_LDFLAGS="$LDFLAGS"
9346 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9347 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9349 # The linker can only warn and ignore the option if not recognized
9350 # So say no if there are warnings
9351 if test -s conftest.err; then
9352 # Append any errors to the config.log.
9353 cat conftest.err 1>&5
9354 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9356 if diff conftest.exp conftest.er2 >/dev/null; then
9357 lt_cv_prog_compiler_static_works=yes
9359 else
9360 lt_cv_prog_compiler_static_works=yes
9363 $RM -r conftest*
9364 LDFLAGS="$save_LDFLAGS"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9368 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9370 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9372 else
9373 lt_prog_compiler_static=
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384 if ${lt_cv_prog_compiler_c_o+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 lt_cv_prog_compiler_c_o=no
9388 $RM -r conftest 2>/dev/null
9389 mkdir conftest
9390 cd conftest
9391 mkdir out
9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394 lt_compiler_flag="-o out/conftest2.$ac_objext"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 lt_compile=`echo "$ac_compile" | $SED \
9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402 -e 's:$: $lt_compiler_flag:'`
9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9404 (eval "$lt_compile" 2>out/conftest.err)
9405 ac_status=$?
9406 cat out/conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409 then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_c_o=yes
9418 chmod u+w . 2>&5
9419 $RM conftest*
9420 # SGI C++ compiler will create directory out/ii_files/ for
9421 # template instantiation
9422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423 $RM out/* && rmdir out
9424 cd ..
9425 $RM -r conftest
9426 $RM conftest*
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9430 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9439 if ${lt_cv_prog_compiler_c_o+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 lt_cv_prog_compiler_c_o=no
9443 $RM -r conftest 2>/dev/null
9444 mkdir conftest
9445 cd conftest
9446 mkdir out
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9449 lt_compiler_flag="-o out/conftest2.$ac_objext"
9450 # Insert the option either (1) after the last *FLAGS variable, or
9451 # (2) before a word containing "conftest.", or (3) at the end.
9452 # Note that $ac_compile itself does not contain backslashes and begins
9453 # with a dollar sign (not a hyphen), so the echo should work correctly.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>out/conftest.err)
9460 ac_status=$?
9461 cat out/conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9464 then
9465 # The compiler can only warn and ignore the option if not recognized
9466 # So say no if there are warnings
9467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler_c_o=yes
9473 chmod u+w . 2>&5
9474 $RM conftest*
9475 # SGI C++ compiler will create directory out/ii_files/ for
9476 # template instantiation
9477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9478 $RM out/* && rmdir out
9479 cd ..
9480 $RM -r conftest
9481 $RM conftest*
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9485 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9490 hard_links="nottested"
9491 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9492 # do not overwrite the value of need_locks provided by the user
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9494 $as_echo_n "checking if we can lock with hard links... " >&6; }
9495 hard_links=yes
9496 $RM conftest*
9497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498 touch conftest.a
9499 ln conftest.a conftest.b 2>&5 || hard_links=no
9500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9502 $as_echo "$hard_links" >&6; }
9503 if test "$hard_links" = no; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9505 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9506 need_locks=warn
9508 else
9509 need_locks=no
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9520 runpath_var=
9521 allow_undefined_flag=
9522 always_export_symbols=no
9523 archive_cmds=
9524 archive_expsym_cmds=
9525 compiler_needs_object=no
9526 enable_shared_with_static_runtimes=no
9527 export_dynamic_flag_spec=
9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9529 hardcode_automatic=no
9530 hardcode_direct=no
9531 hardcode_direct_absolute=no
9532 hardcode_libdir_flag_spec=
9533 hardcode_libdir_separator=
9534 hardcode_minus_L=no
9535 hardcode_shlibpath_var=unsupported
9536 inherit_rpath=no
9537 link_all_deplibs=unknown
9538 module_cmds=
9539 module_expsym_cmds=
9540 old_archive_from_new_cmds=
9541 old_archive_from_expsyms_cmds=
9542 thread_safe_flag_spec=
9543 whole_archive_flag_spec=
9544 # include_expsyms should be a list of space-separated symbols to be *always*
9545 # included in the symbol list
9546 include_expsyms=
9547 # exclude_expsyms can be an extended regexp of symbols to exclude
9548 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9549 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9550 # as well as any symbol that contains `d'.
9551 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9552 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9553 # platforms (ab)use it in PIC code, but their linkers get confused if
9554 # the symbol is explicitly referenced. Since portable code cannot
9555 # rely on this symbol name, it's probably fine to never include it in
9556 # preloaded symbol tables.
9557 # Exclude shared library initialization/finalization symbols.
9558 extract_expsyms_cmds=
9560 case $host_os in
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 if test "$GCC" != yes; then
9566 with_gnu_ld=no
9569 interix*)
9570 # we just hope/assume this is gcc and not c89 (= MSVC++)
9571 with_gnu_ld=yes
9573 openbsd*)
9574 with_gnu_ld=no
9576 esac
9578 ld_shlibs=yes
9580 # On some targets, GNU ld is compatible enough with the native linker
9581 # that we're better off using the native interface for both.
9582 lt_use_gnu_ld_interface=no
9583 if test "$with_gnu_ld" = yes; then
9584 case $host_os in
9585 aix*)
9586 # The AIX port of GNU ld has always aspired to compatibility
9587 # with the native linker. However, as the warning in the GNU ld
9588 # block says, versions before 2.19.5* couldn't really create working
9589 # shared libraries, regardless of the interface used.
9590 case `$LD -v 2>&1` in
9591 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9592 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9593 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9595 lt_use_gnu_ld_interface=yes
9597 esac
9600 lt_use_gnu_ld_interface=yes
9602 esac
9605 if test "$lt_use_gnu_ld_interface" = yes; then
9606 # If archive_cmds runs LD, not CC, wlarc should be empty
9607 wlarc='${wl}'
9609 # Set some defaults for GNU ld with shared library support. These
9610 # are reset later if shared libraries are not supported. Putting them
9611 # here allows them to be overridden if necessary.
9612 runpath_var=LD_RUN_PATH
9613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9614 export_dynamic_flag_spec='${wl}--export-dynamic'
9615 # ancient GNU ld didn't support --whole-archive et. al.
9616 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9617 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9618 else
9619 whole_archive_flag_spec=
9621 supports_anon_versioning=no
9622 case `$LD -v 2>&1` in
9623 *GNU\ gold*) supports_anon_versioning=yes ;;
9624 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9627 *\ 2.11.*) ;; # other 2.11 versions
9628 *) supports_anon_versioning=yes ;;
9629 esac
9631 # See if GNU ld supports shared libraries.
9632 case $host_os in
9633 aix[3-9]*)
9634 # On AIX/PPC, the GNU linker is very broken
9635 if test "$host_cpu" != ia64; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9639 *** Warning: the GNU linker, at least up to release 2.19, is reported
9640 *** to be unable to reliably create shared libraries on AIX.
9641 *** Therefore, libtool is disabling shared libraries support. If you
9642 *** really care for shared libraries, you may want to install binutils
9643 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9644 *** You will then need to restart the configuration process.
9646 _LT_EOF
9650 amigaos*)
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9657 m68k)
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9662 esac
9665 beos*)
9666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9667 allow_undefined_flag=unsupported
9668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9669 # support --undefined. This deserves some investigation. FIXME
9670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671 else
9672 ld_shlibs=no
9676 cygwin* | mingw* | pw32* | cegcc*)
9677 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9678 # as there is no search path for DLLs.
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 export_dynamic_flag_spec='${wl}--export-all-symbols'
9681 allow_undefined_flag=unsupported
9682 always_export_symbols=no
9683 enable_shared_with_static_runtimes=yes
9684 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'
9685 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9689 # If the export-symbols file already is a .def file (1st line
9690 # is EXPORTS), use it as is; otherwise, prepend...
9691 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9692 cp $export_symbols $output_objdir/$soname.def;
9693 else
9694 echo EXPORTS > $output_objdir/$soname.def;
9695 cat $export_symbols >> $output_objdir/$soname.def;
9697 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9698 else
9699 ld_shlibs=no
9703 haiku*)
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705 link_all_deplibs=yes
9708 interix[3-9]*)
9709 hardcode_direct=no
9710 hardcode_shlibpath_var=no
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712 export_dynamic_flag_spec='${wl}-E'
9713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9714 # Instead, shared libraries are loaded at an image base (0x10000000 by
9715 # default) and relocated if they conflict, which is a slow very memory
9716 # consuming and fragmenting process. To avoid this, we pick a random,
9717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9720 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'
9723 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9724 tmp_diet=no
9725 if test "$host_os" = linux-dietlibc; then
9726 case $cc_basename in
9727 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9728 esac
9730 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9731 && test "$tmp_diet" = no
9732 then
9733 tmp_addflag=' $pic_flag'
9734 tmp_sharedflag='-shared'
9735 case $cc_basename,$host_cpu in
9736 pgcc*) # Portland Group C compiler
9737 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'
9738 tmp_addflag=' $pic_flag'
9740 pgf77* | pgf90* | pgf95* | pgfortran*)
9741 # Portland Group f77 and f90 compilers
9742 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'
9743 tmp_addflag=' $pic_flag -Mnomain' ;;
9744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9745 tmp_addflag=' -i_dynamic' ;;
9746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9747 tmp_addflag=' -i_dynamic -nofor_main' ;;
9748 ifc* | ifort*) # Intel Fortran compiler
9749 tmp_addflag=' -nofor_main' ;;
9750 lf95*) # Lahey Fortran 8.1
9751 whole_archive_flag_spec=
9752 tmp_sharedflag='--shared' ;;
9753 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9754 tmp_sharedflag='-qmkshrobj'
9755 tmp_addflag= ;;
9756 nvcc*) # Cuda Compiler Driver 2.2
9757 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'
9758 compiler_needs_object=yes
9760 esac
9761 case `$CC -V 2>&1 | sed 5q` in
9762 *Sun\ C*) # Sun C 5.9
9763 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'
9764 compiler_needs_object=yes
9765 tmp_sharedflag='-G' ;;
9766 *Sun\ F*) # Sun Fortran 8.3
9767 tmp_sharedflag='-G' ;;
9768 esac
9769 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 if test "x$supports_anon_versioning" = xyes; then
9772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9774 echo "local: *; };" >> $output_objdir/$libname.ver~
9775 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9778 case $cc_basename in
9779 xlf* | bgf* | bgxlf* | mpixlf*)
9780 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9781 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9783 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9784 if test "x$supports_anon_versioning" = xyes; then
9785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9787 echo "local: *; };" >> $output_objdir/$libname.ver~
9788 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9791 esac
9792 else
9793 ld_shlibs=no
9797 netbsd*)
9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9800 wlarc=
9801 else
9802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9807 solaris*)
9808 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
9812 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9813 *** create shared libraries on Solaris systems. Therefore, libtool
9814 *** is disabling shared libraries support. We urge you to upgrade GNU
9815 *** binutils to release 2.9.1 or newer. Another option is to modify
9816 *** your PATH or compiler configuration so that the native linker is
9817 *** used, and then restart.
9819 _LT_EOF
9820 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823 else
9824 ld_shlibs=no
9828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9829 case `$LD -v 2>&1` in
9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9831 ld_shlibs=no
9832 cat <<_LT_EOF 1>&2
9834 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9835 *** reliably create shared libraries on SCO systems. Therefore, libtool
9836 *** is disabling shared libraries support. We urge you to upgrade GNU
9837 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9838 *** your PATH or compiler configuration so that the native linker is
9839 *** used, and then restart.
9841 _LT_EOF
9844 # For security reasons, it is highly recommended that you always
9845 # use absolute paths for naming shared libraries, and exclude the
9846 # DT_RUNPATH tag from executables and libraries. But doing so
9847 # requires that you compile everything twice, which is a pain.
9848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852 else
9853 ld_shlibs=no
9856 esac
9859 sunos4*)
9860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861 wlarc=
9862 hardcode_direct=yes
9863 hardcode_shlibpath_var=no
9867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870 else
9871 ld_shlibs=no
9874 esac
9876 if test "$ld_shlibs" = no; then
9877 runpath_var=
9878 hardcode_libdir_flag_spec=
9879 export_dynamic_flag_spec=
9880 whole_archive_flag_spec=
9882 else
9883 # PORTME fill in a description of your system's linker (not GNU ld)
9884 case $host_os in
9885 aix3*)
9886 allow_undefined_flag=unsupported
9887 always_export_symbols=yes
9888 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'
9889 # Note: this linker hardcodes the directories in LIBPATH if there
9890 # are no directories specified by -L.
9891 hardcode_minus_L=yes
9892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9893 # Neither direct hardcoding nor static linking is supported with a
9894 # broken collect2.
9895 hardcode_direct=unsupported
9899 aix[4-9]*)
9900 if test "$host_cpu" = ia64; then
9901 # On IA64, the linker does run time linking by default, so we don't
9902 # have to do anything special.
9903 aix_use_runtimelinking=no
9904 exp_sym_flag='-Bexport'
9905 no_entry_flag=""
9906 else
9907 # If we're using GNU nm, then we don't want the "-C" option.
9908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9909 # Also, AIX nm treats weak defined symbols like other global
9910 # defined symbols, whereas GNU nm marks them as "W".
9911 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9912 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9913 else
9914 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9916 aix_use_runtimelinking=no
9918 # Test if we are trying to use run time linking or normal
9919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9920 # need to do runtime linking.
9921 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9922 for ld_flag in $LDFLAGS; do
9923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9924 aix_use_runtimelinking=yes
9925 break
9927 done
9929 esac
9931 exp_sym_flag='-bexport'
9932 no_entry_flag='-bnoentry'
9935 # When large executables or shared objects are built, AIX ld can
9936 # have problems creating the table of contents. If linking a library
9937 # or program results in "error TOC overflow" add -mminimal-toc to
9938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9941 archive_cmds=''
9942 hardcode_direct=yes
9943 hardcode_direct_absolute=yes
9944 hardcode_libdir_separator=':'
9945 link_all_deplibs=yes
9946 file_list_spec='${wl}-f,'
9948 if test "$GCC" = yes; then
9949 case $host_os in aix4.[012]|aix4.[012].*)
9950 # We only want to do this on AIX 4.2 and lower, the check
9951 # below for broken collect2 doesn't work under 4.3+
9952 collect2name=`${CC} -print-prog-name=collect2`
9953 if test -f "$collect2name" &&
9954 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9955 then
9956 # We have reworked collect2
9958 else
9959 # We have old collect2
9960 hardcode_direct=unsupported
9961 # It fails to find uninstalled libraries when the uninstalled
9962 # path is not listed in the libpath. Setting hardcode_minus_L
9963 # to unsupported forces relinking
9964 hardcode_minus_L=yes
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_libdir_separator=
9969 esac
9970 shared_flag='-shared'
9971 if test "$aix_use_runtimelinking" = yes; then
9972 shared_flag="$shared_flag "'${wl}-G'
9974 else
9975 # not using gcc
9976 if test "$host_cpu" = ia64; then
9977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9978 # chokes on -Wl,-G. The following line is correct:
9979 shared_flag='-G'
9980 else
9981 if test "$aix_use_runtimelinking" = yes; then
9982 shared_flag='${wl}-G'
9983 else
9984 shared_flag='${wl}-bM:SRE'
9989 export_dynamic_flag_spec='${wl}-bexpall'
9990 # It seems that -bexpall does not export symbols beginning with
9991 # underscore (_), so it is better to generate a list of symbols to export.
9992 always_export_symbols=yes
9993 if test "$aix_use_runtimelinking" = yes; then
9994 # Warning - without using the other runtime loading flags (-brtl),
9995 # -berok will link without error, but may produce a broken library.
9996 allow_undefined_flag='-berok'
9997 # Determine the default libpath from the value encoded in an
9998 # empty executable.
9999 if test "${lt_cv_aix_libpath+set}" = set; then
10000 aix_libpath=$lt_cv_aix_libpath
10001 else
10002 if ${lt_cv_aix_libpath_+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10009 main ()
10013 return 0;
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10018 lt_aix_libpath_sed='
10019 /Import File Strings/,/^$/ {
10020 /^0/ {
10021 s/^0 *\([^ ]*\) *$/\1/
10025 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10026 # Check for a 64-bit object if we didn't find anything.
10027 if test -z "$lt_cv_aix_libpath_"; then
10028 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 if test -z "$lt_cv_aix_libpath_"; then
10034 lt_cv_aix_libpath_="/usr/lib:/lib"
10039 aix_libpath=$lt_cv_aix_libpath_
10042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10043 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10044 else
10045 if test "$host_cpu" = ia64; then
10046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10047 allow_undefined_flag="-z nodefs"
10048 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"
10049 else
10050 # Determine the default libpath from the value encoded in an
10051 # empty executable.
10052 if test "${lt_cv_aix_libpath+set}" = set; then
10053 aix_libpath=$lt_cv_aix_libpath
10054 else
10055 if ${lt_cv_aix_libpath_+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10062 main ()
10066 return 0;
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10071 lt_aix_libpath_sed='
10072 /Import File Strings/,/^$/ {
10073 /^0/ {
10074 s/^0 *\([^ ]*\) *$/\1/
10078 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 # Check for a 64-bit object if we didn't find anything.
10080 if test -z "$lt_cv_aix_libpath_"; then
10081 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$lt_cv_aix_libpath_"; then
10087 lt_cv_aix_libpath_="/usr/lib:/lib"
10092 aix_libpath=$lt_cv_aix_libpath_
10095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10096 # Warning - without using the other run time loading flags,
10097 # -berok will link without error, but may produce a broken library.
10098 no_undefined_flag=' ${wl}-bernotok'
10099 allow_undefined_flag=' ${wl}-berok'
10100 if test "$with_gnu_ld" = yes; then
10101 # We only use this code for GNU lds that support --whole-archive.
10102 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10103 else
10104 # Exported symbols can be pulled into shared objects from archives
10105 whole_archive_flag_spec='$convenience'
10107 archive_cmds_need_lc=yes
10108 # This is similar to how AIX traditionally builds its shared libraries.
10109 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10114 amigaos*)
10115 case $host_cpu in
10116 powerpc)
10117 # see comment about AmigaOS4 .so support
10118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119 archive_expsym_cmds=''
10121 m68k)
10122 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)'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_minus_L=yes
10126 esac
10129 bsdi[45]*)
10130 export_dynamic_flag_spec=-rdynamic
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # When not using gcc, we currently assume that we are using
10135 # Microsoft Visual C++.
10136 # hardcode_libdir_flag_spec is actually meaningless, as there is
10137 # no search path for DLLs.
10138 case $cc_basename in
10139 cl*)
10140 # Native MSVC
10141 hardcode_libdir_flag_spec=' '
10142 allow_undefined_flag=unsupported
10143 always_export_symbols=yes
10144 file_list_spec='@'
10145 # Tell ltmain to make .lib files, not .a files.
10146 libext=lib
10147 # Tell ltmain to make .dll files, not .so files.
10148 shrext_cmds=".dll"
10149 # FIXME: Setting linknames here is a bad hack.
10150 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10151 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10152 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10153 else
10154 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10157 linknames='
10158 # The linker will not automatically build a static lib if we build a DLL.
10159 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10160 enable_shared_with_static_runtimes=yes
10161 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10163 # Don't use ranlib
10164 old_postinstall_cmds='chmod 644 $oldlib'
10165 postlink_cmds='lt_outputfile="@OUTPUT@"~
10166 lt_tool_outputfile="@TOOL_OUTPUT@"~
10167 case $lt_outputfile in
10168 *.exe|*.EXE) ;;
10170 lt_outputfile="$lt_outputfile.exe"
10171 lt_tool_outputfile="$lt_tool_outputfile.exe"
10173 esac~
10174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10176 $RM "$lt_outputfile.manifest";
10180 # Assume MSVC wrapper
10181 hardcode_libdir_flag_spec=' '
10182 allow_undefined_flag=unsupported
10183 # Tell ltmain to make .lib files, not .a files.
10184 libext=lib
10185 # Tell ltmain to make .dll files, not .so files.
10186 shrext_cmds=".dll"
10187 # FIXME: Setting linknames here is a bad hack.
10188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10189 # The linker will automatically build a .lib file if we build a DLL.
10190 old_archive_from_new_cmds='true'
10191 # FIXME: Should let the user specify the lib program.
10192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10193 enable_shared_with_static_runtimes=yes
10195 esac
10198 darwin* | rhapsody*)
10201 archive_cmds_need_lc=no
10202 hardcode_direct=no
10203 hardcode_automatic=yes
10204 hardcode_shlibpath_var=unsupported
10205 if test "$lt_cv_ld_force_load" = "yes"; then
10206 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\"`'
10208 else
10209 whole_archive_flag_spec=''
10211 link_all_deplibs=yes
10212 allow_undefined_flag="$_lt_dar_allow_undefined"
10213 case $cc_basename in
10214 ifort*) _lt_dar_can_shared=yes ;;
10215 *) _lt_dar_can_shared=$GCC ;;
10216 esac
10217 if test "$_lt_dar_can_shared" = "yes"; then
10218 output_verbose_link_cmd=func_echo_all
10219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10221 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}"
10222 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}"
10224 else
10225 ld_shlibs=no
10230 dgux*)
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_shlibpath_var=no
10236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10237 # support. Future versions do this automatically, but an explicit c++rt0.o
10238 # does not break anything, and helps significantly (at the cost of a little
10239 # extra space).
10240 freebsd2.2*)
10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10242 hardcode_libdir_flag_spec='-R$libdir'
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10248 freebsd2.*)
10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_direct=yes
10251 hardcode_minus_L=yes
10252 hardcode_shlibpath_var=no
10255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10256 freebsd* | dragonfly*)
10257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10258 hardcode_libdir_flag_spec='-R$libdir'
10259 hardcode_direct=yes
10260 hardcode_shlibpath_var=no
10263 hpux9*)
10264 if test "$GCC" = yes; then
10265 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10266 else
10267 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10270 hardcode_libdir_separator=:
10271 hardcode_direct=yes
10273 # hardcode_minus_L: Not really in the search PATH,
10274 # but as the default location of the library.
10275 hardcode_minus_L=yes
10276 export_dynamic_flag_spec='${wl}-E'
10279 hpux10*)
10280 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10281 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10282 else
10283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10285 if test "$with_gnu_ld" = no; then
10286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10287 hardcode_libdir_separator=:
10288 hardcode_direct=yes
10289 hardcode_direct_absolute=yes
10290 export_dynamic_flag_spec='${wl}-E'
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10297 hpux11*)
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 case $host_cpu in
10300 hppa*64*)
10301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 ia64*)
10304 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10309 esac
10310 else
10311 case $host_cpu in
10312 hppa*64*)
10313 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 ia64*)
10316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320 # Older versions of the 11.00 compiler do not understand -b yet
10321 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10323 $as_echo_n "checking if $CC understands -b... " >&6; }
10324 if ${lt_cv_prog_compiler__b+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 lt_cv_prog_compiler__b=no
10328 save_LDFLAGS="$LDFLAGS"
10329 LDFLAGS="$LDFLAGS -b"
10330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10332 # The linker can only warn and ignore the option if not recognized
10333 # So say no if there are warnings
10334 if test -s conftest.err; then
10335 # Append any errors to the config.log.
10336 cat conftest.err 1>&5
10337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10339 if diff conftest.exp conftest.er2 >/dev/null; then
10340 lt_cv_prog_compiler__b=yes
10342 else
10343 lt_cv_prog_compiler__b=yes
10346 $RM -r conftest*
10347 LDFLAGS="$save_LDFLAGS"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10351 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10353 if test x"$lt_cv_prog_compiler__b" = xyes; then
10354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355 else
10356 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10360 esac
10362 if test "$with_gnu_ld" = no; then
10363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10364 hardcode_libdir_separator=:
10366 case $host_cpu in
10367 hppa*64*|ia64*)
10368 hardcode_direct=no
10369 hardcode_shlibpath_var=no
10372 hardcode_direct=yes
10373 hardcode_direct_absolute=yes
10374 export_dynamic_flag_spec='${wl}-E'
10376 # hardcode_minus_L: Not really in the search PATH,
10377 # but as the default location of the library.
10378 hardcode_minus_L=yes
10380 esac
10384 irix5* | irix6* | nonstopux*)
10385 if test "$GCC" = yes; then
10386 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'
10387 # Try to use the -exported_symbol ld option, if it does not
10388 # work, assume that -exports_file does not work either and
10389 # implicitly export all symbols.
10390 # This should be the same for all languages, so no per-tag cache variable.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10392 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10393 if ${lt_cv_irix_exported_symbol+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 save_LDFLAGS="$LDFLAGS"
10397 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 int foo (void) { return 0; }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 lt_cv_irix_exported_symbol=yes
10404 else
10405 lt_cv_irix_exported_symbol=no
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LDFLAGS="$save_LDFLAGS"
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10412 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10413 if test "$lt_cv_irix_exported_symbol" = yes; then
10414 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'
10416 else
10417 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'
10418 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'
10420 archive_cmds_need_lc='no'
10421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator=:
10423 inherit_rpath=yes
10424 link_all_deplibs=yes
10427 netbsd*)
10428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10430 else
10431 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10433 hardcode_libdir_flag_spec='-R$libdir'
10434 hardcode_direct=yes
10435 hardcode_shlibpath_var=no
10438 newsos6)
10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_direct=yes
10441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator=:
10443 hardcode_shlibpath_var=no
10446 *nto* | *qnx*)
10449 openbsd*)
10450 if test -f /usr/libexec/ld.so; then
10451 hardcode_direct=yes
10452 hardcode_shlibpath_var=no
10453 hardcode_direct_absolute=yes
10454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10458 export_dynamic_flag_spec='${wl}-E'
10459 else
10460 case $host_os in
10461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10463 hardcode_libdir_flag_spec='-R$libdir'
10466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 esac
10471 else
10472 ld_shlibs=no
10476 os2*)
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_minus_L=yes
10479 allow_undefined_flag=unsupported
10480 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10481 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10484 osf3*)
10485 if test "$GCC" = yes; then
10486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10488 else
10489 allow_undefined_flag=' -expect_unresolved \*'
10490 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'
10492 archive_cmds_need_lc='no'
10493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator=:
10497 osf4* | osf5*) # as osf3* with the addition of -msym flag
10498 if test "$GCC" = yes; then
10499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10500 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'
10501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10502 else
10503 allow_undefined_flag=' -expect_unresolved \*'
10504 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'
10505 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~
10506 $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'
10508 # Both c and cxx compiler support -rpath directly
10509 hardcode_libdir_flag_spec='-rpath $libdir'
10511 archive_cmds_need_lc='no'
10512 hardcode_libdir_separator=:
10515 solaris*)
10516 no_undefined_flag=' -z defs'
10517 if test "$GCC" = yes; then
10518 wlarc='${wl}'
10519 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $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'
10522 else
10523 case `$CC -V 2>&1` in
10524 *"Compilers 5.0"*)
10525 wlarc=''
10526 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10531 wlarc='${wl}'
10532 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10536 esac
10538 hardcode_libdir_flag_spec='-R$libdir'
10539 hardcode_shlibpath_var=no
10540 case $host_os in
10541 solaris2.[0-5] | solaris2.[0-5].*) ;;
10543 # The compiler driver will combine and reorder linker options,
10544 # but understands `-z linker_flag'. GCC discards it without `$wl',
10545 # but is careful enough not to reorder.
10546 # Supported since Solaris 2.6 (maybe 2.5.1?)
10547 if test "$GCC" = yes; then
10548 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10549 else
10550 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10553 esac
10554 link_all_deplibs=yes
10557 sunos4*)
10558 if test "x$host_vendor" = xsequent; then
10559 # Use $CC to link under sequent, because it throws in some extra .o
10560 # files that make .init and .fini sections work.
10561 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10562 else
10563 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_direct=yes
10567 hardcode_minus_L=yes
10568 hardcode_shlibpath_var=no
10571 sysv4)
10572 case $host_vendor in
10573 sni)
10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_direct=yes # is this really true???
10577 siemens)
10578 ## LD is ld it makes a PLAMLIB
10579 ## CC just makes a GrossModule.
10580 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10581 reload_cmds='$CC -r -o $output$reload_objs'
10582 hardcode_direct=no
10584 motorola)
10585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10588 esac
10589 runpath_var='LD_RUN_PATH'
10590 hardcode_shlibpath_var=no
10593 sysv4.3*)
10594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_shlibpath_var=no
10596 export_dynamic_flag_spec='-Bexport'
10599 sysv4*MP*)
10600 if test -d /usr/nec; then
10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_shlibpath_var=no
10603 runpath_var=LD_RUN_PATH
10604 hardcode_runpath_var=yes
10605 ld_shlibs=yes
10609 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10610 no_undefined_flag='${wl}-z,text'
10611 archive_cmds_need_lc=no
10612 hardcode_shlibpath_var=no
10613 runpath_var='LD_RUN_PATH'
10615 if test "$GCC" = yes; then
10616 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 else
10619 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 sysv5* | sco3.2v5* | sco5v6*)
10625 # Note: We can NOT use -z defs as we might desire, because we do not
10626 # link with -lc, and that would cause any symbols used from libc to
10627 # always be unresolved, which means just about no library would
10628 # ever link correctly. If we're not using GNU ld we use -z text
10629 # though, which does catch some bad symbols but isn't as heavy-handed
10630 # as -z defs.
10631 no_undefined_flag='${wl}-z,text'
10632 allow_undefined_flag='${wl}-z,nodefs'
10633 archive_cmds_need_lc=no
10634 hardcode_shlibpath_var=no
10635 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10636 hardcode_libdir_separator=':'
10637 link_all_deplibs=yes
10638 export_dynamic_flag_spec='${wl}-Bexport'
10639 runpath_var='LD_RUN_PATH'
10641 if test "$GCC" = yes; then
10642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 else
10645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 uts4*)
10651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_libdir_flag_spec='-L$libdir'
10653 hardcode_shlibpath_var=no
10657 ld_shlibs=no
10659 esac
10661 if test x$host_vendor = xsni; then
10662 case $host in
10663 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10664 export_dynamic_flag_spec='${wl}-Blargedynsym'
10666 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10671 $as_echo "$ld_shlibs" >&6; }
10672 test "$ld_shlibs" = no && can_build_shared=no
10674 with_gnu_ld=$with_gnu_ld
10691 # Do we need to explicitly link libc?
10693 case "x$archive_cmds_need_lc" in
10694 x|xyes)
10695 # Assume -lc should be added
10696 archive_cmds_need_lc=yes
10698 if test "$enable_shared" = yes && test "$GCC" = yes; then
10699 case $archive_cmds in
10700 *'~'*)
10701 # FIXME: we may have to deal with multi-command sequences.
10703 '$CC '*)
10704 # Test whether the compiler implicitly links with -lc since on some
10705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10706 # to ld, don't add -lc before -lgcc.
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10708 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10709 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 $RM conftest*
10713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10716 (eval $ac_compile) 2>&5
10717 ac_status=$?
10718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10719 test $ac_status = 0; } 2>conftest.err; then
10720 soname=conftest
10721 lib=conftest
10722 libobjs=conftest.$ac_objext
10723 deplibs=
10724 wl=$lt_prog_compiler_wl
10725 pic_flag=$lt_prog_compiler_pic
10726 compiler_flags=-v
10727 linker_flags=-v
10728 verstring=
10729 output_objdir=.
10730 libname=conftest
10731 lt_save_allow_undefined_flag=$allow_undefined_flag
10732 allow_undefined_flag=
10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10734 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; }
10738 then
10739 lt_cv_archive_cmds_need_lc=no
10740 else
10741 lt_cv_archive_cmds_need_lc=yes
10743 allow_undefined_flag=$lt_save_allow_undefined_flag
10744 else
10745 cat conftest.err 1>&5
10747 $RM conftest*
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10751 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10752 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10754 esac
10757 esac
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10911 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10913 if test "$GCC" = yes; then
10914 case $host_os in
10915 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10916 *) lt_awk_arg="/^libraries:/" ;;
10917 esac
10918 case $host_os in
10919 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10920 *) lt_sed_strip_eq="s,=/,/,g" ;;
10921 esac
10922 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10923 case $lt_search_path_spec in
10924 *\;*)
10925 # if the path contains ";" then we assume it to be the separator
10926 # otherwise default to the standard path separator (i.e. ":") - it is
10927 # assumed that no part of a normal pathname contains ";" but that should
10928 # okay in the real world where ";" in dirpaths is itself problematic.
10929 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10934 esac
10935 # Ok, now we have the path, separated by spaces, we can step through it
10936 # and add multilib dir if necessary.
10937 lt_tmp_lt_search_path_spec=
10938 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10939 for lt_sys_path in $lt_search_path_spec; do
10940 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10941 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10942 else
10943 test -d "$lt_sys_path" && \
10944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10946 done
10947 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10948 BEGIN {RS=" "; FS="/|\n";} {
10949 lt_foo="";
10950 lt_count=0;
10951 for (lt_i = NF; lt_i > 0; lt_i--) {
10952 if ($lt_i != "" && $lt_i != ".") {
10953 if ($lt_i == "..") {
10954 lt_count++;
10955 } else {
10956 if (lt_count == 0) {
10957 lt_foo="/" $lt_i lt_foo;
10958 } else {
10959 lt_count--;
10964 if (lt_foo != "") { lt_freq[lt_foo]++; }
10965 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10967 # AWK program above erroneously prepends '/' to C:/dos/paths
10968 # for these hosts.
10969 case $host_os in
10970 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10971 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10972 esac
10973 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10974 else
10975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10977 library_names_spec=
10978 libname_spec='lib$name'
10979 soname_spec=
10980 shrext_cmds=".so"
10981 postinstall_cmds=
10982 postuninstall_cmds=
10983 finish_cmds=
10984 finish_eval=
10985 shlibpath_var=
10986 shlibpath_overrides_runpath=unknown
10987 version_type=none
10988 dynamic_linker="$host_os ld.so"
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10990 need_lib_prefix=unknown
10991 hardcode_into_libs=no
10993 # when you set need_version to no, make sure it does not cause -set_version
10994 # flags to be left without arguments
10995 need_version=unknown
10997 case $host_os in
10998 aix3*)
10999 version_type=linux # correct to gnu/linux during the next big refactor
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11001 shlibpath_var=LIBPATH
11003 # AIX 3 has no versioning support, so we append a major version to the name.
11004 soname_spec='${libname}${release}${shared_ext}$major'
11007 aix[4-9]*)
11008 version_type=linux # correct to gnu/linux during the next big refactor
11009 need_lib_prefix=no
11010 need_version=no
11011 hardcode_into_libs=yes
11012 if test "$host_cpu" = ia64; then
11013 # AIX 5 supports IA64
11014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 else
11017 # With GCC up to 2.95.x, collect2 would create an import file
11018 # for dependence libraries. The import file would start with
11019 # the line `#! .'. This would cause the generated library to
11020 # depend on `.', always an invalid library. This was fixed in
11021 # development snapshots of GCC prior to 3.0.
11022 case $host_os in
11023 aix4 | aix4.[01] | aix4.[01].*)
11024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11025 echo ' yes '
11026 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11028 else
11029 can_build_shared=no
11032 esac
11033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11034 # soname into executable. Probably we can add versioning support to
11035 # collect2, so additional links can be useful in future.
11036 if test "$aix_use_runtimelinking" = yes; then
11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11038 # instead of lib<name>.a to let people know that these are not
11039 # typical AIX shared libraries.
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 else
11042 # We preserve .a as extension for shared libraries through AIX4.2
11043 # and later when we are not doing run time linking.
11044 library_names_spec='${libname}${release}.a $libname.a'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LIBPATH
11051 amigaos*)
11052 case $host_cpu in
11053 powerpc)
11054 # Since July 2007 AmigaOS4 officially supports .so libraries.
11055 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 m68k)
11059 library_names_spec='$libname.ixlibrary $libname.a'
11060 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11061 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11063 esac
11066 beos*)
11067 library_names_spec='${libname}${shared_ext}'
11068 dynamic_linker="$host_os ld.so"
11069 shlibpath_var=LIBRARY_PATH
11072 bsdi[45]*)
11073 version_type=linux # correct to gnu/linux during the next big refactor
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11081 # the default ld.so.conf also contains /usr/contrib/lib and
11082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11083 # libtool to hard-code these into programs
11086 cygwin* | mingw* | pw32* | cegcc*)
11087 version_type=windows
11088 shrext_cmds=".dll"
11089 need_version=no
11090 need_lib_prefix=no
11092 case $GCC,$cc_basename in
11093 yes,*)
11094 # gcc
11095 library_names_spec='$libname.dll.a'
11096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11097 postinstall_cmds='base_file=`basename \${file}`~
11098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11099 dldir=$destdir/`dirname \$dlpath`~
11100 test -d \$dldir || mkdir -p \$dldir~
11101 $install_prog $dir/$dlname \$dldir/$dlname~
11102 chmod a+x \$dldir/$dlname~
11103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11104 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11107 dlpath=$dir/\$dldll~
11108 $RM \$dlpath'
11109 shlibpath_overrides_runpath=yes
11111 case $host_os in
11112 cygwin*)
11113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11116 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11118 mingw* | cegcc*)
11119 # MinGW DLLs use traditional 'lib' prefix
11120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11122 pw32*)
11123 # pw32 DLLs use 'pw' prefix rather than 'lib'
11124 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11126 esac
11127 dynamic_linker='Win32 ld.exe'
11130 *,cl*)
11131 # Native MSVC
11132 libname_spec='$name'
11133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134 library_names_spec='${libname}.dll.lib'
11136 case $build_os in
11137 mingw*)
11138 sys_lib_search_path_spec=
11139 lt_save_ifs=$IFS
11140 IFS=';'
11141 for lt_path in $LIB
11143 IFS=$lt_save_ifs
11144 # Let DOS variable expansion print the short 8.3 style file name.
11145 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11146 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11147 done
11148 IFS=$lt_save_ifs
11149 # Convert to MSYS style.
11150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11152 cygwin*)
11153 # Convert to unix form, then to dos form, then back to unix form
11154 # but this time dos style (no spaces!) so that the unix form looks
11155 # like /cygdrive/c/PROGRA~1:/cygdr...
11156 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11157 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11158 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11161 sys_lib_search_path_spec="$LIB"
11162 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11163 # It is most probably a Windows format PATH.
11164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11165 else
11166 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11168 # FIXME: find the short name or the path components, as spaces are
11169 # common. (e.g. "Program Files" -> "PROGRA~1")
11171 esac
11173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11174 postinstall_cmds='base_file=`basename \${file}`~
11175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11176 dldir=$destdir/`dirname \$dlpath`~
11177 test -d \$dldir || mkdir -p \$dldir~
11178 $install_prog $dir/$dlname \$dldir/$dlname'
11179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11180 dlpath=$dir/\$dldll~
11181 $RM \$dlpath'
11182 shlibpath_overrides_runpath=yes
11183 dynamic_linker='Win32 link.exe'
11187 # Assume MSVC wrapper
11188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11189 dynamic_linker='Win32 ld.exe'
11191 esac
11192 # FIXME: first we should search . and the directory the executable is in
11193 shlibpath_var=PATH
11196 darwin* | rhapsody*)
11197 dynamic_linker="$host_os dyld"
11198 version_type=darwin
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11202 soname_spec='${libname}${release}${major}$shared_ext'
11203 shlibpath_overrides_runpath=yes
11204 shlibpath_var=DYLD_LIBRARY_PATH
11205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11211 dgux*)
11212 version_type=linux # correct to gnu/linux during the next big refactor
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11220 freebsd* | dragonfly*)
11221 # DragonFly does not have aout. When/if they implement a new
11222 # versioning mechanism, adjust this.
11223 if test -x /usr/bin/objformat; then
11224 objformat=`/usr/bin/objformat`
11225 else
11226 case $host_os in
11227 freebsd[23].*) objformat=aout ;;
11228 *) objformat=elf ;;
11229 esac
11231 version_type=freebsd-$objformat
11232 case $version_type in
11233 freebsd-elf*)
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11235 need_version=no
11236 need_lib_prefix=no
11238 freebsd-*)
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11240 need_version=yes
11242 esac
11243 shlibpath_var=LD_LIBRARY_PATH
11244 case $host_os in
11245 freebsd2.*)
11246 shlibpath_overrides_runpath=yes
11248 freebsd3.[01]* | freebsdelf3.[01]*)
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11254 shlibpath_overrides_runpath=no
11255 hardcode_into_libs=yes
11257 *) # from 4.6 on, and DragonFly
11258 shlibpath_overrides_runpath=yes
11259 hardcode_into_libs=yes
11261 esac
11264 gnu*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_lib_prefix=no
11267 need_version=no
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11275 haiku*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 dynamic_linker="$host_os runtime_loader"
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11285 hardcode_into_libs=yes
11288 hpux9* | hpux10* | hpux11*)
11289 # Give a soname corresponding to the major version so that dld.sl refuses to
11290 # link against other versions.
11291 version_type=sunos
11292 need_lib_prefix=no
11293 need_version=no
11294 case $host_cpu in
11295 ia64*)
11296 shrext_cmds='.so'
11297 hardcode_into_libs=yes
11298 dynamic_linker="$host_os dld.so"
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 if test "X$HPUX_IA64_MODE" = X32; then
11304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11305 else
11306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310 hppa*64*)
11311 shrext_cmds='.sl'
11312 hardcode_into_libs=yes
11313 dynamic_linker="$host_os dld.sl"
11314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322 shrext_cmds='.sl'
11323 dynamic_linker="$host_os dld.sl"
11324 shlibpath_var=SHLIB_PATH
11325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11329 esac
11330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11331 postinstall_cmds='chmod 555 $lib'
11332 # or fails outright, so override atomically:
11333 install_override_mode=555
11336 interix[3-9]*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 need_lib_prefix=no
11339 need_version=no
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11348 irix5* | irix6* | nonstopux*)
11349 case $host_os in
11350 nonstopux*) version_type=nonstopux ;;
11352 if test "$lt_cv_prog_gnu_ld" = yes; then
11353 version_type=linux # correct to gnu/linux during the next big refactor
11354 else
11355 version_type=irix
11356 fi ;;
11357 esac
11358 need_lib_prefix=no
11359 need_version=no
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11362 case $host_os in
11363 irix5* | nonstopux*)
11364 libsuff= shlibsuff=
11367 case $LD in # libtool.m4 will add one of these switches to LD
11368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11369 libsuff= shlibsuff= libmagic=32-bit;;
11370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11371 libsuff=32 shlibsuff=N32 libmagic=N32;;
11372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11374 *) libsuff= shlibsuff= libmagic=never-match;;
11375 esac
11377 esac
11378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11379 shlibpath_overrides_runpath=no
11380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11382 hardcode_into_libs=yes
11385 # No shared lib support for Linux oldld, aout, or coff.
11386 linux*oldld* | linux*aout* | linux*coff*)
11387 dynamic_linker=no
11390 # This must be glibc/ELF.
11391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11401 # Some binutils ld are patched to set DT_RUNPATH
11402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 lt_cv_shlibpath_overrides_runpath=no
11406 save_LDFLAGS=$LDFLAGS
11407 save_libdir=$libdir
11408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11414 main ()
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11423 lt_cv_shlibpath_overrides_runpath=yes
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LDFLAGS=$save_LDFLAGS
11429 libdir=$save_libdir
11433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11435 # This implies no fast_install, which is unacceptable.
11436 # Some rework will be needed to allow for fast_install
11437 # before this can be enabled.
11438 hardcode_into_libs=yes
11440 # Append ld.so.conf contents to the search path
11441 if test -f /etc/ld.so.conf; then
11442 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' ' '`
11443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11446 # We used to test for /lib/ld.so.1 and disable shared libraries on
11447 # powerpc, because MkLinux only supported shared libraries with the
11448 # GNU dynamic linker. Since this was broken with cross compilers,
11449 # most powerpc-linux boxes support dynamic linking these days and
11450 # people can always --disable-shared, the test was removed, and we
11451 # assume the GNU/Linux dynamic linker is in use.
11452 dynamic_linker='GNU/Linux ld.so'
11455 netbsd*)
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462 dynamic_linker='NetBSD (a.out) ld.so'
11463 else
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 dynamic_linker='NetBSD ld.elf_so'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 hardcode_into_libs=yes
11473 newsos6)
11474 version_type=linux # correct to gnu/linux during the next big refactor
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=yes
11480 *nto* | *qnx*)
11481 version_type=qnx
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11489 dynamic_linker='ldqnx.so'
11492 openbsd*)
11493 version_type=sunos
11494 sys_lib_dlsearch_path_spec="/usr/lib"
11495 need_lib_prefix=no
11496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11497 case $host_os in
11498 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11499 *) need_version=no ;;
11500 esac
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505 case $host_os in
11506 openbsd2.[89] | openbsd2.[89].*)
11507 shlibpath_overrides_runpath=no
11510 shlibpath_overrides_runpath=yes
11512 esac
11513 else
11514 shlibpath_overrides_runpath=yes
11518 os2*)
11519 libname_spec='$name'
11520 shrext_cmds=".dll"
11521 need_lib_prefix=no
11522 library_names_spec='$libname${shared_ext} $libname.a'
11523 dynamic_linker='OS/2 ld.exe'
11524 shlibpath_var=LIBPATH
11527 osf3* | osf4* | osf5*)
11528 version_type=osf
11529 need_lib_prefix=no
11530 need_version=no
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11538 rdos*)
11539 dynamic_linker=no
11542 solaris*)
11543 version_type=linux # correct to gnu/linux during the next big refactor
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 # ldd complains unless libraries are executable
11552 postinstall_cmds='chmod +x $lib'
11555 sunos4*)
11556 version_type=sunos
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 if test "$with_gnu_ld" = yes; then
11562 need_lib_prefix=no
11564 need_version=yes
11567 sysv4 | sysv4.3*)
11568 version_type=linux # correct to gnu/linux during the next big refactor
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 case $host_vendor in
11573 sni)
11574 shlibpath_overrides_runpath=no
11575 need_lib_prefix=no
11576 runpath_var=LD_RUN_PATH
11578 siemens)
11579 need_lib_prefix=no
11581 motorola)
11582 need_lib_prefix=no
11583 need_version=no
11584 shlibpath_overrides_runpath=no
11585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11587 esac
11590 sysv4*MP*)
11591 if test -d /usr/nec ;then
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11594 soname_spec='$libname${shared_ext}.$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11600 version_type=freebsd-elf
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes
11607 hardcode_into_libs=yes
11608 if test "$with_gnu_ld" = yes; then
11609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11610 else
11611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11612 case $host_os in
11613 sco3.2v5*)
11614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11616 esac
11618 sys_lib_dlsearch_path_spec='/usr/lib'
11621 tpf*)
11622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 need_lib_prefix=no
11625 need_version=no
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 hardcode_into_libs=yes
11632 uts4*)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11640 dynamic_linker=no
11642 esac
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11644 $as_echo "$dynamic_linker" >&6; }
11645 test "$dynamic_linker" = no && can_build_shared=no
11647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11648 if test "$GCC" = yes; then
11649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11652 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11653 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11655 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11656 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11752 hardcode_action=
11753 if test -n "$hardcode_libdir_flag_spec" ||
11754 test -n "$runpath_var" ||
11755 test "X$hardcode_automatic" = "Xyes" ; then
11757 # We can hardcode non-existent directories.
11758 if test "$hardcode_direct" != no &&
11759 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11760 # have to relink, otherwise we might link with an installed library
11761 # when we should be linking with a yet-to-be-installed one
11762 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11763 test "$hardcode_minus_L" != no; then
11764 # Linking always hardcodes the temporary library directory.
11765 hardcode_action=relink
11766 else
11767 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11768 hardcode_action=immediate
11770 else
11771 # We cannot hardcode anything, or else we can only hardcode existing
11772 # directories.
11773 hardcode_action=unsupported
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11776 $as_echo "$hardcode_action" >&6; }
11778 if test "$hardcode_action" = relink ||
11779 test "$inherit_rpath" = yes; then
11780 # Fast installation is not supported
11781 enable_fast_install=no
11782 elif test "$shlibpath_overrides_runpath" = yes ||
11783 test "$enable_shared" = no; then
11784 # Fast installation is not necessary
11785 enable_fast_install=needless
11793 if test "x$enable_dlopen" != xyes; then
11794 enable_dlopen=unknown
11795 enable_dlopen_self=unknown
11796 enable_dlopen_self_static=unknown
11797 else
11798 lt_cv_dlopen=no
11799 lt_cv_dlopen_libs=
11801 case $host_os in
11802 beos*)
11803 lt_cv_dlopen="load_add_on"
11804 lt_cv_dlopen_libs=
11805 lt_cv_dlopen_self=yes
11808 mingw* | pw32* | cegcc*)
11809 lt_cv_dlopen="LoadLibrary"
11810 lt_cv_dlopen_libs=
11813 cygwin*)
11814 lt_cv_dlopen="dlopen"
11815 lt_cv_dlopen_libs=
11818 darwin*)
11819 # if libdl is installed we need to link against it
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11822 if ${ac_cv_lib_dl_dlopen+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-ldl $LIBS"
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11830 /* Override any GCC internal prototype to avoid an error.
11831 Use char because int might match the return type of a GCC
11832 builtin and then its argument prototype would still apply. */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
11836 char dlopen ();
11838 main ()
11840 return dlopen ();
11842 return 0;
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 ac_cv_lib_dl_dlopen=yes
11847 else
11848 ac_cv_lib_dl_dlopen=no
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LIBS=$ac_check_lib_save_LIBS
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11858 else
11860 lt_cv_dlopen="dyld"
11861 lt_cv_dlopen_libs=
11862 lt_cv_dlopen_self=yes
11869 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11870 if test "x$ac_cv_func_shl_load" = xyes; then :
11871 lt_cv_dlopen="shl_load"
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11874 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11875 if ${ac_cv_lib_dld_shl_load+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-ldld $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char shl_load ();
11891 main ()
11893 return shl_load ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 ac_cv_lib_dld_shl_load=yes
11900 else
11901 ac_cv_lib_dld_shl_load=no
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11908 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11909 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11910 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11911 else
11912 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11913 if test "x$ac_cv_func_dlopen" = xyes; then :
11914 lt_cv_dlopen="dlopen"
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11918 if ${ac_cv_lib_dl_dlopen+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-ldl $LIBS"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char dlopen ();
11934 main ()
11936 return dlopen ();
11938 return 0;
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 ac_cv_lib_dl_dlopen=yes
11943 else
11944 ac_cv_lib_dl_dlopen=no
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11952 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11956 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11957 if ${ac_cv_lib_svld_dlopen+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lsvld $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char dlopen ();
11973 main ()
11975 return dlopen ();
11977 return 0;
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_svld_dlopen=yes
11982 else
11983 ac_cv_lib_svld_dlopen=no
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11990 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11991 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11995 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11996 if ${ac_cv_lib_dld_dld_link+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-ldld $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char dld_link ();
12012 main ()
12014 return dld_link ();
12016 return 0;
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_dld_dld_link=yes
12021 else
12022 ac_cv_lib_dld_dld_link=no
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12029 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12030 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12031 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12050 esac
12052 if test "x$lt_cv_dlopen" != xno; then
12053 enable_dlopen=yes
12054 else
12055 enable_dlopen=no
12058 case $lt_cv_dlopen in
12059 dlopen)
12060 save_CPPFLAGS="$CPPFLAGS"
12061 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12063 save_LDFLAGS="$LDFLAGS"
12064 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12066 save_LIBS="$LIBS"
12067 LIBS="$lt_cv_dlopen_libs $LIBS"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12070 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12071 if ${lt_cv_dlopen_self+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test "$cross_compiling" = yes; then :
12075 lt_cv_dlopen_self=cross
12076 else
12077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12078 lt_status=$lt_dlunknown
12079 cat > conftest.$ac_ext <<_LT_EOF
12080 #line $LINENO "configure"
12081 #include "confdefs.h"
12083 #if HAVE_DLFCN_H
12084 #include <dlfcn.h>
12085 #endif
12087 #include <stdio.h>
12089 #ifdef RTLD_GLOBAL
12090 # define LT_DLGLOBAL RTLD_GLOBAL
12091 #else
12092 # ifdef DL_GLOBAL
12093 # define LT_DLGLOBAL DL_GLOBAL
12094 # else
12095 # define LT_DLGLOBAL 0
12096 # endif
12097 #endif
12099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12100 find out it does not work in some platform. */
12101 #ifndef LT_DLLAZY_OR_NOW
12102 # ifdef RTLD_LAZY
12103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12104 # else
12105 # ifdef DL_LAZY
12106 # define LT_DLLAZY_OR_NOW DL_LAZY
12107 # else
12108 # ifdef RTLD_NOW
12109 # define LT_DLLAZY_OR_NOW RTLD_NOW
12110 # else
12111 # ifdef DL_NOW
12112 # define LT_DLLAZY_OR_NOW DL_NOW
12113 # else
12114 # define LT_DLLAZY_OR_NOW 0
12115 # endif
12116 # endif
12117 # endif
12118 # endif
12119 #endif
12121 /* When -fvisbility=hidden is used, assume the code has been annotated
12122 correspondingly for the symbols needed. */
12123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12124 int fnord () __attribute__((visibility("default")));
12125 #endif
12127 int fnord () { return 42; }
12128 int main ()
12130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12131 int status = $lt_dlunknown;
12133 if (self)
12135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12136 else
12138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12139 else puts (dlerror ());
12141 /* dlclose (self); */
12143 else
12144 puts (dlerror ());
12146 return status;
12148 _LT_EOF
12149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12150 (eval $ac_link) 2>&5
12151 ac_status=$?
12152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12154 (./conftest; exit; ) >&5 2>/dev/null
12155 lt_status=$?
12156 case x$lt_status in
12157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12160 esac
12161 else :
12162 # compilation failed
12163 lt_cv_dlopen_self=no
12166 rm -fr conftest*
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12171 $as_echo "$lt_cv_dlopen_self" >&6; }
12173 if test "x$lt_cv_dlopen_self" = xyes; then
12174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12176 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12177 if ${lt_cv_dlopen_self_static+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test "$cross_compiling" = yes; then :
12181 lt_cv_dlopen_self_static=cross
12182 else
12183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12184 lt_status=$lt_dlunknown
12185 cat > conftest.$ac_ext <<_LT_EOF
12186 #line $LINENO "configure"
12187 #include "confdefs.h"
12189 #if HAVE_DLFCN_H
12190 #include <dlfcn.h>
12191 #endif
12193 #include <stdio.h>
12195 #ifdef RTLD_GLOBAL
12196 # define LT_DLGLOBAL RTLD_GLOBAL
12197 #else
12198 # ifdef DL_GLOBAL
12199 # define LT_DLGLOBAL DL_GLOBAL
12200 # else
12201 # define LT_DLGLOBAL 0
12202 # endif
12203 #endif
12205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12206 find out it does not work in some platform. */
12207 #ifndef LT_DLLAZY_OR_NOW
12208 # ifdef RTLD_LAZY
12209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12210 # else
12211 # ifdef DL_LAZY
12212 # define LT_DLLAZY_OR_NOW DL_LAZY
12213 # else
12214 # ifdef RTLD_NOW
12215 # define LT_DLLAZY_OR_NOW RTLD_NOW
12216 # else
12217 # ifdef DL_NOW
12218 # define LT_DLLAZY_OR_NOW DL_NOW
12219 # else
12220 # define LT_DLLAZY_OR_NOW 0
12221 # endif
12222 # endif
12223 # endif
12224 # endif
12225 #endif
12227 /* When -fvisbility=hidden is used, assume the code has been annotated
12228 correspondingly for the symbols needed. */
12229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12230 int fnord () __attribute__((visibility("default")));
12231 #endif
12233 int fnord () { return 42; }
12234 int main ()
12236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12237 int status = $lt_dlunknown;
12239 if (self)
12241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12242 else
12244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12245 else puts (dlerror ());
12247 /* dlclose (self); */
12249 else
12250 puts (dlerror ());
12252 return status;
12254 _LT_EOF
12255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12256 (eval $ac_link) 2>&5
12257 ac_status=$?
12258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12259 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12260 (./conftest; exit; ) >&5 2>/dev/null
12261 lt_status=$?
12262 case x$lt_status in
12263 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12264 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12265 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12266 esac
12267 else :
12268 # compilation failed
12269 lt_cv_dlopen_self_static=no
12272 rm -fr conftest*
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12277 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12280 CPPFLAGS="$save_CPPFLAGS"
12281 LDFLAGS="$save_LDFLAGS"
12282 LIBS="$save_LIBS"
12284 esac
12286 case $lt_cv_dlopen_self in
12287 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12288 *) enable_dlopen_self=unknown ;;
12289 esac
12291 case $lt_cv_dlopen_self_static in
12292 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12293 *) enable_dlopen_self_static=unknown ;;
12294 esac
12313 striplib=
12314 old_striplib=
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12316 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12317 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12318 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12319 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 else
12323 # FIXME - insert some real tests, host_os isn't really good enough
12324 case $host_os in
12325 darwin*)
12326 if test -n "$STRIP" ; then
12327 striplib="$STRIP -x"
12328 old_striplib="$STRIP -S"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330 $as_echo "yes" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12340 esac
12354 # Report which library types will actually be built
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12358 $as_echo "$can_build_shared" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12361 $as_echo_n "checking whether to build shared libraries... " >&6; }
12362 test "$can_build_shared" = "no" && enable_shared=no
12364 # On AIX, shared libraries and static libraries use the same namespace, and
12365 # are all built from PIC.
12366 case $host_os in
12367 aix3*)
12368 test "$enable_shared" = yes && enable_static=no
12369 if test -n "$RANLIB"; then
12370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12371 postinstall_cmds='$RANLIB $lib'
12375 aix[4-9]*)
12376 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12377 test "$enable_shared" = yes && enable_static=no
12380 esac
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12382 $as_echo "$enable_shared" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12385 $as_echo_n "checking whether to build static libraries... " >&6; }
12386 # Make sure either enable_shared or enable_static is yes.
12387 test "$enable_shared" = yes || enable_static=yes
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12389 $as_echo "$enable_static" >&6; }
12395 ac_ext=c
12396 ac_cpp='$CPP $CPPFLAGS'
12397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401 CC="$lt_save_CC"
12417 ac_config_commands="$ac_config_commands libtool"
12422 # Only expand once:
12427 # Extract the first word of "ar", so it can be a program name with args.
12428 set dummy ar; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_AR+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $AR in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12454 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12456 esac
12458 AR=$ac_cv_path_AR
12459 if test -n "$AR"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12461 $as_echo "$AR" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12468 # Extract the first word of "rm", so it can be a program name with args.
12469 set dummy rm; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_path_RM+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 case $RM in
12476 [\\/]* | ?:[\\/]*)
12477 ac_cv_path_RM="$RM" # Let the user override the test with a path.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12495 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
12497 esac
12499 RM=$ac_cv_path_RM
12500 if test -n "$RM"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12502 $as_echo "$RM" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12509 # Extract the first word of "cp", so it can be a program name with args.
12510 set dummy cp; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_path_CP+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 case $CP in
12517 [\\/]* | ?:[\\/]*)
12518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12534 IFS=$as_save_IFS
12536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
12538 esac
12540 CP=$ac_cv_path_CP
12541 if test -n "$CP"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
12543 $as_echo "$CP" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 # Extract the first word of "ln", so it can be a program name with args.
12551 set dummy ln; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_path_LN+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $LN in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_LN="$LN" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12577 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
12579 esac
12581 LN=$ac_cv_path_LN
12582 if test -n "$LN"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
12584 $as_echo "$LN" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12591 # Extract the first word of "ls", so it can be a program name with args.
12592 set dummy ls; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_path_LS+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 case $LS in
12599 [\\/]* | ?:[\\/]*)
12600 ac_cv_path_LS="$LS" # Let the user override the test with a path.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12610 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12614 done
12615 done
12616 IFS=$as_save_IFS
12618 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
12620 esac
12622 LS=$ac_cv_path_LS
12623 if test -n "$LS"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
12625 $as_echo "$LS" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12632 # Extract the first word of "sed", so it can be a program name with args.
12633 set dummy sed; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_SED+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 case $SED in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12655 done
12656 done
12657 IFS=$as_save_IFS
12659 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12661 esac
12663 SED=$ac_cv_path_SED
12664 if test -n "$SED"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12666 $as_echo "$SED" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12673 # Extract the first word of "make", so it can be a program name with args.
12674 set dummy make; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if ${ac_cv_path_MAKE+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 case $MAKE in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12701 esac
12703 MAKE=$ac_cv_path_MAKE
12704 if test -n "$MAKE"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
12706 $as_echo "$MAKE" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12718 $as_echo_n "checking whether NLS is requested... " >&6; }
12719 # Check whether --enable-nls was given.
12720 if test "${enable_nls+set}" = set; then :
12721 enableval=$enable_nls; USE_NLS=$enableval
12722 else
12723 USE_NLS=yes
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12727 $as_echo "$USE_NLS" >&6; }
12734 # Prepare PATH_SEPARATOR.
12735 # The user is always right.
12736 if test "${PATH_SEPARATOR+set}" != set; then
12737 echo "#! /bin/sh" >conf$$.sh
12738 echo "exit 0" >>conf$$.sh
12739 chmod +x conf$$.sh
12740 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12741 PATH_SEPARATOR=';'
12742 else
12743 PATH_SEPARATOR=:
12745 rm -f conf$$.sh
12748 # Find out how to test for executable files. Don't use a zero-byte file,
12749 # as systems may use methods other than mode bits to determine executability.
12750 cat >conf$$.file <<_ASEOF
12751 #! /bin/sh
12752 exit 0
12753 _ASEOF
12754 chmod +x conf$$.file
12755 if test -x conf$$.file >/dev/null 2>&1; then
12756 ac_executable_p="test -x"
12757 else
12758 ac_executable_p="test -f"
12760 rm -f conf$$.file
12762 # Extract the first word of "msgfmt", so it can be a program name with args.
12763 set dummy msgfmt; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_MSGFMT+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case "$MSGFMT" in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12774 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12775 for ac_dir in $PATH; do
12776 IFS="$ac_save_IFS"
12777 test -z "$ac_dir" && ac_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12780 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12781 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12782 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12783 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12784 break 2
12787 done
12788 done
12789 IFS="$ac_save_IFS"
12790 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12792 esac
12794 MSGFMT="$ac_cv_path_MSGFMT"
12795 if test "$MSGFMT" != ":"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12797 $as_echo "$MSGFMT" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12803 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12804 set dummy gmsgfmt; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_path_GMSGFMT+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 case $GMSGFMT in
12811 [\\/]* | ?:[\\/]*)
12812 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12830 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12832 esac
12834 GMSGFMT=$ac_cv_path_GMSGFMT
12835 if test -n "$GMSGFMT"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12837 $as_echo "$GMSGFMT" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12845 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12846 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12847 *) MSGFMT_015=$MSGFMT ;;
12848 esac
12850 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12851 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12852 *) GMSGFMT_015=$GMSGFMT ;;
12853 esac
12857 # Prepare PATH_SEPARATOR.
12858 # The user is always right.
12859 if test "${PATH_SEPARATOR+set}" != set; then
12860 echo "#! /bin/sh" >conf$$.sh
12861 echo "exit 0" >>conf$$.sh
12862 chmod +x conf$$.sh
12863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12864 PATH_SEPARATOR=';'
12865 else
12866 PATH_SEPARATOR=:
12868 rm -f conf$$.sh
12871 # Find out how to test for executable files. Don't use a zero-byte file,
12872 # as systems may use methods other than mode bits to determine executability.
12873 cat >conf$$.file <<_ASEOF
12874 #! /bin/sh
12875 exit 0
12876 _ASEOF
12877 chmod +x conf$$.file
12878 if test -x conf$$.file >/dev/null 2>&1; then
12879 ac_executable_p="test -x"
12880 else
12881 ac_executable_p="test -f"
12883 rm -f conf$$.file
12885 # Extract the first word of "xgettext", so it can be a program name with args.
12886 set dummy xgettext; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if ${ac_cv_path_XGETTEXT+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 case "$XGETTEXT" in
12893 [\\/]* | ?:[\\/]*)
12894 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12897 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12898 for ac_dir in $PATH; do
12899 IFS="$ac_save_IFS"
12900 test -z "$ac_dir" && ac_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12903 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12904 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12905 (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
12906 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12907 break 2
12910 done
12911 done
12912 IFS="$ac_save_IFS"
12913 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12915 esac
12917 XGETTEXT="$ac_cv_path_XGETTEXT"
12918 if test "$XGETTEXT" != ":"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12920 $as_echo "$XGETTEXT" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12926 rm -f messages.po
12928 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12929 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12930 *) XGETTEXT_015=$XGETTEXT ;;
12931 esac
12935 # Prepare PATH_SEPARATOR.
12936 # The user is always right.
12937 if test "${PATH_SEPARATOR+set}" != set; then
12938 echo "#! /bin/sh" >conf$$.sh
12939 echo "exit 0" >>conf$$.sh
12940 chmod +x conf$$.sh
12941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12942 PATH_SEPARATOR=';'
12943 else
12944 PATH_SEPARATOR=:
12946 rm -f conf$$.sh
12949 # Find out how to test for executable files. Don't use a zero-byte file,
12950 # as systems may use methods other than mode bits to determine executability.
12951 cat >conf$$.file <<_ASEOF
12952 #! /bin/sh
12953 exit 0
12954 _ASEOF
12955 chmod +x conf$$.file
12956 if test -x conf$$.file >/dev/null 2>&1; then
12957 ac_executable_p="test -x"
12958 else
12959 ac_executable_p="test -f"
12961 rm -f conf$$.file
12963 # Extract the first word of "msgmerge", so it can be a program name with args.
12964 set dummy msgmerge; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_MSGMERGE+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 case "$MSGMERGE" in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12976 for ac_dir in $PATH; do
12977 IFS="$ac_save_IFS"
12978 test -z "$ac_dir" && ac_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12981 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12982 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12983 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12984 break 2
12987 done
12988 done
12989 IFS="$ac_save_IFS"
12990 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12992 esac
12994 MSGMERGE="$ac_cv_path_MSGMERGE"
12995 if test "$MSGMERGE" != ":"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12997 $as_echo "$MSGMERGE" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13004 test -n "$localedir" || localedir='${datadir}/locale'
13007 ac_config_commands="$ac_config_commands po-directories"
13011 if test "X$prefix" = "XNONE"; then
13012 acl_final_prefix="$ac_default_prefix"
13013 else
13014 acl_final_prefix="$prefix"
13016 if test "X$exec_prefix" = "XNONE"; then
13017 acl_final_exec_prefix='${prefix}'
13018 else
13019 acl_final_exec_prefix="$exec_prefix"
13021 acl_save_prefix="$prefix"
13022 prefix="$acl_final_prefix"
13023 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13024 prefix="$acl_save_prefix"
13027 # Check whether --with-gnu-ld was given.
13028 if test "${with_gnu_ld+set}" = set; then :
13029 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13030 else
13031 with_gnu_ld=no
13034 # Prepare PATH_SEPARATOR.
13035 # The user is always right.
13036 if test "${PATH_SEPARATOR+set}" != set; then
13037 echo "#! /bin/sh" >conf$$.sh
13038 echo "exit 0" >>conf$$.sh
13039 chmod +x conf$$.sh
13040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13041 PATH_SEPARATOR=';'
13042 else
13043 PATH_SEPARATOR=:
13045 rm -f conf$$.sh
13047 ac_prog=ld
13048 if test "$GCC" = yes; then
13049 # Check if gcc -print-prog-name=ld gives a path.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13051 $as_echo_n "checking for ld used by GCC... " >&6; }
13052 case $host in
13053 *-*-mingw*)
13054 # gcc leaves a trailing carriage return which upsets mingw
13055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13058 esac
13059 case $ac_prog in
13060 # Accept absolute paths.
13061 [\\/]* | [A-Za-z]:[\\/]*)
13062 re_direlt='/[^/][^/]*/\.\./'
13063 # Canonicalize the path of ld
13064 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13066 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13067 done
13068 test -z "$LD" && LD="$ac_prog"
13071 # If it fails, then pretend we aren't using GCC.
13072 ac_prog=ld
13075 # If it is relative, then search for the first ld in PATH.
13076 with_gnu_ld=unknown
13078 esac
13079 elif test "$with_gnu_ld" = yes; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13081 $as_echo_n "checking for GNU ld... " >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13084 $as_echo_n "checking for non-GNU ld... " >&6; }
13086 if ${acl_cv_path_LD+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 if test -z "$LD"; then
13090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13091 for ac_dir in $PATH; do
13092 test -z "$ac_dir" && ac_dir=.
13093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13094 acl_cv_path_LD="$ac_dir/$ac_prog"
13095 # Check to see if the program is GNU ld. I'd rather use --version,
13096 # but apparently some GNU ld's only accept -v.
13097 # Break only if it was the GNU/non-GNU ld that we prefer.
13098 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13099 *GNU* | *'with BFD'*)
13100 test "$with_gnu_ld" != no && break ;;
13102 test "$with_gnu_ld" != yes && break ;;
13103 esac
13105 done
13106 IFS="$ac_save_ifs"
13107 else
13108 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13112 LD="$acl_cv_path_LD"
13113 if test -n "$LD"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13115 $as_echo "$LD" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13120 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13122 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13123 if ${acl_cv_prog_gnu_ld+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13127 case `$LD -v 2>&1 </dev/null` in
13128 *GNU* | *'with BFD'*)
13129 acl_cv_prog_gnu_ld=yes ;;
13131 acl_cv_prog_gnu_ld=no ;;
13132 esac
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13135 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13136 with_gnu_ld=$acl_cv_prog_gnu_ld
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13142 $as_echo_n "checking for shared library run path origin... " >&6; }
13143 if ${acl_cv_rpath+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13147 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13148 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13149 . ./conftest.sh
13150 rm -f ./conftest.sh
13151 acl_cv_rpath=done
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13155 $as_echo "$acl_cv_rpath" >&6; }
13156 wl="$acl_cv_wl"
13157 libext="$acl_cv_libext"
13158 shlibext="$acl_cv_shlibext"
13159 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13160 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13161 hardcode_direct="$acl_cv_hardcode_direct"
13162 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13163 # Check whether --enable-rpath was given.
13164 if test "${enable_rpath+set}" = set; then :
13165 enableval=$enable_rpath; :
13166 else
13167 enable_rpath=yes
13172 acl_libdirstem=lib
13173 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13174 if test -n "$searchpath"; then
13175 acl_save_IFS="${IFS= }"; IFS=":"
13176 for searchdir in $searchpath; do
13177 if test -d "$searchdir"; then
13178 case "$searchdir" in
13179 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13180 *) searchdir=`cd "$searchdir" && pwd`
13181 case "$searchdir" in
13182 */lib64 ) acl_libdirstem=lib64 ;;
13183 esac ;;
13184 esac
13186 done
13187 IFS="$acl_save_IFS"
13197 use_additional=yes
13199 acl_save_prefix="$prefix"
13200 prefix="$acl_final_prefix"
13201 acl_save_exec_prefix="$exec_prefix"
13202 exec_prefix="$acl_final_exec_prefix"
13204 eval additional_includedir=\"$includedir\"
13205 eval additional_libdir=\"$libdir\"
13207 exec_prefix="$acl_save_exec_prefix"
13208 prefix="$acl_save_prefix"
13211 # Check whether --with-libiconv-prefix was given.
13212 if test "${with_libiconv_prefix+set}" = set; then :
13213 withval=$with_libiconv_prefix;
13214 if test "X$withval" = "Xno"; then
13215 use_additional=no
13216 else
13217 if test "X$withval" = "X"; then
13219 acl_save_prefix="$prefix"
13220 prefix="$acl_final_prefix"
13221 acl_save_exec_prefix="$exec_prefix"
13222 exec_prefix="$acl_final_exec_prefix"
13224 eval additional_includedir=\"$includedir\"
13225 eval additional_libdir=\"$libdir\"
13227 exec_prefix="$acl_save_exec_prefix"
13228 prefix="$acl_save_prefix"
13230 else
13231 additional_includedir="$withval/include"
13232 additional_libdir="$withval/$acl_libdirstem"
13238 LIBICONV=
13239 LTLIBICONV=
13240 INCICONV=
13241 rpathdirs=
13242 ltrpathdirs=
13243 names_already_handled=
13244 names_next_round='iconv '
13245 while test -n "$names_next_round"; do
13246 names_this_round="$names_next_round"
13247 names_next_round=
13248 for name in $names_this_round; do
13249 already_handled=
13250 for n in $names_already_handled; do
13251 if test "$n" = "$name"; then
13252 already_handled=yes
13253 break
13255 done
13256 if test -z "$already_handled"; then
13257 names_already_handled="$names_already_handled $name"
13258 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13259 eval value=\"\$HAVE_LIB$uppername\"
13260 if test -n "$value"; then
13261 if test "$value" = yes; then
13262 eval value=\"\$LIB$uppername\"
13263 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13264 eval value=\"\$LTLIB$uppername\"
13265 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13266 else
13269 else
13270 found_dir=
13271 found_la=
13272 found_so=
13273 found_a=
13274 if test $use_additional = yes; then
13275 if test -n "$shlibext" \
13276 && { test -f "$additional_libdir/lib$name.$shlibext" \
13277 || { test "$shlibext" = dll \
13278 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13279 found_dir="$additional_libdir"
13280 if test -f "$additional_libdir/lib$name.$shlibext"; then
13281 found_so="$additional_libdir/lib$name.$shlibext"
13282 else
13283 found_so="$additional_libdir/lib$name.dll.a"
13285 if test -f "$additional_libdir/lib$name.la"; then
13286 found_la="$additional_libdir/lib$name.la"
13288 else
13289 if test -f "$additional_libdir/lib$name.$libext"; then
13290 found_dir="$additional_libdir"
13291 found_a="$additional_libdir/lib$name.$libext"
13292 if test -f "$additional_libdir/lib$name.la"; then
13293 found_la="$additional_libdir/lib$name.la"
13298 if test "X$found_dir" = "X"; then
13299 for x in $LDFLAGS $LTLIBICONV; do
13301 acl_save_prefix="$prefix"
13302 prefix="$acl_final_prefix"
13303 acl_save_exec_prefix="$exec_prefix"
13304 exec_prefix="$acl_final_exec_prefix"
13305 eval x=\"$x\"
13306 exec_prefix="$acl_save_exec_prefix"
13307 prefix="$acl_save_prefix"
13309 case "$x" in
13310 -L*)
13311 dir=`echo "X$x" | sed -e 's/^X-L//'`
13312 if test -n "$shlibext" \
13313 && { test -f "$dir/lib$name.$shlibext" \
13314 || { test "$shlibext" = dll \
13315 && test -f "$dir/lib$name.dll.a"; }; }; then
13316 found_dir="$dir"
13317 if test -f "$dir/lib$name.$shlibext"; then
13318 found_so="$dir/lib$name.$shlibext"
13319 else
13320 found_so="$dir/lib$name.dll.a"
13322 if test -f "$dir/lib$name.la"; then
13323 found_la="$dir/lib$name.la"
13325 else
13326 if test -f "$dir/lib$name.$libext"; then
13327 found_dir="$dir"
13328 found_a="$dir/lib$name.$libext"
13329 if test -f "$dir/lib$name.la"; then
13330 found_la="$dir/lib$name.la"
13335 esac
13336 if test "X$found_dir" != "X"; then
13337 break
13339 done
13341 if test "X$found_dir" != "X"; then
13342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13343 if test "X$found_so" != "X"; then
13344 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13346 else
13347 haveit=
13348 for x in $ltrpathdirs; do
13349 if test "X$x" = "X$found_dir"; then
13350 haveit=yes
13351 break
13353 done
13354 if test -z "$haveit"; then
13355 ltrpathdirs="$ltrpathdirs $found_dir"
13357 if test "$hardcode_direct" = yes; then
13358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13359 else
13360 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13362 haveit=
13363 for x in $rpathdirs; do
13364 if test "X$x" = "X$found_dir"; then
13365 haveit=yes
13366 break
13368 done
13369 if test -z "$haveit"; then
13370 rpathdirs="$rpathdirs $found_dir"
13372 else
13373 haveit=
13374 for x in $LDFLAGS $LIBICONV; do
13376 acl_save_prefix="$prefix"
13377 prefix="$acl_final_prefix"
13378 acl_save_exec_prefix="$exec_prefix"
13379 exec_prefix="$acl_final_exec_prefix"
13380 eval x=\"$x\"
13381 exec_prefix="$acl_save_exec_prefix"
13382 prefix="$acl_save_prefix"
13384 if test "X$x" = "X-L$found_dir"; then
13385 haveit=yes
13386 break
13388 done
13389 if test -z "$haveit"; then
13390 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13392 if test "$hardcode_minus_L" != no; then
13393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13394 else
13395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13400 else
13401 if test "X$found_a" != "X"; then
13402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13403 else
13404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13407 additional_includedir=
13408 case "$found_dir" in
13409 */$acl_libdirstem | */$acl_libdirstem/)
13410 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13411 additional_includedir="$basedir/include"
13413 esac
13414 if test "X$additional_includedir" != "X"; then
13415 if test "X$additional_includedir" != "X/usr/include"; then
13416 haveit=
13417 if test "X$additional_includedir" = "X/usr/local/include"; then
13418 if test -n "$GCC"; then
13419 case $host_os in
13420 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13421 esac
13424 if test -z "$haveit"; then
13425 for x in $CPPFLAGS $INCICONV; do
13427 acl_save_prefix="$prefix"
13428 prefix="$acl_final_prefix"
13429 acl_save_exec_prefix="$exec_prefix"
13430 exec_prefix="$acl_final_exec_prefix"
13431 eval x=\"$x\"
13432 exec_prefix="$acl_save_exec_prefix"
13433 prefix="$acl_save_prefix"
13435 if test "X$x" = "X-I$additional_includedir"; then
13436 haveit=yes
13437 break
13439 done
13440 if test -z "$haveit"; then
13441 if test -d "$additional_includedir"; then
13442 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13448 if test -n "$found_la"; then
13449 save_libdir="$libdir"
13450 case "$found_la" in
13451 */* | *\\*) . "$found_la" ;;
13452 *) . "./$found_la" ;;
13453 esac
13454 libdir="$save_libdir"
13455 for dep in $dependency_libs; do
13456 case "$dep" in
13457 -L*)
13458 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13459 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13460 haveit=
13461 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13462 if test -n "$GCC"; then
13463 case $host_os in
13464 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13465 esac
13468 if test -z "$haveit"; then
13469 haveit=
13470 for x in $LDFLAGS $LIBICONV; do
13472 acl_save_prefix="$prefix"
13473 prefix="$acl_final_prefix"
13474 acl_save_exec_prefix="$exec_prefix"
13475 exec_prefix="$acl_final_exec_prefix"
13476 eval x=\"$x\"
13477 exec_prefix="$acl_save_exec_prefix"
13478 prefix="$acl_save_prefix"
13480 if test "X$x" = "X-L$additional_libdir"; then
13481 haveit=yes
13482 break
13484 done
13485 if test -z "$haveit"; then
13486 if test -d "$additional_libdir"; then
13487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13490 haveit=
13491 for x in $LDFLAGS $LTLIBICONV; do
13493 acl_save_prefix="$prefix"
13494 prefix="$acl_final_prefix"
13495 acl_save_exec_prefix="$exec_prefix"
13496 exec_prefix="$acl_final_exec_prefix"
13497 eval x=\"$x\"
13498 exec_prefix="$acl_save_exec_prefix"
13499 prefix="$acl_save_prefix"
13501 if test "X$x" = "X-L$additional_libdir"; then
13502 haveit=yes
13503 break
13505 done
13506 if test -z "$haveit"; then
13507 if test -d "$additional_libdir"; then
13508 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13514 -R*)
13515 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13516 if test "$enable_rpath" != no; then
13517 haveit=
13518 for x in $rpathdirs; do
13519 if test "X$x" = "X$dir"; then
13520 haveit=yes
13521 break
13523 done
13524 if test -z "$haveit"; then
13525 rpathdirs="$rpathdirs $dir"
13527 haveit=
13528 for x in $ltrpathdirs; do
13529 if test "X$x" = "X$dir"; then
13530 haveit=yes
13531 break
13533 done
13534 if test -z "$haveit"; then
13535 ltrpathdirs="$ltrpathdirs $dir"
13539 -l*)
13540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13542 *.la)
13543 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13546 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13549 esac
13550 done
13552 else
13553 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13558 done
13559 done
13560 if test "X$rpathdirs" != "X"; then
13561 if test -n "$hardcode_libdir_separator"; then
13562 alldirs=
13563 for found_dir in $rpathdirs; do
13564 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13565 done
13566 acl_save_libdir="$libdir"
13567 libdir="$alldirs"
13568 eval flag=\"$hardcode_libdir_flag_spec\"
13569 libdir="$acl_save_libdir"
13570 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13571 else
13572 for found_dir in $rpathdirs; do
13573 acl_save_libdir="$libdir"
13574 libdir="$found_dir"
13575 eval flag=\"$hardcode_libdir_flag_spec\"
13576 libdir="$acl_save_libdir"
13577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13578 done
13581 if test "X$ltrpathdirs" != "X"; then
13582 for found_dir in $ltrpathdirs; do
13583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13584 done
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13612 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13613 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 gt_save_LIBS="$LIBS"
13617 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 #include <CoreFoundation/CFPreferences.h>
13622 main ()
13624 CFPreferencesCopyAppValue(NULL, NULL)
13626 return 0;
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 gt_cv_func_CFPreferencesCopyAppValue=yes
13631 else
13632 gt_cv_func_CFPreferencesCopyAppValue=no
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS="$gt_save_LIBS"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13639 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13640 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13642 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13646 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13647 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 gt_save_LIBS="$LIBS"
13651 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <CoreFoundation/CFLocale.h>
13656 main ()
13658 CFLocaleCopyCurrent();
13660 return 0;
13662 _ACEOF
13663 if ac_fn_c_try_link "$LINENO"; then :
13664 gt_cv_func_CFLocaleCopyCurrent=yes
13665 else
13666 gt_cv_func_CFLocaleCopyCurrent=no
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13670 LIBS="$gt_save_LIBS"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13673 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13674 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13676 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13679 INTL_MACOSX_LIBS=
13680 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13681 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13689 LIBINTL=
13690 LTLIBINTL=
13691 POSUB=
13693 case " $gt_needs " in
13694 *" need-formatstring-macros "*) gt_api_version=3 ;;
13695 *" need-ngettext "*) gt_api_version=2 ;;
13696 *) gt_api_version=1 ;;
13697 esac
13698 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13699 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13701 if test "$USE_NLS" = "yes"; then
13702 gt_use_preinstalled_gnugettext=no
13705 if test $gt_api_version -ge 3; then
13706 gt_revision_test_code='
13707 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13708 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13709 #endif
13710 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13712 else
13713 gt_revision_test_code=
13715 if test $gt_api_version -ge 2; then
13716 gt_expression_test_code=' + * ngettext ("", "", 0)'
13717 else
13718 gt_expression_test_code=
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13722 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13723 if eval \${$gt_func_gnugettext_libc+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <libintl.h>
13729 $gt_revision_test_code
13730 extern int _nl_msg_cat_cntr;
13731 extern int *_nl_domain_bindings;
13733 main ()
13735 bindtextdomain ("", "");
13736 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 eval "$gt_func_gnugettext_libc=yes"
13743 else
13744 eval "$gt_func_gnugettext_libc=no"
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13749 eval ac_res=\$$gt_func_gnugettext_libc
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13751 $as_echo "$ac_res" >&6; }
13753 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13759 am_save_CPPFLAGS="$CPPFLAGS"
13761 for element in $INCICONV; do
13762 haveit=
13763 for x in $CPPFLAGS; do
13765 acl_save_prefix="$prefix"
13766 prefix="$acl_final_prefix"
13767 acl_save_exec_prefix="$exec_prefix"
13768 exec_prefix="$acl_final_exec_prefix"
13769 eval x=\"$x\"
13770 exec_prefix="$acl_save_exec_prefix"
13771 prefix="$acl_save_prefix"
13773 if test "X$x" = "X$element"; then
13774 haveit=yes
13775 break
13777 done
13778 if test -z "$haveit"; then
13779 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13781 done
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13785 $as_echo_n "checking for iconv... " >&6; }
13786 if ${am_cv_func_iconv+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13790 am_cv_func_iconv="no, consider installing GNU libiconv"
13791 am_cv_lib_iconv=no
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 #include <stdlib.h>
13795 #include <iconv.h>
13797 main ()
13799 iconv_t cd = iconv_open("","");
13800 iconv(cd,NULL,NULL,NULL,NULL);
13801 iconv_close(cd);
13803 return 0;
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 am_cv_func_iconv=yes
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 if test "$am_cv_func_iconv" != yes; then
13812 am_save_LIBS="$LIBS"
13813 LIBS="$LIBS $LIBICONV"
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <stdlib.h>
13817 #include <iconv.h>
13819 main ()
13821 iconv_t cd = iconv_open("","");
13822 iconv(cd,NULL,NULL,NULL,NULL);
13823 iconv_close(cd);
13825 return 0;
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 am_cv_lib_iconv=yes
13830 am_cv_func_iconv=yes
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS="$am_save_LIBS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13839 $as_echo "$am_cv_func_iconv" >&6; }
13840 if test "$am_cv_func_iconv" = yes; then
13842 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13845 if test "$am_cv_lib_iconv" = yes; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13847 $as_echo_n "checking how to link with libiconv... " >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13849 $as_echo "$LIBICONV" >&6; }
13850 else
13851 CPPFLAGS="$am_save_CPPFLAGS"
13852 LIBICONV=
13853 LTLIBICONV=
13862 use_additional=yes
13864 acl_save_prefix="$prefix"
13865 prefix="$acl_final_prefix"
13866 acl_save_exec_prefix="$exec_prefix"
13867 exec_prefix="$acl_final_exec_prefix"
13869 eval additional_includedir=\"$includedir\"
13870 eval additional_libdir=\"$libdir\"
13872 exec_prefix="$acl_save_exec_prefix"
13873 prefix="$acl_save_prefix"
13876 # Check whether --with-libintl-prefix was given.
13877 if test "${with_libintl_prefix+set}" = set; then :
13878 withval=$with_libintl_prefix;
13879 if test "X$withval" = "Xno"; then
13880 use_additional=no
13881 else
13882 if test "X$withval" = "X"; then
13884 acl_save_prefix="$prefix"
13885 prefix="$acl_final_prefix"
13886 acl_save_exec_prefix="$exec_prefix"
13887 exec_prefix="$acl_final_exec_prefix"
13889 eval additional_includedir=\"$includedir\"
13890 eval additional_libdir=\"$libdir\"
13892 exec_prefix="$acl_save_exec_prefix"
13893 prefix="$acl_save_prefix"
13895 else
13896 additional_includedir="$withval/include"
13897 additional_libdir="$withval/$acl_libdirstem"
13903 LIBINTL=
13904 LTLIBINTL=
13905 INCINTL=
13906 rpathdirs=
13907 ltrpathdirs=
13908 names_already_handled=
13909 names_next_round='intl '
13910 while test -n "$names_next_round"; do
13911 names_this_round="$names_next_round"
13912 names_next_round=
13913 for name in $names_this_round; do
13914 already_handled=
13915 for n in $names_already_handled; do
13916 if test "$n" = "$name"; then
13917 already_handled=yes
13918 break
13920 done
13921 if test -z "$already_handled"; then
13922 names_already_handled="$names_already_handled $name"
13923 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13924 eval value=\"\$HAVE_LIB$uppername\"
13925 if test -n "$value"; then
13926 if test "$value" = yes; then
13927 eval value=\"\$LIB$uppername\"
13928 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13929 eval value=\"\$LTLIB$uppername\"
13930 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13931 else
13934 else
13935 found_dir=
13936 found_la=
13937 found_so=
13938 found_a=
13939 if test $use_additional = yes; then
13940 if test -n "$shlibext" \
13941 && { test -f "$additional_libdir/lib$name.$shlibext" \
13942 || { test "$shlibext" = dll \
13943 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13944 found_dir="$additional_libdir"
13945 if test -f "$additional_libdir/lib$name.$shlibext"; then
13946 found_so="$additional_libdir/lib$name.$shlibext"
13947 else
13948 found_so="$additional_libdir/lib$name.dll.a"
13950 if test -f "$additional_libdir/lib$name.la"; then
13951 found_la="$additional_libdir/lib$name.la"
13953 else
13954 if test -f "$additional_libdir/lib$name.$libext"; then
13955 found_dir="$additional_libdir"
13956 found_a="$additional_libdir/lib$name.$libext"
13957 if test -f "$additional_libdir/lib$name.la"; then
13958 found_la="$additional_libdir/lib$name.la"
13963 if test "X$found_dir" = "X"; then
13964 for x in $LDFLAGS $LTLIBINTL; do
13966 acl_save_prefix="$prefix"
13967 prefix="$acl_final_prefix"
13968 acl_save_exec_prefix="$exec_prefix"
13969 exec_prefix="$acl_final_exec_prefix"
13970 eval x=\"$x\"
13971 exec_prefix="$acl_save_exec_prefix"
13972 prefix="$acl_save_prefix"
13974 case "$x" in
13975 -L*)
13976 dir=`echo "X$x" | sed -e 's/^X-L//'`
13977 if test -n "$shlibext" \
13978 && { test -f "$dir/lib$name.$shlibext" \
13979 || { test "$shlibext" = dll \
13980 && test -f "$dir/lib$name.dll.a"; }; }; then
13981 found_dir="$dir"
13982 if test -f "$dir/lib$name.$shlibext"; then
13983 found_so="$dir/lib$name.$shlibext"
13984 else
13985 found_so="$dir/lib$name.dll.a"
13987 if test -f "$dir/lib$name.la"; then
13988 found_la="$dir/lib$name.la"
13990 else
13991 if test -f "$dir/lib$name.$libext"; then
13992 found_dir="$dir"
13993 found_a="$dir/lib$name.$libext"
13994 if test -f "$dir/lib$name.la"; then
13995 found_la="$dir/lib$name.la"
14000 esac
14001 if test "X$found_dir" != "X"; then
14002 break
14004 done
14006 if test "X$found_dir" != "X"; then
14007 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14008 if test "X$found_so" != "X"; then
14009 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14011 else
14012 haveit=
14013 for x in $ltrpathdirs; do
14014 if test "X$x" = "X$found_dir"; then
14015 haveit=yes
14016 break
14018 done
14019 if test -z "$haveit"; then
14020 ltrpathdirs="$ltrpathdirs $found_dir"
14022 if test "$hardcode_direct" = yes; then
14023 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14024 else
14025 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14026 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14027 haveit=
14028 for x in $rpathdirs; do
14029 if test "X$x" = "X$found_dir"; then
14030 haveit=yes
14031 break
14033 done
14034 if test -z "$haveit"; then
14035 rpathdirs="$rpathdirs $found_dir"
14037 else
14038 haveit=
14039 for x in $LDFLAGS $LIBINTL; do
14041 acl_save_prefix="$prefix"
14042 prefix="$acl_final_prefix"
14043 acl_save_exec_prefix="$exec_prefix"
14044 exec_prefix="$acl_final_exec_prefix"
14045 eval x=\"$x\"
14046 exec_prefix="$acl_save_exec_prefix"
14047 prefix="$acl_save_prefix"
14049 if test "X$x" = "X-L$found_dir"; then
14050 haveit=yes
14051 break
14053 done
14054 if test -z "$haveit"; then
14055 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14057 if test "$hardcode_minus_L" != no; then
14058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14059 else
14060 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14065 else
14066 if test "X$found_a" != "X"; then
14067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14068 else
14069 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14072 additional_includedir=
14073 case "$found_dir" in
14074 */$acl_libdirstem | */$acl_libdirstem/)
14075 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14076 additional_includedir="$basedir/include"
14078 esac
14079 if test "X$additional_includedir" != "X"; then
14080 if test "X$additional_includedir" != "X/usr/include"; then
14081 haveit=
14082 if test "X$additional_includedir" = "X/usr/local/include"; then
14083 if test -n "$GCC"; then
14084 case $host_os in
14085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14086 esac
14089 if test -z "$haveit"; then
14090 for x in $CPPFLAGS $INCINTL; do
14092 acl_save_prefix="$prefix"
14093 prefix="$acl_final_prefix"
14094 acl_save_exec_prefix="$exec_prefix"
14095 exec_prefix="$acl_final_exec_prefix"
14096 eval x=\"$x\"
14097 exec_prefix="$acl_save_exec_prefix"
14098 prefix="$acl_save_prefix"
14100 if test "X$x" = "X-I$additional_includedir"; then
14101 haveit=yes
14102 break
14104 done
14105 if test -z "$haveit"; then
14106 if test -d "$additional_includedir"; then
14107 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14113 if test -n "$found_la"; then
14114 save_libdir="$libdir"
14115 case "$found_la" in
14116 */* | *\\*) . "$found_la" ;;
14117 *) . "./$found_la" ;;
14118 esac
14119 libdir="$save_libdir"
14120 for dep in $dependency_libs; do
14121 case "$dep" in
14122 -L*)
14123 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14124 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14125 haveit=
14126 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14127 if test -n "$GCC"; then
14128 case $host_os in
14129 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14130 esac
14133 if test -z "$haveit"; then
14134 haveit=
14135 for x in $LDFLAGS $LIBINTL; do
14137 acl_save_prefix="$prefix"
14138 prefix="$acl_final_prefix"
14139 acl_save_exec_prefix="$exec_prefix"
14140 exec_prefix="$acl_final_exec_prefix"
14141 eval x=\"$x\"
14142 exec_prefix="$acl_save_exec_prefix"
14143 prefix="$acl_save_prefix"
14145 if test "X$x" = "X-L$additional_libdir"; then
14146 haveit=yes
14147 break
14149 done
14150 if test -z "$haveit"; then
14151 if test -d "$additional_libdir"; then
14152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14155 haveit=
14156 for x in $LDFLAGS $LTLIBINTL; do
14158 acl_save_prefix="$prefix"
14159 prefix="$acl_final_prefix"
14160 acl_save_exec_prefix="$exec_prefix"
14161 exec_prefix="$acl_final_exec_prefix"
14162 eval x=\"$x\"
14163 exec_prefix="$acl_save_exec_prefix"
14164 prefix="$acl_save_prefix"
14166 if test "X$x" = "X-L$additional_libdir"; then
14167 haveit=yes
14168 break
14170 done
14171 if test -z "$haveit"; then
14172 if test -d "$additional_libdir"; then
14173 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14179 -R*)
14180 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14181 if test "$enable_rpath" != no; then
14182 haveit=
14183 for x in $rpathdirs; do
14184 if test "X$x" = "X$dir"; then
14185 haveit=yes
14186 break
14188 done
14189 if test -z "$haveit"; then
14190 rpathdirs="$rpathdirs $dir"
14192 haveit=
14193 for x in $ltrpathdirs; do
14194 if test "X$x" = "X$dir"; then
14195 haveit=yes
14196 break
14198 done
14199 if test -z "$haveit"; then
14200 ltrpathdirs="$ltrpathdirs $dir"
14204 -l*)
14205 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14207 *.la)
14208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14211 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14212 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14214 esac
14215 done
14217 else
14218 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14223 done
14224 done
14225 if test "X$rpathdirs" != "X"; then
14226 if test -n "$hardcode_libdir_separator"; then
14227 alldirs=
14228 for found_dir in $rpathdirs; do
14229 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14230 done
14231 acl_save_libdir="$libdir"
14232 libdir="$alldirs"
14233 eval flag=\"$hardcode_libdir_flag_spec\"
14234 libdir="$acl_save_libdir"
14235 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14236 else
14237 for found_dir in $rpathdirs; do
14238 acl_save_libdir="$libdir"
14239 libdir="$found_dir"
14240 eval flag=\"$hardcode_libdir_flag_spec\"
14241 libdir="$acl_save_libdir"
14242 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14243 done
14246 if test "X$ltrpathdirs" != "X"; then
14247 for found_dir in $ltrpathdirs; do
14248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14249 done
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14253 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14254 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 gt_save_CPPFLAGS="$CPPFLAGS"
14258 CPPFLAGS="$CPPFLAGS $INCINTL"
14259 gt_save_LIBS="$LIBS"
14260 LIBS="$LIBS $LIBINTL"
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <libintl.h>
14264 $gt_revision_test_code
14265 extern int _nl_msg_cat_cntr;
14266 extern
14267 #ifdef __cplusplus
14269 #endif
14270 const char *_nl_expand_alias (const char *);
14272 main ()
14274 bindtextdomain ("", "");
14275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14277 return 0;
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval "$gt_func_gnugettext_libintl=yes"
14282 else
14283 eval "$gt_func_gnugettext_libintl=no"
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14288 LIBS="$LIBS $LIBICONV"
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 #include <libintl.h>
14292 $gt_revision_test_code
14293 extern int _nl_msg_cat_cntr;
14294 extern
14295 #ifdef __cplusplus
14297 #endif
14298 const char *_nl_expand_alias (const char *);
14300 main ()
14302 bindtextdomain ("", "");
14303 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14305 return 0;
14307 _ACEOF
14308 if ac_fn_c_try_link "$LINENO"; then :
14309 LIBINTL="$LIBINTL $LIBICONV"
14310 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14311 eval "$gt_func_gnugettext_libintl=yes"
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14317 CPPFLAGS="$gt_save_CPPFLAGS"
14318 LIBS="$gt_save_LIBS"
14320 eval ac_res=\$$gt_func_gnugettext_libintl
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14322 $as_echo "$ac_res" >&6; }
14325 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14326 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14327 && test "$PACKAGE" != gettext-runtime \
14328 && test "$PACKAGE" != gettext-tools; }; then
14329 gt_use_preinstalled_gnugettext=yes
14330 else
14331 LIBINTL=
14332 LTLIBINTL=
14333 INCINTL=
14338 if test -n "$INTL_MACOSX_LIBS"; then
14339 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14340 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14341 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14342 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14346 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14347 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14349 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14351 else
14352 USE_NLS=no
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14357 $as_echo_n "checking whether to use NLS... " >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14359 $as_echo "$USE_NLS" >&6; }
14360 if test "$USE_NLS" = "yes"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14362 $as_echo_n "checking where the gettext function comes from... " >&6; }
14363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14365 gt_source="external libintl"
14366 else
14367 gt_source="libc"
14369 else
14370 gt_source="included intl directory"
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14373 $as_echo "$gt_source" >&6; }
14376 if test "$USE_NLS" = "yes"; then
14378 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14379 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14381 $as_echo_n "checking how to link with libintl... " >&6; }
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14383 $as_echo "$LIBINTL" >&6; }
14385 for element in $INCINTL; do
14386 haveit=
14387 for x in $CPPFLAGS; do
14389 acl_save_prefix="$prefix"
14390 prefix="$acl_final_prefix"
14391 acl_save_exec_prefix="$exec_prefix"
14392 exec_prefix="$acl_final_exec_prefix"
14393 eval x=\"$x\"
14394 exec_prefix="$acl_save_exec_prefix"
14395 prefix="$acl_save_prefix"
14397 if test "X$x" = "X$element"; then
14398 haveit=yes
14399 break
14401 done
14402 if test -z "$haveit"; then
14403 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14405 done
14410 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14413 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14417 POSUB=po
14422 INTLLIBS="$LIBINTL"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14431 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14432 # Check whether --enable-dmalloc was given.
14433 if test "${enable_dmalloc+set}" = set; then :
14434 enableval=$enable_dmalloc;
14437 if test x$enable_dmalloc = "xyes" ; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14439 $as_echo "yes" >&6; }
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14446 # Check whether --with-dmalloc-dir was given.
14447 if test "${with_dmalloc_dir+set}" = set; then :
14448 withval=$with_dmalloc_dir;
14449 if test "x$withval" != "xno" ; then
14450 enable_dmalloc = "yes"
14451 CPPFLAGS="$CPPFLAGS -I${withval}"
14452 LDFLAGS="$LDFLAGS -L${withval}"
14458 if test x$enable_dmalloc = "xyes" ; then
14460 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14464 ALPINE_psefcmd="/bin/ps auxww"
14465 ALPINE_psfailed="0"
14466 ALPINE_PSTEST="-"
14468 # Check whether --with-ps-cmd was given.
14469 if test "${with_ps_cmd+set}" = set; then :
14470 withval=$with_ps_cmd;
14471 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
14472 withval=$ALPINE_psefcmd
14474 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14475 if test -n "$ALPINE_PSTEST" ; then
14476 ALPINE_psefcmd="$withval"
14477 else
14478 ALPINE_psfailed="1"
14479 if test "x$ALPINE_psefcmd" != "x$withval" ; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
14481 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
14487 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
14488 withval="$ALPINE_psefcmd"
14489 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14490 if test -z "$ALPINE_PSTEST" ; then
14491 ALPINE_psfailed="1"
14492 else
14493 ALPINE_psfailed="0"
14496 if test "$ALPINE_psfailed" = "0" ; then
14498 cat >>confdefs.h <<_ACEOF
14499 #define PSEFCMD "$ALPINE_psefcmd"
14500 _ACEOF
14504 case $host in
14505 *apple-darwin*)
14506 if test -d /opt/local ; then
14507 localedir="/opt/local/share/locale"
14508 else
14509 localedir="\${datadir}/locale"
14512 *-*-cygwin)
14513 localedir="/usr/share"
14516 localedir="\${datadir}/locale"
14518 esac
14520 # Check whether --with-localedir was given.
14521 if test "${with_localedir+set}" = set; then :
14522 withval=$with_localedir;
14523 case $withval in
14524 yes)
14529 localedir=$withval
14531 esac
14535 localedir="$localedir"
14538 # Setup OS-Specific features
14539 case "$host" in
14540 *darwin*)
14541 # Check whether --enable-osx-universal-binaries was given.
14542 if test "${enable_osx_universal_binaries+set}" = set; then :
14543 enableval=$enable_osx_universal_binaries;
14546 if test "x$enable_osx_universal_binaries" = "xyes" ; then
14547 if test "x$enable_dependency_tracking" != xno ; then
14548 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
14549 Please re-run configure with these options:
14550 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
14552 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
14553 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
14554 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
14555 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
14556 else
14557 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
14559 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
14560 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
14561 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
14562 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
14563 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
14564 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
14567 esac
14570 # Check whether --with-include-path was given.
14571 if test "${with_include_path+set}" = set; then :
14572 withval=$with_include_path;
14573 case $withval in
14576 yes)
14579 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
14580 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
14581 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
14583 esac
14589 # Check whether --with-lib-path was given.
14590 if test "${with_lib_path+set}" = set; then :
14591 withval=$with_lib_path;
14592 case $withval in
14595 yes)
14598 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
14599 LDFLAGS="$LDFLAGS $new_ldflags"
14600 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
14602 esac
14608 # Check whether --with-pubcookie was given.
14609 if test "${with_pubcookie+set}" = set; then :
14610 withval=$with_pubcookie;
14611 if test "x$withval" != "xno" ; then
14612 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
14620 # Check whether --with-web-bin was given.
14621 if test "${with_web_bin+set}" = set; then :
14622 withval=$with_web_bin;
14623 case "$withval" in
14626 yes)
14629 WEB_BINDIR=$withval
14631 esac
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
14637 $as_echo_n "checking option: debugging is enabled... " >&6; }
14638 # Check whether --enable-debug was given.
14639 if test "${enable_debug+set}" = set; then :
14640 enableval=$enable_debug;
14643 if test x$enable_debug != "xno" ; then
14644 AM_CFLAGS="$AM_CFLAGS -g"
14646 $as_echo "#define DEBUG 1" >>confdefs.h
14649 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
14659 $as_echo_n "checking option: optimization is enabled... " >&6; }
14660 # Check whether --enable-optimization was given.
14661 if test "${enable_optimization+set}" = set; then :
14662 enableval=$enable_optimization;
14665 if test x$enable_optimization != "xno" ; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14668 else
14669 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
14670 alpine_c_client_gccoptlevel="-O0"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
14676 $as_echo_n "checking option: mouse support enabled... " >&6; }
14677 # Check whether --enable-mouse was given.
14678 if test "${enable_mouse+set}" = set; then :
14679 enableval=$enable_mouse;
14682 if test x$enable_mouse != "xno" ; then
14684 $as_echo "#define MOUSE /**/" >>confdefs.h
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687 $as_echo "yes" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
14694 $as_echo_n "checking option: quotas enabled... " >&6; }
14695 # Check whether --enable-quotas was given.
14696 if test "${enable_quotas+set}" = set; then :
14697 enableval=$enable_quotas;
14700 if test x$enable_quotas = "xyes" ; then
14702 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706 else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708 $as_echo "no" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
14712 $as_echo_n "checking option: From changing enabled... " >&6; }
14713 # Check whether --enable-from_changing was given.
14714 if test "${enable_from_changing+set}" = set; then :
14715 enableval=$enable_from_changing;
14718 if test x$enable_from_changing != "xno" ; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14720 $as_echo "yes" >&6; }
14721 else
14723 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
14730 $as_echo_n "checking option: background post enabled... " >&6; }
14731 # Check whether --enable-background-post was given.
14732 if test "${enable_background_post+set}" = set; then :
14733 enableval=$enable_background_post;
14736 if test x$enable_background_post != "xno" ; then
14738 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742 else
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
14748 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
14749 # Check whether --enable-keyboard-lock was given.
14750 if test "${enable_keyboard_lock+set}" = set; then :
14751 enableval=$enable_keyboard_lock;
14754 if test x$enable_keyboard_lock != "xno" ; then
14756 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14759 $as_echo "yes" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
14766 $as_echo_n "checking option: from encoding enabled... " >&6; }
14767 # Check whether --enable-from-encoding was given.
14768 if test "${enable_from_encoding+set}" = set; then :
14769 enableval=$enable_from_encoding;
14772 if test x$enable_from_encoding = "xyes" ; then
14774 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777 $as_echo "yes" >&6; }
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14784 # Check whether --with-smtp-msa was given.
14785 if test "${with_smtp_msa+set}" = set; then :
14786 withval=$with_smtp_msa;
14787 case "$withval" in
14790 yes)
14791 # Extract the first word of "sendmail", so it can be a program name with args.
14792 set dummy sendmail; ac_word=$2
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14794 $as_echo_n "checking for $ac_word... " >&6; }
14795 if ${ac_cv_path_SENDMAIL+:} false; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 case $SENDMAIL in
14799 [\\/]* | ?:[\\/]*)
14800 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 as_dummy="$PATH:/usr/sbin:/usr/lib"
14805 for as_dir in $as_dummy
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 break 2
14815 done
14816 done
14817 IFS=$as_save_IFS
14819 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14821 esac
14823 SENDMAIL=$ac_cv_path_SENDMAIL
14824 if test -n "$SENDMAIL"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14826 $as_echo "$SENDMAIL" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14835 SENDMAIL=$withval
14837 esac
14839 else
14841 # Extract the first word of "sendmail", so it can be a program name with args.
14842 set dummy sendmail; ac_word=$2
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14844 $as_echo_n "checking for $ac_word... " >&6; }
14845 if ${ac_cv_path_SENDMAIL+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 case $SENDMAIL in
14849 [\\/]* | ?:[\\/]*)
14850 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 as_dummy="$PATH:/usr/sbin:/usr/lib"
14855 for as_dir in $as_dummy
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 for ac_exec_ext in '' $ac_executable_extensions; do
14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863 break 2
14865 done
14866 done
14867 IFS=$as_save_IFS
14869 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14871 esac
14873 SENDMAIL=$ac_cv_path_SENDMAIL
14874 if test -n "$SENDMAIL"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14876 $as_echo "$SENDMAIL" >&6; }
14877 else
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879 $as_echo "no" >&6; }
14886 if test -n "$SENDMAIL" ; then
14888 cat >>confdefs.h <<_ACEOF
14889 #define SENDMAIL "$SENDMAIL"
14890 _ACEOF
14894 smtp_msa_flags="-bs -odb -oem"
14896 # Check whether --with-smtp-msa-flags was given.
14897 if test "${with_smtp_msa_flags+set}" = set; then :
14898 withval=$with_smtp_msa_flags;
14899 if test "x$withval" != "xno" ; then
14900 smtp_msa_flags=$withval
14906 cat >>confdefs.h <<_ACEOF
14907 #define SENDMAILFLAGS "$smtp_msa_flags"
14908 _ACEOF
14911 npa="inews"
14913 # Check whether --with-npa was given.
14914 if test "${with_npa+set}" = set; then :
14915 withval=$with_npa;
14916 case "$withval" in
14919 yes)
14920 # Extract the first word of "inews", so it can be a program name with args.
14921 set dummy inews; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14923 $as_echo_n "checking for $ac_word... " >&6; }
14924 if ${ac_cv_path_NPA_PROG+:} false; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 case $NPA_PROG in
14928 [\\/]* | ?:[\\/]*)
14929 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 as_dummy="$PATH:/usr/sbin:/usr/lib"
14934 for as_dir in $as_dummy
14936 IFS=$as_save_IFS
14937 test -z "$as_dir" && as_dir=.
14938 for ac_exec_ext in '' $ac_executable_extensions; do
14939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14940 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14942 break 2
14944 done
14945 done
14946 IFS=$as_save_IFS
14948 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14950 esac
14952 NPA_PROG=$ac_cv_path_NPA_PROG
14953 if test -n "$NPA_PROG"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14955 $as_echo "$NPA_PROG" >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14964 NPA_PROG=$withval
14966 esac
14968 else
14970 # Extract the first word of "inews", so it can be a program name with args.
14971 set dummy inews; ac_word=$2
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 $as_echo_n "checking for $ac_word... " >&6; }
14974 if ${ac_cv_path_NPA_PROG+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 case $NPA_PROG in
14978 [\\/]* | ?:[\\/]*)
14979 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14983 as_dummy="$PATH:/usr/sbin:/usr/lib"
14984 for as_dir in $as_dummy
14986 IFS=$as_save_IFS
14987 test -z "$as_dir" && as_dir=.
14988 for ac_exec_ext in '' $ac_executable_extensions; do
14989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14990 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14992 break 2
14994 done
14995 done
14996 IFS=$as_save_IFS
14998 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15000 esac
15002 NPA_PROG=$ac_cv_path_NPA_PROG
15003 if test -n "$NPA_PROG"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15005 $as_echo "$NPA_PROG" >&6; }
15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15016 npa_flags="-h"
15018 # Check whether --with-npa-flags was given.
15019 if test "${with_npa_flags+set}" = set; then :
15020 withval=$with_npa_flags;
15021 if test "x$withval" != "xno" ; then
15022 npa_flags=$withval
15027 if test -n "$NPA_PROG" ; then
15029 cat >>confdefs.h <<_ACEOF
15030 #define SENDNEWS "$NPA_PROG $npa_flags"
15031 _ACEOF
15036 # Check whether --with-password-prog was given.
15037 if test "${with_password_prog+set}" = set; then :
15038 withval=$with_password_prog;
15039 case "$withval" in
15042 yes)
15043 # Extract the first word of "passwd", so it can be a program name with args.
15044 set dummy passwd; ac_word=$2
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15046 $as_echo_n "checking for $ac_word... " >&6; }
15047 if ${ac_cv_path_PWPROG+:} false; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 case $PWPROG in
15051 [\\/]* | ?:[\\/]*)
15052 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15056 as_dummy="$PATH:/usr/sbin:/usr/lib"
15057 for as_dir in $as_dummy
15059 IFS=$as_save_IFS
15060 test -z "$as_dir" && as_dir=.
15061 for ac_exec_ext in '' $ac_executable_extensions; do
15062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15063 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15065 break 2
15067 done
15068 done
15069 IFS=$as_save_IFS
15071 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15073 esac
15075 PWPROG=$ac_cv_path_PWPROG
15076 if test -n "$PWPROG"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15078 $as_echo "$PWPROG" >&6; }
15079 else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15087 # Extract the first word of "$withval", so it can be a program name with args.
15088 set dummy $withval; ac_word=$2
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15090 $as_echo_n "checking for $ac_word... " >&6; }
15091 if ${ac_cv_path_PWPROG+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 case $PWPROG in
15095 [\\/]* | ?:[\\/]*)
15096 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 as_dummy="$PATH:/usr/sbin:/usr/lib"
15101 for as_dir in $as_dummy
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109 break 2
15111 done
15112 done
15113 IFS=$as_save_IFS
15115 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15117 esac
15119 PWPROG=$ac_cv_path_PWPROG
15120 if test -n "$PWPROG"; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15122 $as_echo "$PWPROG" >&6; }
15123 else
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 $as_echo "no" >&6; }
15130 esac
15132 else
15134 # Extract the first word of "passwd", so it can be a program name with args.
15135 set dummy passwd; ac_word=$2
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15137 $as_echo_n "checking for $ac_word... " >&6; }
15138 if ${ac_cv_path_PWPROG+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15141 case $PWPROG in
15142 [\\/]* | ?:[\\/]*)
15143 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 as_dummy="$PATH:/usr/sbin:/usr/lib"
15148 for as_dir in $as_dummy
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156 break 2
15158 done
15159 done
15160 IFS=$as_save_IFS
15162 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15164 esac
15166 PWPROG=$ac_cv_path_PWPROG
15167 if test -n "$PWPROG"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15169 $as_echo "$PWPROG" >&6; }
15170 else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15179 if test -n "$PWPROG" ; then
15181 cat >>confdefs.h <<_ACEOF
15182 #define PASSWD_PROG "$PWPROG"
15183 _ACEOF
15188 # Check whether --with-simple-spellcheck was given.
15189 if test "${with_simple_spellcheck+set}" = set; then :
15190 withval=$with_simple_spellcheck;
15191 if test "x$withval" != "xno" ; then
15192 SPELLPROG=$withval
15195 else
15197 # Extract the first word of "hunspell", so it can be a program name with args.
15198 set dummy hunspell; ac_word=$2
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15200 $as_echo_n "checking for $ac_word... " >&6; }
15201 if ${ac_cv_prog_SPELLPROG+:} false; then :
15202 $as_echo_n "(cached) " >&6
15203 else
15204 if test -n "$SPELLPROG"; then
15205 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15210 IFS=$as_save_IFS
15211 test -z "$as_dir" && as_dir=.
15212 for ac_exec_ext in '' $ac_executable_extensions; do
15213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214 ac_cv_prog_SPELLPROG="hunspell"
15215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15216 break 2
15218 done
15219 done
15220 IFS=$as_save_IFS
15224 SPELLPROG=$ac_cv_prog_SPELLPROG
15225 if test -n "$SPELLPROG"; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15227 $as_echo "$SPELLPROG" >&6; }
15228 else
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230 $as_echo "no" >&6; }
15234 if test -z "$SPELLPROG" ; then
15235 # Extract the first word of "aspell", so it can be a program name with args.
15236 set dummy aspell; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238 $as_echo_n "checking for $ac_word... " >&6; }
15239 if ${ac_cv_prog_SPELLPROG+:} false; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 if test -n "$SPELLPROG"; then
15243 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15244 else
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15248 IFS=$as_save_IFS
15249 test -z "$as_dir" && as_dir=.
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252 ac_cv_prog_SPELLPROG="aspell"
15253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 break 2
15256 done
15257 done
15258 IFS=$as_save_IFS
15262 SPELLPROG=$ac_cv_prog_SPELLPROG
15263 if test -n "$SPELLPROG"; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15265 $as_echo "$SPELLPROG" >&6; }
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15272 if test -z "$SPELLPROG" ; then
15273 # Extract the first word of "ispell", so it can be a program name with args.
15274 set dummy ispell; ac_word=$2
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15276 $as_echo_n "checking for $ac_word... " >&6; }
15277 if ${ac_cv_prog_SPELLPROG+:} false; then :
15278 $as_echo_n "(cached) " >&6
15279 else
15280 if test -n "$SPELLPROG"; then
15281 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15282 else
15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284 for as_dir in $PATH
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
15289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290 ac_cv_prog_SPELLPROG="ispell"
15291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292 break 2
15294 done
15295 done
15296 IFS=$as_save_IFS
15300 SPELLPROG=$ac_cv_prog_SPELLPROG
15301 if test -n "$SPELLPROG"; then
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15303 $as_echo "$SPELLPROG" >&6; }
15304 else
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15310 if test -z "$SPELLPROG" ; then
15311 SPELLPROG="spell"
15319 if test "x$SPELLPROG" != "xno" ; then
15320 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15321 set dummy $SPELLPROG; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323 $as_echo_n "checking for $ac_word... " >&6; }
15324 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 case $alpine_simple_spellcheck in
15328 [\\/]* | ?:[\\/]*)
15329 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $PATH
15335 IFS=$as_save_IFS
15336 test -z "$as_dir" && as_dir=.
15337 for ac_exec_ext in '' $ac_executable_extensions; do
15338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15341 break 2
15343 done
15344 done
15345 IFS=$as_save_IFS
15348 esac
15350 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15351 if test -n "$alpine_simple_spellcheck"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15353 $as_echo "$alpine_simple_spellcheck" >&6; }
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15360 if test -n "$alpine_simple_spellcheck" ; then
15361 case "$SPELLPROG" in
15362 hunspell)
15363 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15365 aspell)
15366 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15368 ispell)
15369 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15373 esac
15378 # Check whether --with-interactive-spellcheck was given.
15379 if test "${with_interactive_spellcheck+set}" = set; then :
15380 withval=$with_interactive_spellcheck;
15381 if test "x$withval" != "xno" ; then
15382 ISPELLPROG=$withval
15385 else
15387 # Extract the first word of "hunspell", so it can be a program name with args.
15388 set dummy hunspell; ac_word=$2
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390 $as_echo_n "checking for $ac_word... " >&6; }
15391 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 if test -n "$ISPELLPROG"; then
15395 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15396 else
15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 for as_dir in $PATH
15400 IFS=$as_save_IFS
15401 test -z "$as_dir" && as_dir=.
15402 for ac_exec_ext in '' $ac_executable_extensions; do
15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15404 ac_cv_prog_ISPELLPROG="hunspell"
15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15406 break 2
15408 done
15409 done
15410 IFS=$as_save_IFS
15414 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15415 if test -n "$ISPELLPROG"; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15417 $as_echo "$ISPELLPROG" >&6; }
15418 else
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420 $as_echo "no" >&6; }
15424 if test -z "$ISPELLPROG" ; then
15425 # Extract the first word of "aspell", so it can be a program name with args.
15426 set dummy aspell; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428 $as_echo_n "checking for $ac_word... " >&6; }
15429 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 if test -n "$ISPELLPROG"; then
15433 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15434 else
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ISPELLPROG="aspell"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15446 done
15447 done
15448 IFS=$as_save_IFS
15452 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15453 if test -n "$ISPELLPROG"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15455 $as_echo "$ISPELLPROG" >&6; }
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15462 if test -z "$SPELLPROG" ; then
15463 ISPELLPROG="ispell"
15470 if test "x$ISPELLPROG" != "xno" ; then
15471 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15472 set dummy $ISPELLPROG; ac_word=$2
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15474 $as_echo_n "checking for $ac_word... " >&6; }
15475 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 case $alpine_interactive_spellcheck in
15479 [\\/]* | ?:[\\/]*)
15480 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $PATH
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15490 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 break 2
15494 done
15495 done
15496 IFS=$as_save_IFS
15499 esac
15501 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
15502 if test -n "$alpine_interactive_spellcheck"; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
15504 $as_echo "$alpine_interactive_spellcheck" >&6; }
15505 else
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507 $as_echo "no" >&6; }
15511 if test -n "$alpine_interactive_spellcheck" ; then
15512 case "$ISPELLPROG" in
15513 aspell)
15514 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
15518 esac
15522 if test -n "$alpine_interactive_spellcheck" ; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
15526 _ACEOF
15530 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
15531 alpine_simple_spellcheck=test
15534 cat >>confdefs.h <<_ACEOF
15535 #define SPELLER "$alpine_simple_spellcheck"
15536 _ACEOF
15539 case "$prefix" in
15540 NONE) dpv=/usr/local/lib/pine.conf ;;
15541 *) dpv=${prefix}/lib/pine.conf ;;
15542 esac
15544 # Check whether --with-system-pinerc was given.
15545 if test "${with_system_pinerc+set}" = set; then :
15546 withval=$with_system_pinerc;
15547 case "$withval" in
15550 yes)
15553 dpv=$withval
15555 esac
15560 cat >>confdefs.h <<_ACEOF
15561 #define SYSTEM_PINERC "$dpv"
15562 _ACEOF
15565 case "$prefix" in
15566 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
15567 *) dpv=${prefix}/lib/pine.conf.fixed ;;
15568 esac
15570 # Check whether --with-system-fixed-pinerc was given.
15571 if test "${with_system_fixed_pinerc+set}" = set; then :
15572 withval=$with_system_fixed_pinerc;
15573 case "$withval" in
15576 yes)
15579 dpv=$withval
15581 esac
15586 cat >>confdefs.h <<_ACEOF
15587 #define SYSTEM_PINERC_FIXED "$dpv"
15588 _ACEOF
15591 case "$prefix" in
15592 NONE) dpv=/usr/local/lib/pine.info ;;
15593 *) dpv=${prefix}/lib/pine.info ;;
15594 esac
15596 # Check whether --with-local-support-info was given.
15597 if test "${with_local_support_info+set}" = set; then :
15598 withval=$with_local_support_info;
15599 case "$withval" in
15602 yes)
15605 dpv=$withval
15607 esac
15612 cat >>confdefs.h <<_ACEOF
15613 #define SYSTEM_PINE_INFO_PATH "$dpv"
15614 _ACEOF
15622 dpv=150
15624 # Check whether --with-mailcheck-interval was given.
15625 if test "${with_mailcheck_interval+set}" = set; then :
15626 withval=$with_mailcheck_interval;
15627 if test "x$withval" != "xno" ; then
15628 dpv=$withval
15634 cat >>confdefs.h <<_ACEOF
15635 #define DF_MAILCHECK "$dpv"
15636 _ACEOF
15640 dpv=420
15642 # Check whether --with-checkpoint-interval was given.
15643 if test "${with_checkpoint_interval+set}" = set; then :
15644 withval=$with_checkpoint_interval;
15645 if test "x$withval" != "xno" ; then
15646 dpv=$withval
15652 cat >>confdefs.h <<_ACEOF
15653 #define CHECK_POINT_TIME $dpv
15654 _ACEOF
15658 dpv=12
15660 # Check whether --with-checkpoint-frequency was given.
15661 if test "${with_checkpoint_frequency+set}" = set; then :
15662 withval=$with_checkpoint_frequency;
15663 if test "x$withval" != "xno" ; then
15664 dpv=$withval
15670 cat >>confdefs.h <<_ACEOF
15671 #define CHECK_POINT_FREQ $dpv
15672 _ACEOF
15676 dpv=24
15678 # Check whether --with-display-rows was given.
15679 if test "${with_display_rows+set}" = set; then :
15680 withval=$with_display_rows;
15681 if test "x$withval" != "xno" ; then
15682 dpv=$withval
15688 cat >>confdefs.h <<_ACEOF
15689 #define DEFAULT_LINES_ON_TERMINAL $dpv
15690 _ACEOF
15694 dpv=80
15696 # Check whether --with-display-columns was given.
15697 if test "${with_display_columns+set}" = set; then :
15698 withval=$with_display_columns;
15699 if test "x$withval" != "xno" ; then
15700 dpv=$withval
15706 cat >>confdefs.h <<_ACEOF
15707 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
15708 _ACEOF
15712 dpv=200
15714 # Check whether --with-max-display-rows was given.
15715 if test "${with_max_display_rows+set}" = set; then :
15716 withval=$with_max_display_rows;
15717 if test "x$withval" != "xno" ; then
15718 dpv=$withval
15724 cat >>confdefs.h <<_ACEOF
15725 #define MAX_SCREEN_ROWS $dpv
15726 _ACEOF
15730 dpv=500
15732 # Check whether --with-max-display-columns was given.
15733 if test "${with_max_display_columns+set}" = set; then :
15734 withval=$with_max_display_columns;
15735 if test "x$withval" != "xno" ; then
15736 dpv=$withval
15742 cat >>confdefs.h <<_ACEOF
15743 #define MAX_SCREEN_COLS $dpv
15744 _ACEOF
15748 dpv=74
15750 # Check whether --with-fill-column was given.
15751 if test "${with_fill_column+set}" = set; then :
15752 withval=$with_fill_column;
15753 if test "x$withval" != "xno" ; then
15754 dpv=$withval
15760 cat >>confdefs.h <<_ACEOF
15761 #define DF_FILLCOL "$dpv"
15762 _ACEOF
15766 dpv=80
15768 # Check whether --with-max_fill-column was given.
15769 if test "${with_max_fill_column+set}" = set; then :
15770 withval=$with_max_fill_column;
15771 if test "x$withval" != "xno" ; then
15772 dpv=$withval
15778 cat >>confdefs.h <<_ACEOF
15779 #define MAX_FILLCOL $dpv
15780 _ACEOF
15784 dpv=2
15786 # Check whether --with-debug-level was given.
15787 if test "${with_debug_level+set}" = set; then :
15788 withval=$with_debug_level;
15789 if test "x$withval" != "xno" ; then
15790 dpv=$withval
15796 cat >>confdefs.h <<_ACEOF
15797 #define DEFAULT_DEBUG $dpv
15798 _ACEOF
15802 dpv=4
15804 # Check whether --with-debug-files was given.
15805 if test "${with_debug_files+set}" = set; then :
15806 withval=$with_debug_files;
15807 if test "x$withval" != "xno" ; then
15808 dpv=$withval
15814 cat >>confdefs.h <<_ACEOF
15815 #define NUMDEBUGFILES $dpv
15816 _ACEOF
15820 dpv=.pine-debug
15822 # Check whether --with-debug-file was given.
15823 if test "${with_debug_file+set}" = set; then :
15824 withval=$with_debug_file;
15825 if test "x$withval" != "xno" ; then
15826 dpv=$withval
15832 cat >>confdefs.h <<_ACEOF
15833 #define DEBUGFILE "$dpv"
15834 _ACEOF
15838 dpv="\$Forwarded"
15840 # Check whether --with-forwarded-keyword was given.
15841 if test "${with_forwarded_keyword+set}" = set; then :
15842 withval=$with_forwarded_keyword;
15843 if test "x$withval" != "xno" ; then
15844 dpv=$withval
15850 cat >>confdefs.h <<_ACEOF
15851 #define FORWARDED_FLAG "$dpv"
15852 _ACEOF
15856 dpv=2
15858 # Check whether --with-display-overlap was given.
15859 if test "${with_display_overlap+set}" = set; then :
15860 withval=$with_display_overlap;
15861 if test "x$withval" != "xno" ; then
15862 dpv=$withval
15868 cat >>confdefs.h <<_ACEOF
15869 #define DF_OVERLAP "$dpv"
15870 _ACEOF
15874 dpv=0
15876 # Check whether --with-display-margin was given.
15877 if test "${with_display_margin+set}" = set; then :
15878 withval=$with_display_margin;
15879 if test "x$withval" != "xno" ; then
15880 dpv=$withval
15886 cat >>confdefs.h <<_ACEOF
15887 #define DF_MARGIN "$dpv"
15888 _ACEOF
15892 dpv=sent-mail
15894 # Check whether --with-default-fcc was given.
15895 if test "${with_default_fcc+set}" = set; then :
15896 withval=$with_default_fcc;
15897 if test "x$withval" != "xno" ; then
15898 dpv=$withval
15904 cat >>confdefs.h <<_ACEOF
15905 #define DF_DEFAULT_FCC "$dpv"
15906 _ACEOF
15910 dpv=saved-messages
15912 # Check whether --with-default-save-folder was given.
15913 if test "${with_default_save_folder+set}" = set; then :
15914 withval=$with_default_save_folder;
15915 if test "x$withval" != "xno" ; then
15916 dpv=$withval
15922 cat >>confdefs.h <<_ACEOF
15923 #define DEFAULT_SAVE "$dpv"
15924 _ACEOF
15928 dpv=postponed-mail
15930 # Check whether --with-default-legacy-postponed-folder was given.
15931 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15932 withval=$with_default_legacy_postponed_folder;
15933 if test "x$withval" != "xno" ; then
15934 dpv=$withval
15940 cat >>confdefs.h <<_ACEOF
15941 #define POSTPONED_MAIL "$dpv"
15942 _ACEOF
15946 dpv=postponed-msgs
15948 # Check whether --with-default-postponed-folder was given.
15949 if test "${with_default_postponed_folder+set}" = set; then :
15950 withval=$with_default_postponed_folder;
15951 if test "x$withval" != "xno" ; then
15952 dpv=$withval
15958 cat >>confdefs.h <<_ACEOF
15959 #define POSTPONED_MSGS "$dpv"
15960 _ACEOF
15964 dpv=Trash
15966 # Check whether --with-default-trash-folder was given.
15967 if test "${with_default_trash_folder+set}" = set; then :
15968 withval=$with_default_trash_folder;
15969 if test "x$withval" != "xno" ; then
15970 dpv=$withval
15976 cat >>confdefs.h <<_ACEOF
15977 #define TRASH_FOLDER "$dpv"
15978 _ACEOF
15982 dpv=.pine-interrupted-mail
15984 # Check whether --with-default-interrupted-mail was given.
15985 if test "${with_default_interrupted_mail+set}" = set; then :
15986 withval=$with_default_interrupted_mail;
15987 if test "x$withval" != "xno" ; then
15988 dpv=$withval
15994 cat >>confdefs.h <<_ACEOF
15995 #define INTERRUPTED_MAIL "$dpv"
15996 _ACEOF
16000 dpv=dead.letter
16002 # Check whether --with-default-dead-letter-folder was given.
16003 if test "${with_default_dead_letter_folder+set}" = set; then :
16004 withval=$with_default_dead_letter_folder;
16005 if test "x$withval" != "xno" ; then
16006 dpv=$withval
16012 cat >>confdefs.h <<_ACEOF
16013 #define DEADLETTER "$dpv"
16014 _ACEOF
16018 dpv=mail
16020 # Check whether --with-default-mail-directory was given.
16021 if test "${with_default_mail_directory+set}" = set; then :
16022 withval=$with_default_mail_directory;
16023 if test "x$withval" != "xno" ; then
16024 dpv=$withval
16030 cat >>confdefs.h <<_ACEOF
16031 #define DF_MAIL_DIRECTORY "$dpv"
16032 _ACEOF
16036 dpv=INBOX
16038 # Check whether --with-default-inbox-name was given.
16039 if test "${with_default_inbox_name+set}" = set; then :
16040 withval=$with_default_inbox_name;
16041 if test "x$withval" != "xno" ; then
16042 dpv=$withval
16048 cat >>confdefs.h <<_ACEOF
16049 #define INBOX_NAME "$dpv"
16050 _ACEOF
16054 dpv=.signature
16056 # Check whether --with-default-signature-file was given.
16057 if test "${with_default_signature_file+set}" = set; then :
16058 withval=$with_default_signature_file;
16059 if test "x$withval" != "xno" ; then
16060 dpv=$withval
16066 cat >>confdefs.h <<_ACEOF
16067 #define DF_SIGNATURE_FILE "$dpv"
16068 _ACEOF
16072 dpv=no
16074 # Check whether --with-default-elm-style-save was given.
16075 if test "${with_default_elm_style_save+set}" = set; then :
16076 withval=$with_default_elm_style_save;
16077 if test "x$withval" != "xno" ; then
16078 dpv=$withval
16084 cat >>confdefs.h <<_ACEOF
16085 #define DF_ELM_STYLE_SAVE "$dpv"
16086 _ACEOF
16090 dpv=no
16092 # Check whether --with-default-header-in-reply was given.
16093 if test "${with_default_header_in_reply+set}" = set; then :
16094 withval=$with_default_header_in_reply;
16095 if test "x$withval" != "xno" ; then
16096 dpv=$withval
16102 cat >>confdefs.h <<_ACEOF
16103 #define DF_HEADER_IN_REPLY "$dpv"
16104 _ACEOF
16108 dpv=no
16110 # Check whether --with-default-old-style-reply was given.
16111 if test "${with_default_old_style_reply+set}" = set; then :
16112 withval=$with_default_old_style_reply;
16113 if test "x$withval" != "xno" ; then
16114 dpv=$withval
16120 cat >>confdefs.h <<_ACEOF
16121 #define DF_OLD_STYLE_REPLY "$dpv"
16122 _ACEOF
16126 dpv=no
16128 # Check whether --with-default-use-only-domain-name was given.
16129 if test "${with_default_use_only_domain_name+set}" = set; then :
16130 withval=$with_default_use_only_domain_name;
16131 if test "x$withval" != "xno" ; then
16132 dpv=$withval
16138 cat >>confdefs.h <<_ACEOF
16139 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16140 _ACEOF
16144 dpv=no
16146 # Check whether --with-default-save-by-sender was given.
16147 if test "${with_default_save_by_sender+set}" = set; then :
16148 withval=$with_default_save_by_sender;
16149 if test "x$withval" != "xno" ; then
16150 dpv=$withval
16156 cat >>confdefs.h <<_ACEOF
16157 #define DF_SAVE_BY_SENDER "$dpv"
16158 _ACEOF
16162 dpv=arrival
16164 # Check whether --with-default-sort-key was given.
16165 if test "${with_default_sort_key+set}" = set; then :
16166 withval=$with_default_sort_key;
16167 if test "x$withval" != "xno" ; then
16168 dpv=$withval
16174 cat >>confdefs.h <<_ACEOF
16175 #define DF_SORT_KEY "$dpv"
16176 _ACEOF
16180 dpv=fullname-with-lists-last
16182 # Check whether --with-default-addressbook-sort-rule was given.
16183 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16184 withval=$with_default_addressbook_sort_rule;
16185 if test "x$withval" != "xno" ; then
16186 dpv=$withval
16192 cat >>confdefs.h <<_ACEOF
16193 #define DF_AB_SORT_RULE "$dpv"
16194 _ACEOF
16198 dpv=alphabetical
16200 # Check whether --with-default-folder-sort-rule was given.
16201 if test "${with_default_folder_sort_rule+set}" = set; then :
16202 withval=$with_default_folder_sort_rule;
16203 if test "x$withval" != "xno" ; then
16204 dpv=$withval
16210 cat >>confdefs.h <<_ACEOF
16211 #define DF_FLD_SORT_RULE "$dpv"
16212 _ACEOF
16216 dpv=default-folder
16218 # Check whether --with-default-saved-message-name-rule was given.
16219 if test "${with_default_saved_message_name_rule+set}" = set; then :
16220 withval=$with_default_saved_message_name_rule;
16221 if test "x$withval" != "xno" ; then
16222 dpv=$withval
16228 cat >>confdefs.h <<_ACEOF
16229 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16230 _ACEOF
16234 dpv=default-fcc
16236 # Check whether --with-default-fcc-rule was given.
16237 if test "${with_default_fcc_rule+set}" = set; then :
16238 withval=$with_default_fcc_rule;
16239 if test "x$withval" != "xno" ; then
16240 dpv=$withval
16246 cat >>confdefs.h <<_ACEOF
16247 #define DF_FCC_RULE "$dpv"
16248 _ACEOF
16252 dpv=lpr
16254 # Check whether --with-default-standard-printer was given.
16255 if test "${with_default_standard_printer+set}" = set; then :
16256 withval=$with_default_standard_printer;
16257 if test "x$withval" != "xno" ; then
16258 dpv=$withval
16264 cat >>confdefs.h <<_ACEOF
16265 #define DF_STANDARD_PRINTER "$dpv"
16266 _ACEOF
16270 dpv=attached-to-ansi
16272 # Check whether --with-default-ansi-printer was given.
16273 if test "${with_default_ansi_printer+set}" = set; then :
16274 withval=$with_default_ansi_printer;
16275 if test "x$withval" != "xno" ; then
16276 dpv=$withval
16282 cat >>confdefs.h <<_ACEOF
16283 #define ANSI_PRINTER "$dpv"
16284 _ACEOF
16288 dpv=.addressbook
16290 # Check whether --with-default-addressbook was given.
16291 if test "${with_default_addressbook+set}" = set; then :
16292 withval=$with_default_addressbook;
16293 if test "x$withval" != "xno" ; then
16294 dpv=$withval
16300 cat >>confdefs.h <<_ACEOF
16301 #define DF_ADDRESSBOOK "$dpv"
16302 _ACEOF
16306 dpv="Local Support"
16308 # Check whether --with-default-local-fullname was given.
16309 if test "${with_default_local_fullname+set}" = set; then :
16310 withval=$with_default_local_fullname;
16311 if test "x$withval" != "xno" ; then
16312 dpv=$withval
16318 cat >>confdefs.h <<_ACEOF
16319 #define DF_LOCAL_FULLNAME "$dpv"
16320 _ACEOF
16324 dpv=postmaster
16326 # Check whether --with-default-local-address was given.
16327 if test "${with_default_local_address+set}" = set; then :
16328 withval=$with_default_local_address;
16329 if test "x$withval" != "xno" ; then
16330 dpv=$withval
16336 cat >>confdefs.h <<_ACEOF
16337 #define DF_LOCAL_ADDRESS "$dpv"
16338 _ACEOF
16342 dpv=1
16344 # Check whether --with-default-keyboard-lock-count was given.
16345 if test "${with_default_keyboard_lock_count+set}" = set; then :
16346 withval=$with_default_keyboard_lock_count;
16347 if test "x$withval" != "xno" ; then
16348 dpv=$withval
16354 cat >>confdefs.h <<_ACEOF
16355 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16356 _ACEOF
16360 dpv=3
16362 # Check whether --with-default-remote-addressbook-history was given.
16363 if test "${with_default_remote_addressbook_history+set}" = set; then :
16364 withval=$with_default_remote_addressbook_history;
16365 if test "x$withval" != "xno" ; then
16366 dpv=$withval
16372 cat >>confdefs.h <<_ACEOF
16373 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16374 _ACEOF
16378 dpv=.alpine-smime/public
16380 # Check whether --with-smime-public-cert-directory was given.
16381 if test "${with_smime_public_cert_directory+set}" = set; then :
16382 withval=$with_smime_public_cert_directory;
16383 if test "x$withval" != "xno" ; then
16384 dpv=$withval
16390 cat >>confdefs.h <<_ACEOF
16391 #define DF_PUBLICCERT_DIR "$dpv"
16392 _ACEOF
16396 dpv=.alpine-smime/private
16398 # Check whether --with-smime-private-key-directory was given.
16399 if test "${with_smime_private_key_directory+set}" = set; then :
16400 withval=$with_smime_private_key_directory;
16401 if test "x$withval" != "xno" ; then
16402 dpv=$withval
16408 cat >>confdefs.h <<_ACEOF
16409 #define DF_PRIVATEKEY_DIR "$dpv"
16410 _ACEOF
16414 dpv=.alpine-smime/ca
16416 # Check whether --with-smime-cacert-directory was given.
16417 if test "${with_smime_cacert_directory+set}" = set; then :
16418 withval=$with_smime_cacert_directory;
16419 if test "x$withval" != "xno" ; then
16420 dpv=$withval
16426 cat >>confdefs.h <<_ACEOF
16427 #define DF_CACERT_DIR "$dpv"
16428 _ACEOF
16432 dpv=ANSI_PRINTER
16434 # Check whether --with-default-printer was given.
16435 if test "${with_default_printer+set}" = set; then :
16436 withval=$with_default_printer;
16437 if test "x$withval" != "xno" ; then
16438 dpv=$withval
16444 cat >>confdefs.h <<_ACEOF
16445 #define DF_DEFAULT_PRINTER $dpv
16446 _ACEOF
16451 cat >>confdefs.h <<_ACEOF
16452 #define DF_PUBLIC_CONTAINER "PublicContainer"
16453 _ACEOF
16456 cat >>confdefs.h <<_ACEOF
16457 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16458 _ACEOF
16461 cat >>confdefs.h <<_ACEOF
16462 #define DF_CA_CONTAINER "CAContainer"
16463 _ACEOF
16467 # Check whether --with-passfile was given.
16468 if test "${with_passfile+set}" = set; then :
16469 withval=$with_passfile;
16470 case "$withval" in
16473 yes)
16476 alpine_PASSFILE=$withval
16478 esac
16485 # Check whether --with-local-password-cache was given.
16486 if test "${with_local_password_cache+set}" = set; then :
16487 withval=$with_local_password_cache;
16488 alpine_os_credential_cache=$withval
16494 # Check whether --with-local-password-cache-method was given.
16495 if test "${with_local_password_cache_method+set}" = set; then :
16496 withval=$with_local_password_cache_method;
16497 alpine_os_credential_cache_method=$withval
16502 if test -n "$alpine_PASSFILE" ; then
16503 case $alpine_os_credential_cache in
16507 alpine_os_credential_cache="no"
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
16509 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
16511 esac
16513 cat >>confdefs.h <<_ACEOF
16514 #define PASSFILE "$alpine_PASSFILE"
16515 _ACEOF
16520 # Check whether --with-default-sshpath was given.
16521 if test "${with_default_sshpath+set}" = set; then :
16522 withval=$with_default_sshpath;
16523 case "$withval" in
16526 yes)
16530 cat >>confdefs.h <<_ACEOF
16531 #define DF_SSHPATH "$withval"
16532 _ACEOF
16535 esac
16541 # Check whether --with-default-sshcmd was given.
16542 if test "${with_default_sshcmd+set}" = set; then :
16543 withval=$with_default_sshcmd;
16544 case "$withval" in
16547 yes)
16551 cat >>confdefs.h <<_ACEOF
16552 #define DF_SSHCMD "$withval"
16553 _ACEOF
16556 esac
16562 # Check whether --with-ssl was given.
16563 if test "${with_ssl+set}" = set; then :
16564 withval=$with_ssl; with_ssl=$withval
16568 if test "x$with_ssl" = "xno" ; then
16569 alpine_SSLTYPE="none"
16570 elif test -d /usr/local/ssl ; then
16571 alpine_SSLDIR="/usr/local/ssl"
16572 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16573 alpine_SSLLIB="$alpine_SSLDIR/lib"
16574 else
16575 case $host in
16576 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
16577 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
16578 alpine_SSLTYPE="nopwd"
16579 if test -d /etc/pki/tls ; then
16580 alpine_SSLDIR="/etc/pki/tls"
16581 else
16582 alpine_SSLDIR="/usr/share/ssl"
16584 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16585 alpine_SSLKEYS="$alpine_SSLDIR/private"
16586 alpine_SSLINCLUDE="/usr/include/openssl"
16587 alpine_SSLLIB="/usr/lib"
16588 elif test -f /etc/mandrake-release ; then
16589 alpine_SSLDIR="/usr/lib/ssl"
16590 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16591 alpine_SSLKEYS="$alpine_SSLDIR/private"
16592 alpine_SSLINCLUDE="/usr/include/openssl"
16593 alpine_SSLLIB="/usr/lib"
16594 elif test -f /etc/SuSE-release ; then
16595 alpine_SSLTYPE="nopwd"
16596 alpine_SSLDIR="/etc/ssl"
16597 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16598 alpine_SSLKEYS="$alpine_SSLDIR/private"
16599 alpine_SSLINCLUDE="/usr/include/openssl"
16600 alpine_SSLLIB="/usr/lib"
16601 elif test -d /etc/osso-af-init ; then
16602 alpine_SSLTYPE="nopwd"
16603 alpine_SSLDIR="/usr"
16604 alpine_SSLCERTS="/usr/share/certs"
16605 alpine_SSLINCLUDE="/usr/include/openssl"
16606 alpine_SSLLIB="/usr/lib"
16607 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16608 if test ! -d /etc/osso-af-init ; then
16609 alpine_SSLDIR="/etc/ssl"
16610 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16611 alpine_SSLKEYS="$alpine_SSLDIR/private"
16612 alpine_SSLINCLUDE="/usr/include/openssl"
16613 alpine_SSLLIB="/usr/lib"
16615 else
16616 alpine_SSLTYPE="nopwd"
16617 alpine_SSLDIR="/usr"
16618 alpine_SSLCERTS="/etc/ssl/certs"
16621 *-apple-darwin*)
16622 alpine_SSLTYPE="nopwd"
16623 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
16624 if test -d /usr/local/opt/openssl ; then
16625 alpine_SSLDIR="/usr/local/opt/openssl"
16626 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16627 alpine_SSLLIB="$alpine_SSLDIR/lib"
16628 alpine_SSLCERTS="/usr/local/etc/openssl"
16629 alpine_SSLKEYS="$alpine_SSLDIR/private"
16630 elif test -d /opt/local/etc/openssl ; then
16631 alpine_SSLDIR="/opt/local"
16632 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16633 alpine_SSLLIB="$alpine_SSLDIR/lib"
16634 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
16635 alpine_SSLKEYS="/opt/local/etc/openssl/private"
16636 elif test -d /sw/etc/ssl ; then
16637 alpine_SSLDIR="/sw/etc/ssl"
16638 alpine_SSLINCLUDE="/sw/include"
16639 alpine_SSLLIB="/sw/lib"
16640 alpine_SSLCERTS="/sw/etc/ssl/certs"
16641 alpine_SSLKEYS="/sw/etc/ssl/private"
16642 elif test -d /usr/local/ssl ; then
16643 alpine_SSLDIR="/usr/local/ssl"
16644 elif test -d /System/Library/OpenSSL ; then
16645 alpine_SSLDIR="/System/Library/OpenSSL"
16646 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16647 alpine_SSLKEYS="$alpine_SSLDIR/private"
16648 alpine_SSLLIB="/usr/lib"
16649 alpine_SSLINCLUDE="/usr/include/openssl"
16652 *-*-netbsd*)
16653 alpine_SSLDIR="/etc/openssl"
16654 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16655 alpine_SSLKEYS="$alpine_SSLDIR/private"
16656 alpine_SSLINCLUDE="/usr/include/openssl"
16657 alpine_SSLLIB="/usr/lib"
16659 *-*-dragonfly*)
16660 alpine_SSLDIR="/etc/openssl"
16661 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16662 alpine_SSLKEYS="$alpine_SSLDIR/private"
16663 alpine_SSLINCLUDE="/usr/include/openssl"
16664 alpine_SSLLIB="/usr/lib"
16666 *-openbsd*)
16667 alpine_SSLTYPE="nopwd"
16668 alpine_SSLDIR="/usr"
16669 alpine_SSLCERTS="/etc/ssl/certs"
16671 *-*-freebsd*)
16672 alpine_SSLDIR="/etc/ssl"
16673 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16674 alpine_SSLKEYS="$alpine_SSLDIR/private"
16675 if test -d /usr/local/include/openssl ; then
16676 alpine_SSLINCLUDE="/usr/local/include/openssl"
16677 alpine_SSLLIB="/usr/local/lib"
16678 else
16679 alpine_SSLINCLUDE="/usr/include/openssl"
16680 alpine_SSLLIB="/usr/lib"
16683 *-*-openbsd*)
16684 alpine_SSLDIR="/etc/ssl"
16685 alpine_SSLINCLUDE="/usr/include/openssl"
16686 alpine_SSLLIB="/usr/lib"
16687 alpine_SSLCERTS="/etc/ssl"
16688 alpine_SSLKEYS="/etc/ssl/private"
16690 *-*-cygwin)
16691 alpine_SSLDIR="/usr/ssl"
16692 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16693 alpine_SSLKEYS="$alpine_SSLDIR/certs"
16694 alpine_SSLINCLUDE="/usr/include/openssl"
16695 alpine_SSLLIB="/usr/lib"
16697 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
16698 alpine_SSLTYPE="sco.nopwd"
16699 alpine_SSLDIR="/usr/local/ssl"
16701 *-*-solaris*)
16702 if test -d /usr/sfw/include/openssl ; then
16703 alpine_SSLDIR="/usr/sfw"
16704 elif test -d /opt/csw/include/openssl ; then
16705 alpine_SSLDIR="/opt/csw"
16706 if test -d /opt/csw/ssl/certs ; then
16707 alpine_SSLCERTS="/opt/csw/ssl/certs"
16710 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
16711 alpine_SSLCERTS="/etc/certs"
16715 alpine_SSLTYPE="nopwd"
16716 alpine_SSLDIR="/usr/local/ssl"
16718 esac
16721 if test "x$alpine_SSLTYPE" != "xnone" ; then
16723 # Check whether --with-ssl-dir was given.
16724 if test "${with_ssl_dir+set}" = set; then :
16725 withval=$with_ssl_dir;
16726 if test "x$withval" != "xno" ; then
16727 alpine_SSLDIR=$withval
16728 alpine_SSLINCLUDE=$alpine_SSLDIR/include
16729 alpine_SSLLIB=$alpine_SSLDIR/lib
16736 # Check whether --with-ssl-certs-dir was given.
16737 if test "${with_ssl_certs_dir+set}" = set; then :
16738 withval=$with_ssl_certs_dir;
16739 if test "x$withval" != "xno" ; then
16740 alpine_SSLCERTS=$withval
16747 # Check whether --with-ssl-include-dir was given.
16748 if test "${with_ssl_include_dir+set}" = set; then :
16749 withval=$with_ssl_include_dir;
16750 if test "x$withval" != "xno" ; then
16751 alpine_SSLINCLUDE=$withval
16758 # Check whether --with-ssl-lib-dir was given.
16759 if test "${with_ssl_lib_dir+set}" = set; then :
16760 withval=$with_ssl_lib_dir;
16761 if test "x$withval" != "xno" ; then
16762 alpine_SSLLIB=$withval
16768 if test -n "$alpine_SSLINCLUDE" ; then
16769 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
16770 elif test -n "$alpine_SSLDIR" ; then
16771 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
16773 if test -n "$alpine_SSLLIB" ; then
16774 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
16775 elif test -n "$alpine_SSLDIR" ; then
16776 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
16782 # Check whether --with-krb5 was given.
16783 if test "${with_krb5+set}" = set; then :
16784 withval=$with_krb5; with_krb5=$withval
16788 if test "x$with_krb5" = "xno" ; then
16789 alpine_GSSTYPE="none"
16790 else
16791 alpine_GSSTYPE=
16794 # Check whether --with-krb5-dir was given.
16795 if test "${with_krb5_dir+set}" = set; then :
16796 withval=$with_krb5_dir;
16797 if test "x$withval" != "xno" ; then
16798 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16799 LDFLAGS="$LDFLAGS -L${withval}/lib"
16806 # Check whether --with-krb5-include-dir was given.
16807 if test "${with_krb5_include_dir+set}" = set; then :
16808 withval=$with_krb5_include_dir;
16809 if test "x$withval" != "xno" ; then
16810 CPPFLAGS="$CPPFLAGS -I$withval"
16817 # Check whether --with-krb5-lib-dir was given.
16818 if test "${with_krb5_lib_dir+set}" = set; then :
16819 withval=$with_krb5_lib_dir;
16820 if test "x$withval" != "xno" ; then
16821 LDFLAGS="$LDFLAGS -L$withval"
16829 # Check whether --with-ldap was given.
16830 if test "${with_ldap+set}" = set; then :
16831 withval=$with_ldap; with_ldap=$withval
16835 if test "x$with_ldap" = "xno" ; then
16836 alpine_with_ldap=
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
16838 $as_echo "$as_me: Excluding LDAP Support" >&6;}
16839 else
16841 alpine_with_ldap=yes
16843 # Check whether --with-ldap-dir was given.
16844 if test "${with_ldap_dir+set}" = set; then :
16845 withval=$with_ldap_dir;
16846 if test "x$withval" != "xno" ; then
16847 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16848 LDFLAGS="$LDFLAGS -L${withval}/lib"
16855 # Check whether --with-ldap-include-dir was given.
16856 if test "${with_ldap_include_dir+set}" = set; then :
16857 withval=$with_ldap_include_dir;
16858 if test "x$withval" != "xno" ; then
16859 CPPFLAGS="$CPPFLAGS -I$withval"
16866 # Check whether --with-ldap-lib-dir was given.
16867 if test "${with_ldap_lib_dir+set}" = set; then :
16868 withval=$with_ldap_lib_dir;
16869 if test "x$withval" != "xno" ; then
16870 LDFLAGS="$LDFLAGS -L$withval"
16878 # Check whether --with-smime was given.
16879 if test "${with_smime+set}" = set; then :
16880 withval=$with_smime; with_smime=$withval
16885 # Check whether --with-tcl was given.
16886 if test "${with_tcl+set}" = set; then :
16887 withval=$with_tcl; with_tcl=$withval
16891 if test "x$with_tcl" = "xno" ; then
16892 WEB_BUILD=
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
16894 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
16895 else
16897 # Check whether --with-tcl-lib was given.
16898 if test "${with_tcl_lib+set}" = set; then :
16899 withval=$with_tcl_lib;
16900 if test "x$withval" != "xno" ; then
16901 alpine_TCLLIB=$withval
16907 # Check whether --with-tcl-include was given.
16908 if test "${with_tcl_include+set}" = set; then :
16909 withval=$with_tcl_include;
16910 if test "x$withval" != "xno" ; then
16911 CPPFLAGS="$CPPFLAGS -I$withval"
16912 alpine_TCLINC=$withval
16920 # Check whether --with-supplied-regex was given.
16921 if test "${with_supplied_regex+set}" = set; then :
16922 withval=$with_supplied_regex; alpine_REGEX=$withval
16927 # Check whether --with-pthread was given.
16928 if test "${with_pthread+set}" = set; then :
16929 withval=$with_pthread; with_pthread=$withval
16934 # Check whether --with-system-mail-directory was given.
16935 if test "${with_system_mail_directory+set}" = set; then :
16936 withval=$with_system_mail_directory;
16937 if test "x$withval" != "xno" ; then
16938 alpine_with_local_maildir="$withval"
16945 # Check whether --with-c-client-target was given.
16946 if test "${with_c_client_target+set}" = set; then :
16947 withval=$with_c_client_target;
16948 if test "x$withval" != "xno" ;then
16949 alpine_with_c_client_target="$withval"
16956 alpine_PAM="none"
16958 case "$host" in
16959 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
16960 alpine_path_delim="/"
16961 alpine_mode_readonly="(0600)"
16962 if test -f /etc/fedora-release ; then
16963 systype="LFD"
16964 alpine_PAM="yes"
16965 if test -d /etc/pki/tls ; then
16966 alpine_c_client_target="lfd"
16967 else
16968 alpine_c_client_target="lrh"
16970 elif test -f /etc/mandrake-release ; then
16971 systype="LMD"
16972 alpine_c_client_target="lmd"
16973 alpine_PAM="yes"
16974 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16975 systype="LRH"
16976 alpine_PAM="yes"
16977 if test -d /etc/pki/tls ; then
16978 alpine_c_client_target="lr5"
16979 else
16980 alpine_c_client_target="lrh"
16982 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16983 if test -d /etc/osso-af-init ; then
16984 systype="LN8"
16985 alpine_c_client_target="ln8"
16986 else
16987 systype="DEB"
16988 alpine_c_client_target="ldb"
16989 alpine_PAM="yes"
16991 elif test -f /etc/SuSE-release ; then
16992 systype="LSU"
16993 alpine_c_client_target="lsu"
16994 alpine_PAM="yes"
16995 else
16996 systype="LNX"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16998 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16999 if ${ac_cv_lib_pam_pam_start+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001 else
17002 ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lpam $LIBS"
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17010 #ifdef __cplusplus
17011 extern "C"
17012 #endif
17013 char pam_start ();
17015 main ()
17017 return pam_start ();
17019 return 0;
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 ac_cv_lib_pam_pam_start=yes
17024 else
17025 ac_cv_lib_pam_pam_start=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17032 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17033 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17035 alpine_c_client_target="lnp"
17036 alpine_PAM="yes"
17038 else
17040 if test -f /etc/shadow ; then
17041 alpine_c_client_target="slx"
17042 else
17043 alpine_c_client_target="lnx"
17050 *-apple-darwin*)
17051 systype="OSX"
17052 alpine_path_delim="/"
17053 alpine_mode_readonly="(0600)"
17054 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17055 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17057 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17059 case "$alpine_os_credential_cache" in
17064 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17067 esac
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17069 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17070 if ${ac_cv_lib_pam_pam_start+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lpam $LIBS"
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 char pam_start ();
17086 main ()
17088 return pam_start ();
17090 return 0;
17092 _ACEOF
17093 if ac_fn_c_try_link "$LINENO"; then :
17094 ac_cv_lib_pam_pam_start=yes
17095 else
17096 ac_cv_lib_pam_pam_start=no
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100 LIBS=$ac_check_lib_save_LIBS
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17103 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17104 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17106 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17107 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17109 alpine_PAM="yes"
17110 alpine_c_client_target="oxs"
17112 else
17113 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17114 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17116 alpine_PAM="yes"
17117 alpine_c_client_target="oxp"
17119 else
17121 alpine_PAM="none"
17122 alpine_pam_none_reason="header files not found"
17132 else
17134 alpine_c_client_target="osx"
17139 *-*-solaris*)
17140 if test x$GCC = "xyes" ; then
17141 systype="GSO"
17142 alpine_c_client_target="gso"
17143 else
17144 systype="SOC"
17145 alpine_c_client_target="soc"
17147 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17150 alpine_path_delim="/"
17151 alpine_mode_readonly="(0600)"
17153 *-*-sunos4*)
17154 systype="SUN"
17155 alpine_path_delim="/"
17156 alpine_mode_readonly="(0600)"
17157 alpine_c_client_target="s40"
17159 *-*-sco3.2v5*)
17160 if test x$GCC = "xyes" ; then
17161 systype="GO5"
17162 alpine_c_client_target="go5"
17163 else
17164 systype="SC5"
17165 alpine_c_client_target="sc5"
17167 alpine_path_delim="/"
17168 alpine_mode_readonly="(0600)"
17170 *-next-*)
17171 systype="NXT"
17172 alpine_path_delim="/"
17173 alpine_mode_readonly="(0600)"
17174 alpine_c_client_target="nx3"
17176 *-*-netbsd*)
17177 systype="NEB"
17178 alpine_path_delim="/"
17179 alpine_mode_readonly="(0600)"
17180 alpine_c_client_target="neb"
17182 *-*-dragonfly*)
17183 systype="DFB"
17184 alpine_path_delim="/"
17185 alpine_mode_readonly="(0600)"
17186 alpine_c_client_target="neb"
17188 *-*-bsdi*)
17189 systype="BSI"
17190 alpine_path_delim="/"
17191 alpine_mode_readonly="(0600)"
17192 alpine_c_client_target="bsi"
17194 *-*-freebsd*)
17195 systype="BSF"
17196 alpine_path_delim="/"
17197 alpine_mode_readonly="(0600)"
17198 alpine_c_client_target="bsf"
17199 LIBS="$LIBS $LIBINTL"
17201 *-*-openbsd*)
17202 systype="BSO"
17203 alpine_path_delim="/"
17204 alpine_mode_readonly="(0600)"
17205 alpine_c_client_target="bso"
17206 LIBS="$LIBS $LIBINTL"
17208 *-*-aix5*)
17209 systype="A52"
17210 alpine_path_delim="/"
17211 alpine_mode_readonly="(0600)"
17212 alpine_c_client_target="a52"
17214 *-*-aix4*)
17215 systype="A41"
17216 alpine_path_delim="/"
17217 alpine_mode_readonly="(0600)"
17218 alpine_c_client_target="a41"
17220 *-*-aix3*)
17221 systype="A32"
17222 alpine_path_delim="/"
17223 alpine_mode_readonly="(0600)"
17224 alpine_c_client_target="a32"
17226 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17227 systype="UW2"
17228 alpine_path_delim="/"
17229 alpine_mode_readonly="(0600)"
17230 alpine_c_client_target="uw2"
17232 *-*-osf5*)
17233 systype="OSF"
17234 alpine_path_delim="/"
17235 alpine_mode_readonly="(0600)"
17236 alpine_c_client_target="osf"
17238 *-*-cygwin)
17239 systype="CYG"
17240 alpine_path_delim="/"
17241 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17242 alpine_c_client_target="cyg"
17243 LIBS="$LIBS $LIBINTL"
17245 windows* | *-*-pw32*)
17246 systype="WNT"
17247 alpine_path_delim="\\"
17248 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17249 alpine_c_client_target="wnt"
17251 $as_echo "#define _WINDOWS 1" >>confdefs.h
17255 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17257 esac
17260 # Check whether --with-ipv6 was given.
17261 if test "${with_ipv6+set}" = set; then :
17262 withval=$with_ipv6; with_ipv6=$withval
17266 if test "x$with_ipv6" = "xno" ; then
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17268 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17269 c_client_specials="${c_client_specials}IP6=4 "
17270 c_client_ip6="true"
17271 else
17272 c_client_ip6="touch imap/ip6"
17277 if test x$enable_dmalloc = "xyes" ; then
17278 if test "x$with_pthread" = "xyes" ; then
17279 dmalloc_lib=dmallocth
17280 else
17281 dmalloc_lib=dmalloc
17284 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17286 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17287 if eval \${$as_ac_Lib+:} false; then :
17288 $as_echo_n "(cached) " >&6
17289 else
17290 ac_check_lib_save_LIBS=$LIBS
17291 LIBS="-l$dmalloc_lib $LIBS"
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char dmalloc_shutdown ();
17303 main ()
17305 return dmalloc_shutdown ();
17307 return 0;
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"; then :
17311 eval "$as_ac_Lib=yes"
17312 else
17313 eval "$as_ac_Lib=no"
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17317 LIBS=$ac_check_lib_save_LIBS
17319 eval ac_res=\$$as_ac_Lib
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17321 $as_echo "$ac_res" >&6; }
17322 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17323 cat >>confdefs.h <<_ACEOF
17324 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
17325 _ACEOF
17327 LIBS="-l$dmalloc_lib $LIBS"
17329 else
17331 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
17338 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
17339 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 ac_check_lib_save_LIBS=$LIBS
17343 LIBS="-ltinfo $LIBS"
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17347 /* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17350 #ifdef __cplusplus
17351 extern "C"
17352 #endif
17353 char setupterm ();
17355 main ()
17357 return setupterm ();
17359 return 0;
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 ac_cv_lib_tinfo_setupterm=yes
17364 else
17365 ac_cv_lib_tinfo_setupterm=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 LIBS=$ac_check_lib_save_LIBS
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
17372 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
17373 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
17375 alpine_termdata=info
17376 LIBS="$LIBS -ltinfo"
17378 else
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
17381 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
17382 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lncurses $LIBS"
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 char setupterm ();
17398 main ()
17400 return setupterm ();
17402 return 0;
17404 _ACEOF
17405 if ac_fn_c_try_link "$LINENO"; then :
17406 ac_cv_lib_ncurses_setupterm=yes
17407 else
17408 ac_cv_lib_ncurses_setupterm=no
17410 rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
17415 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
17416 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
17418 alpine_termdata=info
17419 LIBS="$LIBS -lncurses"
17421 else
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
17424 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
17425 if ${ac_cv_lib_curses_setupterm+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 ac_check_lib_save_LIBS=$LIBS
17429 LIBS="-lcurses $LIBS"
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17433 /* Override any GCC internal prototype to avoid an error.
17434 Use char because int might match the return type of a GCC
17435 builtin and then its argument prototype would still apply. */
17436 #ifdef __cplusplus
17437 extern "C"
17438 #endif
17439 char setupterm ();
17441 main ()
17443 return setupterm ();
17445 return 0;
17447 _ACEOF
17448 if ac_fn_c_try_link "$LINENO"; then :
17449 ac_cv_lib_curses_setupterm=yes
17450 else
17451 ac_cv_lib_curses_setupterm=no
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
17458 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
17459 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
17461 alpine_termdata=info
17462 LIBS="$LIBS -lcurses"
17464 else
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
17467 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
17468 if ${ac_cv_lib_termlib_tgetent+:} false; then :
17469 $as_echo_n "(cached) " >&6
17470 else
17471 ac_check_lib_save_LIBS=$LIBS
17472 LIBS="-ltermlib $LIBS"
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17476 /* Override any GCC internal prototype to avoid an error.
17477 Use char because int might match the return type of a GCC
17478 builtin and then its argument prototype would still apply. */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 char tgetent ();
17484 main ()
17486 return tgetent ();
17488 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_link "$LINENO"; then :
17492 ac_cv_lib_termlib_tgetent=yes
17493 else
17494 ac_cv_lib_termlib_tgetent=no
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
17501 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
17502 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
17504 alpine_termdata=cap
17505 LIBS="$LIBS -ltermlib"
17507 else
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
17510 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
17511 if ${ac_cv_lib_termcap_tgetent+:} false; then :
17512 $as_echo_n "(cached) " >&6
17513 else
17514 ac_check_lib_save_LIBS=$LIBS
17515 LIBS="-ltermcap $LIBS"
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17519 /* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 char tgetent ();
17527 main ()
17529 return tgetent ();
17531 return 0;
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 ac_cv_lib_termcap_tgetent=yes
17536 else
17537 ac_cv_lib_termcap_tgetent=no
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17541 LIBS=$ac_check_lib_save_LIBS
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
17544 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
17545 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
17547 alpine_termdata=cap
17548 LIBS="$LIBS -ltermcap"
17550 else
17552 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
17568 case $alpine_termdata in
17569 info)
17571 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
17574 cap)
17576 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
17579 esac
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17582 $as_echo_n "checking for library containing dlopen... " >&6; }
17583 if ${ac_cv_search_dlopen+:} false; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586 ac_func_search_save_LIBS=$LIBS
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h. */
17590 /* Override any GCC internal prototype to avoid an error.
17591 Use char because int might match the return type of a GCC
17592 builtin and then its argument prototype would still apply. */
17593 #ifdef __cplusplus
17594 extern "C"
17595 #endif
17596 char dlopen ();
17598 main ()
17600 return dlopen ();
17602 return 0;
17604 _ACEOF
17605 for ac_lib in '' dl dld; do
17606 if test -z "$ac_lib"; then
17607 ac_res="none required"
17608 else
17609 ac_res=-l$ac_lib
17610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17612 if ac_fn_c_try_link "$LINENO"; then :
17613 ac_cv_search_dlopen=$ac_res
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext
17617 if ${ac_cv_search_dlopen+:} false; then :
17618 break
17620 done
17621 if ${ac_cv_search_dlopen+:} false; then :
17623 else
17624 ac_cv_search_dlopen=no
17626 rm conftest.$ac_ext
17627 LIBS=$ac_func_search_save_LIBS
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17630 $as_echo "$ac_cv_search_dlopen" >&6; }
17631 ac_res=$ac_cv_search_dlopen
17632 if test "$ac_res" != no; then :
17633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17635 else
17636 alpine_DL="none"
17639 if test "x$alpine_DL" = "xnone" ; then
17640 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
17641 exit 1
17644 if test "x$alpine_SSLTYPE" != "xnone" ; then
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
17646 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
17647 if test "$cross_compiling" = yes; then :
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
17649 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17650 else
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17654 #include <stdio.h>
17655 #include <stdlib.h>
17656 #if HAVE_STDINT_H
17657 #include <stdint.h>
17658 #endif /* HAVE_STDINT_H */
17659 #include <openssl/ssl.h>
17660 int main(void) {
17662 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
17663 exit(0);
17665 exit(2);
17668 _ACEOF
17669 if ac_fn_c_try_run "$LINENO"; then :
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671 $as_echo "yes" >&6; }
17672 else
17673 alpine_SSLTYPE="none"
17675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17676 conftest.$ac_objext conftest.beam conftest.$ac_ext
17680 if test "x$alpine_SSLTYPE" = "xnone" ; then
17681 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
17682 exit 1
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
17685 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
17686 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17687 $as_echo_n "(cached) " >&6
17688 else
17689 ac_func_search_save_LIBS=$LIBS
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 char TLSv1_2_client_method ();
17701 main ()
17703 return TLSv1_2_client_method ();
17705 return 0;
17707 _ACEOF
17708 for ac_lib in '' ssl; do
17709 if test -z "$ac_lib"; then
17710 ac_res="none required"
17711 else
17712 ac_res=-l$ac_lib
17713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17715 if ac_fn_c_try_link "$LINENO"; then :
17716 ac_cv_search_TLSv1_2_client_method=$ac_res
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext
17720 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17721 break
17723 done
17724 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17726 else
17727 ac_cv_search_TLSv1_2_client_method=no
17729 rm conftest.$ac_ext
17730 LIBS=$ac_func_search_save_LIBS
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
17733 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
17734 ac_res=$ac_cv_search_TLSv1_2_client_method
17735 if test "$ac_res" != no; then :
17736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17737 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
17739 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
17746 if test "x$alpine_SSLTYPE" != "xnone" ; then
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
17748 $as_echo_n "checking for library containing SSLeay... " >&6; }
17749 if ${ac_cv_search_SSLeay+:} false; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 ac_func_search_save_LIBS=$LIBS
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 char SSLeay ();
17764 main ()
17766 return SSLeay ();
17768 return 0;
17770 _ACEOF
17771 for ac_lib in '' crypto; do
17772 if test -z "$ac_lib"; then
17773 ac_res="none required"
17774 else
17775 ac_res=-l$ac_lib
17776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17778 if ac_fn_c_try_link "$LINENO"; then :
17779 ac_cv_search_SSLeay=$ac_res
17781 rm -f core conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext
17783 if ${ac_cv_search_SSLeay+:} false; then :
17784 break
17786 done
17787 if ${ac_cv_search_SSLeay+:} false; then :
17789 else
17790 ac_cv_search_SSLeay=no
17792 rm conftest.$ac_ext
17793 LIBS=$ac_func_search_save_LIBS
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
17796 $as_echo "$ac_cv_search_SSLeay" >&6; }
17797 ac_res=$ac_cv_search_SSLeay
17798 if test "$ac_res" != no; then :
17799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17801 else
17802 alpine_CRYPTO="none"
17805 if test "x$alpine_CRYPTO" = "xnone" ; then
17806 as_fn_error $? "crypto library NOT found" "$LINENO" 5
17807 exit 1
17811 if test "x$alpine_SSLTYPE" != "xnone" ; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
17813 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
17814 if ${ac_cv_search_SSL_library_init+:} false; then :
17815 $as_echo_n "(cached) " >&6
17816 else
17817 ac_func_search_save_LIBS=$LIBS
17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char SSL_library_init ();
17829 main ()
17831 return SSL_library_init ();
17833 return 0;
17835 _ACEOF
17836 for ac_lib in '' ssl; do
17837 if test -z "$ac_lib"; then
17838 ac_res="none required"
17839 else
17840 ac_res=-l$ac_lib
17841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17843 if ac_fn_c_try_link "$LINENO"; then :
17844 ac_cv_search_SSL_library_init=$ac_res
17846 rm -f core conftest.err conftest.$ac_objext \
17847 conftest$ac_exeext
17848 if ${ac_cv_search_SSL_library_init+:} false; then :
17849 break
17851 done
17852 if ${ac_cv_search_SSL_library_init+:} false; then :
17854 else
17855 ac_cv_search_SSL_library_init=no
17857 rm conftest.$ac_ext
17858 LIBS=$ac_func_search_save_LIBS
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
17861 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
17862 ac_res=$ac_cv_search_SSL_library_init
17863 if test "$ac_res" != no; then :
17864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17866 else
17867 alpine_SSLTYPE="none"
17871 if test "x$alpine_SSLTYPE" = "xnone" ; then
17872 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
17873 exit 1
17878 if test "$alpine_with_ldap" = "yes" ; then
17879 alpine_has_ldap=
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
17881 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
17882 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17885 ac_check_lib_save_LIBS=$LIBS
17886 LIBS="-llber $LIBS"
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17890 /* Override any GCC internal prototype to avoid an error.
17891 Use char because int might match the return type of a GCC
17892 builtin and then its argument prototype would still apply. */
17893 #ifdef __cplusplus
17894 extern "C"
17895 #endif
17896 char ber_alloc ();
17898 main ()
17900 return ber_alloc ();
17902 return 0;
17904 _ACEOF
17905 if ac_fn_c_try_link "$LINENO"; then :
17906 ac_cv_lib_lber_ber_alloc=yes
17907 else
17908 ac_cv_lib_lber_ber_alloc=no
17910 rm -f core conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
17912 LIBS=$ac_check_lib_save_LIBS
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
17915 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
17916 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
17918 LIBS="$LIBS -llber"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
17923 $as_echo_n "checking for library containing ldap_init... " >&6; }
17924 if ${ac_cv_search_ldap_init+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 ac_func_search_save_LIBS=$LIBS
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char ldap_init ();
17939 main ()
17941 return ldap_init ();
17943 return 0;
17945 _ACEOF
17946 for ac_lib in '' ldap; do
17947 if test -z "$ac_lib"; then
17948 ac_res="none required"
17949 else
17950 ac_res=-l$ac_lib
17951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17953 if ac_fn_c_try_link "$LINENO"; then :
17954 ac_cv_search_ldap_init=$ac_res
17956 rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext
17958 if ${ac_cv_search_ldap_init+:} false; then :
17959 break
17961 done
17962 if ${ac_cv_search_ldap_init+:} false; then :
17964 else
17965 ac_cv_search_ldap_init=no
17967 rm conftest.$ac_ext
17968 LIBS=$ac_func_search_save_LIBS
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17971 $as_echo "$ac_cv_search_ldap_init" >&6; }
17972 ac_res=$ac_cv_search_ldap_init
17973 if test "$ac_res" != no; then :
17974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17976 alpine_has_ldap=yes
17978 else
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17981 $as_echo_n "checking for library containing ldap_open... " >&6; }
17982 if ${ac_cv_search_ldap_open+:} false; then :
17983 $as_echo_n "(cached) " >&6
17984 else
17985 ac_func_search_save_LIBS=$LIBS
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char ldap_open ();
17997 main ()
17999 return ldap_open ();
18001 return 0;
18003 _ACEOF
18004 for ac_lib in '' ldap; do
18005 if test -z "$ac_lib"; then
18006 ac_res="none required"
18007 else
18008 ac_res=-l$ac_lib
18009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18011 if ac_fn_c_try_link "$LINENO"; then :
18012 ac_cv_search_ldap_open=$ac_res
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext
18016 if ${ac_cv_search_ldap_open+:} false; then :
18017 break
18019 done
18020 if ${ac_cv_search_ldap_open+:} false; then :
18022 else
18023 ac_cv_search_ldap_open=no
18025 rm conftest.$ac_ext
18026 LIBS=$ac_func_search_save_LIBS
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18029 $as_echo "$ac_cv_search_ldap_open" >&6; }
18030 ac_res=$ac_cv_search_ldap_open
18031 if test "$ac_res" != no; then :
18032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18034 alpine_has_ldap=yes
18042 if test "$alpine_has_ldap" = "yes" ; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18044 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18046 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
18050 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
18051 if test "$cross_compiling" = yes; then :
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18054 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18057 else
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18061 #include <stdio.h>
18062 #include <stdlib.h>
18063 #include <ldap.h>
18064 int main(void) {
18066 if (LDAP_VENDOR_VERSION >= 20300)
18067 exit(0);
18069 exit(2);
18072 _ACEOF
18073 if ac_fn_c_try_run "$LINENO"; then :
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18076 $as_echo "yes" >&6; }
18078 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
18082 else
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18085 $as_echo "no" >&6; }
18088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18089 conftest.$ac_objext conftest.beam conftest.$ac_ext
18093 else
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
18095 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
18099 if test "x$alpine_PAM" != "xnone" ; then
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18101 $as_echo_n "checking for library containing pam_start... " >&6; }
18102 if ${ac_cv_search_pam_start+:} false; then :
18103 $as_echo_n "(cached) " >&6
18104 else
18105 ac_func_search_save_LIBS=$LIBS
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18109 /* Override any GCC internal prototype to avoid an error.
18110 Use char because int might match the return type of a GCC
18111 builtin and then its argument prototype would still apply. */
18112 #ifdef __cplusplus
18113 extern "C"
18114 #endif
18115 char pam_start ();
18117 main ()
18119 return pam_start ();
18121 return 0;
18123 _ACEOF
18124 for ac_lib in '' pam; do
18125 if test -z "$ac_lib"; then
18126 ac_res="none required"
18127 else
18128 ac_res=-l$ac_lib
18129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 ac_cv_search_pam_start=$ac_res
18134 rm -f core conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext
18136 if ${ac_cv_search_pam_start+:} false; then :
18137 break
18139 done
18140 if ${ac_cv_search_pam_start+:} false; then :
18142 else
18143 ac_cv_search_pam_start=no
18145 rm conftest.$ac_ext
18146 LIBS=$ac_func_search_save_LIBS
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18149 $as_echo "$ac_cv_search_pam_start" >&6; }
18150 ac_res=$ac_cv_search_pam_start
18151 if test "$ac_res" != no; then :
18152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18154 LIBS="$LIBS -lpam"
18155 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18156 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18158 alpine_PAM="yes"
18160 else
18161 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18162 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18164 alpine_PAM="yes"
18165 if test "x$alpine_c_client_target" != "xoxp" ; then
18166 alpine_PAM="none"
18167 alpine_pam_none_reason="header files not in security/ directory"
18170 else
18172 alpine_PAM="none"
18173 alpine_pam_none_reason="header files not found"
18183 else
18185 alpine_PAM="none"
18186 alpine_pam_none_reason="library files not found"
18190 if test -n "$alpine_pam_none_reason" ; then
18191 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
18196 if test "x$alpine_GSSTYPE" != "xnone" ; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
18198 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
18199 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18200 $as_echo_n "(cached) " >&6
18201 else
18202 ac_func_search_save_LIBS=$LIBS
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18209 #ifdef __cplusplus
18210 extern "C"
18211 #endif
18212 char gss_init_sec_context ();
18214 main ()
18216 return gss_init_sec_context ();
18218 return 0;
18220 _ACEOF
18221 for ac_lib in '' gss gssapi gssapi_krb5; do
18222 if test -z "$ac_lib"; then
18223 ac_res="none required"
18224 else
18225 ac_res=-l$ac_lib
18226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 ac_cv_search_gss_init_sec_context=$ac_res
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext
18233 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18234 break
18236 done
18237 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18239 else
18240 ac_cv_search_gss_init_sec_context=no
18242 rm conftest.$ac_ext
18243 LIBS=$ac_func_search_save_LIBS
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
18246 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
18247 ac_res=$ac_cv_search_gss_init_sec_context
18248 if test "$ac_res" != no; then :
18249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18251 LIBS="$LIBS -lkrb5"
18252 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
18253 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
18255 else
18257 if test ! -d /usr/kerberos/include ; then
18258 alpine_GSSTYPE="none"
18259 alpine_gss_none_reason="header files not found"
18266 else
18268 alpine_GSSTYPE="none"
18269 alpine_gss_none_reason="libraries not found"
18273 if test -n "$alpine_gss_none_reason" ; then
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
18275 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
18279 if test -n "$WEB_BUILD" ; then
18280 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
18281 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
18282 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
18284 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
18285 if ${ac_cv_search_Tcl_Eval+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 ac_func_search_save_LIBS=$LIBS
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 char Tcl_Eval ();
18300 main ()
18302 return Tcl_Eval ();
18304 return 0;
18306 _ACEOF
18307 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
18308 if test -z "$ac_lib"; then
18309 ac_res="none required"
18310 else
18311 ac_res=-l$ac_lib
18312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18314 if ac_fn_c_try_link "$LINENO"; then :
18315 ac_cv_search_Tcl_Eval=$ac_res
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext
18319 if ${ac_cv_search_Tcl_Eval+:} false; then :
18320 break
18322 done
18323 if ${ac_cv_search_Tcl_Eval+:} false; then :
18325 else
18326 ac_cv_search_Tcl_Eval=no
18328 rm conftest.$ac_ext
18329 LIBS=$ac_func_search_save_LIBS
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
18332 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
18333 ac_res=$ac_cv_search_Tcl_Eval
18334 if test "$ac_res" != no; then :
18335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18337 else
18339 WEB_BUILD=
18344 if test -n "$alpine_TCLINC" ; then
18345 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
18346 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
18347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18349 else
18351 WEB_BUILD=
18356 if test -z "$WEB_BUILD" ; then
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
18358 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
18360 else
18361 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18362 if test "x$ac_cv_header_tcl_h" = xyes; then :
18364 else
18366 for base in /usr /usr/local ; do
18367 for dir in ${TCL_VERSIONS} ; do
18368 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
18370 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
18371 if eval \${$as_ac_File+:} false; then :
18372 $as_echo_n "(cached) " >&6
18373 else
18374 test "$cross_compiling" = yes &&
18375 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18376 if test -r "$base/include/$dir/tcl.h"; then
18377 eval "$as_ac_File=yes"
18378 else
18379 eval "$as_ac_File=no"
18382 eval ac_res=\$$as_ac_File
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18384 $as_echo "$ac_res" >&6; }
18385 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18387 found=yes
18391 if test "$found" = "yes" ; then
18392 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
18393 break
18395 done
18396 if test "$found" = "yes" ; then
18397 break
18399 done
18400 if test "$found" != "yes" ; then
18401 WEB_BUILD=
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
18403 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
18412 if test "x$alpine_REGEX" != "xyes" ; then
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
18414 $as_echo_n "checking for library containing regcomp... " >&6; }
18415 if ${ac_cv_search_regcomp+:} false; then :
18416 $as_echo_n "(cached) " >&6
18417 else
18418 ac_func_search_save_LIBS=$LIBS
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char regcomp ();
18430 main ()
18432 return regcomp ();
18434 return 0;
18436 _ACEOF
18437 for ac_lib in '' posix regexp regex re; do
18438 if test -z "$ac_lib"; then
18439 ac_res="none required"
18440 else
18441 ac_res=-l$ac_lib
18442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18444 if ac_fn_c_try_link "$LINENO"; then :
18445 ac_cv_search_regcomp=$ac_res
18447 rm -f core conftest.err conftest.$ac_objext \
18448 conftest$ac_exeext
18449 if ${ac_cv_search_regcomp+:} false; then :
18450 break
18452 done
18453 if ${ac_cv_search_regcomp+:} false; then :
18455 else
18456 ac_cv_search_regcomp=no
18458 rm conftest.$ac_ext
18459 LIBS=$ac_func_search_save_LIBS
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
18462 $as_echo "$ac_cv_search_regcomp" >&6; }
18463 ac_res=$ac_cv_search_regcomp
18464 if test "$ac_res" != no; then :
18465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18467 else
18469 if test x$alpine_REGEX = "xno" ; then
18470 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
18471 else
18472 alpine_REGEX=yes
18478 if test "x$alpine_REGEX" != "xyes" ; then
18479 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
18480 if test "x$ac_cv_header_regex_h" = xyes; then :
18482 else
18484 if test x$alpine_REGEX = "xno" ; then
18485 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
18486 else
18487 alpine_REGEX=yes
18495 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
18497 if test "x$alpine_REGEX" = "xyes" ; then
18498 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
18499 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
18500 REGEX_BUILD=regex
18501 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
18504 if test "x$with_pthread" != "xno" ; then
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
18506 $as_echo_n "checking for pthread support... " >&6; }
18510 ac_ext=c
18511 ac_cpp='$CPP $CPPFLAGS'
18512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18516 acx_pthread_ok=no
18518 # We used to check for pthread.h first, but this fails if pthread.h
18519 # requires special compiler flags (e.g. on True64 or Sequent).
18520 # It gets checked for in the link test anyway.
18522 # First of all, check if the user has set any of the PTHREAD_LIBS,
18523 # etcetera environment variables, and if threads linking works using
18524 # them:
18525 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18526 save_CFLAGS="$CFLAGS"
18527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18528 save_LIBS="$LIBS"
18529 LIBS="$PTHREAD_LIBS $LIBS"
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18531 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18535 /* Override any GCC internal prototype to avoid an error.
18536 Use char because int might match the return type of a GCC
18537 builtin and then its argument prototype would still apply. */
18538 #ifdef __cplusplus
18539 extern "C"
18540 #endif
18541 char pthread_join ();
18543 main ()
18545 return pthread_join ();
18547 return 0;
18549 _ACEOF
18550 if ac_fn_c_try_link "$LINENO"; then :
18551 acx_pthread_ok=yes
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18556 $as_echo "$acx_pthread_ok" >&6; }
18557 if test x"$acx_pthread_ok" = xno; then
18558 PTHREAD_LIBS=""
18559 PTHREAD_CFLAGS=""
18561 LIBS="$save_LIBS"
18562 CFLAGS="$save_CFLAGS"
18565 # We must check for the threads library under a number of different
18566 # names; the ordering is very important because some systems
18567 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18568 # libraries is broken (non-POSIX).
18570 # Create a list of thread flags to try. Items starting with a "-" are
18571 # C compiler flags, and other items are library names, except for "none"
18572 # which indicates that we try without any flags at all, and "pthread-config"
18573 # which is a program returning the flags for the Pth emulation library.
18575 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18577 # The ordering *is* (sometimes) important. Some notes on the
18578 # individual items follow:
18580 # pthreads: AIX (must check this before -lpthread)
18581 # none: in case threads are in libc; should be tried before -Kthread and
18582 # other compiler flags to prevent continual compiler warnings
18583 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18584 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18585 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18586 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18587 # -pthreads: Solaris/gcc
18588 # -mthreads: Mingw32/gcc, Lynx/gcc
18589 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18590 # doesn't hurt to check since this sometimes defines pthreads too;
18591 # also defines -D_REENTRANT)
18592 # ... -mt is also the pthreads flag for HP/aCC
18593 # pthread: Linux, etcetera
18594 # --thread-safe: KAI C++
18595 # pthread-config: use pthread-config program (for GNU Pth library)
18597 case "${host_cpu}-${host_os}" in
18598 *solaris*)
18600 # On Solaris (at least, for some versions), libc contains stubbed
18601 # (non-functional) versions of the pthreads routines, so link-based
18602 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18603 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18604 # a function called by this macro, so we could check for that, but
18605 # who knows whether they'll stub that too in a future libc.) So,
18606 # we'll just look for -pthreads and -lpthread first:
18608 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18610 esac
18612 if test x"$acx_pthread_ok" = xno; then
18613 for flag in $acx_pthread_flags; do
18615 case $flag in
18616 none)
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18618 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18623 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18624 PTHREAD_CFLAGS="$flag"
18627 pthread-config)
18628 # Extract the first word of "pthread-config", so it can be a program name with args.
18629 set dummy pthread-config; ac_word=$2
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631 $as_echo_n "checking for $ac_word... " >&6; }
18632 if ${ac_cv_prog_acx_pthread_config+:} false; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 if test -n "$acx_pthread_config"; then
18636 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18637 else
18638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18639 for as_dir in $PATH
18641 IFS=$as_save_IFS
18642 test -z "$as_dir" && as_dir=.
18643 for ac_exec_ext in '' $ac_executable_extensions; do
18644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18645 ac_cv_prog_acx_pthread_config="yes"
18646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18647 break 2
18649 done
18650 done
18651 IFS=$as_save_IFS
18653 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18656 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18657 if test -n "$acx_pthread_config"; then
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18659 $as_echo "$acx_pthread_config" >&6; }
18660 else
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18666 if test x"$acx_pthread_config" = xno; then continue; fi
18667 PTHREAD_CFLAGS="`pthread-config --cflags`"
18668 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18673 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18674 PTHREAD_LIBS="-l$flag"
18676 esac
18678 save_LIBS="$LIBS"
18679 save_CFLAGS="$CFLAGS"
18680 LIBS="$PTHREAD_LIBS $LIBS"
18681 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18683 # Check for various functions. We must include pthread.h,
18684 # since some functions may be macros. (On the Sequent, we
18685 # need a special flag -Kthread to make this header compile.)
18686 # We check for pthread_join because it is in -lpthread on IRIX
18687 # while pthread_create is in libc. We check for pthread_attr_init
18688 # due to DEC craziness with -lpthreads. We check for
18689 # pthread_cleanup_push because it is one of the few pthread
18690 # functions on Solaris that doesn't have a non-functional libc stub.
18691 # We try pthread_create on general principles.
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18694 #include <pthread.h>
18696 main ()
18698 pthread_t th; pthread_join(th, 0);
18699 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18700 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18702 return 0;
18704 _ACEOF
18705 if ac_fn_c_try_link "$LINENO"; then :
18706 acx_pthread_ok=yes
18708 rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18711 LIBS="$save_LIBS"
18712 CFLAGS="$save_CFLAGS"
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18715 $as_echo "$acx_pthread_ok" >&6; }
18716 if test "x$acx_pthread_ok" = xyes; then
18717 break;
18720 PTHREAD_LIBS=""
18721 PTHREAD_CFLAGS=""
18722 done
18725 # Various other checks:
18726 if test "x$acx_pthread_ok" = xyes; then
18727 save_LIBS="$LIBS"
18728 LIBS="$PTHREAD_LIBS $LIBS"
18729 save_CFLAGS="$CFLAGS"
18730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18732 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18734 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18735 attr_name=unknown
18736 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #include <pthread.h>
18741 main ()
18743 int attr=$attr; return attr;
18745 return 0;
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"; then :
18749 attr_name=$attr; break
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18753 done
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18755 $as_echo "$attr_name" >&6; }
18756 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define PTHREAD_CREATE_JOINABLE $attr_name
18760 _ACEOF
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18765 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18766 flag=no
18767 case "${host_cpu}-${host_os}" in
18768 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18769 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18770 esac
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18772 $as_echo "${flag}" >&6; }
18773 if test "x$flag" != xno; then
18774 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18777 LIBS="$save_LIBS"
18778 CFLAGS="$save_CFLAGS"
18780 # More AIX lossage: must compile with xlc_r or cc_r
18781 if test x"$GCC" != xyes; then
18782 for ac_prog in xlc_r cc_r
18784 # Extract the first word of "$ac_prog", so it can be a program name with args.
18785 set dummy $ac_prog; ac_word=$2
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18787 $as_echo_n "checking for $ac_word... " >&6; }
18788 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18789 $as_echo_n "(cached) " >&6
18790 else
18791 if test -n "$PTHREAD_CC"; then
18792 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18793 else
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18797 IFS=$as_save_IFS
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_prog_PTHREAD_CC="$ac_prog"
18802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 break 2
18805 done
18806 done
18807 IFS=$as_save_IFS
18811 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18812 if test -n "$PTHREAD_CC"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18814 $as_echo "$PTHREAD_CC" >&6; }
18815 else
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18821 test -n "$PTHREAD_CC" && break
18822 done
18823 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18825 else
18826 PTHREAD_CC=$CC
18828 else
18829 PTHREAD_CC="$CC"
18836 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18837 if test x"$acx_pthread_ok" = xyes; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 $as_echo "yes" >&6; }
18841 case "$target" in
18842 *openbsd*)
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
18844 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
18845 AM_CFLAGS="$AM_CFLAGS -pthread"
18847 esac
18848 LIBS="$PTHREAD_LIBS $LIBS"
18849 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
18850 CC="$PTHREAD_CC"
18852 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18856 else
18857 acx_pthread_ok=no
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18863 ac_ext=c
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
18872 $as_echo_n "checking for library containing nanosleep... " >&6; }
18873 if ${ac_cv_search_nanosleep+:} false; then :
18874 $as_echo_n "(cached) " >&6
18875 else
18876 ac_func_search_save_LIBS=$LIBS
18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 char nanosleep ();
18888 main ()
18890 return nanosleep ();
18892 return 0;
18894 _ACEOF
18895 for ac_lib in '' rt posix4; do
18896 if test -z "$ac_lib"; then
18897 ac_res="none required"
18898 else
18899 ac_res=-l$ac_lib
18900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18902 if ac_fn_c_try_link "$LINENO"; then :
18903 ac_cv_search_nanosleep=$ac_res
18905 rm -f core conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext
18907 if ${ac_cv_search_nanosleep+:} false; then :
18908 break
18910 done
18911 if ${ac_cv_search_nanosleep+:} false; then :
18913 else
18914 ac_cv_search_nanosleep=no
18916 rm conftest.$ac_ext
18917 LIBS=$ac_func_search_save_LIBS
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
18920 $as_echo "$ac_cv_search_nanosleep" >&6; }
18921 ac_res=$ac_cv_search_nanosleep
18922 if test "$ac_res" != no; then :
18923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18926 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18937 $as_echo_n "checking for ANSI C header files... " >&6; }
18938 if ${ac_cv_header_stdc+:} false; then :
18939 $as_echo_n "(cached) " >&6
18940 else
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h. */
18943 #include <stdlib.h>
18944 #include <stdarg.h>
18945 #include <string.h>
18946 #include <float.h>
18949 main ()
18953 return 0;
18955 _ACEOF
18956 if ac_fn_c_try_compile "$LINENO"; then :
18957 ac_cv_header_stdc=yes
18958 else
18959 ac_cv_header_stdc=no
18961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18963 if test $ac_cv_header_stdc = yes; then
18964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18967 #include <string.h>
18969 _ACEOF
18970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18971 $EGREP "memchr" >/dev/null 2>&1; then :
18973 else
18974 ac_cv_header_stdc=no
18976 rm -f conftest*
18980 if test $ac_cv_header_stdc = yes; then
18981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984 #include <stdlib.h>
18986 _ACEOF
18987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18988 $EGREP "free" >/dev/null 2>&1; then :
18990 else
18991 ac_cv_header_stdc=no
18993 rm -f conftest*
18997 if test $ac_cv_header_stdc = yes; then
18998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18999 if test "$cross_compiling" = yes; then :
19001 else
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 #include <ctype.h>
19005 #include <stdlib.h>
19006 #if ((' ' & 0x0FF) == 0x020)
19007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19009 #else
19010 # define ISLOWER(c) \
19011 (('a' <= (c) && (c) <= 'i') \
19012 || ('j' <= (c) && (c) <= 'r') \
19013 || ('s' <= (c) && (c) <= 'z'))
19014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19015 #endif
19017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19019 main ()
19021 int i;
19022 for (i = 0; i < 256; i++)
19023 if (XOR (islower (i), ISLOWER (i))
19024 || toupper (i) != TOUPPER (i))
19025 return 2;
19026 return 0;
19028 _ACEOF
19029 if ac_fn_c_try_run "$LINENO"; then :
19031 else
19032 ac_cv_header_stdc=no
19034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19035 conftest.$ac_objext conftest.beam conftest.$ac_ext
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19041 $as_echo "$ac_cv_header_stdc" >&6; }
19042 if test $ac_cv_header_stdc = yes; then
19044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19048 ac_header_dirent=no
19049 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19050 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19052 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19053 if eval \${$as_ac_Header+:} false; then :
19054 $as_echo_n "(cached) " >&6
19055 else
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19058 #include <sys/types.h>
19059 #include <$ac_hdr>
19062 main ()
19064 if ((DIR *) 0)
19065 return 0;
19067 return 0;
19069 _ACEOF
19070 if ac_fn_c_try_compile "$LINENO"; then :
19071 eval "$as_ac_Header=yes"
19072 else
19073 eval "$as_ac_Header=no"
19075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19077 eval ac_res=\$$as_ac_Header
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19079 $as_echo "$ac_res" >&6; }
19080 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19081 cat >>confdefs.h <<_ACEOF
19082 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19083 _ACEOF
19085 ac_header_dirent=$ac_hdr; break
19088 done
19089 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19090 if test $ac_header_dirent = dirent.h; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19092 $as_echo_n "checking for library containing opendir... " >&6; }
19093 if ${ac_cv_search_opendir+:} false; then :
19094 $as_echo_n "(cached) " >&6
19095 else
19096 ac_func_search_save_LIBS=$LIBS
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19103 #ifdef __cplusplus
19104 extern "C"
19105 #endif
19106 char opendir ();
19108 main ()
19110 return opendir ();
19112 return 0;
19114 _ACEOF
19115 for ac_lib in '' dir; do
19116 if test -z "$ac_lib"; then
19117 ac_res="none required"
19118 else
19119 ac_res=-l$ac_lib
19120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19122 if ac_fn_c_try_link "$LINENO"; then :
19123 ac_cv_search_opendir=$ac_res
19125 rm -f core conftest.err conftest.$ac_objext \
19126 conftest$ac_exeext
19127 if ${ac_cv_search_opendir+:} false; then :
19128 break
19130 done
19131 if ${ac_cv_search_opendir+:} false; then :
19133 else
19134 ac_cv_search_opendir=no
19136 rm conftest.$ac_ext
19137 LIBS=$ac_func_search_save_LIBS
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19140 $as_echo "$ac_cv_search_opendir" >&6; }
19141 ac_res=$ac_cv_search_opendir
19142 if test "$ac_res" != no; then :
19143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19147 else
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19149 $as_echo_n "checking for library containing opendir... " >&6; }
19150 if ${ac_cv_search_opendir+:} false; then :
19151 $as_echo_n "(cached) " >&6
19152 else
19153 ac_func_search_save_LIBS=$LIBS
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19157 /* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19160 #ifdef __cplusplus
19161 extern "C"
19162 #endif
19163 char opendir ();
19165 main ()
19167 return opendir ();
19169 return 0;
19171 _ACEOF
19172 for ac_lib in '' x; do
19173 if test -z "$ac_lib"; then
19174 ac_res="none required"
19175 else
19176 ac_res=-l$ac_lib
19177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19179 if ac_fn_c_try_link "$LINENO"; then :
19180 ac_cv_search_opendir=$ac_res
19182 rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext
19184 if ${ac_cv_search_opendir+:} false; then :
19185 break
19187 done
19188 if ${ac_cv_search_opendir+:} false; then :
19190 else
19191 ac_cv_search_opendir=no
19193 rm conftest.$ac_ext
19194 LIBS=$ac_func_search_save_LIBS
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19197 $as_echo "$ac_cv_search_opendir" >&6; }
19198 ac_res=$ac_cv_search_opendir
19199 if test "$ac_res" != no; then :
19200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19207 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19208 if ${ac_cv_header_stat_broken+:} false; then :
19209 $as_echo_n "(cached) " >&6
19210 else
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213 #include <sys/types.h>
19214 #include <sys/stat.h>
19216 #if defined S_ISBLK && defined S_IFDIR
19217 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19218 #endif
19220 #if defined S_ISBLK && defined S_IFCHR
19221 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19222 #endif
19224 #if defined S_ISLNK && defined S_IFREG
19225 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19226 #endif
19228 #if defined S_ISSOCK && defined S_IFREG
19229 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19230 #endif
19232 _ACEOF
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234 ac_cv_header_stat_broken=no
19235 else
19236 ac_cv_header_stat_broken=yes
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19241 $as_echo "$ac_cv_header_stat_broken" >&6; }
19242 if test $ac_cv_header_stat_broken = yes; then
19244 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19249 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19250 if ${ac_cv_header_sys_wait_h+:} false; then :
19251 $as_echo_n "(cached) " >&6
19252 else
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19255 #include <sys/types.h>
19256 #include <sys/wait.h>
19257 #ifndef WEXITSTATUS
19258 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19259 #endif
19260 #ifndef WIFEXITED
19261 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19262 #endif
19265 main ()
19267 int s;
19268 wait (&s);
19269 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19271 return 0;
19273 _ACEOF
19274 if ac_fn_c_try_compile "$LINENO"; then :
19275 ac_cv_header_sys_wait_h=yes
19276 else
19277 ac_cv_header_sys_wait_h=no
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19282 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19283 if test $ac_cv_header_sys_wait_h = yes; then
19285 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19290 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19291 if ${ac_cv_header_time+:} false; then :
19292 $as_echo_n "(cached) " >&6
19293 else
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296 #include <sys/types.h>
19297 #include <sys/time.h>
19298 #include <time.h>
19301 main ()
19303 if ((struct tm *) 0)
19304 return 0;
19306 return 0;
19308 _ACEOF
19309 if ac_fn_c_try_compile "$LINENO"; then :
19310 ac_cv_header_time=yes
19311 else
19312 ac_cv_header_time=no
19314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19317 $as_echo "$ac_cv_header_time" >&6; }
19318 if test $ac_cv_header_time = yes; then
19320 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
19325 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
19326 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
19327 $as_echo_n "(cached) " >&6
19328 else
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331 #include <sys/types.h>
19332 #include <termios.h>
19333 #ifdef TIOCGWINSZ
19335 #endif
19337 _ACEOF
19338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19339 $EGREP "yes" >/dev/null 2>&1; then :
19340 ac_cv_sys_tiocgwinsz_in_termios_h=yes
19341 else
19342 ac_cv_sys_tiocgwinsz_in_termios_h=no
19344 rm -f conftest*
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
19348 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
19350 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
19352 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
19353 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
19354 $as_echo_n "(cached) " >&6
19355 else
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19358 #include <sys/types.h>
19359 #include <sys/ioctl.h>
19360 #ifdef TIOCGWINSZ
19362 #endif
19364 _ACEOF
19365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19366 $EGREP "yes" >/dev/null 2>&1; then :
19367 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
19368 else
19369 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
19371 rm -f conftest*
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
19375 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
19377 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
19379 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
19385 for ac_header in unistd.h
19386 do :
19387 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19388 if test "x$ac_cv_header_unistd_h" = xyes; then :
19389 cat >>confdefs.h <<_ACEOF
19390 #define HAVE_UNISTD_H 1
19391 _ACEOF
19395 done
19398 for ac_header in errno.h \
19399 ctype.h \
19400 fcntl.h \
19401 signal.h \
19402 setjmp.h \
19403 memory.h \
19404 sys/param.h \
19405 sys/socket.h \
19406 sys/uio.h \
19407 sys/un.h \
19408 limits.h \
19409 wchar.h \
19410 sys/poll.h \
19411 stropts.h \
19412 netdb.h \
19413 syslog.h \
19414 sys/syslog.h \
19415 locale.h \
19416 langinfo.h \
19417 utime.h \
19418 sys/utime.h \
19419 pthread.h \
19420 pwd.h \
19421 assert.h
19422 do :
19423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19424 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19426 cat >>confdefs.h <<_ACEOF
19427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19428 _ACEOF
19432 done
19435 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19436 if test "x$ac_cv_header_termios_h" = xyes; then :
19438 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
19440 else
19442 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
19443 if test "x$ac_cv_header_termio_h" = xyes; then :
19445 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
19447 else
19449 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
19450 if test "x$ac_cv_header_sgtty_h" = xyes; then :
19452 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
19454 else
19456 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19473 $as_echo_n "checking return type of signal handlers... " >&6; }
19474 if ${ac_cv_type_signal+:} false; then :
19475 $as_echo_n "(cached) " >&6
19476 else
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <sys/types.h>
19480 #include <signal.h>
19483 main ()
19485 return *(signal (0, 0)) (0) == 1;
19487 return 0;
19489 _ACEOF
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491 ac_cv_type_signal=int
19492 else
19493 ac_cv_type_signal=void
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19498 $as_echo "$ac_cv_type_signal" >&6; }
19500 cat >>confdefs.h <<_ACEOF
19501 #define RETSIGTYPE $ac_cv_type_signal
19502 _ACEOF
19505 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19506 if test "x$ac_cv_type_size_t" = xyes; then :
19508 else
19510 cat >>confdefs.h <<_ACEOF
19511 #define size_t unsigned int
19512 _ACEOF
19516 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19517 if test "x$ac_cv_type_mode_t" = xyes; then :
19519 else
19521 cat >>confdefs.h <<_ACEOF
19522 #define mode_t int
19523 _ACEOF
19527 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19528 if test "x$ac_cv_type_pid_t" = xyes; then :
19530 else
19532 cat >>confdefs.h <<_ACEOF
19533 #define pid_t int
19534 _ACEOF
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19539 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19540 if ${ac_cv_type_uid_t+:} false; then :
19541 $as_echo_n "(cached) " >&6
19542 else
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545 #include <sys/types.h>
19547 _ACEOF
19548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19549 $EGREP "uid_t" >/dev/null 2>&1; then :
19550 ac_cv_type_uid_t=yes
19551 else
19552 ac_cv_type_uid_t=no
19554 rm -f conftest*
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19558 $as_echo "$ac_cv_type_uid_t" >&6; }
19559 if test $ac_cv_type_uid_t = no; then
19561 $as_echo "#define uid_t int" >>confdefs.h
19564 $as_echo "#define gid_t int" >>confdefs.h
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19569 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19570 if ${ac_cv_struct_tm+:} false; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #include <sys/types.h>
19576 #include <time.h>
19579 main ()
19581 struct tm tm;
19582 int *p = &tm.tm_sec;
19583 return !p;
19585 return 0;
19587 _ACEOF
19588 if ac_fn_c_try_compile "$LINENO"; then :
19589 ac_cv_struct_tm=time.h
19590 else
19591 ac_cv_struct_tm=sys/time.h
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19596 $as_echo "$ac_cv_struct_tm" >&6; }
19597 if test $ac_cv_struct_tm = sys/time.h; then
19599 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19604 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
19605 if test "x$ac_cv_type_union_wait" = xyes; then :
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_UNION_WAIT 1
19609 _ACEOF
19615 for ac_header in stdint.h
19616 do :
19617 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19618 if test "x$ac_cv_header_stdint_h" = xyes; then :
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_STDINT_H 1
19621 _ACEOF
19622 uint16=uint16_t
19623 else
19625 for ac_header in inttypes.h
19626 do :
19627 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19628 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19629 cat >>confdefs.h <<_ACEOF
19630 #define HAVE_INTTYPES_H 1
19631 _ACEOF
19632 uint16=uint16_t
19633 else
19635 for ac_header in sys/types.h
19636 do :
19637 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19638 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19639 cat >>confdefs.h <<_ACEOF
19640 #define HAVE_SYS_TYPES_H 1
19641 _ACEOF
19642 uint16=u_int16_t
19643 else
19645 # The cast to long int works around a bug in the HP C Compiler
19646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19648 # This bug is HP SR number 8606223364.
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
19650 $as_echo_n "checking size of unsigned short... " >&6; }
19651 if ${ac_cv_sizeof_unsigned_short+:} false; then :
19652 $as_echo_n "(cached) " >&6
19653 else
19654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
19656 else
19657 if test "$ac_cv_type_unsigned_short" = yes; then
19658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19660 as_fn_error 77 "cannot compute sizeof (unsigned short)
19661 See \`config.log' for more details" "$LINENO" 5; }
19662 else
19663 ac_cv_sizeof_unsigned_short=0
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
19669 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
19673 cat >>confdefs.h <<_ACEOF
19674 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
19675 _ACEOF
19678 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
19679 uint16="unsigned short"
19680 else
19681 # The cast to long int works around a bug in the HP C Compiler
19682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19684 # This bug is HP SR number 8606223364.
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19686 $as_echo_n "checking size of unsigned int... " >&6; }
19687 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19688 $as_echo_n "(cached) " >&6
19689 else
19690 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19692 else
19693 if test "$ac_cv_type_unsigned_int" = yes; then
19694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19696 as_fn_error 77 "cannot compute sizeof (unsigned int)
19697 See \`config.log' for more details" "$LINENO" 5; }
19698 else
19699 ac_cv_sizeof_unsigned_int=0
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19705 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19709 cat >>confdefs.h <<_ACEOF
19710 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19711 _ACEOF
19714 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
19715 uint16="unsigned int"
19716 else
19717 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
19723 done
19728 done
19733 done
19736 cat >>confdefs.h <<_ACEOF
19737 #define UINT16 $uint16
19738 _ACEOF
19741 for ac_header in stdint.h
19742 do :
19743 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19744 if test "x$ac_cv_header_stdint_h" = xyes; then :
19745 cat >>confdefs.h <<_ACEOF
19746 #define HAVE_STDINT_H 1
19747 _ACEOF
19748 uint32=uint32_t
19749 else
19751 for ac_header in inttypes.h
19752 do :
19753 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19754 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE_INTTYPES_H 1
19757 _ACEOF
19758 uint32=uint32_t
19759 else
19761 for ac_header in sys/types.h
19762 do :
19763 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19764 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19765 cat >>confdefs.h <<_ACEOF
19766 #define HAVE_SYS_TYPES_H 1
19767 _ACEOF
19768 uint32=u_int32_t
19769 else
19771 # The cast to long int works around a bug in the HP C Compiler
19772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19774 # This bug is HP SR number 8606223364.
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19776 $as_echo_n "checking size of unsigned int... " >&6; }
19777 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19782 else
19783 if test "$ac_cv_type_unsigned_int" = yes; then
19784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19786 as_fn_error 77 "cannot compute sizeof (unsigned int)
19787 See \`config.log' for more details" "$LINENO" 5; }
19788 else
19789 ac_cv_sizeof_unsigned_int=0
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19795 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19799 cat >>confdefs.h <<_ACEOF
19800 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19801 _ACEOF
19804 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
19805 uint32="unsigned int"
19806 else
19807 # The cast to long int works around a bug in the HP C Compiler
19808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19810 # This bug is HP SR number 8606223364.
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
19812 $as_echo_n "checking size of unsigned long... " >&6; }
19813 if ${ac_cv_sizeof_unsigned_long+:} false; then :
19814 $as_echo_n "(cached) " >&6
19815 else
19816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
19818 else
19819 if test "$ac_cv_type_unsigned_long" = yes; then
19820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19822 as_fn_error 77 "cannot compute sizeof (unsigned long)
19823 See \`config.log' for more details" "$LINENO" 5; }
19824 else
19825 ac_cv_sizeof_unsigned_long=0
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
19831 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
19835 cat >>confdefs.h <<_ACEOF
19836 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19837 _ACEOF
19840 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
19841 uint32="unsigned long"
19842 else
19843 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
19849 done
19854 done
19859 done
19862 cat >>confdefs.h <<_ACEOF
19863 #define UINT32 $uint32
19864 _ACEOF
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
19868 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
19869 if ${ac_cv_func_qsort_argtype+:} false; then :
19870 $as_echo_n "(cached) " >&6
19871 else
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19875 #if HAVE_STDLIB_H
19876 #include "stdlib.h"
19877 #endif
19879 extern void *base;
19880 extern sortf(const void *, const void *);
19881 int sortf(a, b)
19882 const void *a;
19883 const void *b; { return 0; }
19886 main ()
19889 qsort(base, 2, sizeof(char *), sortf);
19892 return 0;
19894 _ACEOF
19895 if ac_fn_c_try_compile "$LINENO"; then :
19896 ac_cv_func_qsort_argtype=void
19897 else
19898 ac_cv_func_qsort_argtype=char
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
19904 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
19906 cat >>confdefs.h <<_ACEOF
19907 #define qsort_t $ac_cv_func_qsort_argtype
19908 _ACEOF
19912 for ac_header in sys/select.h sys/socket.h
19913 do :
19914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19917 cat >>confdefs.h <<_ACEOF
19918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919 _ACEOF
19923 done
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19926 $as_echo_n "checking types of arguments for select... " >&6; }
19927 if ${ac_cv_func_select_args+:} false; then :
19928 $as_echo_n "(cached) " >&6
19929 else
19930 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19931 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19932 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19935 $ac_includes_default
19936 #ifdef HAVE_SYS_SELECT_H
19937 # include <sys/select.h>
19938 #endif
19939 #ifdef HAVE_SYS_SOCKET_H
19940 # include <sys/socket.h>
19941 #endif
19944 main ()
19946 extern int select ($ac_arg1,
19947 $ac_arg234, $ac_arg234, $ac_arg234,
19948 $ac_arg5);
19950 return 0;
19952 _ACEOF
19953 if ac_fn_c_try_compile "$LINENO"; then :
19954 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957 done
19958 done
19959 done
19960 # Provide a safe default value.
19961 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19965 $as_echo "$ac_cv_func_select_args" >&6; }
19966 ac_save_IFS=$IFS; IFS=','
19967 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19968 IFS=$ac_save_IFS
19969 shift
19971 cat >>confdefs.h <<_ACEOF
19972 #define SELECT_TYPE_ARG1 $1
19973 _ACEOF
19976 cat >>confdefs.h <<_ACEOF
19977 #define SELECT_TYPE_ARG234 ($2)
19978 _ACEOF
19981 cat >>confdefs.h <<_ACEOF
19982 #define SELECT_TYPE_ARG5 ($3)
19983 _ACEOF
19985 rm -f conftest*
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19989 $as_echo_n "checking for working strcoll... " >&6; }
19990 if ${ac_cv_func_strcoll_works+:} false; then :
19991 $as_echo_n "(cached) " >&6
19992 else
19993 if test "$cross_compiling" = yes; then :
19994 ac_cv_func_strcoll_works=no
19995 else
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
19998 $ac_includes_default
20000 main ()
20002 return (strcoll ("abc", "def") >= 0 ||
20003 strcoll ("ABC", "DEF") >= 0 ||
20004 strcoll ("123", "456") >= 0)
20006 return 0;
20008 _ACEOF
20009 if ac_fn_c_try_run "$LINENO"; then :
20010 ac_cv_func_strcoll_works=yes
20011 else
20012 ac_cv_func_strcoll_works=no
20014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20015 conftest.$ac_objext conftest.beam conftest.$ac_ext
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20020 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20021 if test $ac_cv_func_strcoll_works = yes; then
20023 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20029 for ac_header in vfork.h
20030 do :
20031 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20032 if test "x$ac_cv_header_vfork_h" = xyes; then :
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_VFORK_H 1
20035 _ACEOF
20039 done
20041 for ac_func in fork vfork
20042 do :
20043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20046 cat >>confdefs.h <<_ACEOF
20047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048 _ACEOF
20051 done
20053 if test "x$ac_cv_func_fork" = xyes; then
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20055 $as_echo_n "checking for working fork... " >&6; }
20056 if ${ac_cv_func_fork_works+:} false; then :
20057 $as_echo_n "(cached) " >&6
20058 else
20059 if test "$cross_compiling" = yes; then :
20060 ac_cv_func_fork_works=cross
20061 else
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20064 $ac_includes_default
20066 main ()
20069 /* By Ruediger Kuhlmann. */
20070 return fork () < 0;
20073 return 0;
20075 _ACEOF
20076 if ac_fn_c_try_run "$LINENO"; then :
20077 ac_cv_func_fork_works=yes
20078 else
20079 ac_cv_func_fork_works=no
20081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20082 conftest.$ac_objext conftest.beam conftest.$ac_ext
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20087 $as_echo "$ac_cv_func_fork_works" >&6; }
20089 else
20090 ac_cv_func_fork_works=$ac_cv_func_fork
20092 if test "x$ac_cv_func_fork_works" = xcross; then
20093 case $host in
20094 *-*-amigaos* | *-*-msdosdjgpp*)
20095 # Override, as these systems have only a dummy fork() stub
20096 ac_cv_func_fork_works=no
20099 ac_cv_func_fork_works=yes
20101 esac
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20103 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20105 ac_cv_func_vfork_works=$ac_cv_func_vfork
20106 if test "x$ac_cv_func_vfork" = xyes; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20108 $as_echo_n "checking for working vfork... " >&6; }
20109 if ${ac_cv_func_vfork_works+:} false; then :
20110 $as_echo_n "(cached) " >&6
20111 else
20112 if test "$cross_compiling" = yes; then :
20113 ac_cv_func_vfork_works=cross
20114 else
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117 /* Thanks to Paul Eggert for this test. */
20118 $ac_includes_default
20119 #include <sys/wait.h>
20120 #ifdef HAVE_VFORK_H
20121 # include <vfork.h>
20122 #endif
20123 /* On some sparc systems, changes by the child to local and incoming
20124 argument registers are propagated back to the parent. The compiler
20125 is told about this with #include <vfork.h>, but some compilers
20126 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20127 static variable whose address is put into a register that is
20128 clobbered by the vfork. */
20129 static void
20130 #ifdef __cplusplus
20131 sparc_address_test (int arg)
20132 # else
20133 sparc_address_test (arg) int arg;
20134 #endif
20136 static pid_t child;
20137 if (!child) {
20138 child = vfork ();
20139 if (child < 0) {
20140 perror ("vfork");
20141 _exit(2);
20143 if (!child) {
20144 arg = getpid();
20145 write(-1, "", 0);
20146 _exit (arg);
20152 main ()
20154 pid_t parent = getpid ();
20155 pid_t child;
20157 sparc_address_test (0);
20159 child = vfork ();
20161 if (child == 0) {
20162 /* Here is another test for sparc vfork register problems. This
20163 test uses lots of local variables, at least as many local
20164 variables as main has allocated so far including compiler
20165 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20166 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20167 reuse the register of parent for one of the local variables,
20168 since it will think that parent can't possibly be used any more
20169 in this routine. Assigning to the local variable will thus
20170 munge parent in the parent process. */
20171 pid_t
20172 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20173 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20174 /* Convince the compiler that p..p7 are live; otherwise, it might
20175 use the same hardware register for all 8 local variables. */
20176 if (p != p1 || p != p2 || p != p3 || p != p4
20177 || p != p5 || p != p6 || p != p7)
20178 _exit(1);
20180 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20181 from child file descriptors. If the child closes a descriptor
20182 before it execs or exits, this munges the parent's descriptor
20183 as well. Test for this by closing stdout in the child. */
20184 _exit(close(fileno(stdout)) != 0);
20185 } else {
20186 int status;
20187 struct stat st;
20189 while (wait(&status) != child)
20191 return (
20192 /* Was there some problem with vforking? */
20193 child < 0
20195 /* Did the child fail? (This shouldn't happen.) */
20196 || status
20198 /* Did the vfork/compiler bug occur? */
20199 || parent != getpid()
20201 /* Did the file descriptor bug occur? */
20202 || fstat(fileno(stdout), &st) != 0
20206 _ACEOF
20207 if ac_fn_c_try_run "$LINENO"; then :
20208 ac_cv_func_vfork_works=yes
20209 else
20210 ac_cv_func_vfork_works=no
20212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20213 conftest.$ac_objext conftest.beam conftest.$ac_ext
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20218 $as_echo "$ac_cv_func_vfork_works" >&6; }
20221 if test "x$ac_cv_func_fork_works" = xcross; then
20222 ac_cv_func_vfork_works=$ac_cv_func_vfork
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20224 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20227 if test "x$ac_cv_func_vfork_works" = xyes; then
20229 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20231 else
20233 $as_echo "#define vfork fork" >>confdefs.h
20236 if test "x$ac_cv_func_fork_works" = xyes; then
20238 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20242 for ac_func in strchr \
20243 memcpy \
20244 strtol \
20245 strtoul \
20246 select \
20247 poll \
20248 qsort \
20249 getuid \
20250 getpwuid \
20251 getpwnam \
20252 gettimeofday \
20253 tmpfile \
20254 uname \
20255 rename \
20256 read \
20257 signal \
20258 setjmp \
20259 chown \
20260 wait4 \
20261 waitpid \
20262 wait \
20263 srandom \
20264 popen \
20265 pclose \
20266 fsync \
20267 truncate \
20268 listen \
20269 wcwidth \
20270 mbstowcs \
20271 wcrtomb \
20272 putenv \
20273 setenv
20274 do :
20275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20277 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20278 cat >>confdefs.h <<_ACEOF
20279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20280 _ACEOF
20283 done
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
20287 $as_echo_n "checking for library containing gethostname... " >&6; }
20288 if ${ac_cv_search_gethostname+:} false; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20291 ac_func_search_save_LIBS=$LIBS
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20295 /* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20298 #ifdef __cplusplus
20299 extern "C"
20300 #endif
20301 char gethostname ();
20303 main ()
20305 return gethostname ();
20307 return 0;
20309 _ACEOF
20310 for ac_lib in '' nsl; do
20311 if test -z "$ac_lib"; then
20312 ac_res="none required"
20313 else
20314 ac_res=-l$ac_lib
20315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20317 if ac_fn_c_try_link "$LINENO"; then :
20318 ac_cv_search_gethostname=$ac_res
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext
20322 if ${ac_cv_search_gethostname+:} false; then :
20323 break
20325 done
20326 if ${ac_cv_search_gethostname+:} false; then :
20328 else
20329 ac_cv_search_gethostname=no
20331 rm conftest.$ac_ext
20332 LIBS=$ac_func_search_save_LIBS
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
20335 $as_echo "$ac_cv_search_gethostname" >&6; }
20336 ac_res=$ac_cv_search_gethostname
20337 if test "$ac_res" != no; then :
20338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20344 $as_echo_n "checking for library containing socket... " >&6; }
20345 if ${ac_cv_search_socket+:} false; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 ac_func_search_save_LIBS=$LIBS
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char socket ();
20360 main ()
20362 return socket ();
20364 return 0;
20366 _ACEOF
20367 for ac_lib in '' socket; do
20368 if test -z "$ac_lib"; then
20369 ac_res="none required"
20370 else
20371 ac_res=-l$ac_lib
20372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20374 if ac_fn_c_try_link "$LINENO"; then :
20375 ac_cv_search_socket=$ac_res
20377 rm -f core conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext
20379 if ${ac_cv_search_socket+:} false; then :
20380 break
20382 done
20383 if ${ac_cv_search_socket+:} false; then :
20385 else
20386 ac_cv_search_socket=no
20388 rm conftest.$ac_ext
20389 LIBS=$ac_func_search_save_LIBS
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20392 $as_echo "$ac_cv_search_socket" >&6; }
20393 ac_res=$ac_cv_search_socket
20394 if test "$ac_res" != no; then :
20395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20397 else
20399 WEB_BUILD=
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
20405 $as_echo_n "checking for library containing bind... " >&6; }
20406 if ${ac_cv_search_bind+:} false; then :
20407 $as_echo_n "(cached) " >&6
20408 else
20409 ac_func_search_save_LIBS=$LIBS
20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char bind ();
20421 main ()
20423 return bind ();
20425 return 0;
20427 _ACEOF
20428 for ac_lib in '' bind; do
20429 if test -z "$ac_lib"; then
20430 ac_res="none required"
20431 else
20432 ac_res=-l$ac_lib
20433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20435 if ac_fn_c_try_link "$LINENO"; then :
20436 ac_cv_search_bind=$ac_res
20438 rm -f core conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext
20440 if ${ac_cv_search_bind+:} false; then :
20441 break
20443 done
20444 if ${ac_cv_search_bind+:} false; then :
20446 else
20447 ac_cv_search_bind=no
20449 rm conftest.$ac_ext
20450 LIBS=$ac_func_search_save_LIBS
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
20453 $as_echo "$ac_cv_search_bind" >&6; }
20454 ac_res=$ac_cv_search_bind
20455 if test "$ac_res" != no; then :
20456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20458 else
20460 WEB_BUILD=
20465 for ac_func in sigaction sigemptyset sigaddset sigprocmask
20466 do :
20467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20469 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20470 cat >>confdefs.h <<_ACEOF
20471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20472 _ACEOF
20475 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
20478 else
20480 for ac_func in sigset sigrelse
20481 do :
20482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20485 cat >>confdefs.h <<_ACEOF
20486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 _ACEOF
20490 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
20494 done
20498 done
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
20502 $as_echo_n "checking for library containing syslog... " >&6; }
20503 if ${ac_cv_search_syslog+:} false; then :
20504 $as_echo_n "(cached) " >&6
20505 else
20506 ac_func_search_save_LIBS=$LIBS
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20510 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char syslog ();
20518 main ()
20520 return syslog ();
20522 return 0;
20524 _ACEOF
20525 for ac_lib in '' bsd socket inet; do
20526 if test -z "$ac_lib"; then
20527 ac_res="none required"
20528 else
20529 ac_res=-l$ac_lib
20530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20532 if ac_fn_c_try_link "$LINENO"; then :
20533 ac_cv_search_syslog=$ac_res
20535 rm -f core conftest.err conftest.$ac_objext \
20536 conftest$ac_exeext
20537 if ${ac_cv_search_syslog+:} false; then :
20538 break
20540 done
20541 if ${ac_cv_search_syslog+:} false; then :
20543 else
20544 ac_cv_search_syslog=no
20546 rm conftest.$ac_ext
20547 LIBS=$ac_func_search_save_LIBS
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
20550 $as_echo "$ac_cv_search_syslog" >&6; }
20551 ac_res=$ac_cv_search_syslog
20552 if test "$ac_res" != no; then :
20553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20556 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
20563 if test -n "$alpine_with_local_maildir" ; then
20564 alpine_local_maildir=$alpine_with_local_maildir
20565 elif test -d /var/spool/mail ; then
20566 alpine_local_maildir="/var/spool/mail"
20567 elif test -d /var/mail ; then
20568 alpine_local_maildir="/var/mail"
20569 else
20570 alpine_local_maildir="/usr/spool/mail"
20573 if test -n "$alpine_with_c_client_target" ; then
20574 alpine_c_client_target=$alpine_with_c_client_target
20578 cat >>confdefs.h <<_ACEOF
20579 #define SYSTYPE "$systype"
20580 _ACEOF
20583 cat >>confdefs.h <<_ACEOF
20584 #define C_FILESEP '$alpine_path_delim'
20585 _ACEOF
20588 cat >>confdefs.h <<_ACEOF
20589 #define S_FILESEP "$alpine_path_delim"
20590 _ACEOF
20593 cat >>confdefs.h <<_ACEOF
20594 #define MAILDIR "$alpine_local_maildir"
20595 _ACEOF
20598 cat >>confdefs.h <<_ACEOF
20599 #define MODE_READONLY $alpine_mode_readonly
20600 _ACEOF
20603 C_CLIENT_TARGET=$alpine_c_client_target
20605 C_CLIENT_WITH_IPV6=$c_client_ip6
20607 if test "x$alpine_SSLTYPE" = "xnone" ; then
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
20609 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
20610 c_client_specials="${c_client_specials}SSLTYPE=none "
20611 else
20613 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
20614 certdir="$alpine_SSLCERTS"
20615 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
20616 certdir="${alpine_SSLDIR}/certs"
20617 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
20618 certdir="${alpine_SSLDIR}/ssl/certs"
20619 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
20620 certdir="$alpine_SSLCERTS_ORIG"
20621 elif test -n "$alpine_SSLCERTS" ; then
20622 certdir="$alpine_SSLCERTS"
20623 else
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
20625 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
20628 if test "x$with_smime" != "xno" ; then
20629 if test -n "$certdir" ; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
20631 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
20633 $as_echo "#define SMIME /**/" >>confdefs.h
20636 cat >>confdefs.h <<_ACEOF
20637 #define SMIME_SSLCERTS "$certdir"
20638 _ACEOF
20644 SSL_CERT_LINK="no"
20645 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
20646 SSL_BUNDLE_EXISTS="no"
20647 SSL_PEM="factory.pem ca-bundle.pem"
20648 for SSL_BUNDLE in $SSL_PEM
20650 if test -f ${certdir}/${SSL_BUNDLE} ; then
20651 SSL_BUNDLE_EXISTS="yes"
20653 done
20654 else
20655 SSL_CERT_LINK="yes"
20658 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
20660 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
20662 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
20664 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
20666 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
20669 if test -n "$alpine_SSLINCLUDE" ; then
20670 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
20673 if test -n "$alpine_SSLLIB" ; then
20674 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
20677 if test -n "$alpine_SSLDIR" ; then
20678 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
20681 if test -n "$certdir" ; then
20682 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
20685 if test -n "$alpine_SSLKEYS" ; then
20686 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
20690 if test "x$alpine_GSSTYPE" != "xnone" ; then
20691 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
20693 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
20696 if test -n "$CPPFLAGS" ; then
20697 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
20699 if test -n "$CFLAGS" ; then
20700 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
20703 if test -n "$alpine_c_client_cflags" ; then
20704 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
20708 if test -n "$LDFLAGS" ; then
20709 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
20711 if test -n "$LIBS" ; then
20712 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
20715 if test -n "$alpine_c_client_ldflags" ; then
20716 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
20720 if test -n "$alpine_c_client_gccoptlevel" ; then
20721 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
20725 C_CLIENT_SPECIALS=$c_client_specials
20728 if test -z "$WEB_BUILD" ; then
20729 WEB_PUBCOOKIE_BUILD=
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
20731 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
20733 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
20734 else
20735 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
20736 if test "x$alpine_GSSTYPE" = "xnone" ; then
20737 WEB_PUBCOOKIE_BUILD=
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
20739 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
20741 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
20742 elif test -z "$WEB_BINDIR" ; then
20743 WEB_PUBCOOKIE_BUILD=
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
20745 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
20746 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
20747 Please re-run configure with these options:
20748 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
20749 else
20751 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
20753 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
20754 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
20770 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"
20772 cat >confcache <<\_ACEOF
20773 # This file is a shell script that caches the results of configure
20774 # tests run on this system so they can be shared between configure
20775 # scripts and configure runs, see configure's option --config-cache.
20776 # It is not useful on other systems. If it contains results you don't
20777 # want to keep, you may remove or edit it.
20779 # config.status only pays attention to the cache file if you give it
20780 # the --recheck option to rerun configure.
20782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20784 # following values.
20786 _ACEOF
20788 # The following way of writing the cache mishandles newlines in values,
20789 # but we know of no workaround that is simple, portable, and efficient.
20790 # So, we kill variables containing newlines.
20791 # Ultrix sh set writes to stderr and can't be redirected directly,
20792 # and sets the high bit in the cache file unless we assign to the vars.
20794 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20795 eval ac_val=\$$ac_var
20796 case $ac_val in #(
20797 *${as_nl}*)
20798 case $ac_var in #(
20799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20801 esac
20802 case $ac_var in #(
20803 _ | IFS | as_nl) ;; #(
20804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20805 *) { eval $ac_var=; unset $ac_var;} ;;
20806 esac ;;
20807 esac
20808 done
20810 (set) 2>&1 |
20811 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20812 *${as_nl}ac_space=\ *)
20813 # `set' does not quote correctly, so add quotes: double-quote
20814 # substitution turns \\\\ into \\, and sed turns \\ into \.
20815 sed -n \
20816 "s/'/'\\\\''/g;
20817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20818 ;; #(
20820 # `set' quotes correctly as required by POSIX, so do not add quotes.
20821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20823 esac |
20824 sort
20826 sed '
20827 /^ac_cv_env_/b end
20828 t clear
20829 :clear
20830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20831 t end
20832 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20833 :end' >>confcache
20834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20835 if test -w "$cache_file"; then
20836 if test "x$cache_file" != "x/dev/null"; then
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20838 $as_echo "$as_me: updating cache $cache_file" >&6;}
20839 if test ! -f "$cache_file" || test -h "$cache_file"; then
20840 cat confcache >"$cache_file"
20841 else
20842 case $cache_file in #(
20843 */* | ?:*)
20844 mv -f confcache "$cache_file"$$ &&
20845 mv -f "$cache_file"$$ "$cache_file" ;; #(
20847 mv -f confcache "$cache_file" ;;
20848 esac
20851 else
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20856 rm -f confcache
20858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20859 # Let make expand exec_prefix.
20860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20862 DEFS=-DHAVE_CONFIG_H
20864 ac_libobjs=
20865 ac_ltlibobjs=
20867 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20868 # 1. Remove the extension, and $U if already installed.
20869 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20870 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20871 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20872 # will be set to the directory where LIBOBJS objects are built.
20873 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20874 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20875 done
20876 LIBOBJS=$ac_libobjs
20878 LTLIBOBJS=$ac_ltlibobjs
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20882 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20883 if test -n "$am_sleep_pid"; then
20884 # Hide warnings about reused PIDs.
20885 wait $am_sleep_pid 2>/dev/null
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20888 $as_echo "done" >&6; }
20889 if test -n "$EXEEXT"; then
20890 am__EXEEXT_TRUE=
20891 am__EXEEXT_FALSE='#'
20892 else
20893 am__EXEEXT_TRUE='#'
20894 am__EXEEXT_FALSE=
20897 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20898 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20901 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20902 as_fn_error $? "conditional \"AMDEP\" was never defined.
20903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20905 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20906 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20910 : "${CONFIG_STATUS=./config.status}"
20911 ac_write_fail=0
20912 ac_clean_files_save=$ac_clean_files
20913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20916 as_write_fail=0
20917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20918 #! $SHELL
20919 # Generated by $as_me.
20920 # Run this file to recreate the current configuration.
20921 # Compiler output produced by configure, useful for debugging
20922 # configure, is in config.log if it exists.
20924 debug=false
20925 ac_cs_recheck=false
20926 ac_cs_silent=false
20928 SHELL=\${CONFIG_SHELL-$SHELL}
20929 export SHELL
20930 _ASEOF
20931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20932 ## -------------------- ##
20933 ## M4sh Initialization. ##
20934 ## -------------------- ##
20936 # Be more Bourne compatible
20937 DUALCASE=1; export DUALCASE # for MKS sh
20938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20939 emulate sh
20940 NULLCMD=:
20941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20942 # is contrary to our usage. Disable this feature.
20943 alias -g '${1+"$@"}'='"$@"'
20944 setopt NO_GLOB_SUBST
20945 else
20946 case `(set -o) 2>/dev/null` in #(
20947 *posix*) :
20948 set -o posix ;; #(
20949 *) :
20951 esac
20955 as_nl='
20957 export as_nl
20958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20962 # Prefer a ksh shell builtin over an external printf program on Solaris,
20963 # but without wasting forks for bash or zsh.
20964 if test -z "$BASH_VERSION$ZSH_VERSION" \
20965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20966 as_echo='print -r --'
20967 as_echo_n='print -rn --'
20968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20969 as_echo='printf %s\n'
20970 as_echo_n='printf %s'
20971 else
20972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20974 as_echo_n='/usr/ucb/echo -n'
20975 else
20976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20977 as_echo_n_body='eval
20978 arg=$1;
20979 case $arg in #(
20980 *"$as_nl"*)
20981 expr "X$arg" : "X\\(.*\\)$as_nl";
20982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20983 esac;
20984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20986 export as_echo_n_body
20987 as_echo_n='sh -c $as_echo_n_body as_echo'
20989 export as_echo_body
20990 as_echo='sh -c $as_echo_body as_echo'
20993 # The user is always right.
20994 if test "${PATH_SEPARATOR+set}" != set; then
20995 PATH_SEPARATOR=:
20996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20998 PATH_SEPARATOR=';'
21003 # IFS
21004 # We need space, tab and new line, in precisely that order. Quoting is
21005 # there to prevent editors from complaining about space-tab.
21006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21007 # splitting by setting IFS to empty value.)
21008 IFS=" "" $as_nl"
21010 # Find who we are. Look in the path if we contain no directory separator.
21011 as_myself=
21012 case $0 in #((
21013 *[\\/]* ) as_myself=$0 ;;
21014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21015 for as_dir in $PATH
21017 IFS=$as_save_IFS
21018 test -z "$as_dir" && as_dir=.
21019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21020 done
21021 IFS=$as_save_IFS
21024 esac
21025 # We did not find ourselves, most probably we were run as `sh COMMAND'
21026 # in which case we are not to be found in the path.
21027 if test "x$as_myself" = x; then
21028 as_myself=$0
21030 if test ! -f "$as_myself"; then
21031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21032 exit 1
21035 # Unset variables that we do not need and which cause bugs (e.g. in
21036 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21037 # suppresses any "Segmentation fault" message there. '((' could
21038 # trigger a bug in pdksh 5.2.14.
21039 for as_var in BASH_ENV ENV MAIL MAILPATH
21040 do eval test x\${$as_var+set} = xset \
21041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21042 done
21043 PS1='$ '
21044 PS2='> '
21045 PS4='+ '
21047 # NLS nuisances.
21048 LC_ALL=C
21049 export LC_ALL
21050 LANGUAGE=C
21051 export LANGUAGE
21053 # CDPATH.
21054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21057 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21058 # ----------------------------------------
21059 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21060 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21061 # script with STATUS, using 1 if that was 0.
21062 as_fn_error ()
21064 as_status=$1; test $as_status -eq 0 && as_status=1
21065 if test "$4"; then
21066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21069 $as_echo "$as_me: error: $2" >&2
21070 as_fn_exit $as_status
21071 } # as_fn_error
21074 # as_fn_set_status STATUS
21075 # -----------------------
21076 # Set $? to STATUS, without forking.
21077 as_fn_set_status ()
21079 return $1
21080 } # as_fn_set_status
21082 # as_fn_exit STATUS
21083 # -----------------
21084 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21085 as_fn_exit ()
21087 set +e
21088 as_fn_set_status $1
21089 exit $1
21090 } # as_fn_exit
21092 # as_fn_unset VAR
21093 # ---------------
21094 # Portably unset VAR.
21095 as_fn_unset ()
21097 { eval $1=; unset $1;}
21099 as_unset=as_fn_unset
21100 # as_fn_append VAR VALUE
21101 # ----------------------
21102 # Append the text in VALUE to the end of the definition contained in VAR. Take
21103 # advantage of any shell optimizations that allow amortized linear growth over
21104 # repeated appends, instead of the typical quadratic growth present in naive
21105 # implementations.
21106 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21107 eval 'as_fn_append ()
21109 eval $1+=\$2
21111 else
21112 as_fn_append ()
21114 eval $1=\$$1\$2
21116 fi # as_fn_append
21118 # as_fn_arith ARG...
21119 # ------------------
21120 # Perform arithmetic evaluation on the ARGs, and store the result in the
21121 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21122 # must be portable across $(()) and expr.
21123 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21124 eval 'as_fn_arith ()
21126 as_val=$(( $* ))
21128 else
21129 as_fn_arith ()
21131 as_val=`expr "$@" || test $? -eq 1`
21133 fi # as_fn_arith
21136 if expr a : '\(a\)' >/dev/null 2>&1 &&
21137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21138 as_expr=expr
21139 else
21140 as_expr=false
21143 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21144 as_basename=basename
21145 else
21146 as_basename=false
21149 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21150 as_dirname=dirname
21151 else
21152 as_dirname=false
21155 as_me=`$as_basename -- "$0" ||
21156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21157 X"$0" : 'X\(//\)$' \| \
21158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21159 $as_echo X/"$0" |
21160 sed '/^.*\/\([^/][^/]*\)\/*$/{
21161 s//\1/
21164 /^X\/\(\/\/\)$/{
21165 s//\1/
21168 /^X\/\(\/\).*/{
21169 s//\1/
21172 s/.*/./; q'`
21174 # Avoid depending upon Character Ranges.
21175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21178 as_cr_digits='0123456789'
21179 as_cr_alnum=$as_cr_Letters$as_cr_digits
21181 ECHO_C= ECHO_N= ECHO_T=
21182 case `echo -n x` in #(((((
21183 -n*)
21184 case `echo 'xy\c'` in
21185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21186 xy) ECHO_C='\c';;
21187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21188 ECHO_T=' ';;
21189 esac;;
21191 ECHO_N='-n';;
21192 esac
21194 rm -f conf$$ conf$$.exe conf$$.file
21195 if test -d conf$$.dir; then
21196 rm -f conf$$.dir/conf$$.file
21197 else
21198 rm -f conf$$.dir
21199 mkdir conf$$.dir 2>/dev/null
21201 if (echo >conf$$.file) 2>/dev/null; then
21202 if ln -s conf$$.file conf$$ 2>/dev/null; then
21203 as_ln_s='ln -s'
21204 # ... but there are two gotchas:
21205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21207 # In both cases, we have to default to `cp -pR'.
21208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21209 as_ln_s='cp -pR'
21210 elif ln conf$$.file conf$$ 2>/dev/null; then
21211 as_ln_s=ln
21212 else
21213 as_ln_s='cp -pR'
21215 else
21216 as_ln_s='cp -pR'
21218 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21219 rmdir conf$$.dir 2>/dev/null
21222 # as_fn_mkdir_p
21223 # -------------
21224 # Create "$as_dir" as a directory, including parents if necessary.
21225 as_fn_mkdir_p ()
21228 case $as_dir in #(
21229 -*) as_dir=./$as_dir;;
21230 esac
21231 test -d "$as_dir" || eval $as_mkdir_p || {
21232 as_dirs=
21233 while :; do
21234 case $as_dir in #(
21235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21236 *) as_qdir=$as_dir;;
21237 esac
21238 as_dirs="'$as_qdir' $as_dirs"
21239 as_dir=`$as_dirname -- "$as_dir" ||
21240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21241 X"$as_dir" : 'X\(//\)[^/]' \| \
21242 X"$as_dir" : 'X\(//\)$' \| \
21243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21244 $as_echo X"$as_dir" |
21245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21246 s//\1/
21249 /^X\(\/\/\)[^/].*/{
21250 s//\1/
21253 /^X\(\/\/\)$/{
21254 s//\1/
21257 /^X\(\/\).*/{
21258 s//\1/
21261 s/.*/./; q'`
21262 test -d "$as_dir" && break
21263 done
21264 test -z "$as_dirs" || eval "mkdir $as_dirs"
21265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21268 } # as_fn_mkdir_p
21269 if mkdir -p . 2>/dev/null; then
21270 as_mkdir_p='mkdir -p "$as_dir"'
21271 else
21272 test -d ./-p && rmdir ./-p
21273 as_mkdir_p=false
21277 # as_fn_executable_p FILE
21278 # -----------------------
21279 # Test if FILE is an executable regular file.
21280 as_fn_executable_p ()
21282 test -f "$1" && test -x "$1"
21283 } # as_fn_executable_p
21284 as_test_x='test -x'
21285 as_executable_p=as_fn_executable_p
21287 # Sed expression to map a string onto a valid CPP name.
21288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21290 # Sed expression to map a string onto a valid variable name.
21291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21294 exec 6>&1
21295 ## ----------------------------------- ##
21296 ## Main body of $CONFIG_STATUS script. ##
21297 ## ----------------------------------- ##
21298 _ASEOF
21299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21302 # Save the log message, to keep $0 and so on meaningful, and to
21303 # report actual input values of CONFIG_FILES etc. instead of their
21304 # values after options handling.
21305 ac_log="
21306 This file was extended by alpine $as_me 2.20.6, which was
21307 generated by GNU Autoconf 2.69. Invocation command line was
21309 CONFIG_FILES = $CONFIG_FILES
21310 CONFIG_HEADERS = $CONFIG_HEADERS
21311 CONFIG_LINKS = $CONFIG_LINKS
21312 CONFIG_COMMANDS = $CONFIG_COMMANDS
21313 $ $0 $@
21315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21318 _ACEOF
21320 case $ac_config_files in *"
21321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21322 esac
21324 case $ac_config_headers in *"
21325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21326 esac
21329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21330 # Files that config.status was made for.
21331 config_files="$ac_config_files"
21332 config_headers="$ac_config_headers"
21333 config_commands="$ac_config_commands"
21335 _ACEOF
21337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21338 ac_cs_usage="\
21339 \`$as_me' instantiates files and other configuration actions
21340 from templates according to the current configuration. Unless the files
21341 and actions are specified as TAGs, all are instantiated by default.
21343 Usage: $0 [OPTION]... [TAG]...
21345 -h, --help print this help, then exit
21346 -V, --version print version number and configuration settings, then exit
21347 --config print configuration, then exit
21348 -q, --quiet, --silent
21349 do not print progress messages
21350 -d, --debug don't remove temporary files
21351 --recheck update $as_me by reconfiguring in the same conditions
21352 --file=FILE[:TEMPLATE]
21353 instantiate the configuration file FILE
21354 --header=FILE[:TEMPLATE]
21355 instantiate the configuration header FILE
21357 Configuration files:
21358 $config_files
21360 Configuration headers:
21361 $config_headers
21363 Configuration commands:
21364 $config_commands
21366 Report bugs to <chappa@washington.edu>."
21368 _ACEOF
21369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21370 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21371 ac_cs_version="\\
21372 alpine config.status 2.20.6
21373 configured by $0, generated by GNU Autoconf 2.69,
21374 with options \\"\$ac_cs_config\\"
21376 Copyright (C) 2012 Free Software Foundation, Inc.
21377 This config.status script is free software; the Free Software Foundation
21378 gives unlimited permission to copy, distribute and modify it."
21380 ac_pwd='$ac_pwd'
21381 srcdir='$srcdir'
21382 INSTALL='$INSTALL'
21383 MKDIR_P='$MKDIR_P'
21384 AWK='$AWK'
21385 test -n "\$AWK" || AWK=awk
21386 _ACEOF
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21389 # The default lists apply if the user does not specify any file.
21390 ac_need_defaults=:
21391 while test $# != 0
21393 case $1 in
21394 --*=?*)
21395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21397 ac_shift=:
21399 --*=)
21400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21401 ac_optarg=
21402 ac_shift=:
21405 ac_option=$1
21406 ac_optarg=$2
21407 ac_shift=shift
21409 esac
21411 case $ac_option in
21412 # Handling of the options.
21413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21414 ac_cs_recheck=: ;;
21415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21416 $as_echo "$ac_cs_version"; exit ;;
21417 --config | --confi | --conf | --con | --co | --c )
21418 $as_echo "$ac_cs_config"; exit ;;
21419 --debug | --debu | --deb | --de | --d | -d )
21420 debug=: ;;
21421 --file | --fil | --fi | --f )
21422 $ac_shift
21423 case $ac_optarg in
21424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21425 '') as_fn_error $? "missing file argument" ;;
21426 esac
21427 as_fn_append CONFIG_FILES " '$ac_optarg'"
21428 ac_need_defaults=false;;
21429 --header | --heade | --head | --hea )
21430 $ac_shift
21431 case $ac_optarg in
21432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21433 esac
21434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21435 ac_need_defaults=false;;
21436 --he | --h)
21437 # Conflict between --help and --header
21438 as_fn_error $? "ambiguous option: \`$1'
21439 Try \`$0 --help' for more information.";;
21440 --help | --hel | -h )
21441 $as_echo "$ac_cs_usage"; exit ;;
21442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21444 ac_cs_silent=: ;;
21446 # This is an error.
21447 -*) as_fn_error $? "unrecognized option: \`$1'
21448 Try \`$0 --help' for more information." ;;
21450 *) as_fn_append ac_config_targets " $1"
21451 ac_need_defaults=false ;;
21453 esac
21454 shift
21455 done
21457 ac_configure_extra_args=
21459 if $ac_cs_silent; then
21460 exec 6>/dev/null
21461 ac_configure_extra_args="$ac_configure_extra_args --silent"
21464 _ACEOF
21465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21466 if \$ac_cs_recheck; then
21467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21468 shift
21469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21470 CONFIG_SHELL='$SHELL'
21471 export CONFIG_SHELL
21472 exec "\$@"
21475 _ACEOF
21476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21477 exec 5>>config.log
21479 echo
21480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21481 ## Running $as_me. ##
21482 _ASBOX
21483 $as_echo "$ac_log"
21484 } >&5
21486 _ACEOF
21487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21489 # INIT-COMMANDS
21491 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21494 # The HP-UX ksh and POSIX shell print the target directory to stdout
21495 # if CDPATH is set.
21496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21498 sed_quote_subst='$sed_quote_subst'
21499 double_quote_subst='$double_quote_subst'
21500 delay_variable_subst='$delay_variable_subst'
21501 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21502 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21503 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21504 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21505 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21506 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21507 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21508 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21509 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21510 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21511 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21512 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21513 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21514 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21515 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21516 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21517 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21518 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21519 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21520 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21521 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21534 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21535 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21536 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21537 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21538 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21539 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21540 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21541 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21542 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21543 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21544 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21545 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21546 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21547 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21548 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21549 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21550 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21551 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21552 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21553 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21554 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21555 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21556 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21557 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"`'
21558 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21559 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21560 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21561 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21562 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21563 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21564 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21565 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21566 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21567 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21568 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21569 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21570 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21571 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21572 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21573 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21574 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21575 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21576 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21577 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21578 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21579 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21580 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21581 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21582 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21583 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21584 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21585 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21586 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21587 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21588 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21589 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21590 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21591 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21592 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21593 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21594 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21595 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21596 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21597 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21598 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21599 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21600 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21601 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21602 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21603 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21604 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21605 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21606 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21607 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21608 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21609 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21610 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21611 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21612 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21613 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21614 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21615 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21616 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21617 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21618 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21619 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21620 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21621 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21622 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21623 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21624 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21625 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21626 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21627 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21628 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21629 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21630 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21632 LTCC='$LTCC'
21633 LTCFLAGS='$LTCFLAGS'
21634 compiler='$compiler_DEFAULT'
21636 # A function that is used when there is no print builtin or printf.
21637 func_fallback_echo ()
21639 eval 'cat <<_LTECHO_EOF
21641 _LTECHO_EOF'
21644 # Quote evaled strings.
21645 for var in SHELL \
21646 ECHO \
21647 PATH_SEPARATOR \
21648 SED \
21649 GREP \
21650 EGREP \
21651 FGREP \
21652 LD \
21653 NM \
21654 LN_S \
21655 lt_SP2NL \
21656 lt_NL2SP \
21657 reload_flag \
21658 OBJDUMP \
21659 deplibs_check_method \
21660 file_magic_cmd \
21661 file_magic_glob \
21662 want_nocaseglob \
21663 DLLTOOL \
21664 sharedlib_from_linklib_cmd \
21665 AR \
21666 AR_FLAGS \
21667 archiver_list_spec \
21668 STRIP \
21669 RANLIB \
21670 CC \
21671 CFLAGS \
21672 compiler \
21673 lt_cv_sys_global_symbol_pipe \
21674 lt_cv_sys_global_symbol_to_cdecl \
21675 lt_cv_sys_global_symbol_to_c_name_address \
21676 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21677 nm_file_list_spec \
21678 lt_prog_compiler_no_builtin_flag \
21679 lt_prog_compiler_pic \
21680 lt_prog_compiler_wl \
21681 lt_prog_compiler_static \
21682 lt_cv_prog_compiler_c_o \
21683 need_locks \
21684 MANIFEST_TOOL \
21685 DSYMUTIL \
21686 NMEDIT \
21687 LIPO \
21688 OTOOL \
21689 OTOOL64 \
21690 shrext_cmds \
21691 export_dynamic_flag_spec \
21692 whole_archive_flag_spec \
21693 compiler_needs_object \
21694 with_gnu_ld \
21695 allow_undefined_flag \
21696 no_undefined_flag \
21697 hardcode_libdir_flag_spec \
21698 hardcode_libdir_separator \
21699 exclude_expsyms \
21700 include_expsyms \
21701 file_list_spec \
21702 variables_saved_for_relink \
21703 libname_spec \
21704 library_names_spec \
21705 soname_spec \
21706 install_override_mode \
21707 finish_eval \
21708 old_striplib \
21709 striplib; do
21710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21711 *[\\\\\\\`\\"\\\$]*)
21712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21717 esac
21718 done
21720 # Double-quote double-evaled strings.
21721 for var in reload_cmds \
21722 old_postinstall_cmds \
21723 old_postuninstall_cmds \
21724 old_archive_cmds \
21725 extract_expsyms_cmds \
21726 old_archive_from_new_cmds \
21727 old_archive_from_expsyms_cmds \
21728 archive_cmds \
21729 archive_expsym_cmds \
21730 module_cmds \
21731 module_expsym_cmds \
21732 export_symbols_cmds \
21733 prelink_cmds \
21734 postlink_cmds \
21735 postinstall_cmds \
21736 postuninstall_cmds \
21737 finish_cmds \
21738 sys_lib_search_path_spec \
21739 sys_lib_dlsearch_path_spec; do
21740 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21741 *[\\\\\\\`\\"\\\$]*)
21742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21747 esac
21748 done
21750 ac_aux_dir='$ac_aux_dir'
21751 xsi_shell='$xsi_shell'
21752 lt_shell_append='$lt_shell_append'
21754 # See if we are running on zsh, and set the options which allow our
21755 # commands through without removal of \ escapes INIT.
21756 if test -n "\${ZSH_VERSION+set}" ; then
21757 setopt NO_GLOB_SUBST
21761 PACKAGE='$PACKAGE'
21762 VERSION='$VERSION'
21763 TIMESTAMP='$TIMESTAMP'
21764 RM='$RM'
21765 ofile='$ofile'
21769 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21770 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21771 # from automake < 1.5.
21772 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21773 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21774 LINGUAS="${LINGUAS-%UNSET%}"
21777 _ACEOF
21779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21781 # Handling of arguments.
21782 for ac_config_target in $ac_config_targets
21784 case $ac_config_target in
21785 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21786 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21788 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21789 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21790 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21791 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
21792 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
21793 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
21794 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
21795 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
21796 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
21797 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
21798 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
21799 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
21800 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
21801 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
21802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21804 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21805 esac
21806 done
21809 # If the user did not use the arguments to specify the items to instantiate,
21810 # then the envvar interface is used. Set only those that are not.
21811 # We use the long form for the default assignment because of an extremely
21812 # bizarre bug on SunOS 4.1.3.
21813 if $ac_need_defaults; then
21814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21815 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21816 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21819 # Have a temporary directory for convenience. Make it in the build tree
21820 # simply because there is no reason against having it here, and in addition,
21821 # creating and moving files from /tmp can sometimes cause problems.
21822 # Hook for its removal unless debugging.
21823 # Note that there is a small window in which the directory will not be cleaned:
21824 # after its creation but before its name has been assigned to `$tmp'.
21825 $debug ||
21827 tmp= ac_tmp=
21828 trap 'exit_status=$?
21829 : "${ac_tmp:=$tmp}"
21830 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21832 trap 'as_fn_exit 1' 1 2 13 15
21834 # Create a (secure) tmp directory for tmp files.
21837 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21838 test -d "$tmp"
21839 } ||
21841 tmp=./conf$$-$RANDOM
21842 (umask 077 && mkdir "$tmp")
21843 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21844 ac_tmp=$tmp
21846 # Set up the scripts for CONFIG_FILES section.
21847 # No need to generate them if there are no CONFIG_FILES.
21848 # This happens for instance with `./config.status config.h'.
21849 if test -n "$CONFIG_FILES"; then
21852 ac_cr=`echo X | tr X '\015'`
21853 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21854 # But we know of no other shell where ac_cr would be empty at this
21855 # point, so we can use a bashism as a fallback.
21856 if test "x$ac_cr" = x; then
21857 eval ac_cr=\$\'\\r\'
21859 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21860 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21861 ac_cs_awk_cr='\\r'
21862 else
21863 ac_cs_awk_cr=$ac_cr
21866 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21867 _ACEOF
21871 echo "cat >conf$$subs.awk <<_ACEOF" &&
21872 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21873 echo "_ACEOF"
21874 } >conf$$subs.sh ||
21875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21876 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21877 ac_delim='%!_!# '
21878 for ac_last_try in false false false false false :; do
21879 . ./conf$$subs.sh ||
21880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21882 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21883 if test $ac_delim_n = $ac_delim_num; then
21884 break
21885 elif $ac_last_try; then
21886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21887 else
21888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21890 done
21891 rm -f conf$$subs.sh
21893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21894 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21895 _ACEOF
21896 sed -n '
21898 s/^/S["/; s/!.*/"]=/
21901 s/^[^!]*!//
21902 :repl
21903 t repl
21904 s/'"$ac_delim"'$//
21905 t delim
21908 s/\(.\{148\}\)..*/\1/
21909 t more1
21910 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21913 b repl
21914 :more1
21915 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21918 s/.\{148\}//
21919 t nl
21920 :delim
21922 s/\(.\{148\}\)..*/\1/
21923 t more2
21924 s/["\\]/\\&/g; s/^/"/; s/$/"/
21927 :more2
21928 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21931 s/.\{148\}//
21932 t delim
21933 ' <conf$$subs.awk | sed '
21934 /^[^""]/{
21936 s/\n//
21938 ' >>$CONFIG_STATUS || ac_write_fail=1
21939 rm -f conf$$subs.awk
21940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21941 _ACAWK
21942 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21943 for (key in S) S_is_set[key] = 1
21944 FS = "\a"
21948 line = $ 0
21949 nfields = split(line, field, "@")
21950 substed = 0
21951 len = length(field[1])
21952 for (i = 2; i < nfields; i++) {
21953 key = field[i]
21954 keylen = length(key)
21955 if (S_is_set[key]) {
21956 value = S[key]
21957 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21958 len += length(value) + length(field[++i])
21959 substed = 1
21960 } else
21961 len += 1 + keylen
21964 print line
21967 _ACAWK
21968 _ACEOF
21969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21970 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21971 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21972 else
21974 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21975 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21976 _ACEOF
21978 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21979 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21980 # trailing colons and then remove the whole line if VPATH becomes empty
21981 # (actually we leave an empty line to preserve line numbers).
21982 if test "x$srcdir" = x.; then
21983 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21985 s///
21986 s/^/:/
21987 s/[ ]*$/:/
21988 s/:\$(srcdir):/:/g
21989 s/:\${srcdir}:/:/g
21990 s/:@srcdir@:/:/g
21991 s/^:*//
21992 s/:*$//
21994 s/\(=[ ]*\).*/\1/
21996 s/\n//
21997 s/^[^=]*=[ ]*$//
22001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22002 fi # test -n "$CONFIG_FILES"
22004 # Set up the scripts for CONFIG_HEADERS section.
22005 # No need to generate them if there are no CONFIG_HEADERS.
22006 # This happens for instance with `./config.status Makefile'.
22007 if test -n "$CONFIG_HEADERS"; then
22008 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22009 BEGIN {
22010 _ACEOF
22012 # Transform confdefs.h into an awk script `defines.awk', embedded as
22013 # here-document in config.status, that substitutes the proper values into
22014 # config.h.in to produce config.h.
22016 # Create a delimiter string that does not exist in confdefs.h, to ease
22017 # handling of long lines.
22018 ac_delim='%!_!# '
22019 for ac_last_try in false false :; do
22020 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22021 if test -z "$ac_tt"; then
22022 break
22023 elif $ac_last_try; then
22024 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22025 else
22026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22028 done
22030 # For the awk script, D is an array of macro values keyed by name,
22031 # likewise P contains macro parameters if any. Preserve backslash
22032 # newline sequences.
22034 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22035 sed -n '
22036 s/.\{148\}/&'"$ac_delim"'/g
22037 t rset
22038 :rset
22039 s/^[ ]*#[ ]*define[ ][ ]*/ /
22040 t def
22042 :def
22043 s/\\$//
22044 t bsnl
22045 s/["\\]/\\&/g
22046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22047 D["\1"]=" \3"/p
22048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22050 :bsnl
22051 s/["\\]/\\&/g
22052 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22053 D["\1"]=" \3\\\\\\n"\\/p
22054 t cont
22055 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22056 t cont
22058 :cont
22060 s/.\{148\}/&'"$ac_delim"'/g
22061 t clear
22062 :clear
22063 s/\\$//
22064 t bsnlc
22065 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22067 :bsnlc
22068 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22069 b cont
22070 ' <confdefs.h | sed '
22071 s/'"$ac_delim"'/"\\\
22072 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22075 for (key in D) D_is_set[key] = 1
22076 FS = "\a"
22078 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22079 line = \$ 0
22080 split(line, arg, " ")
22081 if (arg[1] == "#") {
22082 defundef = arg[2]
22083 mac1 = arg[3]
22084 } else {
22085 defundef = substr(arg[1], 2)
22086 mac1 = arg[2]
22088 split(mac1, mac2, "(") #)
22089 macro = mac2[1]
22090 prefix = substr(line, 1, index(line, defundef) - 1)
22091 if (D_is_set[macro]) {
22092 # Preserve the white space surrounding the "#".
22093 print prefix "define", macro P[macro] D[macro]
22094 next
22095 } else {
22096 # Replace #undef with comments. This is necessary, for example,
22097 # in the case of _POSIX_SOURCE, which is predefined and required
22098 # on some systems where configure will not decide to define it.
22099 if (defundef == "undef") {
22100 print "/*", prefix defundef, macro, "*/"
22101 next
22105 { print }
22106 _ACAWK
22107 _ACEOF
22108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22109 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22110 fi # test -n "$CONFIG_HEADERS"
22113 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22114 shift
22115 for ac_tag
22117 case $ac_tag in
22118 :[FHLC]) ac_mode=$ac_tag; continue;;
22119 esac
22120 case $ac_mode$ac_tag in
22121 :[FHL]*:*);;
22122 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22123 :[FH]-) ac_tag=-:-;;
22124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22125 esac
22126 ac_save_IFS=$IFS
22127 IFS=:
22128 set x $ac_tag
22129 IFS=$ac_save_IFS
22130 shift
22131 ac_file=$1
22132 shift
22134 case $ac_mode in
22135 :L) ac_source=$1;;
22136 :[FH])
22137 ac_file_inputs=
22138 for ac_f
22140 case $ac_f in
22141 -) ac_f="$ac_tmp/stdin";;
22142 *) # Look for the file first in the build tree, then in the source tree
22143 # (if the path is not absolute). The absolute path cannot be DOS-style,
22144 # because $ac_f cannot contain `:'.
22145 test -f "$ac_f" ||
22146 case $ac_f in
22147 [\\/$]*) false;;
22148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22149 esac ||
22150 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22151 esac
22152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22153 as_fn_append ac_file_inputs " '$ac_f'"
22154 done
22156 # Let's still pretend it is `configure' which instantiates (i.e., don't
22157 # use $as_me), people would be surprised to read:
22158 # /* config.h. Generated by config.status. */
22159 configure_input='Generated from '`
22160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22161 `' by configure.'
22162 if test x"$ac_file" != x-; then
22163 configure_input="$ac_file. $configure_input"
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22165 $as_echo "$as_me: creating $ac_file" >&6;}
22167 # Neutralize special characters interpreted by sed in replacement strings.
22168 case $configure_input in #(
22169 *\&* | *\|* | *\\* )
22170 ac_sed_conf_input=`$as_echo "$configure_input" |
22171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22172 *) ac_sed_conf_input=$configure_input;;
22173 esac
22175 case $ac_tag in
22176 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22178 esac
22180 esac
22182 ac_dir=`$as_dirname -- "$ac_file" ||
22183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184 X"$ac_file" : 'X\(//\)[^/]' \| \
22185 X"$ac_file" : 'X\(//\)$' \| \
22186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22187 $as_echo X"$ac_file" |
22188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22189 s//\1/
22192 /^X\(\/\/\)[^/].*/{
22193 s//\1/
22196 /^X\(\/\/\)$/{
22197 s//\1/
22200 /^X\(\/\).*/{
22201 s//\1/
22204 s/.*/./; q'`
22205 as_dir="$ac_dir"; as_fn_mkdir_p
22206 ac_builddir=.
22208 case "$ac_dir" in
22209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22212 # A ".." for each directory in $ac_dir_suffix.
22213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22214 case $ac_top_builddir_sub in
22215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22217 esac ;;
22218 esac
22219 ac_abs_top_builddir=$ac_pwd
22220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22221 # for backward compatibility:
22222 ac_top_builddir=$ac_top_build_prefix
22224 case $srcdir in
22225 .) # We are building in place.
22226 ac_srcdir=.
22227 ac_top_srcdir=$ac_top_builddir_sub
22228 ac_abs_top_srcdir=$ac_pwd ;;
22229 [\\/]* | ?:[\\/]* ) # Absolute name.
22230 ac_srcdir=$srcdir$ac_dir_suffix;
22231 ac_top_srcdir=$srcdir
22232 ac_abs_top_srcdir=$srcdir ;;
22233 *) # Relative name.
22234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22235 ac_top_srcdir=$ac_top_build_prefix$srcdir
22236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22237 esac
22238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22241 case $ac_mode in
22244 # CONFIG_FILE
22247 case $INSTALL in
22248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22250 esac
22251 ac_MKDIR_P=$MKDIR_P
22252 case $MKDIR_P in
22253 [\\/$]* | ?:[\\/]* ) ;;
22254 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22255 esac
22256 _ACEOF
22258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22259 # If the template does not know about datarootdir, expand it.
22260 # FIXME: This hack should be removed a few years after 2.60.
22261 ac_datarootdir_hack=; ac_datarootdir_seen=
22262 ac_sed_dataroot='
22263 /datarootdir/ {
22267 /@datadir@/p
22268 /@docdir@/p
22269 /@infodir@/p
22270 /@localedir@/p
22271 /@mandir@/p'
22272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22273 *datarootdir*) ac_datarootdir_seen=yes;;
22274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22277 _ACEOF
22278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22279 ac_datarootdir_hack='
22280 s&@datadir@&$datadir&g
22281 s&@docdir@&$docdir&g
22282 s&@infodir@&$infodir&g
22283 s&@localedir@&$localedir&g
22284 s&@mandir@&$mandir&g
22285 s&\\\${datarootdir}&$datarootdir&g' ;;
22286 esac
22287 _ACEOF
22289 # Neutralize VPATH when `$srcdir' = `.'.
22290 # Shell code in configure.ac might set extrasub.
22291 # FIXME: do we really want to maintain this feature?
22292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22293 ac_sed_extra="$ac_vpsub
22294 $extrasub
22295 _ACEOF
22296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22299 s|@configure_input@|$ac_sed_conf_input|;t t
22300 s&@top_builddir@&$ac_top_builddir_sub&;t t
22301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22302 s&@srcdir@&$ac_srcdir&;t t
22303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22304 s&@top_srcdir@&$ac_top_srcdir&;t t
22305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22306 s&@builddir@&$ac_builddir&;t t
22307 s&@abs_builddir@&$ac_abs_builddir&;t t
22308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22309 s&@INSTALL@&$ac_INSTALL&;t t
22310 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22311 $ac_datarootdir_hack
22313 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22314 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22317 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22319 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22321 which seems to be undefined. Please make sure it is defined" >&5
22322 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined. Please make sure it is defined" >&2;}
22325 rm -f "$ac_tmp/stdin"
22326 case $ac_file in
22327 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22328 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22329 esac \
22330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22334 # CONFIG_HEADER
22336 if test x"$ac_file" != x-; then
22338 $as_echo "/* $configure_input */" \
22339 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22340 } >"$ac_tmp/config.h" \
22341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22342 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22344 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22345 else
22346 rm -f "$ac_file"
22347 mv "$ac_tmp/config.h" "$ac_file" \
22348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22350 else
22351 $as_echo "/* $configure_input */" \
22352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22353 || as_fn_error $? "could not create -" "$LINENO" 5
22355 # Compute "$ac_file"'s index in $config_headers.
22356 _am_arg="$ac_file"
22357 _am_stamp_count=1
22358 for _am_header in $config_headers :; do
22359 case $_am_header in
22360 $_am_arg | $_am_arg:* )
22361 break ;;
22363 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22364 esac
22365 done
22366 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22367 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22368 X"$_am_arg" : 'X\(//\)[^/]' \| \
22369 X"$_am_arg" : 'X\(//\)$' \| \
22370 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22371 $as_echo X"$_am_arg" |
22372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22373 s//\1/
22376 /^X\(\/\/\)[^/].*/{
22377 s//\1/
22380 /^X\(\/\/\)$/{
22381 s//\1/
22384 /^X\(\/\).*/{
22385 s//\1/
22388 s/.*/./; q'`/stamp-h$_am_stamp_count
22391 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22392 $as_echo "$as_me: executing $ac_file commands" >&6;}
22394 esac
22397 case $ac_file$ac_mode in
22398 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22399 # Older Autoconf quotes --file arguments for eval, but not when files
22400 # are listed without --file. Let's play safe and only enable the eval
22401 # if we detect the quoting.
22402 case $CONFIG_FILES in
22403 *\'*) eval set x "$CONFIG_FILES" ;;
22404 *) set x $CONFIG_FILES ;;
22405 esac
22406 shift
22407 for mf
22409 # Strip MF so we end up with the name of the file.
22410 mf=`echo "$mf" | sed -e 's/:.*$//'`
22411 # Check whether this is an Automake generated Makefile or not.
22412 # We used to match only the files named 'Makefile.in', but
22413 # some people rename them; so instead we look at the file content.
22414 # Grep'ing the first line is not enough: some people post-process
22415 # each Makefile.in and add a new line on top of each file to say so.
22416 # Grep'ing the whole file is not good either: AIX grep has a line
22417 # limit of 2048, but all sed's we know have understand at least 4000.
22418 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22419 dirpart=`$as_dirname -- "$mf" ||
22420 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22421 X"$mf" : 'X\(//\)[^/]' \| \
22422 X"$mf" : 'X\(//\)$' \| \
22423 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22424 $as_echo X"$mf" |
22425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22426 s//\1/
22429 /^X\(\/\/\)[^/].*/{
22430 s//\1/
22433 /^X\(\/\/\)$/{
22434 s//\1/
22437 /^X\(\/\).*/{
22438 s//\1/
22441 s/.*/./; q'`
22442 else
22443 continue
22445 # Extract the definition of DEPDIR, am__include, and am__quote
22446 # from the Makefile without running 'make'.
22447 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22448 test -z "$DEPDIR" && continue
22449 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22450 test -z "$am__include" && continue
22451 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22452 # Find all dependency output files, they are included files with
22453 # $(DEPDIR) in their names. We invoke sed twice because it is the
22454 # simplest approach to changing $(DEPDIR) to its actual value in the
22455 # expansion.
22456 for file in `sed -n "
22457 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22458 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22459 # Make sure the directory exists.
22460 test -f "$dirpart/$file" && continue
22461 fdir=`$as_dirname -- "$file" ||
22462 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22463 X"$file" : 'X\(//\)[^/]' \| \
22464 X"$file" : 'X\(//\)$' \| \
22465 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22466 $as_echo X"$file" |
22467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22468 s//\1/
22471 /^X\(\/\/\)[^/].*/{
22472 s//\1/
22475 /^X\(\/\/\)$/{
22476 s//\1/
22479 /^X\(\/\).*/{
22480 s//\1/
22483 s/.*/./; q'`
22484 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22485 # echo "creating $dirpart/$file"
22486 echo '# dummy' > "$dirpart/$file"
22487 done
22488 done
22491 "libtool":C)
22493 # See if we are running on zsh, and set the options which allow our
22494 # commands through without removal of \ escapes.
22495 if test -n "${ZSH_VERSION+set}" ; then
22496 setopt NO_GLOB_SUBST
22499 cfgfile="${ofile}T"
22500 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22501 $RM "$cfgfile"
22503 cat <<_LT_EOF >> "$cfgfile"
22504 #! $SHELL
22506 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22507 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22509 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22511 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22512 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22513 # Foundation, Inc.
22514 # Written by Gordon Matzigkeit, 1996
22516 # This file is part of GNU Libtool.
22518 # GNU Libtool is free software; you can redistribute it and/or
22519 # modify it under the terms of the GNU General Public License as
22520 # published by the Free Software Foundation; either version 2 of
22521 # the License, or (at your option) any later version.
22523 # As a special exception to the GNU General Public License,
22524 # if you distribute this file as part of a program or library that
22525 # is built using GNU Libtool, you may include this file under the
22526 # same distribution terms that you use for the rest of that program.
22528 # GNU Libtool is distributed in the hope that it will be useful,
22529 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22531 # GNU General Public License for more details.
22533 # You should have received a copy of the GNU General Public License
22534 # along with GNU Libtool; see the file COPYING. If not, a copy
22535 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22536 # obtained by writing to the Free Software Foundation, Inc.,
22537 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22540 # The names of the tagged configurations supported by this script.
22541 available_tags=""
22543 # ### BEGIN LIBTOOL CONFIG
22545 # Which release of libtool.m4 was used?
22546 macro_version=$macro_version
22547 macro_revision=$macro_revision
22549 # Whether or not to build shared libraries.
22550 build_libtool_libs=$enable_shared
22552 # Whether or not to build static libraries.
22553 build_old_libs=$enable_static
22555 # What type of objects to build.
22556 pic_mode=$pic_mode
22558 # Whether or not to optimize for fast installation.
22559 fast_install=$enable_fast_install
22561 # Shell to use when invoking shell scripts.
22562 SHELL=$lt_SHELL
22564 # An echo program that protects backslashes.
22565 ECHO=$lt_ECHO
22567 # The PATH separator for the build system.
22568 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22570 # The host system.
22571 host_alias=$host_alias
22572 host=$host
22573 host_os=$host_os
22575 # The build system.
22576 build_alias=$build_alias
22577 build=$build
22578 build_os=$build_os
22580 # A sed program that does not truncate output.
22581 SED=$lt_SED
22583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22584 Xsed="\$SED -e 1s/^X//"
22586 # A grep program that handles long lines.
22587 GREP=$lt_GREP
22589 # An ERE matcher.
22590 EGREP=$lt_EGREP
22592 # A literal string matcher.
22593 FGREP=$lt_FGREP
22595 # A BSD- or MS-compatible name lister.
22596 NM=$lt_NM
22598 # Whether we need soft or hard links.
22599 LN_S=$lt_LN_S
22601 # What is the maximum length of a command?
22602 max_cmd_len=$max_cmd_len
22604 # Object file suffix (normally "o").
22605 objext=$ac_objext
22607 # Executable file suffix (normally "").
22608 exeext=$exeext
22610 # whether the shell understands "unset".
22611 lt_unset=$lt_unset
22613 # turn spaces into newlines.
22614 SP2NL=$lt_lt_SP2NL
22616 # turn newlines into spaces.
22617 NL2SP=$lt_lt_NL2SP
22619 # convert \$build file names to \$host format.
22620 to_host_file_cmd=$lt_cv_to_host_file_cmd
22622 # convert \$build files to toolchain format.
22623 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22625 # An object symbol dumper.
22626 OBJDUMP=$lt_OBJDUMP
22628 # Method to check whether dependent libraries are shared objects.
22629 deplibs_check_method=$lt_deplibs_check_method
22631 # Command to use when deplibs_check_method = "file_magic".
22632 file_magic_cmd=$lt_file_magic_cmd
22634 # How to find potential files when deplibs_check_method = "file_magic".
22635 file_magic_glob=$lt_file_magic_glob
22637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22638 want_nocaseglob=$lt_want_nocaseglob
22640 # DLL creation program.
22641 DLLTOOL=$lt_DLLTOOL
22643 # Command to associate shared and link libraries.
22644 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22646 # The archiver.
22647 AR=$lt_AR
22649 # Flags to create an archive.
22650 AR_FLAGS=$lt_AR_FLAGS
22652 # How to feed a file listing to the archiver.
22653 archiver_list_spec=$lt_archiver_list_spec
22655 # A symbol stripping program.
22656 STRIP=$lt_STRIP
22658 # Commands used to install an old-style archive.
22659 RANLIB=$lt_RANLIB
22660 old_postinstall_cmds=$lt_old_postinstall_cmds
22661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22663 # Whether to use a lock for old archive extraction.
22664 lock_old_archive_extraction=$lock_old_archive_extraction
22666 # A C compiler.
22667 LTCC=$lt_CC
22669 # LTCC compiler flags.
22670 LTCFLAGS=$lt_CFLAGS
22672 # Take the output of nm and produce a listing of raw symbols and C names.
22673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22675 # Transform the output of nm in a proper C declaration.
22676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22678 # Transform the output of nm in a C name address pair.
22679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22681 # Transform the output of nm in a C name address pair when lib prefix is needed.
22682 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22684 # Specify filename containing input files for \$NM.
22685 nm_file_list_spec=$lt_nm_file_list_spec
22687 # The root where to search for dependent libraries,and in which our libraries should be installed.
22688 lt_sysroot=$lt_sysroot
22690 # The name of the directory that contains temporary libtool files.
22691 objdir=$objdir
22693 # Used to examine libraries when file_magic_cmd begins with "file".
22694 MAGIC_CMD=$MAGIC_CMD
22696 # Must we lock files when doing compilation?
22697 need_locks=$lt_need_locks
22699 # Manifest tool.
22700 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22702 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22703 DSYMUTIL=$lt_DSYMUTIL
22705 # Tool to change global to local symbols on Mac OS X.
22706 NMEDIT=$lt_NMEDIT
22708 # Tool to manipulate fat objects and archives on Mac OS X.
22709 LIPO=$lt_LIPO
22711 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22712 OTOOL=$lt_OTOOL
22714 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22715 OTOOL64=$lt_OTOOL64
22717 # Old archive suffix (normally "a").
22718 libext=$libext
22720 # Shared library suffix (normally ".so").
22721 shrext_cmds=$lt_shrext_cmds
22723 # The commands to extract the exported symbol list from a shared archive.
22724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22726 # Variables whose values should be saved in libtool wrapper scripts and
22727 # restored at link time.
22728 variables_saved_for_relink=$lt_variables_saved_for_relink
22730 # Do we need the "lib" prefix for modules?
22731 need_lib_prefix=$need_lib_prefix
22733 # Do we need a version for libraries?
22734 need_version=$need_version
22736 # Library versioning type.
22737 version_type=$version_type
22739 # Shared library runtime path variable.
22740 runpath_var=$runpath_var
22742 # Shared library path variable.
22743 shlibpath_var=$shlibpath_var
22745 # Is shlibpath searched before the hard-coded library search path?
22746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22748 # Format of library name prefix.
22749 libname_spec=$lt_libname_spec
22751 # List of archive names. First name is the real one, the rest are links.
22752 # The last name is the one that the linker finds with -lNAME
22753 library_names_spec=$lt_library_names_spec
22755 # The coded name of the library, if different from the real name.
22756 soname_spec=$lt_soname_spec
22758 # Permission mode override for installation of shared libraries.
22759 install_override_mode=$lt_install_override_mode
22761 # Command to use after installation of a shared archive.
22762 postinstall_cmds=$lt_postinstall_cmds
22764 # Command to use after uninstallation of a shared archive.
22765 postuninstall_cmds=$lt_postuninstall_cmds
22767 # Commands used to finish a libtool library installation in a directory.
22768 finish_cmds=$lt_finish_cmds
22770 # As "finish_cmds", except a single script fragment to be evaled but
22771 # not shown.
22772 finish_eval=$lt_finish_eval
22774 # Whether we should hardcode library paths into libraries.
22775 hardcode_into_libs=$hardcode_into_libs
22777 # Compile-time system search path for libraries.
22778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22780 # Run-time system search path for libraries.
22781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22783 # Whether dlopen is supported.
22784 dlopen_support=$enable_dlopen
22786 # Whether dlopen of programs is supported.
22787 dlopen_self=$enable_dlopen_self
22789 # Whether dlopen of statically linked programs is supported.
22790 dlopen_self_static=$enable_dlopen_self_static
22792 # Commands to strip libraries.
22793 old_striplib=$lt_old_striplib
22794 striplib=$lt_striplib
22797 # The linker used to build libraries.
22798 LD=$lt_LD
22800 # How to create reloadable object files.
22801 reload_flag=$lt_reload_flag
22802 reload_cmds=$lt_reload_cmds
22804 # Commands used to build an old-style archive.
22805 old_archive_cmds=$lt_old_archive_cmds
22807 # A language specific compiler.
22808 CC=$lt_compiler
22810 # Is the compiler the GNU compiler?
22811 with_gcc=$GCC
22813 # Compiler flag to turn off builtin functions.
22814 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22816 # Additional compiler flags for building library objects.
22817 pic_flag=$lt_lt_prog_compiler_pic
22819 # How to pass a linker flag through the compiler.
22820 wl=$lt_lt_prog_compiler_wl
22822 # Compiler flag to prevent dynamic linking.
22823 link_static_flag=$lt_lt_prog_compiler_static
22825 # Does compiler simultaneously support -c and -o options?
22826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22828 # Whether or not to add -lc for building shared libraries.
22829 build_libtool_need_lc=$archive_cmds_need_lc
22831 # Whether or not to disallow shared libs when runtime libs are static.
22832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22834 # Compiler flag to allow reflexive dlopens.
22835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22837 # Compiler flag to generate shared objects directly from archives.
22838 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22840 # Whether the compiler copes with passing no objects directly.
22841 compiler_needs_object=$lt_compiler_needs_object
22843 # Create an old-style archive from a shared archive.
22844 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22846 # Create a temporary old-style archive to link instead of a shared archive.
22847 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22849 # Commands used to build a shared archive.
22850 archive_cmds=$lt_archive_cmds
22851 archive_expsym_cmds=$lt_archive_expsym_cmds
22853 # Commands used to build a loadable module if different from building
22854 # a shared archive.
22855 module_cmds=$lt_module_cmds
22856 module_expsym_cmds=$lt_module_expsym_cmds
22858 # Whether we are building with GNU ld or not.
22859 with_gnu_ld=$lt_with_gnu_ld
22861 # Flag that allows shared libraries with undefined symbols to be built.
22862 allow_undefined_flag=$lt_allow_undefined_flag
22864 # Flag that enforces no undefined symbols.
22865 no_undefined_flag=$lt_no_undefined_flag
22867 # Flag to hardcode \$libdir into a binary during linking.
22868 # This must work even if \$libdir does not exist
22869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22871 # Whether we need a single "-rpath" flag with a separated argument.
22872 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22874 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22875 # DIR into the resulting binary.
22876 hardcode_direct=$hardcode_direct
22878 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22879 # DIR into the resulting binary and the resulting library dependency is
22880 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22881 # library is relocated.
22882 hardcode_direct_absolute=$hardcode_direct_absolute
22884 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22885 # into the resulting binary.
22886 hardcode_minus_L=$hardcode_minus_L
22888 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22889 # into the resulting binary.
22890 hardcode_shlibpath_var=$hardcode_shlibpath_var
22892 # Set to "yes" if building a shared library automatically hardcodes DIR
22893 # into the library and all subsequent libraries and executables linked
22894 # against it.
22895 hardcode_automatic=$hardcode_automatic
22897 # Set to yes if linker adds runtime paths of dependent libraries
22898 # to runtime path list.
22899 inherit_rpath=$inherit_rpath
22901 # Whether libtool must link a program against all its dependency libraries.
22902 link_all_deplibs=$link_all_deplibs
22904 # Set to "yes" if exported symbols are required.
22905 always_export_symbols=$always_export_symbols
22907 # The commands to list exported symbols.
22908 export_symbols_cmds=$lt_export_symbols_cmds
22910 # Symbols that should not be listed in the preloaded symbols.
22911 exclude_expsyms=$lt_exclude_expsyms
22913 # Symbols that must always be exported.
22914 include_expsyms=$lt_include_expsyms
22916 # Commands necessary for linking programs (against libraries) with templates.
22917 prelink_cmds=$lt_prelink_cmds
22919 # Commands necessary for finishing linking programs.
22920 postlink_cmds=$lt_postlink_cmds
22922 # Specify filename containing input files.
22923 file_list_spec=$lt_file_list_spec
22925 # How to hardcode a shared library path into an executable.
22926 hardcode_action=$hardcode_action
22928 # ### END LIBTOOL CONFIG
22930 _LT_EOF
22932 case $host_os in
22933 aix3*)
22934 cat <<\_LT_EOF >> "$cfgfile"
22935 # AIX sometimes has problems with the GCC collect2 program. For some
22936 # reason, if we set the COLLECT_NAMES environment variable, the problems
22937 # vanish in a puff of smoke.
22938 if test "X${COLLECT_NAMES+set}" != Xset; then
22939 COLLECT_NAMES=
22940 export COLLECT_NAMES
22942 _LT_EOF
22944 esac
22947 ltmain="$ac_aux_dir/ltmain.sh"
22950 # We use sed instead of cat because bash on DJGPP gets confused if
22951 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22952 # text mode, it properly converts lines to CR/LF. This bash problem
22953 # is reportedly fixed, but why not run on old versions too?
22954 sed '$q' "$ltmain" >> "$cfgfile" \
22955 || (rm -f "$cfgfile"; exit 1)
22957 if test x"$xsi_shell" = xyes; then
22958 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22959 func_dirname ()\
22961 \ case ${1} in\
22962 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22963 \ * ) func_dirname_result="${3}" ;;\
22964 \ esac\
22965 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22966 && mv -f "$cfgfile.tmp" "$cfgfile" \
22967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22968 test 0 -eq $? || _lt_function_replace_fail=:
22971 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22972 func_basename ()\
22974 \ func_basename_result="${1##*/}"\
22975 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22976 && mv -f "$cfgfile.tmp" "$cfgfile" \
22977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22978 test 0 -eq $? || _lt_function_replace_fail=:
22981 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22982 func_dirname_and_basename ()\
22984 \ case ${1} in\
22985 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22986 \ * ) func_dirname_result="${3}" ;;\
22987 \ esac\
22988 \ func_basename_result="${1##*/}"\
22989 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22990 && mv -f "$cfgfile.tmp" "$cfgfile" \
22991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22992 test 0 -eq $? || _lt_function_replace_fail=:
22995 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22996 func_stripname ()\
22998 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22999 \ # positional parameters, so assign one to ordinary parameter first.\
23000 \ func_stripname_result=${3}\
23001 \ func_stripname_result=${func_stripname_result#"${1}"}\
23002 \ func_stripname_result=${func_stripname_result%"${2}"}\
23003 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23004 && mv -f "$cfgfile.tmp" "$cfgfile" \
23005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23006 test 0 -eq $? || _lt_function_replace_fail=:
23009 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23010 func_split_long_opt ()\
23012 \ func_split_long_opt_name=${1%%=*}\
23013 \ func_split_long_opt_arg=${1#*=}\
23014 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23015 && mv -f "$cfgfile.tmp" "$cfgfile" \
23016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23017 test 0 -eq $? || _lt_function_replace_fail=:
23020 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23021 func_split_short_opt ()\
23023 \ func_split_short_opt_arg=${1#??}\
23024 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23025 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23026 && mv -f "$cfgfile.tmp" "$cfgfile" \
23027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23028 test 0 -eq $? || _lt_function_replace_fail=:
23031 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23032 func_lo2o ()\
23034 \ case ${1} in\
23035 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23036 \ *) func_lo2o_result=${1} ;;\
23037 \ esac\
23038 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23039 && mv -f "$cfgfile.tmp" "$cfgfile" \
23040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23041 test 0 -eq $? || _lt_function_replace_fail=:
23044 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23045 func_xform ()\
23047 func_xform_result=${1%.*}.lo\
23048 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23049 && mv -f "$cfgfile.tmp" "$cfgfile" \
23050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23051 test 0 -eq $? || _lt_function_replace_fail=:
23054 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23055 func_arith ()\
23057 func_arith_result=$(( $* ))\
23058 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23059 && mv -f "$cfgfile.tmp" "$cfgfile" \
23060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23061 test 0 -eq $? || _lt_function_replace_fail=:
23064 sed -e '/^func_len ()$/,/^} # func_len /c\
23065 func_len ()\
23067 func_len_result=${#1}\
23068 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23069 && mv -f "$cfgfile.tmp" "$cfgfile" \
23070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23071 test 0 -eq $? || _lt_function_replace_fail=:
23075 if test x"$lt_shell_append" = xyes; then
23076 sed -e '/^func_append ()$/,/^} # func_append /c\
23077 func_append ()\
23079 eval "${1}+=\\${2}"\
23080 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23081 && mv -f "$cfgfile.tmp" "$cfgfile" \
23082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23083 test 0 -eq $? || _lt_function_replace_fail=:
23086 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23087 func_append_quoted ()\
23089 \ func_quote_for_eval "${2}"\
23090 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23091 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23092 && mv -f "$cfgfile.tmp" "$cfgfile" \
23093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23094 test 0 -eq $? || _lt_function_replace_fail=:
23097 # Save a `func_append' function call where possible by direct use of '+='
23098 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23099 && mv -f "$cfgfile.tmp" "$cfgfile" \
23100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23101 test 0 -eq $? || _lt_function_replace_fail=:
23102 else
23103 # Save a `func_append' function call even when '+=' is not available
23104 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23105 && mv -f "$cfgfile.tmp" "$cfgfile" \
23106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23107 test 0 -eq $? || _lt_function_replace_fail=:
23110 if test x"$_lt_function_replace_fail" = x":"; then
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23112 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23116 mv -f "$cfgfile" "$ofile" ||
23117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23118 chmod +x "$ofile"
23121 "po-directories":C)
23122 for ac_file in $CONFIG_FILES; do
23123 # Support "outfile[:infile[:infile...]]"
23124 case "$ac_file" in
23125 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23126 esac
23127 # PO directories have a Makefile.in generated from Makefile.in.in.
23128 case "$ac_file" in */Makefile.in)
23129 # Adjust a relative srcdir.
23130 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23131 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23132 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23133 # In autoconf-2.13 it is called $ac_given_srcdir.
23134 # In autoconf-2.50 it is called $srcdir.
23135 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23136 case "$ac_given_srcdir" in
23137 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23138 /*) top_srcdir="$ac_given_srcdir" ;;
23139 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23140 esac
23141 # Treat a directory as a PO directory if and only if it has a
23142 # POTFILES.in file. This allows packages to have multiple PO
23143 # directories under different names or in different locations.
23144 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23145 rm -f "$ac_dir/POTFILES"
23146 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23147 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23148 POMAKEFILEDEPS="POTFILES.in"
23149 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23150 # on $ac_dir but don't depend on user-specified configuration
23151 # parameters.
23152 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23153 # The LINGUAS file contains the set of available languages.
23154 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23155 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23157 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23158 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23159 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23160 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23161 else
23162 # The set of available languages was given in configure.in.
23163 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23164 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23166 # Compute POFILES
23167 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23168 # Compute UPDATEPOFILES
23169 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23170 # Compute DUMMYPOFILES
23171 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23172 # Compute GMOFILES
23173 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23174 case "$ac_given_srcdir" in
23175 .) srcdirpre= ;;
23176 *) srcdirpre='$(srcdir)/' ;;
23177 esac
23178 POFILES=
23179 UPDATEPOFILES=
23180 DUMMYPOFILES=
23181 GMOFILES=
23182 for lang in $ALL_LINGUAS; do
23183 POFILES="$POFILES $srcdirpre$lang.po"
23184 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23185 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23186 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23187 done
23188 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23189 # environment variable.
23190 INST_LINGUAS=
23191 if test -n "$ALL_LINGUAS"; then
23192 for presentlang in $ALL_LINGUAS; do
23193 useit=no
23194 if test "%UNSET%" != "$LINGUAS"; then
23195 desiredlanguages="$LINGUAS"
23196 else
23197 desiredlanguages="$ALL_LINGUAS"
23199 for desiredlang in $desiredlanguages; do
23200 # Use the presentlang catalog if desiredlang is
23201 # a. equal to presentlang, or
23202 # b. a variant of presentlang (because in this case,
23203 # presentlang can be used as a fallback for messages
23204 # which are not translated in the desiredlang catalog).
23205 case "$desiredlang" in
23206 "$presentlang"*) useit=yes;;
23207 esac
23208 done
23209 if test $useit = yes; then
23210 INST_LINGUAS="$INST_LINGUAS $presentlang"
23212 done
23214 CATALOGS=
23215 if test -n "$INST_LINGUAS"; then
23216 for lang in $INST_LINGUAS; do
23217 CATALOGS="$CATALOGS $lang.gmo"
23218 done
23220 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23221 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"
23222 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23223 if test -f "$f"; then
23224 case "$f" in
23225 *.orig | *.bak | *~) ;;
23226 *) cat "$f" >> "$ac_dir/Makefile" ;;
23227 esac
23229 done
23232 esac
23233 done ;;
23235 esac
23236 done # for ac_tag
23239 as_fn_exit 0
23240 _ACEOF
23241 ac_clean_files=$ac_clean_files_save
23243 test $ac_write_fail = 0 ||
23244 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23247 # configure is writing to config.log, and then calls config.status.
23248 # config.status does its own redirection, appending to config.log.
23249 # Unfortunately, on DOS this fails, as config.log is still kept open
23250 # by configure, so config.status won't be able to write to it; its
23251 # output is simply discarded. So we exec the FD to /dev/null,
23252 # effectively closing config.log, so it can be properly (re)opened and
23253 # appended to by config.status. When coming back to configure, we
23254 # need to make the FD available again.
23255 if test "$no_create" != yes; then
23256 ac_cs_success=:
23257 ac_config_status_args=
23258 test "$silent" = yes &&
23259 ac_config_status_args="$ac_config_status_args --quiet"
23260 exec 5>/dev/null
23261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23262 exec 5>>config.log
23263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23264 # would make configure fail if this is the last instruction.
23265 $ac_cs_success || as_fn_exit 1
23267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}