* patch by Sam Hathaway to make web alpine build when debug is turned
[alpine.git] / configure
blobdaf9d45b9c191a25a14869e9045e47bae7eb6f9c
1 #! /bin/sh
2 # From configure.ac Rev:13 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.19.10.
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.19.10'
595 PACKAGE_STRING='alpine 2.19.10'
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.19.10 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.19.10:";;
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.19.10
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.19.10, 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.19.10'
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*|ppc*-*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 ppc64-*linux*|powerpc64-*linux*)
7266 LD="${LD-ld} -m elf32ppclinux"
7268 s390x-*linux*)
7269 LD="${LD-ld} -m elf_s390"
7271 sparc64-*linux*)
7272 LD="${LD-ld} -m elf32_sparc"
7274 esac
7276 *64-bit*)
7277 case $host in
7278 x86_64-*kfreebsd*-gnu)
7279 LD="${LD-ld} -m elf_x86_64_fbsd"
7281 x86_64-*linux*)
7282 LD="${LD-ld} -m elf_x86_64"
7284 ppc*-*linux*|powerpc*-*linux*)
7285 LD="${LD-ld} -m elf64ppc"
7287 s390*-*linux*|s390*-*tpf*)
7288 LD="${LD-ld} -m elf64_s390"
7290 sparc*-*linux*)
7291 LD="${LD-ld} -m elf64_sparc"
7293 esac
7295 esac
7297 rm -rf conftest*
7300 *-*-sco3.2v5*)
7301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7302 SAVE_CFLAGS="$CFLAGS"
7303 CFLAGS="$CFLAGS -belf"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7305 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7306 if ${lt_cv_cc_needs_belf+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7319 main ()
7323 return 0;
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"; then :
7327 lt_cv_cc_needs_belf=yes
7328 else
7329 lt_cv_cc_needs_belf=no
7331 rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7341 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7344 CFLAGS="$SAVE_CFLAGS"
7347 *-*solaris*)
7348 # Find out which ABI we are using.
7349 echo 'int i;' > conftest.$ac_ext
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 case `/usr/bin/file conftest.o` in
7356 *64-bit*)
7357 case $lt_cv_prog_gnu_ld in
7358 yes*)
7359 case $host in
7360 i?86-*-solaris*)
7361 LD="${LD-ld} -m elf_x86_64"
7363 sparc*-*-solaris*)
7364 LD="${LD-ld} -m elf64_sparc"
7366 esac
7367 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7368 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7369 LD="${LD-ld}_sol2"
7373 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7374 LD="${LD-ld} -64"
7377 esac
7379 esac
7381 rm -rf conftest*
7383 esac
7385 need_locks="$enable_libtool_lock"
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}mt; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 if test -n "$MANIFEST_TOOL"; then
7396 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7409 done
7410 done
7411 IFS=$as_save_IFS
7415 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7416 if test -n "$MANIFEST_TOOL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7418 $as_echo "$MANIFEST_TOOL" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7426 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7427 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7428 # Extract the first word of "mt", so it can be a program name with args.
7429 set dummy mt; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$ac_ct_MANIFEST_TOOL"; then
7436 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7449 done
7450 done
7451 IFS=$as_save_IFS
7455 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7456 if test -n "$ac_ct_MANIFEST_TOOL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7458 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7464 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7465 MANIFEST_TOOL=":"
7466 else
7467 case $cross_compiling:$ac_tool_warned in
7468 yes:)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7472 esac
7473 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7475 else
7476 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7479 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7481 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7482 if ${lt_cv_path_mainfest_tool+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 lt_cv_path_mainfest_tool=no
7486 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7487 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7488 cat conftest.err >&5
7489 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7490 lt_cv_path_mainfest_tool=yes
7492 rm -f conftest*
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7495 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7496 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7497 MANIFEST_TOOL=:
7505 case $host_os in
7506 rhapsody* | darwin*)
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$DSYMUTIL"; then
7516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7529 done
7530 done
7531 IFS=$as_save_IFS
7535 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7536 if test -n "$DSYMUTIL"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7538 $as_echo "$DSYMUTIL" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7546 if test -z "$ac_cv_prog_DSYMUTIL"; then
7547 ac_ct_DSYMUTIL=$DSYMUTIL
7548 # Extract the first word of "dsymutil", so it can be a program name with args.
7549 set dummy dsymutil; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 if test -n "$ac_ct_DSYMUTIL"; then
7556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7569 done
7570 done
7571 IFS=$as_save_IFS
7575 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7576 if test -n "$ac_ct_DSYMUTIL"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7578 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 if test "x$ac_ct_DSYMUTIL" = x; then
7585 DSYMUTIL=":"
7586 else
7587 case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593 DSYMUTIL=$ac_ct_DSYMUTIL
7595 else
7596 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7599 if test -n "$ac_tool_prefix"; then
7600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_NMEDIT+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$NMEDIT"; then
7608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7627 NMEDIT=$ac_cv_prog_NMEDIT
7628 if test -n "$NMEDIT"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7630 $as_echo "$NMEDIT" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7638 if test -z "$ac_cv_prog_NMEDIT"; then
7639 ac_ct_NMEDIT=$NMEDIT
7640 # Extract the first word of "nmedit", so it can be a program name with args.
7641 set dummy nmedit; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -n "$ac_ct_NMEDIT"; then
7648 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7661 done
7662 done
7663 IFS=$as_save_IFS
7667 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7668 if test -n "$ac_ct_NMEDIT"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7670 $as_echo "$ac_ct_NMEDIT" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7676 if test "x$ac_ct_NMEDIT" = x; then
7677 NMEDIT=":"
7678 else
7679 case $cross_compiling:$ac_tool_warned in
7680 yes:)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685 NMEDIT=$ac_ct_NMEDIT
7687 else
7688 NMEDIT="$ac_cv_prog_NMEDIT"
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_LIPO+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$LIPO"; then
7700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7719 LIPO=$ac_cv_prog_LIPO
7720 if test -n "$LIPO"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7722 $as_echo "$LIPO" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_LIPO"; then
7731 ac_ct_LIPO=$LIPO
7732 # Extract the first word of "lipo", so it can be a program name with args.
7733 set dummy lipo; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$ac_ct_LIPO"; then
7740 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_LIPO="lipo"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7753 done
7754 done
7755 IFS=$as_save_IFS
7759 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7760 if test -n "$ac_ct_LIPO"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7762 $as_echo "$ac_ct_LIPO" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_LIPO" = x; then
7769 LIPO=":"
7770 else
7771 case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 LIPO=$ac_ct_LIPO
7779 else
7780 LIPO="$ac_cv_prog_LIPO"
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}otool; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_OTOOL+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$OTOOL"; then
7792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7805 done
7806 done
7807 IFS=$as_save_IFS
7811 OTOOL=$ac_cv_prog_OTOOL
7812 if test -n "$OTOOL"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7814 $as_echo "$OTOOL" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$ac_cv_prog_OTOOL"; then
7823 ac_ct_OTOOL=$OTOOL
7824 # Extract the first word of "otool", so it can be a program name with args.
7825 set dummy otool; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 if test -n "$ac_ct_OTOOL"; then
7832 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_ac_ct_OTOOL="otool"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7845 done
7846 done
7847 IFS=$as_save_IFS
7851 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7852 if test -n "$ac_ct_OTOOL"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7854 $as_echo "$ac_ct_OTOOL" >&6; }
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7860 if test "x$ac_ct_OTOOL" = x; then
7861 OTOOL=":"
7862 else
7863 case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869 OTOOL=$ac_ct_OTOOL
7871 else
7872 OTOOL="$ac_cv_prog_OTOOL"
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_OTOOL64+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$OTOOL64"; then
7884 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7903 OTOOL64=$ac_cv_prog_OTOOL64
7904 if test -n "$OTOOL64"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7906 $as_echo "$OTOOL64" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7914 if test -z "$ac_cv_prog_OTOOL64"; then
7915 ac_ct_OTOOL64=$OTOOL64
7916 # Extract the first word of "otool64", so it can be a program name with args.
7917 set dummy otool64; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 if test -n "$ac_ct_OTOOL64"; then
7924 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_OTOOL64="otool64"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7937 done
7938 done
7939 IFS=$as_save_IFS
7943 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7944 if test -n "$ac_ct_OTOOL64"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7946 $as_echo "$ac_ct_OTOOL64" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7952 if test "x$ac_ct_OTOOL64" = x; then
7953 OTOOL64=":"
7954 else
7955 case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961 OTOOL64=$ac_ct_OTOOL64
7963 else
7964 OTOOL64="$ac_cv_prog_OTOOL64"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7994 $as_echo_n "checking for -single_module linker flag... " >&6; }
7995 if ${lt_cv_apple_cc_single_mod+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 lt_cv_apple_cc_single_mod=no
7999 if test -z "${LT_MULTI_MODULE}"; then
8000 # By default we will add the -single_module flag. You can override
8001 # by either setting the environment variable LT_MULTI_MODULE
8002 # non-empty at configure time, or by adding -multi_module to the
8003 # link flags.
8004 rm -rf libconftest.dylib*
8005 echo "int foo(void){return 1;}" > conftest.c
8006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8007 -dynamiclib -Wl,-single_module conftest.c" >&5
8008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8010 _lt_result=$?
8011 # If there is a non-empty error log, and "single_module"
8012 # appears in it, assume the flag caused a linker warning
8013 if test -s conftest.err && $GREP single_module conftest.err; then
8014 cat conftest.err >&5
8015 # Otherwise, if the output was created with a 0 exit code from
8016 # the compiler, it worked.
8017 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8018 lt_cv_apple_cc_single_mod=yes
8019 else
8020 cat conftest.err >&5
8022 rm -rf libconftest.dylib*
8023 rm -f conftest.*
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8027 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8030 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8031 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 lt_cv_ld_exported_symbols_list=no
8035 save_LDFLAGS=$LDFLAGS
8036 echo "_main" > conftest.sym
8037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8042 main ()
8046 return 0;
8048 _ACEOF
8049 if ac_fn_c_try_link "$LINENO"; then :
8050 lt_cv_ld_exported_symbols_list=yes
8051 else
8052 lt_cv_ld_exported_symbols_list=no
8054 rm -f core conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056 LDFLAGS="$save_LDFLAGS"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8060 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8063 $as_echo_n "checking for -force_load linker flag... " >&6; }
8064 if ${lt_cv_ld_force_load+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_ld_force_load=no
8068 cat > conftest.c << _LT_EOF
8069 int forced_loaded() { return 2;}
8070 _LT_EOF
8071 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8072 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8073 echo "$AR cru libconftest.a conftest.o" >&5
8074 $AR cru libconftest.a conftest.o 2>&5
8075 echo "$RANLIB libconftest.a" >&5
8076 $RANLIB libconftest.a 2>&5
8077 cat > conftest.c << _LT_EOF
8078 int main() { return 0;}
8079 _LT_EOF
8080 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8081 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8082 _lt_result=$?
8083 if test -s conftest.err && $GREP force_load conftest.err; then
8084 cat conftest.err >&5
8085 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8086 lt_cv_ld_force_load=yes
8087 else
8088 cat conftest.err >&5
8090 rm -f conftest.err libconftest.a conftest conftest.c
8091 rm -rf conftest.dSYM
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8095 $as_echo "$lt_cv_ld_force_load" >&6; }
8096 case $host_os in
8097 rhapsody* | darwin1.[012])
8098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8099 darwin1.*)
8100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8101 darwin*) # darwin 5.x on
8102 # if running on 10.5 or later, the deployment target defaults
8103 # to the OS version, if on x86, and 10.4, the deployment
8104 # target defaults to 10.4. Don't you love it?
8105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8106 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8108 10.[012]*)
8109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8110 10.*)
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8112 esac
8114 esac
8115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8116 _lt_dar_single_mod='$single_module'
8118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8120 else
8121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8124 _lt_dsymutil='~$DSYMUTIL $lib || :'
8125 else
8126 _lt_dsymutil=
8129 esac
8131 ac_ext=c
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8138 # On Suns, sometimes $CPP names a directory.
8139 if test -n "$CPP" && test -d "$CPP"; then
8140 CPP=
8142 if test -z "$CPP"; then
8143 if ${ac_cv_prog_CPP+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 # Double quotes because CPP needs to be expanded
8147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8149 ac_preproc_ok=false
8150 for ac_c_preproc_warn_flag in '' yes
8152 # Use a header file that comes with gcc, so configuring glibc
8153 # with a fresh cross-compiler works.
8154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155 # <limits.h> exists even on freestanding compilers.
8156 # On the NeXT, cc -E runs the code through the compiler's parser,
8157 # not just through cpp. "Syntax error" is here to catch this case.
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 #ifdef __STDC__
8161 # include <limits.h>
8162 #else
8163 # include <assert.h>
8164 #endif
8165 Syntax error
8166 _ACEOF
8167 if ac_fn_c_try_cpp "$LINENO"; then :
8169 else
8170 # Broken: fails on valid input.
8171 continue
8173 rm -f conftest.err conftest.i conftest.$ac_ext
8175 # OK, works on sane cases. Now check whether nonexistent headers
8176 # can be detected and how.
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <ac_nonexistent.h>
8180 _ACEOF
8181 if ac_fn_c_try_cpp "$LINENO"; then :
8182 # Broken: success on invalid input.
8183 continue
8184 else
8185 # Passes both tests.
8186 ac_preproc_ok=:
8187 break
8189 rm -f conftest.err conftest.i conftest.$ac_ext
8191 done
8192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8193 rm -f conftest.i conftest.err conftest.$ac_ext
8194 if $ac_preproc_ok; then :
8195 break
8198 done
8199 ac_cv_prog_CPP=$CPP
8202 CPP=$ac_cv_prog_CPP
8203 else
8204 ac_cv_prog_CPP=$CPP
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8207 $as_echo "$CPP" >&6; }
8208 ac_preproc_ok=false
8209 for ac_c_preproc_warn_flag in '' yes
8211 # Use a header file that comes with gcc, so configuring glibc
8212 # with a fresh cross-compiler works.
8213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8214 # <limits.h> exists even on freestanding compilers.
8215 # On the NeXT, cc -E runs the code through the compiler's parser,
8216 # not just through cpp. "Syntax error" is here to catch this case.
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #ifdef __STDC__
8220 # include <limits.h>
8221 #else
8222 # include <assert.h>
8223 #endif
8224 Syntax error
8225 _ACEOF
8226 if ac_fn_c_try_cpp "$LINENO"; then :
8228 else
8229 # Broken: fails on valid input.
8230 continue
8232 rm -f conftest.err conftest.i conftest.$ac_ext
8234 # OK, works on sane cases. Now check whether nonexistent headers
8235 # can be detected and how.
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <ac_nonexistent.h>
8239 _ACEOF
8240 if ac_fn_c_try_cpp "$LINENO"; then :
8241 # Broken: success on invalid input.
8242 continue
8243 else
8244 # Passes both tests.
8245 ac_preproc_ok=:
8246 break
8248 rm -f conftest.err conftest.i conftest.$ac_ext
8250 done
8251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8252 rm -f conftest.i conftest.err conftest.$ac_ext
8253 if $ac_preproc_ok; then :
8255 else
8256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8259 See \`config.log' for more details" "$LINENO" 5; }
8262 ac_ext=c
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8270 $as_echo_n "checking for ANSI C header files... " >&6; }
8271 if ${ac_cv_header_stdc+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 #include <stdlib.h>
8277 #include <stdarg.h>
8278 #include <string.h>
8279 #include <float.h>
8282 main ()
8286 return 0;
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 ac_cv_header_stdc=yes
8291 else
8292 ac_cv_header_stdc=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 if test $ac_cv_header_stdc = yes; then
8297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #include <string.h>
8302 _ACEOF
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304 $EGREP "memchr" >/dev/null 2>&1; then :
8306 else
8307 ac_cv_header_stdc=no
8309 rm -f conftest*
8313 if test $ac_cv_header_stdc = yes; then
8314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #include <stdlib.h>
8319 _ACEOF
8320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8321 $EGREP "free" >/dev/null 2>&1; then :
8323 else
8324 ac_cv_header_stdc=no
8326 rm -f conftest*
8330 if test $ac_cv_header_stdc = yes; then
8331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8332 if test "$cross_compiling" = yes; then :
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #include <ctype.h>
8338 #include <stdlib.h>
8339 #if ((' ' & 0x0FF) == 0x020)
8340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8342 #else
8343 # define ISLOWER(c) \
8344 (('a' <= (c) && (c) <= 'i') \
8345 || ('j' <= (c) && (c) <= 'r') \
8346 || ('s' <= (c) && (c) <= 'z'))
8347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8348 #endif
8350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8352 main ()
8354 int i;
8355 for (i = 0; i < 256; i++)
8356 if (XOR (islower (i), ISLOWER (i))
8357 || toupper (i) != TOUPPER (i))
8358 return 2;
8359 return 0;
8361 _ACEOF
8362 if ac_fn_c_try_run "$LINENO"; then :
8364 else
8365 ac_cv_header_stdc=no
8367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8368 conftest.$ac_objext conftest.beam conftest.$ac_ext
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8374 $as_echo "$ac_cv_header_stdc" >&6; }
8375 if test $ac_cv_header_stdc = yes; then
8377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8383 inttypes.h stdint.h unistd.h
8384 do :
8385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8389 cat >>confdefs.h <<_ACEOF
8390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8391 _ACEOF
8395 done
8398 for ac_header in dlfcn.h
8399 do :
8400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8402 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8403 cat >>confdefs.h <<_ACEOF
8404 #define HAVE_DLFCN_H 1
8405 _ACEOF
8409 done
8415 # Set options
8419 enable_dlopen=no
8422 enable_win32_dll=no
8425 # Check whether --enable-shared was given.
8426 if test "${enable_shared+set}" = set; then :
8427 enableval=$enable_shared; p=${PACKAGE-default}
8428 case $enableval in
8429 yes) enable_shared=yes ;;
8430 no) enable_shared=no ;;
8432 enable_shared=no
8433 # Look at the argument we got. We use all the common list separators.
8434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8435 for pkg in $enableval; do
8436 IFS="$lt_save_ifs"
8437 if test "X$pkg" = "X$p"; then
8438 enable_shared=yes
8440 done
8441 IFS="$lt_save_ifs"
8443 esac
8444 else
8445 enable_shared=yes
8456 # Check whether --enable-static was given.
8457 if test "${enable_static+set}" = set; then :
8458 enableval=$enable_static; p=${PACKAGE-default}
8459 case $enableval in
8460 yes) enable_static=yes ;;
8461 no) enable_static=no ;;
8463 enable_static=no
8464 # Look at the argument we got. We use all the common list separators.
8465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8466 for pkg in $enableval; do
8467 IFS="$lt_save_ifs"
8468 if test "X$pkg" = "X$p"; then
8469 enable_static=yes
8471 done
8472 IFS="$lt_save_ifs"
8474 esac
8475 else
8476 enable_static=yes
8488 # Check whether --with-pic was given.
8489 if test "${with_pic+set}" = set; then :
8490 withval=$with_pic; lt_p=${PACKAGE-default}
8491 case $withval in
8492 yes|no) pic_mode=$withval ;;
8494 pic_mode=default
8495 # Look at the argument we got. We use all the common list separators.
8496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497 for lt_pkg in $withval; do
8498 IFS="$lt_save_ifs"
8499 if test "X$lt_pkg" = "X$lt_p"; then
8500 pic_mode=yes
8502 done
8503 IFS="$lt_save_ifs"
8505 esac
8506 else
8507 pic_mode=default
8511 test -z "$pic_mode" && pic_mode=default
8519 # Check whether --enable-fast-install was given.
8520 if test "${enable_fast_install+set}" = set; then :
8521 enableval=$enable_fast_install; p=${PACKAGE-default}
8522 case $enableval in
8523 yes) enable_fast_install=yes ;;
8524 no) enable_fast_install=no ;;
8526 enable_fast_install=no
8527 # Look at the argument we got. We use all the common list separators.
8528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8529 for pkg in $enableval; do
8530 IFS="$lt_save_ifs"
8531 if test "X$pkg" = "X$p"; then
8532 enable_fast_install=yes
8534 done
8535 IFS="$lt_save_ifs"
8537 esac
8538 else
8539 enable_fast_install=yes
8552 # This can be used to rebuild libtool when needed
8553 LIBTOOL_DEPS="$ltmain"
8555 # Always use our own libtool.
8556 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8587 test -z "$LN_S" && LN_S="ln -s"
8602 if test -n "${ZSH_VERSION+set}" ; then
8603 setopt NO_GLOB_SUBST
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8607 $as_echo_n "checking for objdir... " >&6; }
8608 if ${lt_cv_objdir+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 rm -f .libs 2>/dev/null
8612 mkdir .libs 2>/dev/null
8613 if test -d .libs; then
8614 lt_cv_objdir=.libs
8615 else
8616 # MS-DOS does not allow filenames that begin with a dot.
8617 lt_cv_objdir=_libs
8619 rmdir .libs 2>/dev/null
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8622 $as_echo "$lt_cv_objdir" >&6; }
8623 objdir=$lt_cv_objdir
8629 cat >>confdefs.h <<_ACEOF
8630 #define LT_OBJDIR "$lt_cv_objdir/"
8631 _ACEOF
8636 case $host_os in
8637 aix3*)
8638 # AIX sometimes has problems with the GCC collect2 program. For some
8639 # reason, if we set the COLLECT_NAMES environment variable, the problems
8640 # vanish in a puff of smoke.
8641 if test "X${COLLECT_NAMES+set}" != Xset; then
8642 COLLECT_NAMES=
8643 export COLLECT_NAMES
8646 esac
8648 # Global variables:
8649 ofile=libtool
8650 can_build_shared=yes
8652 # All known linkers require a `.a' archive for static linking (except MSVC,
8653 # which needs '.lib').
8654 libext=a
8656 with_gnu_ld="$lt_cv_prog_gnu_ld"
8658 old_CC="$CC"
8659 old_CFLAGS="$CFLAGS"
8661 # Set sane defaults for various variables
8662 test -z "$CC" && CC=cc
8663 test -z "$LTCC" && LTCC=$CC
8664 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8665 test -z "$LD" && LD=ld
8666 test -z "$ac_objext" && ac_objext=o
8668 for cc_temp in $compiler""; do
8669 case $cc_temp in
8670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8672 \-*) ;;
8673 *) break;;
8674 esac
8675 done
8676 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8679 # Only perform the check for file, if the check method requires it
8680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8681 case $deplibs_check_method in
8682 file_magic*)
8683 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8685 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8686 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 case $MAGIC_CMD in
8690 [\\/*] | ?:[\\/]*)
8691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8694 lt_save_MAGIC_CMD="$MAGIC_CMD"
8695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8697 for ac_dir in $ac_dummy; do
8698 IFS="$lt_save_ifs"
8699 test -z "$ac_dir" && ac_dir=.
8700 if test -f $ac_dir/${ac_tool_prefix}file; then
8701 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8702 if test -n "$file_magic_test_file"; then
8703 case $deplibs_check_method in
8704 "file_magic "*)
8705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8708 $EGREP "$file_magic_regex" > /dev/null; then
8710 else
8711 cat <<_LT_EOF 1>&2
8713 *** Warning: the command libtool uses to detect shared libraries,
8714 *** $file_magic_cmd, produces output that libtool cannot recognize.
8715 *** The result is that libtool may fail to recognize shared libraries
8716 *** as such. This will affect the creation of libtool libraries that
8717 *** depend on shared libraries, but programs linked with such libtool
8718 *** libraries will work regardless of this problem. Nevertheless, you
8719 *** may want to report the problem to your system manager and/or to
8720 *** bug-libtool@gnu.org
8722 _LT_EOF
8723 fi ;;
8724 esac
8726 break
8728 done
8729 IFS="$lt_save_ifs"
8730 MAGIC_CMD="$lt_save_MAGIC_CMD"
8732 esac
8735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8736 if test -n "$MAGIC_CMD"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8738 $as_echo "$MAGIC_CMD" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8748 if test -z "$lt_cv_path_MAGIC_CMD"; then
8749 if test -n "$ac_tool_prefix"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8751 $as_echo_n "checking for file... " >&6; }
8752 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 case $MAGIC_CMD in
8756 [\\/*] | ?:[\\/]*)
8757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8760 lt_save_MAGIC_CMD="$MAGIC_CMD"
8761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8763 for ac_dir in $ac_dummy; do
8764 IFS="$lt_save_ifs"
8765 test -z "$ac_dir" && ac_dir=.
8766 if test -f $ac_dir/file; then
8767 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8768 if test -n "$file_magic_test_file"; then
8769 case $deplibs_check_method in
8770 "file_magic "*)
8771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8774 $EGREP "$file_magic_regex" > /dev/null; then
8776 else
8777 cat <<_LT_EOF 1>&2
8779 *** Warning: the command libtool uses to detect shared libraries,
8780 *** $file_magic_cmd, produces output that libtool cannot recognize.
8781 *** The result is that libtool may fail to recognize shared libraries
8782 *** as such. This will affect the creation of libtool libraries that
8783 *** depend on shared libraries, but programs linked with such libtool
8784 *** libraries will work regardless of this problem. Nevertheless, you
8785 *** may want to report the problem to your system manager and/or to
8786 *** bug-libtool@gnu.org
8788 _LT_EOF
8789 fi ;;
8790 esac
8792 break
8794 done
8795 IFS="$lt_save_ifs"
8796 MAGIC_CMD="$lt_save_MAGIC_CMD"
8798 esac
8801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8802 if test -n "$MAGIC_CMD"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8804 $as_echo "$MAGIC_CMD" >&6; }
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8811 else
8812 MAGIC_CMD=:
8818 esac
8820 # Use C for the default configuration in the libtool script
8822 lt_save_CC="$CC"
8823 ac_ext=c
8824 ac_cpp='$CPP $CPPFLAGS'
8825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8830 # Source file extension for C test sources.
8831 ac_ext=c
8833 # Object file extension for compiled C test sources.
8834 objext=o
8835 objext=$objext
8837 # Code to be used in simple compile tests
8838 lt_simple_compile_test_code="int some_variable = 0;"
8840 # Code to be used in simple link tests
8841 lt_simple_link_test_code='int main(){return(0);}'
8849 # If no C compiler was specified, use CC.
8850 LTCC=${LTCC-"$CC"}
8852 # If no C compiler flags were specified, use CFLAGS.
8853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8855 # Allow CC to be a program name with arguments.
8856 compiler=$CC
8858 # Save the default compiler, since it gets overwritten when the other
8859 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8860 compiler_DEFAULT=$CC
8862 # save warnings/boilerplate of simple test code
8863 ac_outfile=conftest.$ac_objext
8864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8866 _lt_compiler_boilerplate=`cat conftest.err`
8867 $RM conftest*
8869 ac_outfile=conftest.$ac_objext
8870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8872 _lt_linker_boilerplate=`cat conftest.err`
8873 $RM -r conftest*
8876 ## CAVEAT EMPTOR:
8877 ## There is no encapsulation within the following macros, do not change
8878 ## the running order or otherwise move them around unless you know exactly
8879 ## what you are doing...
8880 if test -n "$compiler"; then
8882 lt_prog_compiler_no_builtin_flag=
8884 if test "$GCC" = yes; then
8885 case $cc_basename in
8886 nvcc*)
8887 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8889 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8890 esac
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8893 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8894 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_rtti_exceptions=no
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900 lt_compiler_flag="-fno-rtti -fno-exceptions"
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 # The option is referenced via a variable to avoid confusing sed.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911 (eval "$lt_compile" 2>conftest.err)
8912 ac_status=$?
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 if (exit $ac_status) && test -s "$ac_outfile"; then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings other than the usual output.
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_rtti_exceptions=yes
8924 $RM conftest*
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8928 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8932 else
8943 lt_prog_compiler_wl=
8944 lt_prog_compiler_pic=
8945 lt_prog_compiler_static=
8948 if test "$GCC" = yes; then
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_static='-static'
8952 case $host_os in
8953 aix*)
8954 # All AIX code is PIC.
8955 if test "$host_cpu" = ia64; then
8956 # AIX 5 now supports IA64 processor
8957 lt_prog_compiler_static='-Bstatic'
8961 amigaos*)
8962 case $host_cpu in
8963 powerpc)
8964 # see comment about AmigaOS4 .so support
8965 lt_prog_compiler_pic='-fPIC'
8967 m68k)
8968 # FIXME: we need at least 68020 code to build shared libraries, but
8969 # adding the `-m68020' flag to GCC prevents building anything better,
8970 # like `-m68040'.
8971 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8973 esac
8976 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8977 # PIC is the default for these OSes.
8980 mingw* | cygwin* | pw32* | os2* | cegcc*)
8981 # This hack is so that the source file can tell whether it is being
8982 # built for inclusion in a dll (and should export symbols for example).
8983 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8984 # (--disable-auto-import) libraries
8985 lt_prog_compiler_pic='-DDLL_EXPORT'
8988 darwin* | rhapsody*)
8989 # PIC is the default on this platform
8990 # Common symbols not allowed in MH_DYLIB files
8991 lt_prog_compiler_pic='-fno-common'
8994 haiku*)
8995 # PIC is the default for Haiku.
8996 # The "-static" flag exists, but is broken.
8997 lt_prog_compiler_static=
9000 hpux*)
9001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9003 # sets the default TLS model and affects inlining.
9004 case $host_cpu in
9005 hppa*64*)
9006 # +Z the default
9009 lt_prog_compiler_pic='-fPIC'
9011 esac
9014 interix[3-9]*)
9015 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9016 # Instead, we relocate shared libraries at runtime.
9019 msdosdjgpp*)
9020 # Just because we use GCC doesn't mean we suddenly get shared libraries
9021 # on systems that don't support them.
9022 lt_prog_compiler_can_build_shared=no
9023 enable_shared=no
9026 *nto* | *qnx*)
9027 # QNX uses GNU C++, but need to define -shared option too, otherwise
9028 # it will coredump.
9029 lt_prog_compiler_pic='-fPIC -shared'
9032 sysv4*MP*)
9033 if test -d /usr/nec; then
9034 lt_prog_compiler_pic=-Kconform_pic
9039 lt_prog_compiler_pic='-fPIC'
9041 esac
9043 case $cc_basename in
9044 nvcc*) # Cuda Compiler Driver 2.2
9045 lt_prog_compiler_wl='-Xlinker '
9046 if test -n "$lt_prog_compiler_pic"; then
9047 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9050 esac
9051 else
9052 # PORTME Check for flag to pass linker flags through the system compiler.
9053 case $host_os in
9054 aix*)
9055 lt_prog_compiler_wl='-Wl,'
9056 if test "$host_cpu" = ia64; then
9057 # AIX 5 now supports IA64 processor
9058 lt_prog_compiler_static='-Bstatic'
9059 else
9060 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9064 mingw* | cygwin* | pw32* | os2* | cegcc*)
9065 # This hack is so that the source file can tell whether it is being
9066 # built for inclusion in a dll (and should export symbols for example).
9067 lt_prog_compiler_pic='-DDLL_EXPORT'
9070 hpux9* | hpux10* | hpux11*)
9071 lt_prog_compiler_wl='-Wl,'
9072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9073 # not for PA HP-UX.
9074 case $host_cpu in
9075 hppa*64*|ia64*)
9076 # +Z the default
9079 lt_prog_compiler_pic='+Z'
9081 esac
9082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9083 lt_prog_compiler_static='${wl}-a ${wl}archive'
9086 irix5* | irix6* | nonstopux*)
9087 lt_prog_compiler_wl='-Wl,'
9088 # PIC (with -KPIC) is the default.
9089 lt_prog_compiler_static='-non_shared'
9092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9093 case $cc_basename in
9094 # old Intel for x86_64 which still supported -KPIC.
9095 ecc*)
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-static'
9100 # icc used to be incompatible with GCC.
9101 # ICC 10 doesn't accept -KPIC any more.
9102 icc* | ifort*)
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_pic='-fPIC'
9105 lt_prog_compiler_static='-static'
9107 # Lahey Fortran 8.1.
9108 lf95*)
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='--shared'
9111 lt_prog_compiler_static='--static'
9113 nagfor*)
9114 # NAG Fortran compiler
9115 lt_prog_compiler_wl='-Wl,-Wl,,'
9116 lt_prog_compiler_pic='-PIC'
9117 lt_prog_compiler_static='-Bstatic'
9119 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9120 # Portland Group compilers (*not* the Pentium gcc compiler,
9121 # which looks to be a dead project)
9122 lt_prog_compiler_wl='-Wl,'
9123 lt_prog_compiler_pic='-fpic'
9124 lt_prog_compiler_static='-Bstatic'
9126 ccc*)
9127 lt_prog_compiler_wl='-Wl,'
9128 # All Alpha code is PIC.
9129 lt_prog_compiler_static='-non_shared'
9131 xl* | bgxl* | bgf* | mpixl*)
9132 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-qpic'
9135 lt_prog_compiler_static='-qstaticlink'
9138 case `$CC -V 2>&1 | sed 5q` in
9139 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9140 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 lt_prog_compiler_wl=''
9145 *Sun\ F* | *Sun*Fortran*)
9146 lt_prog_compiler_pic='-KPIC'
9147 lt_prog_compiler_static='-Bstatic'
9148 lt_prog_compiler_wl='-Qoption ld '
9150 *Sun\ C*)
9151 # Sun C 5.9
9152 lt_prog_compiler_pic='-KPIC'
9153 lt_prog_compiler_static='-Bstatic'
9154 lt_prog_compiler_wl='-Wl,'
9156 *Intel*\ [CF]*Compiler*)
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-fPIC'
9159 lt_prog_compiler_static='-static'
9161 *Portland\ Group*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='-fpic'
9164 lt_prog_compiler_static='-Bstatic'
9166 esac
9168 esac
9171 newsos6)
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9176 *nto* | *qnx*)
9177 # QNX uses GNU C++, but need to define -shared option too, otherwise
9178 # it will coredump.
9179 lt_prog_compiler_pic='-fPIC -shared'
9182 osf3* | osf4* | osf5*)
9183 lt_prog_compiler_wl='-Wl,'
9184 # All OSF/1 code is PIC.
9185 lt_prog_compiler_static='-non_shared'
9188 rdos*)
9189 lt_prog_compiler_static='-non_shared'
9192 solaris*)
9193 lt_prog_compiler_pic='-KPIC'
9194 lt_prog_compiler_static='-Bstatic'
9195 case $cc_basename in
9196 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9197 lt_prog_compiler_wl='-Qoption ld ';;
9199 lt_prog_compiler_wl='-Wl,';;
9200 esac
9203 sunos4*)
9204 lt_prog_compiler_wl='-Qoption ld '
9205 lt_prog_compiler_pic='-PIC'
9206 lt_prog_compiler_static='-Bstatic'
9209 sysv4 | sysv4.2uw2* | sysv4.3*)
9210 lt_prog_compiler_wl='-Wl,'
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9215 sysv4*MP*)
9216 if test -d /usr/nec ;then
9217 lt_prog_compiler_pic='-Kconform_pic'
9218 lt_prog_compiler_static='-Bstatic'
9222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_pic='-KPIC'
9225 lt_prog_compiler_static='-Bstatic'
9228 unicos*)
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_can_build_shared=no
9233 uts4*)
9234 lt_prog_compiler_pic='-pic'
9235 lt_prog_compiler_static='-Bstatic'
9239 lt_prog_compiler_can_build_shared=no
9241 esac
9244 case $host_os in
9245 # For platforms which do not support PIC, -DPIC is meaningless:
9246 *djgpp*)
9247 lt_prog_compiler_pic=
9250 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9252 esac
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9255 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9256 if ${lt_cv_prog_compiler_pic+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9262 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9263 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9266 # Check to make sure the PIC flag actually works.
9268 if test -n "$lt_prog_compiler_pic"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9270 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9271 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 lt_cv_prog_compiler_pic_works=no
9275 ac_outfile=conftest.$ac_objext
9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9277 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9278 # Insert the option either (1) after the last *FLAGS variable, or
9279 # (2) before a word containing "conftest.", or (3) at the end.
9280 # Note that $ac_compile itself does not contain backslashes and begins
9281 # with a dollar sign (not a hyphen), so the echo should work correctly.
9282 # The option is referenced via a variable to avoid confusing sed.
9283 lt_compile=`echo "$ac_compile" | $SED \
9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9286 -e 's:$: $lt_compiler_flag:'`
9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9288 (eval "$lt_compile" 2>conftest.err)
9289 ac_status=$?
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 if (exit $ac_status) && test -s "$ac_outfile"; then
9293 # The compiler can only warn and ignore the option if not recognized
9294 # So say no if there are warnings other than the usual output.
9295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9298 lt_cv_prog_compiler_pic_works=yes
9301 $RM conftest*
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9305 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9307 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9308 case $lt_prog_compiler_pic in
9309 "" | " "*) ;;
9310 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9311 esac
9312 else
9313 lt_prog_compiler_pic=
9314 lt_prog_compiler_can_build_shared=no
9330 # Check to make sure the static flag actually works.
9332 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9334 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9335 if ${lt_cv_prog_compiler_static_works+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 lt_cv_prog_compiler_static_works=no
9339 save_LDFLAGS="$LDFLAGS"
9340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9343 # The linker can only warn and ignore the option if not recognized
9344 # So say no if there are warnings
9345 if test -s conftest.err; then
9346 # Append any errors to the config.log.
9347 cat conftest.err 1>&5
9348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9350 if diff conftest.exp conftest.er2 >/dev/null; then
9351 lt_cv_prog_compiler_static_works=yes
9353 else
9354 lt_cv_prog_compiler_static_works=yes
9357 $RM -r conftest*
9358 LDFLAGS="$save_LDFLAGS"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9362 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9364 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9366 else
9367 lt_prog_compiler_static=
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378 if ${lt_cv_prog_compiler_c_o+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 lt_cv_prog_compiler_c_o=no
9382 $RM -r conftest 2>/dev/null
9383 mkdir conftest
9384 cd conftest
9385 mkdir out
9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388 lt_compiler_flag="-o out/conftest2.$ac_objext"
9389 # Insert the option either (1) after the last *FLAGS variable, or
9390 # (2) before a word containing "conftest.", or (3) at the end.
9391 # Note that $ac_compile itself does not contain backslashes and begins
9392 # with a dollar sign (not a hyphen), so the echo should work correctly.
9393 lt_compile=`echo "$ac_compile" | $SED \
9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396 -e 's:$: $lt_compiler_flag:'`
9397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9398 (eval "$lt_compile" 2>out/conftest.err)
9399 ac_status=$?
9400 cat out/conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9403 then
9404 # The compiler can only warn and ignore the option if not recognized
9405 # So say no if there are warnings
9406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9409 lt_cv_prog_compiler_c_o=yes
9412 chmod u+w . 2>&5
9413 $RM conftest*
9414 # SGI C++ compiler will create directory out/ii_files/ for
9415 # template instantiation
9416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9417 $RM out/* && rmdir out
9418 cd ..
9419 $RM -r conftest
9420 $RM conftest*
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9432 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9433 if ${lt_cv_prog_compiler_c_o+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler_c_o=no
9437 $RM -r conftest 2>/dev/null
9438 mkdir conftest
9439 cd conftest
9440 mkdir out
9441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 lt_compiler_flag="-o out/conftest2.$ac_objext"
9444 # Insert the option either (1) after the last *FLAGS variable, or
9445 # (2) before a word containing "conftest.", or (3) at the end.
9446 # Note that $ac_compile itself does not contain backslashes and begins
9447 # with a dollar sign (not a hyphen), so the echo should work correctly.
9448 lt_compile=`echo "$ac_compile" | $SED \
9449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9451 -e 's:$: $lt_compiler_flag:'`
9452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9453 (eval "$lt_compile" 2>out/conftest.err)
9454 ac_status=$?
9455 cat out/conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9458 then
9459 # The compiler can only warn and ignore the option if not recognized
9460 # So say no if there are warnings
9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9464 lt_cv_prog_compiler_c_o=yes
9467 chmod u+w . 2>&5
9468 $RM conftest*
9469 # SGI C++ compiler will create directory out/ii_files/ for
9470 # template instantiation
9471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9472 $RM out/* && rmdir out
9473 cd ..
9474 $RM -r conftest
9475 $RM conftest*
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9479 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9484 hard_links="nottested"
9485 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9486 # do not overwrite the value of need_locks provided by the user
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9488 $as_echo_n "checking if we can lock with hard links... " >&6; }
9489 hard_links=yes
9490 $RM conftest*
9491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9492 touch conftest.a
9493 ln conftest.a conftest.b 2>&5 || hard_links=no
9494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9496 $as_echo "$hard_links" >&6; }
9497 if test "$hard_links" = no; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9499 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9500 need_locks=warn
9502 else
9503 need_locks=no
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9514 runpath_var=
9515 allow_undefined_flag=
9516 always_export_symbols=no
9517 archive_cmds=
9518 archive_expsym_cmds=
9519 compiler_needs_object=no
9520 enable_shared_with_static_runtimes=no
9521 export_dynamic_flag_spec=
9522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9523 hardcode_automatic=no
9524 hardcode_direct=no
9525 hardcode_direct_absolute=no
9526 hardcode_libdir_flag_spec=
9527 hardcode_libdir_separator=
9528 hardcode_minus_L=no
9529 hardcode_shlibpath_var=unsupported
9530 inherit_rpath=no
9531 link_all_deplibs=unknown
9532 module_cmds=
9533 module_expsym_cmds=
9534 old_archive_from_new_cmds=
9535 old_archive_from_expsyms_cmds=
9536 thread_safe_flag_spec=
9537 whole_archive_flag_spec=
9538 # include_expsyms should be a list of space-separated symbols to be *always*
9539 # included in the symbol list
9540 include_expsyms=
9541 # exclude_expsyms can be an extended regexp of symbols to exclude
9542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9544 # as well as any symbol that contains `d'.
9545 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9547 # platforms (ab)use it in PIC code, but their linkers get confused if
9548 # the symbol is explicitly referenced. Since portable code cannot
9549 # rely on this symbol name, it's probably fine to never include it in
9550 # preloaded symbol tables.
9551 # Exclude shared library initialization/finalization symbols.
9552 extract_expsyms_cmds=
9554 case $host_os in
9555 cygwin* | mingw* | pw32* | cegcc*)
9556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9557 # When not using gcc, we currently assume that we are using
9558 # Microsoft Visual C++.
9559 if test "$GCC" != yes; then
9560 with_gnu_ld=no
9563 interix*)
9564 # we just hope/assume this is gcc and not c89 (= MSVC++)
9565 with_gnu_ld=yes
9567 openbsd*)
9568 with_gnu_ld=no
9570 esac
9572 ld_shlibs=yes
9574 # On some targets, GNU ld is compatible enough with the native linker
9575 # that we're better off using the native interface for both.
9576 lt_use_gnu_ld_interface=no
9577 if test "$with_gnu_ld" = yes; then
9578 case $host_os in
9579 aix*)
9580 # The AIX port of GNU ld has always aspired to compatibility
9581 # with the native linker. However, as the warning in the GNU ld
9582 # block says, versions before 2.19.5* couldn't really create working
9583 # shared libraries, regardless of the interface used.
9584 case `$LD -v 2>&1` in
9585 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9586 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9587 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9589 lt_use_gnu_ld_interface=yes
9591 esac
9594 lt_use_gnu_ld_interface=yes
9596 esac
9599 if test "$lt_use_gnu_ld_interface" = yes; then
9600 # If archive_cmds runs LD, not CC, wlarc should be empty
9601 wlarc='${wl}'
9603 # Set some defaults for GNU ld with shared library support. These
9604 # are reset later if shared libraries are not supported. Putting them
9605 # here allows them to be overridden if necessary.
9606 runpath_var=LD_RUN_PATH
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 export_dynamic_flag_spec='${wl}--export-dynamic'
9609 # ancient GNU ld didn't support --whole-archive et. al.
9610 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9611 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9612 else
9613 whole_archive_flag_spec=
9615 supports_anon_versioning=no
9616 case `$LD -v 2>&1` in
9617 *GNU\ gold*) supports_anon_versioning=yes ;;
9618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9621 *\ 2.11.*) ;; # other 2.11 versions
9622 *) supports_anon_versioning=yes ;;
9623 esac
9625 # See if GNU ld supports shared libraries.
9626 case $host_os in
9627 aix[3-9]*)
9628 # On AIX/PPC, the GNU linker is very broken
9629 if test "$host_cpu" != ia64; then
9630 ld_shlibs=no
9631 cat <<_LT_EOF 1>&2
9633 *** Warning: the GNU linker, at least up to release 2.19, is reported
9634 *** to be unable to reliably create shared libraries on AIX.
9635 *** Therefore, libtool is disabling shared libraries support. If you
9636 *** really care for shared libraries, you may want to install binutils
9637 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9638 *** You will then need to restart the configuration process.
9640 _LT_EOF
9644 amigaos*)
9645 case $host_cpu in
9646 powerpc)
9647 # see comment about AmigaOS4 .so support
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds=''
9651 m68k)
9652 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)'
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_minus_L=yes
9656 esac
9659 beos*)
9660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9661 allow_undefined_flag=unsupported
9662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9663 # support --undefined. This deserves some investigation. FIXME
9664 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665 else
9666 ld_shlibs=no
9670 cygwin* | mingw* | pw32* | cegcc*)
9671 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9672 # as there is no search path for DLLs.
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 export_dynamic_flag_spec='${wl}--export-all-symbols'
9675 allow_undefined_flag=unsupported
9676 always_export_symbols=no
9677 enable_shared_with_static_runtimes=yes
9678 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'
9679 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9681 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9683 # If the export-symbols file already is a .def file (1st line
9684 # is EXPORTS), use it as is; otherwise, prepend...
9685 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9686 cp $export_symbols $output_objdir/$soname.def;
9687 else
9688 echo EXPORTS > $output_objdir/$soname.def;
9689 cat $export_symbols >> $output_objdir/$soname.def;
9691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9692 else
9693 ld_shlibs=no
9697 haiku*)
9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 link_all_deplibs=yes
9702 interix[3-9]*)
9703 hardcode_direct=no
9704 hardcode_shlibpath_var=no
9705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9706 export_dynamic_flag_spec='${wl}-E'
9707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9708 # Instead, shared libraries are loaded at an image base (0x10000000 by
9709 # default) and relocated if they conflict, which is a slow very memory
9710 # consuming and fragmenting process. To avoid this, we pick a random,
9711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9714 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'
9717 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9718 tmp_diet=no
9719 if test "$host_os" = linux-dietlibc; then
9720 case $cc_basename in
9721 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9722 esac
9724 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9725 && test "$tmp_diet" = no
9726 then
9727 tmp_addflag=' $pic_flag'
9728 tmp_sharedflag='-shared'
9729 case $cc_basename,$host_cpu in
9730 pgcc*) # Portland Group C compiler
9731 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'
9732 tmp_addflag=' $pic_flag'
9734 pgf77* | pgf90* | pgf95* | pgfortran*)
9735 # Portland Group f77 and f90 compilers
9736 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'
9737 tmp_addflag=' $pic_flag -Mnomain' ;;
9738 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9739 tmp_addflag=' -i_dynamic' ;;
9740 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9741 tmp_addflag=' -i_dynamic -nofor_main' ;;
9742 ifc* | ifort*) # Intel Fortran compiler
9743 tmp_addflag=' -nofor_main' ;;
9744 lf95*) # Lahey Fortran 8.1
9745 whole_archive_flag_spec=
9746 tmp_sharedflag='--shared' ;;
9747 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9748 tmp_sharedflag='-qmkshrobj'
9749 tmp_addflag= ;;
9750 nvcc*) # Cuda Compiler Driver 2.2
9751 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'
9752 compiler_needs_object=yes
9754 esac
9755 case `$CC -V 2>&1 | sed 5q` in
9756 *Sun\ C*) # Sun C 5.9
9757 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'
9758 compiler_needs_object=yes
9759 tmp_sharedflag='-G' ;;
9760 *Sun\ F*) # Sun Fortran 8.3
9761 tmp_sharedflag='-G' ;;
9762 esac
9763 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765 if test "x$supports_anon_versioning" = xyes; then
9766 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9768 echo "local: *; };" >> $output_objdir/$libname.ver~
9769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9772 case $cc_basename in
9773 xlf* | bgf* | bgxlf* | mpixlf*)
9774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9778 if test "x$supports_anon_versioning" = xyes; then
9779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781 echo "local: *; };" >> $output_objdir/$libname.ver~
9782 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9785 esac
9786 else
9787 ld_shlibs=no
9791 netbsd*)
9792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9794 wlarc=
9795 else
9796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801 solaris*)
9802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9803 ld_shlibs=no
9804 cat <<_LT_EOF 1>&2
9806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9807 *** create shared libraries on Solaris systems. Therefore, libtool
9808 *** is disabling shared libraries support. We urge you to upgrade GNU
9809 *** binutils to release 2.9.1 or newer. Another option is to modify
9810 *** your PATH or compiler configuration so that the native linker is
9811 *** used, and then restart.
9813 _LT_EOF
9814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9817 else
9818 ld_shlibs=no
9822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9823 case `$LD -v 2>&1` in
9824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9825 ld_shlibs=no
9826 cat <<_LT_EOF 1>&2
9828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9829 *** reliably create shared libraries on SCO systems. Therefore, libtool
9830 *** is disabling shared libraries support. We urge you to upgrade GNU
9831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9832 *** your PATH or compiler configuration so that the native linker is
9833 *** used, and then restart.
9835 _LT_EOF
9838 # For security reasons, it is highly recommended that you always
9839 # use absolute paths for naming shared libraries, and exclude the
9840 # DT_RUNPATH tag from executables and libraries. But doing so
9841 # requires that you compile everything twice, which is a pain.
9842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846 else
9847 ld_shlibs=no
9850 esac
9853 sunos4*)
9854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9855 wlarc=
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9864 else
9865 ld_shlibs=no
9868 esac
9870 if test "$ld_shlibs" = no; then
9871 runpath_var=
9872 hardcode_libdir_flag_spec=
9873 export_dynamic_flag_spec=
9874 whole_archive_flag_spec=
9876 else
9877 # PORTME fill in a description of your system's linker (not GNU ld)
9878 case $host_os in
9879 aix3*)
9880 allow_undefined_flag=unsupported
9881 always_export_symbols=yes
9882 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'
9883 # Note: this linker hardcodes the directories in LIBPATH if there
9884 # are no directories specified by -L.
9885 hardcode_minus_L=yes
9886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9887 # Neither direct hardcoding nor static linking is supported with a
9888 # broken collect2.
9889 hardcode_direct=unsupported
9893 aix[4-9]*)
9894 if test "$host_cpu" = ia64; then
9895 # On IA64, the linker does run time linking by default, so we don't
9896 # have to do anything special.
9897 aix_use_runtimelinking=no
9898 exp_sym_flag='-Bexport'
9899 no_entry_flag=""
9900 else
9901 # If we're using GNU nm, then we don't want the "-C" option.
9902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9903 # Also, AIX nm treats weak defined symbols like other global
9904 # defined symbols, whereas GNU nm marks them as "W".
9905 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9906 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'
9907 else
9908 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'
9910 aix_use_runtimelinking=no
9912 # Test if we are trying to use run time linking or normal
9913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9914 # need to do runtime linking.
9915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9916 for ld_flag in $LDFLAGS; do
9917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9918 aix_use_runtimelinking=yes
9919 break
9921 done
9923 esac
9925 exp_sym_flag='-bexport'
9926 no_entry_flag='-bnoentry'
9929 # When large executables or shared objects are built, AIX ld can
9930 # have problems creating the table of contents. If linking a library
9931 # or program results in "error TOC overflow" add -mminimal-toc to
9932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9935 archive_cmds=''
9936 hardcode_direct=yes
9937 hardcode_direct_absolute=yes
9938 hardcode_libdir_separator=':'
9939 link_all_deplibs=yes
9940 file_list_spec='${wl}-f,'
9942 if test "$GCC" = yes; then
9943 case $host_os in aix4.[012]|aix4.[012].*)
9944 # We only want to do this on AIX 4.2 and lower, the check
9945 # below for broken collect2 doesn't work under 4.3+
9946 collect2name=`${CC} -print-prog-name=collect2`
9947 if test -f "$collect2name" &&
9948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9949 then
9950 # We have reworked collect2
9952 else
9953 # We have old collect2
9954 hardcode_direct=unsupported
9955 # It fails to find uninstalled libraries when the uninstalled
9956 # path is not listed in the libpath. Setting hardcode_minus_L
9957 # to unsupported forces relinking
9958 hardcode_minus_L=yes
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 hardcode_libdir_separator=
9963 esac
9964 shared_flag='-shared'
9965 if test "$aix_use_runtimelinking" = yes; then
9966 shared_flag="$shared_flag "'${wl}-G'
9968 else
9969 # not using gcc
9970 if test "$host_cpu" = ia64; then
9971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9972 # chokes on -Wl,-G. The following line is correct:
9973 shared_flag='-G'
9974 else
9975 if test "$aix_use_runtimelinking" = yes; then
9976 shared_flag='${wl}-G'
9977 else
9978 shared_flag='${wl}-bM:SRE'
9983 export_dynamic_flag_spec='${wl}-bexpall'
9984 # It seems that -bexpall does not export symbols beginning with
9985 # underscore (_), so it is better to generate a list of symbols to export.
9986 always_export_symbols=yes
9987 if test "$aix_use_runtimelinking" = yes; then
9988 # Warning - without using the other runtime loading flags (-brtl),
9989 # -berok will link without error, but may produce a broken library.
9990 allow_undefined_flag='-berok'
9991 # Determine the default libpath from the value encoded in an
9992 # empty executable.
9993 if test "${lt_cv_aix_libpath+set}" = set; then
9994 aix_libpath=$lt_cv_aix_libpath
9995 else
9996 if ${lt_cv_aix_libpath_+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10003 main ()
10007 return 0;
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10012 lt_aix_libpath_sed='
10013 /Import File Strings/,/^$/ {
10014 /^0/ {
10015 s/^0 *\([^ ]*\) *$/\1/
10019 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10020 # Check for a 64-bit object if we didn't find anything.
10021 if test -z "$lt_cv_aix_libpath_"; then
10022 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10025 rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 if test -z "$lt_cv_aix_libpath_"; then
10028 lt_cv_aix_libpath_="/usr/lib:/lib"
10033 aix_libpath=$lt_cv_aix_libpath_
10036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10037 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"
10038 else
10039 if test "$host_cpu" = ia64; then
10040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10041 allow_undefined_flag="-z nodefs"
10042 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"
10043 else
10044 # Determine the default libpath from the value encoded in an
10045 # empty executable.
10046 if test "${lt_cv_aix_libpath+set}" = set; then
10047 aix_libpath=$lt_cv_aix_libpath
10048 else
10049 if ${lt_cv_aix_libpath_+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10056 main ()
10060 return 0;
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10065 lt_aix_libpath_sed='
10066 /Import File Strings/,/^$/ {
10067 /^0/ {
10068 s/^0 *\([^ ]*\) *$/\1/
10072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10073 # Check for a 64-bit object if we didn't find anything.
10074 if test -z "$lt_cv_aix_libpath_"; then
10075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 if test -z "$lt_cv_aix_libpath_"; then
10081 lt_cv_aix_libpath_="/usr/lib:/lib"
10086 aix_libpath=$lt_cv_aix_libpath_
10089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10090 # Warning - without using the other run time loading flags,
10091 # -berok will link without error, but may produce a broken library.
10092 no_undefined_flag=' ${wl}-bernotok'
10093 allow_undefined_flag=' ${wl}-berok'
10094 if test "$with_gnu_ld" = yes; then
10095 # We only use this code for GNU lds that support --whole-archive.
10096 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10097 else
10098 # Exported symbols can be pulled into shared objects from archives
10099 whole_archive_flag_spec='$convenience'
10101 archive_cmds_need_lc=yes
10102 # This is similar to how AIX traditionally builds its shared libraries.
10103 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'
10108 amigaos*)
10109 case $host_cpu in
10110 powerpc)
10111 # see comment about AmigaOS4 .so support
10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 archive_expsym_cmds=''
10115 m68k)
10116 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)'
10117 hardcode_libdir_flag_spec='-L$libdir'
10118 hardcode_minus_L=yes
10120 esac
10123 bsdi[45]*)
10124 export_dynamic_flag_spec=-rdynamic
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # When not using gcc, we currently assume that we are using
10129 # Microsoft Visual C++.
10130 # hardcode_libdir_flag_spec is actually meaningless, as there is
10131 # no search path for DLLs.
10132 case $cc_basename in
10133 cl*)
10134 # Native MSVC
10135 hardcode_libdir_flag_spec=' '
10136 allow_undefined_flag=unsupported
10137 always_export_symbols=yes
10138 file_list_spec='@'
10139 # Tell ltmain to make .lib files, not .a files.
10140 libext=lib
10141 # Tell ltmain to make .dll files, not .so files.
10142 shrext_cmds=".dll"
10143 # FIXME: Setting linknames here is a bad hack.
10144 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10146 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10147 else
10148 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10150 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10151 linknames='
10152 # The linker will not automatically build a static lib if we build a DLL.
10153 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10154 enable_shared_with_static_runtimes=yes
10155 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10157 # Don't use ranlib
10158 old_postinstall_cmds='chmod 644 $oldlib'
10159 postlink_cmds='lt_outputfile="@OUTPUT@"~
10160 lt_tool_outputfile="@TOOL_OUTPUT@"~
10161 case $lt_outputfile in
10162 *.exe|*.EXE) ;;
10164 lt_outputfile="$lt_outputfile.exe"
10165 lt_tool_outputfile="$lt_tool_outputfile.exe"
10167 esac~
10168 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10169 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10170 $RM "$lt_outputfile.manifest";
10174 # Assume MSVC wrapper
10175 hardcode_libdir_flag_spec=' '
10176 allow_undefined_flag=unsupported
10177 # Tell ltmain to make .lib files, not .a files.
10178 libext=lib
10179 # Tell ltmain to make .dll files, not .so files.
10180 shrext_cmds=".dll"
10181 # FIXME: Setting linknames here is a bad hack.
10182 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10183 # The linker will automatically build a .lib file if we build a DLL.
10184 old_archive_from_new_cmds='true'
10185 # FIXME: Should let the user specify the lib program.
10186 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10187 enable_shared_with_static_runtimes=yes
10189 esac
10192 darwin* | rhapsody*)
10195 archive_cmds_need_lc=no
10196 hardcode_direct=no
10197 hardcode_automatic=yes
10198 hardcode_shlibpath_var=unsupported
10199 if test "$lt_cv_ld_force_load" = "yes"; then
10200 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\"`'
10202 else
10203 whole_archive_flag_spec=''
10205 link_all_deplibs=yes
10206 allow_undefined_flag="$_lt_dar_allow_undefined"
10207 case $cc_basename in
10208 ifort*) _lt_dar_can_shared=yes ;;
10209 *) _lt_dar_can_shared=$GCC ;;
10210 esac
10211 if test "$_lt_dar_can_shared" = "yes"; then
10212 output_verbose_link_cmd=func_echo_all
10213 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10214 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10215 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}"
10216 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}"
10218 else
10219 ld_shlibs=no
10224 dgux*)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_libdir_flag_spec='-L$libdir'
10227 hardcode_shlibpath_var=no
10230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10231 # support. Future versions do this automatically, but an explicit c++rt0.o
10232 # does not break anything, and helps significantly (at the cost of a little
10233 # extra space).
10234 freebsd2.2*)
10235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10241 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10242 freebsd2.*)
10243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_direct=yes
10245 hardcode_minus_L=yes
10246 hardcode_shlibpath_var=no
10249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10250 freebsd* | dragonfly*)
10251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10252 hardcode_libdir_flag_spec='-R$libdir'
10253 hardcode_direct=yes
10254 hardcode_shlibpath_var=no
10257 hpux9*)
10258 if test "$GCC" = yes; then
10259 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'
10260 else
10261 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'
10263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10264 hardcode_libdir_separator=:
10265 hardcode_direct=yes
10267 # hardcode_minus_L: Not really in the search PATH,
10268 # but as the default location of the library.
10269 hardcode_minus_L=yes
10270 export_dynamic_flag_spec='${wl}-E'
10273 hpux10*)
10274 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10275 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10276 else
10277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10279 if test "$with_gnu_ld" = no; then
10280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10281 hardcode_libdir_separator=:
10282 hardcode_direct=yes
10283 hardcode_direct_absolute=yes
10284 export_dynamic_flag_spec='${wl}-E'
10285 # hardcode_minus_L: Not really in the search PATH,
10286 # but as the default location of the library.
10287 hardcode_minus_L=yes
10291 hpux11*)
10292 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10293 case $host_cpu in
10294 hppa*64*)
10295 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 ia64*)
10298 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10303 esac
10304 else
10305 case $host_cpu in
10306 hppa*64*)
10307 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 ia64*)
10310 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10314 # Older versions of the 11.00 compiler do not understand -b yet
10315 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10317 $as_echo_n "checking if $CC understands -b... " >&6; }
10318 if ${lt_cv_prog_compiler__b+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 lt_cv_prog_compiler__b=no
10322 save_LDFLAGS="$LDFLAGS"
10323 LDFLAGS="$LDFLAGS -b"
10324 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10326 # The linker can only warn and ignore the option if not recognized
10327 # So say no if there are warnings
10328 if test -s conftest.err; then
10329 # Append any errors to the config.log.
10330 cat conftest.err 1>&5
10331 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10333 if diff conftest.exp conftest.er2 >/dev/null; then
10334 lt_cv_prog_compiler__b=yes
10336 else
10337 lt_cv_prog_compiler__b=yes
10340 $RM -r conftest*
10341 LDFLAGS="$save_LDFLAGS"
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10345 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10347 if test x"$lt_cv_prog_compiler__b" = xyes; then
10348 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10349 else
10350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10354 esac
10356 if test "$with_gnu_ld" = no; then
10357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10358 hardcode_libdir_separator=:
10360 case $host_cpu in
10361 hppa*64*|ia64*)
10362 hardcode_direct=no
10363 hardcode_shlibpath_var=no
10366 hardcode_direct=yes
10367 hardcode_direct_absolute=yes
10368 export_dynamic_flag_spec='${wl}-E'
10370 # hardcode_minus_L: Not really in the search PATH,
10371 # but as the default location of the library.
10372 hardcode_minus_L=yes
10374 esac
10378 irix5* | irix6* | nonstopux*)
10379 if test "$GCC" = yes; then
10380 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'
10381 # Try to use the -exported_symbol ld option, if it does not
10382 # work, assume that -exports_file does not work either and
10383 # implicitly export all symbols.
10384 # This should be the same for all languages, so no per-tag cache variable.
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10386 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10387 if ${lt_cv_irix_exported_symbol+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 save_LDFLAGS="$LDFLAGS"
10391 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int foo (void) { return 0; }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397 lt_cv_irix_exported_symbol=yes
10398 else
10399 lt_cv_irix_exported_symbol=no
10401 rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LDFLAGS="$save_LDFLAGS"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10406 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10407 if test "$lt_cv_irix_exported_symbol" = yes; then
10408 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'
10410 else
10411 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'
10412 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'
10414 archive_cmds_need_lc='no'
10415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10416 hardcode_libdir_separator=:
10417 inherit_rpath=yes
10418 link_all_deplibs=yes
10421 netbsd*)
10422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10424 else
10425 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10427 hardcode_libdir_flag_spec='-R$libdir'
10428 hardcode_direct=yes
10429 hardcode_shlibpath_var=no
10432 newsos6)
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_direct=yes
10435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10436 hardcode_libdir_separator=:
10437 hardcode_shlibpath_var=no
10440 *nto* | *qnx*)
10443 openbsd*)
10444 if test -f /usr/libexec/ld.so; then
10445 hardcode_direct=yes
10446 hardcode_shlibpath_var=no
10447 hardcode_direct_absolute=yes
10448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10451 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10452 export_dynamic_flag_spec='${wl}-E'
10453 else
10454 case $host_os in
10455 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10457 hardcode_libdir_flag_spec='-R$libdir'
10460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463 esac
10465 else
10466 ld_shlibs=no
10470 os2*)
10471 hardcode_libdir_flag_spec='-L$libdir'
10472 hardcode_minus_L=yes
10473 allow_undefined_flag=unsupported
10474 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'
10475 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10478 osf3*)
10479 if test "$GCC" = yes; then
10480 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10481 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'
10482 else
10483 allow_undefined_flag=' -expect_unresolved \*'
10484 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'
10486 archive_cmds_need_lc='no'
10487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10488 hardcode_libdir_separator=:
10491 osf4* | osf5*) # as osf3* with the addition of -msym flag
10492 if test "$GCC" = yes; then
10493 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10494 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'
10495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10496 else
10497 allow_undefined_flag=' -expect_unresolved \*'
10498 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'
10499 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~
10500 $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'
10502 # Both c and cxx compiler support -rpath directly
10503 hardcode_libdir_flag_spec='-rpath $libdir'
10505 archive_cmds_need_lc='no'
10506 hardcode_libdir_separator=:
10509 solaris*)
10510 no_undefined_flag=' -z defs'
10511 if test "$GCC" = yes; then
10512 wlarc='${wl}'
10513 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515 $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'
10516 else
10517 case `$CC -V 2>&1` in
10518 *"Compilers 5.0"*)
10519 wlarc=''
10520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10525 wlarc='${wl}'
10526 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10528 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10530 esac
10532 hardcode_libdir_flag_spec='-R$libdir'
10533 hardcode_shlibpath_var=no
10534 case $host_os in
10535 solaris2.[0-5] | solaris2.[0-5].*) ;;
10537 # The compiler driver will combine and reorder linker options,
10538 # but understands `-z linker_flag'. GCC discards it without `$wl',
10539 # but is careful enough not to reorder.
10540 # Supported since Solaris 2.6 (maybe 2.5.1?)
10541 if test "$GCC" = yes; then
10542 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10543 else
10544 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10547 esac
10548 link_all_deplibs=yes
10551 sunos4*)
10552 if test "x$host_vendor" = xsequent; then
10553 # Use $CC to link under sequent, because it throws in some extra .o
10554 # files that make .init and .fini sections work.
10555 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10556 else
10557 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10559 hardcode_libdir_flag_spec='-L$libdir'
10560 hardcode_direct=yes
10561 hardcode_minus_L=yes
10562 hardcode_shlibpath_var=no
10565 sysv4)
10566 case $host_vendor in
10567 sni)
10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_direct=yes # is this really true???
10571 siemens)
10572 ## LD is ld it makes a PLAMLIB
10573 ## CC just makes a GrossModule.
10574 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10575 reload_cmds='$CC -r -o $output$reload_objs'
10576 hardcode_direct=no
10578 motorola)
10579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10580 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10582 esac
10583 runpath_var='LD_RUN_PATH'
10584 hardcode_shlibpath_var=no
10587 sysv4.3*)
10588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_shlibpath_var=no
10590 export_dynamic_flag_spec='-Bexport'
10593 sysv4*MP*)
10594 if test -d /usr/nec; then
10595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_shlibpath_var=no
10597 runpath_var=LD_RUN_PATH
10598 hardcode_runpath_var=yes
10599 ld_shlibs=yes
10603 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10604 no_undefined_flag='${wl}-z,text'
10605 archive_cmds_need_lc=no
10606 hardcode_shlibpath_var=no
10607 runpath_var='LD_RUN_PATH'
10609 if test "$GCC" = yes; then
10610 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 else
10613 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 sysv5* | sco3.2v5* | sco5v6*)
10619 # Note: We can NOT use -z defs as we might desire, because we do not
10620 # link with -lc, and that would cause any symbols used from libc to
10621 # always be unresolved, which means just about no library would
10622 # ever link correctly. If we're not using GNU ld we use -z text
10623 # though, which does catch some bad symbols but isn't as heavy-handed
10624 # as -z defs.
10625 no_undefined_flag='${wl}-z,text'
10626 allow_undefined_flag='${wl}-z,nodefs'
10627 archive_cmds_need_lc=no
10628 hardcode_shlibpath_var=no
10629 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10630 hardcode_libdir_separator=':'
10631 link_all_deplibs=yes
10632 export_dynamic_flag_spec='${wl}-Bexport'
10633 runpath_var='LD_RUN_PATH'
10635 if test "$GCC" = yes; then
10636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 else
10639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 uts4*)
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_libdir_flag_spec='-L$libdir'
10647 hardcode_shlibpath_var=no
10651 ld_shlibs=no
10653 esac
10655 if test x$host_vendor = xsni; then
10656 case $host in
10657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10658 export_dynamic_flag_spec='${wl}-Blargedynsym'
10660 esac
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10665 $as_echo "$ld_shlibs" >&6; }
10666 test "$ld_shlibs" = no && can_build_shared=no
10668 with_gnu_ld=$with_gnu_ld
10685 # Do we need to explicitly link libc?
10687 case "x$archive_cmds_need_lc" in
10688 x|xyes)
10689 # Assume -lc should be added
10690 archive_cmds_need_lc=yes
10692 if test "$enable_shared" = yes && test "$GCC" = yes; then
10693 case $archive_cmds in
10694 *'~'*)
10695 # FIXME: we may have to deal with multi-command sequences.
10697 '$CC '*)
10698 # Test whether the compiler implicitly links with -lc since on some
10699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10700 # to ld, don't add -lc before -lgcc.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10702 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10703 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 $RM conftest*
10707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10710 (eval $ac_compile) 2>&5
10711 ac_status=$?
10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10713 test $ac_status = 0; } 2>conftest.err; then
10714 soname=conftest
10715 lib=conftest
10716 libobjs=conftest.$ac_objext
10717 deplibs=
10718 wl=$lt_prog_compiler_wl
10719 pic_flag=$lt_prog_compiler_pic
10720 compiler_flags=-v
10721 linker_flags=-v
10722 verstring=
10723 output_objdir=.
10724 libname=conftest
10725 lt_save_allow_undefined_flag=$allow_undefined_flag
10726 allow_undefined_flag=
10727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10728 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10729 ac_status=$?
10730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10731 test $ac_status = 0; }
10732 then
10733 lt_cv_archive_cmds_need_lc=no
10734 else
10735 lt_cv_archive_cmds_need_lc=yes
10737 allow_undefined_flag=$lt_save_allow_undefined_flag
10738 else
10739 cat conftest.err 1>&5
10741 $RM conftest*
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10745 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10746 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10748 esac
10751 esac
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10907 if test "$GCC" = yes; then
10908 case $host_os in
10909 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10910 *) lt_awk_arg="/^libraries:/" ;;
10911 esac
10912 case $host_os in
10913 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10914 *) lt_sed_strip_eq="s,=/,/,g" ;;
10915 esac
10916 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10917 case $lt_search_path_spec in
10918 *\;*)
10919 # if the path contains ";" then we assume it to be the separator
10920 # otherwise default to the standard path separator (i.e. ":") - it is
10921 # assumed that no part of a normal pathname contains ";" but that should
10922 # okay in the real world where ";" in dirpaths is itself problematic.
10923 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10926 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10928 esac
10929 # Ok, now we have the path, separated by spaces, we can step through it
10930 # and add multilib dir if necessary.
10931 lt_tmp_lt_search_path_spec=
10932 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10933 for lt_sys_path in $lt_search_path_spec; do
10934 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10935 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10936 else
10937 test -d "$lt_sys_path" && \
10938 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10940 done
10941 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10942 BEGIN {RS=" "; FS="/|\n";} {
10943 lt_foo="";
10944 lt_count=0;
10945 for (lt_i = NF; lt_i > 0; lt_i--) {
10946 if ($lt_i != "" && $lt_i != ".") {
10947 if ($lt_i == "..") {
10948 lt_count++;
10949 } else {
10950 if (lt_count == 0) {
10951 lt_foo="/" $lt_i lt_foo;
10952 } else {
10953 lt_count--;
10958 if (lt_foo != "") { lt_freq[lt_foo]++; }
10959 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10961 # AWK program above erroneously prepends '/' to C:/dos/paths
10962 # for these hosts.
10963 case $host_os in
10964 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10965 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10966 esac
10967 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10968 else
10969 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10971 library_names_spec=
10972 libname_spec='lib$name'
10973 soname_spec=
10974 shrext_cmds=".so"
10975 postinstall_cmds=
10976 postuninstall_cmds=
10977 finish_cmds=
10978 finish_eval=
10979 shlibpath_var=
10980 shlibpath_overrides_runpath=unknown
10981 version_type=none
10982 dynamic_linker="$host_os ld.so"
10983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10984 need_lib_prefix=unknown
10985 hardcode_into_libs=no
10987 # when you set need_version to no, make sure it does not cause -set_version
10988 # flags to be left without arguments
10989 need_version=unknown
10991 case $host_os in
10992 aix3*)
10993 version_type=linux # correct to gnu/linux during the next big refactor
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10995 shlibpath_var=LIBPATH
10997 # AIX 3 has no versioning support, so we append a major version to the name.
10998 soname_spec='${libname}${release}${shared_ext}$major'
11001 aix[4-9]*)
11002 version_type=linux # correct to gnu/linux during the next big refactor
11003 need_lib_prefix=no
11004 need_version=no
11005 hardcode_into_libs=yes
11006 if test "$host_cpu" = ia64; then
11007 # AIX 5 supports IA64
11008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 else
11011 # With GCC up to 2.95.x, collect2 would create an import file
11012 # for dependence libraries. The import file would start with
11013 # the line `#! .'. This would cause the generated library to
11014 # depend on `.', always an invalid library. This was fixed in
11015 # development snapshots of GCC prior to 3.0.
11016 case $host_os in
11017 aix4 | aix4.[01] | aix4.[01].*)
11018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11019 echo ' yes '
11020 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11022 else
11023 can_build_shared=no
11026 esac
11027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11028 # soname into executable. Probably we can add versioning support to
11029 # collect2, so additional links can be useful in future.
11030 if test "$aix_use_runtimelinking" = yes; then
11031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11032 # instead of lib<name>.a to let people know that these are not
11033 # typical AIX shared libraries.
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 else
11036 # We preserve .a as extension for shared libraries through AIX4.2
11037 # and later when we are not doing run time linking.
11038 library_names_spec='${libname}${release}.a $libname.a'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11041 shlibpath_var=LIBPATH
11045 amigaos*)
11046 case $host_cpu in
11047 powerpc)
11048 # Since July 2007 AmigaOS4 officially supports .so libraries.
11049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 m68k)
11053 library_names_spec='$libname.ixlibrary $libname.a'
11054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11055 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'
11057 esac
11060 beos*)
11061 library_names_spec='${libname}${shared_ext}'
11062 dynamic_linker="$host_os ld.so"
11063 shlibpath_var=LIBRARY_PATH
11066 bsdi[45]*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 need_version=no
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11075 # the default ld.so.conf also contains /usr/contrib/lib and
11076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11077 # libtool to hard-code these into programs
11080 cygwin* | mingw* | pw32* | cegcc*)
11081 version_type=windows
11082 shrext_cmds=".dll"
11083 need_version=no
11084 need_lib_prefix=no
11086 case $GCC,$cc_basename in
11087 yes,*)
11088 # gcc
11089 library_names_spec='$libname.dll.a'
11090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11091 postinstall_cmds='base_file=`basename \${file}`~
11092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11093 dldir=$destdir/`dirname \$dlpath`~
11094 test -d \$dldir || mkdir -p \$dldir~
11095 $install_prog $dir/$dlname \$dldir/$dlname~
11096 chmod a+x \$dldir/$dlname~
11097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11101 dlpath=$dir/\$dldll~
11102 $RM \$dlpath'
11103 shlibpath_overrides_runpath=yes
11105 case $host_os in
11106 cygwin*)
11107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11112 mingw* | cegcc*)
11113 # MinGW DLLs use traditional 'lib' prefix
11114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11116 pw32*)
11117 # pw32 DLLs use 'pw' prefix rather than 'lib'
11118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11120 esac
11121 dynamic_linker='Win32 ld.exe'
11124 *,cl*)
11125 # Native MSVC
11126 libname_spec='$name'
11127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11128 library_names_spec='${libname}.dll.lib'
11130 case $build_os in
11131 mingw*)
11132 sys_lib_search_path_spec=
11133 lt_save_ifs=$IFS
11134 IFS=';'
11135 for lt_path in $LIB
11137 IFS=$lt_save_ifs
11138 # Let DOS variable expansion print the short 8.3 style file name.
11139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11141 done
11142 IFS=$lt_save_ifs
11143 # Convert to MSYS style.
11144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11146 cygwin*)
11147 # Convert to unix form, then to dos form, then back to unix form
11148 # but this time dos style (no spaces!) so that the unix form looks
11149 # like /cygdrive/c/PROGRA~1:/cygdr...
11150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155 sys_lib_search_path_spec="$LIB"
11156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11157 # It is most probably a Windows format PATH.
11158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11159 else
11160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11162 # FIXME: find the short name or the path components, as spaces are
11163 # common. (e.g. "Program Files" -> "PROGRA~1")
11165 esac
11167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11168 postinstall_cmds='base_file=`basename \${file}`~
11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11170 dldir=$destdir/`dirname \$dlpath`~
11171 test -d \$dldir || mkdir -p \$dldir~
11172 $install_prog $dir/$dlname \$dldir/$dlname'
11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174 dlpath=$dir/\$dldll~
11175 $RM \$dlpath'
11176 shlibpath_overrides_runpath=yes
11177 dynamic_linker='Win32 link.exe'
11181 # Assume MSVC wrapper
11182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11183 dynamic_linker='Win32 ld.exe'
11185 esac
11186 # FIXME: first we should search . and the directory the executable is in
11187 shlibpath_var=PATH
11190 darwin* | rhapsody*)
11191 dynamic_linker="$host_os dyld"
11192 version_type=darwin
11193 need_lib_prefix=no
11194 need_version=no
11195 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11196 soname_spec='${libname}${release}${major}$shared_ext'
11197 shlibpath_overrides_runpath=yes
11198 shlibpath_var=DYLD_LIBRARY_PATH
11199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11205 dgux*)
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 need_lib_prefix=no
11208 need_version=no
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11214 freebsd* | dragonfly*)
11215 # DragonFly does not have aout. When/if they implement a new
11216 # versioning mechanism, adjust this.
11217 if test -x /usr/bin/objformat; then
11218 objformat=`/usr/bin/objformat`
11219 else
11220 case $host_os in
11221 freebsd[23].*) objformat=aout ;;
11222 *) objformat=elf ;;
11223 esac
11225 version_type=freebsd-$objformat
11226 case $version_type in
11227 freebsd-elf*)
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11229 need_version=no
11230 need_lib_prefix=no
11232 freebsd-*)
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11234 need_version=yes
11236 esac
11237 shlibpath_var=LD_LIBRARY_PATH
11238 case $host_os in
11239 freebsd2.*)
11240 shlibpath_overrides_runpath=yes
11242 freebsd3.[01]* | freebsdelf3.[01]*)
11243 shlibpath_overrides_runpath=yes
11244 hardcode_into_libs=yes
11246 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11247 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11248 shlibpath_overrides_runpath=no
11249 hardcode_into_libs=yes
11251 *) # from 4.6 on, and DragonFly
11252 shlibpath_overrides_runpath=yes
11253 hardcode_into_libs=yes
11255 esac
11258 gnu*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 need_lib_prefix=no
11261 need_version=no
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=no
11266 hardcode_into_libs=yes
11269 haiku*)
11270 version_type=linux # correct to gnu/linux during the next big refactor
11271 need_lib_prefix=no
11272 need_version=no
11273 dynamic_linker="$host_os runtime_loader"
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11279 hardcode_into_libs=yes
11282 hpux9* | hpux10* | hpux11*)
11283 # Give a soname corresponding to the major version so that dld.sl refuses to
11284 # link against other versions.
11285 version_type=sunos
11286 need_lib_prefix=no
11287 need_version=no
11288 case $host_cpu in
11289 ia64*)
11290 shrext_cmds='.so'
11291 hardcode_into_libs=yes
11292 dynamic_linker="$host_os dld.so"
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 if test "X$HPUX_IA64_MODE" = X32; then
11298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11299 else
11300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11304 hppa*64*)
11305 shrext_cmds='.sl'
11306 hardcode_into_libs=yes
11307 dynamic_linker="$host_os dld.sl"
11308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11316 shrext_cmds='.sl'
11317 dynamic_linker="$host_os dld.sl"
11318 shlibpath_var=SHLIB_PATH
11319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11323 esac
11324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11325 postinstall_cmds='chmod 555 $lib'
11326 # or fails outright, so override atomically:
11327 install_override_mode=555
11330 interix[3-9]*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 shlibpath_overrides_runpath=no
11339 hardcode_into_libs=yes
11342 irix5* | irix6* | nonstopux*)
11343 case $host_os in
11344 nonstopux*) version_type=nonstopux ;;
11346 if test "$lt_cv_prog_gnu_ld" = yes; then
11347 version_type=linux # correct to gnu/linux during the next big refactor
11348 else
11349 version_type=irix
11350 fi ;;
11351 esac
11352 need_lib_prefix=no
11353 need_version=no
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11356 case $host_os in
11357 irix5* | nonstopux*)
11358 libsuff= shlibsuff=
11361 case $LD in # libtool.m4 will add one of these switches to LD
11362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11363 libsuff= shlibsuff= libmagic=32-bit;;
11364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11365 libsuff=32 shlibsuff=N32 libmagic=N32;;
11366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11368 *) libsuff= shlibsuff= libmagic=never-match;;
11369 esac
11371 esac
11372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11373 shlibpath_overrides_runpath=no
11374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11376 hardcode_into_libs=yes
11379 # No shared lib support for Linux oldld, aout, or coff.
11380 linux*oldld* | linux*aout* | linux*coff*)
11381 dynamic_linker=no
11384 # This must be glibc/ELF.
11385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11386 version_type=linux # correct to gnu/linux during the next big refactor
11387 need_lib_prefix=no
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=no
11395 # Some binutils ld are patched to set DT_RUNPATH
11396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 lt_cv_shlibpath_overrides_runpath=no
11400 save_LDFLAGS=$LDFLAGS
11401 save_libdir=$libdir
11402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11408 main ()
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11417 lt_cv_shlibpath_overrides_runpath=yes
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LDFLAGS=$save_LDFLAGS
11423 libdir=$save_libdir
11427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11429 # This implies no fast_install, which is unacceptable.
11430 # Some rework will be needed to allow for fast_install
11431 # before this can be enabled.
11432 hardcode_into_libs=yes
11434 # Append ld.so.conf contents to the search path
11435 if test -f /etc/ld.so.conf; then
11436 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' ' '`
11437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11440 # We used to test for /lib/ld.so.1 and disable shared libraries on
11441 # powerpc, because MkLinux only supported shared libraries with the
11442 # GNU dynamic linker. Since this was broken with cross compilers,
11443 # most powerpc-linux boxes support dynamic linking these days and
11444 # people can always --disable-shared, the test was removed, and we
11445 # assume the GNU/Linux dynamic linker is in use.
11446 dynamic_linker='GNU/Linux ld.so'
11449 netbsd*)
11450 version_type=sunos
11451 need_lib_prefix=no
11452 need_version=no
11453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11456 dynamic_linker='NetBSD (a.out) ld.so'
11457 else
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 dynamic_linker='NetBSD ld.elf_so'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 hardcode_into_libs=yes
11467 newsos6)
11468 version_type=linux # correct to gnu/linux during the next big refactor
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes
11474 *nto* | *qnx*)
11475 version_type=qnx
11476 need_lib_prefix=no
11477 need_version=no
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 dynamic_linker='ldqnx.so'
11486 openbsd*)
11487 version_type=sunos
11488 sys_lib_dlsearch_path_spec="/usr/lib"
11489 need_lib_prefix=no
11490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11491 case $host_os in
11492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11493 *) need_version=no ;;
11494 esac
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11499 case $host_os in
11500 openbsd2.[89] | openbsd2.[89].*)
11501 shlibpath_overrides_runpath=no
11504 shlibpath_overrides_runpath=yes
11506 esac
11507 else
11508 shlibpath_overrides_runpath=yes
11512 os2*)
11513 libname_spec='$name'
11514 shrext_cmds=".dll"
11515 need_lib_prefix=no
11516 library_names_spec='$libname${shared_ext} $libname.a'
11517 dynamic_linker='OS/2 ld.exe'
11518 shlibpath_var=LIBPATH
11521 osf3* | osf4* | osf5*)
11522 version_type=osf
11523 need_lib_prefix=no
11524 need_version=no
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11532 rdos*)
11533 dynamic_linker=no
11536 solaris*)
11537 version_type=linux # correct to gnu/linux during the next big refactor
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11544 hardcode_into_libs=yes
11545 # ldd complains unless libraries are executable
11546 postinstall_cmds='chmod +x $lib'
11549 sunos4*)
11550 version_type=sunos
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 if test "$with_gnu_ld" = yes; then
11556 need_lib_prefix=no
11558 need_version=yes
11561 sysv4 | sysv4.3*)
11562 version_type=linux # correct to gnu/linux during the next big refactor
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 case $host_vendor in
11567 sni)
11568 shlibpath_overrides_runpath=no
11569 need_lib_prefix=no
11570 runpath_var=LD_RUN_PATH
11572 siemens)
11573 need_lib_prefix=no
11575 motorola)
11576 need_lib_prefix=no
11577 need_version=no
11578 shlibpath_overrides_runpath=no
11579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11581 esac
11584 sysv4*MP*)
11585 if test -d /usr/nec ;then
11586 version_type=linux # correct to gnu/linux during the next big refactor
11587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11588 soname_spec='$libname${shared_ext}.$major'
11589 shlibpath_var=LD_LIBRARY_PATH
11593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11594 version_type=freebsd-elf
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes
11601 hardcode_into_libs=yes
11602 if test "$with_gnu_ld" = yes; then
11603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11604 else
11605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11606 case $host_os in
11607 sco3.2v5*)
11608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11610 esac
11612 sys_lib_dlsearch_path_spec='/usr/lib'
11615 tpf*)
11616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11617 version_type=linux # correct to gnu/linux during the next big refactor
11618 need_lib_prefix=no
11619 need_version=no
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
11623 hardcode_into_libs=yes
11626 uts4*)
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11634 dynamic_linker=no
11636 esac
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11638 $as_echo "$dynamic_linker" >&6; }
11639 test "$dynamic_linker" = no && can_build_shared=no
11641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11642 if test "$GCC" = yes; then
11643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11746 hardcode_action=
11747 if test -n "$hardcode_libdir_flag_spec" ||
11748 test -n "$runpath_var" ||
11749 test "X$hardcode_automatic" = "Xyes" ; then
11751 # We can hardcode non-existent directories.
11752 if test "$hardcode_direct" != no &&
11753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11754 # have to relink, otherwise we might link with an installed library
11755 # when we should be linking with a yet-to-be-installed one
11756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11757 test "$hardcode_minus_L" != no; then
11758 # Linking always hardcodes the temporary library directory.
11759 hardcode_action=relink
11760 else
11761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11762 hardcode_action=immediate
11764 else
11765 # We cannot hardcode anything, or else we can only hardcode existing
11766 # directories.
11767 hardcode_action=unsupported
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11770 $as_echo "$hardcode_action" >&6; }
11772 if test "$hardcode_action" = relink ||
11773 test "$inherit_rpath" = yes; then
11774 # Fast installation is not supported
11775 enable_fast_install=no
11776 elif test "$shlibpath_overrides_runpath" = yes ||
11777 test "$enable_shared" = no; then
11778 # Fast installation is not necessary
11779 enable_fast_install=needless
11787 if test "x$enable_dlopen" != xyes; then
11788 enable_dlopen=unknown
11789 enable_dlopen_self=unknown
11790 enable_dlopen_self_static=unknown
11791 else
11792 lt_cv_dlopen=no
11793 lt_cv_dlopen_libs=
11795 case $host_os in
11796 beos*)
11797 lt_cv_dlopen="load_add_on"
11798 lt_cv_dlopen_libs=
11799 lt_cv_dlopen_self=yes
11802 mingw* | pw32* | cegcc*)
11803 lt_cv_dlopen="LoadLibrary"
11804 lt_cv_dlopen_libs=
11807 cygwin*)
11808 lt_cv_dlopen="dlopen"
11809 lt_cv_dlopen_libs=
11812 darwin*)
11813 # if libdl is installed we need to link against it
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11816 if ${ac_cv_lib_dl_dlopen+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-ldl $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char dlopen ();
11832 main ()
11834 return dlopen ();
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840 ac_cv_lib_dl_dlopen=yes
11841 else
11842 ac_cv_lib_dl_dlopen=no
11844 rm -f core conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11852 else
11854 lt_cv_dlopen="dyld"
11855 lt_cv_dlopen_libs=
11856 lt_cv_dlopen_self=yes
11863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11864 if test "x$ac_cv_func_shl_load" = xyes; then :
11865 lt_cv_dlopen="shl_load"
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11869 if ${ac_cv_lib_dld_shl_load+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldld $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char shl_load ();
11885 main ()
11887 return shl_load ();
11889 return 0;
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dld_shl_load=yes
11894 else
11895 ac_cv_lib_dld_shl_load=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11905 else
11906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11907 if test "x$ac_cv_func_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen"
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11912 if ${ac_cv_lib_dl_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-ldl $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dlopen ();
11928 main ()
11930 return dlopen ();
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_dl_dlopen=yes
11937 else
11938 ac_cv_lib_dl_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11951 if ${ac_cv_lib_svld_dlopen+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lsvld $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dlopen ();
11967 main ()
11969 return dlopen ();
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_svld_dlopen=yes
11976 else
11977 ac_cv_lib_svld_dlopen=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11990 if ${ac_cv_lib_dld_dld_link+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-ldld $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char dld_link ();
12006 main ()
12008 return dld_link ();
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_lib_dld_dld_link=yes
12015 else
12016 ac_cv_lib_dld_dld_link=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12044 esac
12046 if test "x$lt_cv_dlopen" != xno; then
12047 enable_dlopen=yes
12048 else
12049 enable_dlopen=no
12052 case $lt_cv_dlopen in
12053 dlopen)
12054 save_CPPFLAGS="$CPPFLAGS"
12055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12057 save_LDFLAGS="$LDFLAGS"
12058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12060 save_LIBS="$LIBS"
12061 LIBS="$lt_cv_dlopen_libs $LIBS"
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12065 if ${lt_cv_dlopen_self+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 if test "$cross_compiling" = yes; then :
12069 lt_cv_dlopen_self=cross
12070 else
12071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12072 lt_status=$lt_dlunknown
12073 cat > conftest.$ac_ext <<_LT_EOF
12074 #line $LINENO "configure"
12075 #include "confdefs.h"
12077 #if HAVE_DLFCN_H
12078 #include <dlfcn.h>
12079 #endif
12081 #include <stdio.h>
12083 #ifdef RTLD_GLOBAL
12084 # define LT_DLGLOBAL RTLD_GLOBAL
12085 #else
12086 # ifdef DL_GLOBAL
12087 # define LT_DLGLOBAL DL_GLOBAL
12088 # else
12089 # define LT_DLGLOBAL 0
12090 # endif
12091 #endif
12093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12094 find out it does not work in some platform. */
12095 #ifndef LT_DLLAZY_OR_NOW
12096 # ifdef RTLD_LAZY
12097 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12098 # else
12099 # ifdef DL_LAZY
12100 # define LT_DLLAZY_OR_NOW DL_LAZY
12101 # else
12102 # ifdef RTLD_NOW
12103 # define LT_DLLAZY_OR_NOW RTLD_NOW
12104 # else
12105 # ifdef DL_NOW
12106 # define LT_DLLAZY_OR_NOW DL_NOW
12107 # else
12108 # define LT_DLLAZY_OR_NOW 0
12109 # endif
12110 # endif
12111 # endif
12112 # endif
12113 #endif
12115 /* When -fvisbility=hidden is used, assume the code has been annotated
12116 correspondingly for the symbols needed. */
12117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12118 int fnord () __attribute__((visibility("default")));
12119 #endif
12121 int fnord () { return 42; }
12122 int main ()
12124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12125 int status = $lt_dlunknown;
12127 if (self)
12129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12130 else
12132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12133 else puts (dlerror ());
12135 /* dlclose (self); */
12137 else
12138 puts (dlerror ());
12140 return status;
12142 _LT_EOF
12143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12144 (eval $ac_link) 2>&5
12145 ac_status=$?
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12148 (./conftest; exit; ) >&5 2>/dev/null
12149 lt_status=$?
12150 case x$lt_status in
12151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12154 esac
12155 else :
12156 # compilation failed
12157 lt_cv_dlopen_self=no
12160 rm -fr conftest*
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12165 $as_echo "$lt_cv_dlopen_self" >&6; }
12167 if test "x$lt_cv_dlopen_self" = xyes; then
12168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12171 if ${lt_cv_dlopen_self_static+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test "$cross_compiling" = yes; then :
12175 lt_cv_dlopen_self_static=cross
12176 else
12177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12178 lt_status=$lt_dlunknown
12179 cat > conftest.$ac_ext <<_LT_EOF
12180 #line $LINENO "configure"
12181 #include "confdefs.h"
12183 #if HAVE_DLFCN_H
12184 #include <dlfcn.h>
12185 #endif
12187 #include <stdio.h>
12189 #ifdef RTLD_GLOBAL
12190 # define LT_DLGLOBAL RTLD_GLOBAL
12191 #else
12192 # ifdef DL_GLOBAL
12193 # define LT_DLGLOBAL DL_GLOBAL
12194 # else
12195 # define LT_DLGLOBAL 0
12196 # endif
12197 #endif
12199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12200 find out it does not work in some platform. */
12201 #ifndef LT_DLLAZY_OR_NOW
12202 # ifdef RTLD_LAZY
12203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12204 # else
12205 # ifdef DL_LAZY
12206 # define LT_DLLAZY_OR_NOW DL_LAZY
12207 # else
12208 # ifdef RTLD_NOW
12209 # define LT_DLLAZY_OR_NOW RTLD_NOW
12210 # else
12211 # ifdef DL_NOW
12212 # define LT_DLLAZY_OR_NOW DL_NOW
12213 # else
12214 # define LT_DLLAZY_OR_NOW 0
12215 # endif
12216 # endif
12217 # endif
12218 # endif
12219 #endif
12221 /* When -fvisbility=hidden is used, assume the code has been annotated
12222 correspondingly for the symbols needed. */
12223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12224 int fnord () __attribute__((visibility("default")));
12225 #endif
12227 int fnord () { return 42; }
12228 int main ()
12230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12231 int status = $lt_dlunknown;
12233 if (self)
12235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12236 else
12238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12239 else puts (dlerror ());
12241 /* dlclose (self); */
12243 else
12244 puts (dlerror ());
12246 return status;
12248 _LT_EOF
12249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12250 (eval $ac_link) 2>&5
12251 ac_status=$?
12252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12254 (./conftest; exit; ) >&5 2>/dev/null
12255 lt_status=$?
12256 case x$lt_status in
12257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12260 esac
12261 else :
12262 # compilation failed
12263 lt_cv_dlopen_self_static=no
12266 rm -fr conftest*
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12274 CPPFLAGS="$save_CPPFLAGS"
12275 LDFLAGS="$save_LDFLAGS"
12276 LIBS="$save_LIBS"
12278 esac
12280 case $lt_cv_dlopen_self in
12281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12282 *) enable_dlopen_self=unknown ;;
12283 esac
12285 case $lt_cv_dlopen_self_static in
12286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12287 *) enable_dlopen_self_static=unknown ;;
12288 esac
12307 striplib=
12308 old_striplib=
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12316 else
12317 # FIXME - insert some real tests, host_os isn't really good enough
12318 case $host_os in
12319 darwin*)
12320 if test -n "$STRIP" ; then
12321 striplib="$STRIP -x"
12322 old_striplib="$STRIP -S"
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12334 esac
12348 # Report which library types will actually be built
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12352 $as_echo "$can_build_shared" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12355 $as_echo_n "checking whether to build shared libraries... " >&6; }
12356 test "$can_build_shared" = "no" && enable_shared=no
12358 # On AIX, shared libraries and static libraries use the same namespace, and
12359 # are all built from PIC.
12360 case $host_os in
12361 aix3*)
12362 test "$enable_shared" = yes && enable_static=no
12363 if test -n "$RANLIB"; then
12364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12365 postinstall_cmds='$RANLIB $lib'
12369 aix[4-9]*)
12370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12371 test "$enable_shared" = yes && enable_static=no
12374 esac
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12376 $as_echo "$enable_shared" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12379 $as_echo_n "checking whether to build static libraries... " >&6; }
12380 # Make sure either enable_shared or enable_static is yes.
12381 test "$enable_shared" = yes || enable_static=yes
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12383 $as_echo "$enable_static" >&6; }
12389 ac_ext=c
12390 ac_cpp='$CPP $CPPFLAGS'
12391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395 CC="$lt_save_CC"
12411 ac_config_commands="$ac_config_commands libtool"
12416 # Only expand once:
12421 # Extract the first word of "ar", so it can be a program name with args.
12422 set dummy ar; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_path_AR+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 case $AR in
12429 [\\/]* | ?:[\\/]*)
12430 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12448 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12450 esac
12452 AR=$ac_cv_path_AR
12453 if test -n "$AR"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12455 $as_echo "$AR" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12462 # Extract the first word of "rm", so it can be a program name with args.
12463 set dummy rm; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if ${ac_cv_path_RM+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 case $RM in
12470 [\\/]* | ?:[\\/]*)
12471 ac_cv_path_RM="$RM" # Let the user override the test with a path.
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12485 done
12486 done
12487 IFS=$as_save_IFS
12489 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
12491 esac
12493 RM=$ac_cv_path_RM
12494 if test -n "$RM"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12496 $as_echo "$RM" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12503 # Extract the first word of "cp", so it can be a program name with args.
12504 set dummy cp; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_CP+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 case $CP in
12511 [\\/]* | ?:[\\/]*)
12512 ac_cv_path_CP="$CP" # Let the user override the test with a path.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12526 done
12527 done
12528 IFS=$as_save_IFS
12530 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
12532 esac
12534 CP=$ac_cv_path_CP
12535 if test -n "$CP"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
12537 $as_echo "$CP" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12544 # Extract the first word of "ln", so it can be a program name with args.
12545 set dummy ln; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_path_LN+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 case $LN in
12552 [\\/]* | ?:[\\/]*)
12553 ac_cv_path_LN="$LN" # Let the user override the test with a path.
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12567 done
12568 done
12569 IFS=$as_save_IFS
12571 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
12573 esac
12575 LN=$ac_cv_path_LN
12576 if test -n "$LN"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
12578 $as_echo "$LN" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12585 # Extract the first word of "ls", so it can be a program name with args.
12586 set dummy ls; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_LS+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case $LS in
12593 [\\/]* | ?:[\\/]*)
12594 ac_cv_path_LS="$LS" # Let the user override the test with a path.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12608 done
12609 done
12610 IFS=$as_save_IFS
12612 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
12614 esac
12616 LS=$ac_cv_path_LS
12617 if test -n "$LS"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
12619 $as_echo "$LS" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12626 # Extract the first word of "sed", so it can be a program name with args.
12627 set dummy sed; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_path_SED+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 case $SED in
12634 [\\/]* | ?:[\\/]*)
12635 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12645 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12649 done
12650 done
12651 IFS=$as_save_IFS
12653 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12655 esac
12657 SED=$ac_cv_path_SED
12658 if test -n "$SED"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12660 $as_echo "$SED" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12667 # Extract the first word of "make", so it can be a program name with args.
12668 set dummy make; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_path_MAKE+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 case $MAKE in
12675 [\\/]* | ?:[\\/]*)
12676 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12686 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12695 esac
12697 MAKE=$ac_cv_path_MAKE
12698 if test -n "$MAKE"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
12700 $as_echo "$MAKE" >&6; }
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12712 $as_echo_n "checking whether NLS is requested... " >&6; }
12713 # Check whether --enable-nls was given.
12714 if test "${enable_nls+set}" = set; then :
12715 enableval=$enable_nls; USE_NLS=$enableval
12716 else
12717 USE_NLS=yes
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12721 $as_echo "$USE_NLS" >&6; }
12728 # Prepare PATH_SEPARATOR.
12729 # The user is always right.
12730 if test "${PATH_SEPARATOR+set}" != set; then
12731 echo "#! /bin/sh" >conf$$.sh
12732 echo "exit 0" >>conf$$.sh
12733 chmod +x conf$$.sh
12734 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12735 PATH_SEPARATOR=';'
12736 else
12737 PATH_SEPARATOR=:
12739 rm -f conf$$.sh
12742 # Find out how to test for executable files. Don't use a zero-byte file,
12743 # as systems may use methods other than mode bits to determine executability.
12744 cat >conf$$.file <<_ASEOF
12745 #! /bin/sh
12746 exit 0
12747 _ASEOF
12748 chmod +x conf$$.file
12749 if test -x conf$$.file >/dev/null 2>&1; then
12750 ac_executable_p="test -x"
12751 else
12752 ac_executable_p="test -f"
12754 rm -f conf$$.file
12756 # Extract the first word of "msgfmt", so it can be a program name with args.
12757 set dummy msgfmt; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if ${ac_cv_path_MSGFMT+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 case "$MSGFMT" in
12764 [\\/]* | ?:[\\/]*)
12765 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12768 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12769 for ac_dir in $PATH; do
12770 IFS="$ac_save_IFS"
12771 test -z "$ac_dir" && ac_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12774 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12775 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12776 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12777 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12778 break 2
12781 done
12782 done
12783 IFS="$ac_save_IFS"
12784 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12786 esac
12788 MSGFMT="$ac_cv_path_MSGFMT"
12789 if test "$MSGFMT" != ":"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12791 $as_echo "$MSGFMT" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12797 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12798 set dummy gmsgfmt; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_path_GMSGFMT+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 case $GMSGFMT in
12805 [\\/]* | ?:[\\/]*)
12806 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12826 esac
12828 GMSGFMT=$ac_cv_path_GMSGFMT
12829 if test -n "$GMSGFMT"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12831 $as_echo "$GMSGFMT" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12839 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12840 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12841 *) MSGFMT_015=$MSGFMT ;;
12842 esac
12844 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12845 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12846 *) GMSGFMT_015=$GMSGFMT ;;
12847 esac
12851 # Prepare PATH_SEPARATOR.
12852 # The user is always right.
12853 if test "${PATH_SEPARATOR+set}" != set; then
12854 echo "#! /bin/sh" >conf$$.sh
12855 echo "exit 0" >>conf$$.sh
12856 chmod +x conf$$.sh
12857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12858 PATH_SEPARATOR=';'
12859 else
12860 PATH_SEPARATOR=:
12862 rm -f conf$$.sh
12865 # Find out how to test for executable files. Don't use a zero-byte file,
12866 # as systems may use methods other than mode bits to determine executability.
12867 cat >conf$$.file <<_ASEOF
12868 #! /bin/sh
12869 exit 0
12870 _ASEOF
12871 chmod +x conf$$.file
12872 if test -x conf$$.file >/dev/null 2>&1; then
12873 ac_executable_p="test -x"
12874 else
12875 ac_executable_p="test -f"
12877 rm -f conf$$.file
12879 # Extract the first word of "xgettext", so it can be a program name with args.
12880 set dummy xgettext; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_XGETTEXT+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 case "$XGETTEXT" in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12891 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12892 for ac_dir in $PATH; do
12893 IFS="$ac_save_IFS"
12894 test -z "$ac_dir" && ac_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12897 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12898 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12899 (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
12900 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12901 break 2
12904 done
12905 done
12906 IFS="$ac_save_IFS"
12907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12909 esac
12911 XGETTEXT="$ac_cv_path_XGETTEXT"
12912 if test "$XGETTEXT" != ":"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12914 $as_echo "$XGETTEXT" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12920 rm -f messages.po
12922 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12923 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12924 *) XGETTEXT_015=$XGETTEXT ;;
12925 esac
12929 # Prepare PATH_SEPARATOR.
12930 # The user is always right.
12931 if test "${PATH_SEPARATOR+set}" != set; then
12932 echo "#! /bin/sh" >conf$$.sh
12933 echo "exit 0" >>conf$$.sh
12934 chmod +x conf$$.sh
12935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12936 PATH_SEPARATOR=';'
12937 else
12938 PATH_SEPARATOR=:
12940 rm -f conf$$.sh
12943 # Find out how to test for executable files. Don't use a zero-byte file,
12944 # as systems may use methods other than mode bits to determine executability.
12945 cat >conf$$.file <<_ASEOF
12946 #! /bin/sh
12947 exit 0
12948 _ASEOF
12949 chmod +x conf$$.file
12950 if test -x conf$$.file >/dev/null 2>&1; then
12951 ac_executable_p="test -x"
12952 else
12953 ac_executable_p="test -f"
12955 rm -f conf$$.file
12957 # Extract the first word of "msgmerge", so it can be a program name with args.
12958 set dummy msgmerge; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_path_MSGMERGE+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 case "$MSGMERGE" in
12965 [\\/]* | ?:[\\/]*)
12966 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12970 for ac_dir in $PATH; do
12971 IFS="$ac_save_IFS"
12972 test -z "$ac_dir" && ac_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12975 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12976 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12977 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12978 break 2
12981 done
12982 done
12983 IFS="$ac_save_IFS"
12984 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12986 esac
12988 MSGMERGE="$ac_cv_path_MSGMERGE"
12989 if test "$MSGMERGE" != ":"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12991 $as_echo "$MSGMERGE" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12998 test -n "$localedir" || localedir='${datadir}/locale'
13001 ac_config_commands="$ac_config_commands po-directories"
13005 if test "X$prefix" = "XNONE"; then
13006 acl_final_prefix="$ac_default_prefix"
13007 else
13008 acl_final_prefix="$prefix"
13010 if test "X$exec_prefix" = "XNONE"; then
13011 acl_final_exec_prefix='${prefix}'
13012 else
13013 acl_final_exec_prefix="$exec_prefix"
13015 acl_save_prefix="$prefix"
13016 prefix="$acl_final_prefix"
13017 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13018 prefix="$acl_save_prefix"
13021 # Check whether --with-gnu-ld was given.
13022 if test "${with_gnu_ld+set}" = set; then :
13023 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13024 else
13025 with_gnu_ld=no
13028 # Prepare PATH_SEPARATOR.
13029 # The user is always right.
13030 if test "${PATH_SEPARATOR+set}" != set; then
13031 echo "#! /bin/sh" >conf$$.sh
13032 echo "exit 0" >>conf$$.sh
13033 chmod +x conf$$.sh
13034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13035 PATH_SEPARATOR=';'
13036 else
13037 PATH_SEPARATOR=:
13039 rm -f conf$$.sh
13041 ac_prog=ld
13042 if test "$GCC" = yes; then
13043 # Check if gcc -print-prog-name=ld gives a path.
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13045 $as_echo_n "checking for ld used by GCC... " >&6; }
13046 case $host in
13047 *-*-mingw*)
13048 # gcc leaves a trailing carriage return which upsets mingw
13049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13052 esac
13053 case $ac_prog in
13054 # Accept absolute paths.
13055 [\\/]* | [A-Za-z]:[\\/]*)
13056 re_direlt='/[^/][^/]*/\.\./'
13057 # Canonicalize the path of ld
13058 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13059 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13060 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13061 done
13062 test -z "$LD" && LD="$ac_prog"
13065 # If it fails, then pretend we aren't using GCC.
13066 ac_prog=ld
13069 # If it is relative, then search for the first ld in PATH.
13070 with_gnu_ld=unknown
13072 esac
13073 elif test "$with_gnu_ld" = yes; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13075 $as_echo_n "checking for GNU ld... " >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13078 $as_echo_n "checking for non-GNU ld... " >&6; }
13080 if ${acl_cv_path_LD+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -z "$LD"; then
13084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13085 for ac_dir in $PATH; do
13086 test -z "$ac_dir" && ac_dir=.
13087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13088 acl_cv_path_LD="$ac_dir/$ac_prog"
13089 # Check to see if the program is GNU ld. I'd rather use --version,
13090 # but apparently some GNU ld's only accept -v.
13091 # Break only if it was the GNU/non-GNU ld that we prefer.
13092 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13093 *GNU* | *'with BFD'*)
13094 test "$with_gnu_ld" != no && break ;;
13096 test "$with_gnu_ld" != yes && break ;;
13097 esac
13099 done
13100 IFS="$ac_save_ifs"
13101 else
13102 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13106 LD="$acl_cv_path_LD"
13107 if test -n "$LD"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13109 $as_echo "$LD" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13117 if ${acl_cv_prog_gnu_ld+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13121 case `$LD -v 2>&1 </dev/null` in
13122 *GNU* | *'with BFD'*)
13123 acl_cv_prog_gnu_ld=yes ;;
13125 acl_cv_prog_gnu_ld=no ;;
13126 esac
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13129 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13130 with_gnu_ld=$acl_cv_prog_gnu_ld
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13136 $as_echo_n "checking for shared library run path origin... " >&6; }
13137 if ${acl_cv_rpath+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13141 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13142 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13143 . ./conftest.sh
13144 rm -f ./conftest.sh
13145 acl_cv_rpath=done
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13149 $as_echo "$acl_cv_rpath" >&6; }
13150 wl="$acl_cv_wl"
13151 libext="$acl_cv_libext"
13152 shlibext="$acl_cv_shlibext"
13153 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13154 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13155 hardcode_direct="$acl_cv_hardcode_direct"
13156 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13157 # Check whether --enable-rpath was given.
13158 if test "${enable_rpath+set}" = set; then :
13159 enableval=$enable_rpath; :
13160 else
13161 enable_rpath=yes
13166 acl_libdirstem=lib
13167 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13168 if test -n "$searchpath"; then
13169 acl_save_IFS="${IFS= }"; IFS=":"
13170 for searchdir in $searchpath; do
13171 if test -d "$searchdir"; then
13172 case "$searchdir" in
13173 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13174 *) searchdir=`cd "$searchdir" && pwd`
13175 case "$searchdir" in
13176 */lib64 ) acl_libdirstem=lib64 ;;
13177 esac ;;
13178 esac
13180 done
13181 IFS="$acl_save_IFS"
13191 use_additional=yes
13193 acl_save_prefix="$prefix"
13194 prefix="$acl_final_prefix"
13195 acl_save_exec_prefix="$exec_prefix"
13196 exec_prefix="$acl_final_exec_prefix"
13198 eval additional_includedir=\"$includedir\"
13199 eval additional_libdir=\"$libdir\"
13201 exec_prefix="$acl_save_exec_prefix"
13202 prefix="$acl_save_prefix"
13205 # Check whether --with-libiconv-prefix was given.
13206 if test "${with_libiconv_prefix+set}" = set; then :
13207 withval=$with_libiconv_prefix;
13208 if test "X$withval" = "Xno"; then
13209 use_additional=no
13210 else
13211 if test "X$withval" = "X"; then
13213 acl_save_prefix="$prefix"
13214 prefix="$acl_final_prefix"
13215 acl_save_exec_prefix="$exec_prefix"
13216 exec_prefix="$acl_final_exec_prefix"
13218 eval additional_includedir=\"$includedir\"
13219 eval additional_libdir=\"$libdir\"
13221 exec_prefix="$acl_save_exec_prefix"
13222 prefix="$acl_save_prefix"
13224 else
13225 additional_includedir="$withval/include"
13226 additional_libdir="$withval/$acl_libdirstem"
13232 LIBICONV=
13233 LTLIBICONV=
13234 INCICONV=
13235 rpathdirs=
13236 ltrpathdirs=
13237 names_already_handled=
13238 names_next_round='iconv '
13239 while test -n "$names_next_round"; do
13240 names_this_round="$names_next_round"
13241 names_next_round=
13242 for name in $names_this_round; do
13243 already_handled=
13244 for n in $names_already_handled; do
13245 if test "$n" = "$name"; then
13246 already_handled=yes
13247 break
13249 done
13250 if test -z "$already_handled"; then
13251 names_already_handled="$names_already_handled $name"
13252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13253 eval value=\"\$HAVE_LIB$uppername\"
13254 if test -n "$value"; then
13255 if test "$value" = yes; then
13256 eval value=\"\$LIB$uppername\"
13257 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13258 eval value=\"\$LTLIB$uppername\"
13259 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13260 else
13263 else
13264 found_dir=
13265 found_la=
13266 found_so=
13267 found_a=
13268 if test $use_additional = yes; then
13269 if test -n "$shlibext" \
13270 && { test -f "$additional_libdir/lib$name.$shlibext" \
13271 || { test "$shlibext" = dll \
13272 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13273 found_dir="$additional_libdir"
13274 if test -f "$additional_libdir/lib$name.$shlibext"; then
13275 found_so="$additional_libdir/lib$name.$shlibext"
13276 else
13277 found_so="$additional_libdir/lib$name.dll.a"
13279 if test -f "$additional_libdir/lib$name.la"; then
13280 found_la="$additional_libdir/lib$name.la"
13282 else
13283 if test -f "$additional_libdir/lib$name.$libext"; then
13284 found_dir="$additional_libdir"
13285 found_a="$additional_libdir/lib$name.$libext"
13286 if test -f "$additional_libdir/lib$name.la"; then
13287 found_la="$additional_libdir/lib$name.la"
13292 if test "X$found_dir" = "X"; then
13293 for x in $LDFLAGS $LTLIBICONV; do
13295 acl_save_prefix="$prefix"
13296 prefix="$acl_final_prefix"
13297 acl_save_exec_prefix="$exec_prefix"
13298 exec_prefix="$acl_final_exec_prefix"
13299 eval x=\"$x\"
13300 exec_prefix="$acl_save_exec_prefix"
13301 prefix="$acl_save_prefix"
13303 case "$x" in
13304 -L*)
13305 dir=`echo "X$x" | sed -e 's/^X-L//'`
13306 if test -n "$shlibext" \
13307 && { test -f "$dir/lib$name.$shlibext" \
13308 || { test "$shlibext" = dll \
13309 && test -f "$dir/lib$name.dll.a"; }; }; then
13310 found_dir="$dir"
13311 if test -f "$dir/lib$name.$shlibext"; then
13312 found_so="$dir/lib$name.$shlibext"
13313 else
13314 found_so="$dir/lib$name.dll.a"
13316 if test -f "$dir/lib$name.la"; then
13317 found_la="$dir/lib$name.la"
13319 else
13320 if test -f "$dir/lib$name.$libext"; then
13321 found_dir="$dir"
13322 found_a="$dir/lib$name.$libext"
13323 if test -f "$dir/lib$name.la"; then
13324 found_la="$dir/lib$name.la"
13329 esac
13330 if test "X$found_dir" != "X"; then
13331 break
13333 done
13335 if test "X$found_dir" != "X"; then
13336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13337 if test "X$found_so" != "X"; then
13338 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13340 else
13341 haveit=
13342 for x in $ltrpathdirs; do
13343 if test "X$x" = "X$found_dir"; then
13344 haveit=yes
13345 break
13347 done
13348 if test -z "$haveit"; then
13349 ltrpathdirs="$ltrpathdirs $found_dir"
13351 if test "$hardcode_direct" = yes; then
13352 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13353 else
13354 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13356 haveit=
13357 for x in $rpathdirs; do
13358 if test "X$x" = "X$found_dir"; then
13359 haveit=yes
13360 break
13362 done
13363 if test -z "$haveit"; then
13364 rpathdirs="$rpathdirs $found_dir"
13366 else
13367 haveit=
13368 for x in $LDFLAGS $LIBICONV; do
13370 acl_save_prefix="$prefix"
13371 prefix="$acl_final_prefix"
13372 acl_save_exec_prefix="$exec_prefix"
13373 exec_prefix="$acl_final_exec_prefix"
13374 eval x=\"$x\"
13375 exec_prefix="$acl_save_exec_prefix"
13376 prefix="$acl_save_prefix"
13378 if test "X$x" = "X-L$found_dir"; then
13379 haveit=yes
13380 break
13382 done
13383 if test -z "$haveit"; then
13384 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13386 if test "$hardcode_minus_L" != no; then
13387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13388 else
13389 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13394 else
13395 if test "X$found_a" != "X"; then
13396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13397 else
13398 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13401 additional_includedir=
13402 case "$found_dir" in
13403 */$acl_libdirstem | */$acl_libdirstem/)
13404 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13405 additional_includedir="$basedir/include"
13407 esac
13408 if test "X$additional_includedir" != "X"; then
13409 if test "X$additional_includedir" != "X/usr/include"; then
13410 haveit=
13411 if test "X$additional_includedir" = "X/usr/local/include"; then
13412 if test -n "$GCC"; then
13413 case $host_os in
13414 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13415 esac
13418 if test -z "$haveit"; then
13419 for x in $CPPFLAGS $INCICONV; do
13421 acl_save_prefix="$prefix"
13422 prefix="$acl_final_prefix"
13423 acl_save_exec_prefix="$exec_prefix"
13424 exec_prefix="$acl_final_exec_prefix"
13425 eval x=\"$x\"
13426 exec_prefix="$acl_save_exec_prefix"
13427 prefix="$acl_save_prefix"
13429 if test "X$x" = "X-I$additional_includedir"; then
13430 haveit=yes
13431 break
13433 done
13434 if test -z "$haveit"; then
13435 if test -d "$additional_includedir"; then
13436 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13442 if test -n "$found_la"; then
13443 save_libdir="$libdir"
13444 case "$found_la" in
13445 */* | *\\*) . "$found_la" ;;
13446 *) . "./$found_la" ;;
13447 esac
13448 libdir="$save_libdir"
13449 for dep in $dependency_libs; do
13450 case "$dep" in
13451 -L*)
13452 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13453 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13454 haveit=
13455 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13456 if test -n "$GCC"; then
13457 case $host_os in
13458 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13459 esac
13462 if test -z "$haveit"; then
13463 haveit=
13464 for x in $LDFLAGS $LIBICONV; do
13466 acl_save_prefix="$prefix"
13467 prefix="$acl_final_prefix"
13468 acl_save_exec_prefix="$exec_prefix"
13469 exec_prefix="$acl_final_exec_prefix"
13470 eval x=\"$x\"
13471 exec_prefix="$acl_save_exec_prefix"
13472 prefix="$acl_save_prefix"
13474 if test "X$x" = "X-L$additional_libdir"; then
13475 haveit=yes
13476 break
13478 done
13479 if test -z "$haveit"; then
13480 if test -d "$additional_libdir"; then
13481 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13484 haveit=
13485 for x in $LDFLAGS $LTLIBICONV; do
13487 acl_save_prefix="$prefix"
13488 prefix="$acl_final_prefix"
13489 acl_save_exec_prefix="$exec_prefix"
13490 exec_prefix="$acl_final_exec_prefix"
13491 eval x=\"$x\"
13492 exec_prefix="$acl_save_exec_prefix"
13493 prefix="$acl_save_prefix"
13495 if test "X$x" = "X-L$additional_libdir"; then
13496 haveit=yes
13497 break
13499 done
13500 if test -z "$haveit"; then
13501 if test -d "$additional_libdir"; then
13502 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13508 -R*)
13509 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13510 if test "$enable_rpath" != no; then
13511 haveit=
13512 for x in $rpathdirs; do
13513 if test "X$x" = "X$dir"; then
13514 haveit=yes
13515 break
13517 done
13518 if test -z "$haveit"; then
13519 rpathdirs="$rpathdirs $dir"
13521 haveit=
13522 for x in $ltrpathdirs; do
13523 if test "X$x" = "X$dir"; then
13524 haveit=yes
13525 break
13527 done
13528 if test -z "$haveit"; then
13529 ltrpathdirs="$ltrpathdirs $dir"
13533 -l*)
13534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13536 *.la)
13537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13540 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13543 esac
13544 done
13546 else
13547 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13548 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13552 done
13553 done
13554 if test "X$rpathdirs" != "X"; then
13555 if test -n "$hardcode_libdir_separator"; then
13556 alldirs=
13557 for found_dir in $rpathdirs; do
13558 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13559 done
13560 acl_save_libdir="$libdir"
13561 libdir="$alldirs"
13562 eval flag=\"$hardcode_libdir_flag_spec\"
13563 libdir="$acl_save_libdir"
13564 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13565 else
13566 for found_dir in $rpathdirs; do
13567 acl_save_libdir="$libdir"
13568 libdir="$found_dir"
13569 eval flag=\"$hardcode_libdir_flag_spec\"
13570 libdir="$acl_save_libdir"
13571 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13572 done
13575 if test "X$ltrpathdirs" != "X"; then
13576 for found_dir in $ltrpathdirs; do
13577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13578 done
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13606 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13607 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 gt_save_LIBS="$LIBS"
13611 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <CoreFoundation/CFPreferences.h>
13616 main ()
13618 CFPreferencesCopyAppValue(NULL, NULL)
13620 return 0;
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"; then :
13624 gt_cv_func_CFPreferencesCopyAppValue=yes
13625 else
13626 gt_cv_func_CFPreferencesCopyAppValue=no
13628 rm -f core conftest.err conftest.$ac_objext \
13629 conftest$ac_exeext conftest.$ac_ext
13630 LIBS="$gt_save_LIBS"
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13633 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13634 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13636 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13640 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13641 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 gt_save_LIBS="$LIBS"
13645 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <CoreFoundation/CFLocale.h>
13650 main ()
13652 CFLocaleCopyCurrent();
13654 return 0;
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 gt_cv_func_CFLocaleCopyCurrent=yes
13659 else
13660 gt_cv_func_CFLocaleCopyCurrent=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS="$gt_save_LIBS"
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13667 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13668 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13670 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13673 INTL_MACOSX_LIBS=
13674 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13675 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13683 LIBINTL=
13684 LTLIBINTL=
13685 POSUB=
13687 case " $gt_needs " in
13688 *" need-formatstring-macros "*) gt_api_version=3 ;;
13689 *" need-ngettext "*) gt_api_version=2 ;;
13690 *) gt_api_version=1 ;;
13691 esac
13692 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13693 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13695 if test "$USE_NLS" = "yes"; then
13696 gt_use_preinstalled_gnugettext=no
13699 if test $gt_api_version -ge 3; then
13700 gt_revision_test_code='
13701 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13702 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13703 #endif
13704 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13706 else
13707 gt_revision_test_code=
13709 if test $gt_api_version -ge 2; then
13710 gt_expression_test_code=' + * ngettext ("", "", 0)'
13711 else
13712 gt_expression_test_code=
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13716 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13717 if eval \${$gt_func_gnugettext_libc+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <libintl.h>
13723 $gt_revision_test_code
13724 extern int _nl_msg_cat_cntr;
13725 extern int *_nl_domain_bindings;
13727 main ()
13729 bindtextdomain ("", "");
13730 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13732 return 0;
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 eval "$gt_func_gnugettext_libc=yes"
13737 else
13738 eval "$gt_func_gnugettext_libc=no"
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13743 eval ac_res=\$$gt_func_gnugettext_libc
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13745 $as_echo "$ac_res" >&6; }
13747 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13753 am_save_CPPFLAGS="$CPPFLAGS"
13755 for element in $INCICONV; do
13756 haveit=
13757 for x in $CPPFLAGS; do
13759 acl_save_prefix="$prefix"
13760 prefix="$acl_final_prefix"
13761 acl_save_exec_prefix="$exec_prefix"
13762 exec_prefix="$acl_final_exec_prefix"
13763 eval x=\"$x\"
13764 exec_prefix="$acl_save_exec_prefix"
13765 prefix="$acl_save_prefix"
13767 if test "X$x" = "X$element"; then
13768 haveit=yes
13769 break
13771 done
13772 if test -z "$haveit"; then
13773 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13775 done
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13779 $as_echo_n "checking for iconv... " >&6; }
13780 if ${am_cv_func_iconv+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13784 am_cv_func_iconv="no, consider installing GNU libiconv"
13785 am_cv_lib_iconv=no
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #include <stdlib.h>
13789 #include <iconv.h>
13791 main ()
13793 iconv_t cd = iconv_open("","");
13794 iconv(cd,NULL,NULL,NULL,NULL);
13795 iconv_close(cd);
13797 return 0;
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"; then :
13801 am_cv_func_iconv=yes
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 if test "$am_cv_func_iconv" != yes; then
13806 am_save_LIBS="$LIBS"
13807 LIBS="$LIBS $LIBICONV"
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 #include <stdlib.h>
13811 #include <iconv.h>
13813 main ()
13815 iconv_t cd = iconv_open("","");
13816 iconv(cd,NULL,NULL,NULL,NULL);
13817 iconv_close(cd);
13819 return 0;
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 am_cv_lib_iconv=yes
13824 am_cv_func_iconv=yes
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS="$am_save_LIBS"
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13833 $as_echo "$am_cv_func_iconv" >&6; }
13834 if test "$am_cv_func_iconv" = yes; then
13836 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13839 if test "$am_cv_lib_iconv" = yes; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13841 $as_echo_n "checking how to link with libiconv... " >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13843 $as_echo "$LIBICONV" >&6; }
13844 else
13845 CPPFLAGS="$am_save_CPPFLAGS"
13846 LIBICONV=
13847 LTLIBICONV=
13856 use_additional=yes
13858 acl_save_prefix="$prefix"
13859 prefix="$acl_final_prefix"
13860 acl_save_exec_prefix="$exec_prefix"
13861 exec_prefix="$acl_final_exec_prefix"
13863 eval additional_includedir=\"$includedir\"
13864 eval additional_libdir=\"$libdir\"
13866 exec_prefix="$acl_save_exec_prefix"
13867 prefix="$acl_save_prefix"
13870 # Check whether --with-libintl-prefix was given.
13871 if test "${with_libintl_prefix+set}" = set; then :
13872 withval=$with_libintl_prefix;
13873 if test "X$withval" = "Xno"; then
13874 use_additional=no
13875 else
13876 if test "X$withval" = "X"; then
13878 acl_save_prefix="$prefix"
13879 prefix="$acl_final_prefix"
13880 acl_save_exec_prefix="$exec_prefix"
13881 exec_prefix="$acl_final_exec_prefix"
13883 eval additional_includedir=\"$includedir\"
13884 eval additional_libdir=\"$libdir\"
13886 exec_prefix="$acl_save_exec_prefix"
13887 prefix="$acl_save_prefix"
13889 else
13890 additional_includedir="$withval/include"
13891 additional_libdir="$withval/$acl_libdirstem"
13897 LIBINTL=
13898 LTLIBINTL=
13899 INCINTL=
13900 rpathdirs=
13901 ltrpathdirs=
13902 names_already_handled=
13903 names_next_round='intl '
13904 while test -n "$names_next_round"; do
13905 names_this_round="$names_next_round"
13906 names_next_round=
13907 for name in $names_this_round; do
13908 already_handled=
13909 for n in $names_already_handled; do
13910 if test "$n" = "$name"; then
13911 already_handled=yes
13912 break
13914 done
13915 if test -z "$already_handled"; then
13916 names_already_handled="$names_already_handled $name"
13917 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13918 eval value=\"\$HAVE_LIB$uppername\"
13919 if test -n "$value"; then
13920 if test "$value" = yes; then
13921 eval value=\"\$LIB$uppername\"
13922 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13923 eval value=\"\$LTLIB$uppername\"
13924 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13925 else
13928 else
13929 found_dir=
13930 found_la=
13931 found_so=
13932 found_a=
13933 if test $use_additional = yes; then
13934 if test -n "$shlibext" \
13935 && { test -f "$additional_libdir/lib$name.$shlibext" \
13936 || { test "$shlibext" = dll \
13937 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13938 found_dir="$additional_libdir"
13939 if test -f "$additional_libdir/lib$name.$shlibext"; then
13940 found_so="$additional_libdir/lib$name.$shlibext"
13941 else
13942 found_so="$additional_libdir/lib$name.dll.a"
13944 if test -f "$additional_libdir/lib$name.la"; then
13945 found_la="$additional_libdir/lib$name.la"
13947 else
13948 if test -f "$additional_libdir/lib$name.$libext"; then
13949 found_dir="$additional_libdir"
13950 found_a="$additional_libdir/lib$name.$libext"
13951 if test -f "$additional_libdir/lib$name.la"; then
13952 found_la="$additional_libdir/lib$name.la"
13957 if test "X$found_dir" = "X"; then
13958 for x in $LDFLAGS $LTLIBINTL; do
13960 acl_save_prefix="$prefix"
13961 prefix="$acl_final_prefix"
13962 acl_save_exec_prefix="$exec_prefix"
13963 exec_prefix="$acl_final_exec_prefix"
13964 eval x=\"$x\"
13965 exec_prefix="$acl_save_exec_prefix"
13966 prefix="$acl_save_prefix"
13968 case "$x" in
13969 -L*)
13970 dir=`echo "X$x" | sed -e 's/^X-L//'`
13971 if test -n "$shlibext" \
13972 && { test -f "$dir/lib$name.$shlibext" \
13973 || { test "$shlibext" = dll \
13974 && test -f "$dir/lib$name.dll.a"; }; }; then
13975 found_dir="$dir"
13976 if test -f "$dir/lib$name.$shlibext"; then
13977 found_so="$dir/lib$name.$shlibext"
13978 else
13979 found_so="$dir/lib$name.dll.a"
13981 if test -f "$dir/lib$name.la"; then
13982 found_la="$dir/lib$name.la"
13984 else
13985 if test -f "$dir/lib$name.$libext"; then
13986 found_dir="$dir"
13987 found_a="$dir/lib$name.$libext"
13988 if test -f "$dir/lib$name.la"; then
13989 found_la="$dir/lib$name.la"
13994 esac
13995 if test "X$found_dir" != "X"; then
13996 break
13998 done
14000 if test "X$found_dir" != "X"; then
14001 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14002 if test "X$found_so" != "X"; then
14003 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14005 else
14006 haveit=
14007 for x in $ltrpathdirs; do
14008 if test "X$x" = "X$found_dir"; then
14009 haveit=yes
14010 break
14012 done
14013 if test -z "$haveit"; then
14014 ltrpathdirs="$ltrpathdirs $found_dir"
14016 if test "$hardcode_direct" = yes; then
14017 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14018 else
14019 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14020 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14021 haveit=
14022 for x in $rpathdirs; do
14023 if test "X$x" = "X$found_dir"; then
14024 haveit=yes
14025 break
14027 done
14028 if test -z "$haveit"; then
14029 rpathdirs="$rpathdirs $found_dir"
14031 else
14032 haveit=
14033 for x in $LDFLAGS $LIBINTL; do
14035 acl_save_prefix="$prefix"
14036 prefix="$acl_final_prefix"
14037 acl_save_exec_prefix="$exec_prefix"
14038 exec_prefix="$acl_final_exec_prefix"
14039 eval x=\"$x\"
14040 exec_prefix="$acl_save_exec_prefix"
14041 prefix="$acl_save_prefix"
14043 if test "X$x" = "X-L$found_dir"; then
14044 haveit=yes
14045 break
14047 done
14048 if test -z "$haveit"; then
14049 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14051 if test "$hardcode_minus_L" != no; then
14052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14053 else
14054 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14059 else
14060 if test "X$found_a" != "X"; then
14061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14062 else
14063 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14066 additional_includedir=
14067 case "$found_dir" in
14068 */$acl_libdirstem | */$acl_libdirstem/)
14069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14070 additional_includedir="$basedir/include"
14072 esac
14073 if test "X$additional_includedir" != "X"; then
14074 if test "X$additional_includedir" != "X/usr/include"; then
14075 haveit=
14076 if test "X$additional_includedir" = "X/usr/local/include"; then
14077 if test -n "$GCC"; then
14078 case $host_os in
14079 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14080 esac
14083 if test -z "$haveit"; then
14084 for x in $CPPFLAGS $INCINTL; do
14086 acl_save_prefix="$prefix"
14087 prefix="$acl_final_prefix"
14088 acl_save_exec_prefix="$exec_prefix"
14089 exec_prefix="$acl_final_exec_prefix"
14090 eval x=\"$x\"
14091 exec_prefix="$acl_save_exec_prefix"
14092 prefix="$acl_save_prefix"
14094 if test "X$x" = "X-I$additional_includedir"; then
14095 haveit=yes
14096 break
14098 done
14099 if test -z "$haveit"; then
14100 if test -d "$additional_includedir"; then
14101 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14107 if test -n "$found_la"; then
14108 save_libdir="$libdir"
14109 case "$found_la" in
14110 */* | *\\*) . "$found_la" ;;
14111 *) . "./$found_la" ;;
14112 esac
14113 libdir="$save_libdir"
14114 for dep in $dependency_libs; do
14115 case "$dep" in
14116 -L*)
14117 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14118 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14119 haveit=
14120 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14121 if test -n "$GCC"; then
14122 case $host_os in
14123 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14124 esac
14127 if test -z "$haveit"; then
14128 haveit=
14129 for x in $LDFLAGS $LIBINTL; do
14131 acl_save_prefix="$prefix"
14132 prefix="$acl_final_prefix"
14133 acl_save_exec_prefix="$exec_prefix"
14134 exec_prefix="$acl_final_exec_prefix"
14135 eval x=\"$x\"
14136 exec_prefix="$acl_save_exec_prefix"
14137 prefix="$acl_save_prefix"
14139 if test "X$x" = "X-L$additional_libdir"; then
14140 haveit=yes
14141 break
14143 done
14144 if test -z "$haveit"; then
14145 if test -d "$additional_libdir"; then
14146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14149 haveit=
14150 for x in $LDFLAGS $LTLIBINTL; do
14152 acl_save_prefix="$prefix"
14153 prefix="$acl_final_prefix"
14154 acl_save_exec_prefix="$exec_prefix"
14155 exec_prefix="$acl_final_exec_prefix"
14156 eval x=\"$x\"
14157 exec_prefix="$acl_save_exec_prefix"
14158 prefix="$acl_save_prefix"
14160 if test "X$x" = "X-L$additional_libdir"; then
14161 haveit=yes
14162 break
14164 done
14165 if test -z "$haveit"; then
14166 if test -d "$additional_libdir"; then
14167 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14173 -R*)
14174 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14175 if test "$enable_rpath" != no; then
14176 haveit=
14177 for x in $rpathdirs; do
14178 if test "X$x" = "X$dir"; then
14179 haveit=yes
14180 break
14182 done
14183 if test -z "$haveit"; then
14184 rpathdirs="$rpathdirs $dir"
14186 haveit=
14187 for x in $ltrpathdirs; do
14188 if test "X$x" = "X$dir"; then
14189 haveit=yes
14190 break
14192 done
14193 if test -z "$haveit"; then
14194 ltrpathdirs="$ltrpathdirs $dir"
14198 -l*)
14199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14201 *.la)
14202 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14205 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14206 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14208 esac
14209 done
14211 else
14212 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14217 done
14218 done
14219 if test "X$rpathdirs" != "X"; then
14220 if test -n "$hardcode_libdir_separator"; then
14221 alldirs=
14222 for found_dir in $rpathdirs; do
14223 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14224 done
14225 acl_save_libdir="$libdir"
14226 libdir="$alldirs"
14227 eval flag=\"$hardcode_libdir_flag_spec\"
14228 libdir="$acl_save_libdir"
14229 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14230 else
14231 for found_dir in $rpathdirs; do
14232 acl_save_libdir="$libdir"
14233 libdir="$found_dir"
14234 eval flag=\"$hardcode_libdir_flag_spec\"
14235 libdir="$acl_save_libdir"
14236 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14237 done
14240 if test "X$ltrpathdirs" != "X"; then
14241 for found_dir in $ltrpathdirs; do
14242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14243 done
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14247 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14248 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 gt_save_CPPFLAGS="$CPPFLAGS"
14252 CPPFLAGS="$CPPFLAGS $INCINTL"
14253 gt_save_LIBS="$LIBS"
14254 LIBS="$LIBS $LIBINTL"
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <libintl.h>
14258 $gt_revision_test_code
14259 extern int _nl_msg_cat_cntr;
14260 extern
14261 #ifdef __cplusplus
14263 #endif
14264 const char *_nl_expand_alias (const char *);
14266 main ()
14268 bindtextdomain ("", "");
14269 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14271 return 0;
14273 _ACEOF
14274 if ac_fn_c_try_link "$LINENO"; then :
14275 eval "$gt_func_gnugettext_libintl=yes"
14276 else
14277 eval "$gt_func_gnugettext_libintl=no"
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14282 LIBS="$LIBS $LIBICONV"
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <libintl.h>
14286 $gt_revision_test_code
14287 extern int _nl_msg_cat_cntr;
14288 extern
14289 #ifdef __cplusplus
14291 #endif
14292 const char *_nl_expand_alias (const char *);
14294 main ()
14296 bindtextdomain ("", "");
14297 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14299 return 0;
14301 _ACEOF
14302 if ac_fn_c_try_link "$LINENO"; then :
14303 LIBINTL="$LIBINTL $LIBICONV"
14304 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14305 eval "$gt_func_gnugettext_libintl=yes"
14308 rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
14311 CPPFLAGS="$gt_save_CPPFLAGS"
14312 LIBS="$gt_save_LIBS"
14314 eval ac_res=\$$gt_func_gnugettext_libintl
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14316 $as_echo "$ac_res" >&6; }
14319 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14320 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14321 && test "$PACKAGE" != gettext-runtime \
14322 && test "$PACKAGE" != gettext-tools; }; then
14323 gt_use_preinstalled_gnugettext=yes
14324 else
14325 LIBINTL=
14326 LTLIBINTL=
14327 INCINTL=
14332 if test -n "$INTL_MACOSX_LIBS"; then
14333 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14334 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14335 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14336 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14340 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14341 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14343 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14345 else
14346 USE_NLS=no
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14351 $as_echo_n "checking whether to use NLS... " >&6; }
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14353 $as_echo "$USE_NLS" >&6; }
14354 if test "$USE_NLS" = "yes"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14356 $as_echo_n "checking where the gettext function comes from... " >&6; }
14357 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14358 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14359 gt_source="external libintl"
14360 else
14361 gt_source="libc"
14363 else
14364 gt_source="included intl directory"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14367 $as_echo "$gt_source" >&6; }
14370 if test "$USE_NLS" = "yes"; then
14372 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14373 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14375 $as_echo_n "checking how to link with libintl... " >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14377 $as_echo "$LIBINTL" >&6; }
14379 for element in $INCINTL; do
14380 haveit=
14381 for x in $CPPFLAGS; do
14383 acl_save_prefix="$prefix"
14384 prefix="$acl_final_prefix"
14385 acl_save_exec_prefix="$exec_prefix"
14386 exec_prefix="$acl_final_exec_prefix"
14387 eval x=\"$x\"
14388 exec_prefix="$acl_save_exec_prefix"
14389 prefix="$acl_save_prefix"
14391 if test "X$x" = "X$element"; then
14392 haveit=yes
14393 break
14395 done
14396 if test -z "$haveit"; then
14397 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14399 done
14404 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14407 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14411 POSUB=po
14416 INTLLIBS="$LIBINTL"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14425 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14426 # Check whether --enable-dmalloc was given.
14427 if test "${enable_dmalloc+set}" = set; then :
14428 enableval=$enable_dmalloc;
14431 if test x$enable_dmalloc = "xyes" ; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433 $as_echo "yes" >&6; }
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14440 # Check whether --with-dmalloc-dir was given.
14441 if test "${with_dmalloc_dir+set}" = set; then :
14442 withval=$with_dmalloc_dir;
14443 if test "x$withval" != "xno" ; then
14444 enable_dmalloc = "yes"
14445 CPPFLAGS="$CPPFLAGS -I${withval}"
14446 LDFLAGS="$LDFLAGS -L${withval}"
14452 if test x$enable_dmalloc = "xyes" ; then
14454 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14458 ALPINE_psefcmd="/bin/ps auxww"
14459 ALPINE_psfailed="0"
14460 ALPINE_PSTEST="-"
14462 # Check whether --with-ps-cmd was given.
14463 if test "${with_ps_cmd+set}" = set; then :
14464 withval=$with_ps_cmd;
14465 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
14466 withval=$ALPINE_psefcmd
14468 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14469 if test -n "$ALPINE_PSTEST" ; then
14470 ALPINE_psefcmd="$withval"
14471 else
14472 ALPINE_psfailed="1"
14473 if test "x$ALPINE_psefcmd" != "x$withval" ; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
14475 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
14481 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
14482 withval="$ALPINE_psefcmd"
14483 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14484 if test -z "$ALPINE_PSTEST" ; then
14485 ALPINE_psfailed="1"
14486 else
14487 ALPINE_psfailed="0"
14490 if test "$ALPINE_psfailed" = "0" ; then
14492 cat >>confdefs.h <<_ACEOF
14493 #define PSEFCMD "$ALPINE_psefcmd"
14494 _ACEOF
14498 case $host in
14499 *apple-darwin*)
14500 if test -d /opt/local ; then
14501 localedir="/opt/local/share/locale"
14502 else
14503 localedir="\${datadir}/locale"
14506 *-*-cygwin)
14507 localedir="/usr/share"
14510 localedir="\${datadir}/locale"
14512 esac
14514 # Check whether --with-localedir was given.
14515 if test "${with_localedir+set}" = set; then :
14516 withval=$with_localedir;
14517 case $withval in
14518 yes)
14523 localedir=$withval
14525 esac
14529 localedir="$localedir"
14532 # Setup OS-Specific features
14533 case "$host" in
14534 *darwin*)
14535 # Check whether --enable-osx-universal-binaries was given.
14536 if test "${enable_osx_universal_binaries+set}" = set; then :
14537 enableval=$enable_osx_universal_binaries;
14540 if test "x$enable_osx_universal_binaries" = "xyes" ; then
14541 if test "x$enable_dependency_tracking" != xno ; then
14542 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
14543 Please re-run configure with these options:
14544 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
14546 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
14547 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
14548 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
14549 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
14550 else
14551 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
14553 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
14554 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
14555 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
14556 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
14557 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
14558 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
14561 esac
14564 # Check whether --with-include-path was given.
14565 if test "${with_include_path+set}" = set; then :
14566 withval=$with_include_path;
14567 case $withval in
14570 yes)
14573 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
14574 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
14575 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
14577 esac
14583 # Check whether --with-lib-path was given.
14584 if test "${with_lib_path+set}" = set; then :
14585 withval=$with_lib_path;
14586 case $withval in
14589 yes)
14592 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
14593 LDFLAGS="$LDFLAGS $new_ldflags"
14594 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
14596 esac
14602 # Check whether --with-pubcookie was given.
14603 if test "${with_pubcookie+set}" = set; then :
14604 withval=$with_pubcookie;
14605 if test "x$withval" != "xno" ; then
14606 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
14614 # Check whether --with-web-bin was given.
14615 if test "${with_web_bin+set}" = set; then :
14616 withval=$with_web_bin;
14617 case "$withval" in
14620 yes)
14623 WEB_BINDIR=$withval
14625 esac
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
14631 $as_echo_n "checking option: debugging is enabled... " >&6; }
14632 # Check whether --enable-debug was given.
14633 if test "${enable_debug+set}" = set; then :
14634 enableval=$enable_debug;
14637 if test x$enable_debug != "xno" ; then
14638 AM_CFLAGS="$AM_CFLAGS -g"
14640 $as_echo "#define DEBUG 1" >>confdefs.h
14643 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14647 else
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
14653 $as_echo_n "checking option: optimization is enabled... " >&6; }
14654 # Check whether --enable-optimization was given.
14655 if test "${enable_optimization+set}" = set; then :
14656 enableval=$enable_optimization;
14659 if test x$enable_optimization != "xno" ; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14661 $as_echo "yes" >&6; }
14662 else
14663 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
14664 alpine_c_client_gccoptlevel="-O0"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
14670 $as_echo_n "checking option: mouse support enabled... " >&6; }
14671 # Check whether --enable-mouse was given.
14672 if test "${enable_mouse+set}" = set; then :
14673 enableval=$enable_mouse;
14676 if test x$enable_mouse != "xno" ; then
14678 $as_echo "#define MOUSE /**/" >>confdefs.h
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681 $as_echo "yes" >&6; }
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
14688 $as_echo_n "checking option: quotas enabled... " >&6; }
14689 # Check whether --enable-quotas was given.
14690 if test "${enable_quotas+set}" = set; then :
14691 enableval=$enable_quotas;
14694 if test x$enable_quotas = "xyes" ; then
14696 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14699 $as_echo "yes" >&6; }
14700 else
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702 $as_echo "no" >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
14706 $as_echo_n "checking option: From changing enabled... " >&6; }
14707 # Check whether --enable-from_changing was given.
14708 if test "${enable_from_changing+set}" = set; then :
14709 enableval=$enable_from_changing;
14712 if test x$enable_from_changing != "xno" ; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14714 $as_echo "yes" >&6; }
14715 else
14717 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
14724 $as_echo_n "checking option: background post enabled... " >&6; }
14725 # Check whether --enable-background-post was given.
14726 if test "${enable_background_post+set}" = set; then :
14727 enableval=$enable_background_post;
14730 if test x$enable_background_post != "xno" ; then
14732 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735 $as_echo "yes" >&6; }
14736 else
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 $as_echo "no" >&6; }
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
14742 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
14743 # Check whether --enable-keyboard-lock was given.
14744 if test "${enable_keyboard_lock+set}" = set; then :
14745 enableval=$enable_keyboard_lock;
14748 if test x$enable_keyboard_lock != "xno" ; then
14750 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14753 $as_echo "yes" >&6; }
14754 else
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
14760 $as_echo_n "checking option: from encoding enabled... " >&6; }
14761 # Check whether --enable-from-encoding was given.
14762 if test "${enable_from_encoding+set}" = set; then :
14763 enableval=$enable_from_encoding;
14766 if test x$enable_from_encoding = "xyes" ; then
14768 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 $as_echo "yes" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14778 # Check whether --with-smtp-msa was given.
14779 if test "${with_smtp_msa+set}" = set; then :
14780 withval=$with_smtp_msa;
14781 case "$withval" in
14784 yes)
14785 # Extract the first word of "sendmail", so it can be a program name with args.
14786 set dummy sendmail; ac_word=$2
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14788 $as_echo_n "checking for $ac_word... " >&6; }
14789 if ${ac_cv_path_SENDMAIL+:} false; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 case $SENDMAIL in
14793 [\\/]* | ?:[\\/]*)
14794 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 as_dummy="$PATH:/usr/sbin:/usr/lib"
14799 for as_dir in $as_dummy
14801 IFS=$as_save_IFS
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14807 break 2
14809 done
14810 done
14811 IFS=$as_save_IFS
14813 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14815 esac
14817 SENDMAIL=$ac_cv_path_SENDMAIL
14818 if test -n "$SENDMAIL"; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14820 $as_echo "$SENDMAIL" >&6; }
14821 else
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14829 SENDMAIL=$withval
14831 esac
14833 else
14835 # Extract the first word of "sendmail", so it can be a program name with args.
14836 set dummy sendmail; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_path_SENDMAIL+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 case $SENDMAIL in
14843 [\\/]* | ?:[\\/]*)
14844 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 as_dummy="$PATH:/usr/sbin:/usr/lib"
14849 for as_dir in $as_dummy
14851 IFS=$as_save_IFS
14852 test -z "$as_dir" && as_dir=.
14853 for ac_exec_ext in '' $ac_executable_extensions; do
14854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14855 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14857 break 2
14859 done
14860 done
14861 IFS=$as_save_IFS
14863 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14865 esac
14867 SENDMAIL=$ac_cv_path_SENDMAIL
14868 if test -n "$SENDMAIL"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14870 $as_echo "$SENDMAIL" >&6; }
14871 else
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14880 if test -n "$SENDMAIL" ; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define SENDMAIL "$SENDMAIL"
14884 _ACEOF
14888 smtp_msa_flags="-bs -odb -oem"
14890 # Check whether --with-smtp-msa-flags was given.
14891 if test "${with_smtp_msa_flags+set}" = set; then :
14892 withval=$with_smtp_msa_flags;
14893 if test "x$withval" != "xno" ; then
14894 smtp_msa_flags=$withval
14900 cat >>confdefs.h <<_ACEOF
14901 #define SENDMAILFLAGS "$smtp_msa_flags"
14902 _ACEOF
14905 npa="inews"
14907 # Check whether --with-npa was given.
14908 if test "${with_npa+set}" = set; then :
14909 withval=$with_npa;
14910 case "$withval" in
14913 yes)
14914 # Extract the first word of "inews", so it can be a program name with args.
14915 set dummy inews; ac_word=$2
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14917 $as_echo_n "checking for $ac_word... " >&6; }
14918 if ${ac_cv_path_NPA_PROG+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 case $NPA_PROG in
14922 [\\/]* | ?:[\\/]*)
14923 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 as_dummy="$PATH:/usr/sbin:/usr/lib"
14928 for as_dir in $as_dummy
14930 IFS=$as_save_IFS
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14936 break 2
14938 done
14939 done
14940 IFS=$as_save_IFS
14942 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14944 esac
14946 NPA_PROG=$ac_cv_path_NPA_PROG
14947 if test -n "$NPA_PROG"; then
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14949 $as_echo "$NPA_PROG" >&6; }
14950 else
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14958 NPA_PROG=$withval
14960 esac
14962 else
14964 # Extract the first word of "inews", so it can be a program name with args.
14965 set dummy inews; ac_word=$2
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14967 $as_echo_n "checking for $ac_word... " >&6; }
14968 if ${ac_cv_path_NPA_PROG+:} false; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 case $NPA_PROG in
14972 [\\/]* | ?:[\\/]*)
14973 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 as_dummy="$PATH:/usr/sbin:/usr/lib"
14978 for as_dir in $as_dummy
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14988 done
14989 done
14990 IFS=$as_save_IFS
14992 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14994 esac
14996 NPA_PROG=$ac_cv_path_NPA_PROG
14997 if test -n "$NPA_PROG"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14999 $as_echo "$NPA_PROG" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15010 npa_flags="-h"
15012 # Check whether --with-npa-flags was given.
15013 if test "${with_npa_flags+set}" = set; then :
15014 withval=$with_npa_flags;
15015 if test "x$withval" != "xno" ; then
15016 npa_flags=$withval
15021 if test -n "$NPA_PROG" ; then
15023 cat >>confdefs.h <<_ACEOF
15024 #define SENDNEWS "$NPA_PROG $npa_flags"
15025 _ACEOF
15030 # Check whether --with-password-prog was given.
15031 if test "${with_password_prog+set}" = set; then :
15032 withval=$with_password_prog;
15033 case "$withval" in
15036 yes)
15037 # Extract the first word of "passwd", so it can be a program name with args.
15038 set dummy passwd; ac_word=$2
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15040 $as_echo_n "checking for $ac_word... " >&6; }
15041 if ${ac_cv_path_PWPROG+:} false; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 case $PWPROG in
15045 [\\/]* | ?:[\\/]*)
15046 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 as_dummy="$PATH:/usr/sbin:/usr/lib"
15051 for as_dir in $as_dummy
15053 IFS=$as_save_IFS
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 break 2
15061 done
15062 done
15063 IFS=$as_save_IFS
15065 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15067 esac
15069 PWPROG=$ac_cv_path_PWPROG
15070 if test -n "$PWPROG"; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15072 $as_echo "$PWPROG" >&6; }
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15081 # Extract the first word of "$withval", so it can be a program name with args.
15082 set dummy $withval; ac_word=$2
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084 $as_echo_n "checking for $ac_word... " >&6; }
15085 if ${ac_cv_path_PWPROG+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 case $PWPROG in
15089 [\\/]* | ?:[\\/]*)
15090 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094 as_dummy="$PATH:/usr/sbin:/usr/lib"
15095 for as_dir in $as_dummy
15097 IFS=$as_save_IFS
15098 test -z "$as_dir" && as_dir=.
15099 for ac_exec_ext in '' $ac_executable_extensions; do
15100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15101 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15103 break 2
15105 done
15106 done
15107 IFS=$as_save_IFS
15109 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15111 esac
15113 PWPROG=$ac_cv_path_PWPROG
15114 if test -n "$PWPROG"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15116 $as_echo "$PWPROG" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15124 esac
15126 else
15128 # Extract the first word of "passwd", so it can be a program name with args.
15129 set dummy passwd; ac_word=$2
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15131 $as_echo_n "checking for $ac_word... " >&6; }
15132 if ${ac_cv_path_PWPROG+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 case $PWPROG in
15136 [\\/]* | ?:[\\/]*)
15137 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141 as_dummy="$PATH:/usr/sbin:/usr/lib"
15142 for as_dir in $as_dummy
15144 IFS=$as_save_IFS
15145 test -z "$as_dir" && as_dir=.
15146 for ac_exec_ext in '' $ac_executable_extensions; do
15147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15148 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15150 break 2
15152 done
15153 done
15154 IFS=$as_save_IFS
15156 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15158 esac
15160 PWPROG=$ac_cv_path_PWPROG
15161 if test -n "$PWPROG"; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15163 $as_echo "$PWPROG" >&6; }
15164 else
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166 $as_echo "no" >&6; }
15173 if test -n "$PWPROG" ; then
15175 cat >>confdefs.h <<_ACEOF
15176 #define PASSWD_PROG "$PWPROG"
15177 _ACEOF
15182 # Check whether --with-simple-spellcheck was given.
15183 if test "${with_simple_spellcheck+set}" = set; then :
15184 withval=$with_simple_spellcheck;
15185 if test "x$withval" != "xno" ; then
15186 SPELLPROG=$withval
15189 else
15191 # Extract the first word of "hunspell", so it can be a program name with args.
15192 set dummy hunspell; ac_word=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 $as_echo_n "checking for $ac_word... " >&6; }
15195 if ${ac_cv_prog_SPELLPROG+:} false; then :
15196 $as_echo_n "(cached) " >&6
15197 else
15198 if test -n "$SPELLPROG"; then
15199 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15200 else
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_SPELLPROG="hunspell"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15212 done
15213 done
15214 IFS=$as_save_IFS
15218 SPELLPROG=$ac_cv_prog_SPELLPROG
15219 if test -n "$SPELLPROG"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15221 $as_echo "$SPELLPROG" >&6; }
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15228 if test -z "$SPELLPROG" ; then
15229 # Extract the first word of "aspell", so it can be a program name with args.
15230 set dummy aspell; ac_word=$2
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15232 $as_echo_n "checking for $ac_word... " >&6; }
15233 if ${ac_cv_prog_SPELLPROG+:} false; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15236 if test -n "$SPELLPROG"; then
15237 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15238 else
15239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240 for as_dir in $PATH
15242 IFS=$as_save_IFS
15243 test -z "$as_dir" && as_dir=.
15244 for ac_exec_ext in '' $ac_executable_extensions; do
15245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15246 ac_cv_prog_SPELLPROG="aspell"
15247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15248 break 2
15250 done
15251 done
15252 IFS=$as_save_IFS
15256 SPELLPROG=$ac_cv_prog_SPELLPROG
15257 if test -n "$SPELLPROG"; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15259 $as_echo "$SPELLPROG" >&6; }
15260 else
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15262 $as_echo "no" >&6; }
15266 if test -z "$SPELLPROG" ; then
15267 # Extract the first word of "ispell", so it can be a program name with args.
15268 set dummy ispell; ac_word=$2
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15270 $as_echo_n "checking for $ac_word... " >&6; }
15271 if ${ac_cv_prog_SPELLPROG+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 if test -n "$SPELLPROG"; then
15275 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15276 else
15277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278 for as_dir in $PATH
15280 IFS=$as_save_IFS
15281 test -z "$as_dir" && as_dir=.
15282 for ac_exec_ext in '' $ac_executable_extensions; do
15283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15284 ac_cv_prog_SPELLPROG="ispell"
15285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15286 break 2
15288 done
15289 done
15290 IFS=$as_save_IFS
15294 SPELLPROG=$ac_cv_prog_SPELLPROG
15295 if test -n "$SPELLPROG"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15297 $as_echo "$SPELLPROG" >&6; }
15298 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 $as_echo "no" >&6; }
15304 if test -z "$SPELLPROG" ; then
15305 SPELLPROG="spell"
15313 if test "x$SPELLPROG" != "xno" ; then
15314 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15315 set dummy $SPELLPROG; ac_word=$2
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15317 $as_echo_n "checking for $ac_word... " >&6; }
15318 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 case $alpine_simple_spellcheck in
15322 [\\/]* | ?:[\\/]*)
15323 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335 break 2
15337 done
15338 done
15339 IFS=$as_save_IFS
15342 esac
15344 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15345 if test -n "$alpine_simple_spellcheck"; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15347 $as_echo "$alpine_simple_spellcheck" >&6; }
15348 else
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15354 if test -n "$alpine_simple_spellcheck" ; then
15355 case "$SPELLPROG" in
15356 hunspell)
15357 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15359 aspell)
15360 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15362 ispell)
15363 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15367 esac
15372 # Check whether --with-interactive-spellcheck was given.
15373 if test "${with_interactive_spellcheck+set}" = set; then :
15374 withval=$with_interactive_spellcheck;
15375 if test "x$withval" != "xno" ; then
15376 ISPELLPROG=$withval
15379 else
15381 # Extract the first word of "hunspell", so it can be a program name with args.
15382 set dummy hunspell; ac_word=$2
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15384 $as_echo_n "checking for $ac_word... " >&6; }
15385 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 if test -n "$ISPELLPROG"; then
15389 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15390 else
15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392 for as_dir in $PATH
15394 IFS=$as_save_IFS
15395 test -z "$as_dir" && as_dir=.
15396 for ac_exec_ext in '' $ac_executable_extensions; do
15397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15398 ac_cv_prog_ISPELLPROG="hunspell"
15399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15400 break 2
15402 done
15403 done
15404 IFS=$as_save_IFS
15408 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15409 if test -n "$ISPELLPROG"; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15411 $as_echo "$ISPELLPROG" >&6; }
15412 else
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414 $as_echo "no" >&6; }
15418 if test -z "$ISPELLPROG" ; then
15419 # Extract the first word of "aspell", so it can be a program name with args.
15420 set dummy aspell; ac_word=$2
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15422 $as_echo_n "checking for $ac_word... " >&6; }
15423 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15424 $as_echo_n "(cached) " >&6
15425 else
15426 if test -n "$ISPELLPROG"; then
15427 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15428 else
15429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430 for as_dir in $PATH
15432 IFS=$as_save_IFS
15433 test -z "$as_dir" && as_dir=.
15434 for ac_exec_ext in '' $ac_executable_extensions; do
15435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15436 ac_cv_prog_ISPELLPROG="aspell"
15437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15438 break 2
15440 done
15441 done
15442 IFS=$as_save_IFS
15446 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15447 if test -n "$ISPELLPROG"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15449 $as_echo "$ISPELLPROG" >&6; }
15450 else
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15456 if test -z "$SPELLPROG" ; then
15457 ISPELLPROG="ispell"
15464 if test "x$ISPELLPROG" != "xno" ; then
15465 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15466 set dummy $ISPELLPROG; ac_word=$2
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15468 $as_echo_n "checking for $ac_word... " >&6; }
15469 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15472 case $alpine_interactive_spellcheck in
15473 [\\/]* | ?:[\\/]*)
15474 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478 for as_dir in $PATH
15480 IFS=$as_save_IFS
15481 test -z "$as_dir" && as_dir=.
15482 for ac_exec_ext in '' $ac_executable_extensions; do
15483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15484 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15486 break 2
15488 done
15489 done
15490 IFS=$as_save_IFS
15493 esac
15495 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
15496 if test -n "$alpine_interactive_spellcheck"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
15498 $as_echo "$alpine_interactive_spellcheck" >&6; }
15499 else
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501 $as_echo "no" >&6; }
15505 if test -n "$alpine_interactive_spellcheck" ; then
15506 case "$ISPELLPROG" in
15507 aspell)
15508 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
15512 esac
15516 if test -n "$alpine_interactive_spellcheck" ; then
15518 cat >>confdefs.h <<_ACEOF
15519 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
15520 _ACEOF
15524 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
15525 alpine_simple_spellcheck=test
15528 cat >>confdefs.h <<_ACEOF
15529 #define SPELLER "$alpine_simple_spellcheck"
15530 _ACEOF
15533 case "$prefix" in
15534 NONE) dpv=/usr/local/lib/pine.conf ;;
15535 *) dpv=${prefix}/lib/pine.conf ;;
15536 esac
15538 # Check whether --with-system-pinerc was given.
15539 if test "${with_system_pinerc+set}" = set; then :
15540 withval=$with_system_pinerc;
15541 case "$withval" in
15544 yes)
15547 dpv=$withval
15549 esac
15554 cat >>confdefs.h <<_ACEOF
15555 #define SYSTEM_PINERC "$dpv"
15556 _ACEOF
15559 case "$prefix" in
15560 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
15561 *) dpv=${prefix}/lib/pine.conf.fixed ;;
15562 esac
15564 # Check whether --with-system-fixed-pinerc was given.
15565 if test "${with_system_fixed_pinerc+set}" = set; then :
15566 withval=$with_system_fixed_pinerc;
15567 case "$withval" in
15570 yes)
15573 dpv=$withval
15575 esac
15580 cat >>confdefs.h <<_ACEOF
15581 #define SYSTEM_PINERC_FIXED "$dpv"
15582 _ACEOF
15585 case "$prefix" in
15586 NONE) dpv=/usr/local/lib/pine.info ;;
15587 *) dpv=${prefix}/lib/pine.info ;;
15588 esac
15590 # Check whether --with-local-support-info was given.
15591 if test "${with_local_support_info+set}" = set; then :
15592 withval=$with_local_support_info;
15593 case "$withval" in
15596 yes)
15599 dpv=$withval
15601 esac
15606 cat >>confdefs.h <<_ACEOF
15607 #define SYSTEM_PINE_INFO_PATH "$dpv"
15608 _ACEOF
15616 dpv=150
15618 # Check whether --with-mailcheck-interval was given.
15619 if test "${with_mailcheck_interval+set}" = set; then :
15620 withval=$with_mailcheck_interval;
15621 if test "x$withval" != "xno" ; then
15622 dpv=$withval
15628 cat >>confdefs.h <<_ACEOF
15629 #define DF_MAILCHECK "$dpv"
15630 _ACEOF
15634 dpv=420
15636 # Check whether --with-checkpoint-interval was given.
15637 if test "${with_checkpoint_interval+set}" = set; then :
15638 withval=$with_checkpoint_interval;
15639 if test "x$withval" != "xno" ; then
15640 dpv=$withval
15646 cat >>confdefs.h <<_ACEOF
15647 #define CHECK_POINT_TIME $dpv
15648 _ACEOF
15652 dpv=12
15654 # Check whether --with-checkpoint-frequency was given.
15655 if test "${with_checkpoint_frequency+set}" = set; then :
15656 withval=$with_checkpoint_frequency;
15657 if test "x$withval" != "xno" ; then
15658 dpv=$withval
15664 cat >>confdefs.h <<_ACEOF
15665 #define CHECK_POINT_FREQ $dpv
15666 _ACEOF
15670 dpv=24
15672 # Check whether --with-display-rows was given.
15673 if test "${with_display_rows+set}" = set; then :
15674 withval=$with_display_rows;
15675 if test "x$withval" != "xno" ; then
15676 dpv=$withval
15682 cat >>confdefs.h <<_ACEOF
15683 #define DEFAULT_LINES_ON_TERMINAL $dpv
15684 _ACEOF
15688 dpv=80
15690 # Check whether --with-display-columns was given.
15691 if test "${with_display_columns+set}" = set; then :
15692 withval=$with_display_columns;
15693 if test "x$withval" != "xno" ; then
15694 dpv=$withval
15700 cat >>confdefs.h <<_ACEOF
15701 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
15702 _ACEOF
15706 dpv=200
15708 # Check whether --with-max-display-rows was given.
15709 if test "${with_max_display_rows+set}" = set; then :
15710 withval=$with_max_display_rows;
15711 if test "x$withval" != "xno" ; then
15712 dpv=$withval
15718 cat >>confdefs.h <<_ACEOF
15719 #define MAX_SCREEN_ROWS $dpv
15720 _ACEOF
15724 dpv=500
15726 # Check whether --with-max-display-columns was given.
15727 if test "${with_max_display_columns+set}" = set; then :
15728 withval=$with_max_display_columns;
15729 if test "x$withval" != "xno" ; then
15730 dpv=$withval
15736 cat >>confdefs.h <<_ACEOF
15737 #define MAX_SCREEN_COLS $dpv
15738 _ACEOF
15742 dpv=74
15744 # Check whether --with-fill-column was given.
15745 if test "${with_fill_column+set}" = set; then :
15746 withval=$with_fill_column;
15747 if test "x$withval" != "xno" ; then
15748 dpv=$withval
15754 cat >>confdefs.h <<_ACEOF
15755 #define DF_FILLCOL "$dpv"
15756 _ACEOF
15760 dpv=80
15762 # Check whether --with-max_fill-column was given.
15763 if test "${with_max_fill_column+set}" = set; then :
15764 withval=$with_max_fill_column;
15765 if test "x$withval" != "xno" ; then
15766 dpv=$withval
15772 cat >>confdefs.h <<_ACEOF
15773 #define MAX_FILLCOL $dpv
15774 _ACEOF
15778 dpv=2
15780 # Check whether --with-debug-level was given.
15781 if test "${with_debug_level+set}" = set; then :
15782 withval=$with_debug_level;
15783 if test "x$withval" != "xno" ; then
15784 dpv=$withval
15790 cat >>confdefs.h <<_ACEOF
15791 #define DEFAULT_DEBUG $dpv
15792 _ACEOF
15796 dpv=4
15798 # Check whether --with-debug-files was given.
15799 if test "${with_debug_files+set}" = set; then :
15800 withval=$with_debug_files;
15801 if test "x$withval" != "xno" ; then
15802 dpv=$withval
15808 cat >>confdefs.h <<_ACEOF
15809 #define NUMDEBUGFILES $dpv
15810 _ACEOF
15814 dpv=.pine-debug
15816 # Check whether --with-debug-file was given.
15817 if test "${with_debug_file+set}" = set; then :
15818 withval=$with_debug_file;
15819 if test "x$withval" != "xno" ; then
15820 dpv=$withval
15826 cat >>confdefs.h <<_ACEOF
15827 #define DEBUGFILE "$dpv"
15828 _ACEOF
15832 dpv="\$Forwarded"
15834 # Check whether --with-forwarded-keyword was given.
15835 if test "${with_forwarded_keyword+set}" = set; then :
15836 withval=$with_forwarded_keyword;
15837 if test "x$withval" != "xno" ; then
15838 dpv=$withval
15844 cat >>confdefs.h <<_ACEOF
15845 #define FORWARDED_FLAG "$dpv"
15846 _ACEOF
15850 dpv=2
15852 # Check whether --with-display-overlap was given.
15853 if test "${with_display_overlap+set}" = set; then :
15854 withval=$with_display_overlap;
15855 if test "x$withval" != "xno" ; then
15856 dpv=$withval
15862 cat >>confdefs.h <<_ACEOF
15863 #define DF_OVERLAP "$dpv"
15864 _ACEOF
15868 dpv=0
15870 # Check whether --with-display-margin was given.
15871 if test "${with_display_margin+set}" = set; then :
15872 withval=$with_display_margin;
15873 if test "x$withval" != "xno" ; then
15874 dpv=$withval
15880 cat >>confdefs.h <<_ACEOF
15881 #define DF_MARGIN "$dpv"
15882 _ACEOF
15886 dpv=sent-mail
15888 # Check whether --with-default-fcc was given.
15889 if test "${with_default_fcc+set}" = set; then :
15890 withval=$with_default_fcc;
15891 if test "x$withval" != "xno" ; then
15892 dpv=$withval
15898 cat >>confdefs.h <<_ACEOF
15899 #define DF_DEFAULT_FCC "$dpv"
15900 _ACEOF
15904 dpv=saved-messages
15906 # Check whether --with-default-save-folder was given.
15907 if test "${with_default_save_folder+set}" = set; then :
15908 withval=$with_default_save_folder;
15909 if test "x$withval" != "xno" ; then
15910 dpv=$withval
15916 cat >>confdefs.h <<_ACEOF
15917 #define DEFAULT_SAVE "$dpv"
15918 _ACEOF
15922 dpv=postponed-mail
15924 # Check whether --with-default-legacy-postponed-folder was given.
15925 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15926 withval=$with_default_legacy_postponed_folder;
15927 if test "x$withval" != "xno" ; then
15928 dpv=$withval
15934 cat >>confdefs.h <<_ACEOF
15935 #define POSTPONED_MAIL "$dpv"
15936 _ACEOF
15940 dpv=postponed-msgs
15942 # Check whether --with-default-postponed-folder was given.
15943 if test "${with_default_postponed_folder+set}" = set; then :
15944 withval=$with_default_postponed_folder;
15945 if test "x$withval" != "xno" ; then
15946 dpv=$withval
15952 cat >>confdefs.h <<_ACEOF
15953 #define POSTPONED_MSGS "$dpv"
15954 _ACEOF
15958 dpv=Trash
15960 # Check whether --with-default-trash-folder was given.
15961 if test "${with_default_trash_folder+set}" = set; then :
15962 withval=$with_default_trash_folder;
15963 if test "x$withval" != "xno" ; then
15964 dpv=$withval
15970 cat >>confdefs.h <<_ACEOF
15971 #define TRASH_FOLDER "$dpv"
15972 _ACEOF
15976 dpv=.pine-interrupted-mail
15978 # Check whether --with-default-interrupted-mail was given.
15979 if test "${with_default_interrupted_mail+set}" = set; then :
15980 withval=$with_default_interrupted_mail;
15981 if test "x$withval" != "xno" ; then
15982 dpv=$withval
15988 cat >>confdefs.h <<_ACEOF
15989 #define INTERRUPTED_MAIL "$dpv"
15990 _ACEOF
15994 dpv=dead.letter
15996 # Check whether --with-default-dead-letter-folder was given.
15997 if test "${with_default_dead_letter_folder+set}" = set; then :
15998 withval=$with_default_dead_letter_folder;
15999 if test "x$withval" != "xno" ; then
16000 dpv=$withval
16006 cat >>confdefs.h <<_ACEOF
16007 #define DEADLETTER "$dpv"
16008 _ACEOF
16012 dpv=mail
16014 # Check whether --with-default-mail-directory was given.
16015 if test "${with_default_mail_directory+set}" = set; then :
16016 withval=$with_default_mail_directory;
16017 if test "x$withval" != "xno" ; then
16018 dpv=$withval
16024 cat >>confdefs.h <<_ACEOF
16025 #define DF_MAIL_DIRECTORY "$dpv"
16026 _ACEOF
16030 dpv=INBOX
16032 # Check whether --with-default-inbox-name was given.
16033 if test "${with_default_inbox_name+set}" = set; then :
16034 withval=$with_default_inbox_name;
16035 if test "x$withval" != "xno" ; then
16036 dpv=$withval
16042 cat >>confdefs.h <<_ACEOF
16043 #define INBOX_NAME "$dpv"
16044 _ACEOF
16048 dpv=.signature
16050 # Check whether --with-default-signature-file was given.
16051 if test "${with_default_signature_file+set}" = set; then :
16052 withval=$with_default_signature_file;
16053 if test "x$withval" != "xno" ; then
16054 dpv=$withval
16060 cat >>confdefs.h <<_ACEOF
16061 #define DF_SIGNATURE_FILE "$dpv"
16062 _ACEOF
16066 dpv=no
16068 # Check whether --with-default-elm-style-save was given.
16069 if test "${with_default_elm_style_save+set}" = set; then :
16070 withval=$with_default_elm_style_save;
16071 if test "x$withval" != "xno" ; then
16072 dpv=$withval
16078 cat >>confdefs.h <<_ACEOF
16079 #define DF_ELM_STYLE_SAVE "$dpv"
16080 _ACEOF
16084 dpv=no
16086 # Check whether --with-default-header-in-reply was given.
16087 if test "${with_default_header_in_reply+set}" = set; then :
16088 withval=$with_default_header_in_reply;
16089 if test "x$withval" != "xno" ; then
16090 dpv=$withval
16096 cat >>confdefs.h <<_ACEOF
16097 #define DF_HEADER_IN_REPLY "$dpv"
16098 _ACEOF
16102 dpv=no
16104 # Check whether --with-default-old-style-reply was given.
16105 if test "${with_default_old_style_reply+set}" = set; then :
16106 withval=$with_default_old_style_reply;
16107 if test "x$withval" != "xno" ; then
16108 dpv=$withval
16114 cat >>confdefs.h <<_ACEOF
16115 #define DF_OLD_STYLE_REPLY "$dpv"
16116 _ACEOF
16120 dpv=no
16122 # Check whether --with-default-use-only-domain-name was given.
16123 if test "${with_default_use_only_domain_name+set}" = set; then :
16124 withval=$with_default_use_only_domain_name;
16125 if test "x$withval" != "xno" ; then
16126 dpv=$withval
16132 cat >>confdefs.h <<_ACEOF
16133 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16134 _ACEOF
16138 dpv=no
16140 # Check whether --with-default-save-by-sender was given.
16141 if test "${with_default_save_by_sender+set}" = set; then :
16142 withval=$with_default_save_by_sender;
16143 if test "x$withval" != "xno" ; then
16144 dpv=$withval
16150 cat >>confdefs.h <<_ACEOF
16151 #define DF_SAVE_BY_SENDER "$dpv"
16152 _ACEOF
16156 dpv=arrival
16158 # Check whether --with-default-sort-key was given.
16159 if test "${with_default_sort_key+set}" = set; then :
16160 withval=$with_default_sort_key;
16161 if test "x$withval" != "xno" ; then
16162 dpv=$withval
16168 cat >>confdefs.h <<_ACEOF
16169 #define DF_SORT_KEY "$dpv"
16170 _ACEOF
16174 dpv=fullname-with-lists-last
16176 # Check whether --with-default-addressbook-sort-rule was given.
16177 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16178 withval=$with_default_addressbook_sort_rule;
16179 if test "x$withval" != "xno" ; then
16180 dpv=$withval
16186 cat >>confdefs.h <<_ACEOF
16187 #define DF_AB_SORT_RULE "$dpv"
16188 _ACEOF
16192 dpv=alphabetical
16194 # Check whether --with-default-folder-sort-rule was given.
16195 if test "${with_default_folder_sort_rule+set}" = set; then :
16196 withval=$with_default_folder_sort_rule;
16197 if test "x$withval" != "xno" ; then
16198 dpv=$withval
16204 cat >>confdefs.h <<_ACEOF
16205 #define DF_FLD_SORT_RULE "$dpv"
16206 _ACEOF
16210 dpv=default-folder
16212 # Check whether --with-default-saved-message-name-rule was given.
16213 if test "${with_default_saved_message_name_rule+set}" = set; then :
16214 withval=$with_default_saved_message_name_rule;
16215 if test "x$withval" != "xno" ; then
16216 dpv=$withval
16222 cat >>confdefs.h <<_ACEOF
16223 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16224 _ACEOF
16228 dpv=default-fcc
16230 # Check whether --with-default-fcc-rule was given.
16231 if test "${with_default_fcc_rule+set}" = set; then :
16232 withval=$with_default_fcc_rule;
16233 if test "x$withval" != "xno" ; then
16234 dpv=$withval
16240 cat >>confdefs.h <<_ACEOF
16241 #define DF_FCC_RULE "$dpv"
16242 _ACEOF
16246 dpv=lpr
16248 # Check whether --with-default-standard-printer was given.
16249 if test "${with_default_standard_printer+set}" = set; then :
16250 withval=$with_default_standard_printer;
16251 if test "x$withval" != "xno" ; then
16252 dpv=$withval
16258 cat >>confdefs.h <<_ACEOF
16259 #define DF_STANDARD_PRINTER "$dpv"
16260 _ACEOF
16264 dpv=attached-to-ansi
16266 # Check whether --with-default-ansi-printer was given.
16267 if test "${with_default_ansi_printer+set}" = set; then :
16268 withval=$with_default_ansi_printer;
16269 if test "x$withval" != "xno" ; then
16270 dpv=$withval
16276 cat >>confdefs.h <<_ACEOF
16277 #define ANSI_PRINTER "$dpv"
16278 _ACEOF
16282 dpv=.addressbook
16284 # Check whether --with-default-addressbook was given.
16285 if test "${with_default_addressbook+set}" = set; then :
16286 withval=$with_default_addressbook;
16287 if test "x$withval" != "xno" ; then
16288 dpv=$withval
16294 cat >>confdefs.h <<_ACEOF
16295 #define DF_ADDRESSBOOK "$dpv"
16296 _ACEOF
16300 dpv="Local Support"
16302 # Check whether --with-default-local-fullname was given.
16303 if test "${with_default_local_fullname+set}" = set; then :
16304 withval=$with_default_local_fullname;
16305 if test "x$withval" != "xno" ; then
16306 dpv=$withval
16312 cat >>confdefs.h <<_ACEOF
16313 #define DF_LOCAL_FULLNAME "$dpv"
16314 _ACEOF
16318 dpv=postmaster
16320 # Check whether --with-default-local-address was given.
16321 if test "${with_default_local_address+set}" = set; then :
16322 withval=$with_default_local_address;
16323 if test "x$withval" != "xno" ; then
16324 dpv=$withval
16330 cat >>confdefs.h <<_ACEOF
16331 #define DF_LOCAL_ADDRESS "$dpv"
16332 _ACEOF
16336 dpv=1
16338 # Check whether --with-default-keyboard-lock-count was given.
16339 if test "${with_default_keyboard_lock_count+set}" = set; then :
16340 withval=$with_default_keyboard_lock_count;
16341 if test "x$withval" != "xno" ; then
16342 dpv=$withval
16348 cat >>confdefs.h <<_ACEOF
16349 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16350 _ACEOF
16354 dpv=3
16356 # Check whether --with-default-remote-addressbook-history was given.
16357 if test "${with_default_remote_addressbook_history+set}" = set; then :
16358 withval=$with_default_remote_addressbook_history;
16359 if test "x$withval" != "xno" ; then
16360 dpv=$withval
16366 cat >>confdefs.h <<_ACEOF
16367 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16368 _ACEOF
16372 dpv=.alpine-smime/public
16374 # Check whether --with-smime-public-cert-directory was given.
16375 if test "${with_smime_public_cert_directory+set}" = set; then :
16376 withval=$with_smime_public_cert_directory;
16377 if test "x$withval" != "xno" ; then
16378 dpv=$withval
16384 cat >>confdefs.h <<_ACEOF
16385 #define DF_PUBLICCERT_DIR "$dpv"
16386 _ACEOF
16390 dpv=.alpine-smime/private
16392 # Check whether --with-smime-private-key-directory was given.
16393 if test "${with_smime_private_key_directory+set}" = set; then :
16394 withval=$with_smime_private_key_directory;
16395 if test "x$withval" != "xno" ; then
16396 dpv=$withval
16402 cat >>confdefs.h <<_ACEOF
16403 #define DF_PRIVATEKEY_DIR "$dpv"
16404 _ACEOF
16408 dpv=.alpine-smime/ca
16410 # Check whether --with-smime-cacert-directory was given.
16411 if test "${with_smime_cacert_directory+set}" = set; then :
16412 withval=$with_smime_cacert_directory;
16413 if test "x$withval" != "xno" ; then
16414 dpv=$withval
16420 cat >>confdefs.h <<_ACEOF
16421 #define DF_CACERT_DIR "$dpv"
16422 _ACEOF
16426 dpv=ANSI_PRINTER
16428 # Check whether --with-default-printer was given.
16429 if test "${with_default_printer+set}" = set; then :
16430 withval=$with_default_printer;
16431 if test "x$withval" != "xno" ; then
16432 dpv=$withval
16438 cat >>confdefs.h <<_ACEOF
16439 #define DF_DEFAULT_PRINTER $dpv
16440 _ACEOF
16445 # Check whether --with-passfile was given.
16446 if test "${with_passfile+set}" = set; then :
16447 withval=$with_passfile;
16448 case "$withval" in
16451 yes)
16454 alpine_PASSFILE=$withval
16456 esac
16463 # Check whether --with-local-password-cache was given.
16464 if test "${with_local_password_cache+set}" = set; then :
16465 withval=$with_local_password_cache;
16466 alpine_os_credential_cache=$withval
16472 # Check whether --with-local-password-cache-method was given.
16473 if test "${with_local_password_cache_method+set}" = set; then :
16474 withval=$with_local_password_cache_method;
16475 alpine_os_credential_cache_method=$withval
16480 if test -n "$alpine_PASSFILE" ; then
16481 case $alpine_os_credential_cache in
16485 alpine_os_credential_cache="no"
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
16487 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
16489 esac
16491 cat >>confdefs.h <<_ACEOF
16492 #define PASSFILE "$alpine_PASSFILE"
16493 _ACEOF
16498 # Check whether --with-default-sshpath was given.
16499 if test "${with_default_sshpath+set}" = set; then :
16500 withval=$with_default_sshpath;
16501 case "$withval" in
16504 yes)
16508 cat >>confdefs.h <<_ACEOF
16509 #define DF_SSHPATH "$withval"
16510 _ACEOF
16513 esac
16519 # Check whether --with-default-sshcmd was given.
16520 if test "${with_default_sshcmd+set}" = set; then :
16521 withval=$with_default_sshcmd;
16522 case "$withval" in
16525 yes)
16529 cat >>confdefs.h <<_ACEOF
16530 #define DF_SSHCMD "$withval"
16531 _ACEOF
16534 esac
16540 # Check whether --with-ssl was given.
16541 if test "${with_ssl+set}" = set; then :
16542 withval=$with_ssl; with_ssl=$withval
16546 if test "x$with_ssl" = "xno" ; then
16547 alpine_SSLTYPE="none"
16548 else
16549 case $host in
16550 *-linux-gnu*)
16551 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
16552 alpine_SSLTYPE="nopwd"
16553 if test -d /etc/pki/tls ; then
16554 alpine_SSLDIR="/etc/pki/tls"
16555 else
16556 alpine_SSLDIR="/usr/share/ssl"
16558 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16559 alpine_SSLKEYS="$alpine_SSLDIR/private"
16560 alpine_SSLINCLUDE="/usr/include/openssl"
16561 alpine_SSLLIB="/usr/lib"
16562 elif test -f /etc/mandrake-release ; then
16563 alpine_SSLDIR="/usr/lib/ssl"
16564 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16565 alpine_SSLKEYS="$alpine_SSLDIR/private"
16566 alpine_SSLINCLUDE="/usr/include/openssl"
16567 alpine_SSLLIB="/usr/lib"
16568 elif test -f /etc/SuSE-release ; then
16569 alpine_SSLTYPE="nopwd"
16570 alpine_SSLDIR="/etc/ssl"
16571 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16572 alpine_SSLKEYS="$alpine_SSLDIR/private"
16573 alpine_SSLINCLUDE="/usr/include/openssl"
16574 alpine_SSLLIB="/usr/lib"
16575 elif test -d /etc/osso-af-init ; then
16576 alpine_SSLTYPE="nopwd"
16577 alpine_SSLDIR="/usr"
16578 alpine_SSLCERTS="/usr/share/certs"
16579 alpine_SSLINCLUDE="/usr/include/openssl"
16580 alpine_SSLLIB="/usr/lib"
16581 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16582 if test ! -d /etc/osso-af-init ; then
16583 alpine_SSLDIR="/etc/ssl"
16584 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16585 alpine_SSLKEYS="$alpine_SSLDIR/private"
16586 alpine_SSLINCLUDE="/usr/include/openssl"
16587 alpine_SSLLIB="/usr/lib"
16589 else
16590 alpine_SSLTYPE="nopwd"
16591 alpine_SSLDIR="/usr"
16592 alpine_SSLCERTS="/etc/ssl/certs"
16595 *-apple-darwin*)
16596 alpine_SSLTYPE="nopwd"
16597 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
16598 if test -d /usr/local/opt/openssl ; then
16599 alpine_SSLDIR="/usr/local/opt/openssl"
16600 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16601 alpine_SSLLIB="$alpine_SSLDIR/lib"
16602 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16603 alpine_SSLKEYS="$alpine_SSLDIR/private"
16604 elif test -d /opt/local/etc/openssl ; then
16605 alpine_SSLDIR="/opt/local"
16606 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16607 alpine_SSLLIB="$alpine_SSLDIR/lib"
16608 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
16609 alpine_SSLKEYS="/opt/local/etc/openssl/private"
16610 elif test -d /sw/etc/ssl ; then
16611 alpine_SSLDIR="/sw/etc/ssl"
16612 alpine_SSLINCLUDE="/sw/include"
16613 alpine_SSLLIB="/sw/lib"
16614 alpine_SSLCERTS="/sw/etc/ssl/certs"
16615 alpine_SSLKEYS="/sw/etc/ssl/private"
16616 elif test -d /System/Library/OpenSSL ; then
16617 alpine_SSLDIR="/System/Library/OpenSSL"
16618 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16619 alpine_SSLKEYS="$alpine_SSLDIR/private"
16620 alpine_SSLLIB="/usr/lib"
16621 alpine_SSLINCLUDE="/usr/include/openssl"
16624 *-*-netbsd*)
16625 alpine_SSLDIR="/etc/openssl"
16626 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16627 alpine_SSLKEYS="$alpine_SSLDIR/private"
16628 alpine_SSLINCLUDE="/usr/include/openssl"
16629 alpine_SSLLIB="/usr/lib"
16631 *-*-dragonfly*)
16632 alpine_SSLDIR="/etc/openssl"
16633 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16634 alpine_SSLKEYS="$alpine_SSLDIR/private"
16635 alpine_SSLINCLUDE="/usr/include/openssl"
16636 alpine_SSLLIB="/usr/lib"
16638 *-openbsd*)
16639 alpine_SSLTYPE="nopwd"
16640 alpine_SSLDIR="/usr"
16641 alpine_SSLCERTS="/etc/ssl/certs"
16643 *-*-freebsd*)
16644 alpine_SSLDIR="/etc/ssl"
16645 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16646 alpine_SSLKEYS="$alpine_SSLDIR/private"
16647 alpine_SSLINCLUDE="/usr/include/openssl"
16648 alpine_SSLLIB="/usr/lib"
16650 *-*-openbsd*)
16651 alpine_SSLDIR="/etc/ssl"
16652 alpine_SSLINCLUDE="/usr/include/openssl"
16653 alpine_SSLLIB="/usr/lib"
16654 alpine_SSLCERTS="/etc/ssl"
16655 alpine_SSLKEYS="/etc/ssl/private"
16657 *-*-cygwin)
16658 alpine_SSLDIR="/usr/ssl"
16659 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16660 alpine_SSLKEYS="$alpine_SSLDIR/certs"
16661 alpine_SSLINCLUDE="/usr/include/openssl"
16662 alpine_SSLLIB="/usr/lib"
16664 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
16665 alpine_SSLTYPE="sco.nopwd"
16666 alpine_SSLDIR="/usr/local/ssl"
16668 *-*-solaris*)
16669 if test -d /usr/sfw/include/openssl ; then
16670 alpine_SSLDIR="/usr/sfw"
16671 elif test -d /opt/csw/include/openssl ; then
16672 alpine_SSLDIR="/opt/csw"
16673 if test -d /opt/csw/ssl/certs ; then
16674 alpine_SSLCERTS="/opt/csw/ssl/certs"
16677 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
16678 alpine_SSLCERTS="/etc/certs"
16682 alpine_SSLTYPE="nopwd"
16683 alpine_SSLDIR="/usr/local/ssl"
16685 esac
16688 # Check whether --with-ssl-dir was given.
16689 if test "${with_ssl_dir+set}" = set; then :
16690 withval=$with_ssl_dir;
16691 if test "x$withval" != "xno" ; then
16692 alpine_SSLDIR=$withval
16693 alpine_SSLINCLUDE=$alpine_SSLDIR/include
16694 alpine_SSLLIB=$alpine_SSLDIR/lib
16701 # Check whether --with-ssl-certs-dir was given.
16702 if test "${with_ssl_certs_dir+set}" = set; then :
16703 withval=$with_ssl_certs_dir;
16704 if test "x$withval" != "xno" ; then
16705 alpine_SSLCERTS=$withval
16712 # Check whether --with-ssl-include-dir was given.
16713 if test "${with_ssl_include_dir+set}" = set; then :
16714 withval=$with_ssl_include_dir;
16715 if test "x$withval" != "xno" ; then
16716 alpine_SSLINCLUDE=$withval
16723 # Check whether --with-ssl-lib-dir was given.
16724 if test "${with_ssl_lib_dir+set}" = set; then :
16725 withval=$with_ssl_lib_dir;
16726 if test "x$withval" != "xno" ; then
16727 alpine_SSLLIB=$withval
16732 if test -n "$alpine_SSLINCLUDE" ; then
16733 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
16734 elif test -n "$alpine_SSLDIR" ; then
16735 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
16737 if test -n "$alpine_SSLLIB" ; then
16738 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
16739 elif test -n "$alpine_SSLDIR" ; then
16740 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
16745 # Check whether --with-krb5 was given.
16746 if test "${with_krb5+set}" = set; then :
16747 withval=$with_krb5; with_krb5=$withval
16751 if test "x$with_krb5" = "xno" ; then
16752 alpine_GSSTYPE="none"
16753 else
16754 alpine_GSSTYPE=
16757 # Check whether --with-krb5-dir was given.
16758 if test "${with_krb5_dir+set}" = set; then :
16759 withval=$with_krb5_dir;
16760 if test "x$withval" != "xno" ; then
16761 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16762 LDFLAGS="$LDFLAGS -L${withval}/lib"
16769 # Check whether --with-krb5-include-dir was given.
16770 if test "${with_krb5_include_dir+set}" = set; then :
16771 withval=$with_krb5_include_dir;
16772 if test "x$withval" != "xno" ; then
16773 CPPFLAGS="$CPPFLAGS -I$withval"
16780 # Check whether --with-krb5-lib-dir was given.
16781 if test "${with_krb5_lib_dir+set}" = set; then :
16782 withval=$with_krb5_lib_dir;
16783 if test "x$withval" != "xno" ; then
16784 LDFLAGS="$LDFLAGS -L$withval"
16792 # Check whether --with-ldap was given.
16793 if test "${with_ldap+set}" = set; then :
16794 withval=$with_ldap; with_ldap=$withval
16798 if test "x$with_ldap" = "xno" ; then
16799 alpine_with_ldap=
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
16801 $as_echo "$as_me: Excluding LDAP Support" >&6;}
16802 else
16804 alpine_with_ldap=yes
16806 # Check whether --with-ldap-dir was given.
16807 if test "${with_ldap_dir+set}" = set; then :
16808 withval=$with_ldap_dir;
16809 if test "x$withval" != "xno" ; then
16810 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16811 LDFLAGS="$LDFLAGS -L${withval}/lib"
16818 # Check whether --with-ldap-include-dir was given.
16819 if test "${with_ldap_include_dir+set}" = set; then :
16820 withval=$with_ldap_include_dir;
16821 if test "x$withval" != "xno" ; then
16822 CPPFLAGS="$CPPFLAGS -I$withval"
16829 # Check whether --with-ldap-lib-dir was given.
16830 if test "${with_ldap_lib_dir+set}" = set; then :
16831 withval=$with_ldap_lib_dir;
16832 if test "x$withval" != "xno" ; then
16833 LDFLAGS="$LDFLAGS -L$withval"
16841 # Check whether --with-smime was given.
16842 if test "${with_smime+set}" = set; then :
16843 withval=$with_smime; with_smime=$withval
16848 # Check whether --with-tcl was given.
16849 if test "${with_tcl+set}" = set; then :
16850 withval=$with_tcl; with_tcl=$withval
16854 if test "x$with_tcl" = "xno" ; then
16855 WEB_BUILD=
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
16857 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
16858 else
16860 # Check whether --with-tcl-lib was given.
16861 if test "${with_tcl_lib+set}" = set; then :
16862 withval=$with_tcl_lib;
16863 if test "x$withval" != "xno" ; then
16864 alpine_TCLLIB=$withval
16870 # Check whether --with-tcl-include was given.
16871 if test "${with_tcl_include+set}" = set; then :
16872 withval=$with_tcl_include;
16873 if test "x$withval" != "xno" ; then
16874 CPPFLAGS="$CPPFLAGS -I$withval"
16875 alpine_TCLINC=$withval
16883 # Check whether --with-supplied-regex was given.
16884 if test "${with_supplied_regex+set}" = set; then :
16885 withval=$with_supplied_regex; alpine_REGEX=$withval
16890 # Check whether --with-pthread was given.
16891 if test "${with_pthread+set}" = set; then :
16892 withval=$with_pthread; with_pthread=$withval
16897 # Check whether --with-system-mail-directory was given.
16898 if test "${with_system_mail_directory+set}" = set; then :
16899 withval=$with_system_mail_directory;
16900 if test "x$withval" != "xno" ; then
16901 alpine_with_local_maildir="$withval"
16908 # Check whether --with-c-client-target was given.
16909 if test "${with_c_client_target+set}" = set; then :
16910 withval=$with_c_client_target;
16911 if test "x$withval" != "xno" ;then
16912 alpine_with_c_client_target="$withval"
16919 alpine_PAM="none"
16921 case "$host" in
16922 *-linux-gnu*|*-k*bsd*-gnu*)
16923 alpine_path_delim="/"
16924 alpine_mode_readonly="(0600)"
16925 if test -f /etc/fedora-release ; then
16926 systype="LFD"
16927 alpine_PAM="yes"
16928 if test -d /etc/pki/tls ; then
16929 alpine_c_client_target="lfd"
16930 else
16931 alpine_c_client_target="lrh"
16933 elif test -f /etc/mandrake-release ; then
16934 systype="LMD"
16935 alpine_c_client_target="lmd"
16936 alpine_PAM="yes"
16937 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16938 systype="LRH"
16939 alpine_PAM="yes"
16940 if test -d /etc/pki/tls ; then
16941 alpine_c_client_target="lr5"
16942 else
16943 alpine_c_client_target="lrh"
16945 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16946 if test -d /etc/osso-af-init ; then
16947 systype="LN8"
16948 alpine_c_client_target="ln8"
16949 else
16950 systype="DEB"
16951 alpine_c_client_target="ldb"
16952 alpine_PAM="yes"
16954 elif test -f /etc/SuSE-release ; then
16955 systype="LSU"
16956 alpine_c_client_target="lsu"
16957 alpine_PAM="yes"
16958 else
16959 systype="LNX"
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16961 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16962 if ${ac_cv_lib_pam_pam_start+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 ac_check_lib_save_LIBS=$LIBS
16966 LIBS="-lpam $LIBS"
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h. */
16970 /* Override any GCC internal prototype to avoid an error.
16971 Use char because int might match the return type of a GCC
16972 builtin and then its argument prototype would still apply. */
16973 #ifdef __cplusplus
16974 extern "C"
16975 #endif
16976 char pam_start ();
16978 main ()
16980 return pam_start ();
16982 return 0;
16984 _ACEOF
16985 if ac_fn_c_try_link "$LINENO"; then :
16986 ac_cv_lib_pam_pam_start=yes
16987 else
16988 ac_cv_lib_pam_pam_start=no
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 LIBS=$ac_check_lib_save_LIBS
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16995 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16996 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16998 alpine_c_client_target="lnp"
16999 alpine_PAM="yes"
17001 else
17003 if test -f /etc/shadow ; then
17004 alpine_c_client_target="slx"
17005 else
17006 alpine_c_client_target="lnx"
17013 *-apple-darwin*)
17014 systype="OSX"
17015 alpine_path_delim="/"
17016 alpine_mode_readonly="(0600)"
17017 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17018 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17020 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17022 case "$alpine_os_credential_cache" in
17027 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17030 esac
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17032 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17033 if ${ac_cv_lib_pam_pam_start+:} false; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 ac_check_lib_save_LIBS=$LIBS
17037 LIBS="-lpam $LIBS"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char pam_start ();
17049 main ()
17051 return pam_start ();
17053 return 0;
17055 _ACEOF
17056 if ac_fn_c_try_link "$LINENO"; then :
17057 ac_cv_lib_pam_pam_start=yes
17058 else
17059 ac_cv_lib_pam_pam_start=no
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 LIBS=$ac_check_lib_save_LIBS
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17066 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17067 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17069 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17070 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17072 alpine_PAM="yes"
17073 alpine_c_client_target="oxs"
17075 else
17076 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17077 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17079 alpine_PAM="yes"
17080 alpine_c_client_target="oxp"
17082 else
17084 alpine_PAM="none"
17085 alpine_pam_none_reason="header files not found"
17095 else
17097 alpine_c_client_target="osx"
17102 *-*-solaris*)
17103 if test x$GCC = "xyes" ; then
17104 systype="GSO"
17105 alpine_c_client_target="gso"
17106 else
17107 systype="SOC"
17108 alpine_c_client_target="soc"
17110 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17113 alpine_path_delim="/"
17114 alpine_mode_readonly="(0600)"
17116 *-*-sunos4*)
17117 systype="SUN"
17118 alpine_path_delim="/"
17119 alpine_mode_readonly="(0600)"
17120 alpine_c_client_target="s40"
17122 *-*-sco3.2v5*)
17123 if test x$GCC = "xyes" ; then
17124 systype="GO5"
17125 alpine_c_client_target="go5"
17126 else
17127 systype="SC5"
17128 alpine_c_client_target="sc5"
17130 alpine_path_delim="/"
17131 alpine_mode_readonly="(0600)"
17133 *-next-*)
17134 systype="NXT"
17135 alpine_path_delim="/"
17136 alpine_mode_readonly="(0600)"
17137 alpine_c_client_target="nx3"
17139 *-*-netbsd*)
17140 systype="NEB"
17141 alpine_path_delim="/"
17142 alpine_mode_readonly="(0600)"
17143 alpine_c_client_target="neb"
17145 *-*-dragonfly*)
17146 systype="DFB"
17147 alpine_path_delim="/"
17148 alpine_mode_readonly="(0600)"
17149 alpine_c_client_target="neb"
17151 *-*-bsdi*)
17152 systype="BSI"
17153 alpine_path_delim="/"
17154 alpine_mode_readonly="(0600)"
17155 alpine_c_client_target="bsi"
17157 *-*-freebsd*)
17158 systype="BSF"
17159 alpine_path_delim="/"
17160 alpine_mode_readonly="(0600)"
17161 alpine_c_client_target="bsf"
17162 LIBS="$LIBS $LIBINTL"
17164 *-*-openbsd*)
17165 systype="BSO"
17166 alpine_path_delim="/"
17167 alpine_mode_readonly="(0600)"
17168 alpine_c_client_target="bso"
17169 LIBS="$LIBS $LIBINTL"
17171 *-*-aix5*)
17172 systype="A52"
17173 alpine_path_delim="/"
17174 alpine_mode_readonly="(0600)"
17175 alpine_c_client_target="a52"
17177 *-*-aix4*)
17178 systype="A41"
17179 alpine_path_delim="/"
17180 alpine_mode_readonly="(0600)"
17181 alpine_c_client_target="a41"
17183 *-*-aix3*)
17184 systype="A32"
17185 alpine_path_delim="/"
17186 alpine_mode_readonly="(0600)"
17187 alpine_c_client_target="a32"
17189 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17190 systype="UW2"
17191 alpine_path_delim="/"
17192 alpine_mode_readonly="(0600)"
17193 alpine_c_client_target="uw2"
17195 *-*-osf5*)
17196 systype="OSF"
17197 alpine_path_delim="/"
17198 alpine_mode_readonly="(0600)"
17199 alpine_c_client_target="osf"
17201 *-*-cygwin)
17202 systype="CYG"
17203 alpine_path_delim="/"
17204 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17205 alpine_c_client_target="cyg"
17206 LIBS="$LIBS $LIBINTL"
17208 windows* | *-*-pw32*)
17209 systype="WNT"
17210 alpine_path_delim="\\"
17211 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17212 alpine_c_client_target="wnt"
17214 $as_echo "#define _WINDOWS 1" >>confdefs.h
17218 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17220 esac
17223 # Check whether --with-ipv6 was given.
17224 if test "${with_ipv6+set}" = set; then :
17225 withval=$with_ipv6; with_ipv6=$withval
17229 if test "x$with_ipv6" = "xno" ; then
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17231 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17232 c_client_specials="${c_client_specials}IP6=4 "
17233 c_client_ip6="true"
17234 else
17235 c_client_ip6="touch imap/ip6"
17240 if test x$enable_dmalloc = "xyes" ; then
17241 if test "x$with_pthread" = "xyes" ; then
17242 dmalloc_lib=dmallocth
17243 else
17244 dmalloc_lib=dmalloc
17247 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17249 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17250 if eval \${$as_ac_Lib+:} false; then :
17251 $as_echo_n "(cached) " >&6
17252 else
17253 ac_check_lib_save_LIBS=$LIBS
17254 LIBS="-l$dmalloc_lib $LIBS"
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17258 /* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 char dmalloc_shutdown ();
17266 main ()
17268 return dmalloc_shutdown ();
17270 return 0;
17272 _ACEOF
17273 if ac_fn_c_try_link "$LINENO"; then :
17274 eval "$as_ac_Lib=yes"
17275 else
17276 eval "$as_ac_Lib=no"
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280 LIBS=$ac_check_lib_save_LIBS
17282 eval ac_res=\$$as_ac_Lib
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17284 $as_echo "$ac_res" >&6; }
17285 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17286 cat >>confdefs.h <<_ACEOF
17287 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
17288 _ACEOF
17290 LIBS="-l$dmalloc_lib $LIBS"
17292 else
17294 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
17301 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
17302 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
17303 $as_echo_n "(cached) " >&6
17304 else
17305 ac_check_lib_save_LIBS=$LIBS
17306 LIBS="-ltinfo $LIBS"
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17310 /* Override any GCC internal prototype to avoid an error.
17311 Use char because int might match the return type of a GCC
17312 builtin and then its argument prototype would still apply. */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 char setupterm ();
17318 main ()
17320 return setupterm ();
17322 return 0;
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 ac_cv_lib_tinfo_setupterm=yes
17327 else
17328 ac_cv_lib_tinfo_setupterm=no
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
17335 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
17336 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
17338 alpine_termdata=info
17339 LIBS="$LIBS -ltinfo"
17341 else
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
17344 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
17345 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lncurses $LIBS"
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 char setupterm ();
17361 main ()
17363 return setupterm ();
17365 return 0;
17367 _ACEOF
17368 if ac_fn_c_try_link "$LINENO"; then :
17369 ac_cv_lib_ncurses_setupterm=yes
17370 else
17371 ac_cv_lib_ncurses_setupterm=no
17373 rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
17375 LIBS=$ac_check_lib_save_LIBS
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
17378 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
17379 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
17381 alpine_termdata=info
17382 LIBS="$LIBS -lncurses"
17384 else
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
17387 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
17388 if ${ac_cv_lib_curses_setupterm+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390 else
17391 ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lcurses $LIBS"
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 char setupterm ();
17404 main ()
17406 return setupterm ();
17408 return 0;
17410 _ACEOF
17411 if ac_fn_c_try_link "$LINENO"; then :
17412 ac_cv_lib_curses_setupterm=yes
17413 else
17414 ac_cv_lib_curses_setupterm=no
17416 rm -f core conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LIBS=$ac_check_lib_save_LIBS
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
17421 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
17422 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
17424 alpine_termdata=info
17425 LIBS="$LIBS -lcurses"
17427 else
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
17430 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
17431 if ${ac_cv_lib_termlib_tgetent+:} false; then :
17432 $as_echo_n "(cached) " >&6
17433 else
17434 ac_check_lib_save_LIBS=$LIBS
17435 LIBS="-ltermlib $LIBS"
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17439 /* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17442 #ifdef __cplusplus
17443 extern "C"
17444 #endif
17445 char tgetent ();
17447 main ()
17449 return tgetent ();
17451 return 0;
17453 _ACEOF
17454 if ac_fn_c_try_link "$LINENO"; then :
17455 ac_cv_lib_termlib_tgetent=yes
17456 else
17457 ac_cv_lib_termlib_tgetent=no
17459 rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461 LIBS=$ac_check_lib_save_LIBS
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
17464 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
17465 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
17467 alpine_termdata=cap
17468 LIBS="$LIBS -ltermlib"
17470 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
17473 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
17474 if ${ac_cv_lib_termcap_tgetent+:} false; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 ac_check_lib_save_LIBS=$LIBS
17478 LIBS="-ltermcap $LIBS"
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 char tgetent ();
17490 main ()
17492 return tgetent ();
17494 return 0;
17496 _ACEOF
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 ac_cv_lib_termcap_tgetent=yes
17499 else
17500 ac_cv_lib_termcap_tgetent=no
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 LIBS=$ac_check_lib_save_LIBS
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
17507 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
17508 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
17510 alpine_termdata=cap
17511 LIBS="$LIBS -ltermcap"
17513 else
17515 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
17531 case $alpine_termdata in
17532 info)
17534 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
17537 cap)
17539 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
17542 esac
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17545 $as_echo_n "checking for library containing dlopen... " >&6; }
17546 if ${ac_cv_search_dlopen+:} false; then :
17547 $as_echo_n "(cached) " >&6
17548 else
17549 ac_func_search_save_LIBS=$LIBS
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char dlopen ();
17561 main ()
17563 return dlopen ();
17565 return 0;
17567 _ACEOF
17568 for ac_lib in '' dl dld; do
17569 if test -z "$ac_lib"; then
17570 ac_res="none required"
17571 else
17572 ac_res=-l$ac_lib
17573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17575 if ac_fn_c_try_link "$LINENO"; then :
17576 ac_cv_search_dlopen=$ac_res
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext
17580 if ${ac_cv_search_dlopen+:} false; then :
17581 break
17583 done
17584 if ${ac_cv_search_dlopen+:} false; then :
17586 else
17587 ac_cv_search_dlopen=no
17589 rm conftest.$ac_ext
17590 LIBS=$ac_func_search_save_LIBS
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17593 $as_echo "$ac_cv_search_dlopen" >&6; }
17594 ac_res=$ac_cv_search_dlopen
17595 if test "$ac_res" != no; then :
17596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17598 else
17599 alpine_DL="none"
17602 if test "x$alpine_DL" = "xnone" ; then
17603 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
17604 exit 1
17607 if test "x$alpine_SSLTYPE" != "xnone" ; then
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
17609 $as_echo_n "checking for library containing SSLeay... " >&6; }
17610 if ${ac_cv_search_SSLeay+:} false; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 ac_func_search_save_LIBS=$LIBS
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17620 #ifdef __cplusplus
17621 extern "C"
17622 #endif
17623 char SSLeay ();
17625 main ()
17627 return SSLeay ();
17629 return 0;
17631 _ACEOF
17632 for ac_lib in '' crypto; do
17633 if test -z "$ac_lib"; then
17634 ac_res="none required"
17635 else
17636 ac_res=-l$ac_lib
17637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17639 if ac_fn_c_try_link "$LINENO"; then :
17640 ac_cv_search_SSLeay=$ac_res
17642 rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext
17644 if ${ac_cv_search_SSLeay+:} false; then :
17645 break
17647 done
17648 if ${ac_cv_search_SSLeay+:} false; then :
17650 else
17651 ac_cv_search_SSLeay=no
17653 rm conftest.$ac_ext
17654 LIBS=$ac_func_search_save_LIBS
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
17657 $as_echo "$ac_cv_search_SSLeay" >&6; }
17658 ac_res=$ac_cv_search_SSLeay
17659 if test "$ac_res" != no; then :
17660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17662 else
17663 alpine_CRYPTO="none"
17666 if test "x$alpine_CRYPTO" = "xnone" ; then
17667 as_fn_error $? "crypto library NOT found" "$LINENO" 5
17668 exit 1
17672 if test "x$alpine_SSLTYPE" != "xnone" ; then
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
17674 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
17675 if ${ac_cv_search_SSL_library_init+:} false; then :
17676 $as_echo_n "(cached) " >&6
17677 else
17678 ac_func_search_save_LIBS=$LIBS
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17685 #ifdef __cplusplus
17686 extern "C"
17687 #endif
17688 char SSL_library_init ();
17690 main ()
17692 return SSL_library_init ();
17694 return 0;
17696 _ACEOF
17697 for ac_lib in '' ssl; do
17698 if test -z "$ac_lib"; then
17699 ac_res="none required"
17700 else
17701 ac_res=-l$ac_lib
17702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17704 if ac_fn_c_try_link "$LINENO"; then :
17705 ac_cv_search_SSL_library_init=$ac_res
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext
17709 if ${ac_cv_search_SSL_library_init+:} false; then :
17710 break
17712 done
17713 if ${ac_cv_search_SSL_library_init+:} false; then :
17715 else
17716 ac_cv_search_SSL_library_init=no
17718 rm conftest.$ac_ext
17719 LIBS=$ac_func_search_save_LIBS
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
17722 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
17723 ac_res=$ac_cv_search_SSL_library_init
17724 if test "$ac_res" != no; then :
17725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17727 else
17728 alpine_SSLTYPE="none"
17732 if test "x$alpine_SSLTYPE" = "xnone" ; then
17733 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
17734 exit 1
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
17738 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
17739 if test "$cross_compiling" = yes; then :
17740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17742 as_fn_error $? "cannot run test program while cross compiling
17743 See \`config.log' for more details" "$LINENO" 5; }
17744 else
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17748 #include <stdio.h>
17749 #include <stdlib.h>
17750 #include <openssl/ssl.h>
17751 int main(void) {
17753 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
17754 exit(0);
17756 exit(2);
17759 _ACEOF
17760 if ac_fn_c_try_run "$LINENO"; then :
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762 $as_echo "yes" >&6; }
17763 else
17764 alpine_SSLTYPE="none"
17766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17767 conftest.$ac_objext conftest.beam conftest.$ac_ext
17771 if test "x$alpine_SSLTYPE" = "xnone" ; then
17772 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
17773 exit 1
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
17776 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
17777 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 ac_func_search_save_LIBS=$LIBS
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char TLSv1_2_client_method ();
17792 main ()
17794 return TLSv1_2_client_method ();
17796 return 0;
17798 _ACEOF
17799 for ac_lib in '' ssl; do
17800 if test -z "$ac_lib"; then
17801 ac_res="none required"
17802 else
17803 ac_res=-l$ac_lib
17804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17806 if ac_fn_c_try_link "$LINENO"; then :
17807 ac_cv_search_TLSv1_2_client_method=$ac_res
17809 rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext
17811 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17812 break
17814 done
17815 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17817 else
17818 ac_cv_search_TLSv1_2_client_method=no
17820 rm conftest.$ac_ext
17821 LIBS=$ac_func_search_save_LIBS
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
17824 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
17825 ac_res=$ac_cv_search_TLSv1_2_client_method
17826 if test "$ac_res" != no; then :
17827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17828 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
17830 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
17837 if test "$alpine_with_ldap" = "yes" ; then
17838 alpine_has_ldap=
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
17840 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
17841 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
17842 $as_echo_n "(cached) " >&6
17843 else
17844 ac_check_lib_save_LIBS=$LIBS
17845 LIBS="-llber $LIBS"
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17849 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17852 #ifdef __cplusplus
17853 extern "C"
17854 #endif
17855 char ber_alloc ();
17857 main ()
17859 return ber_alloc ();
17861 return 0;
17863 _ACEOF
17864 if ac_fn_c_try_link "$LINENO"; then :
17865 ac_cv_lib_lber_ber_alloc=yes
17866 else
17867 ac_cv_lib_lber_ber_alloc=no
17869 rm -f core conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
17874 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
17875 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
17877 LIBS="$LIBS -llber"
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
17882 $as_echo_n "checking for library containing ldap_init... " >&6; }
17883 if ${ac_cv_search_ldap_init+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 ac_func_search_save_LIBS=$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 ldap_init ();
17898 main ()
17900 return ldap_init ();
17902 return 0;
17904 _ACEOF
17905 for ac_lib in '' ldap; do
17906 if test -z "$ac_lib"; then
17907 ac_res="none required"
17908 else
17909 ac_res=-l$ac_lib
17910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17912 if ac_fn_c_try_link "$LINENO"; then :
17913 ac_cv_search_ldap_init=$ac_res
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext
17917 if ${ac_cv_search_ldap_init+:} false; then :
17918 break
17920 done
17921 if ${ac_cv_search_ldap_init+:} false; then :
17923 else
17924 ac_cv_search_ldap_init=no
17926 rm conftest.$ac_ext
17927 LIBS=$ac_func_search_save_LIBS
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17930 $as_echo "$ac_cv_search_ldap_init" >&6; }
17931 ac_res=$ac_cv_search_ldap_init
17932 if test "$ac_res" != no; then :
17933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17935 alpine_has_ldap=yes
17937 else
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17940 $as_echo_n "checking for library containing ldap_open... " >&6; }
17941 if ${ac_cv_search_ldap_open+:} false; then :
17942 $as_echo_n "(cached) " >&6
17943 else
17944 ac_func_search_save_LIBS=$LIBS
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h. */
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 char ldap_open ();
17956 main ()
17958 return ldap_open ();
17960 return 0;
17962 _ACEOF
17963 for ac_lib in '' ldap; do
17964 if test -z "$ac_lib"; then
17965 ac_res="none required"
17966 else
17967 ac_res=-l$ac_lib
17968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17970 if ac_fn_c_try_link "$LINENO"; then :
17971 ac_cv_search_ldap_open=$ac_res
17973 rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext
17975 if ${ac_cv_search_ldap_open+:} false; then :
17976 break
17978 done
17979 if ${ac_cv_search_ldap_open+:} false; then :
17981 else
17982 ac_cv_search_ldap_open=no
17984 rm conftest.$ac_ext
17985 LIBS=$ac_func_search_save_LIBS
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
17988 $as_echo "$ac_cv_search_ldap_open" >&6; }
17989 ac_res=$ac_cv_search_ldap_open
17990 if test "$ac_res" != no; then :
17991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17993 alpine_has_ldap=yes
18001 if test "$alpine_has_ldap" = "yes" ; then
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18003 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18005 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
18009 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
18010 if test "$cross_compiling" = yes; then :
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18013 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18016 else
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18020 #include <stdio.h>
18021 #include <stdlib.h>
18022 #include <ldap.h>
18023 int main(void) {
18025 if (LDAP_VENDOR_VERSION >= 20300)
18026 exit(0);
18028 exit(2);
18031 _ACEOF
18032 if ac_fn_c_try_run "$LINENO"; then :
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18035 $as_echo "yes" >&6; }
18037 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
18041 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044 $as_echo "no" >&6; }
18047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18048 conftest.$ac_objext conftest.beam conftest.$ac_ext
18052 else
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
18054 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
18058 if test "x$alpine_PAM" != "xnone" ; then
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18060 $as_echo_n "checking for library containing pam_start... " >&6; }
18061 if ${ac_cv_search_pam_start+:} false; then :
18062 $as_echo_n "(cached) " >&6
18063 else
18064 ac_func_search_save_LIBS=$LIBS
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18068 /* Override any GCC internal prototype to avoid an error.
18069 Use char because int might match the return type of a GCC
18070 builtin and then its argument prototype would still apply. */
18071 #ifdef __cplusplus
18072 extern "C"
18073 #endif
18074 char pam_start ();
18076 main ()
18078 return pam_start ();
18080 return 0;
18082 _ACEOF
18083 for ac_lib in '' pam; do
18084 if test -z "$ac_lib"; then
18085 ac_res="none required"
18086 else
18087 ac_res=-l$ac_lib
18088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18090 if ac_fn_c_try_link "$LINENO"; then :
18091 ac_cv_search_pam_start=$ac_res
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext
18095 if ${ac_cv_search_pam_start+:} false; then :
18096 break
18098 done
18099 if ${ac_cv_search_pam_start+:} false; then :
18101 else
18102 ac_cv_search_pam_start=no
18104 rm conftest.$ac_ext
18105 LIBS=$ac_func_search_save_LIBS
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18108 $as_echo "$ac_cv_search_pam_start" >&6; }
18109 ac_res=$ac_cv_search_pam_start
18110 if test "$ac_res" != no; then :
18111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18113 LIBS="$LIBS -lpam"
18114 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18115 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18117 alpine_PAM="yes"
18119 else
18120 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18121 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18123 alpine_PAM="yes"
18124 if test "x$alpine_c_client_target" != "xoxp" ; then
18125 alpine_PAM="none"
18126 alpine_pam_none_reason="header files not in security/ directory"
18129 else
18131 alpine_PAM="none"
18132 alpine_pam_none_reason="header files not found"
18142 else
18144 alpine_PAM="none"
18145 alpine_pam_none_reason="library files not found"
18149 if test -n "$alpine_pam_none_reason" ; then
18150 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
18155 if test "x$alpine_GSSTYPE" != "xnone" ; then
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
18157 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
18158 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18161 ac_func_search_save_LIBS=$LIBS
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18165 /* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
18168 #ifdef __cplusplus
18169 extern "C"
18170 #endif
18171 char gss_init_sec_context ();
18173 main ()
18175 return gss_init_sec_context ();
18177 return 0;
18179 _ACEOF
18180 for ac_lib in '' gss gssapi gssapi_krb5; do
18181 if test -z "$ac_lib"; then
18182 ac_res="none required"
18183 else
18184 ac_res=-l$ac_lib
18185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18187 if ac_fn_c_try_link "$LINENO"; then :
18188 ac_cv_search_gss_init_sec_context=$ac_res
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext
18192 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18193 break
18195 done
18196 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18198 else
18199 ac_cv_search_gss_init_sec_context=no
18201 rm conftest.$ac_ext
18202 LIBS=$ac_func_search_save_LIBS
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
18205 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
18206 ac_res=$ac_cv_search_gss_init_sec_context
18207 if test "$ac_res" != no; then :
18208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18210 LIBS="$LIBS -lkrb5"
18211 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
18212 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
18214 else
18216 if test ! -d /usr/kerberos/include ; then
18217 alpine_GSSTYPE="none"
18218 alpine_gss_none_reason="header files not found"
18225 else
18227 alpine_GSSTYPE="none"
18228 alpine_gss_none_reason="libraries not found"
18232 if test -n "$alpine_gss_none_reason" ; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
18234 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
18238 if test -n "$WEB_BUILD" ; then
18239 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
18240 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
18241 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
18243 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
18244 if ${ac_cv_search_Tcl_Eval+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 ac_func_search_save_LIBS=$LIBS
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char Tcl_Eval ();
18259 main ()
18261 return Tcl_Eval ();
18263 return 0;
18265 _ACEOF
18266 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
18267 if test -z "$ac_lib"; then
18268 ac_res="none required"
18269 else
18270 ac_res=-l$ac_lib
18271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18273 if ac_fn_c_try_link "$LINENO"; then :
18274 ac_cv_search_Tcl_Eval=$ac_res
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext
18278 if ${ac_cv_search_Tcl_Eval+:} false; then :
18279 break
18281 done
18282 if ${ac_cv_search_Tcl_Eval+:} false; then :
18284 else
18285 ac_cv_search_Tcl_Eval=no
18287 rm conftest.$ac_ext
18288 LIBS=$ac_func_search_save_LIBS
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
18291 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
18292 ac_res=$ac_cv_search_Tcl_Eval
18293 if test "$ac_res" != no; then :
18294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18296 else
18298 WEB_BUILD=
18303 if test -n "$alpine_TCLINC" ; then
18304 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
18305 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
18306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18308 else
18310 WEB_BUILD=
18315 if test -z "$WEB_BUILD" ; then
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
18317 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
18319 else
18320 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18321 if test "x$ac_cv_header_tcl_h" = xyes; then :
18323 else
18325 for base in /usr /usr/local ; do
18326 for dir in ${TCL_VERSIONS} ; do
18327 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
18329 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
18330 if eval \${$as_ac_File+:} false; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333 test "$cross_compiling" = yes &&
18334 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18335 if test -r "$base/include/$dir/tcl.h"; then
18336 eval "$as_ac_File=yes"
18337 else
18338 eval "$as_ac_File=no"
18341 eval ac_res=\$$as_ac_File
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18343 $as_echo "$ac_res" >&6; }
18344 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18346 found=yes
18350 if test "$found" = "yes" ; then
18351 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
18352 break
18354 done
18355 if test "$found" = "yes" ; then
18356 break
18358 done
18359 if test "$found" != "yes" ; then
18360 WEB_BUILD=
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
18362 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
18371 if test "x$alpine_REGEX" != "xyes" ; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
18373 $as_echo_n "checking for library containing regcomp... " >&6; }
18374 if ${ac_cv_search_regcomp+:} false; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 ac_func_search_save_LIBS=$LIBS
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char regcomp ();
18389 main ()
18391 return regcomp ();
18393 return 0;
18395 _ACEOF
18396 for ac_lib in '' posix regexp regex re; do
18397 if test -z "$ac_lib"; then
18398 ac_res="none required"
18399 else
18400 ac_res=-l$ac_lib
18401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 ac_cv_search_regcomp=$ac_res
18406 rm -f core conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext
18408 if ${ac_cv_search_regcomp+:} false; then :
18409 break
18411 done
18412 if ${ac_cv_search_regcomp+:} false; then :
18414 else
18415 ac_cv_search_regcomp=no
18417 rm conftest.$ac_ext
18418 LIBS=$ac_func_search_save_LIBS
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
18421 $as_echo "$ac_cv_search_regcomp" >&6; }
18422 ac_res=$ac_cv_search_regcomp
18423 if test "$ac_res" != no; then :
18424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18426 else
18428 if test x$alpine_REGEX = "xno" ; then
18429 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
18430 else
18431 alpine_REGEX=yes
18437 if test "x$alpine_REGEX" != "xyes" ; then
18438 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
18439 if test "x$ac_cv_header_regex_h" = xyes; then :
18441 else
18443 if test x$alpine_REGEX = "xno" ; then
18444 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
18445 else
18446 alpine_REGEX=yes
18454 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
18456 if test "x$alpine_REGEX" = "xyes" ; then
18457 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
18458 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
18459 REGEX_BUILD=regex
18460 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
18463 if test "x$with_pthread" != "xno" ; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
18465 $as_echo_n "checking for pthread support... " >&6; }
18469 ac_ext=c
18470 ac_cpp='$CPP $CPPFLAGS'
18471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18475 acx_pthread_ok=no
18477 # We used to check for pthread.h first, but this fails if pthread.h
18478 # requires special compiler flags (e.g. on True64 or Sequent).
18479 # It gets checked for in the link test anyway.
18481 # First of all, check if the user has set any of the PTHREAD_LIBS,
18482 # etcetera environment variables, and if threads linking works using
18483 # them:
18484 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18485 save_CFLAGS="$CFLAGS"
18486 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18487 save_LIBS="$LIBS"
18488 LIBS="$PTHREAD_LIBS $LIBS"
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18490 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18494 /* Override any GCC internal prototype to avoid an error.
18495 Use char because int might match the return type of a GCC
18496 builtin and then its argument prototype would still apply. */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 char pthread_join ();
18502 main ()
18504 return pthread_join ();
18506 return 0;
18508 _ACEOF
18509 if ac_fn_c_try_link "$LINENO"; then :
18510 acx_pthread_ok=yes
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18515 $as_echo "$acx_pthread_ok" >&6; }
18516 if test x"$acx_pthread_ok" = xno; then
18517 PTHREAD_LIBS=""
18518 PTHREAD_CFLAGS=""
18520 LIBS="$save_LIBS"
18521 CFLAGS="$save_CFLAGS"
18524 # We must check for the threads library under a number of different
18525 # names; the ordering is very important because some systems
18526 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18527 # libraries is broken (non-POSIX).
18529 # Create a list of thread flags to try. Items starting with a "-" are
18530 # C compiler flags, and other items are library names, except for "none"
18531 # which indicates that we try without any flags at all, and "pthread-config"
18532 # which is a program returning the flags for the Pth emulation library.
18534 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18536 # The ordering *is* (sometimes) important. Some notes on the
18537 # individual items follow:
18539 # pthreads: AIX (must check this before -lpthread)
18540 # none: in case threads are in libc; should be tried before -Kthread and
18541 # other compiler flags to prevent continual compiler warnings
18542 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18543 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18544 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18545 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18546 # -pthreads: Solaris/gcc
18547 # -mthreads: Mingw32/gcc, Lynx/gcc
18548 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18549 # doesn't hurt to check since this sometimes defines pthreads too;
18550 # also defines -D_REENTRANT)
18551 # ... -mt is also the pthreads flag for HP/aCC
18552 # pthread: Linux, etcetera
18553 # --thread-safe: KAI C++
18554 # pthread-config: use pthread-config program (for GNU Pth library)
18556 case "${host_cpu}-${host_os}" in
18557 *solaris*)
18559 # On Solaris (at least, for some versions), libc contains stubbed
18560 # (non-functional) versions of the pthreads routines, so link-based
18561 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18562 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18563 # a function called by this macro, so we could check for that, but
18564 # who knows whether they'll stub that too in a future libc.) So,
18565 # we'll just look for -pthreads and -lpthread first:
18567 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18569 esac
18571 if test x"$acx_pthread_ok" = xno; then
18572 for flag in $acx_pthread_flags; do
18574 case $flag in
18575 none)
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18577 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18582 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18583 PTHREAD_CFLAGS="$flag"
18586 pthread-config)
18587 # Extract the first word of "pthread-config", so it can be a program name with args.
18588 set dummy pthread-config; ac_word=$2
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590 $as_echo_n "checking for $ac_word... " >&6; }
18591 if ${ac_cv_prog_acx_pthread_config+:} false; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 if test -n "$acx_pthread_config"; then
18595 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18596 else
18597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18600 IFS=$as_save_IFS
18601 test -z "$as_dir" && as_dir=.
18602 for ac_exec_ext in '' $ac_executable_extensions; do
18603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604 ac_cv_prog_acx_pthread_config="yes"
18605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18606 break 2
18608 done
18609 done
18610 IFS=$as_save_IFS
18612 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18615 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18616 if test -n "$acx_pthread_config"; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18618 $as_echo "$acx_pthread_config" >&6; }
18619 else
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621 $as_echo "no" >&6; }
18625 if test x"$acx_pthread_config" = xno; then continue; fi
18626 PTHREAD_CFLAGS="`pthread-config --cflags`"
18627 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18632 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18633 PTHREAD_LIBS="-l$flag"
18635 esac
18637 save_LIBS="$LIBS"
18638 save_CFLAGS="$CFLAGS"
18639 LIBS="$PTHREAD_LIBS $LIBS"
18640 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18642 # Check for various functions. We must include pthread.h,
18643 # since some functions may be macros. (On the Sequent, we
18644 # need a special flag -Kthread to make this header compile.)
18645 # We check for pthread_join because it is in -lpthread on IRIX
18646 # while pthread_create is in libc. We check for pthread_attr_init
18647 # due to DEC craziness with -lpthreads. We check for
18648 # pthread_cleanup_push because it is one of the few pthread
18649 # functions on Solaris that doesn't have a non-functional libc stub.
18650 # We try pthread_create on general principles.
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653 #include <pthread.h>
18655 main ()
18657 pthread_t th; pthread_join(th, 0);
18658 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18659 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18661 return 0;
18663 _ACEOF
18664 if ac_fn_c_try_link "$LINENO"; then :
18665 acx_pthread_ok=yes
18667 rm -f core conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18670 LIBS="$save_LIBS"
18671 CFLAGS="$save_CFLAGS"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18674 $as_echo "$acx_pthread_ok" >&6; }
18675 if test "x$acx_pthread_ok" = xyes; then
18676 break;
18679 PTHREAD_LIBS=""
18680 PTHREAD_CFLAGS=""
18681 done
18684 # Various other checks:
18685 if test "x$acx_pthread_ok" = xyes; then
18686 save_LIBS="$LIBS"
18687 LIBS="$PTHREAD_LIBS $LIBS"
18688 save_CFLAGS="$CFLAGS"
18689 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18691 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18693 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18694 attr_name=unknown
18695 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698 #include <pthread.h>
18700 main ()
18702 int attr=$attr; return attr;
18704 return 0;
18706 _ACEOF
18707 if ac_fn_c_try_link "$LINENO"; then :
18708 attr_name=$attr; break
18710 rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 done
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18714 $as_echo "$attr_name" >&6; }
18715 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define PTHREAD_CREATE_JOINABLE $attr_name
18719 _ACEOF
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18724 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18725 flag=no
18726 case "${host_cpu}-${host_os}" in
18727 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18728 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18729 esac
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18731 $as_echo "${flag}" >&6; }
18732 if test "x$flag" != xno; then
18733 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18736 LIBS="$save_LIBS"
18737 CFLAGS="$save_CFLAGS"
18739 # More AIX lossage: must compile with xlc_r or cc_r
18740 if test x"$GCC" != xyes; then
18741 for ac_prog in xlc_r cc_r
18743 # Extract the first word of "$ac_prog", so it can be a program name with args.
18744 set dummy $ac_prog; ac_word=$2
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18746 $as_echo_n "checking for $ac_word... " >&6; }
18747 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18748 $as_echo_n "(cached) " >&6
18749 else
18750 if test -n "$PTHREAD_CC"; then
18751 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18752 else
18753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18756 IFS=$as_save_IFS
18757 test -z "$as_dir" && as_dir=.
18758 for ac_exec_ext in '' $ac_executable_extensions; do
18759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760 ac_cv_prog_PTHREAD_CC="$ac_prog"
18761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762 break 2
18764 done
18765 done
18766 IFS=$as_save_IFS
18770 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18771 if test -n "$PTHREAD_CC"; then
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18773 $as_echo "$PTHREAD_CC" >&6; }
18774 else
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18776 $as_echo "no" >&6; }
18780 test -n "$PTHREAD_CC" && break
18781 done
18782 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18784 else
18785 PTHREAD_CC=$CC
18787 else
18788 PTHREAD_CC="$CC"
18795 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18796 if test x"$acx_pthread_ok" = xyes; then
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18799 $as_echo "yes" >&6; }
18800 case "$target" in
18801 *openbsd*)
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
18803 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
18804 AM_CFLAGS="$AM_CFLAGS -pthread"
18806 esac
18807 LIBS="$PTHREAD_LIBS $LIBS"
18808 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
18809 CC="$PTHREAD_CC"
18811 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18815 else
18816 acx_pthread_ok=no
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18822 ac_ext=c
18823 ac_cpp='$CPP $CPPFLAGS'
18824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
18831 $as_echo_n "checking for library containing nanosleep... " >&6; }
18832 if ${ac_cv_search_nanosleep+:} false; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835 ac_func_search_save_LIBS=$LIBS
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18839 /* Override any GCC internal prototype to avoid an error.
18840 Use char because int might match the return type of a GCC
18841 builtin and then its argument prototype would still apply. */
18842 #ifdef __cplusplus
18843 extern "C"
18844 #endif
18845 char nanosleep ();
18847 main ()
18849 return nanosleep ();
18851 return 0;
18853 _ACEOF
18854 for ac_lib in '' rt posix4; do
18855 if test -z "$ac_lib"; then
18856 ac_res="none required"
18857 else
18858 ac_res=-l$ac_lib
18859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18861 if ac_fn_c_try_link "$LINENO"; then :
18862 ac_cv_search_nanosleep=$ac_res
18864 rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext
18866 if ${ac_cv_search_nanosleep+:} false; then :
18867 break
18869 done
18870 if ${ac_cv_search_nanosleep+:} false; then :
18872 else
18873 ac_cv_search_nanosleep=no
18875 rm conftest.$ac_ext
18876 LIBS=$ac_func_search_save_LIBS
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
18879 $as_echo "$ac_cv_search_nanosleep" >&6; }
18880 ac_res=$ac_cv_search_nanosleep
18881 if test "$ac_res" != no; then :
18882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18885 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18896 $as_echo_n "checking for ANSI C header files... " >&6; }
18897 if ${ac_cv_header_stdc+:} false; then :
18898 $as_echo_n "(cached) " >&6
18899 else
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 #include <stdlib.h>
18903 #include <stdarg.h>
18904 #include <string.h>
18905 #include <float.h>
18908 main ()
18912 return 0;
18914 _ACEOF
18915 if ac_fn_c_try_compile "$LINENO"; then :
18916 ac_cv_header_stdc=yes
18917 else
18918 ac_cv_header_stdc=no
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 if test $ac_cv_header_stdc = yes; then
18923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18926 #include <string.h>
18928 _ACEOF
18929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18930 $EGREP "memchr" >/dev/null 2>&1; then :
18932 else
18933 ac_cv_header_stdc=no
18935 rm -f conftest*
18939 if test $ac_cv_header_stdc = yes; then
18940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h. */
18943 #include <stdlib.h>
18945 _ACEOF
18946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947 $EGREP "free" >/dev/null 2>&1; then :
18949 else
18950 ac_cv_header_stdc=no
18952 rm -f conftest*
18956 if test $ac_cv_header_stdc = yes; then
18957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18958 if test "$cross_compiling" = yes; then :
18960 else
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18963 #include <ctype.h>
18964 #include <stdlib.h>
18965 #if ((' ' & 0x0FF) == 0x020)
18966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18968 #else
18969 # define ISLOWER(c) \
18970 (('a' <= (c) && (c) <= 'i') \
18971 || ('j' <= (c) && (c) <= 'r') \
18972 || ('s' <= (c) && (c) <= 'z'))
18973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18974 #endif
18976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18978 main ()
18980 int i;
18981 for (i = 0; i < 256; i++)
18982 if (XOR (islower (i), ISLOWER (i))
18983 || toupper (i) != TOUPPER (i))
18984 return 2;
18985 return 0;
18987 _ACEOF
18988 if ac_fn_c_try_run "$LINENO"; then :
18990 else
18991 ac_cv_header_stdc=no
18993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18994 conftest.$ac_objext conftest.beam conftest.$ac_ext
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19000 $as_echo "$ac_cv_header_stdc" >&6; }
19001 if test $ac_cv_header_stdc = yes; then
19003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19007 ac_header_dirent=no
19008 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19009 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19011 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19012 if eval \${$as_ac_Header+:} false; then :
19013 $as_echo_n "(cached) " >&6
19014 else
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19017 #include <sys/types.h>
19018 #include <$ac_hdr>
19021 main ()
19023 if ((DIR *) 0)
19024 return 0;
19026 return 0;
19028 _ACEOF
19029 if ac_fn_c_try_compile "$LINENO"; then :
19030 eval "$as_ac_Header=yes"
19031 else
19032 eval "$as_ac_Header=no"
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19036 eval ac_res=\$$as_ac_Header
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19038 $as_echo "$ac_res" >&6; }
19039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19040 cat >>confdefs.h <<_ACEOF
19041 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19042 _ACEOF
19044 ac_header_dirent=$ac_hdr; break
19047 done
19048 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19049 if test $ac_header_dirent = dirent.h; then
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19051 $as_echo_n "checking for library containing opendir... " >&6; }
19052 if ${ac_cv_search_opendir+:} false; then :
19053 $as_echo_n "(cached) " >&6
19054 else
19055 ac_func_search_save_LIBS=$LIBS
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char opendir ();
19067 main ()
19069 return opendir ();
19071 return 0;
19073 _ACEOF
19074 for ac_lib in '' dir; do
19075 if test -z "$ac_lib"; then
19076 ac_res="none required"
19077 else
19078 ac_res=-l$ac_lib
19079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19081 if ac_fn_c_try_link "$LINENO"; then :
19082 ac_cv_search_opendir=$ac_res
19084 rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext
19086 if ${ac_cv_search_opendir+:} false; then :
19087 break
19089 done
19090 if ${ac_cv_search_opendir+:} false; then :
19092 else
19093 ac_cv_search_opendir=no
19095 rm conftest.$ac_ext
19096 LIBS=$ac_func_search_save_LIBS
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19099 $as_echo "$ac_cv_search_opendir" >&6; }
19100 ac_res=$ac_cv_search_opendir
19101 if test "$ac_res" != no; then :
19102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19106 else
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19108 $as_echo_n "checking for library containing opendir... " >&6; }
19109 if ${ac_cv_search_opendir+:} false; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112 ac_func_search_save_LIBS=$LIBS
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19116 /* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 char opendir ();
19124 main ()
19126 return opendir ();
19128 return 0;
19130 _ACEOF
19131 for ac_lib in '' x; do
19132 if test -z "$ac_lib"; then
19133 ac_res="none required"
19134 else
19135 ac_res=-l$ac_lib
19136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19138 if ac_fn_c_try_link "$LINENO"; then :
19139 ac_cv_search_opendir=$ac_res
19141 rm -f core conftest.err conftest.$ac_objext \
19142 conftest$ac_exeext
19143 if ${ac_cv_search_opendir+:} false; then :
19144 break
19146 done
19147 if ${ac_cv_search_opendir+:} false; then :
19149 else
19150 ac_cv_search_opendir=no
19152 rm conftest.$ac_ext
19153 LIBS=$ac_func_search_save_LIBS
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19156 $as_echo "$ac_cv_search_opendir" >&6; }
19157 ac_res=$ac_cv_search_opendir
19158 if test "$ac_res" != no; then :
19159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19166 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19167 if ${ac_cv_header_stat_broken+:} false; then :
19168 $as_echo_n "(cached) " >&6
19169 else
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19172 #include <sys/types.h>
19173 #include <sys/stat.h>
19175 #if defined S_ISBLK && defined S_IFDIR
19176 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19177 #endif
19179 #if defined S_ISBLK && defined S_IFCHR
19180 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19181 #endif
19183 #if defined S_ISLNK && defined S_IFREG
19184 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19185 #endif
19187 #if defined S_ISSOCK && defined S_IFREG
19188 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19189 #endif
19191 _ACEOF
19192 if ac_fn_c_try_compile "$LINENO"; then :
19193 ac_cv_header_stat_broken=no
19194 else
19195 ac_cv_header_stat_broken=yes
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19200 $as_echo "$ac_cv_header_stat_broken" >&6; }
19201 if test $ac_cv_header_stat_broken = yes; then
19203 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19208 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19209 if ${ac_cv_header_sys_wait_h+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19214 #include <sys/types.h>
19215 #include <sys/wait.h>
19216 #ifndef WEXITSTATUS
19217 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19218 #endif
19219 #ifndef WIFEXITED
19220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19221 #endif
19224 main ()
19226 int s;
19227 wait (&s);
19228 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19230 return 0;
19232 _ACEOF
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234 ac_cv_header_sys_wait_h=yes
19235 else
19236 ac_cv_header_sys_wait_h=no
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19241 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19242 if test $ac_cv_header_sys_wait_h = yes; then
19244 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19249 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19250 if ${ac_cv_header_time+:} 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/time.h>
19257 #include <time.h>
19260 main ()
19262 if ((struct tm *) 0)
19263 return 0;
19265 return 0;
19267 _ACEOF
19268 if ac_fn_c_try_compile "$LINENO"; then :
19269 ac_cv_header_time=yes
19270 else
19271 ac_cv_header_time=no
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19276 $as_echo "$ac_cv_header_time" >&6; }
19277 if test $ac_cv_header_time = yes; then
19279 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
19284 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
19285 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
19286 $as_echo_n "(cached) " >&6
19287 else
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290 #include <sys/types.h>
19291 #include <termios.h>
19292 #ifdef TIOCGWINSZ
19294 #endif
19296 _ACEOF
19297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19298 $EGREP "yes" >/dev/null 2>&1; then :
19299 ac_cv_sys_tiocgwinsz_in_termios_h=yes
19300 else
19301 ac_cv_sys_tiocgwinsz_in_termios_h=no
19303 rm -f conftest*
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
19307 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
19309 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
19311 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
19312 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
19313 $as_echo_n "(cached) " >&6
19314 else
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19317 #include <sys/types.h>
19318 #include <sys/ioctl.h>
19319 #ifdef TIOCGWINSZ
19321 #endif
19323 _ACEOF
19324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19325 $EGREP "yes" >/dev/null 2>&1; then :
19326 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
19327 else
19328 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
19330 rm -f conftest*
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
19334 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
19336 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
19338 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
19344 for ac_header in unistd.h
19345 do :
19346 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19347 if test "x$ac_cv_header_unistd_h" = xyes; then :
19348 cat >>confdefs.h <<_ACEOF
19349 #define HAVE_UNISTD_H 1
19350 _ACEOF
19354 done
19357 for ac_header in errno.h \
19358 ctype.h \
19359 fcntl.h \
19360 signal.h \
19361 setjmp.h \
19362 memory.h \
19363 sys/param.h \
19364 sys/socket.h \
19365 sys/uio.h \
19366 sys/un.h \
19367 limits.h \
19368 wchar.h \
19369 sys/poll.h \
19370 stropts.h \
19371 netdb.h \
19372 syslog.h \
19373 sys/syslog.h \
19374 locale.h \
19375 langinfo.h \
19376 utime.h \
19377 sys/utime.h \
19378 pthread.h \
19379 pwd.h \
19380 assert.h
19381 do :
19382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19383 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19385 cat >>confdefs.h <<_ACEOF
19386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19387 _ACEOF
19391 done
19394 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19395 if test "x$ac_cv_header_termios_h" = xyes; then :
19397 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
19399 else
19401 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
19402 if test "x$ac_cv_header_termio_h" = xyes; then :
19404 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
19406 else
19408 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
19409 if test "x$ac_cv_header_sgtty_h" = xyes; then :
19411 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
19413 else
19415 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19432 $as_echo_n "checking return type of signal handlers... " >&6; }
19433 if ${ac_cv_type_signal+:} false; then :
19434 $as_echo_n "(cached) " >&6
19435 else
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19438 #include <sys/types.h>
19439 #include <signal.h>
19442 main ()
19444 return *(signal (0, 0)) (0) == 1;
19446 return 0;
19448 _ACEOF
19449 if ac_fn_c_try_compile "$LINENO"; then :
19450 ac_cv_type_signal=int
19451 else
19452 ac_cv_type_signal=void
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19457 $as_echo "$ac_cv_type_signal" >&6; }
19459 cat >>confdefs.h <<_ACEOF
19460 #define RETSIGTYPE $ac_cv_type_signal
19461 _ACEOF
19464 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19465 if test "x$ac_cv_type_size_t" = xyes; then :
19467 else
19469 cat >>confdefs.h <<_ACEOF
19470 #define size_t unsigned int
19471 _ACEOF
19475 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19476 if test "x$ac_cv_type_mode_t" = xyes; then :
19478 else
19480 cat >>confdefs.h <<_ACEOF
19481 #define mode_t int
19482 _ACEOF
19486 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19487 if test "x$ac_cv_type_pid_t" = xyes; then :
19489 else
19491 cat >>confdefs.h <<_ACEOF
19492 #define pid_t int
19493 _ACEOF
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19498 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19499 if ${ac_cv_type_uid_t+:} false; then :
19500 $as_echo_n "(cached) " >&6
19501 else
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504 #include <sys/types.h>
19506 _ACEOF
19507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19508 $EGREP "uid_t" >/dev/null 2>&1; then :
19509 ac_cv_type_uid_t=yes
19510 else
19511 ac_cv_type_uid_t=no
19513 rm -f conftest*
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19517 $as_echo "$ac_cv_type_uid_t" >&6; }
19518 if test $ac_cv_type_uid_t = no; then
19520 $as_echo "#define uid_t int" >>confdefs.h
19523 $as_echo "#define gid_t int" >>confdefs.h
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19528 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19529 if ${ac_cv_struct_tm+:} false; then :
19530 $as_echo_n "(cached) " >&6
19531 else
19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19533 /* end confdefs.h. */
19534 #include <sys/types.h>
19535 #include <time.h>
19538 main ()
19540 struct tm tm;
19541 int *p = &tm.tm_sec;
19542 return !p;
19544 return 0;
19546 _ACEOF
19547 if ac_fn_c_try_compile "$LINENO"; then :
19548 ac_cv_struct_tm=time.h
19549 else
19550 ac_cv_struct_tm=sys/time.h
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19555 $as_echo "$ac_cv_struct_tm" >&6; }
19556 if test $ac_cv_struct_tm = sys/time.h; then
19558 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19563 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
19564 if test "x$ac_cv_type_union_wait" = xyes; then :
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_UNION_WAIT 1
19568 _ACEOF
19574 for ac_header in stdint.h
19575 do :
19576 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19577 if test "x$ac_cv_header_stdint_h" = xyes; then :
19578 cat >>confdefs.h <<_ACEOF
19579 #define HAVE_STDINT_H 1
19580 _ACEOF
19581 uint16=uint16_t
19582 else
19584 for ac_header in inttypes.h
19585 do :
19586 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19587 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19588 cat >>confdefs.h <<_ACEOF
19589 #define HAVE_INTTYPES_H 1
19590 _ACEOF
19591 uint16=uint16_t
19592 else
19594 for ac_header in sys/types.h
19595 do :
19596 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19597 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19598 cat >>confdefs.h <<_ACEOF
19599 #define HAVE_SYS_TYPES_H 1
19600 _ACEOF
19601 uint16=u_int16_t
19602 else
19604 # The cast to long int works around a bug in the HP C Compiler
19605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19607 # This bug is HP SR number 8606223364.
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
19609 $as_echo_n "checking size of unsigned short... " >&6; }
19610 if ${ac_cv_sizeof_unsigned_short+:} false; then :
19611 $as_echo_n "(cached) " >&6
19612 else
19613 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
19615 else
19616 if test "$ac_cv_type_unsigned_short" = yes; then
19617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19619 as_fn_error 77 "cannot compute sizeof (unsigned short)
19620 See \`config.log' for more details" "$LINENO" 5; }
19621 else
19622 ac_cv_sizeof_unsigned_short=0
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
19628 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
19632 cat >>confdefs.h <<_ACEOF
19633 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
19634 _ACEOF
19637 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
19638 uint16="unsigned short"
19639 else
19640 # The cast to long int works around a bug in the HP C Compiler
19641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19643 # This bug is HP SR number 8606223364.
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19645 $as_echo_n "checking size of unsigned int... " >&6; }
19646 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19647 $as_echo_n "(cached) " >&6
19648 else
19649 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19651 else
19652 if test "$ac_cv_type_unsigned_int" = yes; then
19653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19655 as_fn_error 77 "cannot compute sizeof (unsigned int)
19656 See \`config.log' for more details" "$LINENO" 5; }
19657 else
19658 ac_cv_sizeof_unsigned_int=0
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19664 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19668 cat >>confdefs.h <<_ACEOF
19669 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19670 _ACEOF
19673 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
19674 uint16="unsigned int"
19675 else
19676 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
19682 done
19687 done
19692 done
19695 cat >>confdefs.h <<_ACEOF
19696 #define UINT16 $uint16
19697 _ACEOF
19700 for ac_header in stdint.h
19701 do :
19702 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19703 if test "x$ac_cv_header_stdint_h" = xyes; then :
19704 cat >>confdefs.h <<_ACEOF
19705 #define HAVE_STDINT_H 1
19706 _ACEOF
19707 uint32=uint32_t
19708 else
19710 for ac_header in inttypes.h
19711 do :
19712 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19713 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_INTTYPES_H 1
19716 _ACEOF
19717 uint32=uint32_t
19718 else
19720 for ac_header in sys/types.h
19721 do :
19722 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19723 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_SYS_TYPES_H 1
19726 _ACEOF
19727 uint32=u_int32_t
19728 else
19730 # The cast to long int works around a bug in the HP C Compiler
19731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19733 # This bug is HP SR number 8606223364.
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19735 $as_echo_n "checking size of unsigned int... " >&6; }
19736 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19737 $as_echo_n "(cached) " >&6
19738 else
19739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19741 else
19742 if test "$ac_cv_type_unsigned_int" = yes; then
19743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19745 as_fn_error 77 "cannot compute sizeof (unsigned int)
19746 See \`config.log' for more details" "$LINENO" 5; }
19747 else
19748 ac_cv_sizeof_unsigned_int=0
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19754 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19758 cat >>confdefs.h <<_ACEOF
19759 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19760 _ACEOF
19763 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
19764 uint32="unsigned int"
19765 else
19766 # The cast to long int works around a bug in the HP C Compiler
19767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19769 # This bug is HP SR number 8606223364.
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
19771 $as_echo_n "checking size of unsigned long... " >&6; }
19772 if ${ac_cv_sizeof_unsigned_long+:} false; then :
19773 $as_echo_n "(cached) " >&6
19774 else
19775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
19777 else
19778 if test "$ac_cv_type_unsigned_long" = yes; then
19779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19781 as_fn_error 77 "cannot compute sizeof (unsigned long)
19782 See \`config.log' for more details" "$LINENO" 5; }
19783 else
19784 ac_cv_sizeof_unsigned_long=0
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
19790 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
19794 cat >>confdefs.h <<_ACEOF
19795 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19796 _ACEOF
19799 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
19800 uint32="unsigned long"
19801 else
19802 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
19808 done
19813 done
19818 done
19821 cat >>confdefs.h <<_ACEOF
19822 #define UINT32 $uint32
19823 _ACEOF
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
19827 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
19828 if ${ac_cv_func_qsort_argtype+:} false; then :
19829 $as_echo_n "(cached) " >&6
19830 else
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19834 #if HAVE_STDLIB_H
19835 #include "stdlib.h"
19836 #endif
19838 extern void *base;
19839 extern sortf(const void *, const void *);
19840 int sortf(a, b)
19841 const void *a;
19842 const void *b; { return 0; }
19845 main ()
19848 qsort(base, 2, sizeof(char *), sortf);
19851 return 0;
19853 _ACEOF
19854 if ac_fn_c_try_compile "$LINENO"; then :
19855 ac_cv_func_qsort_argtype=void
19856 else
19857 ac_cv_func_qsort_argtype=char
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
19863 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
19865 cat >>confdefs.h <<_ACEOF
19866 #define qsort_t $ac_cv_func_qsort_argtype
19867 _ACEOF
19871 for ac_header in sys/select.h sys/socket.h
19872 do :
19873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19882 done
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19885 $as_echo_n "checking types of arguments for select... " >&6; }
19886 if ${ac_cv_func_select_args+:} false; then :
19887 $as_echo_n "(cached) " >&6
19888 else
19889 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19890 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19891 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #ifdef HAVE_SYS_SELECT_H
19896 # include <sys/select.h>
19897 #endif
19898 #ifdef HAVE_SYS_SOCKET_H
19899 # include <sys/socket.h>
19900 #endif
19903 main ()
19905 extern int select ($ac_arg1,
19906 $ac_arg234, $ac_arg234, $ac_arg234,
19907 $ac_arg5);
19909 return 0;
19911 _ACEOF
19912 if ac_fn_c_try_compile "$LINENO"; then :
19913 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 done
19917 done
19918 done
19919 # Provide a safe default value.
19920 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19924 $as_echo "$ac_cv_func_select_args" >&6; }
19925 ac_save_IFS=$IFS; IFS=','
19926 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19927 IFS=$ac_save_IFS
19928 shift
19930 cat >>confdefs.h <<_ACEOF
19931 #define SELECT_TYPE_ARG1 $1
19932 _ACEOF
19935 cat >>confdefs.h <<_ACEOF
19936 #define SELECT_TYPE_ARG234 ($2)
19937 _ACEOF
19940 cat >>confdefs.h <<_ACEOF
19941 #define SELECT_TYPE_ARG5 ($3)
19942 _ACEOF
19944 rm -f conftest*
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19948 $as_echo_n "checking for working strcoll... " >&6; }
19949 if ${ac_cv_func_strcoll_works+:} false; then :
19950 $as_echo_n "(cached) " >&6
19951 else
19952 if test "$cross_compiling" = yes; then :
19953 ac_cv_func_strcoll_works=no
19954 else
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h. */
19957 $ac_includes_default
19959 main ()
19961 return (strcoll ("abc", "def") >= 0 ||
19962 strcoll ("ABC", "DEF") >= 0 ||
19963 strcoll ("123", "456") >= 0)
19965 return 0;
19967 _ACEOF
19968 if ac_fn_c_try_run "$LINENO"; then :
19969 ac_cv_func_strcoll_works=yes
19970 else
19971 ac_cv_func_strcoll_works=no
19973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19974 conftest.$ac_objext conftest.beam conftest.$ac_ext
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
19979 $as_echo "$ac_cv_func_strcoll_works" >&6; }
19980 if test $ac_cv_func_strcoll_works = yes; then
19982 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
19988 for ac_header in vfork.h
19989 do :
19990 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_vfork_h" = xyes; then :
19992 cat >>confdefs.h <<_ACEOF
19993 #define HAVE_VFORK_H 1
19994 _ACEOF
19998 done
20000 for ac_func in fork vfork
20001 do :
20002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20005 cat >>confdefs.h <<_ACEOF
20006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20007 _ACEOF
20010 done
20012 if test "x$ac_cv_func_fork" = xyes; then
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20014 $as_echo_n "checking for working fork... " >&6; }
20015 if ${ac_cv_func_fork_works+:} false; then :
20016 $as_echo_n "(cached) " >&6
20017 else
20018 if test "$cross_compiling" = yes; then :
20019 ac_cv_func_fork_works=cross
20020 else
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023 $ac_includes_default
20025 main ()
20028 /* By Ruediger Kuhlmann. */
20029 return fork () < 0;
20032 return 0;
20034 _ACEOF
20035 if ac_fn_c_try_run "$LINENO"; then :
20036 ac_cv_func_fork_works=yes
20037 else
20038 ac_cv_func_fork_works=no
20040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041 conftest.$ac_objext conftest.beam conftest.$ac_ext
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20046 $as_echo "$ac_cv_func_fork_works" >&6; }
20048 else
20049 ac_cv_func_fork_works=$ac_cv_func_fork
20051 if test "x$ac_cv_func_fork_works" = xcross; then
20052 case $host in
20053 *-*-amigaos* | *-*-msdosdjgpp*)
20054 # Override, as these systems have only a dummy fork() stub
20055 ac_cv_func_fork_works=no
20058 ac_cv_func_fork_works=yes
20060 esac
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20062 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20064 ac_cv_func_vfork_works=$ac_cv_func_vfork
20065 if test "x$ac_cv_func_vfork" = xyes; then
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20067 $as_echo_n "checking for working vfork... " >&6; }
20068 if ${ac_cv_func_vfork_works+:} false; then :
20069 $as_echo_n "(cached) " >&6
20070 else
20071 if test "$cross_compiling" = yes; then :
20072 ac_cv_func_vfork_works=cross
20073 else
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20076 /* Thanks to Paul Eggert for this test. */
20077 $ac_includes_default
20078 #include <sys/wait.h>
20079 #ifdef HAVE_VFORK_H
20080 # include <vfork.h>
20081 #endif
20082 /* On some sparc systems, changes by the child to local and incoming
20083 argument registers are propagated back to the parent. The compiler
20084 is told about this with #include <vfork.h>, but some compilers
20085 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20086 static variable whose address is put into a register that is
20087 clobbered by the vfork. */
20088 static void
20089 #ifdef __cplusplus
20090 sparc_address_test (int arg)
20091 # else
20092 sparc_address_test (arg) int arg;
20093 #endif
20095 static pid_t child;
20096 if (!child) {
20097 child = vfork ();
20098 if (child < 0) {
20099 perror ("vfork");
20100 _exit(2);
20102 if (!child) {
20103 arg = getpid();
20104 write(-1, "", 0);
20105 _exit (arg);
20111 main ()
20113 pid_t parent = getpid ();
20114 pid_t child;
20116 sparc_address_test (0);
20118 child = vfork ();
20120 if (child == 0) {
20121 /* Here is another test for sparc vfork register problems. This
20122 test uses lots of local variables, at least as many local
20123 variables as main has allocated so far including compiler
20124 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20125 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20126 reuse the register of parent for one of the local variables,
20127 since it will think that parent can't possibly be used any more
20128 in this routine. Assigning to the local variable will thus
20129 munge parent in the parent process. */
20130 pid_t
20131 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20132 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20133 /* Convince the compiler that p..p7 are live; otherwise, it might
20134 use the same hardware register for all 8 local variables. */
20135 if (p != p1 || p != p2 || p != p3 || p != p4
20136 || p != p5 || p != p6 || p != p7)
20137 _exit(1);
20139 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20140 from child file descriptors. If the child closes a descriptor
20141 before it execs or exits, this munges the parent's descriptor
20142 as well. Test for this by closing stdout in the child. */
20143 _exit(close(fileno(stdout)) != 0);
20144 } else {
20145 int status;
20146 struct stat st;
20148 while (wait(&status) != child)
20150 return (
20151 /* Was there some problem with vforking? */
20152 child < 0
20154 /* Did the child fail? (This shouldn't happen.) */
20155 || status
20157 /* Did the vfork/compiler bug occur? */
20158 || parent != getpid()
20160 /* Did the file descriptor bug occur? */
20161 || fstat(fileno(stdout), &st) != 0
20165 _ACEOF
20166 if ac_fn_c_try_run "$LINENO"; then :
20167 ac_cv_func_vfork_works=yes
20168 else
20169 ac_cv_func_vfork_works=no
20171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20172 conftest.$ac_objext conftest.beam conftest.$ac_ext
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20177 $as_echo "$ac_cv_func_vfork_works" >&6; }
20180 if test "x$ac_cv_func_fork_works" = xcross; then
20181 ac_cv_func_vfork_works=$ac_cv_func_vfork
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20183 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20186 if test "x$ac_cv_func_vfork_works" = xyes; then
20188 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20190 else
20192 $as_echo "#define vfork fork" >>confdefs.h
20195 if test "x$ac_cv_func_fork_works" = xyes; then
20197 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20201 for ac_func in strchr \
20202 memcpy \
20203 strtol \
20204 strtoul \
20205 select \
20206 poll \
20207 qsort \
20208 getuid \
20209 getpwuid \
20210 getpwnam \
20211 gettimeofday \
20212 tmpfile \
20213 uname \
20214 rename \
20215 read \
20216 signal \
20217 setjmp \
20218 chown \
20219 wait4 \
20220 waitpid \
20221 wait \
20222 srandom \
20223 popen \
20224 pclose \
20225 fsync \
20226 truncate \
20227 listen \
20228 wcwidth \
20229 mbstowcs \
20230 wcrtomb \
20231 putenv \
20232 setenv
20233 do :
20234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20236 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20237 cat >>confdefs.h <<_ACEOF
20238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20239 _ACEOF
20242 done
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
20246 $as_echo_n "checking for library containing gethostname... " >&6; }
20247 if ${ac_cv_search_gethostname+:} false; then :
20248 $as_echo_n "(cached) " >&6
20249 else
20250 ac_func_search_save_LIBS=$LIBS
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 /* Override any GCC internal prototype to avoid an error.
20255 Use char because int might match the return type of a GCC
20256 builtin and then its argument prototype would still apply. */
20257 #ifdef __cplusplus
20258 extern "C"
20259 #endif
20260 char gethostname ();
20262 main ()
20264 return gethostname ();
20266 return 0;
20268 _ACEOF
20269 for ac_lib in '' nsl; do
20270 if test -z "$ac_lib"; then
20271 ac_res="none required"
20272 else
20273 ac_res=-l$ac_lib
20274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20276 if ac_fn_c_try_link "$LINENO"; then :
20277 ac_cv_search_gethostname=$ac_res
20279 rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext
20281 if ${ac_cv_search_gethostname+:} false; then :
20282 break
20284 done
20285 if ${ac_cv_search_gethostname+:} false; then :
20287 else
20288 ac_cv_search_gethostname=no
20290 rm conftest.$ac_ext
20291 LIBS=$ac_func_search_save_LIBS
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
20294 $as_echo "$ac_cv_search_gethostname" >&6; }
20295 ac_res=$ac_cv_search_gethostname
20296 if test "$ac_res" != no; then :
20297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20303 $as_echo_n "checking for library containing socket... " >&6; }
20304 if ${ac_cv_search_socket+:} false; then :
20305 $as_echo_n "(cached) " >&6
20306 else
20307 ac_func_search_save_LIBS=$LIBS
20308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309 /* end confdefs.h. */
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char socket ();
20319 main ()
20321 return socket ();
20323 return 0;
20325 _ACEOF
20326 for ac_lib in '' socket; do
20327 if test -z "$ac_lib"; then
20328 ac_res="none required"
20329 else
20330 ac_res=-l$ac_lib
20331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20333 if ac_fn_c_try_link "$LINENO"; then :
20334 ac_cv_search_socket=$ac_res
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext
20338 if ${ac_cv_search_socket+:} false; then :
20339 break
20341 done
20342 if ${ac_cv_search_socket+:} false; then :
20344 else
20345 ac_cv_search_socket=no
20347 rm conftest.$ac_ext
20348 LIBS=$ac_func_search_save_LIBS
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20351 $as_echo "$ac_cv_search_socket" >&6; }
20352 ac_res=$ac_cv_search_socket
20353 if test "$ac_res" != no; then :
20354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20356 else
20358 WEB_BUILD=
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
20364 $as_echo_n "checking for library containing bind... " >&6; }
20365 if ${ac_cv_search_bind+:} false; then :
20366 $as_echo_n "(cached) " >&6
20367 else
20368 ac_func_search_save_LIBS=$LIBS
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char bind ();
20380 main ()
20382 return bind ();
20384 return 0;
20386 _ACEOF
20387 for ac_lib in '' bind; do
20388 if test -z "$ac_lib"; then
20389 ac_res="none required"
20390 else
20391 ac_res=-l$ac_lib
20392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20394 if ac_fn_c_try_link "$LINENO"; then :
20395 ac_cv_search_bind=$ac_res
20397 rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext
20399 if ${ac_cv_search_bind+:} false; then :
20400 break
20402 done
20403 if ${ac_cv_search_bind+:} false; then :
20405 else
20406 ac_cv_search_bind=no
20408 rm conftest.$ac_ext
20409 LIBS=$ac_func_search_save_LIBS
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
20412 $as_echo "$ac_cv_search_bind" >&6; }
20413 ac_res=$ac_cv_search_bind
20414 if test "$ac_res" != no; then :
20415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20417 else
20419 WEB_BUILD=
20424 for ac_func in sigaction sigemptyset sigaddset sigprocmask
20425 do :
20426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20429 cat >>confdefs.h <<_ACEOF
20430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20431 _ACEOF
20434 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
20437 else
20439 for ac_func in sigset sigrelse
20440 do :
20441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20444 cat >>confdefs.h <<_ACEOF
20445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20446 _ACEOF
20449 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
20453 done
20457 done
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
20461 $as_echo_n "checking for library containing syslog... " >&6; }
20462 if ${ac_cv_search_syslog+:} false; then :
20463 $as_echo_n "(cached) " >&6
20464 else
20465 ac_func_search_save_LIBS=$LIBS
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20469 /* Override any GCC internal prototype to avoid an error.
20470 Use char because int might match the return type of a GCC
20471 builtin and then its argument prototype would still apply. */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 char syslog ();
20477 main ()
20479 return syslog ();
20481 return 0;
20483 _ACEOF
20484 for ac_lib in '' bsd socket inet; do
20485 if test -z "$ac_lib"; then
20486 ac_res="none required"
20487 else
20488 ac_res=-l$ac_lib
20489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20491 if ac_fn_c_try_link "$LINENO"; then :
20492 ac_cv_search_syslog=$ac_res
20494 rm -f core conftest.err conftest.$ac_objext \
20495 conftest$ac_exeext
20496 if ${ac_cv_search_syslog+:} false; then :
20497 break
20499 done
20500 if ${ac_cv_search_syslog+:} false; then :
20502 else
20503 ac_cv_search_syslog=no
20505 rm conftest.$ac_ext
20506 LIBS=$ac_func_search_save_LIBS
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
20509 $as_echo "$ac_cv_search_syslog" >&6; }
20510 ac_res=$ac_cv_search_syslog
20511 if test "$ac_res" != no; then :
20512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20515 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
20522 if test -n "$alpine_with_local_maildir" ; then
20523 alpine_local_maildir=$alpine_with_local_maildir
20524 elif test -d /var/spool/mail ; then
20525 alpine_local_maildir="/var/spool/mail"
20526 elif test -d /var/mail ; then
20527 alpine_local_maildir="/var/mail"
20528 else
20529 alpine_local_maildir="/usr/spool/mail"
20532 if test -n "$alpine_with_c_client_target" ; then
20533 alpine_c_client_target=$alpine_with_c_client_target
20537 cat >>confdefs.h <<_ACEOF
20538 #define SYSTYPE "$systype"
20539 _ACEOF
20542 cat >>confdefs.h <<_ACEOF
20543 #define C_FILESEP '$alpine_path_delim'
20544 _ACEOF
20547 cat >>confdefs.h <<_ACEOF
20548 #define S_FILESEP "$alpine_path_delim"
20549 _ACEOF
20552 cat >>confdefs.h <<_ACEOF
20553 #define MAILDIR "$alpine_local_maildir"
20554 _ACEOF
20557 cat >>confdefs.h <<_ACEOF
20558 #define MODE_READONLY $alpine_mode_readonly
20559 _ACEOF
20562 C_CLIENT_TARGET=$alpine_c_client_target
20564 C_CLIENT_WITH_IPV6=$c_client_ip6
20566 if test "x$alpine_SSLTYPE" = "xnone" ; then
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
20568 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
20569 c_client_specials="${c_client_specials}SSLTYPE=none "
20570 else
20572 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
20573 certdir="$alpine_SSLCERTS"
20574 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
20575 certdir="${alpine_SSLDIR}/certs"
20576 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
20577 certdir="${alpine_SSLDIR}/ssl/certs"
20578 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
20579 certdir="$alpine_SSLCERTS_ORIG"
20580 else
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
20582 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
20585 if test "x$with_smime" != "xno" ; then
20586 if test -n "$certdir" ; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
20588 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
20590 $as_echo "#define SMIME /**/" >>confdefs.h
20593 cat >>confdefs.h <<_ACEOF
20594 #define SMIME_SSLCERTS "$certdir"
20595 _ACEOF
20600 if test ! -f ${certdir}/factory.pem ; then
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
20602 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
20604 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
20606 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
20608 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
20611 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
20613 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
20615 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
20617 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
20619 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
20622 if test -n "$alpine_SSLINCLUDE" ; then
20623 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
20626 if test -n "$alpine_SSLLIB" ; then
20627 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
20630 if test -n "$alpine_SSLDIR" ; then
20631 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
20634 if test -n "$certdir" ; then
20635 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
20638 if test -n "$alpine_SSLKEYS" ; then
20639 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
20643 if test "x$alpine_GSSTYPE" != "xnone" ; then
20644 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
20646 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
20649 if test -n "$CPPFLAGS" ; then
20650 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
20652 if test -n "$CFLAGS" ; then
20653 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
20656 if test -n "$alpine_c_client_cflags" ; then
20657 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
20661 if test -n "$LDFLAGS" ; then
20662 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
20664 if test -n "$LIBS" ; then
20665 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
20668 if test -n "$alpine_c_client_ldflags" ; then
20669 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
20673 if test -n "$alpine_c_client_gccoptlevel" ; then
20674 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
20678 C_CLIENT_SPECIALS=$c_client_specials
20681 if test -z "$WEB_BUILD" ; then
20682 WEB_PUBCOOKIE_BUILD=
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
20684 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
20686 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
20687 else
20688 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
20689 if test "x$alpine_GSSTYPE" = "xnone" ; then
20690 WEB_PUBCOOKIE_BUILD=
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
20692 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
20694 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
20695 elif test -z "$WEB_BINDIR" ; then
20696 WEB_PUBCOOKIE_BUILD=
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
20698 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
20699 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
20700 Please re-run configure with these options:
20701 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
20702 else
20704 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
20706 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
20707 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
20723 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"
20725 cat >confcache <<\_ACEOF
20726 # This file is a shell script that caches the results of configure
20727 # tests run on this system so they can be shared between configure
20728 # scripts and configure runs, see configure's option --config-cache.
20729 # It is not useful on other systems. If it contains results you don't
20730 # want to keep, you may remove or edit it.
20732 # config.status only pays attention to the cache file if you give it
20733 # the --recheck option to rerun configure.
20735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20737 # following values.
20739 _ACEOF
20741 # The following way of writing the cache mishandles newlines in values,
20742 # but we know of no workaround that is simple, portable, and efficient.
20743 # So, we kill variables containing newlines.
20744 # Ultrix sh set writes to stderr and can't be redirected directly,
20745 # and sets the high bit in the cache file unless we assign to the vars.
20747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20748 eval ac_val=\$$ac_var
20749 case $ac_val in #(
20750 *${as_nl}*)
20751 case $ac_var in #(
20752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20754 esac
20755 case $ac_var in #(
20756 _ | IFS | as_nl) ;; #(
20757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20758 *) { eval $ac_var=; unset $ac_var;} ;;
20759 esac ;;
20760 esac
20761 done
20763 (set) 2>&1 |
20764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20765 *${as_nl}ac_space=\ *)
20766 # `set' does not quote correctly, so add quotes: double-quote
20767 # substitution turns \\\\ into \\, and sed turns \\ into \.
20768 sed -n \
20769 "s/'/'\\\\''/g;
20770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20771 ;; #(
20773 # `set' quotes correctly as required by POSIX, so do not add quotes.
20774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20776 esac |
20777 sort
20779 sed '
20780 /^ac_cv_env_/b end
20781 t clear
20782 :clear
20783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20784 t end
20785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20786 :end' >>confcache
20787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20788 if test -w "$cache_file"; then
20789 if test "x$cache_file" != "x/dev/null"; then
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20791 $as_echo "$as_me: updating cache $cache_file" >&6;}
20792 if test ! -f "$cache_file" || test -h "$cache_file"; then
20793 cat confcache >"$cache_file"
20794 else
20795 case $cache_file in #(
20796 */* | ?:*)
20797 mv -f confcache "$cache_file"$$ &&
20798 mv -f "$cache_file"$$ "$cache_file" ;; #(
20800 mv -f confcache "$cache_file" ;;
20801 esac
20804 else
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20806 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20809 rm -f confcache
20811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20812 # Let make expand exec_prefix.
20813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20815 DEFS=-DHAVE_CONFIG_H
20817 ac_libobjs=
20818 ac_ltlibobjs=
20820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20821 # 1. Remove the extension, and $U if already installed.
20822 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20823 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20824 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20825 # will be set to the directory where LIBOBJS objects are built.
20826 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20827 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20828 done
20829 LIBOBJS=$ac_libobjs
20831 LTLIBOBJS=$ac_ltlibobjs
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20835 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20836 if test -n "$am_sleep_pid"; then
20837 # Hide warnings about reused PIDs.
20838 wait $am_sleep_pid 2>/dev/null
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20841 $as_echo "done" >&6; }
20842 if test -n "$EXEEXT"; then
20843 am__EXEEXT_TRUE=
20844 am__EXEEXT_FALSE='#'
20845 else
20846 am__EXEEXT_TRUE='#'
20847 am__EXEEXT_FALSE=
20850 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20851 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20855 as_fn_error $? "conditional \"AMDEP\" was never defined.
20856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20863 : "${CONFIG_STATUS=./config.status}"
20864 ac_write_fail=0
20865 ac_clean_files_save=$ac_clean_files
20866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20869 as_write_fail=0
20870 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20871 #! $SHELL
20872 # Generated by $as_me.
20873 # Run this file to recreate the current configuration.
20874 # Compiler output produced by configure, useful for debugging
20875 # configure, is in config.log if it exists.
20877 debug=false
20878 ac_cs_recheck=false
20879 ac_cs_silent=false
20881 SHELL=\${CONFIG_SHELL-$SHELL}
20882 export SHELL
20883 _ASEOF
20884 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20885 ## -------------------- ##
20886 ## M4sh Initialization. ##
20887 ## -------------------- ##
20889 # Be more Bourne compatible
20890 DUALCASE=1; export DUALCASE # for MKS sh
20891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20892 emulate sh
20893 NULLCMD=:
20894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20895 # is contrary to our usage. Disable this feature.
20896 alias -g '${1+"$@"}'='"$@"'
20897 setopt NO_GLOB_SUBST
20898 else
20899 case `(set -o) 2>/dev/null` in #(
20900 *posix*) :
20901 set -o posix ;; #(
20902 *) :
20904 esac
20908 as_nl='
20910 export as_nl
20911 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20915 # Prefer a ksh shell builtin over an external printf program on Solaris,
20916 # but without wasting forks for bash or zsh.
20917 if test -z "$BASH_VERSION$ZSH_VERSION" \
20918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20919 as_echo='print -r --'
20920 as_echo_n='print -rn --'
20921 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20922 as_echo='printf %s\n'
20923 as_echo_n='printf %s'
20924 else
20925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20927 as_echo_n='/usr/ucb/echo -n'
20928 else
20929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20930 as_echo_n_body='eval
20931 arg=$1;
20932 case $arg in #(
20933 *"$as_nl"*)
20934 expr "X$arg" : "X\\(.*\\)$as_nl";
20935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20936 esac;
20937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20939 export as_echo_n_body
20940 as_echo_n='sh -c $as_echo_n_body as_echo'
20942 export as_echo_body
20943 as_echo='sh -c $as_echo_body as_echo'
20946 # The user is always right.
20947 if test "${PATH_SEPARATOR+set}" != set; then
20948 PATH_SEPARATOR=:
20949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20951 PATH_SEPARATOR=';'
20956 # IFS
20957 # We need space, tab and new line, in precisely that order. Quoting is
20958 # there to prevent editors from complaining about space-tab.
20959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20960 # splitting by setting IFS to empty value.)
20961 IFS=" "" $as_nl"
20963 # Find who we are. Look in the path if we contain no directory separator.
20964 as_myself=
20965 case $0 in #((
20966 *[\\/]* ) as_myself=$0 ;;
20967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20968 for as_dir in $PATH
20970 IFS=$as_save_IFS
20971 test -z "$as_dir" && as_dir=.
20972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20973 done
20974 IFS=$as_save_IFS
20977 esac
20978 # We did not find ourselves, most probably we were run as `sh COMMAND'
20979 # in which case we are not to be found in the path.
20980 if test "x$as_myself" = x; then
20981 as_myself=$0
20983 if test ! -f "$as_myself"; then
20984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20985 exit 1
20988 # Unset variables that we do not need and which cause bugs (e.g. in
20989 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20990 # suppresses any "Segmentation fault" message there. '((' could
20991 # trigger a bug in pdksh 5.2.14.
20992 for as_var in BASH_ENV ENV MAIL MAILPATH
20993 do eval test x\${$as_var+set} = xset \
20994 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20995 done
20996 PS1='$ '
20997 PS2='> '
20998 PS4='+ '
21000 # NLS nuisances.
21001 LC_ALL=C
21002 export LC_ALL
21003 LANGUAGE=C
21004 export LANGUAGE
21006 # CDPATH.
21007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21010 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21011 # ----------------------------------------
21012 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21013 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21014 # script with STATUS, using 1 if that was 0.
21015 as_fn_error ()
21017 as_status=$1; test $as_status -eq 0 && as_status=1
21018 if test "$4"; then
21019 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21020 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21022 $as_echo "$as_me: error: $2" >&2
21023 as_fn_exit $as_status
21024 } # as_fn_error
21027 # as_fn_set_status STATUS
21028 # -----------------------
21029 # Set $? to STATUS, without forking.
21030 as_fn_set_status ()
21032 return $1
21033 } # as_fn_set_status
21035 # as_fn_exit STATUS
21036 # -----------------
21037 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21038 as_fn_exit ()
21040 set +e
21041 as_fn_set_status $1
21042 exit $1
21043 } # as_fn_exit
21045 # as_fn_unset VAR
21046 # ---------------
21047 # Portably unset VAR.
21048 as_fn_unset ()
21050 { eval $1=; unset $1;}
21052 as_unset=as_fn_unset
21053 # as_fn_append VAR VALUE
21054 # ----------------------
21055 # Append the text in VALUE to the end of the definition contained in VAR. Take
21056 # advantage of any shell optimizations that allow amortized linear growth over
21057 # repeated appends, instead of the typical quadratic growth present in naive
21058 # implementations.
21059 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21060 eval 'as_fn_append ()
21062 eval $1+=\$2
21064 else
21065 as_fn_append ()
21067 eval $1=\$$1\$2
21069 fi # as_fn_append
21071 # as_fn_arith ARG...
21072 # ------------------
21073 # Perform arithmetic evaluation on the ARGs, and store the result in the
21074 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21075 # must be portable across $(()) and expr.
21076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21077 eval 'as_fn_arith ()
21079 as_val=$(( $* ))
21081 else
21082 as_fn_arith ()
21084 as_val=`expr "$@" || test $? -eq 1`
21086 fi # as_fn_arith
21089 if expr a : '\(a\)' >/dev/null 2>&1 &&
21090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21091 as_expr=expr
21092 else
21093 as_expr=false
21096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21097 as_basename=basename
21098 else
21099 as_basename=false
21102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21103 as_dirname=dirname
21104 else
21105 as_dirname=false
21108 as_me=`$as_basename -- "$0" ||
21109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21110 X"$0" : 'X\(//\)$' \| \
21111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21112 $as_echo X/"$0" |
21113 sed '/^.*\/\([^/][^/]*\)\/*$/{
21114 s//\1/
21117 /^X\/\(\/\/\)$/{
21118 s//\1/
21121 /^X\/\(\/\).*/{
21122 s//\1/
21125 s/.*/./; q'`
21127 # Avoid depending upon Character Ranges.
21128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21131 as_cr_digits='0123456789'
21132 as_cr_alnum=$as_cr_Letters$as_cr_digits
21134 ECHO_C= ECHO_N= ECHO_T=
21135 case `echo -n x` in #(((((
21136 -n*)
21137 case `echo 'xy\c'` in
21138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21139 xy) ECHO_C='\c';;
21140 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21141 ECHO_T=' ';;
21142 esac;;
21144 ECHO_N='-n';;
21145 esac
21147 rm -f conf$$ conf$$.exe conf$$.file
21148 if test -d conf$$.dir; then
21149 rm -f conf$$.dir/conf$$.file
21150 else
21151 rm -f conf$$.dir
21152 mkdir conf$$.dir 2>/dev/null
21154 if (echo >conf$$.file) 2>/dev/null; then
21155 if ln -s conf$$.file conf$$ 2>/dev/null; then
21156 as_ln_s='ln -s'
21157 # ... but there are two gotchas:
21158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21160 # In both cases, we have to default to `cp -pR'.
21161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21162 as_ln_s='cp -pR'
21163 elif ln conf$$.file conf$$ 2>/dev/null; then
21164 as_ln_s=ln
21165 else
21166 as_ln_s='cp -pR'
21168 else
21169 as_ln_s='cp -pR'
21171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21172 rmdir conf$$.dir 2>/dev/null
21175 # as_fn_mkdir_p
21176 # -------------
21177 # Create "$as_dir" as a directory, including parents if necessary.
21178 as_fn_mkdir_p ()
21181 case $as_dir in #(
21182 -*) as_dir=./$as_dir;;
21183 esac
21184 test -d "$as_dir" || eval $as_mkdir_p || {
21185 as_dirs=
21186 while :; do
21187 case $as_dir in #(
21188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21189 *) as_qdir=$as_dir;;
21190 esac
21191 as_dirs="'$as_qdir' $as_dirs"
21192 as_dir=`$as_dirname -- "$as_dir" ||
21193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21194 X"$as_dir" : 'X\(//\)[^/]' \| \
21195 X"$as_dir" : 'X\(//\)$' \| \
21196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21197 $as_echo X"$as_dir" |
21198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21199 s//\1/
21202 /^X\(\/\/\)[^/].*/{
21203 s//\1/
21206 /^X\(\/\/\)$/{
21207 s//\1/
21210 /^X\(\/\).*/{
21211 s//\1/
21214 s/.*/./; q'`
21215 test -d "$as_dir" && break
21216 done
21217 test -z "$as_dirs" || eval "mkdir $as_dirs"
21218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21221 } # as_fn_mkdir_p
21222 if mkdir -p . 2>/dev/null; then
21223 as_mkdir_p='mkdir -p "$as_dir"'
21224 else
21225 test -d ./-p && rmdir ./-p
21226 as_mkdir_p=false
21230 # as_fn_executable_p FILE
21231 # -----------------------
21232 # Test if FILE is an executable regular file.
21233 as_fn_executable_p ()
21235 test -f "$1" && test -x "$1"
21236 } # as_fn_executable_p
21237 as_test_x='test -x'
21238 as_executable_p=as_fn_executable_p
21240 # Sed expression to map a string onto a valid CPP name.
21241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21243 # Sed expression to map a string onto a valid variable name.
21244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21247 exec 6>&1
21248 ## ----------------------------------- ##
21249 ## Main body of $CONFIG_STATUS script. ##
21250 ## ----------------------------------- ##
21251 _ASEOF
21252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21255 # Save the log message, to keep $0 and so on meaningful, and to
21256 # report actual input values of CONFIG_FILES etc. instead of their
21257 # values after options handling.
21258 ac_log="
21259 This file was extended by alpine $as_me 2.19.10, which was
21260 generated by GNU Autoconf 2.69. Invocation command line was
21262 CONFIG_FILES = $CONFIG_FILES
21263 CONFIG_HEADERS = $CONFIG_HEADERS
21264 CONFIG_LINKS = $CONFIG_LINKS
21265 CONFIG_COMMANDS = $CONFIG_COMMANDS
21266 $ $0 $@
21268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21271 _ACEOF
21273 case $ac_config_files in *"
21274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21275 esac
21277 case $ac_config_headers in *"
21278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21279 esac
21282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21283 # Files that config.status was made for.
21284 config_files="$ac_config_files"
21285 config_headers="$ac_config_headers"
21286 config_commands="$ac_config_commands"
21288 _ACEOF
21290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21291 ac_cs_usage="\
21292 \`$as_me' instantiates files and other configuration actions
21293 from templates according to the current configuration. Unless the files
21294 and actions are specified as TAGs, all are instantiated by default.
21296 Usage: $0 [OPTION]... [TAG]...
21298 -h, --help print this help, then exit
21299 -V, --version print version number and configuration settings, then exit
21300 --config print configuration, then exit
21301 -q, --quiet, --silent
21302 do not print progress messages
21303 -d, --debug don't remove temporary files
21304 --recheck update $as_me by reconfiguring in the same conditions
21305 --file=FILE[:TEMPLATE]
21306 instantiate the configuration file FILE
21307 --header=FILE[:TEMPLATE]
21308 instantiate the configuration header FILE
21310 Configuration files:
21311 $config_files
21313 Configuration headers:
21314 $config_headers
21316 Configuration commands:
21317 $config_commands
21319 Report bugs to <chappa@washington.edu>."
21321 _ACEOF
21322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21323 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21324 ac_cs_version="\\
21325 alpine config.status 2.19.10
21326 configured by $0, generated by GNU Autoconf 2.69,
21327 with options \\"\$ac_cs_config\\"
21329 Copyright (C) 2012 Free Software Foundation, Inc.
21330 This config.status script is free software; the Free Software Foundation
21331 gives unlimited permission to copy, distribute and modify it."
21333 ac_pwd='$ac_pwd'
21334 srcdir='$srcdir'
21335 INSTALL='$INSTALL'
21336 MKDIR_P='$MKDIR_P'
21337 AWK='$AWK'
21338 test -n "\$AWK" || AWK=awk
21339 _ACEOF
21341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21342 # The default lists apply if the user does not specify any file.
21343 ac_need_defaults=:
21344 while test $# != 0
21346 case $1 in
21347 --*=?*)
21348 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21349 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21350 ac_shift=:
21352 --*=)
21353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354 ac_optarg=
21355 ac_shift=:
21358 ac_option=$1
21359 ac_optarg=$2
21360 ac_shift=shift
21362 esac
21364 case $ac_option in
21365 # Handling of the options.
21366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21367 ac_cs_recheck=: ;;
21368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21369 $as_echo "$ac_cs_version"; exit ;;
21370 --config | --confi | --conf | --con | --co | --c )
21371 $as_echo "$ac_cs_config"; exit ;;
21372 --debug | --debu | --deb | --de | --d | -d )
21373 debug=: ;;
21374 --file | --fil | --fi | --f )
21375 $ac_shift
21376 case $ac_optarg in
21377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21378 '') as_fn_error $? "missing file argument" ;;
21379 esac
21380 as_fn_append CONFIG_FILES " '$ac_optarg'"
21381 ac_need_defaults=false;;
21382 --header | --heade | --head | --hea )
21383 $ac_shift
21384 case $ac_optarg in
21385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21386 esac
21387 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21388 ac_need_defaults=false;;
21389 --he | --h)
21390 # Conflict between --help and --header
21391 as_fn_error $? "ambiguous option: \`$1'
21392 Try \`$0 --help' for more information.";;
21393 --help | --hel | -h )
21394 $as_echo "$ac_cs_usage"; exit ;;
21395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21397 ac_cs_silent=: ;;
21399 # This is an error.
21400 -*) as_fn_error $? "unrecognized option: \`$1'
21401 Try \`$0 --help' for more information." ;;
21403 *) as_fn_append ac_config_targets " $1"
21404 ac_need_defaults=false ;;
21406 esac
21407 shift
21408 done
21410 ac_configure_extra_args=
21412 if $ac_cs_silent; then
21413 exec 6>/dev/null
21414 ac_configure_extra_args="$ac_configure_extra_args --silent"
21417 _ACEOF
21418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21419 if \$ac_cs_recheck; then
21420 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21421 shift
21422 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21423 CONFIG_SHELL='$SHELL'
21424 export CONFIG_SHELL
21425 exec "\$@"
21428 _ACEOF
21429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21430 exec 5>>config.log
21432 echo
21433 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21434 ## Running $as_me. ##
21435 _ASBOX
21436 $as_echo "$ac_log"
21437 } >&5
21439 _ACEOF
21440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21442 # INIT-COMMANDS
21444 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21447 # The HP-UX ksh and POSIX shell print the target directory to stdout
21448 # if CDPATH is set.
21449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21451 sed_quote_subst='$sed_quote_subst'
21452 double_quote_subst='$double_quote_subst'
21453 delay_variable_subst='$delay_variable_subst'
21454 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21455 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21456 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21457 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21458 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21459 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21460 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21461 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21462 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21463 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21464 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21465 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21466 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21467 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21468 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21469 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21470 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21471 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21472 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21473 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21474 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21475 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21476 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21477 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21478 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21479 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21480 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21481 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21482 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21483 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21484 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21485 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21486 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21487 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21488 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21489 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21490 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21491 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21492 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21493 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21494 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21495 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21496 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21497 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21498 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21499 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21500 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21501 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21502 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21503 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21504 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21505 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21506 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21507 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21508 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21509 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21510 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"`'
21511 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21512 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21513 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21514 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21515 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21516 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21517 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21518 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21519 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21520 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21521 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21522 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21523 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21524 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21525 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21526 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21527 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21528 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21529 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21530 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21531 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21532 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21533 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21534 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21535 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21536 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21537 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21538 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21539 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21540 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21541 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21542 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21543 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21544 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21545 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21546 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21547 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21548 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21549 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21550 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21551 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21552 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21553 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21554 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21555 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21556 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21557 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21558 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21559 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21560 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21561 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21562 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21563 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21564 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21565 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21566 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21567 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21568 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21569 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21570 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21571 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21572 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21573 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21574 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21575 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21576 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21577 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21578 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21579 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21580 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21581 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21582 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21583 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21585 LTCC='$LTCC'
21586 LTCFLAGS='$LTCFLAGS'
21587 compiler='$compiler_DEFAULT'
21589 # A function that is used when there is no print builtin or printf.
21590 func_fallback_echo ()
21592 eval 'cat <<_LTECHO_EOF
21594 _LTECHO_EOF'
21597 # Quote evaled strings.
21598 for var in SHELL \
21599 ECHO \
21600 PATH_SEPARATOR \
21601 SED \
21602 GREP \
21603 EGREP \
21604 FGREP \
21605 LD \
21606 NM \
21607 LN_S \
21608 lt_SP2NL \
21609 lt_NL2SP \
21610 reload_flag \
21611 OBJDUMP \
21612 deplibs_check_method \
21613 file_magic_cmd \
21614 file_magic_glob \
21615 want_nocaseglob \
21616 DLLTOOL \
21617 sharedlib_from_linklib_cmd \
21618 AR \
21619 AR_FLAGS \
21620 archiver_list_spec \
21621 STRIP \
21622 RANLIB \
21623 CC \
21624 CFLAGS \
21625 compiler \
21626 lt_cv_sys_global_symbol_pipe \
21627 lt_cv_sys_global_symbol_to_cdecl \
21628 lt_cv_sys_global_symbol_to_c_name_address \
21629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21630 nm_file_list_spec \
21631 lt_prog_compiler_no_builtin_flag \
21632 lt_prog_compiler_pic \
21633 lt_prog_compiler_wl \
21634 lt_prog_compiler_static \
21635 lt_cv_prog_compiler_c_o \
21636 need_locks \
21637 MANIFEST_TOOL \
21638 DSYMUTIL \
21639 NMEDIT \
21640 LIPO \
21641 OTOOL \
21642 OTOOL64 \
21643 shrext_cmds \
21644 export_dynamic_flag_spec \
21645 whole_archive_flag_spec \
21646 compiler_needs_object \
21647 with_gnu_ld \
21648 allow_undefined_flag \
21649 no_undefined_flag \
21650 hardcode_libdir_flag_spec \
21651 hardcode_libdir_separator \
21652 exclude_expsyms \
21653 include_expsyms \
21654 file_list_spec \
21655 variables_saved_for_relink \
21656 libname_spec \
21657 library_names_spec \
21658 soname_spec \
21659 install_override_mode \
21660 finish_eval \
21661 old_striplib \
21662 striplib; do
21663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21664 *[\\\\\\\`\\"\\\$]*)
21665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21670 esac
21671 done
21673 # Double-quote double-evaled strings.
21674 for var in reload_cmds \
21675 old_postinstall_cmds \
21676 old_postuninstall_cmds \
21677 old_archive_cmds \
21678 extract_expsyms_cmds \
21679 old_archive_from_new_cmds \
21680 old_archive_from_expsyms_cmds \
21681 archive_cmds \
21682 archive_expsym_cmds \
21683 module_cmds \
21684 module_expsym_cmds \
21685 export_symbols_cmds \
21686 prelink_cmds \
21687 postlink_cmds \
21688 postinstall_cmds \
21689 postuninstall_cmds \
21690 finish_cmds \
21691 sys_lib_search_path_spec \
21692 sys_lib_dlsearch_path_spec; do
21693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21694 *[\\\\\\\`\\"\\\$]*)
21695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21700 esac
21701 done
21703 ac_aux_dir='$ac_aux_dir'
21704 xsi_shell='$xsi_shell'
21705 lt_shell_append='$lt_shell_append'
21707 # See if we are running on zsh, and set the options which allow our
21708 # commands through without removal of \ escapes INIT.
21709 if test -n "\${ZSH_VERSION+set}" ; then
21710 setopt NO_GLOB_SUBST
21714 PACKAGE='$PACKAGE'
21715 VERSION='$VERSION'
21716 TIMESTAMP='$TIMESTAMP'
21717 RM='$RM'
21718 ofile='$ofile'
21722 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21723 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21724 # from automake < 1.5.
21725 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21726 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21727 LINGUAS="${LINGUAS-%UNSET%}"
21730 _ACEOF
21732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21734 # Handling of arguments.
21735 for ac_config_target in $ac_config_targets
21737 case $ac_config_target in
21738 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21739 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21740 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21741 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21742 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21743 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21744 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
21745 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
21746 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
21747 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
21748 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
21749 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
21750 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
21751 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
21752 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
21753 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
21754 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
21755 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21757 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21758 esac
21759 done
21762 # If the user did not use the arguments to specify the items to instantiate,
21763 # then the envvar interface is used. Set only those that are not.
21764 # We use the long form for the default assignment because of an extremely
21765 # bizarre bug on SunOS 4.1.3.
21766 if $ac_need_defaults; then
21767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21772 # Have a temporary directory for convenience. Make it in the build tree
21773 # simply because there is no reason against having it here, and in addition,
21774 # creating and moving files from /tmp can sometimes cause problems.
21775 # Hook for its removal unless debugging.
21776 # Note that there is a small window in which the directory will not be cleaned:
21777 # after its creation but before its name has been assigned to `$tmp'.
21778 $debug ||
21780 tmp= ac_tmp=
21781 trap 'exit_status=$?
21782 : "${ac_tmp:=$tmp}"
21783 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21785 trap 'as_fn_exit 1' 1 2 13 15
21787 # Create a (secure) tmp directory for tmp files.
21790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21791 test -d "$tmp"
21792 } ||
21794 tmp=./conf$$-$RANDOM
21795 (umask 077 && mkdir "$tmp")
21796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21797 ac_tmp=$tmp
21799 # Set up the scripts for CONFIG_FILES section.
21800 # No need to generate them if there are no CONFIG_FILES.
21801 # This happens for instance with `./config.status config.h'.
21802 if test -n "$CONFIG_FILES"; then
21805 ac_cr=`echo X | tr X '\015'`
21806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21807 # But we know of no other shell where ac_cr would be empty at this
21808 # point, so we can use a bashism as a fallback.
21809 if test "x$ac_cr" = x; then
21810 eval ac_cr=\$\'\\r\'
21812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21814 ac_cs_awk_cr='\\r'
21815 else
21816 ac_cs_awk_cr=$ac_cr
21819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21820 _ACEOF
21824 echo "cat >conf$$subs.awk <<_ACEOF" &&
21825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21826 echo "_ACEOF"
21827 } >conf$$subs.sh ||
21828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21830 ac_delim='%!_!# '
21831 for ac_last_try in false false false false false :; do
21832 . ./conf$$subs.sh ||
21833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21836 if test $ac_delim_n = $ac_delim_num; then
21837 break
21838 elif $ac_last_try; then
21839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21840 else
21841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21843 done
21844 rm -f conf$$subs.sh
21846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21848 _ACEOF
21849 sed -n '
21851 s/^/S["/; s/!.*/"]=/
21854 s/^[^!]*!//
21855 :repl
21856 t repl
21857 s/'"$ac_delim"'$//
21858 t delim
21861 s/\(.\{148\}\)..*/\1/
21862 t more1
21863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21866 b repl
21867 :more1
21868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21871 s/.\{148\}//
21872 t nl
21873 :delim
21875 s/\(.\{148\}\)..*/\1/
21876 t more2
21877 s/["\\]/\\&/g; s/^/"/; s/$/"/
21880 :more2
21881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21884 s/.\{148\}//
21885 t delim
21886 ' <conf$$subs.awk | sed '
21887 /^[^""]/{
21889 s/\n//
21891 ' >>$CONFIG_STATUS || ac_write_fail=1
21892 rm -f conf$$subs.awk
21893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21894 _ACAWK
21895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21896 for (key in S) S_is_set[key] = 1
21897 FS = "\a"
21901 line = $ 0
21902 nfields = split(line, field, "@")
21903 substed = 0
21904 len = length(field[1])
21905 for (i = 2; i < nfields; i++) {
21906 key = field[i]
21907 keylen = length(key)
21908 if (S_is_set[key]) {
21909 value = S[key]
21910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21911 len += length(value) + length(field[++i])
21912 substed = 1
21913 } else
21914 len += 1 + keylen
21917 print line
21920 _ACAWK
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21925 else
21927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21928 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21929 _ACEOF
21931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21933 # trailing colons and then remove the whole line if VPATH becomes empty
21934 # (actually we leave an empty line to preserve line numbers).
21935 if test "x$srcdir" = x.; then
21936 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21938 s///
21939 s/^/:/
21940 s/[ ]*$/:/
21941 s/:\$(srcdir):/:/g
21942 s/:\${srcdir}:/:/g
21943 s/:@srcdir@:/:/g
21944 s/^:*//
21945 s/:*$//
21947 s/\(=[ ]*\).*/\1/
21949 s/\n//
21950 s/^[^=]*=[ ]*$//
21954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21955 fi # test -n "$CONFIG_FILES"
21957 # Set up the scripts for CONFIG_HEADERS section.
21958 # No need to generate them if there are no CONFIG_HEADERS.
21959 # This happens for instance with `./config.status Makefile'.
21960 if test -n "$CONFIG_HEADERS"; then
21961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21962 BEGIN {
21963 _ACEOF
21965 # Transform confdefs.h into an awk script `defines.awk', embedded as
21966 # here-document in config.status, that substitutes the proper values into
21967 # config.h.in to produce config.h.
21969 # Create a delimiter string that does not exist in confdefs.h, to ease
21970 # handling of long lines.
21971 ac_delim='%!_!# '
21972 for ac_last_try in false false :; do
21973 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21974 if test -z "$ac_tt"; then
21975 break
21976 elif $ac_last_try; then
21977 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21978 else
21979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21981 done
21983 # For the awk script, D is an array of macro values keyed by name,
21984 # likewise P contains macro parameters if any. Preserve backslash
21985 # newline sequences.
21987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21988 sed -n '
21989 s/.\{148\}/&'"$ac_delim"'/g
21990 t rset
21991 :rset
21992 s/^[ ]*#[ ]*define[ ][ ]*/ /
21993 t def
21995 :def
21996 s/\\$//
21997 t bsnl
21998 s/["\\]/\\&/g
21999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22000 D["\1"]=" \3"/p
22001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22003 :bsnl
22004 s/["\\]/\\&/g
22005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22006 D["\1"]=" \3\\\\\\n"\\/p
22007 t cont
22008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22009 t cont
22011 :cont
22013 s/.\{148\}/&'"$ac_delim"'/g
22014 t clear
22015 :clear
22016 s/\\$//
22017 t bsnlc
22018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22020 :bsnlc
22021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22022 b cont
22023 ' <confdefs.h | sed '
22024 s/'"$ac_delim"'/"\\\
22025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22028 for (key in D) D_is_set[key] = 1
22029 FS = "\a"
22031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22032 line = \$ 0
22033 split(line, arg, " ")
22034 if (arg[1] == "#") {
22035 defundef = arg[2]
22036 mac1 = arg[3]
22037 } else {
22038 defundef = substr(arg[1], 2)
22039 mac1 = arg[2]
22041 split(mac1, mac2, "(") #)
22042 macro = mac2[1]
22043 prefix = substr(line, 1, index(line, defundef) - 1)
22044 if (D_is_set[macro]) {
22045 # Preserve the white space surrounding the "#".
22046 print prefix "define", macro P[macro] D[macro]
22047 next
22048 } else {
22049 # Replace #undef with comments. This is necessary, for example,
22050 # in the case of _POSIX_SOURCE, which is predefined and required
22051 # on some systems where configure will not decide to define it.
22052 if (defundef == "undef") {
22053 print "/*", prefix defundef, macro, "*/"
22054 next
22058 { print }
22059 _ACAWK
22060 _ACEOF
22061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22062 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22063 fi # test -n "$CONFIG_HEADERS"
22066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22067 shift
22068 for ac_tag
22070 case $ac_tag in
22071 :[FHLC]) ac_mode=$ac_tag; continue;;
22072 esac
22073 case $ac_mode$ac_tag in
22074 :[FHL]*:*);;
22075 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22076 :[FH]-) ac_tag=-:-;;
22077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22078 esac
22079 ac_save_IFS=$IFS
22080 IFS=:
22081 set x $ac_tag
22082 IFS=$ac_save_IFS
22083 shift
22084 ac_file=$1
22085 shift
22087 case $ac_mode in
22088 :L) ac_source=$1;;
22089 :[FH])
22090 ac_file_inputs=
22091 for ac_f
22093 case $ac_f in
22094 -) ac_f="$ac_tmp/stdin";;
22095 *) # Look for the file first in the build tree, then in the source tree
22096 # (if the path is not absolute). The absolute path cannot be DOS-style,
22097 # because $ac_f cannot contain `:'.
22098 test -f "$ac_f" ||
22099 case $ac_f in
22100 [\\/$]*) false;;
22101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22102 esac ||
22103 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22104 esac
22105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22106 as_fn_append ac_file_inputs " '$ac_f'"
22107 done
22109 # Let's still pretend it is `configure' which instantiates (i.e., don't
22110 # use $as_me), people would be surprised to read:
22111 # /* config.h. Generated by config.status. */
22112 configure_input='Generated from '`
22113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22114 `' by configure.'
22115 if test x"$ac_file" != x-; then
22116 configure_input="$ac_file. $configure_input"
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22118 $as_echo "$as_me: creating $ac_file" >&6;}
22120 # Neutralize special characters interpreted by sed in replacement strings.
22121 case $configure_input in #(
22122 *\&* | *\|* | *\\* )
22123 ac_sed_conf_input=`$as_echo "$configure_input" |
22124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22125 *) ac_sed_conf_input=$configure_input;;
22126 esac
22128 case $ac_tag in
22129 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22131 esac
22133 esac
22135 ac_dir=`$as_dirname -- "$ac_file" ||
22136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22137 X"$ac_file" : 'X\(//\)[^/]' \| \
22138 X"$ac_file" : 'X\(//\)$' \| \
22139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22140 $as_echo X"$ac_file" |
22141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22142 s//\1/
22145 /^X\(\/\/\)[^/].*/{
22146 s//\1/
22149 /^X\(\/\/\)$/{
22150 s//\1/
22153 /^X\(\/\).*/{
22154 s//\1/
22157 s/.*/./; q'`
22158 as_dir="$ac_dir"; as_fn_mkdir_p
22159 ac_builddir=.
22161 case "$ac_dir" in
22162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22165 # A ".." for each directory in $ac_dir_suffix.
22166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22167 case $ac_top_builddir_sub in
22168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22170 esac ;;
22171 esac
22172 ac_abs_top_builddir=$ac_pwd
22173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22174 # for backward compatibility:
22175 ac_top_builddir=$ac_top_build_prefix
22177 case $srcdir in
22178 .) # We are building in place.
22179 ac_srcdir=.
22180 ac_top_srcdir=$ac_top_builddir_sub
22181 ac_abs_top_srcdir=$ac_pwd ;;
22182 [\\/]* | ?:[\\/]* ) # Absolute name.
22183 ac_srcdir=$srcdir$ac_dir_suffix;
22184 ac_top_srcdir=$srcdir
22185 ac_abs_top_srcdir=$srcdir ;;
22186 *) # Relative name.
22187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22188 ac_top_srcdir=$ac_top_build_prefix$srcdir
22189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22190 esac
22191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22194 case $ac_mode in
22197 # CONFIG_FILE
22200 case $INSTALL in
22201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22203 esac
22204 ac_MKDIR_P=$MKDIR_P
22205 case $MKDIR_P in
22206 [\\/$]* | ?:[\\/]* ) ;;
22207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22208 esac
22209 _ACEOF
22211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22212 # If the template does not know about datarootdir, expand it.
22213 # FIXME: This hack should be removed a few years after 2.60.
22214 ac_datarootdir_hack=; ac_datarootdir_seen=
22215 ac_sed_dataroot='
22216 /datarootdir/ {
22220 /@datadir@/p
22221 /@docdir@/p
22222 /@infodir@/p
22223 /@localedir@/p
22224 /@mandir@/p'
22225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22226 *datarootdir*) ac_datarootdir_seen=yes;;
22227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22230 _ACEOF
22231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22232 ac_datarootdir_hack='
22233 s&@datadir@&$datadir&g
22234 s&@docdir@&$docdir&g
22235 s&@infodir@&$infodir&g
22236 s&@localedir@&$localedir&g
22237 s&@mandir@&$mandir&g
22238 s&\\\${datarootdir}&$datarootdir&g' ;;
22239 esac
22240 _ACEOF
22242 # Neutralize VPATH when `$srcdir' = `.'.
22243 # Shell code in configure.ac might set extrasub.
22244 # FIXME: do we really want to maintain this feature?
22245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22246 ac_sed_extra="$ac_vpsub
22247 $extrasub
22248 _ACEOF
22249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22252 s|@configure_input@|$ac_sed_conf_input|;t t
22253 s&@top_builddir@&$ac_top_builddir_sub&;t t
22254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22255 s&@srcdir@&$ac_srcdir&;t t
22256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22257 s&@top_srcdir@&$ac_top_srcdir&;t t
22258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22259 s&@builddir@&$ac_builddir&;t t
22260 s&@abs_builddir@&$ac_abs_builddir&;t t
22261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22262 s&@INSTALL@&$ac_INSTALL&;t t
22263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22264 $ac_datarootdir_hack
22266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22272 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22274 which seems to be undefined. Please make sure it is defined" >&5
22275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22276 which seems to be undefined. Please make sure it is defined" >&2;}
22278 rm -f "$ac_tmp/stdin"
22279 case $ac_file in
22280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22282 esac \
22283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22287 # CONFIG_HEADER
22289 if test x"$ac_file" != x-; then
22291 $as_echo "/* $configure_input */" \
22292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22293 } >"$ac_tmp/config.h" \
22294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22298 else
22299 rm -f "$ac_file"
22300 mv "$ac_tmp/config.h" "$ac_file" \
22301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22303 else
22304 $as_echo "/* $configure_input */" \
22305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22306 || as_fn_error $? "could not create -" "$LINENO" 5
22308 # Compute "$ac_file"'s index in $config_headers.
22309 _am_arg="$ac_file"
22310 _am_stamp_count=1
22311 for _am_header in $config_headers :; do
22312 case $_am_header in
22313 $_am_arg | $_am_arg:* )
22314 break ;;
22316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22317 esac
22318 done
22319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22321 X"$_am_arg" : 'X\(//\)[^/]' \| \
22322 X"$_am_arg" : 'X\(//\)$' \| \
22323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22324 $as_echo X"$_am_arg" |
22325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22326 s//\1/
22329 /^X\(\/\/\)[^/].*/{
22330 s//\1/
22333 /^X\(\/\/\)$/{
22334 s//\1/
22337 /^X\(\/\).*/{
22338 s//\1/
22341 s/.*/./; q'`/stamp-h$_am_stamp_count
22344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22345 $as_echo "$as_me: executing $ac_file commands" >&6;}
22347 esac
22350 case $ac_file$ac_mode in
22351 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22352 # Older Autoconf quotes --file arguments for eval, but not when files
22353 # are listed without --file. Let's play safe and only enable the eval
22354 # if we detect the quoting.
22355 case $CONFIG_FILES in
22356 *\'*) eval set x "$CONFIG_FILES" ;;
22357 *) set x $CONFIG_FILES ;;
22358 esac
22359 shift
22360 for mf
22362 # Strip MF so we end up with the name of the file.
22363 mf=`echo "$mf" | sed -e 's/:.*$//'`
22364 # Check whether this is an Automake generated Makefile or not.
22365 # We used to match only the files named 'Makefile.in', but
22366 # some people rename them; so instead we look at the file content.
22367 # Grep'ing the first line is not enough: some people post-process
22368 # each Makefile.in and add a new line on top of each file to say so.
22369 # Grep'ing the whole file is not good either: AIX grep has a line
22370 # limit of 2048, but all sed's we know have understand at least 4000.
22371 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22372 dirpart=`$as_dirname -- "$mf" ||
22373 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22374 X"$mf" : 'X\(//\)[^/]' \| \
22375 X"$mf" : 'X\(//\)$' \| \
22376 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22377 $as_echo X"$mf" |
22378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22379 s//\1/
22382 /^X\(\/\/\)[^/].*/{
22383 s//\1/
22386 /^X\(\/\/\)$/{
22387 s//\1/
22390 /^X\(\/\).*/{
22391 s//\1/
22394 s/.*/./; q'`
22395 else
22396 continue
22398 # Extract the definition of DEPDIR, am__include, and am__quote
22399 # from the Makefile without running 'make'.
22400 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22401 test -z "$DEPDIR" && continue
22402 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22403 test -z "$am__include" && continue
22404 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22405 # Find all dependency output files, they are included files with
22406 # $(DEPDIR) in their names. We invoke sed twice because it is the
22407 # simplest approach to changing $(DEPDIR) to its actual value in the
22408 # expansion.
22409 for file in `sed -n "
22410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22412 # Make sure the directory exists.
22413 test -f "$dirpart/$file" && continue
22414 fdir=`$as_dirname -- "$file" ||
22415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22416 X"$file" : 'X\(//\)[^/]' \| \
22417 X"$file" : 'X\(//\)$' \| \
22418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22419 $as_echo X"$file" |
22420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22421 s//\1/
22424 /^X\(\/\/\)[^/].*/{
22425 s//\1/
22428 /^X\(\/\/\)$/{
22429 s//\1/
22432 /^X\(\/\).*/{
22433 s//\1/
22436 s/.*/./; q'`
22437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22438 # echo "creating $dirpart/$file"
22439 echo '# dummy' > "$dirpart/$file"
22440 done
22441 done
22444 "libtool":C)
22446 # See if we are running on zsh, and set the options which allow our
22447 # commands through without removal of \ escapes.
22448 if test -n "${ZSH_VERSION+set}" ; then
22449 setopt NO_GLOB_SUBST
22452 cfgfile="${ofile}T"
22453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22454 $RM "$cfgfile"
22456 cat <<_LT_EOF >> "$cfgfile"
22457 #! $SHELL
22459 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22460 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22465 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22466 # Foundation, Inc.
22467 # Written by Gordon Matzigkeit, 1996
22469 # This file is part of GNU Libtool.
22471 # GNU Libtool is free software; you can redistribute it and/or
22472 # modify it under the terms of the GNU General Public License as
22473 # published by the Free Software Foundation; either version 2 of
22474 # the License, or (at your option) any later version.
22476 # As a special exception to the GNU General Public License,
22477 # if you distribute this file as part of a program or library that
22478 # is built using GNU Libtool, you may include this file under the
22479 # same distribution terms that you use for the rest of that program.
22481 # GNU Libtool is distributed in the hope that it will be useful,
22482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22484 # GNU General Public License for more details.
22486 # You should have received a copy of the GNU General Public License
22487 # along with GNU Libtool; see the file COPYING. If not, a copy
22488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22489 # obtained by writing to the Free Software Foundation, Inc.,
22490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22493 # The names of the tagged configurations supported by this script.
22494 available_tags=""
22496 # ### BEGIN LIBTOOL CONFIG
22498 # Which release of libtool.m4 was used?
22499 macro_version=$macro_version
22500 macro_revision=$macro_revision
22502 # Whether or not to build shared libraries.
22503 build_libtool_libs=$enable_shared
22505 # Whether or not to build static libraries.
22506 build_old_libs=$enable_static
22508 # What type of objects to build.
22509 pic_mode=$pic_mode
22511 # Whether or not to optimize for fast installation.
22512 fast_install=$enable_fast_install
22514 # Shell to use when invoking shell scripts.
22515 SHELL=$lt_SHELL
22517 # An echo program that protects backslashes.
22518 ECHO=$lt_ECHO
22520 # The PATH separator for the build system.
22521 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22523 # The host system.
22524 host_alias=$host_alias
22525 host=$host
22526 host_os=$host_os
22528 # The build system.
22529 build_alias=$build_alias
22530 build=$build
22531 build_os=$build_os
22533 # A sed program that does not truncate output.
22534 SED=$lt_SED
22536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22537 Xsed="\$SED -e 1s/^X//"
22539 # A grep program that handles long lines.
22540 GREP=$lt_GREP
22542 # An ERE matcher.
22543 EGREP=$lt_EGREP
22545 # A literal string matcher.
22546 FGREP=$lt_FGREP
22548 # A BSD- or MS-compatible name lister.
22549 NM=$lt_NM
22551 # Whether we need soft or hard links.
22552 LN_S=$lt_LN_S
22554 # What is the maximum length of a command?
22555 max_cmd_len=$max_cmd_len
22557 # Object file suffix (normally "o").
22558 objext=$ac_objext
22560 # Executable file suffix (normally "").
22561 exeext=$exeext
22563 # whether the shell understands "unset".
22564 lt_unset=$lt_unset
22566 # turn spaces into newlines.
22567 SP2NL=$lt_lt_SP2NL
22569 # turn newlines into spaces.
22570 NL2SP=$lt_lt_NL2SP
22572 # convert \$build file names to \$host format.
22573 to_host_file_cmd=$lt_cv_to_host_file_cmd
22575 # convert \$build files to toolchain format.
22576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22578 # An object symbol dumper.
22579 OBJDUMP=$lt_OBJDUMP
22581 # Method to check whether dependent libraries are shared objects.
22582 deplibs_check_method=$lt_deplibs_check_method
22584 # Command to use when deplibs_check_method = "file_magic".
22585 file_magic_cmd=$lt_file_magic_cmd
22587 # How to find potential files when deplibs_check_method = "file_magic".
22588 file_magic_glob=$lt_file_magic_glob
22590 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22591 want_nocaseglob=$lt_want_nocaseglob
22593 # DLL creation program.
22594 DLLTOOL=$lt_DLLTOOL
22596 # Command to associate shared and link libraries.
22597 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22599 # The archiver.
22600 AR=$lt_AR
22602 # Flags to create an archive.
22603 AR_FLAGS=$lt_AR_FLAGS
22605 # How to feed a file listing to the archiver.
22606 archiver_list_spec=$lt_archiver_list_spec
22608 # A symbol stripping program.
22609 STRIP=$lt_STRIP
22611 # Commands used to install an old-style archive.
22612 RANLIB=$lt_RANLIB
22613 old_postinstall_cmds=$lt_old_postinstall_cmds
22614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22616 # Whether to use a lock for old archive extraction.
22617 lock_old_archive_extraction=$lock_old_archive_extraction
22619 # A C compiler.
22620 LTCC=$lt_CC
22622 # LTCC compiler flags.
22623 LTCFLAGS=$lt_CFLAGS
22625 # Take the output of nm and produce a listing of raw symbols and C names.
22626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22628 # Transform the output of nm in a proper C declaration.
22629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22631 # Transform the output of nm in a C name address pair.
22632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22634 # Transform the output of nm in a C name address pair when lib prefix is needed.
22635 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22637 # Specify filename containing input files for \$NM.
22638 nm_file_list_spec=$lt_nm_file_list_spec
22640 # The root where to search for dependent libraries,and in which our libraries should be installed.
22641 lt_sysroot=$lt_sysroot
22643 # The name of the directory that contains temporary libtool files.
22644 objdir=$objdir
22646 # Used to examine libraries when file_magic_cmd begins with "file".
22647 MAGIC_CMD=$MAGIC_CMD
22649 # Must we lock files when doing compilation?
22650 need_locks=$lt_need_locks
22652 # Manifest tool.
22653 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22655 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22656 DSYMUTIL=$lt_DSYMUTIL
22658 # Tool to change global to local symbols on Mac OS X.
22659 NMEDIT=$lt_NMEDIT
22661 # Tool to manipulate fat objects and archives on Mac OS X.
22662 LIPO=$lt_LIPO
22664 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22665 OTOOL=$lt_OTOOL
22667 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22668 OTOOL64=$lt_OTOOL64
22670 # Old archive suffix (normally "a").
22671 libext=$libext
22673 # Shared library suffix (normally ".so").
22674 shrext_cmds=$lt_shrext_cmds
22676 # The commands to extract the exported symbol list from a shared archive.
22677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22679 # Variables whose values should be saved in libtool wrapper scripts and
22680 # restored at link time.
22681 variables_saved_for_relink=$lt_variables_saved_for_relink
22683 # Do we need the "lib" prefix for modules?
22684 need_lib_prefix=$need_lib_prefix
22686 # Do we need a version for libraries?
22687 need_version=$need_version
22689 # Library versioning type.
22690 version_type=$version_type
22692 # Shared library runtime path variable.
22693 runpath_var=$runpath_var
22695 # Shared library path variable.
22696 shlibpath_var=$shlibpath_var
22698 # Is shlibpath searched before the hard-coded library search path?
22699 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22701 # Format of library name prefix.
22702 libname_spec=$lt_libname_spec
22704 # List of archive names. First name is the real one, the rest are links.
22705 # The last name is the one that the linker finds with -lNAME
22706 library_names_spec=$lt_library_names_spec
22708 # The coded name of the library, if different from the real name.
22709 soname_spec=$lt_soname_spec
22711 # Permission mode override for installation of shared libraries.
22712 install_override_mode=$lt_install_override_mode
22714 # Command to use after installation of a shared archive.
22715 postinstall_cmds=$lt_postinstall_cmds
22717 # Command to use after uninstallation of a shared archive.
22718 postuninstall_cmds=$lt_postuninstall_cmds
22720 # Commands used to finish a libtool library installation in a directory.
22721 finish_cmds=$lt_finish_cmds
22723 # As "finish_cmds", except a single script fragment to be evaled but
22724 # not shown.
22725 finish_eval=$lt_finish_eval
22727 # Whether we should hardcode library paths into libraries.
22728 hardcode_into_libs=$hardcode_into_libs
22730 # Compile-time system search path for libraries.
22731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22733 # Run-time system search path for libraries.
22734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22736 # Whether dlopen is supported.
22737 dlopen_support=$enable_dlopen
22739 # Whether dlopen of programs is supported.
22740 dlopen_self=$enable_dlopen_self
22742 # Whether dlopen of statically linked programs is supported.
22743 dlopen_self_static=$enable_dlopen_self_static
22745 # Commands to strip libraries.
22746 old_striplib=$lt_old_striplib
22747 striplib=$lt_striplib
22750 # The linker used to build libraries.
22751 LD=$lt_LD
22753 # How to create reloadable object files.
22754 reload_flag=$lt_reload_flag
22755 reload_cmds=$lt_reload_cmds
22757 # Commands used to build an old-style archive.
22758 old_archive_cmds=$lt_old_archive_cmds
22760 # A language specific compiler.
22761 CC=$lt_compiler
22763 # Is the compiler the GNU compiler?
22764 with_gcc=$GCC
22766 # Compiler flag to turn off builtin functions.
22767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22769 # Additional compiler flags for building library objects.
22770 pic_flag=$lt_lt_prog_compiler_pic
22772 # How to pass a linker flag through the compiler.
22773 wl=$lt_lt_prog_compiler_wl
22775 # Compiler flag to prevent dynamic linking.
22776 link_static_flag=$lt_lt_prog_compiler_static
22778 # Does compiler simultaneously support -c and -o options?
22779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22781 # Whether or not to add -lc for building shared libraries.
22782 build_libtool_need_lc=$archive_cmds_need_lc
22784 # Whether or not to disallow shared libs when runtime libs are static.
22785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22787 # Compiler flag to allow reflexive dlopens.
22788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22790 # Compiler flag to generate shared objects directly from archives.
22791 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22793 # Whether the compiler copes with passing no objects directly.
22794 compiler_needs_object=$lt_compiler_needs_object
22796 # Create an old-style archive from a shared archive.
22797 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22799 # Create a temporary old-style archive to link instead of a shared archive.
22800 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22802 # Commands used to build a shared archive.
22803 archive_cmds=$lt_archive_cmds
22804 archive_expsym_cmds=$lt_archive_expsym_cmds
22806 # Commands used to build a loadable module if different from building
22807 # a shared archive.
22808 module_cmds=$lt_module_cmds
22809 module_expsym_cmds=$lt_module_expsym_cmds
22811 # Whether we are building with GNU ld or not.
22812 with_gnu_ld=$lt_with_gnu_ld
22814 # Flag that allows shared libraries with undefined symbols to be built.
22815 allow_undefined_flag=$lt_allow_undefined_flag
22817 # Flag that enforces no undefined symbols.
22818 no_undefined_flag=$lt_no_undefined_flag
22820 # Flag to hardcode \$libdir into a binary during linking.
22821 # This must work even if \$libdir does not exist
22822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22824 # Whether we need a single "-rpath" flag with a separated argument.
22825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22828 # DIR into the resulting binary.
22829 hardcode_direct=$hardcode_direct
22831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22832 # DIR into the resulting binary and the resulting library dependency is
22833 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22834 # library is relocated.
22835 hardcode_direct_absolute=$hardcode_direct_absolute
22837 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22838 # into the resulting binary.
22839 hardcode_minus_L=$hardcode_minus_L
22841 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22842 # into the resulting binary.
22843 hardcode_shlibpath_var=$hardcode_shlibpath_var
22845 # Set to "yes" if building a shared library automatically hardcodes DIR
22846 # into the library and all subsequent libraries and executables linked
22847 # against it.
22848 hardcode_automatic=$hardcode_automatic
22850 # Set to yes if linker adds runtime paths of dependent libraries
22851 # to runtime path list.
22852 inherit_rpath=$inherit_rpath
22854 # Whether libtool must link a program against all its dependency libraries.
22855 link_all_deplibs=$link_all_deplibs
22857 # Set to "yes" if exported symbols are required.
22858 always_export_symbols=$always_export_symbols
22860 # The commands to list exported symbols.
22861 export_symbols_cmds=$lt_export_symbols_cmds
22863 # Symbols that should not be listed in the preloaded symbols.
22864 exclude_expsyms=$lt_exclude_expsyms
22866 # Symbols that must always be exported.
22867 include_expsyms=$lt_include_expsyms
22869 # Commands necessary for linking programs (against libraries) with templates.
22870 prelink_cmds=$lt_prelink_cmds
22872 # Commands necessary for finishing linking programs.
22873 postlink_cmds=$lt_postlink_cmds
22875 # Specify filename containing input files.
22876 file_list_spec=$lt_file_list_spec
22878 # How to hardcode a shared library path into an executable.
22879 hardcode_action=$hardcode_action
22881 # ### END LIBTOOL CONFIG
22883 _LT_EOF
22885 case $host_os in
22886 aix3*)
22887 cat <<\_LT_EOF >> "$cfgfile"
22888 # AIX sometimes has problems with the GCC collect2 program. For some
22889 # reason, if we set the COLLECT_NAMES environment variable, the problems
22890 # vanish in a puff of smoke.
22891 if test "X${COLLECT_NAMES+set}" != Xset; then
22892 COLLECT_NAMES=
22893 export COLLECT_NAMES
22895 _LT_EOF
22897 esac
22900 ltmain="$ac_aux_dir/ltmain.sh"
22903 # We use sed instead of cat because bash on DJGPP gets confused if
22904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22905 # text mode, it properly converts lines to CR/LF. This bash problem
22906 # is reportedly fixed, but why not run on old versions too?
22907 sed '$q' "$ltmain" >> "$cfgfile" \
22908 || (rm -f "$cfgfile"; exit 1)
22910 if test x"$xsi_shell" = xyes; then
22911 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22912 func_dirname ()\
22914 \ case ${1} in\
22915 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22916 \ * ) func_dirname_result="${3}" ;;\
22917 \ esac\
22918 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22919 && mv -f "$cfgfile.tmp" "$cfgfile" \
22920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22921 test 0 -eq $? || _lt_function_replace_fail=:
22924 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22925 func_basename ()\
22927 \ func_basename_result="${1##*/}"\
22928 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22929 && mv -f "$cfgfile.tmp" "$cfgfile" \
22930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22931 test 0 -eq $? || _lt_function_replace_fail=:
22934 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22935 func_dirname_and_basename ()\
22937 \ case ${1} in\
22938 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22939 \ * ) func_dirname_result="${3}" ;;\
22940 \ esac\
22941 \ func_basename_result="${1##*/}"\
22942 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22943 && mv -f "$cfgfile.tmp" "$cfgfile" \
22944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22945 test 0 -eq $? || _lt_function_replace_fail=:
22948 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22949 func_stripname ()\
22951 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22952 \ # positional parameters, so assign one to ordinary parameter first.\
22953 \ func_stripname_result=${3}\
22954 \ func_stripname_result=${func_stripname_result#"${1}"}\
22955 \ func_stripname_result=${func_stripname_result%"${2}"}\
22956 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22957 && mv -f "$cfgfile.tmp" "$cfgfile" \
22958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22959 test 0 -eq $? || _lt_function_replace_fail=:
22962 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22963 func_split_long_opt ()\
22965 \ func_split_long_opt_name=${1%%=*}\
22966 \ func_split_long_opt_arg=${1#*=}\
22967 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22968 && mv -f "$cfgfile.tmp" "$cfgfile" \
22969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22970 test 0 -eq $? || _lt_function_replace_fail=:
22973 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22974 func_split_short_opt ()\
22976 \ func_split_short_opt_arg=${1#??}\
22977 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22978 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22979 && mv -f "$cfgfile.tmp" "$cfgfile" \
22980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22981 test 0 -eq $? || _lt_function_replace_fail=:
22984 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22985 func_lo2o ()\
22987 \ case ${1} in\
22988 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22989 \ *) func_lo2o_result=${1} ;;\
22990 \ esac\
22991 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22992 && mv -f "$cfgfile.tmp" "$cfgfile" \
22993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22994 test 0 -eq $? || _lt_function_replace_fail=:
22997 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22998 func_xform ()\
23000 func_xform_result=${1%.*}.lo\
23001 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23002 && mv -f "$cfgfile.tmp" "$cfgfile" \
23003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23004 test 0 -eq $? || _lt_function_replace_fail=:
23007 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23008 func_arith ()\
23010 func_arith_result=$(( $* ))\
23011 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23012 && mv -f "$cfgfile.tmp" "$cfgfile" \
23013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23014 test 0 -eq $? || _lt_function_replace_fail=:
23017 sed -e '/^func_len ()$/,/^} # func_len /c\
23018 func_len ()\
23020 func_len_result=${#1}\
23021 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23022 && mv -f "$cfgfile.tmp" "$cfgfile" \
23023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23024 test 0 -eq $? || _lt_function_replace_fail=:
23028 if test x"$lt_shell_append" = xyes; then
23029 sed -e '/^func_append ()$/,/^} # func_append /c\
23030 func_append ()\
23032 eval "${1}+=\\${2}"\
23033 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23034 && mv -f "$cfgfile.tmp" "$cfgfile" \
23035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23036 test 0 -eq $? || _lt_function_replace_fail=:
23039 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23040 func_append_quoted ()\
23042 \ func_quote_for_eval "${2}"\
23043 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23044 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23045 && mv -f "$cfgfile.tmp" "$cfgfile" \
23046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23047 test 0 -eq $? || _lt_function_replace_fail=:
23050 # Save a `func_append' function call where possible by direct use of '+='
23051 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23052 && mv -f "$cfgfile.tmp" "$cfgfile" \
23053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23054 test 0 -eq $? || _lt_function_replace_fail=:
23055 else
23056 # Save a `func_append' function call even when '+=' is not available
23057 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23058 && mv -f "$cfgfile.tmp" "$cfgfile" \
23059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23060 test 0 -eq $? || _lt_function_replace_fail=:
23063 if test x"$_lt_function_replace_fail" = x":"; then
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23065 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23069 mv -f "$cfgfile" "$ofile" ||
23070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23071 chmod +x "$ofile"
23074 "po-directories":C)
23075 for ac_file in $CONFIG_FILES; do
23076 # Support "outfile[:infile[:infile...]]"
23077 case "$ac_file" in
23078 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23079 esac
23080 # PO directories have a Makefile.in generated from Makefile.in.in.
23081 case "$ac_file" in */Makefile.in)
23082 # Adjust a relative srcdir.
23083 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23084 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23085 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23086 # In autoconf-2.13 it is called $ac_given_srcdir.
23087 # In autoconf-2.50 it is called $srcdir.
23088 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23089 case "$ac_given_srcdir" in
23090 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23091 /*) top_srcdir="$ac_given_srcdir" ;;
23092 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23093 esac
23094 # Treat a directory as a PO directory if and only if it has a
23095 # POTFILES.in file. This allows packages to have multiple PO
23096 # directories under different names or in different locations.
23097 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23098 rm -f "$ac_dir/POTFILES"
23099 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23100 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23101 POMAKEFILEDEPS="POTFILES.in"
23102 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23103 # on $ac_dir but don't depend on user-specified configuration
23104 # parameters.
23105 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23106 # The LINGUAS file contains the set of available languages.
23107 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23108 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23110 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23111 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23112 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23113 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23114 else
23115 # The set of available languages was given in configure.in.
23116 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23117 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23119 # Compute POFILES
23120 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23121 # Compute UPDATEPOFILES
23122 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23123 # Compute DUMMYPOFILES
23124 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23125 # Compute GMOFILES
23126 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23127 case "$ac_given_srcdir" in
23128 .) srcdirpre= ;;
23129 *) srcdirpre='$(srcdir)/' ;;
23130 esac
23131 POFILES=
23132 UPDATEPOFILES=
23133 DUMMYPOFILES=
23134 GMOFILES=
23135 for lang in $ALL_LINGUAS; do
23136 POFILES="$POFILES $srcdirpre$lang.po"
23137 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23138 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23139 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23140 done
23141 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23142 # environment variable.
23143 INST_LINGUAS=
23144 if test -n "$ALL_LINGUAS"; then
23145 for presentlang in $ALL_LINGUAS; do
23146 useit=no
23147 if test "%UNSET%" != "$LINGUAS"; then
23148 desiredlanguages="$LINGUAS"
23149 else
23150 desiredlanguages="$ALL_LINGUAS"
23152 for desiredlang in $desiredlanguages; do
23153 # Use the presentlang catalog if desiredlang is
23154 # a. equal to presentlang, or
23155 # b. a variant of presentlang (because in this case,
23156 # presentlang can be used as a fallback for messages
23157 # which are not translated in the desiredlang catalog).
23158 case "$desiredlang" in
23159 "$presentlang"*) useit=yes;;
23160 esac
23161 done
23162 if test $useit = yes; then
23163 INST_LINGUAS="$INST_LINGUAS $presentlang"
23165 done
23167 CATALOGS=
23168 if test -n "$INST_LINGUAS"; then
23169 for lang in $INST_LINGUAS; do
23170 CATALOGS="$CATALOGS $lang.gmo"
23171 done
23173 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23174 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"
23175 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23176 if test -f "$f"; then
23177 case "$f" in
23178 *.orig | *.bak | *~) ;;
23179 *) cat "$f" >> "$ac_dir/Makefile" ;;
23180 esac
23182 done
23185 esac
23186 done ;;
23188 esac
23189 done # for ac_tag
23192 as_fn_exit 0
23193 _ACEOF
23194 ac_clean_files=$ac_clean_files_save
23196 test $ac_write_fail = 0 ||
23197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23200 # configure is writing to config.log, and then calls config.status.
23201 # config.status does its own redirection, appending to config.log.
23202 # Unfortunately, on DOS this fails, as config.log is still kept open
23203 # by configure, so config.status won't be able to write to it; its
23204 # output is simply discarded. So we exec the FD to /dev/null,
23205 # effectively closing config.log, so it can be properly (re)opened and
23206 # appended to by config.status. When coming back to configure, we
23207 # need to make the FD available again.
23208 if test "$no_create" != yes; then
23209 ac_cs_success=:
23210 ac_config_status_args=
23211 test "$silent" = yes &&
23212 ac_config_status_args="$ac_config_status_args --quiet"
23213 exec 5>/dev/null
23214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23215 exec 5>>config.log
23216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23217 # would make configure fail if this is the last instruction.
23218 $ac_cs_success || as_fn_exit 1
23220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}