* new version 2.19.9993
[alpine.git] / configure
blob558256e89cd025a857878b8191cc129c0b4dbe34
1 #! /bin/sh
2 # From configure.ac Rev:14 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.9993.
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
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: chappa@washington.edu about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
303 return $1
304 } # as_fn_set_status
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
347 /^X\(\/\/\)$/{
348 s//\1/
351 /^X\(\/\).*/{
352 s//\1/
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362 } # as_fn_mkdir_p
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
380 eval $1+=\$2
382 else
383 as_fn_append ()
385 eval $1=\$$1\$2
387 fi # as_fn_append
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
397 as_val=$(( $* ))
399 else
400 as_fn_arith ()
402 as_val=`expr "$@" || test $? -eq 1`
404 fi # as_fn_arith
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
451 /^X\/\(\/\/\)$/{
452 s//\1/
455 /^X\/\(\/\).*/{
456 s//\1/
459 s/.*/./; q'`
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
482 :lineno
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
514 ECHO_N='-n';;
515 esac
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
538 else
539 as_ln_s='cp -pR'
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 # Check that we are running under the correct shell.
563 SHELL=${CONFIG_SHELL-/bin/sh}
565 case X$lt_ECHO in
566 X*--fallback-echo)
567 # Remove one level of quotation (which was required for Make).
568 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
570 esac
572 ECHO=${lt_ECHO-echo}
573 if test "X$1" = X--no-reexec; then
574 # Discard the --no-reexec flag, and continue.
575 shift
576 elif test "X$1" = X--fallback-echo; then
577 # Avoid inline document here, it may be left over
579 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
580 # Yippee, $ECHO works!
582 else
583 # Restart under the correct shell.
584 exec $SHELL "$0" --no-reexec ${1+"$@"}
587 if test "X$1" = X--fallback-echo; then
588 # used as fallback echo
589 shift
590 cat <<_LT_EOF
592 _LT_EOF
593 exit 0
596 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 # if CDPATH is set.
598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
600 if test -z "$lt_ECHO"; then
601 if test "X${echo_test_string+set}" != Xset; then
602 # find a string as large as possible, as long as the shell can cope with it
603 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
604 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
605 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
606 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
607 then
608 break
610 done
613 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
617 else
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
626 IFS="$lt_save_ifs"
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 ECHO="$dir/echo"
632 break
634 done
635 IFS="$lt_save_ifs"
637 if test "X$ECHO" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
643 ECHO='print -r'
644 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
650 export CONFIG_SHELL
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 else
653 # Try using printf.
654 ECHO='printf %s\n'
655 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # Cool, printf works
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665 export CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
667 export SHELL
668 ECHO="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 ECHO="$CONFIG_SHELL $0 --fallback-echo"
674 else
675 # maybe with a smaller string...
676 prev=:
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
680 then
681 break
683 prev="$cmd"
684 done
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690 else
691 # Oops. We lost completely, so just stick with echo.
692 ECHO=echo
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 lt_ECHO=$ECHO
703 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 test -n "$DJDIR" || exec 7<&0 </dev/null
711 exec 6>&1
713 # Name of the host.
714 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 # Initializations.
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
730 # Identity of this package.
731 PACKAGE_NAME='alpine'
732 PACKAGE_TARNAME='alpine'
733 PACKAGE_VERSION='2.19.9993'
734 PACKAGE_STRING='alpine 2.19.9993'
735 PACKAGE_BUGREPORT='chappa@washington.edu'
736 PACKAGE_URL=''
738 ac_unique_file="include/system.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 # include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 # include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
775 gt_needs=
776 ac_subst_vars='am__EXEEXT_FALSE
777 am__EXEEXT_TRUE
778 LTLIBOBJS
779 LIBOBJS
780 AM_LDFLAGS
781 AM_CFLAGS
782 WEB_PUBCOOKIE_LINK
783 WEB_PUBCOOKIE_LIB
784 WEB_PUBCOOKIE_BUILD
785 WEB_BINDIR
786 WEB_BUILD
787 REGEX_BUILD
788 C_CLIENT_SPECIALS
789 C_CLIENT_GCCOPTLEVEL
790 C_CLIENT_LDFLAGS
791 C_CLIENT_CFLAGS
792 C_CLIENT_WITH_IPV6
793 C_CLIENT_TARGET
794 PTHREAD_CFLAGS
795 PTHREAD_LIBS
796 PTHREAD_CC
797 acx_pthread_config
798 alpine_interactive_spellcheck
799 ISPELLPROG
800 alpine_simple_spellcheck
801 SPELLPROG
802 PWPROG
803 NPA_PROG
804 SENDMAIL
805 POSUB
806 LTLIBINTL
807 LIBINTL
808 INTLLIBS
809 LTLIBICONV
810 LIBICONV
811 INTL_MACOSX_LIBS
812 MSGMERGE
813 XGETTEXT_015
814 XGETTEXT
815 GMSGFMT_015
816 MSGFMT_015
817 GMSGFMT
818 MSGFMT
819 USE_NLS
820 MAKE
825 LIBTOOL_DEPS
827 OTOOL64
828 OTOOL
829 LIPO
830 NMEDIT
831 DSYMUTIL
832 lt_ECHO
834 OBJDUMP
836 ac_ct_DUMPBIN
837 DUMPBIN
839 FGREP
840 EGREP
841 GREP
843 LIBTOOL
844 RANLIB
845 LN_S
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 MAINT
871 MAINTAINER_MODE_FALSE
872 MAINTAINER_MODE_TRUE
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
879 mkdir_p
880 MKDIR_P
881 INSTALL_STRIP_PROGRAM
882 STRIP
883 install_sh
884 MAKEINFO
885 AUTOHEADER
886 AUTOMAKE
887 AUTOCONF
888 ACLOCAL
889 VERSION
890 PACKAGE
891 CYGPATH_W
892 am__isrc
893 INSTALL_DATA
894 INSTALL_SCRIPT
895 INSTALL_PROGRAM
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldIncludedir
914 Includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_URL
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files=''
935 ac_user_opts='
936 enable_option_checking
937 enable_maintainer_mode
938 enable_dependency_tracking
939 enable_shared
940 enable_static
941 with_pic
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 enable_nls
946 enable_rpath
947 with_libiconv_prefix
948 with_libintl_prefix
949 enable_dmalloc
950 with_dmalloc_dir
951 with_ps_cmd
952 with_localedir
953 enable_osx_universal_binaries
954 with_include_path
955 with_lib_path
956 with_pubcookie
957 with_web_bin
958 enable_debug
959 enable_optimization
960 enable_mouse
961 enable_quotas
962 enable_from_changing
963 enable_background_post
964 enable_keyboard_lock
965 enable_from_encoding
966 with_smtp_msa
967 with_smtp_msa_flags
968 with_npa
969 with_npa_flags
970 with_password_prog
971 with_simple_spellcheck
972 with_interactive_spellcheck
973 with_system_pinerc
974 with_system_fixed_pinerc
975 with_local_support_info
976 with_mailcheck_interval
977 with_checkpoint_interval
978 with_checkpoint_frequency
979 with_display_rows
980 with_display_columns
981 with_max_display_rows
982 with_max_display_columns
983 with_fill_column
984 with_max_fill_column
985 with_debug_level
986 with_debug_files
987 with_debug_file
988 with_forwarded_keyword
989 with_display_overlap
990 with_display_margin
991 with_default_fcc
992 with_default_save_folder
993 with_default_legacy_postponed_folder
994 with_default_postponed_folder
995 with_default_trash_folder
996 with_default_interrupted_mail
997 with_default_dead_letter_folder
998 with_default_mail_directory
999 with_default_inbox_name
1000 with_default_signature_file
1001 with_default_elm_style_save
1002 with_default_header_in_reply
1003 with_default_old_style_reply
1004 with_default_use_only_domain_name
1005 with_default_save_by_sender
1006 with_default_sort_key
1007 with_default_addressbook_sort_rule
1008 with_default_folder_sort_rule
1009 with_default_saved_message_name_rule
1010 with_default_fcc_rule
1011 with_default_standard_printer
1012 with_default_ansi_printer
1013 with_default_addressbook
1014 with_default_local_fullname
1015 with_default_local_address
1016 with_default_keyboard_lock_count
1017 with_default_remote_addressbook_history
1018 with_smime_public_cert_directory
1019 with_smime_private_key_directory
1020 with_smime_cacert_directory
1021 with_default_printer
1022 with_passfile
1023 with_local_password_cache
1024 with_local_password_cache_method
1025 with_default_sshpath
1026 with_default_sshcmd
1027 with_ssl
1028 with_ssl_dir
1029 with_ssl_certs_dir
1030 with_ssl_include_dir
1031 with_ssl_lib_dir
1032 with_krb5
1033 with_krb5_dir
1034 with_krb5_include_dir
1035 with_krb5_lib_dir
1036 with_ldap
1037 with_ldap_dir
1038 with_ldap_include_dir
1039 with_ldap_lib_dir
1040 with_smime
1041 with_tcl
1042 with_tcl_lib
1043 with_tcl_include
1044 with_supplied_regex
1045 with_pthread
1046 with_system_mail_directory
1047 with_c_client_target
1048 with_ipv6
1050 ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CPP'
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1069 exec_prefix=NONE
1070 no_create=
1071 no_recursion=
1072 prefix=NONE
1073 program_prefix=NONE
1074 program_suffix=NONE
1075 program_transform_name=s,x,x,
1076 silent=
1077 site=
1078 srcdir=
1079 verbose=
1080 x_includes=NONE
1081 x_libraries=NONE
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 Includedir='${prefix}/include'
1098 oldIncludedir='/usr/include'
1099 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1100 infodir='${datarootdir}/info'
1101 htmldir='${docdir}'
1102 dvidir='${docdir}'
1103 pdfdir='${docdir}'
1104 psdir='${docdir}'
1105 libdir='${exec_prefix}/lib'
1106 localedir='${datarootdir}/locale'
1107 mandir='${datarootdir}/man'
1109 ac_prev=
1110 ac_dashdash=
1111 for ac_option
1113 # If the previous option needs an argument, assign it.
1114 if test -n "$ac_prev"; then
1115 eval $ac_prev=\$ac_option
1116 ac_prev=
1117 continue
1120 case $ac_option in
1121 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1122 *=) ac_optarg= ;;
1123 *) ac_optarg=yes ;;
1124 esac
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1130 ac_dashdash=yes ;;
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133 ac_prev=bindir ;;
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1153 ac_prev=datadir ;;
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid feature name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "enable_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval enable_$ac_useropt=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1181 ac_prev=docdir ;;
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186 ac_prev=dvidir ;;
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid feature name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "enable_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval enable_$ac_useropt=\$ac_optarg ;;
1206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1208 | --exec | --exe | --ex)
1209 ac_prev=exec_prefix ;;
1210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1212 | --exec=* | --exe=* | --ex=*)
1213 exec_prefix=$ac_optarg ;;
1215 -gas | --gas | --ga | --g)
1216 # Obsolete; use --with-gas.
1217 with_gas=yes ;;
1219 -help | --help | --hel | --he | -h)
1220 ac_init_help=long ;;
1221 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1222 ac_init_help=recursive ;;
1223 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1224 ac_init_help=short ;;
1226 -host | --host | --hos | --ho)
1227 ac_prev=host_alias ;;
1228 -host=* | --host=* | --hos=* | --ho=*)
1229 host_alias=$ac_optarg ;;
1231 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1232 ac_prev=htmldir ;;
1233 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1234 | --ht=*)
1235 htmldir=$ac_optarg ;;
1237 -Includedir | --includedir | --includedi | --included | --include \
1238 | --includ | --inclu | --incl | --inc)
1239 ac_prev=Includedir ;;
1240 -Includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1241 | --includ=* | --inclu=* | --incl=* | --inc=*)
1242 Includedir=$ac_optarg ;;
1244 -infodir | --infodir | --infodi | --infod | --info | --inf)
1245 ac_prev=infodir ;;
1246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1247 infodir=$ac_optarg ;;
1249 -libdir | --libdir | --libdi | --libd)
1250 ac_prev=libdir ;;
1251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1252 libdir=$ac_optarg ;;
1254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1255 | --libexe | --libex | --libe)
1256 ac_prev=libexecdir ;;
1257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1258 | --libexe=* | --libex=* | --libe=*)
1259 libexecdir=$ac_optarg ;;
1261 -localedir | --localedir | --localedi | --localed | --locale)
1262 ac_prev=localedir ;;
1263 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1264 localedir=$ac_optarg ;;
1266 -localstatedir | --localstatedir | --localstatedi | --localstated \
1267 | --localstate | --localstat | --localsta | --localst | --locals)
1268 ac_prev=localstatedir ;;
1269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1270 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1271 localstatedir=$ac_optarg ;;
1273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1274 ac_prev=mandir ;;
1275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1276 mandir=$ac_optarg ;;
1278 -nfp | --nfp | --nf)
1279 # Obsolete; use --without-fp.
1280 with_fp=no ;;
1282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1283 | --no-cr | --no-c | -n)
1284 no_create=yes ;;
1286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1288 no_recursion=yes ;;
1290 -oldIncludedir | --oldincludedir | --oldincludedi | --oldincluded \
1291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1292 | --oldin | --oldi | --old | --ol | --o)
1293 ac_prev=oldIncludedir ;;
1294 -oldIncludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1297 oldIncludedir=$ac_optarg ;;
1299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1300 ac_prev=prefix ;;
1301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1302 prefix=$ac_optarg ;;
1304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1305 | --program-pre | --program-pr | --program-p)
1306 ac_prev=program_prefix ;;
1307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1309 program_prefix=$ac_optarg ;;
1311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1312 | --program-suf | --program-su | --program-s)
1313 ac_prev=program_suffix ;;
1314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1316 program_suffix=$ac_optarg ;;
1318 -program-transform-name | --program-transform-name \
1319 | --program-transform-nam | --program-transform-na \
1320 | --program-transform-n | --program-transform- \
1321 | --program-transform | --program-transfor \
1322 | --program-transfo | --program-transf \
1323 | --program-trans | --program-tran \
1324 | --progr-tra | --program-tr | --program-t)
1325 ac_prev=program_transform_name ;;
1326 -program-transform-name=* | --program-transform-name=* \
1327 | --program-transform-nam=* | --program-transform-na=* \
1328 | --program-transform-n=* | --program-transform-=* \
1329 | --program-transform=* | --program-transfor=* \
1330 | --program-transfo=* | --program-transf=* \
1331 | --program-trans=* | --program-tran=* \
1332 | --progr-tra=* | --program-tr=* | --program-t=*)
1333 program_transform_name=$ac_optarg ;;
1335 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1336 ac_prev=pdfdir ;;
1337 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1338 pdfdir=$ac_optarg ;;
1340 -psdir | --psdir | --psdi | --psd | --ps)
1341 ac_prev=psdir ;;
1342 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1343 psdir=$ac_optarg ;;
1345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1346 | -silent | --silent | --silen | --sile | --sil)
1347 silent=yes ;;
1349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1350 ac_prev=sbindir ;;
1351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1352 | --sbi=* | --sb=*)
1353 sbindir=$ac_optarg ;;
1355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1357 | --sharedst | --shareds | --shared | --share | --shar \
1358 | --sha | --sh)
1359 ac_prev=sharedstatedir ;;
1360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1363 | --sha=* | --sh=*)
1364 sharedstatedir=$ac_optarg ;;
1366 -site | --site | --sit)
1367 ac_prev=site ;;
1368 -site=* | --site=* | --sit=*)
1369 site=$ac_optarg ;;
1371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1372 ac_prev=srcdir ;;
1373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1374 srcdir=$ac_optarg ;;
1376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1377 | --syscon | --sysco | --sysc | --sys | --sy)
1378 ac_prev=sysconfdir ;;
1379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1381 sysconfdir=$ac_optarg ;;
1383 -target | --target | --targe | --targ | --tar | --ta | --t)
1384 ac_prev=target_alias ;;
1385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1386 target_alias=$ac_optarg ;;
1388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1389 verbose=yes ;;
1391 -version | --version | --versio | --versi | --vers | -V)
1392 ac_init_version=: ;;
1394 -with-* | --with-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=\$ac_optarg ;;
1410 -without-* | --without-*)
1411 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1414 as_fn_error $? "invalid package name: $ac_useropt"
1415 ac_useropt_orig=$ac_useropt
1416 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1417 case $ac_user_opts in
1419 "with_$ac_useropt"
1420 "*) ;;
1421 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1422 ac_unrecognized_sep=', ';;
1423 esac
1424 eval with_$ac_useropt=no ;;
1426 --x)
1427 # Obsolete; use --with-x.
1428 with_x=yes ;;
1430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1431 | --x-incl | --x-inc | --x-in | --x-i)
1432 ac_prev=x_includes ;;
1433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1435 x_includes=$ac_optarg ;;
1437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1439 ac_prev=x_libraries ;;
1440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1442 x_libraries=$ac_optarg ;;
1444 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1445 Try \`$0 --help' for more information"
1448 *=*)
1449 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1450 # Reject names that are not valid shell variable names.
1451 case $ac_envvar in #(
1452 '' | [0-9]* | *[!_$as_cr_alnum]* )
1453 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1454 esac
1455 eval $ac_envvar=\$ac_optarg
1456 export $ac_envvar ;;
1459 # FIXME: should be removed in autoconf 3.0.
1460 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1461 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1463 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1466 esac
1467 done
1469 if test -n "$ac_prev"; then
1470 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471 as_fn_error $? "missing argument to $ac_option"
1474 if test -n "$ac_unrecognized_opts"; then
1475 case $enable_option_checking in
1476 no) ;;
1477 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1478 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1479 esac
1482 # Check all directory arguments for consistency.
1483 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484 datadir sysconfdir sharedstatedir localstatedir Includedir \
1485 oldIncludedir docdir infodir htmldir dvidir pdfdir psdir \
1486 libdir localedir mandir
1488 eval ac_val=\$$ac_var
1489 # Remove trailing slashes.
1490 case $ac_val in
1491 */ )
1492 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1493 eval $ac_var=\$ac_val;;
1494 esac
1495 # Be sure to have absolute directory names.
1496 case $ac_val in
1497 [\\/$]* | ?:[\\/]* ) continue;;
1498 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1499 esac
1500 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1501 done
1503 # There might be people who depend on the old broken behavior: `$host'
1504 # used to hold the argument of --host etc.
1505 # FIXME: To remove some day.
1506 build=$build_alias
1507 host=$host_alias
1508 target=$target_alias
1510 # FIXME: To remove some day.
1511 if test "x$host_alias" != x; then
1512 if test "x$build_alias" = x; then
1513 cross_compiling=maybe
1514 elif test "x$build_alias" != "x$host_alias"; then
1515 cross_compiling=yes
1519 ac_tool_prefix=
1520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1522 test "$silent" = yes && exec 6>/dev/null
1525 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1526 ac_ls_di=`ls -di .` &&
1527 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1528 as_fn_error $? "working directory cannot be determined"
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 as_fn_error $? "pwd does not report name of working directory"
1533 # Find the source files, if location was not specified.
1534 if test -z "$srcdir"; then
1535 ac_srcdir_defaulted=yes
1536 # Try the directory containing this script, then the parent directory.
1537 ac_confdir=`$as_dirname -- "$as_myself" ||
1538 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1539 X"$as_myself" : 'X\(//\)[^/]' \| \
1540 X"$as_myself" : 'X\(//\)$' \| \
1541 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1542 $as_echo X"$as_myself" |
1543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 s//\1/
1547 /^X\(\/\/\)[^/].*/{
1548 s//\1/
1551 /^X\(\/\/\)$/{
1552 s//\1/
1555 /^X\(\/\).*/{
1556 s//\1/
1559 s/.*/./; q'`
1560 srcdir=$ac_confdir
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 srcdir=..
1564 else
1565 ac_srcdir_defaulted=no
1567 if test ! -r "$srcdir/$ac_unique_file"; then
1568 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1569 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1571 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1572 ac_abs_confdir=`(
1573 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1574 pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577 srcdir=.
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_env_${ac_var}_value=\$${ac_var}
1588 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1593 # Report the --help message.
1595 if test "$ac_init_help" = "long"; then
1596 # Omit some internal or obsolete options to make the list less imposing.
1597 # This message is too long to be a string in the A/UX 3.1 sh.
1598 cat <<_ACEOF
1599 \`configure' configures alpine 2.19.9993 to adapt to many kinds of systems.
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE. See below for descriptions of some of the useful variables.
1606 Defaults for the options are specified in brackets.
1608 Configuration:
1609 -h, --help display this help and exit
1610 --help=short display options specific to this package
1611 --help=recursive display the short help of all the Included packages
1612 -V, --version display version information and exit
1613 -q, --quiet, --silent do not print \`checking ...' messages
1614 --cache-file=FILE cache test results in FILE [disabled]
1615 -C, --config-cache alias for \`--cache-file=config.cache'
1616 -n, --no-create do not create output files
1617 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1619 Installation directories:
1620 --prefix=PREFIX install architecture-independent files in PREFIX
1621 [$ac_default_prefix]
1622 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1623 [PREFIX]
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1630 For better control, use the options below.
1632 Fine tuning of the installation directories:
1633 --bindir=DIR user executables [EPREFIX/bin]
1634 --sbindir=DIR system admin executables [EPREFIX/sbin]
1635 --libexecdir=DIR program executables [EPREFIX/libexec]
1636 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1637 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1638 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1639 --libdir=DIR object code libraries [EPREFIX/lib]
1640 --Includedir=DIR C header files [PREFIX/include]
1641 --oldIncludedir=DIR C header files for non-gcc [/usr/include]
1642 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1643 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1644 --infodir=DIR info documentation [DATAROOTDIR/info]
1645 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1646 --mandir=DIR man documentation [DATAROOTDIR/man]
1647 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1648 --htmldir=DIR html documentation [DOCDIR]
1649 --dvidir=DIR dvi documentation [DOCDIR]
1650 --pdfdir=DIR pdf documentation [DOCDIR]
1651 --psdir=DIR ps documentation [DOCDIR]
1652 _ACEOF
1654 cat <<\_ACEOF
1656 Program names:
1657 --program-prefix=PREFIX prepend PREFIX to installed program names
1658 --program-suffix=SUFFIX append SUFFIX to installed program names
1659 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1661 System types:
1662 --build=BUILD configure for building on BUILD [guessed]
1663 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1664 _ACEOF
1667 if test -n "$ac_init_help"; then
1668 case $ac_init_help in
1669 short | recursive ) echo "Configuration of alpine 2.19.9993:";;
1670 esac
1671 cat <<\_ACEOF
1673 Optional Features:
1674 --disable-option-checking ignore unrecognized --enable/--with options
1675 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1676 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1677 --enable-maintainer-mode enable make rules and dependencies not useful
1678 (and sometimes confusing) to the casual installer
1679 --disable-dependency-tracking speeds up one-time build
1680 --enable-dependency-tracking do not reject slow dependency extractors
1681 --enable-shared[=PKGS] build shared libraries [default=yes]
1682 --enable-static[=PKGS] build static libraries [default=yes]
1683 --enable-fast-install[=PKGS]
1684 optimize for fast installation [default=yes]
1685 --disable-libtool-lock avoid locking (might break parallel builds)
1686 --disable-nls do not use Native Language Support
1687 --disable-rpath do not hardcode runtime library paths
1688 --enable-dmalloc Enable dmalloc debugging
1689 --enable-osx-universal-binaries
1690 Produce universal binaries under OS X [[default=no]]
1691 --disable-debug Exclude debug messages from source
1692 --disable-optimization Exclude optimizing compiler flags
1693 --disable-mouse Disable mouse support
1694 --enable-quotas Enable disk quota checking on startup
1695 --disable-from-changing Disallow users changing From addresss
1696 --disable-background-post
1697 Disable background posting
1698 --disable-keyboard-lock Disable keyboard locking
1699 --enable-from-encoding Enable From encoding in sent messages
1701 Optional Packages:
1702 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1703 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1705 both]
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-gnu-ld assume the C compiler uses GNU ld default=no
1708 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1709 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1710 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1711 --without-libintl-prefix don't search for libintl in includedir and libdir
1712 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1713 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1714 /bin/ps auxww
1715 --with-localedir=DIR Name of gettext locale directory
1716 --with-include-path=PATHS
1717 Colon-separated list of directories used for include
1718 file search
1719 --with-lib-path=PATHS Colon-separated list of directories used for library
1720 search
1721 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1722 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1723 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1724 --with-smtp-msa-flags=FLAGS
1725 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1726 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1727 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1728 --with-password-prog=PATH
1729 Password change program (/bin/passwd)
1730 --with-simple-spellcheck=PROG
1731 Spellcheck program reads stdin, emits misspellings
1732 on stdout
1733 --with-interactive-spellcheck=PROG
1734 Interactive, filewise spell checker
1735 --with-system-pinerc=VALUE
1736 System pinerc (/usr/local/lib/pine.conf)
1737 --with-system-fixed-pinerc=VALUE
1738 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1739 --with-local-support-info=VALUE
1740 Local Support Info File (/usr/local/lib/pine.info)
1741 --with-mailcheck-interval=VALUE
1742 Specify default mail-check-interval (150)
1743 --with-checkpoint-interval=VALUE
1744 Specify default checkpoint-interval (420)
1745 --with-checkpoint-frequency=VALUE
1746 State change count before checkpoint (12)
1747 --with-display-rows=VALUE
1748 Initial rows on display (24)
1749 --with-display-columns=VALUE
1750 Initial columns on display (80)
1751 --with-max-display-rows=VALUE
1752 Maximum display rows (200)
1753 --with-max-display-columns=VALUE
1754 Maximum display columns (500)
1755 --with-fill-column=VALUE
1756 Default fill column (74)
1757 --with-max_fill-column=VALUE
1758 Maximum fill column (80)
1759 --with-debug-level=VALUE
1760 Specify default debug verbosity level (2)
1761 --with-debug-files=VALUE
1762 Specify number of debug files (4)
1763 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1764 --with-forwarded-keyword=VALUE
1765 IMAP (c-client) keyword to store forwarded status
1766 ("\$Forwarded")
1767 --with-display-overlap=VALUE
1768 Lines preserved while paging (2)
1769 --with-display-margin=VALUE
1770 Lines visible while scrolling (0)
1771 --with-default-fcc=VALUE
1772 Default sent mail folder (sent-mail)
1773 --with-default-save-folder=VALUE
1774 Default save folder (saved-messages)
1775 --with-default-legacy-postponed-folder=VALUE
1776 Pre Pine 3.90 postponed folder (postponed-mail)
1777 --with-default-postponed-folder=VALUE
1778 Default postponed folder (postponed-msgs)
1779 --with-default-trash-folder=VALUE
1780 Default Trash folder for Web Alpine (Trash)
1781 --with-default-interrupted-mail=VALUE
1782 Default folder for interrupted mail
1783 (.pine-interrupted-mail)
1784 --with-default-dead-letter-folder=VALUE
1785 Default dead letter folder (dead.letter)
1786 --with-default-mail-directory=VALUE
1787 Default mail directory (mail)
1788 --with-default-inbox-name=VALUE
1789 Default inbox name (INBOX)
1790 --with-default-signature-file=VALUE
1791 Default signature file (.signature)
1792 --with-default-elm-style-save=VALUE
1793 Default to Elm style save (no)
1794 --with-default-header-in-reply=VALUE
1795 Include header in reply (no)
1796 --with-default-old-style-reply=VALUE
1797 Default to old style reply (no)
1798 --with-default-use-only-domain-name=VALUE
1799 Default to using only the domain name (no)
1800 --with-default-save-by-sender=VALUE
1801 Default to save by sender (no)
1802 --with-default-sort-key=VALUE
1803 Default sort key (arrival)
1804 --with-default-addressbook-sort-rule=VALUE
1805 Default addressbook sort rule
1806 (fullname-with-lists-last)
1807 --with-default-folder-sort-rule=VALUE
1808 Default folder sort rule (alphabetical)
1809 --with-default-saved-message-name-rule=VALUE
1810 Default saved message name rule (default-folder)
1811 --with-default-fcc-rule=VALUE
1812 Default fcc rule (default-fcc)
1813 --with-default-standard-printer=VALUE
1814 Default standard printern (lpr)
1815 --with-default-ansi-printer=VALUE
1816 ANSI printer definition (attached-to-ansi)
1817 --with-default-addressbook=VALUE
1818 Default addressbook name (.addressbook)
1819 --with-default-local-fullname=VALUE
1820 Default local support fullname ("Local Support")
1821 --with-default-local-address=VALUE
1822 Default local support address (postmaster)
1823 --with-default-keyboard-lock-count=VALUE
1824 Default keyboard lock count (1)
1825 --with-default-remote-addressbook-history=VALUE
1826 Default address book history count (3)
1827 --with-smime-public-cert-directory=VALUE
1828 Default Public Cert Directory (.alpine-smime/public)
1829 --with-smime-private-key-directory=VALUE
1830 Default Private Key Directory
1831 (.alpine-smime/private)
1832 --with-smime-cacert-directory=VALUE
1833 Default Cert Authority Directory (.alpine-smime/ca)
1834 --with-default-printer=VALUE
1835 Default printer (ANSI_PRINTER)
1836 --with-passfile=FILENAME
1837 Password cache file (recommended when S/MIME is
1838 enabled and configured)
1839 --without-local-password-cache
1840 Disable OS-specific password cache, if supported
1841 --with-local-password-cache-method
1842 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1843 Windows=WINCRED)
1844 --with-default-sshpath=FILENAME
1845 set default value of ssh command path (defining
1846 should cause ssh to be preferred to rsh)
1847 --with-default-sshcmd=PERCENT_S_STRING
1848 set default value of ssh command string (usually "%s
1849 %s -l %s exec /etc/r%sd")
1850 --without-ssl Disable SSL support (OpenSSL)
1851 --with-ssl-dir=DIR Root of SSL lib/include path
1852 --with-ssl-certs-dir=DIR
1853 Path to SSL certificate directory
1854 --with-ssl-include-dir=DIR
1855 SSL include file path
1856 --with-ssl-lib-dir=DIR SSL library path
1857 --without-krb5 Disable Kerberos support
1858 --with-krb5-dir=DIR Root of Kerberos lib/include path
1859 --with-krb5-include-dir=DIR
1860 Kerberos include file path
1861 --with-krb5-lib-dir=DIR Kerberos library path
1862 --without-ldap Disable LDAP query support
1863 --with-ldap-dir=DIR Root of LDAP lib/include path
1864 --with-ldap-include-dir=DIR
1865 Directory containing LDAP include files
1866 --with-ldap-lib-dir=DIR LDAP library path
1867 --without-smime Disable S/MIME
1868 --without-tcl Disable TCL, thus Web Alpine support
1869 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1870 --with-tcl-include=DIR Directory containing TCL include files
1871 --with-supplied-regex Use regex library supplied with alpine
1872 --without-pthread Do NOT test for nor build with POSIX thread support
1873 --with-system-mail-directory=DIR
1874 Directory where local mail is delivered
1875 --with-c-client-target=TARGET
1876 IMAP build target (see imap/Makefile)
1877 --without-ipv6 Disable IPv6, primarily to work around resolver
1878 problems
1880 Some influential environment variables:
1881 CC C compiler command
1882 CFLAGS C compiler flags
1883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1884 nonstandard directory <lib dir>
1885 LIBS libraries to pass to the linker, e.g. -l<library>
1886 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1887 you have headers in a nonstandard directory <include dir>
1888 CPP C preprocessor
1890 Use these variables to override the choices made by `configure' or to help
1891 it to find libraries and programs with nonstandard names/locations.
1893 Report bugs to <chappa@washington.edu>.
1894 _ACEOF
1895 ac_status=$?
1898 if test "$ac_init_help" = "recursive"; then
1899 # If there are subdirs, report their specific --help.
1900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1901 test -d "$ac_dir" ||
1902 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1903 continue
1904 ac_builddir=.
1906 case "$ac_dir" in
1907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1910 # A ".." for each directory in $ac_dir_suffix.
1911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1912 case $ac_top_builddir_sub in
1913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1915 esac ;;
1916 esac
1917 ac_abs_top_builddir=$ac_pwd
1918 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1919 # for backward compatibility:
1920 ac_top_builddir=$ac_top_build_prefix
1922 case $srcdir in
1923 .) # We are building in place.
1924 ac_srcdir=.
1925 ac_top_srcdir=$ac_top_builddir_sub
1926 ac_abs_top_srcdir=$ac_pwd ;;
1927 [\\/]* | ?:[\\/]* ) # Absolute name.
1928 ac_srcdir=$srcdir$ac_dir_suffix;
1929 ac_top_srcdir=$srcdir
1930 ac_abs_top_srcdir=$srcdir ;;
1931 *) # Relative name.
1932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1933 ac_top_srcdir=$ac_top_build_prefix$srcdir
1934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1935 esac
1936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1938 cd "$ac_dir" || { ac_status=$?; continue; }
1939 # Check for guested configure.
1940 if test -f "$ac_srcdir/configure.gnu"; then
1941 echo &&
1942 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1943 elif test -f "$ac_srcdir/configure"; then
1944 echo &&
1945 $SHELL "$ac_srcdir/configure" --help=recursive
1946 else
1947 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1948 fi || ac_status=$?
1949 cd "$ac_pwd" || { ac_status=$?; break; }
1950 done
1953 test -n "$ac_init_help" && exit $ac_status
1954 if $ac_init_version; then
1955 cat <<\_ACEOF
1956 alpine configure 2.19.9993
1957 generated by GNU Autoconf 2.69
1959 Copyright (C) 2012 Free Software Foundation, Inc.
1960 This configure script is free software; the Free Software Foundation
1961 gives unlimited permission to copy, distribute and modify it.
1962 _ACEOF
1963 exit
1966 ## ------------------------ ##
1967 ## Autoconf initialization. ##
1968 ## ------------------------ ##
1970 # ac_fn_c_try_compile LINENO
1971 # --------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=1
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_compile
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_c_try_link ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2036 }; then :
2037 ac_retval=0
2038 else
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 ac_retval=1
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_link
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 eval "$3=yes"
2073 else
2074 eval "$3=no"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_try_cpp LINENO
2086 # ----------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088 ac_fn_c_try_cpp ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } > conftest.i && {
2107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 ac_retval=1
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2120 } # ac_fn_c_try_cpp
2122 # ac_fn_c_try_run LINENO
2123 # ----------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125 # that executables *can* be run.
2126 ac_fn_c_try_run ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_link"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2137 ac_status=$?
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2156 ac_retval=$ac_status
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2162 } # ac_fn_c_try_run
2164 # ac_fn_c_check_func LINENO FUNC VAR
2165 # ----------------------------------
2166 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2167 ac_fn_c_check_func ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2179 #define $2 innocuous_$2
2181 /* System header to define __stub macros and hopefully few prototypes,
2182 which can conflict with char $2 (); below.
2183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2184 <limits.h> exists even on freestanding compilers. */
2186 #ifdef __STDC__
2187 # include <limits.h>
2188 #else
2189 # include <assert.h>
2190 #endif
2192 #undef $2
2194 /* Override any GCC internal prototype to avoid an error.
2195 Use char because int might match the return type of a GCC
2196 builtin and then its argument prototype would still apply. */
2197 #ifdef __cplusplus
2198 extern "C"
2199 #endif
2200 char $2 ();
2201 /* The GNU C library defines this for functions which it implements
2202 to always fail with ENOSYS. Some functions are actually named
2203 something starting with __ and the normal name is an alias. */
2204 #if defined __stub_$2 || defined __stub___$2
2205 choke me
2206 #endif
2209 main ()
2211 return $2 ();
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_link "$LINENO"; then :
2217 eval "$3=yes"
2218 else
2219 eval "$3=no"
2221 rm -f core conftest.err conftest.$ac_objext \
2222 conftest$ac_exeext conftest.$ac_ext
2224 eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_func
2231 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2232 # -------------------------------------------------------
2233 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2234 # the include files in INCLUDES and setting the cache variable VAR
2235 # accordingly.
2236 ac_fn_c_check_header_mongrel ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if eval \${$3+:} false; then :
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 else
2249 # Is the header compilable?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2251 $as_echo_n "checking $2 usability... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 ac_header_compiler=yes
2259 else
2260 ac_header_compiler=no
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2264 $as_echo "$ac_header_compiler" >&6; }
2266 # Is the header present?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2268 $as_echo_n "checking $2 presence... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 #include <$2>
2272 _ACEOF
2273 if ac_fn_c_try_cpp "$LINENO"; then :
2274 ac_header_preproc=yes
2275 else
2276 ac_header_preproc=no
2278 rm -f conftest.err conftest.i conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2280 $as_echo "$ac_header_preproc" >&6; }
2282 # So? What about this header?
2283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2284 yes:no: )
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2286 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2290 no:yes:* )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2292 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2294 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2296 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2298 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301 ( $as_echo "## ------------------------------------ ##
2302 ## Report this to chappa@washington.edu ##
2303 ## ------------------------------------ ##"
2304 ) | sed "s/^/$as_me: WARNING: /" >&2
2306 esac
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 eval "$3=\$ac_header_compiler"
2314 eval ac_res=\$$3
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 } # ac_fn_c_check_header_mongrel
2322 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2323 # -------------------------------------------
2324 # Tests whether TYPE exists after having Included INCLUDES, setting cache
2325 # variable VAR accordingly.
2326 ac_fn_c_check_type ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if eval \${$3+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=no"
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 main ()
2341 if (sizeof ($2))
2342 return 0;
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2352 main ()
2354 if (sizeof (($2)))
2355 return 0;
2357 return 0;
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2362 else
2363 eval "$3=yes"
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374 } # ac_fn_c_check_type
2376 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2377 # --------------------------------------------
2378 # Tries to find the compile-time value of EXPR in a program that includes
2379 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2380 # computed
2381 ac_fn_c_compute_int ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 if test "$cross_compiling" = yes; then
2385 # Depending upon the size, compute the lo and hi bounds.
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2390 main ()
2392 static int test_array [1 - 2 * !(($2) >= 0)];
2393 test_array [0] = 0;
2394 return test_array [0];
2397 return 0;
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 ac_lo=0 ac_mid=0
2402 while :; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2407 main ()
2409 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2410 test_array [0] = 0;
2411 return test_array [0];
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_hi=$ac_mid; break
2419 else
2420 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2421 if test $ac_lo -le $ac_mid; then
2422 ac_lo= ac_hi=
2423 break
2425 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 done
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2434 main ()
2436 static int test_array [1 - 2 * !(($2) < 0)];
2437 test_array [0] = 0;
2438 return test_array [0];
2441 return 0;
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 ac_hi=-1 ac_mid=-1
2446 while :; do
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2451 main ()
2453 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2454 test_array [0] = 0;
2455 return test_array [0];
2458 return 0;
2460 _ACEOF
2461 if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_lo=$ac_mid; break
2463 else
2464 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2465 if test $ac_mid -le $ac_hi; then
2466 ac_lo= ac_hi=
2467 break
2469 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 done
2473 else
2474 ac_lo= ac_hi=
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 # Binary search between lo and hi bounds.
2480 while test "x$ac_lo" != "x$ac_hi"; do
2481 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2486 main ()
2488 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2489 test_array [0] = 0;
2490 return test_array [0];
2493 return 0;
2495 _ACEOF
2496 if ac_fn_c_try_compile "$LINENO"; then :
2497 ac_hi=$ac_mid
2498 else
2499 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 done
2503 case $ac_lo in #((
2504 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2505 '') ac_retval=1 ;;
2506 esac
2507 else
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2511 static long int longval () { return $2; }
2512 static unsigned long int ulongval () { return $2; }
2513 #include <stdio.h>
2514 #include <stdlib.h>
2516 main ()
2519 FILE *f = fopen ("conftest.val", "w");
2520 if (! f)
2521 return 1;
2522 if (($2) < 0)
2524 long int i = longval ();
2525 if (i != ($2))
2526 return 1;
2527 fprintf (f, "%ld", i);
2529 else
2531 unsigned long int i = ulongval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%lu", i);
2536 /* Do not output a trailing newline, as this causes \r\n confusion
2537 on some platforms. */
2538 return ferror (f) || fclose (f) != 0;
2541 return 0;
2543 _ACEOF
2544 if ac_fn_c_try_run "$LINENO"; then :
2545 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2546 else
2547 ac_retval=1
2549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2550 conftest.$ac_objext conftest.beam conftest.$ac_ext
2551 rm -f conftest.val
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 as_fn_set_status $ac_retval
2557 } # ac_fn_c_compute_int
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2562 It was created by alpine $as_me 2.19.9993, which was
2563 generated by GNU Autoconf 2.69. Invocation command line was
2565 $ $0 $@
2567 _ACEOF
2568 exec 5>>config.log
2570 cat <<_ASUNAME
2571 ## --------- ##
2572 ## Platform. ##
2573 ## --------- ##
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2592 _ASUNAME
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 $as_echo "PATH: $as_dir"
2600 done
2601 IFS=$as_save_IFS
2603 } >&5
2605 cat >&5 <<_ACEOF
2608 ## ----------- ##
2609 ## Core tests. ##
2610 ## ----------- ##
2612 _ACEOF
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2620 ac_configure_args=
2621 ac_configure_args0=
2622 ac_configure_args1=
2623 ac_must_keep_next=false
2624 for ac_pass in 1 2
2626 for ac_arg
2628 case $ac_arg in
2629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631 | -silent | --silent | --silen | --sile | --sil)
2632 continue ;;
2633 *\'*)
2634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 esac
2636 case $ac_pass in
2637 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639 as_fn_append ac_configure_args1 " '$ac_arg'"
2640 if test $ac_must_keep_next = true; then
2641 ac_must_keep_next=false # Got value, back to normal.
2642 else
2643 case $ac_arg in
2644 *=* | --config-cache | -C | -disable-* | --disable-* \
2645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647 | -with-* | --with-* | -without-* | --without-* | --x)
2648 case "$ac_configure_args0 " in
2649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650 esac
2652 -* ) ac_must_keep_next=true ;;
2653 esac
2655 as_fn_append ac_configure_args " '$ac_arg'"
2657 esac
2658 done
2659 done
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log. We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669 # Save into config.log some information that might help in debugging.
2671 echo
2673 $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2676 echo
2677 # The following way of writing the cache mishandles newlines in values,
2679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680 eval ac_val=\$$ac_var
2681 case $ac_val in #(
2682 *${as_nl}*)
2683 case $ac_var in #(
2684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686 esac
2687 case $ac_var in #(
2688 _ | IFS | as_nl) ;; #(
2689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690 *) { eval $ac_var=; unset $ac_var;} ;;
2691 esac ;;
2692 esac
2693 done
2694 (set) 2>&1 |
2695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696 *${as_nl}ac_space=\ *)
2697 sed -n \
2698 "s/'\''/'\''\\\\'\'''\''/g;
2699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700 ;; #(
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2704 esac |
2705 sort
2707 echo
2709 $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2712 echo
2713 for ac_var in $ac_subst_vars
2715 eval ac_val=\$$ac_var
2716 case $ac_val in
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718 esac
2719 $as_echo "$ac_var='\''$ac_val'\''"
2720 done | sort
2721 echo
2723 if test -n "$ac_subst_files"; then
2724 $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2727 echo
2728 for ac_var in $ac_subst_files
2730 eval ac_val=\$$ac_var
2731 case $ac_val in
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733 esac
2734 $as_echo "$ac_var='\''$ac_val'\''"
2735 done | sort
2736 echo
2739 if test -s confdefs.h; then
2740 $as_echo "## ----------- ##
2741 ## confdefs.h. ##
2742 ## ----------- ##"
2743 echo
2744 cat confdefs.h
2745 echo
2747 test "$ac_signal" != 0 &&
2748 $as_echo "$as_me: caught signal $ac_signal"
2749 $as_echo "$as_me: exit $exit_status"
2750 } >&5
2751 rm -f core *.core core.conftest.* &&
2752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753 exit $exit_status
2755 for ac_signal in 1 2 13 15; do
2756 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2757 done
2758 ac_signal=0
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2763 $as_echo "/* confdefs.h */" > confdefs.h
2765 # Predefined preprocessor variables.
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 _ACEOF
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 _ACEOF
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 _ACEOF
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 _ACEOF
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 _ACEOF
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2789 _ACEOF
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2794 ac_site_file1=NONE
2795 ac_site_file2=NONE
2796 if test -n "$CONFIG_SITE"; then
2797 # We do not want a PATH search for config.site.
2798 case $CONFIG_SITE in #((
2799 -*) ac_site_file1=./$CONFIG_SITE;;
2800 */*) ac_site_file1=$CONFIG_SITE;;
2801 *) ac_site_file1=./$CONFIG_SITE;;
2802 esac
2803 elif test "x$prefix" != xNONE; then
2804 ac_site_file1=$prefix/share/config.site
2805 ac_site_file2=$prefix/etc/config.site
2806 else
2807 ac_site_file1=$ac_default_prefix/share/config.site
2808 ac_site_file2=$ac_default_prefix/etc/config.site
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 test "x$ac_site_file" = xNONE && continue
2813 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816 sed 's/^/| /' "$ac_site_file" >&5
2817 . "$ac_site_file" \
2818 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2823 done
2825 if test -r "$cache_file"; then
2826 # Some versions of bash will fail to source /dev/null (special files
2827 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2828 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2831 case $cache_file in
2832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833 *) . "./$cache_file";;
2834 esac
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2839 >$cache_file
2842 gt_needs="$gt_needs "
2843 # Check that the precious variables saved in the cache have kept the same
2844 # value.
2845 ac_cache_corrupted=false
2846 for ac_var in $ac_precious_vars; do
2847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2848 eval ac_new_set=\$ac_env_${ac_var}_set
2849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2850 eval ac_new_val=\$ac_env_${ac_var}_value
2851 case $ac_old_set,$ac_new_set in
2852 set,)
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2854 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2855 ac_cache_corrupted=: ;;
2856 ,set)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2858 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2859 ac_cache_corrupted=: ;;
2860 ,);;
2862 if test "x$ac_old_val" != "x$ac_new_val"; then
2863 # differences in whitespace do not lead to failure.
2864 ac_old_val_w=`echo x $ac_old_val`
2865 ac_new_val_w=`echo x $ac_new_val`
2866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2868 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2869 ac_cache_corrupted=:
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2872 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2873 eval $ac_var=\$ac_old_val
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2876 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2878 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2879 fi;;
2880 esac
2881 # Pass precious variables to config.status.
2882 if test "$ac_new_set" = set; then
2883 case $ac_new_val in
2884 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2885 *) ac_arg=$ac_var=$ac_new_val ;;
2886 esac
2887 case " $ac_configure_args " in
2888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2889 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 esac
2892 done
2893 if $ac_cache_corrupted; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2897 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2898 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2900 ## -------------------- ##
2901 ## Main body of script. ##
2902 ## -------------------- ##
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 ac_config_headers="$ac_config_headers include/config.h"
2916 am__api_version='1.11'
2918 ac_aux_dir=
2919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2920 if test -f "$ac_dir/install-sh"; then
2921 ac_aux_dir=$ac_dir
2922 ac_install_sh="$ac_aux_dir/install-sh -c"
2923 break
2924 elif test -f "$ac_dir/install.sh"; then
2925 ac_aux_dir=$ac_dir
2926 ac_install_sh="$ac_aux_dir/install.sh -c"
2927 break
2928 elif test -f "$ac_dir/shtool"; then
2929 ac_aux_dir=$ac_dir
2930 ac_install_sh="$ac_aux_dir/shtool install -c"
2931 break
2933 done
2934 if test -z "$ac_aux_dir"; then
2935 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2938 # These three variables are undocumented and unsupported,
2939 # and are intended to be withdrawn in a future Autoconf release.
2940 # They can cause serious problems if a builder's source tree is in a directory
2941 # whose full name contains unusual characters.
2942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2953 # AIX /bin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if ${ac_cv_path_install+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974 ./ | .// | /[cC]/* | \
2975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977 /usr/ucb/* ) ;;
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2981 # by default.
2982 for ac_prog in ginstall scoinst install; do
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2985 if test $ac_prog = install &&
2986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2993 else
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one > conftest.one
2996 echo two > conftest.two
2997 mkdir conftest.dir
2998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2999 test -s conftest.one && test -s conftest.two &&
3000 test -s conftest.dir/conftest.one &&
3001 test -s conftest.dir/conftest.two
3002 then
3003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004 break 3
3008 done
3009 done
3011 esac
3013 done
3014 IFS=$as_save_IFS
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test "${ac_cv_path_install+set}" = set; then
3020 INSTALL=$ac_cv_path_install
3021 else
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Just in case
3043 sleep 1
3044 echo timestamp > conftest.file
3045 # Reject unsafe characters in $srcdir or the absolute working directory
3046 # name. Accept space and tab only in the latter.
3047 am_lf='
3049 case `pwd` in
3050 *[\\\"\#\$\&\'\`$am_lf]*)
3051 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3052 esac
3053 case $srcdir in
3054 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3055 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3056 esac
3058 # Do `set' in a subshell so we don't clobber the current shell's
3059 # arguments. Must try -L first in case configure is actually a
3060 # symlink; some systems play weird games with the mod time of symlinks
3061 # (eg FreeBSD returns the mod time of the symlink's containing
3062 # directory).
3063 if (
3064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3066 # -L didn't work.
3067 set X `ls -t "$srcdir/configure" conftest.file`
3069 rm -f conftest.file
3070 if test "$*" != "X $srcdir/configure conftest.file" \
3071 && test "$*" != "X conftest.file $srcdir/configure"; then
3073 # If neither matched, then we have a broken ls. This can happen
3074 # if, for instance, CONFIG_SHELL is bash and it inherits a
3075 # broken ls alias from the environment. This has actually
3076 # happened. Such a system could not be considered "sane".
3077 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3078 alias in your environment" "$LINENO" 5
3081 test "$2" = conftest.file
3083 then
3084 # Ok.
3086 else
3087 as_fn_error $? "newly created file is older than distributed files!
3088 Check your system clock" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 test "$program_prefix" != NONE &&
3093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3094 # Use a double $ so make ignores it.
3095 test "$program_suffix" != NONE &&
3096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3097 # Double any \ or $.
3098 # By default was `s,x,x', remove it if useless.
3099 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3100 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir=`cd $ac_aux_dir && pwd`
3105 if test x"${MISSING+set}" != xset; then
3106 case $am_aux_dir in
3107 *\ * | *\ *)
3108 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3110 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3111 esac
3113 # Use eval to expand $SHELL
3114 if eval "$MISSING --run true"; then
3115 am_missing_run="$MISSING --run "
3116 else
3117 am_missing_run=
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3119 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3122 if test x"${install_sh}" != xset; then
3123 case $am_aux_dir in
3124 *\ * | *\ *)
3125 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3127 install_sh="\${SHELL} $am_aux_dir/install-sh"
3128 esac
3131 # Installed binaries are usually stripped using `strip' when the user
3132 # run `make install-strip'. However `strip' might not be the right
3133 # tool to use in cross-compilation environments, therefore Automake
3134 # will honor the `STRIP' environment variable to overrule this program.
3135 if test "$cross_compiling" != no; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}strip; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_STRIP+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$STRIP"; then
3145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 STRIP=$ac_cv_prog_STRIP
3165 if test -n "$STRIP"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3167 $as_echo "$STRIP" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_STRIP"; then
3176 ac_ct_STRIP=$STRIP
3177 # Extract the first word of "strip", so it can be a program name with args.
3178 set dummy strip; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$ac_ct_STRIP"; then
3185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 $as_echo "$ac_ct_STRIP" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_STRIP" = x; then
3214 STRIP=":"
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 STRIP=$ac_ct_STRIP
3224 else
3225 STRIP="$ac_cv_prog_STRIP"
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3232 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3233 if test -z "$MKDIR_P"; then
3234 if ${ac_cv_path_mkdir+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in mkdir gmkdir; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3245 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3246 'mkdir (GNU coreutils) '* | \
3247 'mkdir (coreutils) '* | \
3248 'mkdir (fileutils) '4.1*)
3249 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3250 break 3;;
3251 esac
3252 done
3253 done
3254 done
3255 IFS=$as_save_IFS
3259 test -d ./--version && rmdir ./--version
3260 if test "${ac_cv_path_mkdir+set}" = set; then
3261 MKDIR_P="$ac_cv_path_mkdir -p"
3262 else
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for MKDIR_P within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 MKDIR_P="$ac_install_sh -d"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3271 $as_echo "$MKDIR_P" >&6; }
3273 mkdir_p="$MKDIR_P"
3274 case $mkdir_p in
3275 [\\/$]* | ?:[\\/]*) ;;
3276 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3277 esac
3279 for ac_prog in gawk mawk nawk awk
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_AWK+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$AWK"; then
3289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_AWK="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 AWK=$ac_cv_prog_AWK
3309 if test -n "$AWK"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3311 $as_echo "$AWK" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$AWK" && break
3319 done
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3322 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3323 set x ${MAKE-make}
3324 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3325 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat >conftest.make <<\_ACEOF
3329 SHELL = /bin/sh
3330 all:
3331 @echo '@@@%%%=$(MAKE)=@@@%%%'
3332 _ACEOF
3333 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3334 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3335 *@@@%%%=?*=@@@%%%*)
3336 eval ac_cv_prog_make_${ac_make}_set=yes;;
3338 eval ac_cv_prog_make_${ac_make}_set=no;;
3339 esac
3340 rm -f conftest.make
3342 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 SET_MAKE=
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 SET_MAKE="MAKE=${MAKE-make}"
3352 rm -rf .tst 2>/dev/null
3353 mkdir .tst 2>/dev/null
3354 if test -d .tst; then
3355 am__leading_dot=.
3356 else
3357 am__leading_dot=_
3359 rmdir .tst 2>/dev/null
3361 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3362 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3363 # is not polluted with repeated "-I."
3364 am__isrc=' -I$(srcdir)'
3365 # test to see if srcdir already configured
3366 if test -f $srcdir/config.status; then
3367 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3371 # test whether we have cygpath
3372 if test -z "$CYGPATH_W"; then
3373 if (cygpath --version) >/dev/null 2>/dev/null; then
3374 CYGPATH_W='cygpath -w'
3375 else
3376 CYGPATH_W=echo
3381 # Define the identity of the package.
3382 PACKAGE='alpine'
3383 VERSION='2.19.9993'
3386 cat >>confdefs.h <<_ACEOF
3387 #define PACKAGE "$PACKAGE"
3388 _ACEOF
3391 cat >>confdefs.h <<_ACEOF
3392 #define VERSION "$VERSION"
3393 _ACEOF
3395 # Some tools Automake needs.
3397 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3400 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3403 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3406 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3409 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3411 # We need awk for the "check" target. The system "awk" is bad on
3412 # some platforms.
3413 # Always define AMTAR for backward compatibility.
3415 AMTAR=${AMTAR-"${am_missing_run}tar"}
3417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3427 # Check whether --enable-maintainer-mode was given.
3428 if test "${enable_maintainer_mode+set}" = set; then :
3429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3430 else
3431 USE_MAINTAINER_MODE=no
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3436 if test $USE_MAINTAINER_MODE = yes; then
3437 MAINTAINER_MODE_TRUE=
3438 MAINTAINER_MODE_FALSE='#'
3439 else
3440 MAINTAINER_MODE_TRUE='#'
3441 MAINTAINER_MODE_FALSE=
3444 MAINT=$MAINTAINER_MODE_TRUE
3448 # Make sure we can run config.sub.
3449 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3450 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3453 $as_echo_n "checking build system type... " >&6; }
3454 if ${ac_cv_build+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 ac_build_alias=$build_alias
3458 test "x$ac_build_alias" = x &&
3459 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3460 test "x$ac_build_alias" = x &&
3461 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3462 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3467 $as_echo "$ac_cv_build" >&6; }
3468 case $ac_cv_build in
3469 *-*-*) ;;
3470 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3471 esac
3472 build=$ac_cv_build
3473 ac_save_IFS=$IFS; IFS='-'
3474 set x $ac_cv_build
3475 shift
3476 build_cpu=$1
3477 build_vendor=$2
3478 shift; shift
3479 # Remember, the first character of IFS is used to create $*,
3480 # except with old shells:
3481 build_os=$*
3482 IFS=$ac_save_IFS
3483 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3487 $as_echo_n "checking host system type... " >&6; }
3488 if ${ac_cv_host+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test "x$host_alias" = x; then
3492 ac_cv_host=$ac_cv_build
3493 else
3494 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3500 $as_echo "$ac_cv_host" >&6; }
3501 case $ac_cv_host in
3502 *-*-*) ;;
3503 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3504 esac
3505 host=$ac_cv_host
3506 ac_save_IFS=$IFS; IFS='-'
3507 set x $ac_cv_host
3508 shift
3509 host_cpu=$1
3510 host_vendor=$2
3511 shift; shift
3512 # Remember, the first character of IFS is used to create $*,
3513 # except with old shells:
3514 host_os=$*
3515 IFS=$ac_save_IFS
3516 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3528 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3530 # start out with intent to build Web Alpine
3531 WEB_BUILD=web/src/alpined.d
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 ac_prog_rejected=no
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3695 ac_cv_prog_CC="cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_CC+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$CC" && break
3770 done
3772 if test -z "$CC"; then
3773 ac_ct_CC=$CC
3774 for ac_prog in cl.exe
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_ac_ct_CC="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$ac_ct_CC" && break
3814 done
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details" "$LINENO" 5; }
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 set X $ac_compile
3840 ac_compiler=$2
3841 for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3850 ac_status=$?
3851 if test -s conftest.err; then
3852 sed '10a\
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3857 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 done
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3877 # of exeext.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3879 $as_echo_n "checking whether the C compiler works... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885 ac_rmfiles=
3886 for ac_file in $ac_files
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892 done
3893 rm -f $ac_rmfiles
3895 if { { ac_try="$ac_link_default"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3910 # Autoconf.
3911 for ac_file in $ac_files ''
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
3931 break;;
3933 break;;
3934 esac
3935 done
3936 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938 else
3939 ac_file=''
3941 if test -z "$ac_file"; then :
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error 77 "C compiler cannot create executables
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 $as_echo "yes" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956 $as_echo_n "checking for C compiler default output file name... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958 $as_echo "$ac_file" >&6; }
3959 ac_exeext=$ac_cv_exeext
3961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3962 ac_clean_files=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3979 # `rm'.
3980 for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 break;;
3986 * ) break;;
3987 esac
3988 done
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details" "$LINENO" 5; }
3995 rm -f conftest conftest$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.$ac_ext
4000 EXEEXT=$ac_cv_exeext
4001 ac_exeext=$EXEEXT
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdio.h>
4006 main ()
4008 FILE *f = fopen ("conftest.out", "w");
4009 return ferror (f) || fclose (f) != 0;
4012 return 0;
4014 _ACEOF
4015 ac_clean_files="$ac_clean_files conftest.out"
4016 # Check that the compiler produces executables we can run. If not, either
4017 # the compiler is broken, or we cross compile.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019 $as_echo_n "checking whether we are cross compiling... " >&6; }
4020 if test "$cross_compiling" != yes; then
4021 { { ac_try="$ac_link"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 if { ac_try='./conftest$ac_cv_exeext'
4033 { { case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_try") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; }; then
4043 cross_compiling=no
4044 else
4045 if test "$cross_compiling" = maybe; then
4046 cross_compiling=yes
4047 else
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error $? "cannot run C compiled programs.
4051 If you meant to cross compile, use \`--host'.
4052 See \`config.log' for more details" "$LINENO" 5; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4057 $as_echo "$cross_compiling" >&6; }
4059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4060 ac_clean_files=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4062 $as_echo_n "checking for suffix of object files... " >&6; }
4063 if ${ac_cv_objext+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4070 main ()
4074 return 0;
4076 _ACEOF
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 break;;
4095 esac
4096 done
4097 else
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4103 as_fn_error $? "cannot compute suffix of object files: cannot compile
4104 See \`config.log' for more details" "$LINENO" 5; }
4106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109 $as_echo "$ac_cv_objext" >&6; }
4110 OBJEXT=$ac_cv_objext
4111 ac_objext=$OBJEXT
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4114 if ${ac_cv_c_compiler_gnu+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4123 #ifndef __GNUC__
4124 choke me
4125 #endif
4128 return 0;
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_compiler_gnu=yes
4133 else
4134 ac_compiler_gnu=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4143 GCC=yes
4144 else
4145 GCC=
4147 ac_test_CFLAGS=${CFLAGS+set}
4148 ac_save_CFLAGS=$CFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4151 if ${ac_cv_prog_cc_g+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_save_c_werror_flag=$ac_c_werror_flag
4155 ac_c_werror_flag=yes
4156 ac_cv_prog_cc_g=no
4157 CFLAGS="-g"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4162 main ()
4166 return 0;
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_g=yes
4171 else
4172 CFLAGS=""
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4186 else
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="-g"
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_g=yes
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211 $as_echo "$ac_cv_prog_cc_g" >&6; }
4212 if test "$ac_test_CFLAGS" = set; then
4213 CFLAGS=$ac_save_CFLAGS
4214 elif test $ac_cv_prog_cc_g = yes; then
4215 if test "$GCC" = yes; then
4216 CFLAGS="-g -O2"
4217 else
4218 CFLAGS="-g"
4220 else
4221 if test "$GCC" = yes; then
4222 CFLAGS="-O2"
4223 else
4224 CFLAGS=
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4229 if ${ac_cv_prog_cc_c89+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_cv_prog_cc_c89=no
4233 ac_save_CC=$CC
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <stdarg.h>
4237 #include <stdio.h>
4238 struct stat;
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4243 char **p;
4244 int i;
4246 return p[i];
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4250 char *s;
4251 va_list v;
4252 va_start (v,p);
4253 s = g (p, va_arg (v,int));
4254 va_end (v);
4255 return s;
4258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4259 function prototypes and stuff, but not '\xHH' hex character constants.
4260 These don't provoke an error unfortunately, instead are silently treated
4261 as 'x'. The following induces an error, until -std is added to get
4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4263 array size at least. It's necessary to write '\x00'==0 to get something
4264 that's true only with -std. */
4265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4268 inside strings and character constants. */
4269 #define FOO(x) 'x'
4270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272 int test (int i, double x);
4273 struct s1 {int (*f) (int a);};
4274 struct s2 {int (*f) (double a);};
4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4276 int argc;
4277 char **argv;
4279 main ()
4281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 return 0;
4285 _ACEOF
4286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 CC="$ac_save_CC $ac_arg"
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_c89=$ac_arg
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4313 if test "x$ac_cv_prog_cc_c89" != xno; then :
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 DEPDIR="${am__leading_dot}deps"
4324 ac_config_commands="$ac_config_commands depfiles"
4327 am_make=${MAKE-make}
4328 cat > confinc << 'END'
4329 am__doit:
4330 @echo this is the am__doit target
4331 .PHONY: am__doit
4333 # If we don't find an include directive, just comment out the code.
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4335 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4336 am__include="#"
4337 am__quote=
4338 _am_result=none
4339 # First try GNU make style include.
4340 echo "include confinc" > confmf
4341 # Ignore all kinds of additional output from `make'.
4342 case `$am_make -s -f confmf 2> /dev/null` in #(
4343 *the\ am__doit\ target*)
4344 am__include=include
4345 am__quote=
4346 _am_result=GNU
4348 esac
4349 # Now try BSD make style include.
4350 if test "$am__include" = "#"; then
4351 echo '.include "confinc"' > confmf
4352 case `$am_make -s -f confmf 2> /dev/null` in #(
4353 *the\ am__doit\ target*)
4354 am__include=.include
4355 am__quote="\""
4356 _am_result=BSD
4358 esac
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4363 $as_echo "$_am_result" >&6; }
4364 rm -f confinc confmf
4366 # Check whether --enable-dependency-tracking was given.
4367 if test "${enable_dependency_tracking+set}" = set; then :
4368 enableval=$enable_dependency_tracking;
4371 if test "x$enable_dependency_tracking" != xno; then
4372 am_depcomp="$ac_aux_dir/depcomp"
4373 AMDEPBACKSLASH='\'
4375 if test "x$enable_dependency_tracking" != xno; then
4376 AMDEP_TRUE=
4377 AMDEP_FALSE='#'
4378 else
4379 AMDEP_TRUE='#'
4380 AMDEP_FALSE=
4385 depcc="$CC" am_compiler_list=
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4388 $as_echo_n "checking dependency style of $depcc... " >&6; }
4389 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393 # We make a subdir and do the tests there. Otherwise we can end up
4394 # making bogus files that we don't know about and never remove. For
4395 # instance it was reported that on HP-UX the gcc test will end up
4396 # making a dummy file named `D' -- because `-MD' means `put the output
4397 # in D'.
4398 mkdir conftest.dir
4399 # Copy depcomp to subdir because otherwise we won't find it if we're
4400 # using a relative directory.
4401 cp "$am_depcomp" conftest.dir
4402 cd conftest.dir
4403 # We will build objects and dependencies in a subdirectory because
4404 # it helps to detect inapplicable dependency modes. For instance
4405 # both Tru64's cc and ICC support -MD to output dependencies as a
4406 # side effect of compilation, but ICC will put the dependencies in
4407 # the current directory while Tru64 will put them in the object
4408 # directory.
4409 mkdir sub
4411 am_cv_CC_dependencies_compiler_type=none
4412 if test "$am_compiler_list" = ""; then
4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4415 am__universal=false
4416 case " $depcc " in #(
4417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 esac
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4428 : > sub/conftest.c
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432 # Solaris 8's {/usr,}/bin/sh.
4433 touch sub/conftst$i.h
4434 done
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4438 # mode. It turns out that the SunPro C++ compiler does not properly
4439 # handle `-M -o', and we need to detect this. Also, some Intel
4440 # versions had trouble with output in subdirs
4441 am__obj=sub/conftest.${OBJEXT-o}
4442 am__minus_obj="-o $am__obj"
4443 case $depmode in
4444 gcc)
4445 # This depmode causes a compiler race in universal mode.
4446 test "$am__universal" = false || continue
4448 nosideeffect)
4449 # after this tag, mechanisms are not by side-effect, so they'll
4450 # only be used when explicitly requested
4451 if test "x$enable_dependency_tracking" = xyes; then
4452 continue
4453 else
4454 break
4457 msvisualcpp | msvcmsys)
4458 # This compiler won't grok `-c -o', but also, the minuso test has
4459 # not run yet. These depmodes are late enough in the game, and
4460 # so weak that their functioning should not be impacted.
4461 am__obj=conftest.${OBJEXT-o}
4462 am__minus_obj=
4464 none) break ;;
4465 esac
4466 if depmode=$depmode \
4467 source=sub/conftest.c object=$am__obj \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470 >/dev/null 2>conftest.err &&
4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CC_dependencies_compiler_type=$depmode
4485 break
4488 done
4490 cd ..
4491 rm -rf conftest.dir
4492 else
4493 am_cv_CC_dependencies_compiler_type=none
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4502 test "x$enable_dependency_tracking" != xno \
4503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCC_TRUE=
4505 am__fastdepCC_FALSE='#'
4506 else
4507 am__fastdepCC_TRUE='#'
4508 am__fastdepCC_FALSE=
4512 case $ac_cv_prog_cc_stdc in #(
4513 no) :
4514 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4515 *) :
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4517 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4518 if ${ac_cv_prog_cc_c99+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 ac_cv_prog_cc_c99=no
4522 ac_save_CC=$CC
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <stdarg.h>
4526 #include <stdbool.h>
4527 #include <stdlib.h>
4528 #include <wchar.h>
4529 #include <stdio.h>
4531 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4532 #define debug(...) fprintf (stderr, __VA_ARGS__)
4533 #define showlist(...) puts (#__VA_ARGS__)
4534 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4535 static void
4536 test_varargs_macros (void)
4538 int x = 1234;
4539 int y = 5678;
4540 debug ("Flag");
4541 debug ("X = %d\n", x);
4542 showlist (The first, second, and third items.);
4543 report (x>y, "x is %d but y is %d", x, y);
4546 // Check long long types.
4547 #define BIG64 18446744073709551615ull
4548 #define BIG32 4294967295ul
4549 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4550 #if !BIG_OK
4551 your preprocessor is broken;
4552 #endif
4553 #if BIG_OK
4554 #else
4555 your preprocessor is broken;
4556 #endif
4557 static long long int bignum = -9223372036854775807LL;
4558 static unsigned long long int ubignum = BIG64;
4560 struct incomplete_array
4562 int datasize;
4563 double data[];
4566 struct named_init {
4567 int number;
4568 const wchar_t *name;
4569 double average;
4572 typedef const char *ccp;
4574 static inline int
4575 test_restrict (ccp restrict text)
4577 // See if C++-style comments work.
4578 // Iterate through items via the restricted pointer.
4579 // Also check for declarations in for loops.
4580 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4581 continue;
4582 return 0;
4585 // Check varargs and va_copy.
4586 static void
4587 test_varargs (const char *format, ...)
4589 va_list args;
4590 va_start (args, format);
4591 va_list args_copy;
4592 va_copy (args_copy, args);
4594 const char *str;
4595 int number;
4596 float fnumber;
4598 while (*format)
4600 switch (*format++)
4602 case 's': // string
4603 str = va_arg (args_copy, const char *);
4604 break;
4605 case 'd': // int
4606 number = va_arg (args_copy, int);
4607 break;
4608 case 'f': // float
4609 fnumber = va_arg (args_copy, double);
4610 break;
4611 default:
4612 break;
4615 va_end (args_copy);
4616 va_end (args);
4620 main ()
4623 // Check bool.
4624 _Bool success = false;
4626 // Check restrict.
4627 if (test_restrict ("String literal") == 0)
4628 success = true;
4629 char *restrict newvar = "Another string";
4631 // Check varargs.
4632 test_varargs ("s, d' f .", "string", 65, 34.234);
4633 test_varargs_macros ();
4635 // Check flexible array members.
4636 struct incomplete_array *ia =
4637 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4638 ia->datasize = 10;
4639 for (int i = 0; i < ia->datasize; ++i)
4640 ia->data[i] = i * 1.234;
4642 // Check named initializers.
4643 struct named_init ni = {
4644 .number = 34,
4645 .name = L"Test wide string",
4646 .average = 543.34343,
4649 ni.number = 58;
4651 int dynamic_array[ni.number];
4652 dynamic_array[ni.number - 1] = 543;
4654 // work around unused variable warnings
4655 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4656 || dynamic_array[ni.number - 1] != 543);
4659 return 0;
4661 _ACEOF
4662 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4664 CC="$ac_save_CC $ac_arg"
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_prog_cc_c99=$ac_arg
4668 rm -f core conftest.err conftest.$ac_objext
4669 test "x$ac_cv_prog_cc_c99" != "xno" && break
4670 done
4671 rm -f conftest.$ac_ext
4672 CC=$ac_save_CC
4675 # AC_CACHE_VAL
4676 case "x$ac_cv_prog_cc_c99" in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679 $as_echo "none needed" >&6; } ;;
4680 xno)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682 $as_echo "unsupported" >&6; } ;;
4684 CC="$CC $ac_cv_prog_cc_c99"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4686 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4687 esac
4688 if test "x$ac_cv_prog_cc_c99" != xno; then :
4689 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4693 if ${ac_cv_prog_cc_c89+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 ac_cv_prog_cc_c89=no
4697 ac_save_CC=$CC
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <stdarg.h>
4701 #include <stdio.h>
4702 struct stat;
4703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4704 struct buf { int x; };
4705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4706 static char *e (p, i)
4707 char **p;
4708 int i;
4710 return p[i];
4712 static char *f (char * (*g) (char **, int), char **p, ...)
4714 char *s;
4715 va_list v;
4716 va_start (v,p);
4717 s = g (p, va_arg (v,int));
4718 va_end (v);
4719 return s;
4722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4723 function prototypes and stuff, but not '\xHH' hex character constants.
4724 These don't provoke an error unfortunately, instead are silently treated
4725 as 'x'. The following induces an error, until -std is added to get
4726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4727 array size at least. It's necessary to write '\x00'==0 to get something
4728 that's true only with -std. */
4729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4732 inside strings and character constants. */
4733 #define FOO(x) 'x'
4734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4736 int test (int i, double x);
4737 struct s1 {int (*f) (int a);};
4738 struct s2 {int (*f) (double a);};
4739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4740 int argc;
4741 char **argv;
4743 main ()
4745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4747 return 0;
4749 _ACEOF
4750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 CC="$ac_save_CC $ac_arg"
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_c89=$ac_arg
4757 rm -f core conftest.err conftest.$ac_objext
4758 test "x$ac_cv_prog_cc_c89" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC
4764 # AC_CACHE_VAL
4765 case "x$ac_cv_prog_cc_c89" in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 $as_echo "none needed" >&6; } ;;
4769 xno)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 $as_echo "unsupported" >&6; } ;;
4773 CC="$CC $ac_cv_prog_cc_c89"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4776 esac
4777 if test "x$ac_cv_prog_cc_c89" != xno; then :
4778 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4779 else
4780 ac_cv_prog_cc_stdc=no
4785 esac
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4787 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4788 if ${ac_cv_prog_cc_stdc+:} false; then :
4789 $as_echo_n "(cached) " >&6
4792 case $ac_cv_prog_cc_stdc in #(
4793 no) :
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 $as_echo "unsupported" >&6; } ;; #(
4796 '') :
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4798 $as_echo "none needed" >&6; } ;; #(
4799 *) :
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4801 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4802 esac
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4807 set x ${MAKE-make}
4808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4809 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat >conftest.make <<\_ACEOF
4813 SHELL = /bin/sh
4814 all:
4815 @echo '@@@%%%=$(MAKE)=@@@%%%'
4816 _ACEOF
4817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4819 *@@@%%%=?*=@@@%%%*)
4820 eval ac_cv_prog_make_${ac_make}_set=yes;;
4822 eval ac_cv_prog_make_${ac_make}_set=no;;
4823 esac
4824 rm -f conftest.make
4826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828 $as_echo "yes" >&6; }
4829 SET_MAKE=
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 SET_MAKE="MAKE=${MAKE-make}"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4838 LN_S=$as_ln_s
4839 if test "$LN_S" = "ln -s"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4847 for ac_prog in gawk mawk nawk awk
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_AWK+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$AWK"; then
4857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_AWK="$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 AWK=$ac_cv_prog_AWK
4877 if test -n "$AWK"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4879 $as_echo "$AWK" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$AWK" && break
4887 done
4889 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4891 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_RANLIB+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$RANLIB"; then
4898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4911 done
4912 done
4913 IFS=$as_save_IFS
4917 RANLIB=$ac_cv_prog_RANLIB
4918 if test -n "$RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4920 $as_echo "$RANLIB" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4928 if test -z "$ac_cv_prog_RANLIB"; then
4929 ac_ct_RANLIB=$RANLIB
4930 # Extract the first word of "ranlib", so it can be a program name with args.
4931 set dummy ranlib; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$ac_ct_RANLIB"; then
4938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_ac_ct_RANLIB="ranlib"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4957 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4958 if test -n "$ac_ct_RANLIB"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4960 $as_echo "$ac_ct_RANLIB" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4966 if test "x$ac_ct_RANLIB" = x; then
4967 RANLIB=":"
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970 yes:)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned=yes ;;
4974 esac
4975 RANLIB=$ac_ct_RANLIB
4977 else
4978 RANLIB="$ac_cv_prog_RANLIB"
4981 case `pwd` in
4982 *\ * | *\ *)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4985 esac
4989 macro_version='2.2.6b'
4990 macro_revision='1.3018'
5004 ltmain="$ac_aux_dir/ltmain.sh"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5008 if ${ac_cv_path_SED+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012 for ac_i in 1 2 3 4 5 6 7; do
5013 ac_script="$ac_script$as_nl$ac_script"
5014 done
5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016 { ac_script=; unset ac_script;}
5017 if test -z "$SED"; then
5018 ac_path_SED_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in sed gsed; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_SED" || continue
5029 # Check for GNU ac_path_SED and select it if it is found.
5030 # Check for GNU $ac_path_SED
5031 case `"$ac_path_SED" --version 2>&1` in
5032 *GNU*)
5033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo '' >> "conftest.nl"
5043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_SED_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_SED="$ac_path_SED"
5049 ac_path_SED_max=$ac_count
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5057 $ac_path_SED_found && break 3
5058 done
5059 done
5060 done
5061 IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_SED"; then
5063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5065 else
5066 ac_cv_path_SED=$SED
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5071 $as_echo "$ac_cv_path_SED" >&6; }
5072 SED="$ac_cv_path_SED"
5073 rm -f conftest.sed
5075 test -z "$SED" && SED=sed
5076 Xsed="$SED -e 1s/^X//"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5090 if ${ac_cv_path_GREP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -z "$GREP"; then
5094 ac_path_GREP_found=false
5095 # Loop through the user's path and test for each of PROGNAME-LIST
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in grep ggrep; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5104 as_fn_executable_p "$ac_path_GREP" || continue
5105 # Check for GNU ac_path_GREP and select it if it is found.
5106 # Check for GNU $ac_path_GREP
5107 case `"$ac_path_GREP" --version 2>&1` in
5108 *GNU*)
5109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111 ac_count=0
5112 $as_echo_n 0123456789 >"conftest.in"
5113 while :
5115 cat "conftest.in" "conftest.in" >"conftest.tmp"
5116 mv "conftest.tmp" "conftest.in"
5117 cp "conftest.in" "conftest.nl"
5118 $as_echo 'GREP' >> "conftest.nl"
5119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121 as_fn_arith $ac_count + 1 && ac_count=$as_val
5122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5123 # Best one so far, save it but keep looking for a better one
5124 ac_cv_path_GREP="$ac_path_GREP"
5125 ac_path_GREP_max=$ac_count
5127 # 10*(2^10) chars as input seems more than enough
5128 test $ac_count -gt 10 && break
5129 done
5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 esac
5133 $ac_path_GREP_found && break 3
5134 done
5135 done
5136 done
5137 IFS=$as_save_IFS
5138 if test -z "$ac_cv_path_GREP"; then
5139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5141 else
5142 ac_cv_path_GREP=$GREP
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5147 $as_echo "$ac_cv_path_GREP" >&6; }
5148 GREP="$ac_cv_path_GREP"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5152 $as_echo_n "checking for egrep... " >&6; }
5153 if ${ac_cv_path_EGREP+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5157 then ac_cv_path_EGREP="$GREP -E"
5158 else
5159 if test -z "$EGREP"; then
5160 ac_path_EGREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in egrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5170 as_fn_executable_p "$ac_path_EGREP" || continue
5171 # Check for GNU ac_path_EGREP and select it if it is found.
5172 # Check for GNU $ac_path_EGREP
5173 case `"$ac_path_EGREP" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'EGREP' >> "conftest.nl"
5185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_EGREP="$ac_path_EGREP"
5191 ac_path_EGREP_max=$ac_count
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5199 $ac_path_EGREP_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_EGREP"; then
5205 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 else
5208 ac_cv_path_EGREP=$EGREP
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5214 $as_echo "$ac_cv_path_EGREP" >&6; }
5215 EGREP="$ac_cv_path_EGREP"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5219 $as_echo_n "checking for fgrep... " >&6; }
5220 if ${ac_cv_path_FGREP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5224 then ac_cv_path_FGREP="$GREP -F"
5225 else
5226 if test -z "$FGREP"; then
5227 ac_path_FGREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in fgrep; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5237 as_fn_executable_p "$ac_path_FGREP" || continue
5238 # Check for GNU ac_path_FGREP and select it if it is found.
5239 # Check for GNU $ac_path_FGREP
5240 case `"$ac_path_FGREP" --version 2>&1` in
5241 *GNU*)
5242 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5244 ac_count=0
5245 $as_echo_n 0123456789 >"conftest.in"
5246 while :
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 $as_echo 'FGREP' >> "conftest.nl"
5252 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_FGREP="$ac_path_FGREP"
5258 ac_path_FGREP_max=$ac_count
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5262 done
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5266 $ac_path_FGREP_found && break 3
5267 done
5268 done
5269 done
5270 IFS=$as_save_IFS
5271 if test -z "$ac_cv_path_FGREP"; then
5272 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 else
5275 ac_cv_path_FGREP=$FGREP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5281 $as_echo "$ac_cv_path_FGREP" >&6; }
5282 FGREP="$ac_cv_path_FGREP"
5285 test -z "$GREP" && GREP=grep
5305 # Check whether --with-gnu-ld was given.
5306 if test "${with_gnu_ld+set}" = set; then :
5307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5308 else
5309 with_gnu_ld=no
5312 ac_prog=ld
5313 if test "$GCC" = yes; then
5314 # Check if gcc -print-prog-name=ld gives a path.
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5316 $as_echo_n "checking for ld used by $CC... " >&6; }
5317 case $host in
5318 *-*-mingw*)
5319 # gcc leaves a trailing carriage return which upsets mingw
5320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5323 esac
5324 case $ac_prog in
5325 # Accept absolute paths.
5326 [\\/]* | ?:[\\/]*)
5327 re_direlt='/[^/][^/]*/\.\./'
5328 # Canonicalize the pathname of ld
5329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5332 done
5333 test -z "$LD" && LD="$ac_prog"
5336 # If it fails, then pretend we aren't using GCC.
5337 ac_prog=ld
5340 # If it is relative, then search for the first ld in PATH.
5341 with_gnu_ld=unknown
5343 esac
5344 elif test "$with_gnu_ld" = yes; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5346 $as_echo_n "checking for GNU ld... " >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5349 $as_echo_n "checking for non-GNU ld... " >&6; }
5351 if ${lt_cv_path_LD+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -z "$LD"; then
5355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5356 for ac_dir in $PATH; do
5357 IFS="$lt_save_ifs"
5358 test -z "$ac_dir" && ac_dir=.
5359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5360 lt_cv_path_LD="$ac_dir/$ac_prog"
5361 # Check to see if the program is GNU ld. I'd rather use --version,
5362 # but apparently some variants of GNU ld only accept -v.
5363 # Break only if it was the GNU/non-GNU ld that we prefer.
5364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366 test "$with_gnu_ld" != no && break
5369 test "$with_gnu_ld" != yes && break
5371 esac
5373 done
5374 IFS="$lt_save_ifs"
5375 else
5376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5380 LD="$lt_cv_path_LD"
5381 if test -n "$LD"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5383 $as_echo "$LD" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5391 if ${lt_cv_prog_gnu_ld+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5395 case `$LD -v 2>&1 </dev/null` in
5396 *GNU* | *'with BFD'*)
5397 lt_cv_prog_gnu_ld=yes
5400 lt_cv_prog_gnu_ld=no
5402 esac
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5406 with_gnu_ld=$lt_cv_prog_gnu_ld
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5417 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5418 if ${lt_cv_path_NM+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$NM"; then
5422 # Let the user override the test.
5423 lt_cv_path_NM="$NM"
5424 else
5425 lt_nm_to_check="${ac_tool_prefix}nm"
5426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5427 lt_nm_to_check="$lt_nm_to_check nm"
5429 for lt_tmp_nm in $lt_nm_to_check; do
5430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5432 IFS="$lt_save_ifs"
5433 test -z "$ac_dir" && ac_dir=.
5434 tmp_nm="$ac_dir/$lt_tmp_nm"
5435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5436 # Check to see if the nm accepts a BSD-compat flag.
5437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5438 # nm: unknown option "B" ignored
5439 # Tru64's nm complains that /dev/null is an invalid object file
5440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5441 */dev/null* | *'Invalid file or object type'*)
5442 lt_cv_path_NM="$tmp_nm -B"
5443 break
5446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5447 */dev/null*)
5448 lt_cv_path_NM="$tmp_nm -p"
5449 break
5452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5453 continue # so that we can try to find one that supports BSD flags
5455 esac
5457 esac
5459 done
5460 IFS="$lt_save_ifs"
5461 done
5462 : ${lt_cv_path_NM=no}
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5466 $as_echo "$lt_cv_path_NM" >&6; }
5467 if test "$lt_cv_path_NM" != "no"; then
5468 NM="$lt_cv_path_NM"
5469 else
5470 # Didn't find any BSD compatible name lister, look for dumpbin.
5471 if test -n "$ac_tool_prefix"; then
5472 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_DUMPBIN+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$DUMPBIN"; then
5482 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 done
5497 IFS=$as_save_IFS
5501 DUMPBIN=$ac_cv_prog_DUMPBIN
5502 if test -n "$DUMPBIN"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5504 $as_echo "$DUMPBIN" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 test -n "$DUMPBIN" && break
5512 done
5514 if test -z "$DUMPBIN"; then
5515 ac_ct_DUMPBIN=$DUMPBIN
5516 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5518 # Extract the first word of "$ac_prog", so it can be a program name with args.
5519 set dummy $ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$ac_ct_DUMPBIN"; then
5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5548 $as_echo "$ac_ct_DUMPBIN" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 test -n "$ac_ct_DUMPBIN" && break
5556 done
5558 if test "x$ac_ct_DUMPBIN" = x; then
5559 DUMPBIN=":"
5560 else
5561 case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567 DUMPBIN=$ac_ct_DUMPBIN
5572 if test "$DUMPBIN" != ":"; then
5573 NM="$DUMPBIN"
5576 test -z "$NM" && NM=nm
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5585 if ${lt_cv_nm_interface+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 lt_cv_nm_interface="BSD nm"
5589 echo "int some_variable = 0;" > conftest.$ac_ext
5590 (eval echo "\"\$as_me:5590: $ac_compile\"" >&5)
5591 (eval "$ac_compile" 2>conftest.err)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:5593: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595 cat conftest.err >&5
5596 (eval echo "\"\$as_me:5596: output\"" >&5)
5597 cat conftest.out >&5
5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599 lt_cv_nm_interface="MS dumpbin"
5601 rm -f conftest*
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5604 $as_echo "$lt_cv_nm_interface" >&6; }
5606 # find the maximum length of command line arguments
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5608 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5609 if ${lt_cv_sys_max_cmd_len+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5613 teststring="ABCD"
5615 case $build_os in
5616 msdosdjgpp*)
5617 # On DJGPP, this test can blow up pretty badly due to problems in libc
5618 # (any single argument exceeding 2000 bytes causes a buffer overrun
5619 # during glob expansion). Even if it were fixed, the result of this
5620 # check would be larger than it should be.
5621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5624 gnu*)
5625 # Under GNU Hurd, this test is not required because there is
5626 # no limit to the length of command line arguments.
5627 # Libtool will interpret -1 as no limit whatsoever
5628 lt_cv_sys_max_cmd_len=-1;
5631 cygwin* | mingw* | cegcc*)
5632 # On Win9x/ME, this test blows up -- it succeeds, but takes
5633 # about 5 minutes as the teststring grows exponentially.
5634 # Worse, since 9x/ME are not pre-emptively multitasking,
5635 # you end up with a "frozen" computer, even though with patience
5636 # the test eventually succeeds (with a max line length of 256k).
5637 # Instead, let's just punt: use the minimum linelength reported by
5638 # all of the supported platforms: 8192 (on NT/2K/XP).
5639 lt_cv_sys_max_cmd_len=8192;
5642 amigaos*)
5643 # On AmigaOS with pdksh, this test takes hours, literally.
5644 # So we just punt and use a minimum line length of 8192.
5645 lt_cv_sys_max_cmd_len=8192;
5648 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5649 # This has been around since 386BSD, at least. Likely further.
5650 if test -x /sbin/sysctl; then
5651 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5652 elif test -x /usr/sbin/sysctl; then
5653 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5654 else
5655 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5657 # And add a safety zone
5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5662 interix*)
5663 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5664 lt_cv_sys_max_cmd_len=196608
5667 osf*)
5668 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5669 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5670 # nice to cause kernel panics so lets avoid the loop below.
5671 # First set a reasonable default.
5672 lt_cv_sys_max_cmd_len=16384
5674 if test -x /sbin/sysconfig; then
5675 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5676 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5677 esac
5680 sco3.2v5*)
5681 lt_cv_sys_max_cmd_len=102400
5683 sysv5* | sco5v6* | sysv4.2uw2*)
5684 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5685 if test -n "$kargmax"; then
5686 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5687 else
5688 lt_cv_sys_max_cmd_len=32768
5692 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5693 if test -n "$lt_cv_sys_max_cmd_len"; then
5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5696 else
5697 # Make teststring a little bigger before we do anything with it.
5698 # a 1K string should be a reasonable start.
5699 for i in 1 2 3 4 5 6 7 8 ; do
5700 teststring=$teststring$teststring
5701 done
5702 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5703 # If test is not a shell built-in, we'll probably end up computing a
5704 # maximum length that is only half of the actual maximum length, but
5705 # we can't tell.
5706 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5707 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5708 test $i != 17 # 1/2 MB should be enough
5710 i=`expr $i + 1`
5711 teststring=$teststring$teststring
5712 done
5713 # Only check the string length outside the loop.
5714 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5715 teststring=
5716 # Add a significant safety factor because C++ compilers can tack on
5717 # massive amounts of additional arguments before passing them to the
5718 # linker. It appears as though 1/2 is a usable value.
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5722 esac
5726 if test -n $lt_cv_sys_max_cmd_len ; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5728 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5731 $as_echo "none" >&6; }
5733 max_cmd_len=$lt_cv_sys_max_cmd_len
5740 : ${CP="cp -f"}
5741 : ${MV="mv -f"}
5742 : ${RM="rm -f"}
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5745 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5746 # Try some XSI features
5747 xsi_shell=no
5748 ( _lt_dummy="a/b/c"
5749 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5750 = c,a/b,, \
5751 && eval 'test $(( 1 + 1 )) -eq 2 \
5752 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5753 && xsi_shell=yes
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5755 $as_echo "$xsi_shell" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5759 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5760 lt_shell_append=no
5761 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5762 >/dev/null 2>&1 \
5763 && lt_shell_append=yes
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5765 $as_echo "$lt_shell_append" >&6; }
5768 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5769 lt_unset=unset
5770 else
5771 lt_unset=false
5778 # test EBCDIC or ASCII
5779 case `echo X|tr X '\101'` in
5780 A) # ASCII based system
5781 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5782 lt_SP2NL='tr \040 \012'
5783 lt_NL2SP='tr \015\012 \040\040'
5785 *) # EBCDIC based system
5786 lt_SP2NL='tr \100 \n'
5787 lt_NL2SP='tr \r\n \100\100'
5789 esac
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5800 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5801 if ${lt_cv_ld_reload_flag+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 lt_cv_ld_reload_flag='-r'
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5807 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5808 reload_flag=$lt_cv_ld_reload_flag
5809 case $reload_flag in
5810 "" | " "*) ;;
5811 *) reload_flag=" $reload_flag" ;;
5812 esac
5813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5814 case $host_os in
5815 darwin*)
5816 if test "$GCC" = yes; then
5817 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5818 else
5819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5822 esac
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_OBJDUMP+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$OBJDUMP"; then
5841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 OBJDUMP=$ac_cv_prog_OBJDUMP
5861 if test -n "$OBJDUMP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5863 $as_echo "$OBJDUMP" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5871 if test -z "$ac_cv_prog_OBJDUMP"; then
5872 ac_ct_OBJDUMP=$OBJDUMP
5873 # Extract the first word of "objdump", so it can be a program name with args.
5874 set dummy objdump; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$ac_ct_OBJDUMP"; then
5881 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5894 done
5895 done
5896 IFS=$as_save_IFS
5900 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5901 if test -n "$ac_ct_OBJDUMP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5903 $as_echo "$ac_ct_OBJDUMP" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5909 if test "x$ac_ct_OBJDUMP" = x; then
5910 OBJDUMP="false"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918 OBJDUMP=$ac_ct_OBJDUMP
5920 else
5921 OBJDUMP="$ac_cv_prog_OBJDUMP"
5924 test -z "$OBJDUMP" && OBJDUMP=objdump
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5935 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5936 if ${lt_cv_deplibs_check_method+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 lt_cv_file_magic_cmd='$MAGIC_CMD'
5940 lt_cv_file_magic_test_file=
5941 lt_cv_deplibs_check_method='unknown'
5942 # Need to set the preceding variable on all platforms that support
5943 # interlibrary dependencies.
5944 # 'none' -- dependencies not supported.
5945 # `unknown' -- same as none, but documents that we really don't know.
5946 # 'pass_all' -- all dependencies passed with no checks.
5947 # 'test_compile' -- check by making test program.
5948 # 'file_magic [[regex]]' -- check by looking for files in library path
5949 # which responds to the $file_magic_cmd with a given extended regex.
5950 # If you have `file' or equivalent on your system and you're not sure
5951 # whether `pass_all' will *always* work, you probably want this one.
5953 case $host_os in
5954 aix[4-9]*)
5955 lt_cv_deplibs_check_method=pass_all
5958 beos*)
5959 lt_cv_deplibs_check_method=pass_all
5962 bsdi[45]*)
5963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5964 lt_cv_file_magic_cmd='/usr/bin/file -L'
5965 lt_cv_file_magic_test_file=/shlib/libc.so
5968 cygwin*)
5969 # func_win32_libid is a shell function defined in ltmain.sh
5970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971 lt_cv_file_magic_cmd='func_win32_libid'
5974 mingw* | pw32*)
5975 # Base MSYS/MinGW do not provide the 'file' command needed by
5976 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5977 # unless we find 'file', for example because we are cross-compiling.
5978 if ( file / ) >/dev/null 2>&1; then
5979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5980 lt_cv_file_magic_cmd='func_win32_libid'
5981 else
5982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5983 lt_cv_file_magic_cmd='$OBJDUMP -f'
5987 cegcc)
5988 # use the weaker test based on 'objdump'. See mingw*.
5989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5990 lt_cv_file_magic_cmd='$OBJDUMP -f'
5993 darwin* | rhapsody*)
5994 lt_cv_deplibs_check_method=pass_all
5997 freebsd* | dragonfly*)
5998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5999 case $host_cpu in
6000 i*86 )
6001 # Not sure whether the presence of OpenBSD here was a mistake.
6002 # Let's accept both of them until this is cleared up.
6003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6004 lt_cv_file_magic_cmd=/usr/bin/file
6005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6007 esac
6008 else
6009 lt_cv_deplibs_check_method=pass_all
6013 gnu*)
6014 lt_cv_deplibs_check_method=pass_all
6017 hpux10.20* | hpux11*)
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 case $host_cpu in
6020 ia64*)
6021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6022 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6024 hppa*64*)
6025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6026 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6030 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6032 esac
6035 interix[3-9]*)
6036 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6040 irix5* | irix6* | nonstopux*)
6041 case $LD in
6042 *-32|*"-32 ") libmagic=32-bit;;
6043 *-n32|*"-n32 ") libmagic=N32;;
6044 *-64|*"-64 ") libmagic=64-bit;;
6045 *) libmagic=never-match;;
6046 esac
6047 lt_cv_deplibs_check_method=pass_all
6050 # This must be Linux ELF.
6051 linux* | k*bsd*-gnu)
6052 lt_cv_deplibs_check_method=pass_all
6055 netbsd*)
6056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6058 else
6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6063 newos6*)
6064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6069 *nto* | *qnx*)
6070 lt_cv_deplibs_check_method=pass_all
6073 openbsd*)
6074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6076 else
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6081 osf3* | osf4* | osf5*)
6082 lt_cv_deplibs_check_method=pass_all
6085 rdos*)
6086 lt_cv_deplibs_check_method=pass_all
6089 solaris*)
6090 lt_cv_deplibs_check_method=pass_all
6093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6094 lt_cv_deplibs_check_method=pass_all
6097 sysv4 | sysv4.3*)
6098 case $host_vendor in
6099 motorola)
6100 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]'
6101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6103 ncr)
6104 lt_cv_deplibs_check_method=pass_all
6106 sequent)
6107 lt_cv_file_magic_cmd='/bin/file'
6108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6110 sni)
6111 lt_cv_file_magic_cmd='/bin/file'
6112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6113 lt_cv_file_magic_test_file=/lib/libc.so
6115 siemens)
6116 lt_cv_deplibs_check_method=pass_all
6119 lt_cv_deplibs_check_method=pass_all
6121 esac
6124 tpf*)
6125 lt_cv_deplibs_check_method=pass_all
6127 esac
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6131 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6132 file_magic_cmd=$lt_cv_file_magic_cmd
6133 deplibs_check_method=$lt_cv_deplibs_check_method
6134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6147 if test -n "$ac_tool_prefix"; then
6148 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6149 set dummy ${ac_tool_prefix}ar; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_AR+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$AR"; then
6156 ac_cv_prog_AR="$AR" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_AR="${ac_tool_prefix}ar"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6169 done
6170 done
6171 IFS=$as_save_IFS
6175 AR=$ac_cv_prog_AR
6176 if test -n "$AR"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6178 $as_echo "$AR" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6186 if test -z "$ac_cv_prog_AR"; then
6187 ac_ct_AR=$AR
6188 # Extract the first word of "ar", so it can be a program name with args.
6189 set dummy ar; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$ac_ct_AR"; then
6196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_ac_ct_AR="ar"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6211 IFS=$as_save_IFS
6215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6216 if test -n "$ac_ct_AR"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6218 $as_echo "$ac_ct_AR" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6224 if test "x$ac_ct_AR" = x; then
6225 AR="false"
6226 else
6227 case $cross_compiling:$ac_tool_warned in
6228 yes:)
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231 ac_tool_warned=yes ;;
6232 esac
6233 AR=$ac_ct_AR
6235 else
6236 AR="$ac_cv_prog_AR"
6239 test -z "$AR" && AR=ar
6240 test -z "$AR_FLAGS" && AR_FLAGS=cru
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}strip; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_STRIP+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$STRIP"; then
6261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 STRIP=$ac_cv_prog_STRIP
6281 if test -n "$STRIP"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6283 $as_echo "$STRIP" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6291 if test -z "$ac_cv_prog_STRIP"; then
6292 ac_ct_STRIP=$STRIP
6293 # Extract the first word of "strip", so it can be a program name with args.
6294 set dummy strip; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$ac_ct_STRIP"; then
6301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_ac_ct_STRIP="strip"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6321 if test -n "$ac_ct_STRIP"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6323 $as_echo "$ac_ct_STRIP" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6329 if test "x$ac_ct_STRIP" = x; then
6330 STRIP=":"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338 STRIP=$ac_ct_STRIP
6340 else
6341 STRIP="$ac_cv_prog_STRIP"
6344 test -z "$STRIP" && STRIP=:
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_RANLIB+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$RANLIB"; then
6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 RANLIB=$ac_cv_prog_RANLIB
6380 if test -n "$RANLIB"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6382 $as_echo "$RANLIB" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391 ac_ct_RANLIB=$RANLIB
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$ac_ct_RANLIB"; then
6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_ac_ct_RANLIB="ranlib"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6422 $as_echo "$ac_ct_RANLIB" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6428 if test "x$ac_ct_RANLIB" = x; then
6429 RANLIB=":"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 RANLIB=$ac_ct_RANLIB
6439 else
6440 RANLIB="$ac_cv_prog_RANLIB"
6443 test -z "$RANLIB" && RANLIB=:
6450 # Determine commands to create old-style static archives.
6451 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6452 old_postinstall_cmds='chmod 644 $oldlib'
6453 old_postuninstall_cmds=
6455 if test -n "$RANLIB"; then
6456 case $host_os in
6457 openbsd*)
6458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6463 esac
6464 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6500 # If no C compiler was specified, use CC.
6501 LTCC=${LTCC-"$CC"}
6503 # If no C compiler flags were specified, use CFLAGS.
6504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6506 # Allow CC to be a program name with arguments.
6507 compiler=$CC
6510 # Check for command to grab the raw symbol name followed by C symbol from nm.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6512 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6513 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6517 # These are sane defaults that work on at least a few old systems.
6518 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6520 # Character class describing NM global symbol codes.
6521 symcode='[BCDEGRST]'
6523 # Regexp to match symbols that can be accessed directly from C.
6524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6526 # Define system-specific variables.
6527 case $host_os in
6528 aix*)
6529 symcode='[BCDT]'
6531 cygwin* | mingw* | pw32* | cegcc*)
6532 symcode='[ABCDGISTW]'
6534 hpux*)
6535 if test "$host_cpu" = ia64; then
6536 symcode='[ABCDEGRST]'
6539 irix* | nonstopux*)
6540 symcode='[BCDEGRST]'
6542 osf*)
6543 symcode='[BCDEGQRST]'
6545 solaris*)
6546 symcode='[BDRT]'
6548 sco3.2v5*)
6549 symcode='[DT]'
6551 sysv4.2uw2*)
6552 symcode='[DT]'
6554 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6555 symcode='[ABDT]'
6557 sysv4)
6558 symcode='[DFNSTU]'
6560 esac
6562 # If we're using GNU nm, then use its standard symbol codes.
6563 case `$NM -V 2>&1` in
6564 *GNU* | *'with BFD'*)
6565 symcode='[ABCDGIRSTW]' ;;
6566 esac
6568 # Transform an extracted symbol line into a proper C declaration.
6569 # Some systems (esp. on ia64) link data and code symbols differently,
6570 # so use this general approach.
6571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6573 # Transform an extracted symbol line into symbol name and symbol address
6574 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6575 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'"
6577 # Handle CRLF in mingw tool chain
6578 opt_cr=
6579 case $build_os in
6580 mingw*)
6581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6583 esac
6585 # Try without a prefix underscore, then with it.
6586 for ac_symprfx in "" "_"; do
6588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6589 symxfrm="\\1 $ac_symprfx\\2 \\2"
6591 # Write the raw and C identifiers.
6592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6593 # Fake it for dumpbin and say T for any non-static function
6594 # and D for any global variable.
6595 # Also find C++ and __fastcall symbols from MSVC++,
6596 # which start with @ or ?.
6597 lt_cv_sys_global_symbol_pipe="$AWK '"\
6598 " {last_section=section; section=\$ 3};"\
6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6600 " \$ 0!~/External *\|/{next};"\
6601 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6602 " {if(hide[section]) next};"\
6603 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6604 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6605 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6606 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6607 " ' prfx=^$ac_symprfx"
6608 else
6609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612 # Check to see that the pipe works correctly.
6613 pipe_works=no
6615 rm -f conftest*
6616 cat > conftest.$ac_ext <<_LT_EOF
6617 #ifdef __cplusplus
6618 extern "C" {
6619 #endif
6620 char nm_test_var;
6621 void nm_test_func(void);
6622 void nm_test_func(void){}
6623 #ifdef __cplusplus
6625 #endif
6626 int main(){nm_test_var='a';nm_test_func();return(0);}
6627 _LT_EOF
6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630 (eval $ac_compile) 2>&5
6631 ac_status=$?
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }; then
6634 # Now try to grab the symbols.
6635 nlist=conftest.nm
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6637 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6638 ac_status=$?
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; } && test -s "$nlist"; then
6641 # Try sorting and uniquifying the output.
6642 if sort "$nlist" | uniq > "$nlist"T; then
6643 mv -f "$nlist"T "$nlist"
6644 else
6645 rm -f "$nlist"T
6648 # Make sure that we snagged all the symbols we need.
6649 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6650 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6651 cat <<_LT_EOF > conftest.$ac_ext
6652 #ifdef __cplusplus
6653 extern "C" {
6654 #endif
6656 _LT_EOF
6657 # Now generate the symbol file.
6658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6660 cat <<_LT_EOF >> conftest.$ac_ext
6662 /* The mapping between symbol names and symbols. */
6663 const struct {
6664 const char *name;
6665 void *address;
6667 lt__PROGRAM__LTX_preloaded_symbols[] =
6669 { "@PROGRAM@", (void *) 0 },
6670 _LT_EOF
6671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6672 cat <<\_LT_EOF >> conftest.$ac_ext
6673 {0, (void *) 0}
6676 /* This works around a problem in FreeBSD linker */
6677 #ifdef FREEBSD_WORKAROUND
6678 static const void *lt_preloaded_setup() {
6679 return lt__PROGRAM__LTX_preloaded_symbols;
6681 #endif
6683 #ifdef __cplusplus
6685 #endif
6686 _LT_EOF
6687 # Now try linking the two files.
6688 mv conftest.$ac_objext conftstm.$ac_objext
6689 lt_save_LIBS="$LIBS"
6690 lt_save_CFLAGS="$CFLAGS"
6691 LIBS="conftstm.$ac_objext"
6692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6694 (eval $ac_link) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6698 pipe_works=yes
6700 LIBS="$lt_save_LIBS"
6701 CFLAGS="$lt_save_CFLAGS"
6702 else
6703 echo "cannot find nm_test_func in $nlist" >&5
6705 else
6706 echo "cannot find nm_test_var in $nlist" >&5
6708 else
6709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6711 else
6712 echo "$progname: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 rm -rf conftest* conftst*
6717 # Do not use the global_symbol_pipe unless it works.
6718 if test "$pipe_works" = yes; then
6719 break
6720 else
6721 lt_cv_sys_global_symbol_pipe=
6723 done
6727 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6728 lt_cv_sys_global_symbol_to_cdecl=
6730 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6732 $as_echo "failed" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6735 $as_echo "ok" >&6; }
6760 # Check whether --enable-libtool-lock was given.
6761 if test "${enable_libtool_lock+set}" = set; then :
6762 enableval=$enable_libtool_lock;
6765 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6767 # Some flags need to be propagated to the compiler or linker for good
6768 # libtool support.
6769 case $host in
6770 ia64-*-hpux*)
6771 # Find out which ABI we are using.
6772 echo 'int i;' > conftest.$ac_ext
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; }; then
6778 case `/usr/bin/file conftest.$ac_objext` in
6779 *ELF-32*)
6780 HPUX_IA64_MODE="32"
6782 *ELF-64*)
6783 HPUX_IA64_MODE="64"
6785 esac
6787 rm -rf conftest*
6789 *-*-irix6*)
6790 # Find out which ABI we are using.
6791 echo '#line 6791 "configure"' > conftest.$ac_ext
6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793 (eval $ac_compile) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }; then
6797 if test "$lt_cv_prog_gnu_ld" = yes; then
6798 case `/usr/bin/file conftest.$ac_objext` in
6799 *32-bit*)
6800 LD="${LD-ld} -melf32bsmip"
6802 *N32*)
6803 LD="${LD-ld} -melf32bmipn32"
6805 *64-bit*)
6806 LD="${LD-ld} -melf64bmip"
6808 esac
6809 else
6810 case `/usr/bin/file conftest.$ac_objext` in
6811 *32-bit*)
6812 LD="${LD-ld} -32"
6814 *N32*)
6815 LD="${LD-ld} -n32"
6817 *64-bit*)
6818 LD="${LD-ld} -64"
6820 esac
6823 rm -rf conftest*
6826 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6827 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.o` in
6836 *32-bit*)
6837 case $host in
6838 x86_64-*kfreebsd*-gnu)
6839 LD="${LD-ld} -m elf_i386_fbsd"
6841 x86_64-*linux*)
6842 LD="${LD-ld} -m elf_i386"
6844 ppc64-*linux*|powerpc64-*linux*)
6845 LD="${LD-ld} -m elf32ppclinux"
6847 s390x-*linux*)
6848 LD="${LD-ld} -m elf_s390"
6850 sparc64-*linux*)
6851 LD="${LD-ld} -m elf32_sparc"
6853 esac
6855 *64-bit*)
6856 case $host in
6857 x86_64-*kfreebsd*-gnu)
6858 LD="${LD-ld} -m elf_x86_64_fbsd"
6860 x86_64-*linux*)
6861 LD="${LD-ld} -m elf_x86_64"
6863 ppc*-*linux*|powerpc*-*linux*)
6864 LD="${LD-ld} -m elf64ppc"
6866 s390*-*linux*|s390*-*tpf*)
6867 LD="${LD-ld} -m elf64_s390"
6869 sparc*-*linux*)
6870 LD="${LD-ld} -m elf64_sparc"
6872 esac
6874 esac
6876 rm -rf conftest*
6879 *-*-sco3.2v5*)
6880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6881 SAVE_CFLAGS="$CFLAGS"
6882 CFLAGS="$CFLAGS -belf"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6885 if ${lt_cv_cc_needs_belf+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6898 main ()
6902 return 0;
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"; then :
6906 lt_cv_cc_needs_belf=yes
6907 else
6908 lt_cv_cc_needs_belf=no
6910 rm -f core conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 ac_ext=c
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6920 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6921 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6923 CFLAGS="$SAVE_CFLAGS"
6926 sparc*-*solaris*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.o` in
6935 *64-bit*)
6936 case $lt_cv_prog_gnu_ld in
6937 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6940 LD="${LD-ld} -64"
6943 esac
6945 esac
6947 rm -rf conftest*
6949 esac
6951 need_locks="$enable_libtool_lock"
6954 case $host_os in
6955 rhapsody* | darwin*)
6956 if test -n "$ac_tool_prefix"; then
6957 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6958 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$DSYMUTIL"; then
6965 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6978 done
6979 done
6980 IFS=$as_save_IFS
6984 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6985 if test -n "$DSYMUTIL"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6987 $as_echo "$DSYMUTIL" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6995 if test -z "$ac_cv_prog_DSYMUTIL"; then
6996 ac_ct_DSYMUTIL=$DSYMUTIL
6997 # Extract the first word of "dsymutil", so it can be a program name with args.
6998 set dummy dsymutil; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 if test -n "$ac_ct_DSYMUTIL"; then
7005 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7018 done
7019 done
7020 IFS=$as_save_IFS
7024 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7025 if test -n "$ac_ct_DSYMUTIL"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7027 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7033 if test "x$ac_ct_DSYMUTIL" = x; then
7034 DSYMUTIL=":"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042 DSYMUTIL=$ac_ct_DSYMUTIL
7044 else
7045 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_NMEDIT+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$NMEDIT"; then
7057 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7070 done
7071 done
7072 IFS=$as_save_IFS
7076 NMEDIT=$ac_cv_prog_NMEDIT
7077 if test -n "$NMEDIT"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7079 $as_echo "$NMEDIT" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7087 if test -z "$ac_cv_prog_NMEDIT"; then
7088 ac_ct_NMEDIT=$NMEDIT
7089 # Extract the first word of "nmedit", so it can be a program name with args.
7090 set dummy nmedit; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$ac_ct_NMEDIT"; then
7097 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7116 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7117 if test -n "$ac_ct_NMEDIT"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7119 $as_echo "$ac_ct_NMEDIT" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7125 if test "x$ac_ct_NMEDIT" = x; then
7126 NMEDIT=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 NMEDIT=$ac_ct_NMEDIT
7136 else
7137 NMEDIT="$ac_cv_prog_NMEDIT"
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_LIPO+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$LIPO"; then
7149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7162 done
7163 done
7164 IFS=$as_save_IFS
7168 LIPO=$ac_cv_prog_LIPO
7169 if test -n "$LIPO"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7171 $as_echo "$LIPO" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7179 if test -z "$ac_cv_prog_LIPO"; then
7180 ac_ct_LIPO=$LIPO
7181 # Extract the first word of "lipo", so it can be a program name with args.
7182 set dummy lipo; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$ac_ct_LIPO"; then
7189 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_LIPO="lipo"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7202 done
7203 done
7204 IFS=$as_save_IFS
7208 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7209 if test -n "$ac_ct_LIPO"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7211 $as_echo "$ac_ct_LIPO" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7217 if test "x$ac_ct_LIPO" = x; then
7218 LIPO=":"
7219 else
7220 case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226 LIPO=$ac_ct_LIPO
7228 else
7229 LIPO="$ac_cv_prog_LIPO"
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}otool; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_OTOOL+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$OTOOL"; then
7241 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7254 done
7255 done
7256 IFS=$as_save_IFS
7260 OTOOL=$ac_cv_prog_OTOOL
7261 if test -n "$OTOOL"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7263 $as_echo "$OTOOL" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_OTOOL"; then
7272 ac_ct_OTOOL=$OTOOL
7273 # Extract the first word of "otool", so it can be a program name with args.
7274 set dummy otool; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_OTOOL"; then
7281 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_ac_ct_OTOOL="otool"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7294 done
7295 done
7296 IFS=$as_save_IFS
7300 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7301 if test -n "$ac_ct_OTOOL"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7303 $as_echo "$ac_ct_OTOOL" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_OTOOL" = x; then
7310 OTOOL=":"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 OTOOL=$ac_ct_OTOOL
7320 else
7321 OTOOL="$ac_cv_prog_OTOOL"
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_OTOOL64+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$OTOOL64"; then
7333 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7352 OTOOL64=$ac_cv_prog_OTOOL64
7353 if test -n "$OTOOL64"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7355 $as_echo "$OTOOL64" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 if test -z "$ac_cv_prog_OTOOL64"; then
7364 ac_ct_OTOOL64=$OTOOL64
7365 # Extract the first word of "otool64", so it can be a program name with args.
7366 set dummy otool64; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_OTOOL64"; then
7373 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_OTOOL64="otool64"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7388 IFS=$as_save_IFS
7392 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7393 if test -n "$ac_ct_OTOOL64"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7395 $as_echo "$ac_ct_OTOOL64" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7401 if test "x$ac_ct_OTOOL64" = x; then
7402 OTOOL64=":"
7403 else
7404 case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 OTOOL64=$ac_ct_OTOOL64
7412 else
7413 OTOOL64="$ac_cv_prog_OTOOL64"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7443 $as_echo_n "checking for -single_module linker flag... " >&6; }
7444 if ${lt_cv_apple_cc_single_mod+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 lt_cv_apple_cc_single_mod=no
7448 if test -z "${LT_MULTI_MODULE}"; then
7449 # By default we will add the -single_module flag. You can override
7450 # by either setting the environment variable LT_MULTI_MODULE
7451 # non-empty at configure time, or by adding -multi_module to the
7452 # link flags.
7453 rm -rf libconftest.dylib*
7454 echo "int foo(void){return 1;}" > conftest.c
7455 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7456 -dynamiclib -Wl,-single_module conftest.c" >&5
7457 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7458 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7459 _lt_result=$?
7460 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7461 lt_cv_apple_cc_single_mod=yes
7462 else
7463 cat conftest.err >&5
7465 rm -rf libconftest.dylib*
7466 rm -f conftest.*
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7470 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7472 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7473 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 lt_cv_ld_exported_symbols_list=no
7477 save_LDFLAGS=$LDFLAGS
7478 echo "_main" > conftest.sym
7479 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7484 main ()
7488 return 0;
7490 _ACEOF
7491 if ac_fn_c_try_link "$LINENO"; then :
7492 lt_cv_ld_exported_symbols_list=yes
7493 else
7494 lt_cv_ld_exported_symbols_list=no
7496 rm -f core conftest.err conftest.$ac_objext \
7497 conftest$ac_exeext conftest.$ac_ext
7498 LDFLAGS="$save_LDFLAGS"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7502 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7503 case $host_os in
7504 rhapsody* | darwin1.[012])
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7506 darwin1.*)
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508 darwin*) # darwin 5.x on
7509 # if running on 10.5 or later, the deployment target defaults
7510 # to the OS version, if on x86, and 10.4, the deployment
7511 # target defaults to 10.4. Don't you love it?
7512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515 10.[012]*)
7516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7517 10.*)
7518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7519 esac
7521 esac
7522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7523 _lt_dar_single_mod='$single_module'
7525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7527 else
7528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7530 if test "$DSYMUTIL" != ":"; then
7531 _lt_dsymutil='~$DSYMUTIL $lib || :'
7532 else
7533 _lt_dsymutil=
7536 esac
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7545 # On Suns, sometimes $CPP names a directory.
7546 if test -n "$CPP" && test -d "$CPP"; then
7547 CPP=
7549 if test -z "$CPP"; then
7550 if ${ac_cv_prog_CPP+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 # Double quotes because CPP needs to be expanded
7554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7556 ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7576 else
7577 # Broken: fails on valid input.
7578 continue
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602 break
7605 done
7606 ac_cv_prog_CPP=$CPP
7609 CPP=$ac_cv_prog_CPP
7610 else
7611 ac_cv_prog_CPP=$CPP
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7614 $as_echo "$CPP" >&6; }
7615 ac_preproc_ok=false
7616 for ac_c_preproc_warn_flag in '' yes
7618 # Use a header file that comes with gcc, so configuring glibc
7619 # with a fresh cross-compiler works.
7620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621 # <limits.h> exists even on freestanding compilers.
7622 # On the NeXT, cc -E runs the code through the compiler's parser,
7623 # not just through cpp. "Syntax error" is here to catch this case.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 #ifdef __STDC__
7627 # include <limits.h>
7628 #else
7629 # include <assert.h>
7630 #endif
7631 Syntax error
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7635 else
7636 # Broken: fails on valid input.
7637 continue
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7641 # OK, works on sane cases. Now check whether nonexistent headers
7642 # can be detected and how.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ac_nonexistent.h>
7646 _ACEOF
7647 if ac_fn_c_try_cpp "$LINENO"; then :
7648 # Broken: success on invalid input.
7649 continue
7650 else
7651 # Passes both tests.
7652 ac_preproc_ok=:
7653 break
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7657 done
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.i conftest.err conftest.$ac_ext
7660 if $ac_preproc_ok; then :
7662 else
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7666 See \`config.log' for more details" "$LINENO" 5; }
7669 ac_ext=c
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677 $as_echo_n "checking for ANSI C header files... " >&6; }
7678 if ${ac_cv_header_stdc+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <stdlib.h>
7684 #include <stdarg.h>
7685 #include <string.h>
7686 #include <float.h>
7689 main ()
7693 return 0;
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 ac_cv_header_stdc=yes
7698 else
7699 ac_cv_header_stdc=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ac_cv_header_stdc = yes; then
7704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <string.h>
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "memchr" >/dev/null 2>&1; then :
7713 else
7714 ac_cv_header_stdc=no
7716 rm -f conftest*
7720 if test $ac_cv_header_stdc = yes; then
7721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then :
7730 else
7731 ac_cv_header_stdc=no
7733 rm -f conftest*
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then :
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <ctype.h>
7745 #include <stdlib.h>
7746 #if ((' ' & 0x0FF) == 0x020)
7747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7749 #else
7750 # define ISLOWER(c) \
7751 (('a' <= (c) && (c) <= 'i') \
7752 || ('j' <= (c) && (c) <= 'r') \
7753 || ('s' <= (c) && (c) <= 'z'))
7754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755 #endif
7757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7759 main ()
7761 int i;
7762 for (i = 0; i < 256; i++)
7763 if (XOR (islower (i), ISLOWER (i))
7764 || toupper (i) != TOUPPER (i))
7765 return 2;
7766 return 0;
7768 _ACEOF
7769 if ac_fn_c_try_run "$LINENO"; then :
7771 else
7772 ac_cv_header_stdc=no
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775 conftest.$ac_objext conftest.beam conftest.$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781 $as_echo "$ac_cv_header_stdc" >&6; }
7782 if test $ac_cv_header_stdc = yes; then
7784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7790 inttypes.h stdint.h unistd.h
7791 do :
7792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7796 cat >>confdefs.h <<_ACEOF
7797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 _ACEOF
7802 done
7805 for ac_header in dlfcn.h
7806 do :
7807 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_DLFCN_H 1
7812 _ACEOF
7816 done
7820 # Set options
7824 enable_dlopen=no
7827 enable_win32_dll=no
7830 # Check whether --enable-shared was given.
7831 if test "${enable_shared+set}" = set; then :
7832 enableval=$enable_shared; p=${PACKAGE-default}
7833 case $enableval in
7834 yes) enable_shared=yes ;;
7835 no) enable_shared=no ;;
7837 enable_shared=no
7838 # Look at the argument we got. We use all the common list separators.
7839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7840 for pkg in $enableval; do
7841 IFS="$lt_save_ifs"
7842 if test "X$pkg" = "X$p"; then
7843 enable_shared=yes
7845 done
7846 IFS="$lt_save_ifs"
7848 esac
7849 else
7850 enable_shared=yes
7861 # Check whether --enable-static was given.
7862 if test "${enable_static+set}" = set; then :
7863 enableval=$enable_static; p=${PACKAGE-default}
7864 case $enableval in
7865 yes) enable_static=yes ;;
7866 no) enable_static=no ;;
7868 enable_static=no
7869 # Look at the argument we got. We use all the common list separators.
7870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871 for pkg in $enableval; do
7872 IFS="$lt_save_ifs"
7873 if test "X$pkg" = "X$p"; then
7874 enable_static=yes
7876 done
7877 IFS="$lt_save_ifs"
7879 esac
7880 else
7881 enable_static=yes
7893 # Check whether --with-pic was given.
7894 if test "${with_pic+set}" = set; then :
7895 withval=$with_pic; pic_mode="$withval"
7896 else
7897 pic_mode=default
7901 test -z "$pic_mode" && pic_mode=default
7909 # Check whether --enable-fast-install was given.
7910 if test "${enable_fast_install+set}" = set; then :
7911 enableval=$enable_fast_install; p=${PACKAGE-default}
7912 case $enableval in
7913 yes) enable_fast_install=yes ;;
7914 no) enable_fast_install=no ;;
7916 enable_fast_install=no
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7920 IFS="$lt_save_ifs"
7921 if test "X$pkg" = "X$p"; then
7922 enable_fast_install=yes
7924 done
7925 IFS="$lt_save_ifs"
7927 esac
7928 else
7929 enable_fast_install=yes
7942 # This can be used to rebuild libtool when needed
7943 LIBTOOL_DEPS="$ltmain"
7945 # Always use our own libtool.
7946 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7972 test -z "$LN_S" && LN_S="ln -s"
7987 if test -n "${ZSH_VERSION+set}" ; then
7988 setopt NO_GLOB_SUBST
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7992 $as_echo_n "checking for objdir... " >&6; }
7993 if ${lt_cv_objdir+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 rm -f .libs 2>/dev/null
7997 mkdir .libs 2>/dev/null
7998 if test -d .libs; then
7999 lt_cv_objdir=.libs
8000 else
8001 # MS-DOS does not allow filenames that begin with a dot.
8002 lt_cv_objdir=_libs
8004 rmdir .libs 2>/dev/null
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8007 $as_echo "$lt_cv_objdir" >&6; }
8008 objdir=$lt_cv_objdir
8014 cat >>confdefs.h <<_ACEOF
8015 #define LT_OBJDIR "$lt_cv_objdir/"
8016 _ACEOF
8034 case $host_os in
8035 aix3*)
8036 # AIX sometimes has problems with the GCC collect2 program. For some
8037 # reason, if we set the COLLECT_NAMES environment variable, the problems
8038 # vanish in a puff of smoke.
8039 if test "X${COLLECT_NAMES+set}" != Xset; then
8040 COLLECT_NAMES=
8041 export COLLECT_NAMES
8044 esac
8046 # Sed substitution that helps us do robust quoting. It backslashifies
8047 # metacharacters that are still active within double-quoted strings.
8048 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8050 # Same as above, but do not quote variable references.
8051 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8053 # Sed substitution to delay expansion of an escaped shell variable in a
8054 # double_quote_subst'ed string.
8055 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8057 # Sed substitution to delay expansion of an escaped single quote.
8058 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8060 # Sed substitution to avoid accidental globbing in evaled expressions
8061 no_glob_subst='s/\*/\\\*/g'
8063 # Global variables:
8064 ofile=libtool
8065 can_build_shared=yes
8067 # All known linkers require a `.a' archive for static linking (except MSVC,
8068 # which needs '.lib').
8069 libext=a
8071 with_gnu_ld="$lt_cv_prog_gnu_ld"
8073 old_CC="$CC"
8074 old_CFLAGS="$CFLAGS"
8076 # Set sane defaults for various variables
8077 test -z "$CC" && CC=cc
8078 test -z "$LTCC" && LTCC=$CC
8079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8080 test -z "$LD" && LD=ld
8081 test -z "$ac_objext" && ac_objext=o
8083 for cc_temp in $compiler""; do
8084 case $cc_temp in
8085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8087 \-*) ;;
8088 *) break;;
8089 esac
8090 done
8091 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094 # Only perform the check for file, if the check method requires it
8095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8096 case $deplibs_check_method in
8097 file_magic*)
8098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8100 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8101 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $MAGIC_CMD in
8105 [\\/*] | ?:[\\/]*)
8106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8109 lt_save_MAGIC_CMD="$MAGIC_CMD"
8110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8112 for ac_dir in $ac_dummy; do
8113 IFS="$lt_save_ifs"
8114 test -z "$ac_dir" && ac_dir=.
8115 if test -f $ac_dir/${ac_tool_prefix}file; then
8116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8117 if test -n "$file_magic_test_file"; then
8118 case $deplibs_check_method in
8119 "file_magic "*)
8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8123 $EGREP "$file_magic_regex" > /dev/null; then
8125 else
8126 cat <<_LT_EOF 1>&2
8128 *** Warning: the command libtool uses to detect shared libraries,
8129 *** $file_magic_cmd, produces output that libtool cannot recognize.
8130 *** The result is that libtool may fail to recognize shared libraries
8131 *** as such. This will affect the creation of libtool libraries that
8132 *** depend on shared libraries, but programs linked with such libtool
8133 *** libraries will work regardless of this problem. Nevertheless, you
8134 *** may want to report the problem to your system manager and/or to
8135 *** bug-libtool@gnu.org
8137 _LT_EOF
8138 fi ;;
8139 esac
8141 break
8143 done
8144 IFS="$lt_save_ifs"
8145 MAGIC_CMD="$lt_save_MAGIC_CMD"
8147 esac
8150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151 if test -n "$MAGIC_CMD"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8153 $as_echo "$MAGIC_CMD" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164 if test -n "$ac_tool_prefix"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8166 $as_echo_n "checking for file... " >&6; }
8167 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $MAGIC_CMD in
8171 [\\/*] | ?:[\\/]*)
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8179 IFS="$lt_save_ifs"
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8185 "file_magic "*)
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8191 else
8192 cat <<_LT_EOF 1>&2
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8203 _LT_EOF
8204 fi ;;
8205 esac
8207 break
8209 done
8210 IFS="$lt_save_ifs"
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8213 esac
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8226 else
8227 MAGIC_CMD=:
8233 esac
8235 # Use C for the default configuration in the libtool script
8237 lt_save_CC="$CC"
8238 ac_ext=c
8239 ac_cpp='$CPP $CPPFLAGS'
8240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245 # Source file extension for C test sources.
8246 ac_ext=c
8248 # Object file extension for compiled C test sources.
8249 objext=o
8250 objext=$objext
8252 # Code to be used in simple compile tests
8253 lt_simple_compile_test_code="int some_variable = 0;"
8255 # Code to be used in simple link tests
8256 lt_simple_link_test_code='int main(){return(0);}'
8264 # If no C compiler was specified, use CC.
8265 LTCC=${LTCC-"$CC"}
8267 # If no C compiler flags were specified, use CFLAGS.
8268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8270 # Allow CC to be a program name with arguments.
8271 compiler=$CC
8273 # Save the default compiler, since it gets overwritten when the other
8274 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8275 compiler_DEFAULT=$CC
8277 # save warnings/boilerplate of simple test code
8278 ac_outfile=conftest.$ac_objext
8279 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8281 _lt_compiler_boilerplate=`cat conftest.err`
8282 $RM conftest*
8284 ac_outfile=conftest.$ac_objext
8285 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8287 _lt_linker_boilerplate=`cat conftest.err`
8288 $RM -r conftest*
8291 ## CAVEAT EMPTOR:
8292 ## There is no encapsulation within the following macros, do not change
8293 ## the running order or otherwise move them around unless you know exactly
8294 ## what you are doing...
8295 if test -n "$compiler"; then
8297 lt_prog_compiler_no_builtin_flag=
8299 if test "$GCC" = yes; then
8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8303 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8304 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 lt_cv_prog_compiler_rtti_exceptions=no
8308 ac_outfile=conftest.$ac_objext
8309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310 lt_compiler_flag="-fno-rtti -fno-exceptions"
8311 # Insert the option either (1) after the last *FLAGS variable, or
8312 # (2) before a word containing "conftest.", or (3) at the end.
8313 # Note that $ac_compile itself does not contain backslashes and begins
8314 # with a dollar sign (not a hyphen), so the echo should work correctly.
8315 # The option is referenced via a variable to avoid confusing sed.
8316 lt_compile=`echo "$ac_compile" | $SED \
8317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319 -e 's:$: $lt_compiler_flag:'`
8320 (eval echo "\"\$as_me:8320: $lt_compile\"" >&5)
8321 (eval "$lt_compile" 2>conftest.err)
8322 ac_status=$?
8323 cat conftest.err >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 if (exit $ac_status) && test -s "$ac_outfile"; then
8326 # The compiler can only warn and ignore the option if not recognized
8327 # So say no if there are warnings other than the usual output.
8328 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8331 lt_cv_prog_compiler_rtti_exceptions=yes
8334 $RM conftest*
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8338 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8341 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8342 else
8353 lt_prog_compiler_wl=
8354 lt_prog_compiler_pic=
8355 lt_prog_compiler_static=
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8360 if test "$GCC" = yes; then
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_static='-static'
8364 case $host_os in
8365 aix*)
8366 # All AIX code is PIC.
8367 if test "$host_cpu" = ia64; then
8368 # AIX 5 now supports IA64 processor
8369 lt_prog_compiler_static='-Bstatic'
8373 amigaos*)
8374 case $host_cpu in
8375 powerpc)
8376 # see comment about AmigaOS4 .so support
8377 lt_prog_compiler_pic='-fPIC'
8379 m68k)
8380 # FIXME: we need at least 68020 code to build shared libraries, but
8381 # adding the `-m68020' flag to GCC prevents building anything better,
8382 # like `-m68040'.
8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8385 esac
8388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8389 # PIC is the default for these OSes.
8392 mingw* | cygwin* | pw32* | os2* | cegcc*)
8393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
8395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8396 # (--disable-auto-import) libraries
8397 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 darwin* | rhapsody*)
8401 # PIC is the default on this platform
8402 # Common symbols not allowed in MH_DYLIB files
8403 lt_prog_compiler_pic='-fno-common'
8406 hpux*)
8407 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8408 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8409 # sets the default TLS model and affects inlining.
8410 case $host_cpu in
8411 hppa*64*)
8412 # +Z the default
8415 lt_prog_compiler_pic='-fPIC'
8417 esac
8420 interix[3-9]*)
8421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8422 # Instead, we relocate shared libraries at runtime.
8425 msdosdjgpp*)
8426 # Just because we use GCC doesn't mean we suddenly get shared libraries
8427 # on systems that don't support them.
8428 lt_prog_compiler_can_build_shared=no
8429 enable_shared=no
8432 *nto* | *qnx*)
8433 # QNX uses GNU C++, but need to define -shared option too, otherwise
8434 # it will coredump.
8435 lt_prog_compiler_pic='-fPIC -shared'
8438 sysv4*MP*)
8439 if test -d /usr/nec; then
8440 lt_prog_compiler_pic=-Kconform_pic
8445 lt_prog_compiler_pic='-fPIC'
8447 esac
8448 else
8449 # PORTME Check for flag to pass linker flags through the system compiler.
8450 case $host_os in
8451 aix*)
8452 lt_prog_compiler_wl='-Wl,'
8453 if test "$host_cpu" = ia64; then
8454 # AIX 5 now supports IA64 processor
8455 lt_prog_compiler_static='-Bstatic'
8456 else
8457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8461 mingw* | cygwin* | pw32* | os2* | cegcc*)
8462 # This hack is so that the source file can tell whether it is being
8463 # built for inclusion in a dll (and should export symbols for example).
8464 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 hpux9* | hpux10* | hpux11*)
8468 lt_prog_compiler_wl='-Wl,'
8469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8470 # not for PA HP-UX.
8471 case $host_cpu in
8472 hppa*64*|ia64*)
8473 # +Z the default
8476 lt_prog_compiler_pic='+Z'
8478 esac
8479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8480 lt_prog_compiler_static='${wl}-a ${wl}archive'
8483 irix5* | irix6* | nonstopux*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # PIC (with -KPIC) is the default.
8486 lt_prog_compiler_static='-non_shared'
8489 linux* | k*bsd*-gnu)
8490 case $cc_basename in
8491 # old Intel for x86_64 which still supported -KPIC.
8492 ecc*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-static'
8497 # icc used to be incompatible with GCC.
8498 # ICC 10 doesn't accept -KPIC any more.
8499 icc* | ifort*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-fPIC'
8502 lt_prog_compiler_static='-static'
8504 # Lahey Fortran 8.1.
8505 lf95*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='--shared'
8508 lt_prog_compiler_static='--static'
8510 pgcc* | pgf77* | pgf90* | pgf95*)
8511 # Portland Group compilers (*not* the Pentium gcc compiler,
8512 # which looks to be a dead project)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-fpic'
8515 lt_prog_compiler_static='-Bstatic'
8517 ccc*)
8518 lt_prog_compiler_wl='-Wl,'
8519 # All Alpha code is PIC.
8520 lt_prog_compiler_static='-non_shared'
8522 xl*)
8523 # IBM XL C 8.0/Fortran 10.1 on PPC
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-qpic'
8526 lt_prog_compiler_static='-qstaticlink'
8529 case `$CC -V 2>&1 | sed 5q` in
8530 *Sun\ C*)
8531 # Sun C 5.9
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_wl='-Wl,'
8536 *Sun\ F*)
8537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_wl=''
8542 esac
8544 esac
8547 newsos6)
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8552 *nto* | *qnx*)
8553 # QNX uses GNU C++, but need to define -shared option too, otherwise
8554 # it will coredump.
8555 lt_prog_compiler_pic='-fPIC -shared'
8558 osf3* | osf4* | osf5*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # All OSF/1 code is PIC.
8561 lt_prog_compiler_static='-non_shared'
8564 rdos*)
8565 lt_prog_compiler_static='-non_shared'
8568 solaris*)
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 case $cc_basename in
8572 f77* | f90* | f95*)
8573 lt_prog_compiler_wl='-Qoption ld ';;
8575 lt_prog_compiler_wl='-Wl,';;
8576 esac
8579 sunos4*)
8580 lt_prog_compiler_wl='-Qoption ld '
8581 lt_prog_compiler_pic='-PIC'
8582 lt_prog_compiler_static='-Bstatic'
8585 sysv4 | sysv4.2uw2* | sysv4.3*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8591 sysv4*MP*)
8592 if test -d /usr/nec ;then
8593 lt_prog_compiler_pic='-Kconform_pic'
8594 lt_prog_compiler_static='-Bstatic'
8598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8604 unicos*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_can_build_shared=no
8609 uts4*)
8610 lt_prog_compiler_pic='-pic'
8611 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_can_build_shared=no
8617 esac
8620 case $host_os in
8621 # For platforms which do not support PIC, -DPIC is meaningless:
8622 *djgpp*)
8623 lt_prog_compiler_pic=
8626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8628 esac
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8630 $as_echo "$lt_prog_compiler_pic" >&6; }
8638 # Check to make sure the PIC flag actually works.
8640 if test -n "$lt_prog_compiler_pic"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8642 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8643 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 lt_cv_prog_compiler_pic_works=no
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8650 # Insert the option either (1) after the last *FLAGS variable, or
8651 # (2) before a word containing "conftest.", or (3) at the end.
8652 # Note that $ac_compile itself does not contain backslashes and begins
8653 # with a dollar sign (not a hyphen), so the echo should work correctly.
8654 # The option is referenced via a variable to avoid confusing sed.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:8659: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>conftest.err)
8661 ac_status=$?
8662 cat conftest.err >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s "$ac_outfile"; then
8665 # The compiler can only warn and ignore the option if not recognized
8666 # So say no if there are warnings other than the usual output.
8667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8670 lt_cv_prog_compiler_pic_works=yes
8673 $RM conftest*
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8679 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8680 case $lt_prog_compiler_pic in
8681 "" | " "*) ;;
8682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8683 esac
8684 else
8685 lt_prog_compiler_pic=
8686 lt_prog_compiler_can_build_shared=no
8697 # Check to make sure the static flag actually works.
8699 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8702 if ${lt_cv_prog_compiler_static_works+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 lt_cv_prog_compiler_static_works=no
8706 save_LDFLAGS="$LDFLAGS"
8707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8710 # The linker can only warn and ignore the option if not recognized
8711 # So say no if there are warnings
8712 if test -s conftest.err; then
8713 # Append any errors to the config.log.
8714 cat conftest.err 1>&5
8715 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8717 if diff conftest.exp conftest.er2 >/dev/null; then
8718 lt_cv_prog_compiler_static_works=yes
8720 else
8721 lt_cv_prog_compiler_static_works=yes
8724 $RM -r conftest*
8725 LDFLAGS="$save_LDFLAGS"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8729 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8731 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8733 else
8734 lt_prog_compiler_static=
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8745 if ${lt_cv_prog_compiler_c_o+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 lt_cv_prog_compiler_c_o=no
8749 $RM -r conftest 2>/dev/null
8750 mkdir conftest
8751 cd conftest
8752 mkdir out
8753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755 lt_compiler_flag="-o out/conftest2.$ac_objext"
8756 # Insert the option either (1) after the last *FLAGS variable, or
8757 # (2) before a word containing "conftest.", or (3) at the end.
8758 # Note that $ac_compile itself does not contain backslashes and begins
8759 # with a dollar sign (not a hyphen), so the echo should work correctly.
8760 lt_compile=`echo "$ac_compile" | $SED \
8761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763 -e 's:$: $lt_compiler_flag:'`
8764 (eval echo "\"\$as_me:8764: $lt_compile\"" >&5)
8765 (eval "$lt_compile" 2>out/conftest.err)
8766 ac_status=$?
8767 cat out/conftest.err >&5
8768 echo "$as_me:8768: \$? = $ac_status" >&5
8769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8770 then
8771 # The compiler can only warn and ignore the option if not recognized
8772 # So say no if there are warnings
8773 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8776 lt_cv_prog_compiler_c_o=yes
8779 chmod u+w . 2>&5
8780 $RM conftest*
8781 # SGI C++ compiler will create directory out/ii_files/ for
8782 # template instantiation
8783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8784 $RM out/* && rmdir out
8785 cd ..
8786 $RM -r conftest
8787 $RM conftest*
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8800 if ${lt_cv_prog_compiler_c_o+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 lt_cv_prog_compiler_c_o=no
8804 $RM -r conftest 2>/dev/null
8805 mkdir conftest
8806 cd conftest
8807 mkdir out
8808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="-o out/conftest2.$ac_objext"
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 lt_compile=`echo "$ac_compile" | $SED \
8816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8818 -e 's:$: $lt_compiler_flag:'`
8819 (eval echo "\"\$as_me:8819: $lt_compile\"" >&5)
8820 (eval "$lt_compile" 2>out/conftest.err)
8821 ac_status=$?
8822 cat out/conftest.err >&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8825 then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings
8828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8831 lt_cv_prog_compiler_c_o=yes
8834 chmod u+w . 2>&5
8835 $RM conftest*
8836 # SGI C++ compiler will create directory out/ii_files/ for
8837 # template instantiation
8838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8839 $RM out/* && rmdir out
8840 cd ..
8841 $RM -r conftest
8842 $RM conftest*
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8851 hard_links="nottested"
8852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8853 # do not overwrite the value of need_locks provided by the user
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8855 $as_echo_n "checking if we can lock with hard links... " >&6; }
8856 hard_links=yes
8857 $RM conftest*
8858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8859 touch conftest.a
8860 ln conftest.a conftest.b 2>&5 || hard_links=no
8861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8863 $as_echo "$hard_links" >&6; }
8864 if test "$hard_links" = no; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8866 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8867 need_locks=warn
8869 else
8870 need_locks=no
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8881 runpath_var=
8882 allow_undefined_flag=
8883 always_export_symbols=no
8884 archive_cmds=
8885 archive_expsym_cmds=
8886 compiler_needs_object=no
8887 enable_shared_with_static_runtimes=no
8888 export_dynamic_flag_spec=
8889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8890 hardcode_automatic=no
8891 hardcode_direct=no
8892 hardcode_direct_absolute=no
8893 hardcode_libdir_flag_spec=
8894 hardcode_libdir_flag_spec_ld=
8895 hardcode_libdir_separator=
8896 hardcode_minus_L=no
8897 hardcode_shlibpath_var=unsupported
8898 inherit_rpath=no
8899 link_all_deplibs=unknown
8900 module_cmds=
8901 module_expsym_cmds=
8902 old_archive_from_new_cmds=
8903 old_archive_from_expsyms_cmds=
8904 thread_safe_flag_spec=
8905 whole_archive_flag_spec=
8906 # include_expsyms should be a list of space-separated symbols to be *always*
8907 # included in the symbol list
8908 include_expsyms=
8909 # exclude_expsyms can be an extended regexp of symbols to exclude
8910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8912 # as well as any symbol that contains `d'.
8913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8915 # platforms (ab)use it in PIC code, but their linkers get confused if
8916 # the symbol is explicitly referenced. Since portable code cannot
8917 # rely on this symbol name, it's probably fine to never include it in
8918 # preloaded symbol tables.
8919 # Exclude shared library initialization/finalization symbols.
8920 extract_expsyms_cmds=
8922 case $host_os in
8923 cygwin* | mingw* | pw32* | cegcc*)
8924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8925 # When not using gcc, we currently assume that we are using
8926 # Microsoft Visual C++.
8927 if test "$GCC" != yes; then
8928 with_gnu_ld=no
8931 interix*)
8932 # we just hope/assume this is gcc and not c89 (= MSVC++)
8933 with_gnu_ld=yes
8935 openbsd*)
8936 with_gnu_ld=no
8938 esac
8940 ld_shlibs=yes
8941 if test "$with_gnu_ld" = yes; then
8942 # If archive_cmds runs LD, not CC, wlarc should be empty
8943 wlarc='${wl}'
8945 # Set some defaults for GNU ld with shared library support. These
8946 # are reset later if shared libraries are not supported. Putting them
8947 # here allows them to be overridden if necessary.
8948 runpath_var=LD_RUN_PATH
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 export_dynamic_flag_spec='${wl}--export-dynamic'
8951 # ancient GNU ld didn't support --whole-archive et. al.
8952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8953 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8954 else
8955 whole_archive_flag_spec=
8957 supports_anon_versioning=no
8958 case `$LD -v 2>&1` in
8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8962 *\ 2.11.*) ;; # other 2.11 versions
8963 *) supports_anon_versioning=yes ;;
8964 esac
8966 # See if GNU ld supports shared libraries.
8967 case $host_os in
8968 aix[3-9]*)
8969 # On AIX/PPC, the GNU linker is very broken
8970 if test "$host_cpu" != ia64; then
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8974 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8975 *** to be unable to reliably create shared libraries on AIX.
8976 *** Therefore, libtool is disabling shared libraries support. If you
8977 *** really care for shared libraries, you may want to modify your PATH
8978 *** so that a non-GNU linker is found, and then restart.
8980 _LT_EOF
8984 amigaos*)
8985 case $host_cpu in
8986 powerpc)
8987 # see comment about AmigaOS4 .so support
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds=''
8991 m68k)
8992 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)'
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_minus_L=yes
8996 esac
8999 beos*)
9000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001 allow_undefined_flag=unsupported
9002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9003 # support --undefined. This deserves some investigation. FIXME
9004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 else
9006 ld_shlibs=no
9010 cygwin* | mingw* | pw32* | cegcc*)
9011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9012 # as there is no search path for DLLs.
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 allow_undefined_flag=unsupported
9015 always_export_symbols=no
9016 enable_shared_with_static_runtimes=yes
9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9019 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9021 # If the export-symbols file already is a .def file (1st line
9022 # is EXPORTS), use it as is; otherwise, prepend...
9023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9024 cp $export_symbols $output_objdir/$soname.def;
9025 else
9026 echo EXPORTS > $output_objdir/$soname.def;
9027 cat $export_symbols >> $output_objdir/$soname.def;
9029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9030 else
9031 ld_shlibs=no
9035 interix[3-9]*)
9036 hardcode_direct=no
9037 hardcode_shlibpath_var=no
9038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039 export_dynamic_flag_spec='${wl}-E'
9040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9041 # Instead, shared libraries are loaded at an image base (0x10000000 by
9042 # default) and relocated if they conflict, which is a slow very memory
9043 # consuming and fragmenting process. To avoid this, we pick a random,
9044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9047 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'
9050 gnu* | linux* | tpf* | k*bsd*-gnu)
9051 tmp_diet=no
9052 if test "$host_os" = linux-dietlibc; then
9053 case $cc_basename in
9054 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9055 esac
9057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9058 && test "$tmp_diet" = no
9059 then
9060 tmp_addflag=
9061 tmp_sharedflag='-shared'
9062 case $cc_basename,$host_cpu in
9063 pgcc*) # Portland Group C compiler
9064 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9065 tmp_addflag=' $pic_flag'
9067 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9068 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9069 tmp_addflag=' $pic_flag -Mnomain' ;;
9070 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9071 tmp_addflag=' -i_dynamic' ;;
9072 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9073 tmp_addflag=' -i_dynamic -nofor_main' ;;
9074 ifc* | ifort*) # Intel Fortran compiler
9075 tmp_addflag=' -nofor_main' ;;
9076 lf95*) # Lahey Fortran 8.1
9077 whole_archive_flag_spec=
9078 tmp_sharedflag='--shared' ;;
9079 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9080 tmp_sharedflag='-qmkshrobj'
9081 tmp_addflag= ;;
9082 esac
9083 case `$CC -V 2>&1 | sed 5q` in
9084 *Sun\ C*) # Sun C 5.9
9085 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9086 compiler_needs_object=yes
9087 tmp_sharedflag='-G' ;;
9088 *Sun\ F*) # Sun Fortran 8.3
9089 tmp_sharedflag='-G' ;;
9090 esac
9091 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093 if test "x$supports_anon_versioning" = xyes; then
9094 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9096 echo "local: *; };" >> $output_objdir/$libname.ver~
9097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9100 case $cc_basename in
9101 xlf*)
9102 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9103 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9104 hardcode_libdir_flag_spec=
9105 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9106 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9107 if test "x$supports_anon_versioning" = xyes; then
9108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110 echo "local: *; };" >> $output_objdir/$libname.ver~
9111 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9114 esac
9115 else
9116 ld_shlibs=no
9120 netbsd*)
9121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9122 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9123 wlarc=
9124 else
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130 solaris*)
9131 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9132 ld_shlibs=no
9133 cat <<_LT_EOF 1>&2
9135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9136 *** create shared libraries on Solaris systems. Therefore, libtool
9137 *** is disabling shared libraries support. We urge you to upgrade GNU
9138 *** binutils to release 2.9.1 or newer. Another option is to modify
9139 *** your PATH or compiler configuration so that the native linker is
9140 *** used, and then restart.
9142 _LT_EOF
9143 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146 else
9147 ld_shlibs=no
9151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9152 case `$LD -v 2>&1` in
9153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9154 ld_shlibs=no
9155 cat <<_LT_EOF 1>&2
9157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9158 *** reliably create shared libraries on SCO systems. Therefore, libtool
9159 *** is disabling shared libraries support. We urge you to upgrade GNU
9160 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9161 *** your PATH or compiler configuration so that the native linker is
9162 *** used, and then restart.
9164 _LT_EOF
9167 # For security reasons, it is highly recommended that you always
9168 # use absolute paths for naming shared libraries, and exclude the
9169 # DT_RUNPATH tag from executables and libraries. But doing so
9170 # requires that you compile everything twice, which is a pain.
9171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9175 else
9176 ld_shlibs=no
9179 esac
9182 sunos4*)
9183 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 wlarc=
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9197 esac
9199 if test "$ld_shlibs" = no; then
9200 runpath_var=
9201 hardcode_libdir_flag_spec=
9202 export_dynamic_flag_spec=
9203 whole_archive_flag_spec=
9205 else
9206 # PORTME fill in a description of your system's linker (not GNU ld)
9207 case $host_os in
9208 aix3*)
9209 allow_undefined_flag=unsupported
9210 always_export_symbols=yes
9211 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'
9212 # Note: this linker hardcodes the directories in LIBPATH if there
9213 # are no directories specified by -L.
9214 hardcode_minus_L=yes
9215 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9216 # Neither direct hardcoding nor static linking is supported with a
9217 # broken collect2.
9218 hardcode_direct=unsupported
9222 aix[4-9]*)
9223 if test "$host_cpu" = ia64; then
9224 # On IA64, the linker does run time linking by default, so we don't
9225 # have to do anything special.
9226 aix_use_runtimelinking=no
9227 exp_sym_flag='-Bexport'
9228 no_entry_flag=""
9229 else
9230 # If we're using GNU nm, then we don't want the "-C" option.
9231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9233 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9234 else
9235 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'
9237 aix_use_runtimelinking=no
9239 # Test if we are trying to use run time linking or normal
9240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9241 # need to do runtime linking.
9242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9243 for ld_flag in $LDFLAGS; do
9244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9245 aix_use_runtimelinking=yes
9246 break
9248 done
9250 esac
9252 exp_sym_flag='-bexport'
9253 no_entry_flag='-bnoentry'
9256 # When large executables or shared objects are built, AIX ld can
9257 # have problems creating the table of contents. If linking a library
9258 # or program results in "error TOC overflow" add -mminimal-toc to
9259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262 archive_cmds=''
9263 hardcode_direct=yes
9264 hardcode_direct_absolute=yes
9265 hardcode_libdir_separator=':'
9266 link_all_deplibs=yes
9267 file_list_spec='${wl}-f,'
9269 if test "$GCC" = yes; then
9270 case $host_os in aix4.[012]|aix4.[012].*)
9271 # We only want to do this on AIX 4.2 and lower, the check
9272 # below for broken collect2 doesn't work under 4.3+
9273 collect2name=`${CC} -print-prog-name=collect2`
9274 if test -f "$collect2name" &&
9275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9276 then
9277 # We have reworked collect2
9279 else
9280 # We have old collect2
9281 hardcode_direct=unsupported
9282 # It fails to find uninstalled libraries when the uninstalled
9283 # path is not listed in the libpath. Setting hardcode_minus_L
9284 # to unsupported forces relinking
9285 hardcode_minus_L=yes
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_libdir_separator=
9290 esac
9291 shared_flag='-shared'
9292 if test "$aix_use_runtimelinking" = yes; then
9293 shared_flag="$shared_flag "'${wl}-G'
9295 else
9296 # not using gcc
9297 if test "$host_cpu" = ia64; then
9298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9299 # chokes on -Wl,-G. The following line is correct:
9300 shared_flag='-G'
9301 else
9302 if test "$aix_use_runtimelinking" = yes; then
9303 shared_flag='${wl}-G'
9304 else
9305 shared_flag='${wl}-bM:SRE'
9310 export_dynamic_flag_spec='${wl}-bexpall'
9311 # It seems that -bexpall does not export symbols beginning with
9312 # underscore (_), so it is better to generate a list of symbols to export.
9313 always_export_symbols=yes
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # Warning - without using the other runtime loading flags (-brtl),
9316 # -berok will link without error, but may produce a broken library.
9317 allow_undefined_flag='-berok'
9318 # Determine the default libpath from the value encoded in an
9319 # empty executable.
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9324 main ()
9328 return 0;
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9333 lt_aix_libpath_sed='
9334 /Import File Strings/,/^$/ {
9335 /^0/ {
9336 s/^0 *\(.*\)$/\1/
9340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341 # Check for a 64-bit object if we didn't find anything.
9342 if test -z "$aix_libpath"; then
9343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9351 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9352 else
9353 if test "$host_cpu" = ia64; then
9354 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9355 allow_undefined_flag="-z nodefs"
9356 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"
9357 else
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9364 main ()
9368 return 0;
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9373 lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\(.*\)$/\1/
9380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$aix_libpath"; then
9383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 # Warning - without using the other run time loading flags,
9392 # -berok will link without error, but may produce a broken library.
9393 no_undefined_flag=' ${wl}-bernotok'
9394 allow_undefined_flag=' ${wl}-berok'
9395 # Exported symbols can be pulled into shared objects from archives
9396 whole_archive_flag_spec='$convenience'
9397 archive_cmds_need_lc=yes
9398 # This is similar to how AIX traditionally builds its shared libraries.
9399 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'
9404 amigaos*)
9405 case $host_cpu in
9406 powerpc)
9407 # see comment about AmigaOS4 .so support
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds=''
9411 m68k)
9412 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)'
9413 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_minus_L=yes
9416 esac
9419 bsdi[45]*)
9420 export_dynamic_flag_spec=-rdynamic
9423 cygwin* | mingw* | pw32* | cegcc*)
9424 # When not using gcc, we currently assume that we are using
9425 # Microsoft Visual C++.
9426 # hardcode_libdir_flag_spec is actually meaningless, as there is
9427 # no search path for DLLs.
9428 hardcode_libdir_flag_spec=' '
9429 allow_undefined_flag=unsupported
9430 # Tell ltmain to make .lib files, not .a files.
9431 libext=lib
9432 # Tell ltmain to make .dll files, not .so files.
9433 shrext_cmds=".dll"
9434 # FIXME: Setting linknames here is a bad hack.
9435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9436 # The linker will automatically build a .lib file if we build a DLL.
9437 old_archive_from_new_cmds='true'
9438 # FIXME: Should let the user specify the lib program.
9439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9440 fix_srcfile_path='`cygpath -w "$srcfile"`'
9441 enable_shared_with_static_runtimes=yes
9444 darwin* | rhapsody*)
9447 archive_cmds_need_lc=no
9448 hardcode_direct=no
9449 hardcode_automatic=yes
9450 hardcode_shlibpath_var=unsupported
9451 whole_archive_flag_spec=''
9452 link_all_deplibs=yes
9453 allow_undefined_flag="$_lt_dar_allow_undefined"
9454 case $cc_basename in
9455 ifort*) _lt_dar_can_shared=yes ;;
9456 *) _lt_dar_can_shared=$GCC ;;
9457 esac
9458 if test "$_lt_dar_can_shared" = "yes"; then
9459 output_verbose_link_cmd=echo
9460 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9462 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}"
9463 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}"
9465 else
9466 ld_shlibs=no
9471 dgux*)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_shlibpath_var=no
9477 freebsd1*)
9478 ld_shlibs=no
9481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9482 # support. Future versions do this automatically, but an explicit c++rt0.o
9483 # does not break anything, and helps significantly (at the cost of a little
9484 # extra space).
9485 freebsd2.2*)
9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9493 freebsd2*)
9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes
9496 hardcode_minus_L=yes
9497 hardcode_shlibpath_var=no
9500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9501 freebsd* | dragonfly*)
9502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9503 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_direct=yes
9505 hardcode_shlibpath_var=no
9508 hpux9*)
9509 if test "$GCC" = yes; then
9510 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9511 else
9512 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'
9514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_direct=yes
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9521 export_dynamic_flag_spec='${wl}-E'
9524 hpux10*)
9525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9530 if test "$with_gnu_ld" = no; then
9531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9532 hardcode_libdir_flag_spec_ld='+b $libdir'
9533 hardcode_libdir_separator=:
9534 hardcode_direct=yes
9535 hardcode_direct_absolute=yes
9536 export_dynamic_flag_spec='${wl}-E'
9537 # hardcode_minus_L: Not really in the search PATH,
9538 # but as the default location of the library.
9539 hardcode_minus_L=yes
9543 hpux11*)
9544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9545 case $host_cpu in
9546 hppa*64*)
9547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9549 ia64*)
9550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 esac
9556 else
9557 case $host_cpu in
9558 hppa*64*)
9559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 ia64*)
9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567 esac
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9573 case $host_cpu in
9574 hppa*64*|ia64*)
9575 hardcode_direct=no
9576 hardcode_shlibpath_var=no
9579 hardcode_direct=yes
9580 hardcode_direct_absolute=yes
9581 export_dynamic_flag_spec='${wl}-E'
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9587 esac
9591 irix5* | irix6* | nonstopux*)
9592 if test "$GCC" = yes; then
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9594 # Try to use the -exported_symbol ld option, if it does not
9595 # work, assume that -exports_file does not work either and
9596 # implicitly export all symbols.
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int foo (void) { return 0; }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LDFLAGS="$save_LDFLAGS"
9611 else
9612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 inherit_rpath=yes
9619 link_all_deplibs=yes
9622 netbsd*)
9623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9625 else
9626 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9633 newsos6)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator=:
9638 hardcode_shlibpath_var=no
9641 *nto* | *qnx*)
9644 openbsd*)
9645 if test -f /usr/libexec/ld.so; then
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 hardcode_direct_absolute=yes
9649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 export_dynamic_flag_spec='${wl}-E'
9654 else
9655 case $host_os in
9656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9664 esac
9666 else
9667 ld_shlibs=no
9671 os2*)
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_minus_L=yes
9674 allow_undefined_flag=unsupported
9675 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'
9676 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9679 osf3*)
9680 if test "$GCC" = yes; then
9681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9683 else
9684 allow_undefined_flag=' -expect_unresolved \*'
9685 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9687 archive_cmds_need_lc='no'
9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689 hardcode_libdir_separator=:
9692 osf4* | osf5*) # as osf3* with the addition of -msym flag
9693 if test "$GCC" = yes; then
9694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 else
9698 allow_undefined_flag=' -expect_unresolved \*'
9699 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9700 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~
9701 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9703 # Both c and cxx compiler support -rpath directly
9704 hardcode_libdir_flag_spec='-rpath $libdir'
9706 archive_cmds_need_lc='no'
9707 hardcode_libdir_separator=:
9710 solaris*)
9711 no_undefined_flag=' -z defs'
9712 if test "$GCC" = yes; then
9713 wlarc='${wl}'
9714 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 else
9718 case `$CC -V 2>&1` in
9719 *"Compilers 5.0"*)
9720 wlarc=''
9721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9726 wlarc='${wl}'
9727 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9731 esac
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_shlibpath_var=no
9735 case $host_os in
9736 solaris2.[0-5] | solaris2.[0-5].*) ;;
9738 # The compiler driver will combine and reorder linker options,
9739 # but understands `-z linker_flag'. GCC discards it without `$wl',
9740 # but is careful enough not to reorder.
9741 # Supported since Solaris 2.6 (maybe 2.5.1?)
9742 if test "$GCC" = yes; then
9743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744 else
9745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9748 esac
9749 link_all_deplibs=yes
9752 sunos4*)
9753 if test "x$host_vendor" = xsequent; then
9754 # Use $CC to link under sequent, because it throws in some extra .o
9755 # files that make .init and .fini sections work.
9756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_direct=yes
9762 hardcode_minus_L=yes
9763 hardcode_shlibpath_var=no
9766 sysv4)
9767 case $host_vendor in
9768 sni)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes # is this really true???
9772 siemens)
9773 ## LD is ld it makes a PLAMLIB
9774 ## CC just makes a GrossModule.
9775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776 reload_cmds='$CC -r -o $output$reload_objs'
9777 hardcode_direct=no
9779 motorola)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9783 esac
9784 runpath_var='LD_RUN_PATH'
9785 hardcode_shlibpath_var=no
9788 sysv4.3*)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_shlibpath_var=no
9791 export_dynamic_flag_spec='-Bexport'
9794 sysv4*MP*)
9795 if test -d /usr/nec; then
9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_shlibpath_var=no
9798 runpath_var=LD_RUN_PATH
9799 hardcode_runpath_var=yes
9800 ld_shlibs=yes
9804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805 no_undefined_flag='${wl}-z,text'
9806 archive_cmds_need_lc=no
9807 hardcode_shlibpath_var=no
9808 runpath_var='LD_RUN_PATH'
9810 if test "$GCC" = yes; then
9811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 sysv5* | sco3.2v5* | sco5v6*)
9820 # Note: We can NOT use -z defs as we might desire, because we do not
9821 # link with -lc, and that would cause any symbols used from libc to
9822 # always be unresolved, which means just about no library would
9823 # ever link correctly. If we're not using GNU ld we use -z text
9824 # though, which does catch some bad symbols but isn't as heavy-handed
9825 # as -z defs.
9826 no_undefined_flag='${wl}-z,text'
9827 allow_undefined_flag='${wl}-z,nodefs'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831 hardcode_libdir_separator=':'
9832 link_all_deplibs=yes
9833 export_dynamic_flag_spec='${wl}-Bexport'
9834 runpath_var='LD_RUN_PATH'
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 else
9840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 uts4*)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_shlibpath_var=no
9852 ld_shlibs=no
9854 esac
9856 if test x$host_vendor = xsni; then
9857 case $host in
9858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859 export_dynamic_flag_spec='${wl}-Blargedynsym'
9861 esac
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866 $as_echo "$ld_shlibs" >&6; }
9867 test "$ld_shlibs" = no && can_build_shared=no
9869 with_gnu_ld=$with_gnu_ld
9886 # Do we need to explicitly link libc?
9888 case "x$archive_cmds_need_lc" in
9889 x|xyes)
9890 # Assume -lc should be added
9891 archive_cmds_need_lc=yes
9893 if test "$enable_shared" = yes && test "$GCC" = yes; then
9894 case $archive_cmds in
9895 *'~'*)
9896 # FIXME: we may have to deal with multi-command sequences.
9898 '$CC '*)
9899 # Test whether the compiler implicitly links with -lc since on some
9900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901 # to ld, don't add -lc before -lgcc.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904 $RM conftest*
9905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9908 (eval $ac_compile) 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; } 2>conftest.err; then
9912 soname=conftest
9913 lib=conftest
9914 libobjs=conftest.$ac_objext
9915 deplibs=
9916 wl=$lt_prog_compiler_wl
9917 pic_flag=$lt_prog_compiler_pic
9918 compiler_flags=-v
9919 linker_flags=-v
9920 verstring=
9921 output_objdir=.
9922 libname=conftest
9923 lt_save_allow_undefined_flag=$allow_undefined_flag
9924 allow_undefined_flag=
9925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9926 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9927 ac_status=$?
9928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929 test $ac_status = 0; }
9930 then
9931 archive_cmds_need_lc=no
9932 else
9933 archive_cmds_need_lc=yes
9935 allow_undefined_flag=$lt_save_allow_undefined_flag
9936 else
9937 cat conftest.err 1>&5
9939 $RM conftest*
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9941 $as_echo "$archive_cmds_need_lc" >&6; }
9943 esac
9946 esac
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10105 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10107 if test "$GCC" = yes; then
10108 case $host_os in
10109 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10110 *) lt_awk_arg="/^libraries:/" ;;
10111 esac
10112 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10113 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10114 # if the path contains ";" then we assume it to be the separator
10115 # otherwise default to the standard path separator (i.e. ":") - it is
10116 # assumed that no part of a normal pathname contains ";" but that should
10117 # okay in the real world where ";" in dirpaths is itself problematic.
10118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10119 else
10120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10122 # Ok, now we have the path, separated by spaces, we can step through it
10123 # and add multilib dir if necessary.
10124 lt_tmp_lt_search_path_spec=
10125 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126 for lt_sys_path in $lt_search_path_spec; do
10127 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10129 else
10130 test -d "$lt_sys_path" && \
10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10133 done
10134 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10135 BEGIN {RS=" "; FS="/|\n";} {
10136 lt_foo="";
10137 lt_count=0;
10138 for (lt_i = NF; lt_i > 0; lt_i--) {
10139 if ($lt_i != "" && $lt_i != ".") {
10140 if ($lt_i == "..") {
10141 lt_count++;
10142 } else {
10143 if (lt_count == 0) {
10144 lt_foo="/" $lt_i lt_foo;
10145 } else {
10146 lt_count--;
10151 if (lt_foo != "") { lt_freq[lt_foo]++; }
10152 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10154 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10155 else
10156 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10158 library_names_spec=
10159 libname_spec='lib$name'
10160 soname_spec=
10161 shrext_cmds=".so"
10162 postinstall_cmds=
10163 postuninstall_cmds=
10164 finish_cmds=
10165 finish_eval=
10166 shlibpath_var=
10167 shlibpath_overrides_runpath=unknown
10168 version_type=none
10169 dynamic_linker="$host_os ld.so"
10170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171 need_lib_prefix=unknown
10172 hardcode_into_libs=no
10174 # when you set need_version to no, make sure it does not cause -set_version
10175 # flags to be left without arguments
10176 need_version=unknown
10178 case $host_os in
10179 aix3*)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10182 shlibpath_var=LIBPATH
10184 # AIX 3 has no versioning support, so we append a major version to the name.
10185 soname_spec='${libname}${release}${shared_ext}$major'
10188 aix[4-9]*)
10189 version_type=linux
10190 need_lib_prefix=no
10191 need_version=no
10192 hardcode_into_libs=yes
10193 if test "$host_cpu" = ia64; then
10194 # AIX 5 supports IA64
10195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 else
10198 # With GCC up to 2.95.x, collect2 would create an import file
10199 # for dependence libraries. The import file would start with
10200 # the line `#! .'. This would cause the generated library to
10201 # depend on `.', always an invalid library. This was fixed in
10202 # development snapshots of GCC prior to 3.0.
10203 case $host_os in
10204 aix4 | aix4.[01] | aix4.[01].*)
10205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10206 echo ' yes '
10207 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10209 else
10210 can_build_shared=no
10213 esac
10214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10215 # soname into executable. Probably we can add versioning support to
10216 # collect2, so additional links can be useful in future.
10217 if test "$aix_use_runtimelinking" = yes; then
10218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10219 # instead of lib<name>.a to let people know that these are not
10220 # typical AIX shared libraries.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 else
10223 # We preserve .a as extension for shared libraries through AIX4.2
10224 # and later when we are not doing run time linking.
10225 library_names_spec='${libname}${release}.a $libname.a'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LIBPATH
10232 amigaos*)
10233 case $host_cpu in
10234 powerpc)
10235 # Since July 2007 AmigaOS4 officially supports .so libraries.
10236 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 m68k)
10240 library_names_spec='$libname.ixlibrary $libname.a'
10241 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10242 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10244 esac
10247 beos*)
10248 library_names_spec='${libname}${shared_ext}'
10249 dynamic_linker="$host_os ld.so"
10250 shlibpath_var=LIBRARY_PATH
10253 bsdi[45]*)
10254 version_type=linux
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10262 # the default ld.so.conf also contains /usr/contrib/lib and
10263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10264 # libtool to hard-code these into programs
10267 cygwin* | mingw* | pw32* | cegcc*)
10268 version_type=windows
10269 shrext_cmds=".dll"
10270 need_version=no
10271 need_lib_prefix=no
10273 case $GCC,$host_os in
10274 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10275 library_names_spec='$libname.dll.a'
10276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277 postinstall_cmds='base_file=`basename \${file}`~
10278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279 dldir=$destdir/`dirname \$dlpath`~
10280 test -d \$dldir || mkdir -p \$dldir~
10281 $install_prog $dir/$dlname \$dldir/$dlname~
10282 chmod a+x \$dldir/$dlname~
10283 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10284 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287 dlpath=$dir/\$dldll~
10288 $RM \$dlpath'
10289 shlibpath_overrides_runpath=yes
10291 case $host_os in
10292 cygwin*)
10293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10297 mingw* | cegcc*)
10298 # MinGW DLLs use traditional 'lib' prefix
10299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10302 # It is most probably a Windows format PATH printed by
10303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10304 # path with ; separators, and with drive letters. We can handle the
10305 # drive letters (cygwin fileutils understands them), so leave them,
10306 # especially as we might pass files found there to a mingw objdump,
10307 # which wouldn't understand a cygwinified path. Ahh.
10308 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10309 else
10310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10313 pw32*)
10314 # pw32 DLLs use 'pw' prefix rather than 'lib'
10315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10317 esac
10321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10323 esac
10324 dynamic_linker='Win32 ld.exe'
10325 # FIXME: first we should search . and the directory the executable is in
10326 shlibpath_var=PATH
10329 darwin* | rhapsody*)
10330 dynamic_linker="$host_os dyld"
10331 version_type=darwin
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10335 soname_spec='${libname}${release}${major}$shared_ext'
10336 shlibpath_overrides_runpath=yes
10337 shlibpath_var=DYLD_LIBRARY_PATH
10338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10340 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10344 dgux*)
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LD_LIBRARY_PATH
10353 freebsd1*)
10354 dynamic_linker=no
10357 freebsd* | dragonfly*)
10358 # DragonFly does not have aout. When/if they implement a new
10359 # versioning mechanism, adjust this.
10360 if test -x /usr/bin/objformat; then
10361 objformat=`/usr/bin/objformat`
10362 else
10363 case $host_os in
10364 freebsd[123]*) objformat=aout ;;
10365 *) objformat=elf ;;
10366 esac
10368 version_type=freebsd-$objformat
10369 case $version_type in
10370 freebsd-elf*)
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372 need_version=no
10373 need_lib_prefix=no
10375 freebsd-*)
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10377 need_version=yes
10379 esac
10380 shlibpath_var=LD_LIBRARY_PATH
10381 case $host_os in
10382 freebsd2*)
10383 shlibpath_overrides_runpath=yes
10385 freebsd3.[01]* | freebsdelf3.[01]*)
10386 shlibpath_overrides_runpath=yes
10387 hardcode_into_libs=yes
10389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10394 *) # from 4.6 on, and DragonFly
10395 shlibpath_overrides_runpath=yes
10396 hardcode_into_libs=yes
10398 esac
10401 gnu*)
10402 version_type=linux
10403 need_lib_prefix=no
10404 need_version=no
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 hardcode_into_libs=yes
10411 hpux9* | hpux10* | hpux11*)
10412 # Give a soname corresponding to the major version so that dld.sl refuses to
10413 # link against other versions.
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 case $host_cpu in
10418 ia64*)
10419 shrext_cmds='.so'
10420 hardcode_into_libs=yes
10421 dynamic_linker="$host_os dld.so"
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 if test "X$HPUX_IA64_MODE" = X32; then
10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428 else
10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10433 hppa*64*)
10434 shrext_cmds='.sl'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.sl"
10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10445 shrext_cmds='.sl'
10446 dynamic_linker="$host_os dld.sl"
10447 shlibpath_var=SHLIB_PATH
10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10452 esac
10453 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10454 postinstall_cmds='chmod 555 $lib'
10457 interix[3-9]*)
10458 version_type=linux
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=no
10466 hardcode_into_libs=yes
10469 irix5* | irix6* | nonstopux*)
10470 case $host_os in
10471 nonstopux*) version_type=nonstopux ;;
10473 if test "$lt_cv_prog_gnu_ld" = yes; then
10474 version_type=linux
10475 else
10476 version_type=irix
10477 fi ;;
10478 esac
10479 need_lib_prefix=no
10480 need_version=no
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10483 case $host_os in
10484 irix5* | nonstopux*)
10485 libsuff= shlibsuff=
10488 case $LD in # libtool.m4 will add one of these switches to LD
10489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10490 libsuff= shlibsuff= libmagic=32-bit;;
10491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10492 libsuff=32 shlibsuff=N32 libmagic=N32;;
10493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10495 *) libsuff= shlibsuff= libmagic=never-match;;
10496 esac
10498 esac
10499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10500 shlibpath_overrides_runpath=no
10501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10503 hardcode_into_libs=yes
10506 # No shared lib support for Linux oldld, aout, or coff.
10507 linux*oldld* | linux*aout* | linux*coff*)
10508 dynamic_linker=no
10511 # This must be Linux ELF.
10512 linux* | k*bsd*-gnu)
10513 version_type=linux
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 # Some binutils ld are patched to set DT_RUNPATH
10522 save_LDFLAGS=$LDFLAGS
10523 save_libdir=$libdir
10524 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10525 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10530 main ()
10534 return 0;
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10539 shlibpath_overrides_runpath=yes
10542 rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LDFLAGS=$save_LDFLAGS
10545 libdir=$save_libdir
10547 # This implies no fast_install, which is unacceptable.
10548 # Some rework will be needed to allow for fast_install
10549 # before this can be enabled.
10550 hardcode_into_libs=yes
10552 # Append ld.so.conf contents to the search path
10553 if test -f /etc/ld.so.conf; then
10554 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;/^$/d' | tr '\n' ' '`
10555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10558 # We used to test for /lib/ld.so.1 and disable shared libraries on
10559 # powerpc, because MkLinux only supported shared libraries with the
10560 # GNU dynamic linker. Since this was broken with cross compilers,
10561 # most powerpc-linux boxes support dynamic linking these days and
10562 # people can always --disable-shared, the test was removed, and we
10563 # assume the GNU/Linux dynamic linker is in use.
10564 dynamic_linker='GNU/Linux ld.so'
10567 netbsd*)
10568 version_type=sunos
10569 need_lib_prefix=no
10570 need_version=no
10571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 dynamic_linker='NetBSD (a.out) ld.so'
10575 else
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 dynamic_linker='NetBSD ld.elf_so'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10582 hardcode_into_libs=yes
10585 newsos6)
10586 version_type=linux
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10592 *nto* | *qnx*)
10593 version_type=qnx
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=no
10600 hardcode_into_libs=yes
10601 dynamic_linker='ldqnx.so'
10604 openbsd*)
10605 version_type=sunos
10606 sys_lib_dlsearch_path_spec="/usr/lib"
10607 need_lib_prefix=no
10608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609 case $host_os in
10610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10611 *) need_version=no ;;
10612 esac
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 case $host_os in
10618 openbsd2.[89] | openbsd2.[89].*)
10619 shlibpath_overrides_runpath=no
10622 shlibpath_overrides_runpath=yes
10624 esac
10625 else
10626 shlibpath_overrides_runpath=yes
10630 os2*)
10631 libname_spec='$name'
10632 shrext_cmds=".dll"
10633 need_lib_prefix=no
10634 library_names_spec='$libname${shared_ext} $libname.a'
10635 dynamic_linker='OS/2 ld.exe'
10636 shlibpath_var=LIBPATH
10639 osf3* | osf4* | osf5*)
10640 version_type=osf
10641 need_lib_prefix=no
10642 need_version=no
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10650 rdos*)
10651 dynamic_linker=no
10654 solaris*)
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10663 # ldd complains unless libraries are executable
10664 postinstall_cmds='chmod +x $lib'
10667 sunos4*)
10668 version_type=sunos
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 if test "$with_gnu_ld" = yes; then
10674 need_lib_prefix=no
10676 need_version=yes
10679 sysv4 | sysv4.3*)
10680 version_type=linux
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 case $host_vendor in
10685 sni)
10686 shlibpath_overrides_runpath=no
10687 need_lib_prefix=no
10688 runpath_var=LD_RUN_PATH
10690 siemens)
10691 need_lib_prefix=no
10693 motorola)
10694 need_lib_prefix=no
10695 need_version=no
10696 shlibpath_overrides_runpath=no
10697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10699 esac
10702 sysv4*MP*)
10703 if test -d /usr/nec ;then
10704 version_type=linux
10705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10706 soname_spec='$libname${shared_ext}.$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10712 version_type=freebsd-elf
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=yes
10719 hardcode_into_libs=yes
10720 if test "$with_gnu_ld" = yes; then
10721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10722 else
10723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724 case $host_os in
10725 sco3.2v5*)
10726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10728 esac
10730 sys_lib_dlsearch_path_spec='/usr/lib'
10733 tpf*)
10734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=no
10741 hardcode_into_libs=yes
10744 uts4*)
10745 version_type=linux
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10752 dynamic_linker=no
10754 esac
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10756 $as_echo "$dynamic_linker" >&6; }
10757 test "$dynamic_linker" = no && can_build_shared=no
10759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10760 if test "$GCC" = yes; then
10761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10858 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10859 hardcode_action=
10860 if test -n "$hardcode_libdir_flag_spec" ||
10861 test -n "$runpath_var" ||
10862 test "X$hardcode_automatic" = "Xyes" ; then
10864 # We can hardcode non-existent directories.
10865 if test "$hardcode_direct" != no &&
10866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10867 # have to relink, otherwise we might link with an installed library
10868 # when we should be linking with a yet-to-be-installed one
10869 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10870 test "$hardcode_minus_L" != no; then
10871 # Linking always hardcodes the temporary library directory.
10872 hardcode_action=relink
10873 else
10874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10875 hardcode_action=immediate
10877 else
10878 # We cannot hardcode anything, or else we can only hardcode existing
10879 # directories.
10880 hardcode_action=unsupported
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10883 $as_echo "$hardcode_action" >&6; }
10885 if test "$hardcode_action" = relink ||
10886 test "$inherit_rpath" = yes; then
10887 # Fast installation is not supported
10888 enable_fast_install=no
10889 elif test "$shlibpath_overrides_runpath" = yes ||
10890 test "$enable_shared" = no; then
10891 # Fast installation is not necessary
10892 enable_fast_install=needless
10900 if test "x$enable_dlopen" != xyes; then
10901 enable_dlopen=unknown
10902 enable_dlopen_self=unknown
10903 enable_dlopen_self_static=unknown
10904 else
10905 lt_cv_dlopen=no
10906 lt_cv_dlopen_libs=
10908 case $host_os in
10909 beos*)
10910 lt_cv_dlopen="load_add_on"
10911 lt_cv_dlopen_libs=
10912 lt_cv_dlopen_self=yes
10915 mingw* | pw32* | cegcc*)
10916 lt_cv_dlopen="LoadLibrary"
10917 lt_cv_dlopen_libs=
10920 cygwin*)
10921 lt_cv_dlopen="dlopen"
10922 lt_cv_dlopen_libs=
10925 darwin*)
10926 # if libdl is installed we need to link against it
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10928 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10929 if ${ac_cv_lib_dl_dlopen+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-ldl $LIBS"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char dlopen ();
10945 main ()
10947 return dlopen ();
10949 return 0;
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_lib_dl_dlopen=yes
10954 else
10955 ac_cv_lib_dl_dlopen=no
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_lib_save_LIBS
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10962 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10963 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10965 else
10967 lt_cv_dlopen="dyld"
10968 lt_cv_dlopen_libs=
10969 lt_cv_dlopen_self=yes
10976 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10977 if test "x$ac_cv_func_shl_load" = xyes; then :
10978 lt_cv_dlopen="shl_load"
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10981 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10982 if ${ac_cv_lib_dld_shl_load+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldld $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char shl_load ();
10998 main ()
11000 return shl_load ();
11002 return 0;
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_dld_shl_load=yes
11007 else
11008 ac_cv_lib_dld_shl_load=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11015 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11016 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11017 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11018 else
11019 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11020 if test "x$ac_cv_func_dlopen" = xyes; then :
11021 lt_cv_dlopen="dlopen"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11024 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11025 if ${ac_cv_lib_dl_dlopen+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-ldl $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11041 main ()
11043 return dlopen ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_dl_dlopen=yes
11050 else
11051 ac_cv_lib_dl_dlopen=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11058 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11059 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11063 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11064 if ${ac_cv_lib_svld_dlopen+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lsvld $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char dlopen ();
11080 main ()
11082 return dlopen ();
11084 return 0;
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_svld_dlopen=yes
11089 else
11090 ac_cv_lib_svld_dlopen=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11097 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11098 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11102 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11103 if ${ac_cv_lib_dld_dld_link+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldld $LIBS"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char dld_link ();
11119 main ()
11121 return dld_link ();
11123 return 0;
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_lib_dld_dld_link=yes
11128 else
11129 ac_cv_lib_dld_dld_link=no
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11136 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11137 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11138 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11157 esac
11159 if test "x$lt_cv_dlopen" != xno; then
11160 enable_dlopen=yes
11161 else
11162 enable_dlopen=no
11165 case $lt_cv_dlopen in
11166 dlopen)
11167 save_CPPFLAGS="$CPPFLAGS"
11168 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11170 save_LDFLAGS="$LDFLAGS"
11171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11173 save_LIBS="$LIBS"
11174 LIBS="$lt_cv_dlopen_libs $LIBS"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11177 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11178 if ${lt_cv_dlopen_self+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test "$cross_compiling" = yes; then :
11182 lt_cv_dlopen_self=cross
11183 else
11184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11185 lt_status=$lt_dlunknown
11186 cat > conftest.$ac_ext <<_LT_EOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11190 #if HAVE_DLFCN_H
11191 #include <dlfcn.h>
11192 #endif
11194 #include <stdio.h>
11196 #ifdef RTLD_GLOBAL
11197 # define LT_DLGLOBAL RTLD_GLOBAL
11198 #else
11199 # ifdef DL_GLOBAL
11200 # define LT_DLGLOBAL DL_GLOBAL
11201 # else
11202 # define LT_DLGLOBAL 0
11203 # endif
11204 #endif
11206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11207 find out it does not work in some platform. */
11208 #ifndef LT_DLLAZY_OR_NOW
11209 # ifdef RTLD_LAZY
11210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11211 # else
11212 # ifdef DL_LAZY
11213 # define LT_DLLAZY_OR_NOW DL_LAZY
11214 # else
11215 # ifdef RTLD_NOW
11216 # define LT_DLLAZY_OR_NOW RTLD_NOW
11217 # else
11218 # ifdef DL_NOW
11219 # define LT_DLLAZY_OR_NOW DL_NOW
11220 # else
11221 # define LT_DLLAZY_OR_NOW 0
11222 # endif
11223 # endif
11224 # endif
11225 # endif
11226 #endif
11228 void fnord() { int i=42;}
11229 int main ()
11231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232 int status = $lt_dlunknown;
11234 if (self)
11236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11238 /* dlclose (self); */
11240 else
11241 puts (dlerror ());
11243 return status;
11245 _LT_EOF
11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11247 (eval $ac_link) 2>&5
11248 ac_status=$?
11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11251 (./conftest; exit; ) >&5 2>/dev/null
11252 lt_status=$?
11253 case x$lt_status in
11254 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11255 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11256 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11257 esac
11258 else :
11259 # compilation failed
11260 lt_cv_dlopen_self=no
11263 rm -fr conftest*
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11268 $as_echo "$lt_cv_dlopen_self" >&6; }
11270 if test "x$lt_cv_dlopen_self" = xyes; then
11271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11273 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11274 if ${lt_cv_dlopen_self_static+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 if test "$cross_compiling" = yes; then :
11278 lt_cv_dlopen_self_static=cross
11279 else
11280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11281 lt_status=$lt_dlunknown
11282 cat > conftest.$ac_ext <<_LT_EOF
11283 #line 11283 "configure"
11284 #include "confdefs.h"
11286 #if HAVE_DLFCN_H
11287 #include <dlfcn.h>
11288 #endif
11290 #include <stdio.h>
11292 #ifdef RTLD_GLOBAL
11293 # define LT_DLGLOBAL RTLD_GLOBAL
11294 #else
11295 # ifdef DL_GLOBAL
11296 # define LT_DLGLOBAL DL_GLOBAL
11297 # else
11298 # define LT_DLGLOBAL 0
11299 # endif
11300 #endif
11302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11303 find out it does not work in some platform. */
11304 #ifndef LT_DLLAZY_OR_NOW
11305 # ifdef RTLD_LAZY
11306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11307 # else
11308 # ifdef DL_LAZY
11309 # define LT_DLLAZY_OR_NOW DL_LAZY
11310 # else
11311 # ifdef RTLD_NOW
11312 # define LT_DLLAZY_OR_NOW RTLD_NOW
11313 # else
11314 # ifdef DL_NOW
11315 # define LT_DLLAZY_OR_NOW DL_NOW
11316 # else
11317 # define LT_DLLAZY_OR_NOW 0
11318 # endif
11319 # endif
11320 # endif
11321 # endif
11322 #endif
11324 void fnord() { int i=42;}
11325 int main ()
11327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328 int status = $lt_dlunknown;
11330 if (self)
11332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11334 /* dlclose (self); */
11336 else
11337 puts (dlerror ());
11339 return status;
11341 _LT_EOF
11342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11343 (eval $ac_link) 2>&5
11344 ac_status=$?
11345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11346 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11347 (./conftest; exit; ) >&5 2>/dev/null
11348 lt_status=$?
11349 case x$lt_status in
11350 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11351 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11352 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11353 esac
11354 else :
11355 # compilation failed
11356 lt_cv_dlopen_self_static=no
11359 rm -fr conftest*
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11364 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11367 CPPFLAGS="$save_CPPFLAGS"
11368 LDFLAGS="$save_LDFLAGS"
11369 LIBS="$save_LIBS"
11371 esac
11373 case $lt_cv_dlopen_self in
11374 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11375 *) enable_dlopen_self=unknown ;;
11376 esac
11378 case $lt_cv_dlopen_self_static in
11379 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11380 *) enable_dlopen_self_static=unknown ;;
11381 esac
11400 striplib=
11401 old_striplib=
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11403 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11404 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11406 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11408 $as_echo "yes" >&6; }
11409 else
11410 # FIXME - insert some real tests, host_os isn't really good enough
11411 case $host_os in
11412 darwin*)
11413 if test -n "$STRIP" ; then
11414 striplib="$STRIP -x"
11415 old_striplib="$STRIP -S"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11417 $as_echo "yes" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11427 esac
11441 # Report which library types will actually be built
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11443 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11445 $as_echo "$can_build_shared" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11448 $as_echo_n "checking whether to build shared libraries... " >&6; }
11449 test "$can_build_shared" = "no" && enable_shared=no
11451 # On AIX, shared libraries and static libraries use the same namespace, and
11452 # are all built from PIC.
11453 case $host_os in
11454 aix3*)
11455 test "$enable_shared" = yes && enable_static=no
11456 if test -n "$RANLIB"; then
11457 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11458 postinstall_cmds='$RANLIB $lib'
11462 aix[4-9]*)
11463 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11464 test "$enable_shared" = yes && enable_static=no
11467 esac
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11469 $as_echo "$enable_shared" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11472 $as_echo_n "checking whether to build static libraries... " >&6; }
11473 # Make sure either enable_shared or enable_static is yes.
11474 test "$enable_shared" = yes || enable_static=yes
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11476 $as_echo "$enable_static" >&6; }
11482 ac_ext=c
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11488 CC="$lt_save_CC"
11502 ac_config_commands="$ac_config_commands libtool"
11507 # Only expand once:
11512 # Extract the first word of "ar", so it can be a program name with args.
11513 set dummy ar; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_AR+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 case $AR in
11520 [\\/]* | ?:[\\/]*)
11521 ac_cv_path_AR="$AR" # Let the user override the test with a path.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11535 done
11536 done
11537 IFS=$as_save_IFS
11539 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
11541 esac
11543 AR=$ac_cv_path_AR
11544 if test -n "$AR"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11546 $as_echo "$AR" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11553 # Extract the first word of "rm", so it can be a program name with args.
11554 set dummy rm; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_path_RM+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $RM in
11561 [\\/]* | ?:[\\/]*)
11562 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11576 done
11577 done
11578 IFS=$as_save_IFS
11580 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11582 esac
11584 RM=$ac_cv_path_RM
11585 if test -n "$RM"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11587 $as_echo "$RM" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11594 # Extract the first word of "cp", so it can be a program name with args.
11595 set dummy cp; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_CP+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $CP in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11621 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11623 esac
11625 CP=$ac_cv_path_CP
11626 if test -n "$CP"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11628 $as_echo "$CP" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11635 # Extract the first word of "ln", so it can be a program name with args.
11636 set dummy ln; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_path_LN+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 case $LN in
11643 [\\/]* | ?:[\\/]*)
11644 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11658 done
11659 done
11660 IFS=$as_save_IFS
11662 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11664 esac
11666 LN=$ac_cv_path_LN
11667 if test -n "$LN"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11669 $as_echo "$LN" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11676 # Extract the first word of "ls", so it can be a program name with args.
11677 set dummy ls; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_path_LS+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 case $LS in
11684 [\\/]* | ?:[\\/]*)
11685 ac_cv_path_LS="$LS" # Let the user override the test with a path.
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11699 done
11700 done
11701 IFS=$as_save_IFS
11703 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
11705 esac
11707 LS=$ac_cv_path_LS
11708 if test -n "$LS"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
11710 $as_echo "$LS" >&6; }
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11717 # Extract the first word of "sed", so it can be a program name with args.
11718 set dummy sed; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_SED+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 case $SED in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11744 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11746 esac
11748 SED=$ac_cv_path_SED
11749 if test -n "$SED"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11751 $as_echo "$SED" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11758 # Extract the first word of "make", so it can be a program name with args.
11759 set dummy make; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_path_MAKE+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 case $MAKE in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11781 done
11782 done
11783 IFS=$as_save_IFS
11786 esac
11788 MAKE=$ac_cv_path_MAKE
11789 if test -n "$MAKE"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11791 $as_echo "$MAKE" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11803 $as_echo_n "checking whether NLS is requested... " >&6; }
11804 # Check whether --enable-nls was given.
11805 if test "${enable_nls+set}" = set; then :
11806 enableval=$enable_nls; USE_NLS=$enableval
11807 else
11808 USE_NLS=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11812 $as_echo "$USE_NLS" >&6; }
11819 # Prepare PATH_SEPARATOR.
11820 # The user is always right.
11821 if test "${PATH_SEPARATOR+set}" != set; then
11822 echo "#! /bin/sh" >conf$$.sh
11823 echo "exit 0" >>conf$$.sh
11824 chmod +x conf$$.sh
11825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11826 PATH_SEPARATOR=';'
11827 else
11828 PATH_SEPARATOR=:
11830 rm -f conf$$.sh
11833 # Find out how to test for executable files. Don't use a zero-byte file,
11834 # as systems may use methods other than mode bits to determine executability.
11835 cat >conf$$.file <<_ASEOF
11836 #! /bin/sh
11837 exit 0
11838 _ASEOF
11839 chmod +x conf$$.file
11840 if test -x conf$$.file >/dev/null 2>&1; then
11841 ac_executable_p="test -x"
11842 else
11843 ac_executable_p="test -f"
11845 rm -f conf$$.file
11847 # Extract the first word of "msgfmt", so it can be a program name with args.
11848 set dummy msgfmt; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_path_MSGFMT+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 case "$MSGFMT" in
11855 [\\/]* | ?:[\\/]*)
11856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11860 for ac_dir in $PATH; do
11861 IFS="$ac_save_IFS"
11862 test -z "$ac_dir" && ac_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11865 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11866 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11867 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11868 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11869 break 2
11872 done
11873 done
11874 IFS="$ac_save_IFS"
11875 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11877 esac
11879 MSGFMT="$ac_cv_path_MSGFMT"
11880 if test "$MSGFMT" != ":"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11882 $as_echo "$MSGFMT" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11888 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11889 set dummy gmsgfmt; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_path_GMSGFMT+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 case $GMSGFMT in
11896 [\\/]* | ?:[\\/]*)
11897 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11907 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11911 done
11912 done
11913 IFS=$as_save_IFS
11915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11917 esac
11919 GMSGFMT=$ac_cv_path_GMSGFMT
11920 if test -n "$GMSGFMT"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11922 $as_echo "$GMSGFMT" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11931 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11932 *) MSGFMT_015=$MSGFMT ;;
11933 esac
11935 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11936 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11937 *) GMSGFMT_015=$GMSGFMT ;;
11938 esac
11942 # Prepare PATH_SEPARATOR.
11943 # The user is always right.
11944 if test "${PATH_SEPARATOR+set}" != set; then
11945 echo "#! /bin/sh" >conf$$.sh
11946 echo "exit 0" >>conf$$.sh
11947 chmod +x conf$$.sh
11948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11949 PATH_SEPARATOR=';'
11950 else
11951 PATH_SEPARATOR=:
11953 rm -f conf$$.sh
11956 # Find out how to test for executable files. Don't use a zero-byte file,
11957 # as systems may use methods other than mode bits to determine executability.
11958 cat >conf$$.file <<_ASEOF
11959 #! /bin/sh
11960 exit 0
11961 _ASEOF
11962 chmod +x conf$$.file
11963 if test -x conf$$.file >/dev/null 2>&1; then
11964 ac_executable_p="test -x"
11965 else
11966 ac_executable_p="test -f"
11968 rm -f conf$$.file
11970 # Extract the first word of "xgettext", so it can be a program name with args.
11971 set dummy xgettext; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_XGETTEXT+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 case "$XGETTEXT" in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11983 for ac_dir in $PATH; do
11984 IFS="$ac_save_IFS"
11985 test -z "$ac_dir" && ac_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11988 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11989 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11990 (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
11991 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11992 break 2
11995 done
11996 done
11997 IFS="$ac_save_IFS"
11998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12000 esac
12002 XGETTEXT="$ac_cv_path_XGETTEXT"
12003 if test "$XGETTEXT" != ":"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12005 $as_echo "$XGETTEXT" >&6; }
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12011 rm -f messages.po
12013 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12014 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12015 *) XGETTEXT_015=$XGETTEXT ;;
12016 esac
12020 # Prepare PATH_SEPARATOR.
12021 # The user is always right.
12022 if test "${PATH_SEPARATOR+set}" != set; then
12023 echo "#! /bin/sh" >conf$$.sh
12024 echo "exit 0" >>conf$$.sh
12025 chmod +x conf$$.sh
12026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12027 PATH_SEPARATOR=';'
12028 else
12029 PATH_SEPARATOR=:
12031 rm -f conf$$.sh
12034 # Find out how to test for executable files. Don't use a zero-byte file,
12035 # as systems may use methods other than mode bits to determine executability.
12036 cat >conf$$.file <<_ASEOF
12037 #! /bin/sh
12038 exit 0
12039 _ASEOF
12040 chmod +x conf$$.file
12041 if test -x conf$$.file >/dev/null 2>&1; then
12042 ac_executable_p="test -x"
12043 else
12044 ac_executable_p="test -f"
12046 rm -f conf$$.file
12048 # Extract the first word of "msgmerge", so it can be a program name with args.
12049 set dummy msgmerge; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_MSGMERGE+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case "$MSGMERGE" in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12062 IFS="$ac_save_IFS"
12063 test -z "$ac_dir" && ac_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12066 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12069 break 2
12072 done
12073 done
12074 IFS="$ac_save_IFS"
12075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12077 esac
12079 MSGMERGE="$ac_cv_path_MSGMERGE"
12080 if test "$MSGMERGE" != ":"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12082 $as_echo "$MSGMERGE" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12089 test -n "$localedir" || localedir='${datadir}/locale'
12092 ac_config_commands="$ac_config_commands po-directories"
12096 if test "X$prefix" = "XNONE"; then
12097 acl_final_prefix="$ac_default_prefix"
12098 else
12099 acl_final_prefix="$prefix"
12101 if test "X$exec_prefix" = "XNONE"; then
12102 acl_final_exec_prefix='${prefix}'
12103 else
12104 acl_final_exec_prefix="$exec_prefix"
12106 acl_save_prefix="$prefix"
12107 prefix="$acl_final_prefix"
12108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12109 prefix="$acl_save_prefix"
12112 # Check whether --with-gnu-ld was given.
12113 if test "${with_gnu_ld+set}" = set; then :
12114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12115 else
12116 with_gnu_ld=no
12119 # Prepare PATH_SEPARATOR.
12120 # The user is always right.
12121 if test "${PATH_SEPARATOR+set}" != set; then
12122 echo "#! /bin/sh" >conf$$.sh
12123 echo "exit 0" >>conf$$.sh
12124 chmod +x conf$$.sh
12125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12126 PATH_SEPARATOR=';'
12127 else
12128 PATH_SEPARATOR=:
12130 rm -f conf$$.sh
12132 ac_prog=ld
12133 if test "$GCC" = yes; then
12134 # Check if gcc -print-prog-name=ld gives a path.
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12136 $as_echo_n "checking for ld used by GCC... " >&6; }
12137 case $host in
12138 *-*-mingw*)
12139 # gcc leaves a trailing carriage return which upsets mingw
12140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12143 esac
12144 case $ac_prog in
12145 # Accept absolute paths.
12146 [\\/]* | [A-Za-z]:[\\/]*)
12147 re_direlt='/[^/][^/]*/\.\./'
12148 # Canonicalize the path of ld
12149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12152 done
12153 test -z "$LD" && LD="$ac_prog"
12156 # If it fails, then pretend we aren't using GCC.
12157 ac_prog=ld
12160 # If it is relative, then search for the first ld in PATH.
12161 with_gnu_ld=unknown
12163 esac
12164 elif test "$with_gnu_ld" = yes; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12166 $as_echo_n "checking for GNU ld... " >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12169 $as_echo_n "checking for non-GNU ld... " >&6; }
12171 if ${acl_cv_path_LD+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test -z "$LD"; then
12175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12176 for ac_dir in $PATH; do
12177 test -z "$ac_dir" && ac_dir=.
12178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12179 acl_cv_path_LD="$ac_dir/$ac_prog"
12180 # Check to see if the program is GNU ld. I'd rather use --version,
12181 # but apparently some GNU ld's only accept -v.
12182 # Break only if it was the GNU/non-GNU ld that we prefer.
12183 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12184 *GNU* | *'with BFD'*)
12185 test "$with_gnu_ld" != no && break ;;
12187 test "$with_gnu_ld" != yes && break ;;
12188 esac
12190 done
12191 IFS="$ac_save_ifs"
12192 else
12193 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12197 LD="$acl_cv_path_LD"
12198 if test -n "$LD"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12200 $as_echo "$LD" >&6; }
12201 else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12205 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12207 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12208 if ${acl_cv_prog_gnu_ld+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12212 case `$LD -v 2>&1 </dev/null` in
12213 *GNU* | *'with BFD'*)
12214 acl_cv_prog_gnu_ld=yes ;;
12216 acl_cv_prog_gnu_ld=no ;;
12217 esac
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12221 with_gnu_ld=$acl_cv_prog_gnu_ld
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12227 $as_echo_n "checking for shared library run path origin... " >&6; }
12228 if ${acl_cv_rpath+:} false; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12232 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12233 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12234 . ./conftest.sh
12235 rm -f ./conftest.sh
12236 acl_cv_rpath=done
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12240 $as_echo "$acl_cv_rpath" >&6; }
12241 wl="$acl_cv_wl"
12242 libext="$acl_cv_libext"
12243 shlibext="$acl_cv_shlibext"
12244 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12245 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12246 hardcode_direct="$acl_cv_hardcode_direct"
12247 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12248 # Check whether --enable-rpath was given.
12249 if test "${enable_rpath+set}" = set; then :
12250 enableval=$enable_rpath; :
12251 else
12252 enable_rpath=yes
12257 acl_libdirstem=lib
12258 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12259 if test -n "$searchpath"; then
12260 acl_save_IFS="${IFS= }"; IFS=":"
12261 for searchdir in $searchpath; do
12262 if test -d "$searchdir"; then
12263 case "$searchdir" in
12264 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12265 *) searchdir=`cd "$searchdir" && pwd`
12266 case "$searchdir" in
12267 */lib64 ) acl_libdirstem=lib64 ;;
12268 esac ;;
12269 esac
12271 done
12272 IFS="$acl_save_IFS"
12282 use_additional=yes
12284 acl_save_prefix="$prefix"
12285 prefix="$acl_final_prefix"
12286 acl_save_exec_prefix="$exec_prefix"
12287 exec_prefix="$acl_final_exec_prefix"
12289 eval additional_includedir=\"$includedir\"
12290 eval additional_libdir=\"$libdir\"
12292 exec_prefix="$acl_save_exec_prefix"
12293 prefix="$acl_save_prefix"
12296 # Check whether --with-libiconv-prefix was given.
12297 if test "${with_libiconv_prefix+set}" = set; then :
12298 withval=$with_libiconv_prefix;
12299 if test "X$withval" = "Xno"; then
12300 use_additional=no
12301 else
12302 if test "X$withval" = "X"; then
12304 acl_save_prefix="$prefix"
12305 prefix="$acl_final_prefix"
12306 acl_save_exec_prefix="$exec_prefix"
12307 exec_prefix="$acl_final_exec_prefix"
12309 eval additional_includedir=\"$includedir\"
12310 eval additional_libdir=\"$libdir\"
12312 exec_prefix="$acl_save_exec_prefix"
12313 prefix="$acl_save_prefix"
12315 else
12316 additional_includedir="$withval/include"
12317 additional_libdir="$withval/$acl_libdirstem"
12323 LIBICONV=
12324 LTLIBICONV=
12325 INCICONV=
12326 rpathdirs=
12327 ltrpathdirs=
12328 names_already_handled=
12329 names_next_round='iconv '
12330 while test -n "$names_next_round"; do
12331 names_this_round="$names_next_round"
12332 names_next_round=
12333 for name in $names_this_round; do
12334 already_handled=
12335 for n in $names_already_handled; do
12336 if test "$n" = "$name"; then
12337 already_handled=yes
12338 break
12340 done
12341 if test -z "$already_handled"; then
12342 names_already_handled="$names_already_handled $name"
12343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12344 eval value=\"\$HAVE_LIB$uppername\"
12345 if test -n "$value"; then
12346 if test "$value" = yes; then
12347 eval value=\"\$LIB$uppername\"
12348 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12349 eval value=\"\$LTLIB$uppername\"
12350 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12351 else
12354 else
12355 found_dir=
12356 found_la=
12357 found_so=
12358 found_a=
12359 if test $use_additional = yes; then
12360 if test -n "$shlibext" \
12361 && { test -f "$additional_libdir/lib$name.$shlibext" \
12362 || { test "$shlibext" = dll \
12363 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12364 found_dir="$additional_libdir"
12365 if test -f "$additional_libdir/lib$name.$shlibext"; then
12366 found_so="$additional_libdir/lib$name.$shlibext"
12367 else
12368 found_so="$additional_libdir/lib$name.dll.a"
12370 if test -f "$additional_libdir/lib$name.la"; then
12371 found_la="$additional_libdir/lib$name.la"
12373 else
12374 if test -f "$additional_libdir/lib$name.$libext"; then
12375 found_dir="$additional_libdir"
12376 found_a="$additional_libdir/lib$name.$libext"
12377 if test -f "$additional_libdir/lib$name.la"; then
12378 found_la="$additional_libdir/lib$name.la"
12383 if test "X$found_dir" = "X"; then
12384 for x in $LDFLAGS $LTLIBICONV; do
12386 acl_save_prefix="$prefix"
12387 prefix="$acl_final_prefix"
12388 acl_save_exec_prefix="$exec_prefix"
12389 exec_prefix="$acl_final_exec_prefix"
12390 eval x=\"$x\"
12391 exec_prefix="$acl_save_exec_prefix"
12392 prefix="$acl_save_prefix"
12394 case "$x" in
12395 -L*)
12396 dir=`echo "X$x" | sed -e 's/^X-L//'`
12397 if test -n "$shlibext" \
12398 && { test -f "$dir/lib$name.$shlibext" \
12399 || { test "$shlibext" = dll \
12400 && test -f "$dir/lib$name.dll.a"; }; }; then
12401 found_dir="$dir"
12402 if test -f "$dir/lib$name.$shlibext"; then
12403 found_so="$dir/lib$name.$shlibext"
12404 else
12405 found_so="$dir/lib$name.dll.a"
12407 if test -f "$dir/lib$name.la"; then
12408 found_la="$dir/lib$name.la"
12410 else
12411 if test -f "$dir/lib$name.$libext"; then
12412 found_dir="$dir"
12413 found_a="$dir/lib$name.$libext"
12414 if test -f "$dir/lib$name.la"; then
12415 found_la="$dir/lib$name.la"
12420 esac
12421 if test "X$found_dir" != "X"; then
12422 break
12424 done
12426 if test "X$found_dir" != "X"; then
12427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12428 if test "X$found_so" != "X"; then
12429 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12431 else
12432 haveit=
12433 for x in $ltrpathdirs; do
12434 if test "X$x" = "X$found_dir"; then
12435 haveit=yes
12436 break
12438 done
12439 if test -z "$haveit"; then
12440 ltrpathdirs="$ltrpathdirs $found_dir"
12442 if test "$hardcode_direct" = yes; then
12443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12444 else
12445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12447 haveit=
12448 for x in $rpathdirs; do
12449 if test "X$x" = "X$found_dir"; then
12450 haveit=yes
12451 break
12453 done
12454 if test -z "$haveit"; then
12455 rpathdirs="$rpathdirs $found_dir"
12457 else
12458 haveit=
12459 for x in $LDFLAGS $LIBICONV; do
12461 acl_save_prefix="$prefix"
12462 prefix="$acl_final_prefix"
12463 acl_save_exec_prefix="$exec_prefix"
12464 exec_prefix="$acl_final_exec_prefix"
12465 eval x=\"$x\"
12466 exec_prefix="$acl_save_exec_prefix"
12467 prefix="$acl_save_prefix"
12469 if test "X$x" = "X-L$found_dir"; then
12470 haveit=yes
12471 break
12473 done
12474 if test -z "$haveit"; then
12475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12477 if test "$hardcode_minus_L" != no; then
12478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12479 else
12480 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12485 else
12486 if test "X$found_a" != "X"; then
12487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12488 else
12489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12492 additional_includedir=
12493 case "$found_dir" in
12494 */$acl_libdirstem | */$acl_libdirstem/)
12495 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12496 additional_includedir="$basedir/include"
12498 esac
12499 if test "X$additional_includedir" != "X"; then
12500 if test "X$additional_includedir" != "X/usr/include"; then
12501 haveit=
12502 if test "X$additional_includedir" = "X/usr/local/include"; then
12503 if test -n "$GCC"; then
12504 case $host_os in
12505 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12506 esac
12509 if test -z "$haveit"; then
12510 for x in $CPPFLAGS $INCICONV; do
12512 acl_save_prefix="$prefix"
12513 prefix="$acl_final_prefix"
12514 acl_save_exec_prefix="$exec_prefix"
12515 exec_prefix="$acl_final_exec_prefix"
12516 eval x=\"$x\"
12517 exec_prefix="$acl_save_exec_prefix"
12518 prefix="$acl_save_prefix"
12520 if test "X$x" = "X-I$additional_includedir"; then
12521 haveit=yes
12522 break
12524 done
12525 if test -z "$haveit"; then
12526 if test -d "$additional_includedir"; then
12527 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12533 if test -n "$found_la"; then
12534 save_libdir="$libdir"
12535 case "$found_la" in
12536 */* | *\\*) . "$found_la" ;;
12537 *) . "./$found_la" ;;
12538 esac
12539 libdir="$save_libdir"
12540 for dep in $dependency_libs; do
12541 case "$dep" in
12542 -L*)
12543 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12544 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12545 haveit=
12546 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12547 if test -n "$GCC"; then
12548 case $host_os in
12549 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12550 esac
12553 if test -z "$haveit"; then
12554 haveit=
12555 for x in $LDFLAGS $LIBICONV; do
12557 acl_save_prefix="$prefix"
12558 prefix="$acl_final_prefix"
12559 acl_save_exec_prefix="$exec_prefix"
12560 exec_prefix="$acl_final_exec_prefix"
12561 eval x=\"$x\"
12562 exec_prefix="$acl_save_exec_prefix"
12563 prefix="$acl_save_prefix"
12565 if test "X$x" = "X-L$additional_libdir"; then
12566 haveit=yes
12567 break
12569 done
12570 if test -z "$haveit"; then
12571 if test -d "$additional_libdir"; then
12572 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12575 haveit=
12576 for x in $LDFLAGS $LTLIBICONV; do
12578 acl_save_prefix="$prefix"
12579 prefix="$acl_final_prefix"
12580 acl_save_exec_prefix="$exec_prefix"
12581 exec_prefix="$acl_final_exec_prefix"
12582 eval x=\"$x\"
12583 exec_prefix="$acl_save_exec_prefix"
12584 prefix="$acl_save_prefix"
12586 if test "X$x" = "X-L$additional_libdir"; then
12587 haveit=yes
12588 break
12590 done
12591 if test -z "$haveit"; then
12592 if test -d "$additional_libdir"; then
12593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12599 -R*)
12600 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12601 if test "$enable_rpath" != no; then
12602 haveit=
12603 for x in $rpathdirs; do
12604 if test "X$x" = "X$dir"; then
12605 haveit=yes
12606 break
12608 done
12609 if test -z "$haveit"; then
12610 rpathdirs="$rpathdirs $dir"
12612 haveit=
12613 for x in $ltrpathdirs; do
12614 if test "X$x" = "X$dir"; then
12615 haveit=yes
12616 break
12618 done
12619 if test -z "$haveit"; then
12620 ltrpathdirs="$ltrpathdirs $dir"
12624 -l*)
12625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12627 *.la)
12628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12631 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12634 esac
12635 done
12637 else
12638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12643 done
12644 done
12645 if test "X$rpathdirs" != "X"; then
12646 if test -n "$hardcode_libdir_separator"; then
12647 alldirs=
12648 for found_dir in $rpathdirs; do
12649 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12650 done
12651 acl_save_libdir="$libdir"
12652 libdir="$alldirs"
12653 eval flag=\"$hardcode_libdir_flag_spec\"
12654 libdir="$acl_save_libdir"
12655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12656 else
12657 for found_dir in $rpathdirs; do
12658 acl_save_libdir="$libdir"
12659 libdir="$found_dir"
12660 eval flag=\"$hardcode_libdir_flag_spec\"
12661 libdir="$acl_save_libdir"
12662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12663 done
12666 if test "X$ltrpathdirs" != "X"; then
12667 for found_dir in $ltrpathdirs; do
12668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12669 done
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12697 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12698 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 gt_save_LIBS="$LIBS"
12702 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <CoreFoundation/CFPreferences.h>
12707 main ()
12709 CFPreferencesCopyAppValue(NULL, NULL)
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715 gt_cv_func_CFPreferencesCopyAppValue=yes
12716 else
12717 gt_cv_func_CFPreferencesCopyAppValue=no
12719 rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721 LIBS="$gt_save_LIBS"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12724 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12725 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12727 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12731 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12732 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 gt_save_LIBS="$LIBS"
12736 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 #include <CoreFoundation/CFLocale.h>
12741 main ()
12743 CFLocaleCopyCurrent();
12745 return 0;
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 gt_cv_func_CFLocaleCopyCurrent=yes
12750 else
12751 gt_cv_func_CFLocaleCopyCurrent=no
12753 rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS="$gt_save_LIBS"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12758 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12759 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12761 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12764 INTL_MACOSX_LIBS=
12765 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12766 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12774 LIBINTL=
12775 LTLIBINTL=
12776 POSUB=
12778 case " $gt_needs " in
12779 *" need-formatstring-macros "*) gt_api_version=3 ;;
12780 *" need-ngettext "*) gt_api_version=2 ;;
12781 *) gt_api_version=1 ;;
12782 esac
12783 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12784 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12786 if test "$USE_NLS" = "yes"; then
12787 gt_use_preinstalled_gnugettext=no
12790 if test $gt_api_version -ge 3; then
12791 gt_revision_test_code='
12792 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12793 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12794 #endif
12795 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12797 else
12798 gt_revision_test_code=
12800 if test $gt_api_version -ge 2; then
12801 gt_expression_test_code=' + * ngettext ("", "", 0)'
12802 else
12803 gt_expression_test_code=
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12807 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12808 if eval \${$gt_func_gnugettext_libc+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #include <libintl.h>
12814 $gt_revision_test_code
12815 extern int _nl_msg_cat_cntr;
12816 extern int *_nl_domain_bindings;
12818 main ()
12820 bindtextdomain ("", "");
12821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 eval "$gt_func_gnugettext_libc=yes"
12828 else
12829 eval "$gt_func_gnugettext_libc=no"
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12834 eval ac_res=\$$gt_func_gnugettext_libc
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12836 $as_echo "$ac_res" >&6; }
12838 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12844 am_save_CPPFLAGS="$CPPFLAGS"
12846 for element in $INCICONV; do
12847 haveit=
12848 for x in $CPPFLAGS; do
12850 acl_save_prefix="$prefix"
12851 prefix="$acl_final_prefix"
12852 acl_save_exec_prefix="$exec_prefix"
12853 exec_prefix="$acl_final_exec_prefix"
12854 eval x=\"$x\"
12855 exec_prefix="$acl_save_exec_prefix"
12856 prefix="$acl_save_prefix"
12858 if test "X$x" = "X$element"; then
12859 haveit=yes
12860 break
12862 done
12863 if test -z "$haveit"; then
12864 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12866 done
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12870 $as_echo_n "checking for iconv... " >&6; }
12871 if ${am_cv_func_iconv+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12875 am_cv_func_iconv="no, consider installing GNU libiconv"
12876 am_cv_lib_iconv=no
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 #include <stdlib.h>
12880 #include <iconv.h>
12882 main ()
12884 iconv_t cd = iconv_open("","");
12885 iconv(cd,NULL,NULL,NULL,NULL);
12886 iconv_close(cd);
12888 return 0;
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 am_cv_func_iconv=yes
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 if test "$am_cv_func_iconv" != yes; then
12897 am_save_LIBS="$LIBS"
12898 LIBS="$LIBS $LIBICONV"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901 #include <stdlib.h>
12902 #include <iconv.h>
12904 main ()
12906 iconv_t cd = iconv_open("","");
12907 iconv(cd,NULL,NULL,NULL,NULL);
12908 iconv_close(cd);
12910 return 0;
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 am_cv_lib_iconv=yes
12915 am_cv_func_iconv=yes
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS="$am_save_LIBS"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12924 $as_echo "$am_cv_func_iconv" >&6; }
12925 if test "$am_cv_func_iconv" = yes; then
12927 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12930 if test "$am_cv_lib_iconv" = yes; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12932 $as_echo_n "checking how to link with libiconv... " >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12934 $as_echo "$LIBICONV" >&6; }
12935 else
12936 CPPFLAGS="$am_save_CPPFLAGS"
12937 LIBICONV=
12938 LTLIBICONV=
12947 use_additional=yes
12949 acl_save_prefix="$prefix"
12950 prefix="$acl_final_prefix"
12951 acl_save_exec_prefix="$exec_prefix"
12952 exec_prefix="$acl_final_exec_prefix"
12954 eval additional_includedir=\"$includedir\"
12955 eval additional_libdir=\"$libdir\"
12957 exec_prefix="$acl_save_exec_prefix"
12958 prefix="$acl_save_prefix"
12961 # Check whether --with-libintl-prefix was given.
12962 if test "${with_libintl_prefix+set}" = set; then :
12963 withval=$with_libintl_prefix;
12964 if test "X$withval" = "Xno"; then
12965 use_additional=no
12966 else
12967 if test "X$withval" = "X"; then
12969 acl_save_prefix="$prefix"
12970 prefix="$acl_final_prefix"
12971 acl_save_exec_prefix="$exec_prefix"
12972 exec_prefix="$acl_final_exec_prefix"
12974 eval additional_includedir=\"$includedir\"
12975 eval additional_libdir=\"$libdir\"
12977 exec_prefix="$acl_save_exec_prefix"
12978 prefix="$acl_save_prefix"
12980 else
12981 additional_includedir="$withval/include"
12982 additional_libdir="$withval/$acl_libdirstem"
12988 LIBINTL=
12989 LTLIBINTL=
12990 INCINTL=
12991 rpathdirs=
12992 ltrpathdirs=
12993 names_already_handled=
12994 names_next_round='intl '
12995 while test -n "$names_next_round"; do
12996 names_this_round="$names_next_round"
12997 names_next_round=
12998 for name in $names_this_round; do
12999 already_handled=
13000 for n in $names_already_handled; do
13001 if test "$n" = "$name"; then
13002 already_handled=yes
13003 break
13005 done
13006 if test -z "$already_handled"; then
13007 names_already_handled="$names_already_handled $name"
13008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13009 eval value=\"\$HAVE_LIB$uppername\"
13010 if test -n "$value"; then
13011 if test "$value" = yes; then
13012 eval value=\"\$LIB$uppername\"
13013 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13014 eval value=\"\$LTLIB$uppername\"
13015 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13016 else
13019 else
13020 found_dir=
13021 found_la=
13022 found_so=
13023 found_a=
13024 if test $use_additional = yes; then
13025 if test -n "$shlibext" \
13026 && { test -f "$additional_libdir/lib$name.$shlibext" \
13027 || { test "$shlibext" = dll \
13028 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13029 found_dir="$additional_libdir"
13030 if test -f "$additional_libdir/lib$name.$shlibext"; then
13031 found_so="$additional_libdir/lib$name.$shlibext"
13032 else
13033 found_so="$additional_libdir/lib$name.dll.a"
13035 if test -f "$additional_libdir/lib$name.la"; then
13036 found_la="$additional_libdir/lib$name.la"
13038 else
13039 if test -f "$additional_libdir/lib$name.$libext"; then
13040 found_dir="$additional_libdir"
13041 found_a="$additional_libdir/lib$name.$libext"
13042 if test -f "$additional_libdir/lib$name.la"; then
13043 found_la="$additional_libdir/lib$name.la"
13048 if test "X$found_dir" = "X"; then
13049 for x in $LDFLAGS $LTLIBINTL; do
13051 acl_save_prefix="$prefix"
13052 prefix="$acl_final_prefix"
13053 acl_save_exec_prefix="$exec_prefix"
13054 exec_prefix="$acl_final_exec_prefix"
13055 eval x=\"$x\"
13056 exec_prefix="$acl_save_exec_prefix"
13057 prefix="$acl_save_prefix"
13059 case "$x" in
13060 -L*)
13061 dir=`echo "X$x" | sed -e 's/^X-L//'`
13062 if test -n "$shlibext" \
13063 && { test -f "$dir/lib$name.$shlibext" \
13064 || { test "$shlibext" = dll \
13065 && test -f "$dir/lib$name.dll.a"; }; }; then
13066 found_dir="$dir"
13067 if test -f "$dir/lib$name.$shlibext"; then
13068 found_so="$dir/lib$name.$shlibext"
13069 else
13070 found_so="$dir/lib$name.dll.a"
13072 if test -f "$dir/lib$name.la"; then
13073 found_la="$dir/lib$name.la"
13075 else
13076 if test -f "$dir/lib$name.$libext"; then
13077 found_dir="$dir"
13078 found_a="$dir/lib$name.$libext"
13079 if test -f "$dir/lib$name.la"; then
13080 found_la="$dir/lib$name.la"
13085 esac
13086 if test "X$found_dir" != "X"; then
13087 break
13089 done
13091 if test "X$found_dir" != "X"; then
13092 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13093 if test "X$found_so" != "X"; then
13094 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13096 else
13097 haveit=
13098 for x in $ltrpathdirs; do
13099 if test "X$x" = "X$found_dir"; then
13100 haveit=yes
13101 break
13103 done
13104 if test -z "$haveit"; then
13105 ltrpathdirs="$ltrpathdirs $found_dir"
13107 if test "$hardcode_direct" = yes; then
13108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13109 else
13110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13112 haveit=
13113 for x in $rpathdirs; do
13114 if test "X$x" = "X$found_dir"; then
13115 haveit=yes
13116 break
13118 done
13119 if test -z "$haveit"; then
13120 rpathdirs="$rpathdirs $found_dir"
13122 else
13123 haveit=
13124 for x in $LDFLAGS $LIBINTL; do
13126 acl_save_prefix="$prefix"
13127 prefix="$acl_final_prefix"
13128 acl_save_exec_prefix="$exec_prefix"
13129 exec_prefix="$acl_final_exec_prefix"
13130 eval x=\"$x\"
13131 exec_prefix="$acl_save_exec_prefix"
13132 prefix="$acl_save_prefix"
13134 if test "X$x" = "X-L$found_dir"; then
13135 haveit=yes
13136 break
13138 done
13139 if test -z "$haveit"; then
13140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13142 if test "$hardcode_minus_L" != no; then
13143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13144 else
13145 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13150 else
13151 if test "X$found_a" != "X"; then
13152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13153 else
13154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13157 additional_includedir=
13158 case "$found_dir" in
13159 */$acl_libdirstem | */$acl_libdirstem/)
13160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13161 additional_includedir="$basedir/include"
13163 esac
13164 if test "X$additional_includedir" != "X"; then
13165 if test "X$additional_includedir" != "X/usr/include"; then
13166 haveit=
13167 if test "X$additional_includedir" = "X/usr/local/include"; then
13168 if test -n "$GCC"; then
13169 case $host_os in
13170 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13171 esac
13174 if test -z "$haveit"; then
13175 for x in $CPPFLAGS $INCINTL; do
13177 acl_save_prefix="$prefix"
13178 prefix="$acl_final_prefix"
13179 acl_save_exec_prefix="$exec_prefix"
13180 exec_prefix="$acl_final_exec_prefix"
13181 eval x=\"$x\"
13182 exec_prefix="$acl_save_exec_prefix"
13183 prefix="$acl_save_prefix"
13185 if test "X$x" = "X-I$additional_includedir"; then
13186 haveit=yes
13187 break
13189 done
13190 if test -z "$haveit"; then
13191 if test -d "$additional_includedir"; then
13192 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13198 if test -n "$found_la"; then
13199 save_libdir="$libdir"
13200 case "$found_la" in
13201 */* | *\\*) . "$found_la" ;;
13202 *) . "./$found_la" ;;
13203 esac
13204 libdir="$save_libdir"
13205 for dep in $dependency_libs; do
13206 case "$dep" in
13207 -L*)
13208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13209 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13210 haveit=
13211 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13212 if test -n "$GCC"; then
13213 case $host_os in
13214 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13215 esac
13218 if test -z "$haveit"; then
13219 haveit=
13220 for x in $LDFLAGS $LIBINTL; do
13222 acl_save_prefix="$prefix"
13223 prefix="$acl_final_prefix"
13224 acl_save_exec_prefix="$exec_prefix"
13225 exec_prefix="$acl_final_exec_prefix"
13226 eval x=\"$x\"
13227 exec_prefix="$acl_save_exec_prefix"
13228 prefix="$acl_save_prefix"
13230 if test "X$x" = "X-L$additional_libdir"; then
13231 haveit=yes
13232 break
13234 done
13235 if test -z "$haveit"; then
13236 if test -d "$additional_libdir"; then
13237 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13240 haveit=
13241 for x in $LDFLAGS $LTLIBINTL; do
13243 acl_save_prefix="$prefix"
13244 prefix="$acl_final_prefix"
13245 acl_save_exec_prefix="$exec_prefix"
13246 exec_prefix="$acl_final_exec_prefix"
13247 eval x=\"$x\"
13248 exec_prefix="$acl_save_exec_prefix"
13249 prefix="$acl_save_prefix"
13251 if test "X$x" = "X-L$additional_libdir"; then
13252 haveit=yes
13253 break
13255 done
13256 if test -z "$haveit"; then
13257 if test -d "$additional_libdir"; then
13258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13264 -R*)
13265 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13266 if test "$enable_rpath" != no; then
13267 haveit=
13268 for x in $rpathdirs; do
13269 if test "X$x" = "X$dir"; then
13270 haveit=yes
13271 break
13273 done
13274 if test -z "$haveit"; then
13275 rpathdirs="$rpathdirs $dir"
13277 haveit=
13278 for x in $ltrpathdirs; do
13279 if test "X$x" = "X$dir"; then
13280 haveit=yes
13281 break
13283 done
13284 if test -z "$haveit"; then
13285 ltrpathdirs="$ltrpathdirs $dir"
13289 -l*)
13290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13292 *.la)
13293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13296 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13297 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13299 esac
13300 done
13302 else
13303 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13308 done
13309 done
13310 if test "X$rpathdirs" != "X"; then
13311 if test -n "$hardcode_libdir_separator"; then
13312 alldirs=
13313 for found_dir in $rpathdirs; do
13314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13315 done
13316 acl_save_libdir="$libdir"
13317 libdir="$alldirs"
13318 eval flag=\"$hardcode_libdir_flag_spec\"
13319 libdir="$acl_save_libdir"
13320 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13321 else
13322 for found_dir in $rpathdirs; do
13323 acl_save_libdir="$libdir"
13324 libdir="$found_dir"
13325 eval flag=\"$hardcode_libdir_flag_spec\"
13326 libdir="$acl_save_libdir"
13327 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13328 done
13331 if test "X$ltrpathdirs" != "X"; then
13332 for found_dir in $ltrpathdirs; do
13333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13334 done
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 gt_save_CPPFLAGS="$CPPFLAGS"
13343 CPPFLAGS="$CPPFLAGS $INCINTL"
13344 gt_save_LIBS="$LIBS"
13345 LIBS="$LIBS $LIBINTL"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <libintl.h>
13349 $gt_revision_test_code
13350 extern int _nl_msg_cat_cntr;
13351 extern
13352 #ifdef __cplusplus
13354 #endif
13355 const char *_nl_expand_alias (const char *);
13357 main ()
13359 bindtextdomain ("", "");
13360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 eval "$gt_func_gnugettext_libintl=yes"
13367 else
13368 eval "$gt_func_gnugettext_libintl=no"
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13373 LIBS="$LIBS $LIBICONV"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 #include <libintl.h>
13377 $gt_revision_test_code
13378 extern int _nl_msg_cat_cntr;
13379 extern
13380 #ifdef __cplusplus
13382 #endif
13383 const char *_nl_expand_alias (const char *);
13385 main ()
13387 bindtextdomain ("", "");
13388 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13390 return 0;
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 LIBINTL="$LIBINTL $LIBICONV"
13395 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13396 eval "$gt_func_gnugettext_libintl=yes"
13399 rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13402 CPPFLAGS="$gt_save_CPPFLAGS"
13403 LIBS="$gt_save_LIBS"
13405 eval ac_res=\$$gt_func_gnugettext_libintl
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13407 $as_echo "$ac_res" >&6; }
13410 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13411 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13412 && test "$PACKAGE" != gettext-runtime \
13413 && test "$PACKAGE" != gettext-tools; }; then
13414 gt_use_preinstalled_gnugettext=yes
13415 else
13416 LIBINTL=
13417 LTLIBINTL=
13418 INCINTL=
13423 if test -n "$INTL_MACOSX_LIBS"; then
13424 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13425 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13426 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13427 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13434 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13436 else
13437 USE_NLS=no
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13442 $as_echo_n "checking whether to use NLS... " >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13444 $as_echo "$USE_NLS" >&6; }
13445 if test "$USE_NLS" = "yes"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13447 $as_echo_n "checking where the gettext function comes from... " >&6; }
13448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13449 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13450 gt_source="external libintl"
13451 else
13452 gt_source="libc"
13454 else
13455 gt_source="included intl directory"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13458 $as_echo "$gt_source" >&6; }
13461 if test "$USE_NLS" = "yes"; then
13463 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13464 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13466 $as_echo_n "checking how to link with libintl... " >&6; }
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13468 $as_echo "$LIBINTL" >&6; }
13470 for element in $INCINTL; do
13471 haveit=
13472 for x in $CPPFLAGS; do
13474 acl_save_prefix="$prefix"
13475 prefix="$acl_final_prefix"
13476 acl_save_exec_prefix="$exec_prefix"
13477 exec_prefix="$acl_final_exec_prefix"
13478 eval x=\"$x\"
13479 exec_prefix="$acl_save_exec_prefix"
13480 prefix="$acl_save_prefix"
13482 if test "X$x" = "X$element"; then
13483 haveit=yes
13484 break
13486 done
13487 if test -z "$haveit"; then
13488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13490 done
13495 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13498 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13502 POSUB=po
13507 INTLLIBS="$LIBINTL"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
13516 $as_echo_n "checking option: dmalloc enabled... " >&6; }
13517 # Check whether --enable-dmalloc was given.
13518 if test "${enable_dmalloc+set}" = set; then :
13519 enableval=$enable_dmalloc;
13522 if test x$enable_dmalloc = "xyes" ; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13531 # Check whether --with-dmalloc-dir was given.
13532 if test "${with_dmalloc_dir+set}" = set; then :
13533 withval=$with_dmalloc_dir;
13534 if test "x$withval" != "xno" ; then
13535 enable_dmalloc = "yes"
13536 CPPFLAGS="$CPPFLAGS -I${withval}"
13537 LDFLAGS="$LDFLAGS -L${withval}"
13543 if test x$enable_dmalloc = "xyes" ; then
13545 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
13549 ALPINE_psefcmd="/bin/ps auxww"
13550 ALPINE_psfailed="0"
13551 ALPINE_PSTEST="-"
13553 # Check whether --with-ps-cmd was given.
13554 if test "${with_ps_cmd+set}" = set; then :
13555 withval=$with_ps_cmd;
13556 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
13557 withval=$ALPINE_psefcmd
13559 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13560 if test -n "$ALPINE_PSTEST" ; then
13561 ALPINE_psefcmd="$withval"
13562 else
13563 ALPINE_psfailed="1"
13564 if test "x$ALPINE_psefcmd" != "x$withval" ; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
13566 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
13572 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
13573 withval="$ALPINE_psefcmd"
13574 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13575 if test -z "$ALPINE_PSTEST" ; then
13576 ALPINE_psfailed="1"
13577 else
13578 ALPINE_psfailed="0"
13581 if test "$ALPINE_psfailed" = "0" ; then
13583 cat >>confdefs.h <<_ACEOF
13584 #define PSEFCMD "$ALPINE_psefcmd"
13585 _ACEOF
13589 case $host in
13590 *apple-darwin*)
13591 if test -d /opt/local ; then
13592 localedir="/opt/local/share/locale"
13593 else
13594 localedir="\${datadir}/locale"
13597 *-*-cygwin)
13598 localedir="/usr/share"
13601 localedir="\${datadir}/locale"
13603 esac
13605 # Check whether --with-localedir was given.
13606 if test "${with_localedir+set}" = set; then :
13607 withval=$with_localedir;
13608 case $withval in
13609 yes)
13614 localedir=$withval
13616 esac
13620 localedir="$localedir"
13623 # Setup OS-Specific features
13624 case "$host" in
13625 *darwin*)
13626 # Check whether --enable-osx-universal-binaries was given.
13627 if test "${enable_osx_universal_binaries+set}" = set; then :
13628 enableval=$enable_osx_universal_binaries;
13631 if test "x$enable_osx_universal_binaries" = "xyes" ; then
13632 if test "x$enable_dependency_tracking" != xno ; then
13633 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
13634 Please re-run configure with these options:
13635 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
13637 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
13638 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
13639 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
13640 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
13641 else
13642 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
13644 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
13645 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
13646 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
13647 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
13648 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
13649 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
13652 esac
13655 # Check whether --with-include-path was given.
13656 if test "${with_include_path+set}" = set; then :
13657 withval=$with_include_path;
13658 case $withval in
13661 yes)
13664 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
13665 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
13666 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
13668 esac
13674 # Check whether --with-lib-path was given.
13675 if test "${with_lib_path+set}" = set; then :
13676 withval=$with_lib_path;
13677 case $withval in
13680 yes)
13683 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
13684 LDFLAGS="$LDFLAGS $new_ldflags"
13685 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
13687 esac
13693 # Check whether --with-pubcookie was given.
13694 if test "${with_pubcookie+set}" = set; then :
13695 withval=$with_pubcookie;
13696 if test "x$withval" != "xno" ; then
13697 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
13705 # Check whether --with-web-bin was given.
13706 if test "${with_web_bin+set}" = set; then :
13707 withval=$with_web_bin;
13708 case "$withval" in
13711 yes)
13714 WEB_BINDIR=$withval
13716 esac
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
13722 $as_echo_n "checking option: debugging is enabled... " >&6; }
13723 # Check whether --enable-debug was given.
13724 if test "${enable_debug+set}" = set; then :
13725 enableval=$enable_debug;
13728 if test x$enable_debug != "xno" ; then
13729 AM_CFLAGS="$AM_CFLAGS -g"
13731 $as_echo "#define DEBUG 1" >>confdefs.h
13734 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 $as_echo "yes" >&6; }
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
13744 $as_echo_n "checking option: optimization is enabled... " >&6; }
13745 # Check whether --enable-optimization was given.
13746 if test "${enable_optimization+set}" = set; then :
13747 enableval=$enable_optimization;
13750 if test x$enable_optimization != "xno" ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 else
13754 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
13755 alpine_c_client_gccoptlevel="-O0"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
13761 $as_echo_n "checking option: mouse support enabled... " >&6; }
13762 # Check whether --enable-mouse was given.
13763 if test "${enable_mouse+set}" = set; then :
13764 enableval=$enable_mouse;
13767 if test x$enable_mouse != "xno" ; then
13769 $as_echo "#define MOUSE /**/" >>confdefs.h
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772 $as_echo "yes" >&6; }
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
13779 $as_echo_n "checking option: quotas enabled... " >&6; }
13780 # Check whether --enable-quotas was given.
13781 if test "${enable_quotas+set}" = set; then :
13782 enableval=$enable_quotas;
13785 if test x$enable_quotas = "xyes" ; then
13787 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790 $as_echo "yes" >&6; }
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
13797 $as_echo_n "checking option: From changing enabled... " >&6; }
13798 # Check whether --enable-from_changing was given.
13799 if test "${enable_from_changing+set}" = set; then :
13800 enableval=$enable_from_changing;
13803 if test x$enable_from_changing != "xno" ; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 $as_echo "yes" >&6; }
13806 else
13808 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
13815 $as_echo_n "checking option: background post enabled... " >&6; }
13816 # Check whether --enable-background-post was given.
13817 if test "${enable_background_post+set}" = set; then :
13818 enableval=$enable_background_post;
13821 if test x$enable_background_post != "xno" ; then
13823 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826 $as_echo "yes" >&6; }
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
13833 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
13834 # Check whether --enable-keyboard-lock was given.
13835 if test "${enable_keyboard_lock+set}" = set; then :
13836 enableval=$enable_keyboard_lock;
13839 if test x$enable_keyboard_lock != "xno" ; then
13841 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
13851 $as_echo_n "checking option: from encoding enabled... " >&6; }
13852 # Check whether --enable-from-encoding was given.
13853 if test "${enable_from_encoding+set}" = set; then :
13854 enableval=$enable_from_encoding;
13857 if test x$enable_from_encoding = "xyes" ; then
13859 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862 $as_echo "yes" >&6; }
13863 else
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13869 # Check whether --with-smtp-msa was given.
13870 if test "${with_smtp_msa+set}" = set; then :
13871 withval=$with_smtp_msa;
13872 case "$withval" in
13875 yes)
13876 # Extract the first word of "sendmail", so it can be a program name with args.
13877 set dummy sendmail; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_path_SENDMAIL+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 case $SENDMAIL in
13884 [\\/]* | ?:[\\/]*)
13885 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 as_dummy="$PATH:/usr/sbin:/usr/lib"
13890 for as_dir in $as_dummy
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13900 done
13901 done
13902 IFS=$as_save_IFS
13904 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13906 esac
13908 SENDMAIL=$ac_cv_path_SENDMAIL
13909 if test -n "$SENDMAIL"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13911 $as_echo "$SENDMAIL" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13920 SENDMAIL=$withval
13922 esac
13924 else
13926 # Extract the first word of "sendmail", so it can be a program name with args.
13927 set dummy sendmail; ac_word=$2
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13929 $as_echo_n "checking for $ac_word... " >&6; }
13930 if ${ac_cv_path_SENDMAIL+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 case $SENDMAIL in
13934 [\\/]* | ?:[\\/]*)
13935 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 as_dummy="$PATH:/usr/sbin:/usr/lib"
13940 for as_dir in $as_dummy
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13946 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13950 done
13951 done
13952 IFS=$as_save_IFS
13954 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13956 esac
13958 SENDMAIL=$ac_cv_path_SENDMAIL
13959 if test -n "$SENDMAIL"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13961 $as_echo "$SENDMAIL" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13971 if test -n "$SENDMAIL" ; then
13973 cat >>confdefs.h <<_ACEOF
13974 #define SENDMAIL "$SENDMAIL"
13975 _ACEOF
13979 smtp_msa_flags="-bs -odb -oem"
13981 # Check whether --with-smtp-msa-flags was given.
13982 if test "${with_smtp_msa_flags+set}" = set; then :
13983 withval=$with_smtp_msa_flags;
13984 if test "x$withval" != "xno" ; then
13985 smtp_msa_flags=$withval
13991 cat >>confdefs.h <<_ACEOF
13992 #define SENDMAILFLAGS "$smtp_msa_flags"
13993 _ACEOF
13996 npa="inews"
13998 # Check whether --with-npa was given.
13999 if test "${with_npa+set}" = set; then :
14000 withval=$with_npa;
14001 case "$withval" in
14004 yes)
14005 # Extract the first word of "inews", so it can be a program name with args.
14006 set dummy inews; ac_word=$2
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 $as_echo_n "checking for $ac_word... " >&6; }
14009 if ${ac_cv_path_NPA_PROG+:} false; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 case $NPA_PROG in
14013 [\\/]* | ?:[\\/]*)
14014 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 as_dummy="$PATH:/usr/sbin:/usr/lib"
14019 for as_dir in $as_dummy
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14025 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14029 done
14030 done
14031 IFS=$as_save_IFS
14033 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14035 esac
14037 NPA_PROG=$ac_cv_path_NPA_PROG
14038 if test -n "$NPA_PROG"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14040 $as_echo "$NPA_PROG" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14049 NPA_PROG=$withval
14051 esac
14053 else
14055 # Extract the first word of "inews", so it can be a program name with args.
14056 set dummy inews; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_NPA_PROG+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 case $NPA_PROG in
14063 [\\/]* | ?:[\\/]*)
14064 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 as_dummy="$PATH:/usr/sbin:/usr/lib"
14069 for as_dir in $as_dummy
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14079 done
14080 done
14081 IFS=$as_save_IFS
14083 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14085 esac
14087 NPA_PROG=$ac_cv_path_NPA_PROG
14088 if test -n "$NPA_PROG"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14090 $as_echo "$NPA_PROG" >&6; }
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14101 npa_flags="-h"
14103 # Check whether --with-npa-flags was given.
14104 if test "${with_npa_flags+set}" = set; then :
14105 withval=$with_npa_flags;
14106 if test "x$withval" != "xno" ; then
14107 npa_flags=$withval
14112 if test -n "$NPA_PROG" ; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define SENDNEWS "$NPA_PROG $npa_flags"
14116 _ACEOF
14121 # Check whether --with-password-prog was given.
14122 if test "${with_password_prog+set}" = set; then :
14123 withval=$with_password_prog;
14124 case "$withval" in
14127 yes)
14128 # Extract the first word of "passwd", so it can be a program name with args.
14129 set dummy passwd; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if ${ac_cv_path_PWPROG+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 case $PWPROG in
14136 [\\/]* | ?:[\\/]*)
14137 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 as_dummy="$PATH:/usr/sbin:/usr/lib"
14142 for as_dir in $as_dummy
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14152 done
14153 done
14154 IFS=$as_save_IFS
14156 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14158 esac
14160 PWPROG=$ac_cv_path_PWPROG
14161 if test -n "$PWPROG"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14163 $as_echo "$PWPROG" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14172 # Extract the first word of "$withval", so it can be a program name with args.
14173 set dummy $withval; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_path_PWPROG+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 case $PWPROG in
14180 [\\/]* | ?:[\\/]*)
14181 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 as_dummy="$PATH:/usr/sbin:/usr/lib"
14186 for as_dir in $as_dummy
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14196 done
14197 done
14198 IFS=$as_save_IFS
14200 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14202 esac
14204 PWPROG=$ac_cv_path_PWPROG
14205 if test -n "$PWPROG"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14207 $as_echo "$PWPROG" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14215 esac
14217 else
14219 # Extract the first word of "passwd", so it can be a program name with args.
14220 set dummy passwd; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14222 $as_echo_n "checking for $ac_word... " >&6; }
14223 if ${ac_cv_path_PWPROG+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 case $PWPROG in
14227 [\\/]* | ?:[\\/]*)
14228 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 as_dummy="$PATH:/usr/sbin:/usr/lib"
14233 for as_dir in $as_dummy
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14243 done
14244 done
14245 IFS=$as_save_IFS
14247 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14249 esac
14251 PWPROG=$ac_cv_path_PWPROG
14252 if test -n "$PWPROG"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14254 $as_echo "$PWPROG" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14264 if test -n "$PWPROG" ; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define PASSWD_PROG "$PWPROG"
14268 _ACEOF
14273 # Check whether --with-simple-spellcheck was given.
14274 if test "${with_simple_spellcheck+set}" = set; then :
14275 withval=$with_simple_spellcheck;
14276 if test "x$withval" != "xno" ; then
14277 SPELLPROG=$withval
14280 else
14282 # Extract the first word of "hunspell", so it can be a program name with args.
14283 set dummy hunspell; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_prog_SPELLPROG+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$SPELLPROG"; then
14290 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14299 ac_cv_prog_SPELLPROG="hunspell"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14303 done
14304 done
14305 IFS=$as_save_IFS
14309 SPELLPROG=$ac_cv_prog_SPELLPROG
14310 if test -n "$SPELLPROG"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14312 $as_echo "$SPELLPROG" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14319 if test -z "$SPELLPROG" ; then
14320 # Extract the first word of "aspell", so it can be a program name with args.
14321 set dummy aspell; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_prog_SPELLPROG+:} false; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 if test -n "$SPELLPROG"; then
14328 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14329 else
14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331 for as_dir in $PATH
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
14335 for ac_exec_ext in '' $ac_executable_extensions; do
14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14337 ac_cv_prog_SPELLPROG="aspell"
14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 break 2
14341 done
14342 done
14343 IFS=$as_save_IFS
14347 SPELLPROG=$ac_cv_prog_SPELLPROG
14348 if test -n "$SPELLPROG"; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14350 $as_echo "$SPELLPROG" >&6; }
14351 else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353 $as_echo "no" >&6; }
14357 if test -z "$SPELLPROG" ; then
14358 # Extract the first word of "ispell", so it can be a program name with args.
14359 set dummy ispell; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_prog_SPELLPROG+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 if test -n "$SPELLPROG"; then
14366 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14367 else
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_prog_SPELLPROG="ispell"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14379 done
14380 done
14381 IFS=$as_save_IFS
14385 SPELLPROG=$ac_cv_prog_SPELLPROG
14386 if test -n "$SPELLPROG"; then
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14388 $as_echo "$SPELLPROG" >&6; }
14389 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14395 if test -z "$SPELLPROG" ; then
14396 SPELLPROG="spell"
14404 if test "x$SPELLPROG" != "xno" ; then
14405 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
14406 set dummy $SPELLPROG; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 case $alpine_simple_spellcheck in
14413 [\\/]* | ?:[\\/]*)
14414 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418 for as_dir in $PATH
14420 IFS=$as_save_IFS
14421 test -z "$as_dir" && as_dir=.
14422 for ac_exec_ext in '' $ac_executable_extensions; do
14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14426 break 2
14428 done
14429 done
14430 IFS=$as_save_IFS
14433 esac
14435 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
14436 if test -n "$alpine_simple_spellcheck"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
14438 $as_echo "$alpine_simple_spellcheck" >&6; }
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14445 if test -n "$alpine_simple_spellcheck" ; then
14446 case "$SPELLPROG" in
14447 hunspell)
14448 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14450 aspell)
14451 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
14453 ispell)
14454 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14458 esac
14463 # Check whether --with-interactive-spellcheck was given.
14464 if test "${with_interactive_spellcheck+set}" = set; then :
14465 withval=$with_interactive_spellcheck;
14466 if test "x$withval" != "xno" ; then
14467 ISPELLPROG=$withval
14470 else
14472 # Extract the first word of "hunspell", so it can be a program name with args.
14473 set dummy hunspell; ac_word=$2
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475 $as_echo_n "checking for $ac_word... " >&6; }
14476 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 if test -n "$ISPELLPROG"; then
14480 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14481 else
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14489 ac_cv_prog_ISPELLPROG="hunspell"
14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 break 2
14493 done
14494 done
14495 IFS=$as_save_IFS
14499 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14500 if test -n "$ISPELLPROG"; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14502 $as_echo "$ISPELLPROG" >&6; }
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14509 if test -z "$ISPELLPROG" ; then
14510 # Extract the first word of "aspell", so it can be a program name with args.
14511 set dummy aspell; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513 $as_echo_n "checking for $ac_word... " >&6; }
14514 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 if test -n "$ISPELLPROG"; then
14518 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14519 else
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527 ac_cv_prog_ISPELLPROG="aspell"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529 break 2
14531 done
14532 done
14533 IFS=$as_save_IFS
14537 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14538 if test -n "$ISPELLPROG"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14540 $as_echo "$ISPELLPROG" >&6; }
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14547 if test -z "$SPELLPROG" ; then
14548 ISPELLPROG="ispell"
14555 if test "x$ISPELLPROG" != "xno" ; then
14556 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
14557 set dummy $ISPELLPROG; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559 $as_echo_n "checking for $ac_word... " >&6; }
14560 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 case $alpine_interactive_spellcheck in
14564 [\\/]* | ?:[\\/]*)
14565 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569 for as_dir in $PATH
14571 IFS=$as_save_IFS
14572 test -z "$as_dir" && as_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 break 2
14579 done
14580 done
14581 IFS=$as_save_IFS
14584 esac
14586 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
14587 if test -n "$alpine_interactive_spellcheck"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
14589 $as_echo "$alpine_interactive_spellcheck" >&6; }
14590 else
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14596 if test -n "$alpine_interactive_spellcheck" ; then
14597 case "$ISPELLPROG" in
14598 aspell)
14599 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
14603 esac
14607 if test -n "$alpine_interactive_spellcheck" ; then
14609 cat >>confdefs.h <<_ACEOF
14610 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
14611 _ACEOF
14615 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
14616 alpine_simple_spellcheck=test
14619 cat >>confdefs.h <<_ACEOF
14620 #define SPELLER "$alpine_simple_spellcheck"
14621 _ACEOF
14624 case "$prefix" in
14625 NONE) dpv=/usr/local/lib/pine.conf ;;
14626 *) dpv=${prefix}/lib/pine.conf ;;
14627 esac
14629 # Check whether --with-system-pinerc was given.
14630 if test "${with_system_pinerc+set}" = set; then :
14631 withval=$with_system_pinerc;
14632 case "$withval" in
14635 yes)
14638 dpv=$withval
14640 esac
14645 cat >>confdefs.h <<_ACEOF
14646 #define SYSTEM_PINERC "$dpv"
14647 _ACEOF
14650 case "$prefix" in
14651 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
14652 *) dpv=${prefix}/lib/pine.conf.fixed ;;
14653 esac
14655 # Check whether --with-system-fixed-pinerc was given.
14656 if test "${with_system_fixed_pinerc+set}" = set; then :
14657 withval=$with_system_fixed_pinerc;
14658 case "$withval" in
14661 yes)
14664 dpv=$withval
14666 esac
14671 cat >>confdefs.h <<_ACEOF
14672 #define SYSTEM_PINERC_FIXED "$dpv"
14673 _ACEOF
14676 case "$prefix" in
14677 NONE) dpv=/usr/local/lib/pine.info ;;
14678 *) dpv=${prefix}/lib/pine.info ;;
14679 esac
14681 # Check whether --with-local-support-info was given.
14682 if test "${with_local_support_info+set}" = set; then :
14683 withval=$with_local_support_info;
14684 case "$withval" in
14687 yes)
14690 dpv=$withval
14692 esac
14697 cat >>confdefs.h <<_ACEOF
14698 #define SYSTEM_PINE_INFO_PATH "$dpv"
14699 _ACEOF
14707 dpv=150
14709 # Check whether --with-mailcheck-interval was given.
14710 if test "${with_mailcheck_interval+set}" = set; then :
14711 withval=$with_mailcheck_interval;
14712 if test "x$withval" != "xno" ; then
14713 dpv=$withval
14719 cat >>confdefs.h <<_ACEOF
14720 #define DF_MAILCHECK "$dpv"
14721 _ACEOF
14725 dpv=420
14727 # Check whether --with-checkpoint-interval was given.
14728 if test "${with_checkpoint_interval+set}" = set; then :
14729 withval=$with_checkpoint_interval;
14730 if test "x$withval" != "xno" ; then
14731 dpv=$withval
14737 cat >>confdefs.h <<_ACEOF
14738 #define CHECK_POINT_TIME $dpv
14739 _ACEOF
14743 dpv=12
14745 # Check whether --with-checkpoint-frequency was given.
14746 if test "${with_checkpoint_frequency+set}" = set; then :
14747 withval=$with_checkpoint_frequency;
14748 if test "x$withval" != "xno" ; then
14749 dpv=$withval
14755 cat >>confdefs.h <<_ACEOF
14756 #define CHECK_POINT_FREQ $dpv
14757 _ACEOF
14761 dpv=24
14763 # Check whether --with-display-rows was given.
14764 if test "${with_display_rows+set}" = set; then :
14765 withval=$with_display_rows;
14766 if test "x$withval" != "xno" ; then
14767 dpv=$withval
14773 cat >>confdefs.h <<_ACEOF
14774 #define DEFAULT_LINES_ON_TERMINAL $dpv
14775 _ACEOF
14779 dpv=80
14781 # Check whether --with-display-columns was given.
14782 if test "${with_display_columns+set}" = set; then :
14783 withval=$with_display_columns;
14784 if test "x$withval" != "xno" ; then
14785 dpv=$withval
14791 cat >>confdefs.h <<_ACEOF
14792 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
14793 _ACEOF
14797 dpv=200
14799 # Check whether --with-max-display-rows was given.
14800 if test "${with_max_display_rows+set}" = set; then :
14801 withval=$with_max_display_rows;
14802 if test "x$withval" != "xno" ; then
14803 dpv=$withval
14809 cat >>confdefs.h <<_ACEOF
14810 #define MAX_SCREEN_ROWS $dpv
14811 _ACEOF
14815 dpv=500
14817 # Check whether --with-max-display-columns was given.
14818 if test "${with_max_display_columns+set}" = set; then :
14819 withval=$with_max_display_columns;
14820 if test "x$withval" != "xno" ; then
14821 dpv=$withval
14827 cat >>confdefs.h <<_ACEOF
14828 #define MAX_SCREEN_COLS $dpv
14829 _ACEOF
14833 dpv=74
14835 # Check whether --with-fill-column was given.
14836 if test "${with_fill_column+set}" = set; then :
14837 withval=$with_fill_column;
14838 if test "x$withval" != "xno" ; then
14839 dpv=$withval
14845 cat >>confdefs.h <<_ACEOF
14846 #define DF_FILLCOL "$dpv"
14847 _ACEOF
14851 dpv=80
14853 # Check whether --with-max_fill-column was given.
14854 if test "${with_max_fill_column+set}" = set; then :
14855 withval=$with_max_fill_column;
14856 if test "x$withval" != "xno" ; then
14857 dpv=$withval
14863 cat >>confdefs.h <<_ACEOF
14864 #define MAX_FILLCOL $dpv
14865 _ACEOF
14869 dpv=2
14871 # Check whether --with-debug-level was given.
14872 if test "${with_debug_level+set}" = set; then :
14873 withval=$with_debug_level;
14874 if test "x$withval" != "xno" ; then
14875 dpv=$withval
14881 cat >>confdefs.h <<_ACEOF
14882 #define DEFAULT_DEBUG $dpv
14883 _ACEOF
14887 dpv=4
14889 # Check whether --with-debug-files was given.
14890 if test "${with_debug_files+set}" = set; then :
14891 withval=$with_debug_files;
14892 if test "x$withval" != "xno" ; then
14893 dpv=$withval
14899 cat >>confdefs.h <<_ACEOF
14900 #define NUMDEBUGFILES $dpv
14901 _ACEOF
14905 dpv=.pine-debug
14907 # Check whether --with-debug-file was given.
14908 if test "${with_debug_file+set}" = set; then :
14909 withval=$with_debug_file;
14910 if test "x$withval" != "xno" ; then
14911 dpv=$withval
14917 cat >>confdefs.h <<_ACEOF
14918 #define DEBUGFILE "$dpv"
14919 _ACEOF
14923 dpv="\$Forwarded"
14925 # Check whether --with-forwarded-keyword was given.
14926 if test "${with_forwarded_keyword+set}" = set; then :
14927 withval=$with_forwarded_keyword;
14928 if test "x$withval" != "xno" ; then
14929 dpv=$withval
14935 cat >>confdefs.h <<_ACEOF
14936 #define FORWARDED_FLAG "$dpv"
14937 _ACEOF
14941 dpv=2
14943 # Check whether --with-display-overlap was given.
14944 if test "${with_display_overlap+set}" = set; then :
14945 withval=$with_display_overlap;
14946 if test "x$withval" != "xno" ; then
14947 dpv=$withval
14953 cat >>confdefs.h <<_ACEOF
14954 #define DF_OVERLAP "$dpv"
14955 _ACEOF
14959 dpv=0
14961 # Check whether --with-display-margin was given.
14962 if test "${with_display_margin+set}" = set; then :
14963 withval=$with_display_margin;
14964 if test "x$withval" != "xno" ; then
14965 dpv=$withval
14971 cat >>confdefs.h <<_ACEOF
14972 #define DF_MARGIN "$dpv"
14973 _ACEOF
14977 dpv=sent-mail
14979 # Check whether --with-default-fcc was given.
14980 if test "${with_default_fcc+set}" = set; then :
14981 withval=$with_default_fcc;
14982 if test "x$withval" != "xno" ; then
14983 dpv=$withval
14989 cat >>confdefs.h <<_ACEOF
14990 #define DF_DEFAULT_FCC "$dpv"
14991 _ACEOF
14995 dpv=saved-messages
14997 # Check whether --with-default-save-folder was given.
14998 if test "${with_default_save_folder+set}" = set; then :
14999 withval=$with_default_save_folder;
15000 if test "x$withval" != "xno" ; then
15001 dpv=$withval
15007 cat >>confdefs.h <<_ACEOF
15008 #define DEFAULT_SAVE "$dpv"
15009 _ACEOF
15013 dpv=postponed-mail
15015 # Check whether --with-default-legacy-postponed-folder was given.
15016 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15017 withval=$with_default_legacy_postponed_folder;
15018 if test "x$withval" != "xno" ; then
15019 dpv=$withval
15025 cat >>confdefs.h <<_ACEOF
15026 #define POSTPONED_MAIL "$dpv"
15027 _ACEOF
15031 dpv=postponed-msgs
15033 # Check whether --with-default-postponed-folder was given.
15034 if test "${with_default_postponed_folder+set}" = set; then :
15035 withval=$with_default_postponed_folder;
15036 if test "x$withval" != "xno" ; then
15037 dpv=$withval
15043 cat >>confdefs.h <<_ACEOF
15044 #define POSTPONED_MSGS "$dpv"
15045 _ACEOF
15049 dpv=Trash
15051 # Check whether --with-default-trash-folder was given.
15052 if test "${with_default_trash_folder+set}" = set; then :
15053 withval=$with_default_trash_folder;
15054 if test "x$withval" != "xno" ; then
15055 dpv=$withval
15061 cat >>confdefs.h <<_ACEOF
15062 #define TRASH_FOLDER "$dpv"
15063 _ACEOF
15067 dpv=.pine-interrupted-mail
15069 # Check whether --with-default-interrupted-mail was given.
15070 if test "${with_default_interrupted_mail+set}" = set; then :
15071 withval=$with_default_interrupted_mail;
15072 if test "x$withval" != "xno" ; then
15073 dpv=$withval
15079 cat >>confdefs.h <<_ACEOF
15080 #define INTERRUPTED_MAIL "$dpv"
15081 _ACEOF
15085 dpv=dead.letter
15087 # Check whether --with-default-dead-letter-folder was given.
15088 if test "${with_default_dead_letter_folder+set}" = set; then :
15089 withval=$with_default_dead_letter_folder;
15090 if test "x$withval" != "xno" ; then
15091 dpv=$withval
15097 cat >>confdefs.h <<_ACEOF
15098 #define DEADLETTER "$dpv"
15099 _ACEOF
15103 dpv=mail
15105 # Check whether --with-default-mail-directory was given.
15106 if test "${with_default_mail_directory+set}" = set; then :
15107 withval=$with_default_mail_directory;
15108 if test "x$withval" != "xno" ; then
15109 dpv=$withval
15115 cat >>confdefs.h <<_ACEOF
15116 #define DF_MAIL_DIRECTORY "$dpv"
15117 _ACEOF
15121 dpv=INBOX
15123 # Check whether --with-default-inbox-name was given.
15124 if test "${with_default_inbox_name+set}" = set; then :
15125 withval=$with_default_inbox_name;
15126 if test "x$withval" != "xno" ; then
15127 dpv=$withval
15133 cat >>confdefs.h <<_ACEOF
15134 #define INBOX_NAME "$dpv"
15135 _ACEOF
15139 dpv=.signature
15141 # Check whether --with-default-signature-file was given.
15142 if test "${with_default_signature_file+set}" = set; then :
15143 withval=$with_default_signature_file;
15144 if test "x$withval" != "xno" ; then
15145 dpv=$withval
15151 cat >>confdefs.h <<_ACEOF
15152 #define DF_SIGNATURE_FILE "$dpv"
15153 _ACEOF
15157 dpv=no
15159 # Check whether --with-default-elm-style-save was given.
15160 if test "${with_default_elm_style_save+set}" = set; then :
15161 withval=$with_default_elm_style_save;
15162 if test "x$withval" != "xno" ; then
15163 dpv=$withval
15169 cat >>confdefs.h <<_ACEOF
15170 #define DF_ELM_STYLE_SAVE "$dpv"
15171 _ACEOF
15175 dpv=no
15177 # Check whether --with-default-header-in-reply was given.
15178 if test "${with_default_header_in_reply+set}" = set; then :
15179 withval=$with_default_header_in_reply;
15180 if test "x$withval" != "xno" ; then
15181 dpv=$withval
15187 cat >>confdefs.h <<_ACEOF
15188 #define DF_HEADER_IN_REPLY "$dpv"
15189 _ACEOF
15193 dpv=no
15195 # Check whether --with-default-old-style-reply was given.
15196 if test "${with_default_old_style_reply+set}" = set; then :
15197 withval=$with_default_old_style_reply;
15198 if test "x$withval" != "xno" ; then
15199 dpv=$withval
15205 cat >>confdefs.h <<_ACEOF
15206 #define DF_OLD_STYLE_REPLY "$dpv"
15207 _ACEOF
15211 dpv=no
15213 # Check whether --with-default-use-only-domain-name was given.
15214 if test "${with_default_use_only_domain_name+set}" = set; then :
15215 withval=$with_default_use_only_domain_name;
15216 if test "x$withval" != "xno" ; then
15217 dpv=$withval
15223 cat >>confdefs.h <<_ACEOF
15224 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
15225 _ACEOF
15229 dpv=no
15231 # Check whether --with-default-save-by-sender was given.
15232 if test "${with_default_save_by_sender+set}" = set; then :
15233 withval=$with_default_save_by_sender;
15234 if test "x$withval" != "xno" ; then
15235 dpv=$withval
15241 cat >>confdefs.h <<_ACEOF
15242 #define DF_SAVE_BY_SENDER "$dpv"
15243 _ACEOF
15247 dpv=arrival
15249 # Check whether --with-default-sort-key was given.
15250 if test "${with_default_sort_key+set}" = set; then :
15251 withval=$with_default_sort_key;
15252 if test "x$withval" != "xno" ; then
15253 dpv=$withval
15259 cat >>confdefs.h <<_ACEOF
15260 #define DF_SORT_KEY "$dpv"
15261 _ACEOF
15265 dpv=fullname-with-lists-last
15267 # Check whether --with-default-addressbook-sort-rule was given.
15268 if test "${with_default_addressbook_sort_rule+set}" = set; then :
15269 withval=$with_default_addressbook_sort_rule;
15270 if test "x$withval" != "xno" ; then
15271 dpv=$withval
15277 cat >>confdefs.h <<_ACEOF
15278 #define DF_AB_SORT_RULE "$dpv"
15279 _ACEOF
15283 dpv=alphabetical
15285 # Check whether --with-default-folder-sort-rule was given.
15286 if test "${with_default_folder_sort_rule+set}" = set; then :
15287 withval=$with_default_folder_sort_rule;
15288 if test "x$withval" != "xno" ; then
15289 dpv=$withval
15295 cat >>confdefs.h <<_ACEOF
15296 #define DF_FLD_SORT_RULE "$dpv"
15297 _ACEOF
15301 dpv=default-folder
15303 # Check whether --with-default-saved-message-name-rule was given.
15304 if test "${with_default_saved_message_name_rule+set}" = set; then :
15305 withval=$with_default_saved_message_name_rule;
15306 if test "x$withval" != "xno" ; then
15307 dpv=$withval
15313 cat >>confdefs.h <<_ACEOF
15314 #define DF_SAVED_MSG_NAME_RULE "$dpv"
15315 _ACEOF
15319 dpv=default-fcc
15321 # Check whether --with-default-fcc-rule was given.
15322 if test "${with_default_fcc_rule+set}" = set; then :
15323 withval=$with_default_fcc_rule;
15324 if test "x$withval" != "xno" ; then
15325 dpv=$withval
15331 cat >>confdefs.h <<_ACEOF
15332 #define DF_FCC_RULE "$dpv"
15333 _ACEOF
15337 dpv=lpr
15339 # Check whether --with-default-standard-printer was given.
15340 if test "${with_default_standard_printer+set}" = set; then :
15341 withval=$with_default_standard_printer;
15342 if test "x$withval" != "xno" ; then
15343 dpv=$withval
15349 cat >>confdefs.h <<_ACEOF
15350 #define DF_STANDARD_PRINTER "$dpv"
15351 _ACEOF
15355 dpv=attached-to-ansi
15357 # Check whether --with-default-ansi-printer was given.
15358 if test "${with_default_ansi_printer+set}" = set; then :
15359 withval=$with_default_ansi_printer;
15360 if test "x$withval" != "xno" ; then
15361 dpv=$withval
15367 cat >>confdefs.h <<_ACEOF
15368 #define ANSI_PRINTER "$dpv"
15369 _ACEOF
15373 dpv=.addressbook
15375 # Check whether --with-default-addressbook was given.
15376 if test "${with_default_addressbook+set}" = set; then :
15377 withval=$with_default_addressbook;
15378 if test "x$withval" != "xno" ; then
15379 dpv=$withval
15385 cat >>confdefs.h <<_ACEOF
15386 #define DF_ADDRESSBOOK "$dpv"
15387 _ACEOF
15391 dpv="Local Support"
15393 # Check whether --with-default-local-fullname was given.
15394 if test "${with_default_local_fullname+set}" = set; then :
15395 withval=$with_default_local_fullname;
15396 if test "x$withval" != "xno" ; then
15397 dpv=$withval
15403 cat >>confdefs.h <<_ACEOF
15404 #define DF_LOCAL_FULLNAME "$dpv"
15405 _ACEOF
15409 dpv=postmaster
15411 # Check whether --with-default-local-address was given.
15412 if test "${with_default_local_address+set}" = set; then :
15413 withval=$with_default_local_address;
15414 if test "x$withval" != "xno" ; then
15415 dpv=$withval
15421 cat >>confdefs.h <<_ACEOF
15422 #define DF_LOCAL_ADDRESS "$dpv"
15423 _ACEOF
15427 dpv=1
15429 # Check whether --with-default-keyboard-lock-count was given.
15430 if test "${with_default_keyboard_lock_count+set}" = set; then :
15431 withval=$with_default_keyboard_lock_count;
15432 if test "x$withval" != "xno" ; then
15433 dpv=$withval
15439 cat >>confdefs.h <<_ACEOF
15440 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
15441 _ACEOF
15445 dpv=3
15447 # Check whether --with-default-remote-addressbook-history was given.
15448 if test "${with_default_remote_addressbook_history+set}" = set; then :
15449 withval=$with_default_remote_addressbook_history;
15450 if test "x$withval" != "xno" ; then
15451 dpv=$withval
15457 cat >>confdefs.h <<_ACEOF
15458 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
15459 _ACEOF
15463 dpv=.alpine-smime/public
15465 # Check whether --with-smime-public-cert-directory was given.
15466 if test "${with_smime_public_cert_directory+set}" = set; then :
15467 withval=$with_smime_public_cert_directory;
15468 if test "x$withval" != "xno" ; then
15469 dpv=$withval
15475 cat >>confdefs.h <<_ACEOF
15476 #define DF_PUBLICCERT_DIR "$dpv"
15477 _ACEOF
15481 dpv=.alpine-smime/private
15483 # Check whether --with-smime-private-key-directory was given.
15484 if test "${with_smime_private_key_directory+set}" = set; then :
15485 withval=$with_smime_private_key_directory;
15486 if test "x$withval" != "xno" ; then
15487 dpv=$withval
15493 cat >>confdefs.h <<_ACEOF
15494 #define DF_PRIVATEKEY_DIR "$dpv"
15495 _ACEOF
15499 dpv=.alpine-smime/ca
15501 # Check whether --with-smime-cacert-directory was given.
15502 if test "${with_smime_cacert_directory+set}" = set; then :
15503 withval=$with_smime_cacert_directory;
15504 if test "x$withval" != "xno" ; then
15505 dpv=$withval
15511 cat >>confdefs.h <<_ACEOF
15512 #define DF_CACERT_DIR "$dpv"
15513 _ACEOF
15517 dpv=ANSI_PRINTER
15519 # Check whether --with-default-printer was given.
15520 if test "${with_default_printer+set}" = set; then :
15521 withval=$with_default_printer;
15522 if test "x$withval" != "xno" ; then
15523 dpv=$withval
15529 cat >>confdefs.h <<_ACEOF
15530 #define DF_DEFAULT_PRINTER $dpv
15531 _ACEOF
15536 cat >>confdefs.h <<_ACEOF
15537 #define DF_PUBLIC_CONTAINER "PublicContainer"
15538 _ACEOF
15541 cat >>confdefs.h <<_ACEOF
15542 #define DF_PRIVATE_CONTAINER "PrivateContainer"
15543 _ACEOF
15546 cat >>confdefs.h <<_ACEOF
15547 #define DF_CA_CONTAINER "CAContainer"
15548 _ACEOF
15552 # Check whether --with-passfile was given.
15553 if test "${with_passfile+set}" = set; then :
15554 withval=$with_passfile;
15555 case "$withval" in
15558 yes)
15561 alpine_PASSFILE=$withval
15563 esac
15570 # Check whether --with-local-password-cache was given.
15571 if test "${with_local_password_cache+set}" = set; then :
15572 withval=$with_local_password_cache;
15573 alpine_os_credential_cache=$withval
15579 # Check whether --with-local-password-cache-method was given.
15580 if test "${with_local_password_cache_method+set}" = set; then :
15581 withval=$with_local_password_cache_method;
15582 alpine_os_credential_cache_method=$withval
15587 if test -n "$alpine_PASSFILE" ; then
15588 case $alpine_os_credential_cache in
15592 alpine_os_credential_cache="no"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
15594 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
15596 esac
15598 cat >>confdefs.h <<_ACEOF
15599 #define PASSFILE "$alpine_PASSFILE"
15600 _ACEOF
15605 # Check whether --with-default-sshpath was given.
15606 if test "${with_default_sshpath+set}" = set; then :
15607 withval=$with_default_sshpath;
15608 case "$withval" in
15611 yes)
15615 cat >>confdefs.h <<_ACEOF
15616 #define DF_SSHPATH "$withval"
15617 _ACEOF
15620 esac
15626 # Check whether --with-default-sshcmd was given.
15627 if test "${with_default_sshcmd+set}" = set; then :
15628 withval=$with_default_sshcmd;
15629 case "$withval" in
15632 yes)
15636 cat >>confdefs.h <<_ACEOF
15637 #define DF_SSHCMD "$withval"
15638 _ACEOF
15641 esac
15647 # Check whether --with-ssl was given.
15648 if test "${with_ssl+set}" = set; then :
15649 withval=$with_ssl; with_ssl=$withval
15653 if test "x$with_ssl" = "xno" ; then
15654 alpine_SSLTYPE="none"
15655 elif test -d /usr/local/ssl ; then
15656 alpine_SSLDIR="/usr/local/ssl"
15657 else
15658 case $host in
15659 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
15660 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
15661 alpine_SSLTYPE="nopwd"
15662 if test -d /etc/pki/tls ; then
15663 alpine_SSLDIR="/etc/pki/tls"
15664 else
15665 alpine_SSLDIR="/usr/share/ssl"
15667 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15668 alpine_SSLKEYS="$alpine_SSLDIR/private"
15669 alpine_SSLINCLUDE="/usr/include/openssl"
15670 alpine_SSLLIB="/usr/lib"
15671 elif test -f /etc/mandrake-release ; then
15672 alpine_SSLDIR="/usr/lib/ssl"
15673 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15674 alpine_SSLKEYS="$alpine_SSLDIR/private"
15675 alpine_SSLINCLUDE="/usr/include/openssl"
15676 alpine_SSLLIB="/usr/lib"
15677 elif test -f /etc/SuSE-release ; then
15678 alpine_SSLTYPE="nopwd"
15679 alpine_SSLDIR="/etc/ssl"
15680 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15681 alpine_SSLKEYS="$alpine_SSLDIR/private"
15682 alpine_SSLINCLUDE="/usr/include/openssl"
15683 alpine_SSLLIB="/usr/lib"
15684 elif test -d /etc/osso-af-init ; then
15685 alpine_SSLTYPE="nopwd"
15686 alpine_SSLDIR="/usr"
15687 alpine_SSLCERTS="/usr/share/certs"
15688 alpine_SSLINCLUDE="/usr/include/openssl"
15689 alpine_SSLLIB="/usr/lib"
15690 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
15691 if test ! -d /etc/osso-af-init ; then
15692 alpine_SSLDIR="/etc/ssl"
15693 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15694 alpine_SSLKEYS="$alpine_SSLDIR/private"
15695 alpine_SSLINCLUDE="/usr/include/openssl"
15696 alpine_SSLLIB="/usr/lib"
15698 else
15699 alpine_SSLTYPE="nopwd"
15700 alpine_SSLDIR="/usr"
15701 alpine_SSLCERTS="/etc/ssl/certs"
15704 *-apple-darwin*)
15705 alpine_SSLTYPE="nopwd"
15706 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
15707 if test -d /usr/local/opt/openssl ; then
15708 alpine_SSLDIR="/usr/local/opt/openssl"
15709 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15710 alpine_SSLLIB="$alpine_SSLDIR/lib"
15711 alpine_SSLCERTS="/usr/local/etc/openssl"
15712 alpine_SSLKEYS="$alpine_SSLDIR/private"
15713 elif test -d /opt/local/etc/openssl ; then
15714 alpine_SSLDIR="/opt/local"
15715 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15716 alpine_SSLLIB="$alpine_SSLDIR/lib"
15717 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
15718 alpine_SSLKEYS="/opt/local/etc/openssl/private"
15719 elif test -d /sw/etc/ssl ; then
15720 alpine_SSLDIR="/sw/etc/ssl"
15721 alpine_SSLINCLUDE="/sw/include"
15722 alpine_SSLLIB="/sw/lib"
15723 alpine_SSLCERTS="/sw/etc/ssl/certs"
15724 alpine_SSLKEYS="/sw/etc/ssl/private"
15725 elif test -d /usr/local/ssl ; then
15726 alpine_SSLDIR="/usr/local/ssl"
15727 elif test -d /System/Library/OpenSSL ; then
15728 alpine_SSLDIR="/System/Library/OpenSSL"
15729 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15730 alpine_SSLKEYS="$alpine_SSLDIR/private"
15731 alpine_SSLLIB="/usr/lib"
15732 alpine_SSLINCLUDE="/usr/include/openssl"
15735 *-*-netbsd*)
15736 alpine_SSLDIR="/etc/openssl"
15737 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15738 alpine_SSLKEYS="$alpine_SSLDIR/private"
15739 alpine_SSLINCLUDE="/usr/include/openssl"
15740 alpine_SSLLIB="/usr/lib"
15742 *-*-dragonfly*)
15743 alpine_SSLDIR="/etc/openssl"
15744 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15745 alpine_SSLKEYS="$alpine_SSLDIR/private"
15746 alpine_SSLINCLUDE="/usr/include/openssl"
15747 alpine_SSLLIB="/usr/lib"
15749 *-openbsd*)
15750 alpine_SSLTYPE="nopwd"
15751 alpine_SSLDIR="/usr"
15752 alpine_SSLCERTS="/etc/ssl/certs"
15754 *-*-freebsd*)
15755 alpine_SSLDIR="/etc/ssl"
15756 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15757 alpine_SSLKEYS="$alpine_SSLDIR/private"
15758 if test -d /usr/local/include/openssl ; then
15759 alpine_SSLINCLUDE="/usr/local/include/openssl"
15760 alpine_SSLLIB="/usr/local/lib"
15761 else
15762 alpine_SSLINCLUDE="/usr/include/openssl"
15763 alpine_SSLLIB="/usr/lib"
15766 *-*-openbsd*)
15767 alpine_SSLDIR="/etc/ssl"
15768 alpine_SSLINCLUDE="/usr/include/openssl"
15769 alpine_SSLLIB="/usr/lib"
15770 alpine_SSLCERTS="/etc/ssl"
15771 alpine_SSLKEYS="/etc/ssl/private"
15773 *-*-cygwin)
15774 alpine_SSLDIR="/usr/ssl"
15775 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15776 alpine_SSLKEYS="$alpine_SSLDIR/certs"
15777 alpine_SSLINCLUDE="/usr/include/openssl"
15778 alpine_SSLLIB="/usr/lib"
15780 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
15781 alpine_SSLTYPE="sco.nopwd"
15782 alpine_SSLDIR="/usr/local/ssl"
15784 *-*-solaris*)
15785 if test -d /usr/sfw/include/openssl ; then
15786 alpine_SSLDIR="/usr/sfw"
15787 elif test -d /opt/csw/include/openssl ; then
15788 alpine_SSLDIR="/opt/csw"
15789 if test -d /opt/csw/ssl/certs ; then
15790 alpine_SSLCERTS="/opt/csw/ssl/certs"
15793 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
15794 alpine_SSLCERTS="/etc/certs"
15798 alpine_SSLTYPE="nopwd"
15799 alpine_SSLDIR="/usr/local/ssl"
15801 esac
15804 # Check whether --with-ssl-dir was given.
15805 if test "${with_ssl_dir+set}" = set; then :
15806 withval=$with_ssl_dir;
15807 if test "x$withval" != "xno" ; then
15808 alpine_SSLDIR=$withval
15809 alpine_SSLINCLUDE=$alpine_SSLDIR/include
15810 alpine_SSLLIB=$alpine_SSLDIR/lib
15817 # Check whether --with-ssl-certs-dir was given.
15818 if test "${with_ssl_certs_dir+set}" = set; then :
15819 withval=$with_ssl_certs_dir;
15820 if test "x$withval" != "xno" ; then
15821 alpine_SSLCERTS=$withval
15828 # Check whether --with-ssl-include-dir was given.
15829 if test "${with_ssl_include_dir+set}" = set; then :
15830 withval=$with_ssl_include_dir;
15831 if test "x$withval" != "xno" ; then
15832 alpine_SSLINCLUDE=$withval
15839 # Check whether --with-ssl-lib-dir was given.
15840 if test "${with_ssl_lib_dir+set}" = set; then :
15841 withval=$with_ssl_lib_dir;
15842 if test "x$withval" != "xno" ; then
15843 alpine_SSLLIB=$withval
15848 if test -n "$alpine_SSLINCLUDE" ; then
15849 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
15850 elif test -n "$alpine_SSLDIR" ; then
15851 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
15853 if test -n "$alpine_SSLLIB" ; then
15854 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
15855 elif test -n "$alpine_SSLDIR" ; then
15856 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
15861 # Check whether --with-krb5 was given.
15862 if test "${with_krb5+set}" = set; then :
15863 withval=$with_krb5; with_krb5=$withval
15867 if test "x$with_krb5" = "xno" ; then
15868 alpine_GSSTYPE="none"
15869 else
15870 alpine_GSSTYPE=
15873 # Check whether --with-krb5-dir was given.
15874 if test "${with_krb5_dir+set}" = set; then :
15875 withval=$with_krb5_dir;
15876 if test "x$withval" != "xno" ; then
15877 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15878 LDFLAGS="$LDFLAGS -L${withval}/lib"
15885 # Check whether --with-krb5-include-dir was given.
15886 if test "${with_krb5_include_dir+set}" = set; then :
15887 withval=$with_krb5_include_dir;
15888 if test "x$withval" != "xno" ; then
15889 CPPFLAGS="$CPPFLAGS -I$withval"
15896 # Check whether --with-krb5-lib-dir was given.
15897 if test "${with_krb5_lib_dir+set}" = set; then :
15898 withval=$with_krb5_lib_dir;
15899 if test "x$withval" != "xno" ; then
15900 LDFLAGS="$LDFLAGS -L$withval"
15908 # Check whether --with-ldap was given.
15909 if test "${with_ldap+set}" = set; then :
15910 withval=$with_ldap; with_ldap=$withval
15914 if test "x$with_ldap" = "xno" ; then
15915 alpine_with_ldap=
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
15917 $as_echo "$as_me: Excluding LDAP Support" >&6;}
15918 else
15920 alpine_with_ldap=yes
15922 # Check whether --with-ldap-dir was given.
15923 if test "${with_ldap_dir+set}" = set; then :
15924 withval=$with_ldap_dir;
15925 if test "x$withval" != "xno" ; then
15926 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15927 LDFLAGS="$LDFLAGS -L${withval}/lib"
15934 # Check whether --with-ldap-include-dir was given.
15935 if test "${with_ldap_include_dir+set}" = set; then :
15936 withval=$with_ldap_include_dir;
15937 if test "x$withval" != "xno" ; then
15938 CPPFLAGS="$CPPFLAGS -I$withval"
15945 # Check whether --with-ldap-lib-dir was given.
15946 if test "${with_ldap_lib_dir+set}" = set; then :
15947 withval=$with_ldap_lib_dir;
15948 if test "x$withval" != "xno" ; then
15949 LDFLAGS="$LDFLAGS -L$withval"
15957 # Check whether --with-smime was given.
15958 if test "${with_smime+set}" = set; then :
15959 withval=$with_smime; with_smime=$withval
15964 # Check whether --with-tcl was given.
15965 if test "${with_tcl+set}" = set; then :
15966 withval=$with_tcl; with_tcl=$withval
15970 if test "x$with_tcl" = "xno" ; then
15971 WEB_BUILD=
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
15973 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
15974 else
15976 # Check whether --with-tcl-lib was given.
15977 if test "${with_tcl_lib+set}" = set; then :
15978 withval=$with_tcl_lib;
15979 if test "x$withval" != "xno" ; then
15980 alpine_TCLLIB=$withval
15986 # Check whether --with-tcl-include was given.
15987 if test "${with_tcl_include+set}" = set; then :
15988 withval=$with_tcl_include;
15989 if test "x$withval" != "xno" ; then
15990 CPPFLAGS="$CPPFLAGS -I$withval"
15991 alpine_TCLINC=$withval
15999 # Check whether --with-supplied-regex was given.
16000 if test "${with_supplied_regex+set}" = set; then :
16001 withval=$with_supplied_regex; alpine_REGEX=$withval
16006 # Check whether --with-pthread was given.
16007 if test "${with_pthread+set}" = set; then :
16008 withval=$with_pthread; with_pthread=$withval
16013 # Check whether --with-system-mail-directory was given.
16014 if test "${with_system_mail_directory+set}" = set; then :
16015 withval=$with_system_mail_directory;
16016 if test "x$withval" != "xno" ; then
16017 alpine_with_local_maildir="$withval"
16024 # Check whether --with-c-client-target was given.
16025 if test "${with_c_client_target+set}" = set; then :
16026 withval=$with_c_client_target;
16027 if test "x$withval" != "xno" ;then
16028 alpine_with_c_client_target="$withval"
16035 alpine_PAM="none"
16037 case "$host" in
16038 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
16039 alpine_path_delim="/"
16040 alpine_mode_readonly="(0600)"
16041 if test -f /etc/fedora-release ; then
16042 systype="LFD"
16043 alpine_PAM="yes"
16044 if test -d /etc/pki/tls ; then
16045 alpine_c_client_target="lfd"
16046 else
16047 alpine_c_client_target="lrh"
16049 elif test -f /etc/mandrake-release ; then
16050 systype="LMD"
16051 alpine_c_client_target="lmd"
16052 alpine_PAM="yes"
16053 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16054 systype="LRH"
16055 alpine_PAM="yes"
16056 if test -d /etc/pki/tls ; then
16057 alpine_c_client_target="lr5"
16058 else
16059 alpine_c_client_target="lrh"
16061 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16062 if test -d /etc/osso-af-init ; then
16063 systype="LN8"
16064 alpine_c_client_target="ln8"
16065 else
16066 systype="DEB"
16067 alpine_c_client_target="ldb"
16068 alpine_PAM="yes"
16070 elif test -f /etc/SuSE-release ; then
16071 systype="LSU"
16072 alpine_c_client_target="lsu"
16073 alpine_PAM="yes"
16074 else
16075 systype="LNX"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16077 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16078 if ${ac_cv_lib_pam_pam_start+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-lpam $LIBS"
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16086 /* Override any GCC internal prototype to avoid an error.
16087 Use char because int might match the return type of a GCC
16088 builtin and then its argument prototype would still apply. */
16089 #ifdef __cplusplus
16090 extern "C"
16091 #endif
16092 char pam_start ();
16094 main ()
16096 return pam_start ();
16098 return 0;
16100 _ACEOF
16101 if ac_fn_c_try_link "$LINENO"; then :
16102 ac_cv_lib_pam_pam_start=yes
16103 else
16104 ac_cv_lib_pam_pam_start=no
16106 rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 LIBS=$ac_check_lib_save_LIBS
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16111 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16112 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16114 alpine_c_client_target="lnp"
16115 alpine_PAM="yes"
16117 else
16119 if test -f /etc/shadow ; then
16120 alpine_c_client_target="slx"
16121 else
16122 alpine_c_client_target="lnx"
16129 *-apple-darwin*)
16130 systype="OSX"
16131 alpine_path_delim="/"
16132 alpine_mode_readonly="(0600)"
16133 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
16134 AM_CFLAGS="$AM_CFLAGS -Dbsd"
16136 $as_echo "#define OSX_TARGET 1" >>confdefs.h
16138 case "$alpine_os_credential_cache" in
16143 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
16146 esac
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16148 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16149 if ${ac_cv_lib_pam_pam_start+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 ac_check_lib_save_LIBS=$LIBS
16153 LIBS="-lpam $LIBS"
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16157 /* Override any GCC internal prototype to avoid an error.
16158 Use char because int might match the return type of a GCC
16159 builtin and then its argument prototype would still apply. */
16160 #ifdef __cplusplus
16161 extern "C"
16162 #endif
16163 char pam_start ();
16165 main ()
16167 return pam_start ();
16169 return 0;
16171 _ACEOF
16172 if ac_fn_c_try_link "$LINENO"; then :
16173 ac_cv_lib_pam_pam_start=yes
16174 else
16175 ac_cv_lib_pam_pam_start=no
16177 rm -f core conftest.err conftest.$ac_objext \
16178 conftest$ac_exeext conftest.$ac_ext
16179 LIBS=$ac_check_lib_save_LIBS
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16182 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16183 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16185 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16186 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16188 alpine_PAM="yes"
16189 alpine_c_client_target="oxs"
16191 else
16192 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16193 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16195 alpine_PAM="yes"
16196 alpine_c_client_target="oxp"
16198 else
16200 alpine_PAM="none"
16201 alpine_pam_none_reason="header files not found"
16211 else
16213 alpine_c_client_target="osx"
16218 *-*-solaris*)
16219 if test x$GCC = "xyes" ; then
16220 systype="GSO"
16221 alpine_c_client_target="gso"
16222 else
16223 systype="SOC"
16224 alpine_c_client_target="soc"
16226 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16229 alpine_path_delim="/"
16230 alpine_mode_readonly="(0600)"
16232 *-*-sunos4*)
16233 systype="SUN"
16234 alpine_path_delim="/"
16235 alpine_mode_readonly="(0600)"
16236 alpine_c_client_target="s40"
16238 *-*-sco3.2v5*)
16239 if test x$GCC = "xyes" ; then
16240 systype="GO5"
16241 alpine_c_client_target="go5"
16242 else
16243 systype="SC5"
16244 alpine_c_client_target="sc5"
16246 alpine_path_delim="/"
16247 alpine_mode_readonly="(0600)"
16249 *-next-*)
16250 systype="NXT"
16251 alpine_path_delim="/"
16252 alpine_mode_readonly="(0600)"
16253 alpine_c_client_target="nx3"
16255 *-*-netbsd*)
16256 systype="NEB"
16257 alpine_path_delim="/"
16258 alpine_mode_readonly="(0600)"
16259 alpine_c_client_target="neb"
16261 *-*-dragonfly*)
16262 systype="DFB"
16263 alpine_path_delim="/"
16264 alpine_mode_readonly="(0600)"
16265 alpine_c_client_target="neb"
16267 *-*-bsdi*)
16268 systype="BSI"
16269 alpine_path_delim="/"
16270 alpine_mode_readonly="(0600)"
16271 alpine_c_client_target="bsi"
16273 *-*-freebsd*)
16274 systype="BSF"
16275 alpine_path_delim="/"
16276 alpine_mode_readonly="(0600)"
16277 alpine_c_client_target="bsf"
16278 LIBS="$LIBS $LIBINTL"
16280 *-*-openbsd*)
16281 systype="BSO"
16282 alpine_path_delim="/"
16283 alpine_mode_readonly="(0600)"
16284 alpine_c_client_target="bso"
16285 LIBS="$LIBS $LIBINTL"
16287 *-*-aix5*)
16288 systype="A52"
16289 alpine_path_delim="/"
16290 alpine_mode_readonly="(0600)"
16291 alpine_c_client_target="a52"
16293 *-*-aix4*)
16294 systype="A41"
16295 alpine_path_delim="/"
16296 alpine_mode_readonly="(0600)"
16297 alpine_c_client_target="a41"
16299 *-*-aix3*)
16300 systype="A32"
16301 alpine_path_delim="/"
16302 alpine_mode_readonly="(0600)"
16303 alpine_c_client_target="a32"
16305 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
16306 systype="UW2"
16307 alpine_path_delim="/"
16308 alpine_mode_readonly="(0600)"
16309 alpine_c_client_target="uw2"
16311 *-*-osf5*)
16312 systype="OSF"
16313 alpine_path_delim="/"
16314 alpine_mode_readonly="(0600)"
16315 alpine_c_client_target="osf"
16317 *-*-cygwin)
16318 systype="CYG"
16319 alpine_path_delim="/"
16320 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16321 alpine_c_client_target="cyg"
16322 LIBS="$LIBS $LIBINTL"
16324 windows* | *-*-pw32*)
16325 systype="WNT"
16326 alpine_path_delim="\\"
16327 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16328 alpine_c_client_target="wnt"
16330 $as_echo "#define _WINDOWS 1" >>confdefs.h
16334 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
16336 esac
16339 # Check whether --with-ipv6 was given.
16340 if test "${with_ipv6+set}" = set; then :
16341 withval=$with_ipv6; with_ipv6=$withval
16345 if test "x$with_ipv6" = "xno" ; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
16347 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
16348 c_client_specials="${c_client_specials}IP6=4 "
16349 c_client_ip6="true"
16350 else
16351 c_client_ip6="touch imap/ip6"
16356 if test x$enable_dmalloc = "xyes" ; then
16357 if test "x$with_pthread" = "xyes" ; then
16358 dmalloc_lib=dmallocth
16359 else
16360 dmalloc_lib=dmalloc
16363 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
16365 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
16366 if eval \${$as_ac_Lib+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-l$dmalloc_lib $LIBS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16377 #ifdef __cplusplus
16378 extern "C"
16379 #endif
16380 char dmalloc_shutdown ();
16382 main ()
16384 return dmalloc_shutdown ();
16386 return 0;
16388 _ACEOF
16389 if ac_fn_c_try_link "$LINENO"; then :
16390 eval "$as_ac_Lib=yes"
16391 else
16392 eval "$as_ac_Lib=no"
16394 rm -f core conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
16396 LIBS=$ac_check_lib_save_LIBS
16398 eval ac_res=\$$as_ac_Lib
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16400 $as_echo "$ac_res" >&6; }
16401 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
16404 _ACEOF
16406 LIBS="-l$dmalloc_lib $LIBS"
16408 else
16410 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
16417 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
16418 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421 ac_check_lib_save_LIBS=$LIBS
16422 LIBS="-ltinfo $LIBS"
16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16426 /* Override any GCC internal prototype to avoid an error.
16427 Use char because int might match the return type of a GCC
16428 builtin and then its argument prototype would still apply. */
16429 #ifdef __cplusplus
16430 extern "C"
16431 #endif
16432 char setupterm ();
16434 main ()
16436 return setupterm ();
16438 return 0;
16440 _ACEOF
16441 if ac_fn_c_try_link "$LINENO"; then :
16442 ac_cv_lib_tinfo_setupterm=yes
16443 else
16444 ac_cv_lib_tinfo_setupterm=no
16446 rm -f core conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
16448 LIBS=$ac_check_lib_save_LIBS
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
16451 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
16452 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
16454 alpine_termdata=info
16455 LIBS="$LIBS -ltinfo"
16457 else
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
16460 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
16461 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 ac_check_lib_save_LIBS=$LIBS
16465 LIBS="-lncurses $LIBS"
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16469 /* Override any GCC internal prototype to avoid an error.
16470 Use char because int might match the return type of a GCC
16471 builtin and then its argument prototype would still apply. */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char setupterm ();
16477 main ()
16479 return setupterm ();
16481 return 0;
16483 _ACEOF
16484 if ac_fn_c_try_link "$LINENO"; then :
16485 ac_cv_lib_ncurses_setupterm=yes
16486 else
16487 ac_cv_lib_ncurses_setupterm=no
16489 rm -f core conftest.err conftest.$ac_objext \
16490 conftest$ac_exeext conftest.$ac_ext
16491 LIBS=$ac_check_lib_save_LIBS
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
16494 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
16495 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
16497 alpine_termdata=info
16498 LIBS="$LIBS -lncurses"
16500 else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
16503 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
16504 if ${ac_cv_lib_curses_setupterm+:} false; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 ac_check_lib_save_LIBS=$LIBS
16508 LIBS="-lcurses $LIBS"
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16512 /* Override any GCC internal prototype to avoid an error.
16513 Use char because int might match the return type of a GCC
16514 builtin and then its argument prototype would still apply. */
16515 #ifdef __cplusplus
16516 extern "C"
16517 #endif
16518 char setupterm ();
16520 main ()
16522 return setupterm ();
16524 return 0;
16526 _ACEOF
16527 if ac_fn_c_try_link "$LINENO"; then :
16528 ac_cv_lib_curses_setupterm=yes
16529 else
16530 ac_cv_lib_curses_setupterm=no
16532 rm -f core conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
16534 LIBS=$ac_check_lib_save_LIBS
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
16537 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
16538 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
16540 alpine_termdata=info
16541 LIBS="$LIBS -lcurses"
16543 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
16546 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
16547 if ${ac_cv_lib_termlib_tgetent+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-ltermlib $LIBS"
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 char tgetent ();
16563 main ()
16565 return tgetent ();
16567 return 0;
16569 _ACEOF
16570 if ac_fn_c_try_link "$LINENO"; then :
16571 ac_cv_lib_termlib_tgetent=yes
16572 else
16573 ac_cv_lib_termlib_tgetent=no
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16577 LIBS=$ac_check_lib_save_LIBS
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
16580 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
16581 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
16583 alpine_termdata=cap
16584 LIBS="$LIBS -ltermlib"
16586 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
16589 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
16590 if ${ac_cv_lib_termcap_tgetent+:} false; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-ltermcap $LIBS"
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16598 /* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 char tgetent ();
16606 main ()
16608 return tgetent ();
16610 return 0;
16612 _ACEOF
16613 if ac_fn_c_try_link "$LINENO"; then :
16614 ac_cv_lib_termcap_tgetent=yes
16615 else
16616 ac_cv_lib_termcap_tgetent=no
16618 rm -f core conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16620 LIBS=$ac_check_lib_save_LIBS
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
16623 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16624 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
16626 alpine_termdata=cap
16627 LIBS="$LIBS -ltermcap"
16629 else
16631 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
16647 case $alpine_termdata in
16648 info)
16650 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
16653 cap)
16655 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
16658 esac
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16661 $as_echo_n "checking for library containing dlopen... " >&6; }
16662 if ${ac_cv_search_dlopen+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 ac_func_search_save_LIBS=$LIBS
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16669 /* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16672 #ifdef __cplusplus
16673 extern "C"
16674 #endif
16675 char dlopen ();
16677 main ()
16679 return dlopen ();
16681 return 0;
16683 _ACEOF
16684 for ac_lib in '' dl dld; do
16685 if test -z "$ac_lib"; then
16686 ac_res="none required"
16687 else
16688 ac_res=-l$ac_lib
16689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16691 if ac_fn_c_try_link "$LINENO"; then :
16692 ac_cv_search_dlopen=$ac_res
16694 rm -f core conftest.err conftest.$ac_objext \
16695 conftest$ac_exeext
16696 if ${ac_cv_search_dlopen+:} false; then :
16697 break
16699 done
16700 if ${ac_cv_search_dlopen+:} false; then :
16702 else
16703 ac_cv_search_dlopen=no
16705 rm conftest.$ac_ext
16706 LIBS=$ac_func_search_save_LIBS
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16709 $as_echo "$ac_cv_search_dlopen" >&6; }
16710 ac_res=$ac_cv_search_dlopen
16711 if test "$ac_res" != no; then :
16712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16714 else
16715 alpine_DL="none"
16718 if test "x$alpine_DL" = "xnone" ; then
16719 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
16720 exit 1
16723 if test "x$alpine_SSLTYPE" != "xnone" ; then
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
16725 $as_echo_n "checking for library containing SSLeay... " >&6; }
16726 if ${ac_cv_search_SSLeay+:} false; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 ac_func_search_save_LIBS=$LIBS
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16736 #ifdef __cplusplus
16737 extern "C"
16738 #endif
16739 char SSLeay ();
16741 main ()
16743 return SSLeay ();
16745 return 0;
16747 _ACEOF
16748 for ac_lib in '' crypto; do
16749 if test -z "$ac_lib"; then
16750 ac_res="none required"
16751 else
16752 ac_res=-l$ac_lib
16753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16755 if ac_fn_c_try_link "$LINENO"; then :
16756 ac_cv_search_SSLeay=$ac_res
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext
16760 if ${ac_cv_search_SSLeay+:} false; then :
16761 break
16763 done
16764 if ${ac_cv_search_SSLeay+:} false; then :
16766 else
16767 ac_cv_search_SSLeay=no
16769 rm conftest.$ac_ext
16770 LIBS=$ac_func_search_save_LIBS
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
16773 $as_echo "$ac_cv_search_SSLeay" >&6; }
16774 ac_res=$ac_cv_search_SSLeay
16775 if test "$ac_res" != no; then :
16776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16778 else
16779 alpine_CRYPTO="none"
16782 if test "x$alpine_CRYPTO" = "xnone" ; then
16783 as_fn_error $? "crypto library NOT found" "$LINENO" 5
16784 exit 1
16788 if test "x$alpine_SSLTYPE" != "xnone" ; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
16790 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
16791 if ${ac_cv_search_SSL_library_init+:} false; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794 ac_func_search_save_LIBS=$LIBS
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16798 /* Override any GCC internal prototype to avoid an error.
16799 Use char because int might match the return type of a GCC
16800 builtin and then its argument prototype would still apply. */
16801 #ifdef __cplusplus
16802 extern "C"
16803 #endif
16804 char SSL_library_init ();
16806 main ()
16808 return SSL_library_init ();
16810 return 0;
16812 _ACEOF
16813 for ac_lib in '' ssl; do
16814 if test -z "$ac_lib"; then
16815 ac_res="none required"
16816 else
16817 ac_res=-l$ac_lib
16818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 ac_cv_search_SSL_library_init=$ac_res
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext
16825 if ${ac_cv_search_SSL_library_init+:} false; then :
16826 break
16828 done
16829 if ${ac_cv_search_SSL_library_init+:} false; then :
16831 else
16832 ac_cv_search_SSL_library_init=no
16834 rm conftest.$ac_ext
16835 LIBS=$ac_func_search_save_LIBS
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
16838 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
16839 ac_res=$ac_cv_search_SSL_library_init
16840 if test "$ac_res" != no; then :
16841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16843 else
16844 alpine_SSLTYPE="none"
16848 if test "x$alpine_SSLTYPE" = "xnone" ; then
16849 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
16850 exit 1
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.1c" >&5
16854 $as_echo_n "checking Openssl library version >= 1.0.1c... " >&6; }
16855 if test "$cross_compiling" = yes; then :
16856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16858 as_fn_error $? "cannot run test program while cross compiling
16859 See \`config.log' for more details" "$LINENO" 5; }
16860 else
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16864 #include <stdio.h>
16865 #include <stdlib.h>
16866 #include <openssl/ssl.h>
16867 int main(void) {
16869 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
16870 exit(0);
16872 exit(2);
16875 _ACEOF
16876 if ac_fn_c_try_run "$LINENO"; then :
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16878 $as_echo "yes" >&6; }
16879 else
16880 alpine_SSLTYPE="none"
16882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16883 conftest.$ac_objext conftest.beam conftest.$ac_ext
16887 if test "x$alpine_SSLTYPE" = "xnone" ; then
16888 as_fn_error $? "Install openssl version >= 1.0.1c" "$LINENO" 5
16889 exit 1
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
16892 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
16893 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 ac_func_search_save_LIBS=$LIBS
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16900 /* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 char TLSv1_2_client_method ();
16908 main ()
16910 return TLSv1_2_client_method ();
16912 return 0;
16914 _ACEOF
16915 for ac_lib in '' ssl; do
16916 if test -z "$ac_lib"; then
16917 ac_res="none required"
16918 else
16919 ac_res=-l$ac_lib
16920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16922 if ac_fn_c_try_link "$LINENO"; then :
16923 ac_cv_search_TLSv1_2_client_method=$ac_res
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext
16927 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16928 break
16930 done
16931 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16933 else
16934 ac_cv_search_TLSv1_2_client_method=no
16936 rm conftest.$ac_ext
16937 LIBS=$ac_func_search_save_LIBS
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
16940 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
16941 ac_res=$ac_cv_search_TLSv1_2_client_method
16942 if test "$ac_res" != no; then :
16943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16944 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
16946 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
16953 if test "$alpine_with_ldap" = "yes" ; then
16954 alpine_has_ldap=
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
16956 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
16957 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 ac_check_lib_save_LIBS=$LIBS
16961 LIBS="-llber $LIBS"
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char ber_alloc ();
16973 main ()
16975 return ber_alloc ();
16977 return 0;
16979 _ACEOF
16980 if ac_fn_c_try_link "$LINENO"; then :
16981 ac_cv_lib_lber_ber_alloc=yes
16982 else
16983 ac_cv_lib_lber_ber_alloc=no
16985 rm -f core conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16987 LIBS=$ac_check_lib_save_LIBS
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
16990 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
16991 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
16993 LIBS="$LIBS -llber"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
16998 $as_echo_n "checking for library containing ldap_init... " >&6; }
16999 if ${ac_cv_search_ldap_init+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001 else
17002 ac_func_search_save_LIBS=$LIBS
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char ldap_init ();
17014 main ()
17016 return ldap_init ();
17018 return 0;
17020 _ACEOF
17021 for ac_lib in '' ldap; do
17022 if test -z "$ac_lib"; then
17023 ac_res="none required"
17024 else
17025 ac_res=-l$ac_lib
17026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 ac_cv_search_ldap_init=$ac_res
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext
17033 if ${ac_cv_search_ldap_init+:} false; then :
17034 break
17036 done
17037 if ${ac_cv_search_ldap_init+:} false; then :
17039 else
17040 ac_cv_search_ldap_init=no
17042 rm conftest.$ac_ext
17043 LIBS=$ac_func_search_save_LIBS
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17046 $as_echo "$ac_cv_search_ldap_init" >&6; }
17047 ac_res=$ac_cv_search_ldap_init
17048 if test "$ac_res" != no; then :
17049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17051 alpine_has_ldap=yes
17053 else
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17056 $as_echo_n "checking for library containing ldap_open... " >&6; }
17057 if ${ac_cv_search_ldap_open+:} false; then :
17058 $as_echo_n "(cached) " >&6
17059 else
17060 ac_func_search_save_LIBS=$LIBS
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17064 /* Override any GCC internal prototype to avoid an error.
17065 Use char because int might match the return type of a GCC
17066 builtin and then its argument prototype would still apply. */
17067 #ifdef __cplusplus
17068 extern "C"
17069 #endif
17070 char ldap_open ();
17072 main ()
17074 return ldap_open ();
17076 return 0;
17078 _ACEOF
17079 for ac_lib in '' ldap; do
17080 if test -z "$ac_lib"; then
17081 ac_res="none required"
17082 else
17083 ac_res=-l$ac_lib
17084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17086 if ac_fn_c_try_link "$LINENO"; then :
17087 ac_cv_search_ldap_open=$ac_res
17089 rm -f core conftest.err conftest.$ac_objext \
17090 conftest$ac_exeext
17091 if ${ac_cv_search_ldap_open+:} false; then :
17092 break
17094 done
17095 if ${ac_cv_search_ldap_open+:} false; then :
17097 else
17098 ac_cv_search_ldap_open=no
17100 rm conftest.$ac_ext
17101 LIBS=$ac_func_search_save_LIBS
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
17104 $as_echo "$ac_cv_search_ldap_open" >&6; }
17105 ac_res=$ac_cv_search_ldap_open
17106 if test "$ac_res" != no; then :
17107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17109 alpine_has_ldap=yes
17117 if test "$alpine_has_ldap" = "yes" ; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
17119 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
17121 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
17125 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
17126 if test "$cross_compiling" = yes; then :
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
17129 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17132 else
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17136 #include <stdio.h>
17137 #include <stdlib.h>
17138 #include <ldap.h>
17139 int main(void) {
17141 if (LDAP_VENDOR_VERSION >= 20300)
17142 exit(0);
17144 exit(2);
17147 _ACEOF
17148 if ac_fn_c_try_run "$LINENO"; then :
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17151 $as_echo "yes" >&6; }
17153 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
17157 else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160 $as_echo "no" >&6; }
17163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17164 conftest.$ac_objext conftest.beam conftest.$ac_ext
17168 else
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
17170 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
17174 if test "x$alpine_PAM" != "xnone" ; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
17176 $as_echo_n "checking for library containing pam_start... " >&6; }
17177 if ${ac_cv_search_pam_start+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 ac_func_search_save_LIBS=$LIBS
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17187 #ifdef __cplusplus
17188 extern "C"
17189 #endif
17190 char pam_start ();
17192 main ()
17194 return pam_start ();
17196 return 0;
17198 _ACEOF
17199 for ac_lib in '' pam; do
17200 if test -z "$ac_lib"; then
17201 ac_res="none required"
17202 else
17203 ac_res=-l$ac_lib
17204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17206 if ac_fn_c_try_link "$LINENO"; then :
17207 ac_cv_search_pam_start=$ac_res
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext
17211 if ${ac_cv_search_pam_start+:} false; then :
17212 break
17214 done
17215 if ${ac_cv_search_pam_start+:} false; then :
17217 else
17218 ac_cv_search_pam_start=no
17220 rm conftest.$ac_ext
17221 LIBS=$ac_func_search_save_LIBS
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
17224 $as_echo "$ac_cv_search_pam_start" >&6; }
17225 ac_res=$ac_cv_search_pam_start
17226 if test "$ac_res" != no; then :
17227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17229 LIBS="$LIBS -lpam"
17230 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17231 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17233 alpine_PAM="yes"
17235 else
17236 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17237 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17239 alpine_PAM="yes"
17240 if test "x$alpine_c_client_target" != "xoxp" ; then
17241 alpine_PAM="none"
17242 alpine_pam_none_reason="header files not in security/ directory"
17245 else
17247 alpine_PAM="none"
17248 alpine_pam_none_reason="header files not found"
17258 else
17260 alpine_PAM="none"
17261 alpine_pam_none_reason="library files not found"
17265 if test -n "$alpine_pam_none_reason" ; then
17266 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
17271 if test "x$alpine_GSSTYPE" != "xnone" ; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
17273 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
17274 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 ac_func_search_save_LIBS=$LIBS
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 char gss_init_sec_context ();
17289 main ()
17291 return gss_init_sec_context ();
17293 return 0;
17295 _ACEOF
17296 for ac_lib in '' gss gssapi gssapi_krb5; do
17297 if test -z "$ac_lib"; then
17298 ac_res="none required"
17299 else
17300 ac_res=-l$ac_lib
17301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17303 if ac_fn_c_try_link "$LINENO"; then :
17304 ac_cv_search_gss_init_sec_context=$ac_res
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext
17308 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17309 break
17311 done
17312 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17314 else
17315 ac_cv_search_gss_init_sec_context=no
17317 rm conftest.$ac_ext
17318 LIBS=$ac_func_search_save_LIBS
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
17321 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
17322 ac_res=$ac_cv_search_gss_init_sec_context
17323 if test "$ac_res" != no; then :
17324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17326 LIBS="$LIBS -lkrb5"
17327 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
17328 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
17330 else
17332 if test ! -d /usr/kerberos/include ; then
17333 alpine_GSSTYPE="none"
17334 alpine_gss_none_reason="header files not found"
17341 else
17343 alpine_GSSTYPE="none"
17344 alpine_gss_none_reason="libraries not found"
17348 if test -n "$alpine_gss_none_reason" ; then
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
17350 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
17354 if test -n "$WEB_BUILD" ; then
17355 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
17356 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
17357 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
17359 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
17360 if ${ac_cv_search_Tcl_Eval+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 ac_func_search_save_LIBS=$LIBS
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char Tcl_Eval ();
17375 main ()
17377 return Tcl_Eval ();
17379 return 0;
17381 _ACEOF
17382 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
17383 if test -z "$ac_lib"; then
17384 ac_res="none required"
17385 else
17386 ac_res=-l$ac_lib
17387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 ac_cv_search_Tcl_Eval=$ac_res
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext
17394 if ${ac_cv_search_Tcl_Eval+:} false; then :
17395 break
17397 done
17398 if ${ac_cv_search_Tcl_Eval+:} false; then :
17400 else
17401 ac_cv_search_Tcl_Eval=no
17403 rm conftest.$ac_ext
17404 LIBS=$ac_func_search_save_LIBS
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
17407 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
17408 ac_res=$ac_cv_search_Tcl_Eval
17409 if test "$ac_res" != no; then :
17410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17412 else
17414 WEB_BUILD=
17419 if test -n "$alpine_TCLINC" ; then
17420 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
17421 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
17422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17424 else
17426 WEB_BUILD=
17431 if test -z "$WEB_BUILD" ; then
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
17433 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
17435 else
17436 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
17437 if test "x$ac_cv_header_tcl_h" = xyes; then :
17439 else
17441 for base in /usr /usr/local ; do
17442 for dir in ${TCL_VERSIONS} ; do
17443 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
17445 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
17446 if eval \${$as_ac_File+:} false; then :
17447 $as_echo_n "(cached) " >&6
17448 else
17449 test "$cross_compiling" = yes &&
17450 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17451 if test -r "$base/include/$dir/tcl.h"; then
17452 eval "$as_ac_File=yes"
17453 else
17454 eval "$as_ac_File=no"
17457 eval ac_res=\$$as_ac_File
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17459 $as_echo "$ac_res" >&6; }
17460 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17462 found=yes
17466 if test "$found" = "yes" ; then
17467 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
17468 break
17470 done
17471 if test "$found" = "yes" ; then
17472 break
17474 done
17475 if test "$found" != "yes" ; then
17476 WEB_BUILD=
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
17478 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
17487 if test "x$alpine_REGEX" != "xyes" ; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
17489 $as_echo_n "checking for library containing regcomp... " >&6; }
17490 if ${ac_cv_search_regcomp+:} false; then :
17491 $as_echo_n "(cached) " >&6
17492 else
17493 ac_func_search_save_LIBS=$LIBS
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17497 /* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17500 #ifdef __cplusplus
17501 extern "C"
17502 #endif
17503 char regcomp ();
17505 main ()
17507 return regcomp ();
17509 return 0;
17511 _ACEOF
17512 for ac_lib in '' posix regexp regex re; do
17513 if test -z "$ac_lib"; then
17514 ac_res="none required"
17515 else
17516 ac_res=-l$ac_lib
17517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17519 if ac_fn_c_try_link "$LINENO"; then :
17520 ac_cv_search_regcomp=$ac_res
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext
17524 if ${ac_cv_search_regcomp+:} false; then :
17525 break
17527 done
17528 if ${ac_cv_search_regcomp+:} false; then :
17530 else
17531 ac_cv_search_regcomp=no
17533 rm conftest.$ac_ext
17534 LIBS=$ac_func_search_save_LIBS
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
17537 $as_echo "$ac_cv_search_regcomp" >&6; }
17538 ac_res=$ac_cv_search_regcomp
17539 if test "$ac_res" != no; then :
17540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17542 else
17544 if test x$alpine_REGEX = "xno" ; then
17545 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
17546 else
17547 alpine_REGEX=yes
17553 if test "x$alpine_REGEX" != "xyes" ; then
17554 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17555 if test "x$ac_cv_header_regex_h" = xyes; then :
17557 else
17559 if test x$alpine_REGEX = "xno" ; then
17560 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
17561 else
17562 alpine_REGEX=yes
17570 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
17572 if test "x$alpine_REGEX" = "xyes" ; then
17573 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
17574 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
17575 REGEX_BUILD=regex
17576 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
17579 if test "x$with_pthread" != "xno" ; then
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
17581 $as_echo_n "checking for pthread support... " >&6; }
17585 ac_ext=c
17586 ac_cpp='$CPP $CPPFLAGS'
17587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17591 acx_pthread_ok=no
17593 # We used to check for pthread.h first, but this fails if pthread.h
17594 # requires special compiler flags (e.g. on True64 or Sequent).
17595 # It gets checked for in the link test anyway.
17597 # First of all, check if the user has set any of the PTHREAD_LIBS,
17598 # etcetera environment variables, and if threads linking works using
17599 # them:
17600 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17601 save_CFLAGS="$CFLAGS"
17602 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17603 save_LIBS="$LIBS"
17604 LIBS="$PTHREAD_LIBS $LIBS"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17606 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char pthread_join ();
17618 main ()
17620 return pthread_join ();
17622 return 0;
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"; then :
17626 acx_pthread_ok=yes
17628 rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17631 $as_echo "$acx_pthread_ok" >&6; }
17632 if test x"$acx_pthread_ok" = xno; then
17633 PTHREAD_LIBS=""
17634 PTHREAD_CFLAGS=""
17636 LIBS="$save_LIBS"
17637 CFLAGS="$save_CFLAGS"
17640 # We must check for the threads library under a number of different
17641 # names; the ordering is very important because some systems
17642 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17643 # libraries is broken (non-POSIX).
17645 # Create a list of thread flags to try. Items starting with a "-" are
17646 # C compiler flags, and other items are library names, except for "none"
17647 # which indicates that we try without any flags at all, and "pthread-config"
17648 # which is a program returning the flags for the Pth emulation library.
17650 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17652 # The ordering *is* (sometimes) important. Some notes on the
17653 # individual items follow:
17655 # pthreads: AIX (must check this before -lpthread)
17656 # none: in case threads are in libc; should be tried before -Kthread and
17657 # other compiler flags to prevent continual compiler warnings
17658 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17659 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17660 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17661 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17662 # -pthreads: Solaris/gcc
17663 # -mthreads: Mingw32/gcc, Lynx/gcc
17664 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17665 # doesn't hurt to check since this sometimes defines pthreads too;
17666 # also defines -D_REENTRANT)
17667 # ... -mt is also the pthreads flag for HP/aCC
17668 # pthread: Linux, etcetera
17669 # --thread-safe: KAI C++
17670 # pthread-config: use pthread-config program (for GNU Pth library)
17672 case "${host_cpu}-${host_os}" in
17673 *solaris*)
17675 # On Solaris (at least, for some versions), libc contains stubbed
17676 # (non-functional) versions of the pthreads routines, so link-based
17677 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17678 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17679 # a function called by this macro, so we could check for that, but
17680 # who knows whether they'll stub that too in a future libc.) So,
17681 # we'll just look for -pthreads and -lpthread first:
17683 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17685 esac
17687 if test x"$acx_pthread_ok" = xno; then
17688 for flag in $acx_pthread_flags; do
17690 case $flag in
17691 none)
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17693 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17698 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17699 PTHREAD_CFLAGS="$flag"
17702 pthread-config)
17703 # Extract the first word of "pthread-config", so it can be a program name with args.
17704 set dummy pthread-config; ac_word=$2
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17706 $as_echo_n "checking for $ac_word... " >&6; }
17707 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17708 $as_echo_n "(cached) " >&6
17709 else
17710 if test -n "$acx_pthread_config"; then
17711 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17712 else
17713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17714 for as_dir in $PATH
17716 IFS=$as_save_IFS
17717 test -z "$as_dir" && as_dir=.
17718 for ac_exec_ext in '' $ac_executable_extensions; do
17719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17720 ac_cv_prog_acx_pthread_config="yes"
17721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17722 break 2
17724 done
17725 done
17726 IFS=$as_save_IFS
17728 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17731 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17732 if test -n "$acx_pthread_config"; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17734 $as_echo "$acx_pthread_config" >&6; }
17735 else
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17737 $as_echo "no" >&6; }
17741 if test x"$acx_pthread_config" = xno; then continue; fi
17742 PTHREAD_CFLAGS="`pthread-config --cflags`"
17743 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17748 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17749 PTHREAD_LIBS="-l$flag"
17751 esac
17753 save_LIBS="$LIBS"
17754 save_CFLAGS="$CFLAGS"
17755 LIBS="$PTHREAD_LIBS $LIBS"
17756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17758 # Check for various functions. We must include pthread.h,
17759 # since some functions may be macros. (On the Sequent, we
17760 # need a special flag -Kthread to make this header compile.)
17761 # We check for pthread_join because it is in -lpthread on IRIX
17762 # while pthread_create is in libc. We check for pthread_attr_init
17763 # due to DEC craziness with -lpthreads. We check for
17764 # pthread_cleanup_push because it is one of the few pthread
17765 # functions on Solaris that doesn't have a non-functional libc stub.
17766 # We try pthread_create on general principles.
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17769 #include <pthread.h>
17771 main ()
17773 pthread_t th; pthread_join(th, 0);
17774 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17775 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17777 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 acx_pthread_ok=yes
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17786 LIBS="$save_LIBS"
17787 CFLAGS="$save_CFLAGS"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17790 $as_echo "$acx_pthread_ok" >&6; }
17791 if test "x$acx_pthread_ok" = xyes; then
17792 break;
17795 PTHREAD_LIBS=""
17796 PTHREAD_CFLAGS=""
17797 done
17800 # Various other checks:
17801 if test "x$acx_pthread_ok" = xyes; then
17802 save_LIBS="$LIBS"
17803 LIBS="$PTHREAD_LIBS $LIBS"
17804 save_CFLAGS="$CFLAGS"
17805 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17807 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17809 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17810 attr_name=unknown
17811 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814 #include <pthread.h>
17816 main ()
17818 int attr=$attr; return attr;
17820 return 0;
17822 _ACEOF
17823 if ac_fn_c_try_link "$LINENO"; then :
17824 attr_name=$attr; break
17826 rm -f core conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
17828 done
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17830 $as_echo "$attr_name" >&6; }
17831 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17833 cat >>confdefs.h <<_ACEOF
17834 #define PTHREAD_CREATE_JOINABLE $attr_name
17835 _ACEOF
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17840 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17841 flag=no
17842 case "${host_cpu}-${host_os}" in
17843 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17844 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17845 esac
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17847 $as_echo "${flag}" >&6; }
17848 if test "x$flag" != xno; then
17849 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17852 LIBS="$save_LIBS"
17853 CFLAGS="$save_CFLAGS"
17855 # More AIX lossage: must compile with xlc_r or cc_r
17856 if test x"$GCC" != xyes; then
17857 for ac_prog in xlc_r cc_r
17859 # Extract the first word of "$ac_prog", so it can be a program name with args.
17860 set dummy $ac_prog; ac_word=$2
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17862 $as_echo_n "checking for $ac_word... " >&6; }
17863 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 if test -n "$PTHREAD_CC"; then
17867 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17868 else
17869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17870 for as_dir in $PATH
17872 IFS=$as_save_IFS
17873 test -z "$as_dir" && as_dir=.
17874 for ac_exec_ext in '' $ac_executable_extensions; do
17875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17876 ac_cv_prog_PTHREAD_CC="$ac_prog"
17877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17878 break 2
17880 done
17881 done
17882 IFS=$as_save_IFS
17886 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17887 if test -n "$PTHREAD_CC"; then
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17889 $as_echo "$PTHREAD_CC" >&6; }
17890 else
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17892 $as_echo "no" >&6; }
17896 test -n "$PTHREAD_CC" && break
17897 done
17898 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17900 else
17901 PTHREAD_CC=$CC
17903 else
17904 PTHREAD_CC="$CC"
17911 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17912 if test x"$acx_pthread_ok" = xyes; then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916 case "$target" in
17917 *openbsd*)
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
17919 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
17920 AM_CFLAGS="$AM_CFLAGS -pthread"
17922 esac
17923 LIBS="$PTHREAD_LIBS $LIBS"
17924 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
17925 CC="$PTHREAD_CC"
17927 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17931 else
17932 acx_pthread_ok=no
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935 $as_echo "no" >&6; }
17938 ac_ext=c
17939 ac_cpp='$CPP $CPPFLAGS'
17940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
17947 $as_echo_n "checking for library containing nanosleep... " >&6; }
17948 if ${ac_cv_search_nanosleep+:} false; then :
17949 $as_echo_n "(cached) " >&6
17950 else
17951 ac_func_search_save_LIBS=$LIBS
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17955 /* Override any GCC internal prototype to avoid an error.
17956 Use char because int might match the return type of a GCC
17957 builtin and then its argument prototype would still apply. */
17958 #ifdef __cplusplus
17959 extern "C"
17960 #endif
17961 char nanosleep ();
17963 main ()
17965 return nanosleep ();
17967 return 0;
17969 _ACEOF
17970 for ac_lib in '' rt posix4; do
17971 if test -z "$ac_lib"; then
17972 ac_res="none required"
17973 else
17974 ac_res=-l$ac_lib
17975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17977 if ac_fn_c_try_link "$LINENO"; then :
17978 ac_cv_search_nanosleep=$ac_res
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext
17982 if ${ac_cv_search_nanosleep+:} false; then :
17983 break
17985 done
17986 if ${ac_cv_search_nanosleep+:} false; then :
17988 else
17989 ac_cv_search_nanosleep=no
17991 rm conftest.$ac_ext
17992 LIBS=$ac_func_search_save_LIBS
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
17995 $as_echo "$ac_cv_search_nanosleep" >&6; }
17996 ac_res=$ac_cv_search_nanosleep
17997 if test "$ac_res" != no; then :
17998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18001 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18012 $as_echo_n "checking for ANSI C header files... " >&6; }
18013 if ${ac_cv_header_stdc+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 #include <stdlib.h>
18019 #include <stdarg.h>
18020 #include <string.h>
18021 #include <float.h>
18024 main ()
18028 return 0;
18030 _ACEOF
18031 if ac_fn_c_try_compile "$LINENO"; then :
18032 ac_cv_header_stdc=yes
18033 else
18034 ac_cv_header_stdc=no
18036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 if test $ac_cv_header_stdc = yes; then
18039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042 #include <string.h>
18044 _ACEOF
18045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18046 $EGREP "memchr" >/dev/null 2>&1; then :
18048 else
18049 ac_cv_header_stdc=no
18051 rm -f conftest*
18055 if test $ac_cv_header_stdc = yes; then
18056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059 #include <stdlib.h>
18061 _ACEOF
18062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18063 $EGREP "free" >/dev/null 2>&1; then :
18065 else
18066 ac_cv_header_stdc=no
18068 rm -f conftest*
18072 if test $ac_cv_header_stdc = yes; then
18073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18074 if test "$cross_compiling" = yes; then :
18076 else
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18079 #include <ctype.h>
18080 #include <stdlib.h>
18081 #if ((' ' & 0x0FF) == 0x020)
18082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18084 #else
18085 # define ISLOWER(c) \
18086 (('a' <= (c) && (c) <= 'i') \
18087 || ('j' <= (c) && (c) <= 'r') \
18088 || ('s' <= (c) && (c) <= 'z'))
18089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18090 #endif
18092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18094 main ()
18096 int i;
18097 for (i = 0; i < 256; i++)
18098 if (XOR (islower (i), ISLOWER (i))
18099 || toupper (i) != TOUPPER (i))
18100 return 2;
18101 return 0;
18103 _ACEOF
18104 if ac_fn_c_try_run "$LINENO"; then :
18106 else
18107 ac_cv_header_stdc=no
18109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18110 conftest.$ac_objext conftest.beam conftest.$ac_ext
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18116 $as_echo "$ac_cv_header_stdc" >&6; }
18117 if test $ac_cv_header_stdc = yes; then
18119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18123 ac_header_dirent=no
18124 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18125 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18127 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18128 if eval \${$as_ac_Header+:} false; then :
18129 $as_echo_n "(cached) " >&6
18130 else
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133 #include <sys/types.h>
18134 #include <$ac_hdr>
18137 main ()
18139 if ((DIR *) 0)
18140 return 0;
18142 return 0;
18144 _ACEOF
18145 if ac_fn_c_try_compile "$LINENO"; then :
18146 eval "$as_ac_Header=yes"
18147 else
18148 eval "$as_ac_Header=no"
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152 eval ac_res=\$$as_ac_Header
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18154 $as_echo "$ac_res" >&6; }
18155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18156 cat >>confdefs.h <<_ACEOF
18157 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18158 _ACEOF
18160 ac_header_dirent=$ac_hdr; break
18163 done
18164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18165 if test $ac_header_dirent = dirent.h; then
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18167 $as_echo_n "checking for library containing opendir... " >&6; }
18168 if ${ac_cv_search_opendir+:} false; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 ac_func_search_save_LIBS=$LIBS
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char opendir ();
18183 main ()
18185 return opendir ();
18187 return 0;
18189 _ACEOF
18190 for ac_lib in '' dir; do
18191 if test -z "$ac_lib"; then
18192 ac_res="none required"
18193 else
18194 ac_res=-l$ac_lib
18195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18197 if ac_fn_c_try_link "$LINENO"; then :
18198 ac_cv_search_opendir=$ac_res
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext
18202 if ${ac_cv_search_opendir+:} false; then :
18203 break
18205 done
18206 if ${ac_cv_search_opendir+:} false; then :
18208 else
18209 ac_cv_search_opendir=no
18211 rm conftest.$ac_ext
18212 LIBS=$ac_func_search_save_LIBS
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18215 $as_echo "$ac_cv_search_opendir" >&6; }
18216 ac_res=$ac_cv_search_opendir
18217 if test "$ac_res" != no; then :
18218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18222 else
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18224 $as_echo_n "checking for library containing opendir... " >&6; }
18225 if ${ac_cv_search_opendir+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227 else
18228 ac_func_search_save_LIBS=$LIBS
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char opendir ();
18240 main ()
18242 return opendir ();
18244 return 0;
18246 _ACEOF
18247 for ac_lib in '' x; do
18248 if test -z "$ac_lib"; then
18249 ac_res="none required"
18250 else
18251 ac_res=-l$ac_lib
18252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18254 if ac_fn_c_try_link "$LINENO"; then :
18255 ac_cv_search_opendir=$ac_res
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext
18259 if ${ac_cv_search_opendir+:} false; then :
18260 break
18262 done
18263 if ${ac_cv_search_opendir+:} false; then :
18265 else
18266 ac_cv_search_opendir=no
18268 rm conftest.$ac_ext
18269 LIBS=$ac_func_search_save_LIBS
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18272 $as_echo "$ac_cv_search_opendir" >&6; }
18273 ac_res=$ac_cv_search_opendir
18274 if test "$ac_res" != no; then :
18275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18282 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18283 if ${ac_cv_header_stat_broken+:} false; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 #include <sys/types.h>
18289 #include <sys/stat.h>
18291 #if defined S_ISBLK && defined S_IFDIR
18292 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18293 #endif
18295 #if defined S_ISBLK && defined S_IFCHR
18296 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18297 #endif
18299 #if defined S_ISLNK && defined S_IFREG
18300 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18301 #endif
18303 #if defined S_ISSOCK && defined S_IFREG
18304 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18305 #endif
18307 _ACEOF
18308 if ac_fn_c_try_compile "$LINENO"; then :
18309 ac_cv_header_stat_broken=no
18310 else
18311 ac_cv_header_stat_broken=yes
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18316 $as_echo "$ac_cv_header_stat_broken" >&6; }
18317 if test $ac_cv_header_stat_broken = yes; then
18319 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18324 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18325 if ${ac_cv_header_sys_wait_h+:} false; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18330 #include <sys/types.h>
18331 #include <sys/wait.h>
18332 #ifndef WEXITSTATUS
18333 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18334 #endif
18335 #ifndef WIFEXITED
18336 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18337 #endif
18340 main ()
18342 int s;
18343 wait (&s);
18344 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18346 return 0;
18348 _ACEOF
18349 if ac_fn_c_try_compile "$LINENO"; then :
18350 ac_cv_header_sys_wait_h=yes
18351 else
18352 ac_cv_header_sys_wait_h=no
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18357 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18358 if test $ac_cv_header_sys_wait_h = yes; then
18360 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be Included" >&5
18365 $as_echo_n "checking whether time.h and sys/time.h may both be Included... " >&6; }
18366 if ${ac_cv_header_time+:} false; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18371 #include <sys/types.h>
18372 #include <sys/time.h>
18373 #include <time.h>
18376 main ()
18378 if ((struct tm *) 0)
18379 return 0;
18381 return 0;
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"; then :
18385 ac_cv_header_time=yes
18386 else
18387 ac_cv_header_time=no
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18392 $as_echo "$ac_cv_header_time" >&6; }
18393 if test $ac_cv_header_time = yes; then
18395 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
18400 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
18401 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #include <sys/types.h>
18407 #include <termios.h>
18408 #ifdef TIOCGWINSZ
18410 #endif
18412 _ACEOF
18413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18414 $EGREP "yes" >/dev/null 2>&1; then :
18415 ac_cv_sys_tiocgwinsz_in_termios_h=yes
18416 else
18417 ac_cv_sys_tiocgwinsz_in_termios_h=no
18419 rm -f conftest*
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
18423 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
18425 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
18427 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
18428 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433 #include <sys/types.h>
18434 #include <sys/ioctl.h>
18435 #ifdef TIOCGWINSZ
18437 #endif
18439 _ACEOF
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "yes" >/dev/null 2>&1; then :
18442 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
18443 else
18444 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
18446 rm -f conftest*
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
18450 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
18452 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
18454 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
18460 for ac_header in unistd.h
18461 do :
18462 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18463 if test "x$ac_cv_header_unistd_h" = xyes; then :
18464 cat >>confdefs.h <<_ACEOF
18465 #define HAVE_UNISTD_H 1
18466 _ACEOF
18470 done
18473 for ac_header in errno.h \
18474 ctype.h \
18475 fcntl.h \
18476 signal.h \
18477 setjmp.h \
18478 memory.h \
18479 sys/param.h \
18480 sys/socket.h \
18481 sys/uio.h \
18482 sys/un.h \
18483 limits.h \
18484 wchar.h \
18485 sys/poll.h \
18486 stropts.h \
18487 netdb.h \
18488 syslog.h \
18489 sys/syslog.h \
18490 locale.h \
18491 langinfo.h \
18492 utime.h \
18493 sys/utime.h \
18494 pthread.h \
18495 pwd.h \
18496 assert.h
18497 do :
18498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18501 cat >>confdefs.h <<_ACEOF
18502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18503 _ACEOF
18507 done
18510 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18511 if test "x$ac_cv_header_termios_h" = xyes; then :
18513 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
18515 else
18517 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
18518 if test "x$ac_cv_header_termio_h" = xyes; then :
18520 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
18522 else
18524 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
18525 if test "x$ac_cv_header_sgtty_h" = xyes; then :
18527 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
18529 else
18531 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18548 $as_echo_n "checking return type of signal handlers... " >&6; }
18549 if ${ac_cv_type_signal+:} false; then :
18550 $as_echo_n "(cached) " >&6
18551 else
18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h. */
18554 #include <sys/types.h>
18555 #include <signal.h>
18558 main ()
18560 return *(signal (0, 0)) (0) == 1;
18562 return 0;
18564 _ACEOF
18565 if ac_fn_c_try_compile "$LINENO"; then :
18566 ac_cv_type_signal=int
18567 else
18568 ac_cv_type_signal=void
18570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18573 $as_echo "$ac_cv_type_signal" >&6; }
18575 cat >>confdefs.h <<_ACEOF
18576 #define RETSIGTYPE $ac_cv_type_signal
18577 _ACEOF
18580 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18581 if test "x$ac_cv_type_size_t" = xyes; then :
18583 else
18585 cat >>confdefs.h <<_ACEOF
18586 #define size_t unsigned int
18587 _ACEOF
18591 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18592 if test "x$ac_cv_type_mode_t" = xyes; then :
18594 else
18596 cat >>confdefs.h <<_ACEOF
18597 #define mode_t int
18598 _ACEOF
18602 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18603 if test "x$ac_cv_type_pid_t" = xyes; then :
18605 else
18607 cat >>confdefs.h <<_ACEOF
18608 #define pid_t int
18609 _ACEOF
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18614 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18615 if ${ac_cv_type_uid_t+:} false; then :
18616 $as_echo_n "(cached) " >&6
18617 else
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18620 #include <sys/types.h>
18622 _ACEOF
18623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18624 $EGREP "uid_t" >/dev/null 2>&1; then :
18625 ac_cv_type_uid_t=yes
18626 else
18627 ac_cv_type_uid_t=no
18629 rm -f conftest*
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18633 $as_echo "$ac_cv_type_uid_t" >&6; }
18634 if test $ac_cv_type_uid_t = no; then
18636 $as_echo "#define uid_t int" >>confdefs.h
18639 $as_echo "#define gid_t int" >>confdefs.h
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18644 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18645 if ${ac_cv_struct_tm+:} false; then :
18646 $as_echo_n "(cached) " >&6
18647 else
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650 #include <sys/types.h>
18651 #include <time.h>
18654 main ()
18656 struct tm tm;
18657 int *p = &tm.tm_sec;
18658 return !p;
18660 return 0;
18662 _ACEOF
18663 if ac_fn_c_try_compile "$LINENO"; then :
18664 ac_cv_struct_tm=time.h
18665 else
18666 ac_cv_struct_tm=sys/time.h
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18671 $as_echo "$ac_cv_struct_tm" >&6; }
18672 if test $ac_cv_struct_tm = sys/time.h; then
18674 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18679 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
18680 if test "x$ac_cv_type_union_wait" = xyes; then :
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_UNION_WAIT 1
18684 _ACEOF
18690 for ac_header in stdint.h
18691 do :
18692 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18693 if test "x$ac_cv_header_stdint_h" = xyes; then :
18694 cat >>confdefs.h <<_ACEOF
18695 #define HAVE_STDINT_H 1
18696 _ACEOF
18697 uint16=uint16_t
18698 else
18700 for ac_header in inttypes.h
18701 do :
18702 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18703 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18704 cat >>confdefs.h <<_ACEOF
18705 #define HAVE_INTTYPES_H 1
18706 _ACEOF
18707 uint16=uint16_t
18708 else
18710 for ac_header in sys/types.h
18711 do :
18712 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18713 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_SYS_TYPES_H 1
18716 _ACEOF
18717 uint16=u_int16_t
18718 else
18720 # The cast to long int works around a bug in the HP C Compiler
18721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18723 # This bug is HP SR number 8606223364.
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18725 $as_echo_n "checking size of unsigned short... " >&6; }
18726 if ${ac_cv_sizeof_unsigned_short+:} false; then :
18727 $as_echo_n "(cached) " >&6
18728 else
18729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
18731 else
18732 if test "$ac_cv_type_unsigned_short" = yes; then
18733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18735 as_fn_error 77 "cannot compute sizeof (unsigned short)
18736 See \`config.log' for more details" "$LINENO" 5; }
18737 else
18738 ac_cv_sizeof_unsigned_short=0
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18744 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
18748 cat >>confdefs.h <<_ACEOF
18749 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
18750 _ACEOF
18753 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
18754 uint16="unsigned short"
18755 else
18756 # The cast to long int works around a bug in the HP C Compiler
18757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18759 # This bug is HP SR number 8606223364.
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18761 $as_echo_n "checking size of unsigned int... " >&6; }
18762 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18767 else
18768 if test "$ac_cv_type_unsigned_int" = yes; then
18769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18771 as_fn_error 77 "cannot compute sizeof (unsigned int)
18772 See \`config.log' for more details" "$LINENO" 5; }
18773 else
18774 ac_cv_sizeof_unsigned_int=0
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18780 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18784 cat >>confdefs.h <<_ACEOF
18785 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18786 _ACEOF
18789 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
18790 uint16="unsigned int"
18791 else
18792 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
18798 done
18803 done
18808 done
18811 cat >>confdefs.h <<_ACEOF
18812 #define UINT16 $uint16
18813 _ACEOF
18816 for ac_header in stdint.h
18817 do :
18818 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18819 if test "x$ac_cv_header_stdint_h" = xyes; then :
18820 cat >>confdefs.h <<_ACEOF
18821 #define HAVE_STDINT_H 1
18822 _ACEOF
18823 uint32=uint32_t
18824 else
18826 for ac_header in inttypes.h
18827 do :
18828 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18829 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_INTTYPES_H 1
18832 _ACEOF
18833 uint32=uint32_t
18834 else
18836 for ac_header in sys/types.h
18837 do :
18838 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18839 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18840 cat >>confdefs.h <<_ACEOF
18841 #define HAVE_SYS_TYPES_H 1
18842 _ACEOF
18843 uint32=u_int32_t
18844 else
18846 # The cast to long int works around a bug in the HP C Compiler
18847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18849 # This bug is HP SR number 8606223364.
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18851 $as_echo_n "checking size of unsigned int... " >&6; }
18852 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854 else
18855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18857 else
18858 if test "$ac_cv_type_unsigned_int" = yes; then
18859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18861 as_fn_error 77 "cannot compute sizeof (unsigned int)
18862 See \`config.log' for more details" "$LINENO" 5; }
18863 else
18864 ac_cv_sizeof_unsigned_int=0
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18870 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18874 cat >>confdefs.h <<_ACEOF
18875 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18876 _ACEOF
18879 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
18880 uint32="unsigned int"
18881 else
18882 # The cast to long int works around a bug in the HP C Compiler
18883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18885 # This bug is HP SR number 8606223364.
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18887 $as_echo_n "checking size of unsigned long... " >&6; }
18888 if ${ac_cv_sizeof_unsigned_long+:} false; then :
18889 $as_echo_n "(cached) " >&6
18890 else
18891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
18893 else
18894 if test "$ac_cv_type_unsigned_long" = yes; then
18895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18897 as_fn_error 77 "cannot compute sizeof (unsigned long)
18898 See \`config.log' for more details" "$LINENO" 5; }
18899 else
18900 ac_cv_sizeof_unsigned_long=0
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18906 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
18910 cat >>confdefs.h <<_ACEOF
18911 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18912 _ACEOF
18915 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
18916 uint32="unsigned long"
18917 else
18918 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
18924 done
18929 done
18934 done
18937 cat >>confdefs.h <<_ACEOF
18938 #define UINT32 $uint32
18939 _ACEOF
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
18943 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
18944 if ${ac_cv_func_qsort_argtype+:} false; then :
18945 $as_echo_n "(cached) " >&6
18946 else
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18950 #if HAVE_STDLIB_H
18951 #include "stdlib.h"
18952 #endif
18954 extern void *base;
18955 extern sortf(const void *, const void *);
18956 int sortf(a, b)
18957 const void *a;
18958 const void *b; { return 0; }
18961 main ()
18964 qsort(base, 2, sizeof(char *), sortf);
18967 return 0;
18969 _ACEOF
18970 if ac_fn_c_try_compile "$LINENO"; then :
18971 ac_cv_func_qsort_argtype=void
18972 else
18973 ac_cv_func_qsort_argtype=char
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
18979 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
18981 cat >>confdefs.h <<_ACEOF
18982 #define qsort_t $ac_cv_func_qsort_argtype
18983 _ACEOF
18987 for ac_header in sys/select.h sys/socket.h
18988 do :
18989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18994 _ACEOF
18998 done
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19001 $as_echo_n "checking types of arguments for select... " >&6; }
19002 if ${ac_cv_func_select_args+:} false; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19005 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19006 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19007 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19010 $ac_includes_default
19011 #ifdef HAVE_SYS_SELECT_H
19012 # include <sys/select.h>
19013 #endif
19014 #ifdef HAVE_SYS_SOCKET_H
19015 # include <sys/socket.h>
19016 #endif
19019 main ()
19021 extern int select ($ac_arg1,
19022 $ac_arg234, $ac_arg234, $ac_arg234,
19023 $ac_arg5);
19025 return 0;
19027 _ACEOF
19028 if ac_fn_c_try_compile "$LINENO"; then :
19029 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 done
19033 done
19034 done
19035 # Provide a safe default value.
19036 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19040 $as_echo "$ac_cv_func_select_args" >&6; }
19041 ac_save_IFS=$IFS; IFS=','
19042 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19043 IFS=$ac_save_IFS
19044 shift
19046 cat >>confdefs.h <<_ACEOF
19047 #define SELECT_TYPE_ARG1 $1
19048 _ACEOF
19051 cat >>confdefs.h <<_ACEOF
19052 #define SELECT_TYPE_ARG234 ($2)
19053 _ACEOF
19056 cat >>confdefs.h <<_ACEOF
19057 #define SELECT_TYPE_ARG5 ($3)
19058 _ACEOF
19060 rm -f conftest*
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19064 $as_echo_n "checking for working strcoll... " >&6; }
19065 if ${ac_cv_func_strcoll_works+:} false; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 if test "$cross_compiling" = yes; then :
19069 ac_cv_func_strcoll_works=no
19070 else
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073 $ac_includes_default
19075 main ()
19077 return (strcoll ("abc", "def") >= 0 ||
19078 strcoll ("ABC", "DEF") >= 0 ||
19079 strcoll ("123", "456") >= 0)
19081 return 0;
19083 _ACEOF
19084 if ac_fn_c_try_run "$LINENO"; then :
19085 ac_cv_func_strcoll_works=yes
19086 else
19087 ac_cv_func_strcoll_works=no
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19090 conftest.$ac_objext conftest.beam conftest.$ac_ext
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
19095 $as_echo "$ac_cv_func_strcoll_works" >&6; }
19096 if test $ac_cv_func_strcoll_works = yes; then
19098 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
19104 for ac_header in vfork.h
19105 do :
19106 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19107 if test "x$ac_cv_header_vfork_h" = xyes; then :
19108 cat >>confdefs.h <<_ACEOF
19109 #define HAVE_VFORK_H 1
19110 _ACEOF
19114 done
19116 for ac_func in fork vfork
19117 do :
19118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19121 cat >>confdefs.h <<_ACEOF
19122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19123 _ACEOF
19126 done
19128 if test "x$ac_cv_func_fork" = xyes; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19130 $as_echo_n "checking for working fork... " >&6; }
19131 if ${ac_cv_func_fork_works+:} false; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 if test "$cross_compiling" = yes; then :
19135 ac_cv_func_fork_works=cross
19136 else
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 $ac_includes_default
19141 main ()
19144 /* By Ruediger Kuhlmann. */
19145 return fork () < 0;
19148 return 0;
19150 _ACEOF
19151 if ac_fn_c_try_run "$LINENO"; then :
19152 ac_cv_func_fork_works=yes
19153 else
19154 ac_cv_func_fork_works=no
19156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19157 conftest.$ac_objext conftest.beam conftest.$ac_ext
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19162 $as_echo "$ac_cv_func_fork_works" >&6; }
19164 else
19165 ac_cv_func_fork_works=$ac_cv_func_fork
19167 if test "x$ac_cv_func_fork_works" = xcross; then
19168 case $host in
19169 *-*-amigaos* | *-*-msdosdjgpp*)
19170 # Override, as these systems have only a dummy fork() stub
19171 ac_cv_func_fork_works=no
19174 ac_cv_func_fork_works=yes
19176 esac
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19180 ac_cv_func_vfork_works=$ac_cv_func_vfork
19181 if test "x$ac_cv_func_vfork" = xyes; then
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19183 $as_echo_n "checking for working vfork... " >&6; }
19184 if ${ac_cv_func_vfork_works+:} false; then :
19185 $as_echo_n "(cached) " >&6
19186 else
19187 if test "$cross_compiling" = yes; then :
19188 ac_cv_func_vfork_works=cross
19189 else
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192 /* Thanks to Paul Eggert for this test. */
19193 $ac_includes_default
19194 #include <sys/wait.h>
19195 #ifdef HAVE_VFORK_H
19196 # include <vfork.h>
19197 #endif
19198 /* On some sparc systems, changes by the child to local and incoming
19199 argument registers are propagated back to the parent. The compiler
19200 is told about this with #include <vfork.h>, but some compilers
19201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19202 static variable whose address is put into a register that is
19203 clobbered by the vfork. */
19204 static void
19205 #ifdef __cplusplus
19206 sparc_address_test (int arg)
19207 # else
19208 sparc_address_test (arg) int arg;
19209 #endif
19211 static pid_t child;
19212 if (!child) {
19213 child = vfork ();
19214 if (child < 0) {
19215 perror ("vfork");
19216 _exit(2);
19218 if (!child) {
19219 arg = getpid();
19220 write(-1, "", 0);
19221 _exit (arg);
19227 main ()
19229 pid_t parent = getpid ();
19230 pid_t child;
19232 sparc_address_test (0);
19234 child = vfork ();
19236 if (child == 0) {
19237 /* Here is another test for sparc vfork register problems. This
19238 test uses lots of local variables, at least as many local
19239 variables as main has allocated so far including compiler
19240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19242 reuse the register of parent for one of the local variables,
19243 since it will think that parent can't possibly be used any more
19244 in this routine. Assigning to the local variable will thus
19245 munge parent in the parent process. */
19246 pid_t
19247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19249 /* Convince the compiler that p..p7 are live; otherwise, it might
19250 use the same hardware register for all 8 local variables. */
19251 if (p != p1 || p != p2 || p != p3 || p != p4
19252 || p != p5 || p != p6 || p != p7)
19253 _exit(1);
19255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19256 from child file descriptors. If the child closes a descriptor
19257 before it execs or exits, this munges the parent's descriptor
19258 as well. Test for this by closing stdout in the child. */
19259 _exit(close(fileno(stdout)) != 0);
19260 } else {
19261 int status;
19262 struct stat st;
19264 while (wait(&status) != child)
19266 return (
19267 /* Was there some problem with vforking? */
19268 child < 0
19270 /* Did the child fail? (This shouldn't happen.) */
19271 || status
19273 /* Did the vfork/compiler bug occur? */
19274 || parent != getpid()
19276 /* Did the file descriptor bug occur? */
19277 || fstat(fileno(stdout), &st) != 0
19281 _ACEOF
19282 if ac_fn_c_try_run "$LINENO"; then :
19283 ac_cv_func_vfork_works=yes
19284 else
19285 ac_cv_func_vfork_works=no
19287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19288 conftest.$ac_objext conftest.beam conftest.$ac_ext
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19293 $as_echo "$ac_cv_func_vfork_works" >&6; }
19296 if test "x$ac_cv_func_fork_works" = xcross; then
19297 ac_cv_func_vfork_works=$ac_cv_func_vfork
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19302 if test "x$ac_cv_func_vfork_works" = xyes; then
19304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19306 else
19308 $as_echo "#define vfork fork" >>confdefs.h
19311 if test "x$ac_cv_func_fork_works" = xyes; then
19313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19317 for ac_func in strchr \
19318 memcpy \
19319 strtol \
19320 strtoul \
19321 select \
19322 poll \
19323 qsort \
19324 getuid \
19325 getpwuid \
19326 getpwnam \
19327 gettimeofday \
19328 tmpfile \
19329 uname \
19330 rename \
19331 read \
19332 signal \
19333 setjmp \
19334 chown \
19335 wait4 \
19336 waitpid \
19337 wait \
19338 srandom \
19339 popen \
19340 pclose \
19341 fsync \
19342 truncate \
19343 listen \
19344 wcwidth \
19345 mbstowcs \
19346 wcrtomb \
19347 putenv \
19348 setenv
19349 do :
19350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19353 cat >>confdefs.h <<_ACEOF
19354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19355 _ACEOF
19358 done
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19362 $as_echo_n "checking for library containing gethostname... " >&6; }
19363 if ${ac_cv_search_gethostname+:} false; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366 ac_func_search_save_LIBS=$LIBS
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char gethostname ();
19378 main ()
19380 return gethostname ();
19382 return 0;
19384 _ACEOF
19385 for ac_lib in '' nsl; do
19386 if test -z "$ac_lib"; then
19387 ac_res="none required"
19388 else
19389 ac_res=-l$ac_lib
19390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19392 if ac_fn_c_try_link "$LINENO"; then :
19393 ac_cv_search_gethostname=$ac_res
19395 rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext
19397 if ${ac_cv_search_gethostname+:} false; then :
19398 break
19400 done
19401 if ${ac_cv_search_gethostname+:} false; then :
19403 else
19404 ac_cv_search_gethostname=no
19406 rm conftest.$ac_ext
19407 LIBS=$ac_func_search_save_LIBS
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19410 $as_echo "$ac_cv_search_gethostname" >&6; }
19411 ac_res=$ac_cv_search_gethostname
19412 if test "$ac_res" != no; then :
19413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19419 $as_echo_n "checking for library containing socket... " >&6; }
19420 if ${ac_cv_search_socket+:} false; then :
19421 $as_echo_n "(cached) " >&6
19422 else
19423 ac_func_search_save_LIBS=$LIBS
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19427 /* Override any GCC internal prototype to avoid an error.
19428 Use char because int might match the return type of a GCC
19429 builtin and then its argument prototype would still apply. */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 char socket ();
19435 main ()
19437 return socket ();
19439 return 0;
19441 _ACEOF
19442 for ac_lib in '' socket; do
19443 if test -z "$ac_lib"; then
19444 ac_res="none required"
19445 else
19446 ac_res=-l$ac_lib
19447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19449 if ac_fn_c_try_link "$LINENO"; then :
19450 ac_cv_search_socket=$ac_res
19452 rm -f core conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext
19454 if ${ac_cv_search_socket+:} false; then :
19455 break
19457 done
19458 if ${ac_cv_search_socket+:} false; then :
19460 else
19461 ac_cv_search_socket=no
19463 rm conftest.$ac_ext
19464 LIBS=$ac_func_search_save_LIBS
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19467 $as_echo "$ac_cv_search_socket" >&6; }
19468 ac_res=$ac_cv_search_socket
19469 if test "$ac_res" != no; then :
19470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19472 else
19474 WEB_BUILD=
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
19480 $as_echo_n "checking for library containing bind... " >&6; }
19481 if ${ac_cv_search_bind+:} false; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 ac_func_search_save_LIBS=$LIBS
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19491 #ifdef __cplusplus
19492 extern "C"
19493 #endif
19494 char bind ();
19496 main ()
19498 return bind ();
19500 return 0;
19502 _ACEOF
19503 for ac_lib in '' bind; do
19504 if test -z "$ac_lib"; then
19505 ac_res="none required"
19506 else
19507 ac_res=-l$ac_lib
19508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19510 if ac_fn_c_try_link "$LINENO"; then :
19511 ac_cv_search_bind=$ac_res
19513 rm -f core conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext
19515 if ${ac_cv_search_bind+:} false; then :
19516 break
19518 done
19519 if ${ac_cv_search_bind+:} false; then :
19521 else
19522 ac_cv_search_bind=no
19524 rm conftest.$ac_ext
19525 LIBS=$ac_func_search_save_LIBS
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
19528 $as_echo "$ac_cv_search_bind" >&6; }
19529 ac_res=$ac_cv_search_bind
19530 if test "$ac_res" != no; then :
19531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19533 else
19535 WEB_BUILD=
19540 for ac_func in sigaction sigemptyset sigaddset sigprocmask
19541 do :
19542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19545 cat >>confdefs.h <<_ACEOF
19546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19547 _ACEOF
19550 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
19553 else
19555 for ac_func in sigset sigrelse
19556 do :
19557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19560 cat >>confdefs.h <<_ACEOF
19561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19562 _ACEOF
19565 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
19569 done
19573 done
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
19577 $as_echo_n "checking for library containing syslog... " >&6; }
19578 if ${ac_cv_search_syslog+:} false; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 ac_func_search_save_LIBS=$LIBS
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char syslog ();
19593 main ()
19595 return syslog ();
19597 return 0;
19599 _ACEOF
19600 for ac_lib in '' bsd socket inet; do
19601 if test -z "$ac_lib"; then
19602 ac_res="none required"
19603 else
19604 ac_res=-l$ac_lib
19605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19607 if ac_fn_c_try_link "$LINENO"; then :
19608 ac_cv_search_syslog=$ac_res
19610 rm -f core conftest.err conftest.$ac_objext \
19611 conftest$ac_exeext
19612 if ${ac_cv_search_syslog+:} false; then :
19613 break
19615 done
19616 if ${ac_cv_search_syslog+:} false; then :
19618 else
19619 ac_cv_search_syslog=no
19621 rm conftest.$ac_ext
19622 LIBS=$ac_func_search_save_LIBS
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
19625 $as_echo "$ac_cv_search_syslog" >&6; }
19626 ac_res=$ac_cv_search_syslog
19627 if test "$ac_res" != no; then :
19628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19631 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
19638 if test -n "$alpine_with_local_maildir" ; then
19639 alpine_local_maildir=$alpine_with_local_maildir
19640 elif test -d /var/spool/mail ; then
19641 alpine_local_maildir="/var/spool/mail"
19642 elif test -d /var/mail ; then
19643 alpine_local_maildir="/var/mail"
19644 else
19645 alpine_local_maildir="/usr/spool/mail"
19648 if test -n "$alpine_with_c_client_target" ; then
19649 alpine_c_client_target=$alpine_with_c_client_target
19653 cat >>confdefs.h <<_ACEOF
19654 #define SYSTYPE "$systype"
19655 _ACEOF
19658 cat >>confdefs.h <<_ACEOF
19659 #define C_FILESEP '$alpine_path_delim'
19660 _ACEOF
19663 cat >>confdefs.h <<_ACEOF
19664 #define S_FILESEP "$alpine_path_delim"
19665 _ACEOF
19668 cat >>confdefs.h <<_ACEOF
19669 #define MAILDIR "$alpine_local_maildir"
19670 _ACEOF
19673 cat >>confdefs.h <<_ACEOF
19674 #define MODE_READONLY $alpine_mode_readonly
19675 _ACEOF
19678 C_CLIENT_TARGET=$alpine_c_client_target
19680 C_CLIENT_WITH_IPV6=$c_client_ip6
19682 if test "x$alpine_SSLTYPE" = "xnone" ; then
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
19684 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
19685 c_client_specials="${c_client_specials}SSLTYPE=none "
19686 else
19688 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
19689 certdir="$alpine_SSLCERTS"
19690 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
19691 certdir="${alpine_SSLDIR}/certs"
19692 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
19693 certdir="${alpine_SSLDIR}/ssl/certs"
19694 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
19695 certdir="$alpine_SSLCERTS_ORIG"
19696 else
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
19698 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
19701 if test "x$with_smime" != "xno" ; then
19702 if test -n "$certdir" ; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
19704 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
19706 $as_echo "#define SMIME /**/" >>confdefs.h
19709 cat >>confdefs.h <<_ACEOF
19710 #define SMIME_SSLCERTS "$certdir"
19711 _ACEOF
19716 if test ! -f ${certdir}/factory.pem ; then
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
19718 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19720 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19722 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19724 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19727 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
19729 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19731 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19733 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19735 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19738 if test -n "$alpine_SSLINCLUDE" ; then
19739 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
19742 if test -n "$alpine_SSLLIB" ; then
19743 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
19746 if test -n "$alpine_SSLDIR" ; then
19747 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
19750 if test -n "$certdir" ; then
19751 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
19754 if test -n "$alpine_SSLKEYS" ; then
19755 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
19759 if test "x$alpine_GSSTYPE" != "xnone" ; then
19760 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
19762 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
19765 if test -n "$CPPFLAGS" ; then
19766 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
19768 if test -n "$CFLAGS" ; then
19769 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
19772 if test -n "$alpine_c_client_cflags" ; then
19773 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
19777 if test -n "$LDFLAGS" ; then
19778 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
19780 if test -n "$LIBS" ; then
19781 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
19784 if test -n "$alpine_c_client_ldflags" ; then
19785 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
19789 if test -n "$alpine_c_client_gccoptlevel" ; then
19790 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
19794 C_CLIENT_SPECIALS=$c_client_specials
19797 if test -z "$WEB_BUILD" ; then
19798 WEB_PUBCOOKIE_BUILD=
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
19800 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
19802 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
19803 else
19804 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
19805 if test "x$alpine_GSSTYPE" = "xnone" ; then
19806 WEB_PUBCOOKIE_BUILD=
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
19808 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
19810 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
19811 elif test -z "$WEB_BINDIR" ; then
19812 WEB_PUBCOOKIE_BUILD=
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
19814 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
19815 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
19816 Please re-run configure with these options:
19817 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
19818 else
19820 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
19822 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
19823 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
19839 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"
19841 cat >confcache <<\_ACEOF
19842 # This file is a shell script that caches the results of configure
19843 # tests run on this system so they can be shared between configure
19844 # scripts and configure runs, see configure's option --config-cache.
19845 # It is not useful on other systems. If it contains results you don't
19846 # want to keep, you may remove or edit it.
19848 # config.status only pays attention to the cache file if you give it
19849 # the --recheck option to rerun configure.
19851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19853 # following values.
19855 _ACEOF
19857 # The following way of writing the cache mishandles newlines in values,
19858 # but we know of no workaround that is simple, portable, and efficient.
19859 # So, we kill variables containing newlines.
19860 # Ultrix sh set writes to stderr and can't be redirected directly,
19861 # and sets the high bit in the cache file unless we assign to the vars.
19863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19864 eval ac_val=\$$ac_var
19865 case $ac_val in #(
19866 *${as_nl}*)
19867 case $ac_var in #(
19868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19870 esac
19871 case $ac_var in #(
19872 _ | IFS | as_nl) ;; #(
19873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19874 *) { eval $ac_var=; unset $ac_var;} ;;
19875 esac ;;
19876 esac
19877 done
19879 (set) 2>&1 |
19880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19881 *${as_nl}ac_space=\ *)
19882 # `set' does not quote correctly, so add quotes: double-quote
19883 # substitution turns \\\\ into \\, and sed turns \\ into \.
19884 sed -n \
19885 "s/'/'\\\\''/g;
19886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19887 ;; #(
19889 # `set' quotes correctly as required by POSIX, so do not add quotes.
19890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19892 esac |
19893 sort
19895 sed '
19896 /^ac_cv_env_/b end
19897 t clear
19898 :clear
19899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19900 t end
19901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19902 :end' >>confcache
19903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19904 if test -w "$cache_file"; then
19905 if test "x$cache_file" != "x/dev/null"; then
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19907 $as_echo "$as_me: updating cache $cache_file" >&6;}
19908 if test ! -f "$cache_file" || test -h "$cache_file"; then
19909 cat confcache >"$cache_file"
19910 else
19911 case $cache_file in #(
19912 */* | ?:*)
19913 mv -f confcache "$cache_file"$$ &&
19914 mv -f "$cache_file"$$ "$cache_file" ;; #(
19916 mv -f confcache "$cache_file" ;;
19917 esac
19920 else
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19925 rm -f confcache
19927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19928 # Let make expand exec_prefix.
19929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19931 DEFS=-DHAVE_CONFIG_H
19933 ac_libobjs=
19934 ac_ltlibobjs=
19936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19937 # 1. Remove the extension, and $U if already installed.
19938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19939 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19941 # will be set to the directory where LIBOBJS objects are built.
19942 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19943 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19944 done
19945 LIBOBJS=$ac_libobjs
19947 LTLIBOBJS=$ac_ltlibobjs
19950 if test -n "$EXEEXT"; then
19951 am__EXEEXT_TRUE=
19952 am__EXEEXT_FALSE='#'
19953 else
19954 am__EXEEXT_TRUE='#'
19955 am__EXEEXT_FALSE=
19958 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19959 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19963 as_fn_error $? "conditional \"AMDEP\" was never defined.
19964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19971 : "${CONFIG_STATUS=./config.status}"
19972 ac_write_fail=0
19973 ac_clean_files_save=$ac_clean_files
19974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19977 as_write_fail=0
19978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19979 #! $SHELL
19980 # Generated by $as_me.
19981 # Run this file to recreate the current configuration.
19982 # Compiler output produced by configure, useful for debugging
19983 # configure, is in config.log if it exists.
19985 debug=false
19986 ac_cs_recheck=false
19987 ac_cs_silent=false
19989 SHELL=\${CONFIG_SHELL-$SHELL}
19990 export SHELL
19991 _ASEOF
19992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19993 ## -------------------- ##
19994 ## M4sh Initialization. ##
19995 ## -------------------- ##
19997 # Be more Bourne compatible
19998 DUALCASE=1; export DUALCASE # for MKS sh
19999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20000 emulate sh
20001 NULLCMD=:
20002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20003 # is contrary to our usage. Disable this feature.
20004 alias -g '${1+"$@"}'='"$@"'
20005 setopt NO_GLOB_SUBST
20006 else
20007 case `(set -o) 2>/dev/null` in #(
20008 *posix*) :
20009 set -o posix ;; #(
20010 *) :
20012 esac
20016 as_nl='
20018 export as_nl
20019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20023 # Prefer a ksh shell builtin over an external printf program on Solaris,
20024 # but without wasting forks for bash or zsh.
20025 if test -z "$BASH_VERSION$ZSH_VERSION" \
20026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20027 as_echo='print -r --'
20028 as_echo_n='print -rn --'
20029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20030 as_echo='printf %s\n'
20031 as_echo_n='printf %s'
20032 else
20033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20035 as_echo_n='/usr/ucb/echo -n'
20036 else
20037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20038 as_echo_n_body='eval
20039 arg=$1;
20040 case $arg in #(
20041 *"$as_nl"*)
20042 expr "X$arg" : "X\\(.*\\)$as_nl";
20043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20044 esac;
20045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20047 export as_echo_n_body
20048 as_echo_n='sh -c $as_echo_n_body as_echo'
20050 export as_echo_body
20051 as_echo='sh -c $as_echo_body as_echo'
20054 # The user is always right.
20055 if test "${PATH_SEPARATOR+set}" != set; then
20056 PATH_SEPARATOR=:
20057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20059 PATH_SEPARATOR=';'
20064 # IFS
20065 # We need space, tab and new line, in precisely that order. Quoting is
20066 # there to prevent editors from complaining about space-tab.
20067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20068 # splitting by setting IFS to empty value.)
20069 IFS=" "" $as_nl"
20071 # Find who we are. Look in the path if we contain no directory separator.
20072 as_myself=
20073 case $0 in #((
20074 *[\\/]* ) as_myself=$0 ;;
20075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076 for as_dir in $PATH
20078 IFS=$as_save_IFS
20079 test -z "$as_dir" && as_dir=.
20080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20081 done
20082 IFS=$as_save_IFS
20085 esac
20086 # We did not find ourselves, most probably we were run as `sh COMMAND'
20087 # in which case we are not to be found in the path.
20088 if test "x$as_myself" = x; then
20089 as_myself=$0
20091 if test ! -f "$as_myself"; then
20092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20093 exit 1
20096 # Unset variables that we do not need and which cause bugs (e.g. in
20097 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20098 # suppresses any "Segmentation fault" message there. '((' could
20099 # trigger a bug in pdksh 5.2.14.
20100 for as_var in BASH_ENV ENV MAIL MAILPATH
20101 do eval test x\${$as_var+set} = xset \
20102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20103 done
20104 PS1='$ '
20105 PS2='> '
20106 PS4='+ '
20108 # NLS nuisances.
20109 LC_ALL=C
20110 export LC_ALL
20111 LANGUAGE=C
20112 export LANGUAGE
20114 # CDPATH.
20115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20119 # ----------------------------------------
20120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20122 # script with STATUS, using 1 if that was 0.
20123 as_fn_error ()
20125 as_status=$1; test $as_status -eq 0 && as_status=1
20126 if test "$4"; then
20127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20130 $as_echo "$as_me: error: $2" >&2
20131 as_fn_exit $as_status
20132 } # as_fn_error
20135 # as_fn_set_status STATUS
20136 # -----------------------
20137 # Set $? to STATUS, without forking.
20138 as_fn_set_status ()
20140 return $1
20141 } # as_fn_set_status
20143 # as_fn_exit STATUS
20144 # -----------------
20145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20146 as_fn_exit ()
20148 set +e
20149 as_fn_set_status $1
20150 exit $1
20151 } # as_fn_exit
20153 # as_fn_unset VAR
20154 # ---------------
20155 # Portably unset VAR.
20156 as_fn_unset ()
20158 { eval $1=; unset $1;}
20160 as_unset=as_fn_unset
20161 # as_fn_append VAR VALUE
20162 # ----------------------
20163 # Append the text in VALUE to the end of the definition contained in VAR. Take
20164 # advantage of any shell optimizations that allow amortized linear growth over
20165 # repeated appends, instead of the typical quadratic growth present in naive
20166 # implementations.
20167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20168 eval 'as_fn_append ()
20170 eval $1+=\$2
20172 else
20173 as_fn_append ()
20175 eval $1=\$$1\$2
20177 fi # as_fn_append
20179 # as_fn_arith ARG...
20180 # ------------------
20181 # Perform arithmetic evaluation on the ARGs, and store the result in the
20182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20183 # must be portable across $(()) and expr.
20184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20185 eval 'as_fn_arith ()
20187 as_val=$(( $* ))
20189 else
20190 as_fn_arith ()
20192 as_val=`expr "$@" || test $? -eq 1`
20194 fi # as_fn_arith
20197 if expr a : '\(a\)' >/dev/null 2>&1 &&
20198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20199 as_expr=expr
20200 else
20201 as_expr=false
20204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20205 as_basename=basename
20206 else
20207 as_basename=false
20210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20211 as_dirname=dirname
20212 else
20213 as_dirname=false
20216 as_me=`$as_basename -- "$0" ||
20217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20218 X"$0" : 'X\(//\)$' \| \
20219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20220 $as_echo X/"$0" |
20221 sed '/^.*\/\([^/][^/]*\)\/*$/{
20222 s//\1/
20225 /^X\/\(\/\/\)$/{
20226 s//\1/
20229 /^X\/\(\/\).*/{
20230 s//\1/
20233 s/.*/./; q'`
20235 # Avoid depending upon Character Ranges.
20236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20239 as_cr_digits='0123456789'
20240 as_cr_alnum=$as_cr_Letters$as_cr_digits
20242 ECHO_C= ECHO_N= ECHO_T=
20243 case `echo -n x` in #(((((
20244 -n*)
20245 case `echo 'xy\c'` in
20246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20247 xy) ECHO_C='\c';;
20248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20249 ECHO_T=' ';;
20250 esac;;
20252 ECHO_N='-n';;
20253 esac
20255 rm -f conf$$ conf$$.exe conf$$.file
20256 if test -d conf$$.dir; then
20257 rm -f conf$$.dir/conf$$.file
20258 else
20259 rm -f conf$$.dir
20260 mkdir conf$$.dir 2>/dev/null
20262 if (echo >conf$$.file) 2>/dev/null; then
20263 if ln -s conf$$.file conf$$ 2>/dev/null; then
20264 as_ln_s='ln -s'
20265 # ... but there are two gotchas:
20266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20268 # In both cases, we have to default to `cp -pR'.
20269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20270 as_ln_s='cp -pR'
20271 elif ln conf$$.file conf$$ 2>/dev/null; then
20272 as_ln_s=ln
20273 else
20274 as_ln_s='cp -pR'
20276 else
20277 as_ln_s='cp -pR'
20279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20280 rmdir conf$$.dir 2>/dev/null
20283 # as_fn_mkdir_p
20284 # -------------
20285 # Create "$as_dir" as a directory, including parents if necessary.
20286 as_fn_mkdir_p ()
20289 case $as_dir in #(
20290 -*) as_dir=./$as_dir;;
20291 esac
20292 test -d "$as_dir" || eval $as_mkdir_p || {
20293 as_dirs=
20294 while :; do
20295 case $as_dir in #(
20296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20297 *) as_qdir=$as_dir;;
20298 esac
20299 as_dirs="'$as_qdir' $as_dirs"
20300 as_dir=`$as_dirname -- "$as_dir" ||
20301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20302 X"$as_dir" : 'X\(//\)[^/]' \| \
20303 X"$as_dir" : 'X\(//\)$' \| \
20304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20305 $as_echo X"$as_dir" |
20306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20307 s//\1/
20310 /^X\(\/\/\)[^/].*/{
20311 s//\1/
20314 /^X\(\/\/\)$/{
20315 s//\1/
20318 /^X\(\/\).*/{
20319 s//\1/
20322 s/.*/./; q'`
20323 test -d "$as_dir" && break
20324 done
20325 test -z "$as_dirs" || eval "mkdir $as_dirs"
20326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20329 } # as_fn_mkdir_p
20330 if mkdir -p . 2>/dev/null; then
20331 as_mkdir_p='mkdir -p "$as_dir"'
20332 else
20333 test -d ./-p && rmdir ./-p
20334 as_mkdir_p=false
20338 # as_fn_executable_p FILE
20339 # -----------------------
20340 # Test if FILE is an executable regular file.
20341 as_fn_executable_p ()
20343 test -f "$1" && test -x "$1"
20344 } # as_fn_executable_p
20345 as_test_x='test -x'
20346 as_executable_p=as_fn_executable_p
20348 # Sed expression to map a string onto a valid CPP name.
20349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20351 # Sed expression to map a string onto a valid variable name.
20352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20355 exec 6>&1
20356 ## ----------------------------------- ##
20357 ## Main body of $CONFIG_STATUS script. ##
20358 ## ----------------------------------- ##
20359 _ASEOF
20360 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20363 # Save the log message, to keep $0 and so on meaningful, and to
20364 # report actual input values of CONFIG_FILES etc. instead of their
20365 # values after options handling.
20366 ac_log="
20367 This file was extended by alpine $as_me 2.19.9993, which was
20368 generated by GNU Autoconf 2.69. Invocation command line was
20370 CONFIG_FILES = $CONFIG_FILES
20371 CONFIG_HEADERS = $CONFIG_HEADERS
20372 CONFIG_LINKS = $CONFIG_LINKS
20373 CONFIG_COMMANDS = $CONFIG_COMMANDS
20374 $ $0 $@
20376 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20379 _ACEOF
20381 case $ac_config_files in *"
20382 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20383 esac
20385 case $ac_config_headers in *"
20386 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20387 esac
20390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20391 # Files that config.status was made for.
20392 config_files="$ac_config_files"
20393 config_headers="$ac_config_headers"
20394 config_commands="$ac_config_commands"
20396 _ACEOF
20398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20399 ac_cs_usage="\
20400 \`$as_me' instantiates files and other configuration actions
20401 from templates according to the current configuration. Unless the files
20402 and actions are specified as TAGs, all are instantiated by default.
20404 Usage: $0 [OPTION]... [TAG]...
20406 -h, --help print this help, then exit
20407 -V, --version print version number and configuration settings, then exit
20408 --config print configuration, then exit
20409 -q, --quiet, --silent
20410 do not print progress messages
20411 -d, --debug don't remove temporary files
20412 --recheck update $as_me by reconfiguring in the same conditions
20413 --file=FILE[:TEMPLATE]
20414 instantiate the configuration file FILE
20415 --header=FILE[:TEMPLATE]
20416 instantiate the configuration header FILE
20418 Configuration files:
20419 $config_files
20421 Configuration headers:
20422 $config_headers
20424 Configuration commands:
20425 $config_commands
20427 Report bugs to <chappa@washington.edu>."
20429 _ACEOF
20430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20431 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20432 ac_cs_version="\\
20433 alpine config.status 2.19.9993
20434 configured by $0, generated by GNU Autoconf 2.69,
20435 with options \\"\$ac_cs_config\\"
20437 Copyright (C) 2012 Free Software Foundation, Inc.
20438 This config.status script is free software; the Free Software Foundation
20439 gives unlimited permission to copy, distribute and modify it."
20441 ac_pwd='$ac_pwd'
20442 srcdir='$srcdir'
20443 INSTALL='$INSTALL'
20444 MKDIR_P='$MKDIR_P'
20445 AWK='$AWK'
20446 test -n "\$AWK" || AWK=awk
20447 _ACEOF
20449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20450 # The default lists apply if the user does not specify any file.
20451 ac_need_defaults=:
20452 while test $# != 0
20454 case $1 in
20455 --*=?*)
20456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20458 ac_shift=:
20460 --*=)
20461 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20462 ac_optarg=
20463 ac_shift=:
20466 ac_option=$1
20467 ac_optarg=$2
20468 ac_shift=shift
20470 esac
20472 case $ac_option in
20473 # Handling of the options.
20474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20475 ac_cs_recheck=: ;;
20476 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20477 $as_echo "$ac_cs_version"; exit ;;
20478 --config | --confi | --conf | --con | --co | --c )
20479 $as_echo "$ac_cs_config"; exit ;;
20480 --debug | --debu | --deb | --de | --d | -d )
20481 debug=: ;;
20482 --file | --fil | --fi | --f )
20483 $ac_shift
20484 case $ac_optarg in
20485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20486 '') as_fn_error $? "missing file argument" ;;
20487 esac
20488 as_fn_append CONFIG_FILES " '$ac_optarg'"
20489 ac_need_defaults=false;;
20490 --header | --heade | --head | --hea )
20491 $ac_shift
20492 case $ac_optarg in
20493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20494 esac
20495 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20496 ac_need_defaults=false;;
20497 --he | --h)
20498 # Conflict between --help and --header
20499 as_fn_error $? "ambiguous option: \`$1'
20500 Try \`$0 --help' for more information.";;
20501 --help | --hel | -h )
20502 $as_echo "$ac_cs_usage"; exit ;;
20503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20505 ac_cs_silent=: ;;
20507 # This is an error.
20508 -*) as_fn_error $? "unrecognized option: \`$1'
20509 Try \`$0 --help' for more information." ;;
20511 *) as_fn_append ac_config_targets " $1"
20512 ac_need_defaults=false ;;
20514 esac
20515 shift
20516 done
20518 ac_configure_extra_args=
20520 if $ac_cs_silent; then
20521 exec 6>/dev/null
20522 ac_configure_extra_args="$ac_configure_extra_args --silent"
20525 _ACEOF
20526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20527 if \$ac_cs_recheck; then
20528 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20529 shift
20530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20531 CONFIG_SHELL='$SHELL'
20532 export CONFIG_SHELL
20533 exec "\$@"
20536 _ACEOF
20537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20538 exec 5>>config.log
20540 echo
20541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20542 ## Running $as_me. ##
20543 _ASBOX
20544 $as_echo "$ac_log"
20545 } >&5
20547 _ACEOF
20548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20550 # INIT-COMMANDS
20552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20555 # The HP-UX ksh and POSIX shell print the target directory to stdout
20556 # if CDPATH is set.
20557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20559 sed_quote_subst='$sed_quote_subst'
20560 double_quote_subst='$double_quote_subst'
20561 delay_variable_subst='$delay_variable_subst'
20562 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20563 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20564 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20565 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20566 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20567 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20568 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20569 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20570 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20571 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20572 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20573 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20574 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20575 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20576 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20577 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20578 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20579 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20580 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20581 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20582 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20583 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20584 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20585 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20586 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20587 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20588 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20589 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20590 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20591 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20592 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20593 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20594 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20595 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20596 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20597 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20598 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20599 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20600 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20601 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20602 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20603 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20604 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20605 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20606 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20608 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20609 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20610 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20611 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20612 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20613 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20614 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20615 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20616 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20617 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20618 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20619 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20620 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20621 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20622 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20623 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20624 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20625 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20626 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20627 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20628 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20629 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20630 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20631 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20632 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20633 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20634 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20635 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20636 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20637 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20638 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20639 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20640 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20641 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20642 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20643 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20644 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20645 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20646 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20647 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20648 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20649 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20650 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20651 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20652 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20653 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20654 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20655 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20656 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20657 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20658 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20659 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20660 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20661 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20662 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20663 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20664 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20665 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20666 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20667 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20668 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20669 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20670 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20671 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20672 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20673 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20674 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20675 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20676 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20677 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20678 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20679 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20681 LTCC='$LTCC'
20682 LTCFLAGS='$LTCFLAGS'
20683 compiler='$compiler_DEFAULT'
20685 # Quote evaled strings.
20686 for var in SED \
20687 GREP \
20688 EGREP \
20689 FGREP \
20690 LD \
20691 NM \
20692 LN_S \
20693 lt_SP2NL \
20694 lt_NL2SP \
20695 reload_flag \
20696 OBJDUMP \
20697 deplibs_check_method \
20698 file_magic_cmd \
20699 AR \
20700 AR_FLAGS \
20701 STRIP \
20702 RANLIB \
20703 CC \
20704 CFLAGS \
20705 compiler \
20706 lt_cv_sys_global_symbol_pipe \
20707 lt_cv_sys_global_symbol_to_cdecl \
20708 lt_cv_sys_global_symbol_to_c_name_address \
20709 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20710 SHELL \
20711 ECHO \
20712 lt_prog_compiler_no_builtin_flag \
20713 lt_prog_compiler_wl \
20714 lt_prog_compiler_pic \
20715 lt_prog_compiler_static \
20716 lt_cv_prog_compiler_c_o \
20717 need_locks \
20718 DSYMUTIL \
20719 NMEDIT \
20720 LIPO \
20721 OTOOL \
20722 OTOOL64 \
20723 shrext_cmds \
20724 export_dynamic_flag_spec \
20725 whole_archive_flag_spec \
20726 compiler_needs_object \
20727 with_gnu_ld \
20728 allow_undefined_flag \
20729 no_undefined_flag \
20730 hardcode_libdir_flag_spec \
20731 hardcode_libdir_flag_spec_ld \
20732 hardcode_libdir_separator \
20733 fix_srcfile_path \
20734 exclude_expsyms \
20735 include_expsyms \
20736 file_list_spec \
20737 variables_saved_for_relink \
20738 libname_spec \
20739 library_names_spec \
20740 soname_spec \
20741 finish_eval \
20742 old_striplib \
20743 striplib; do
20744 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20745 *[\\\\\\\`\\"\\\$]*)
20746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20751 esac
20752 done
20754 # Double-quote double-evaled strings.
20755 for var in reload_cmds \
20756 old_postinstall_cmds \
20757 old_postuninstall_cmds \
20758 old_archive_cmds \
20759 extract_expsyms_cmds \
20760 old_archive_from_new_cmds \
20761 old_archive_from_expsyms_cmds \
20762 archive_cmds \
20763 archive_expsym_cmds \
20764 module_cmds \
20765 module_expsym_cmds \
20766 export_symbols_cmds \
20767 prelink_cmds \
20768 postinstall_cmds \
20769 postuninstall_cmds \
20770 finish_cmds \
20771 sys_lib_search_path_spec \
20772 sys_lib_dlsearch_path_spec; do
20773 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20774 *[\\\\\\\`\\"\\\$]*)
20775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20780 esac
20781 done
20783 # Fix-up fallback echo if it was mangled by the above quoting rules.
20784 case \$lt_ECHO in
20785 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20787 esac
20789 ac_aux_dir='$ac_aux_dir'
20790 xsi_shell='$xsi_shell'
20791 lt_shell_append='$lt_shell_append'
20793 # See if we are running on zsh, and set the options which allow our
20794 # commands through without removal of \ escapes INIT.
20795 if test -n "\${ZSH_VERSION+set}" ; then
20796 setopt NO_GLOB_SUBST
20800 PACKAGE='$PACKAGE'
20801 VERSION='$VERSION'
20802 TIMESTAMP='$TIMESTAMP'
20803 RM='$RM'
20804 ofile='$ofile'
20808 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20809 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20810 # from automake < 1.5.
20811 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20812 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20813 LINGUAS="${LINGUAS-%UNSET%}"
20816 _ACEOF
20818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20820 # Handling of arguments.
20821 for ac_config_target in $ac_config_targets
20823 case $ac_config_target in
20824 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20825 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20827 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20828 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20829 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20830 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
20831 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
20832 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
20833 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
20834 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
20835 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
20836 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
20837 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
20838 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
20839 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
20840 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
20841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20843 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20844 esac
20845 done
20848 # If the user did not use the arguments to specify the items to instantiate,
20849 # then the envvar interface is used. Set only those that are not.
20850 # We use the long form for the default assignment because of an extremely
20851 # bizarre bug on SunOS 4.1.3.
20852 if $ac_need_defaults; then
20853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20858 # Have a temporary directory for convenience. Make it in the build tree
20859 # simply because there is no reason against having it here, and in addition,
20860 # creating and moving files from /tmp can sometimes cause problems.
20861 # Hook for its removal unless debugging.
20862 # Note that there is a small window in which the directory will not be cleaned:
20863 # after its creation but before its name has been assigned to `$tmp'.
20864 $debug ||
20866 tmp= ac_tmp=
20867 trap 'exit_status=$?
20868 : "${ac_tmp:=$tmp}"
20869 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20871 trap 'as_fn_exit 1' 1 2 13 15
20873 # Create a (secure) tmp directory for tmp files.
20876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20877 test -d "$tmp"
20878 } ||
20880 tmp=./conf$$-$RANDOM
20881 (umask 077 && mkdir "$tmp")
20882 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20883 ac_tmp=$tmp
20885 # Set up the scripts for CONFIG_FILES section.
20886 # No need to generate them if there are no CONFIG_FILES.
20887 # This happens for instance with `./config.status config.h'.
20888 if test -n "$CONFIG_FILES"; then
20891 ac_cr=`echo X | tr X '\015'`
20892 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20893 # But we know of no other shell where ac_cr would be empty at this
20894 # point, so we can use a bashism as a fallback.
20895 if test "x$ac_cr" = x; then
20896 eval ac_cr=\$\'\\r\'
20898 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20899 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20900 ac_cs_awk_cr='\\r'
20901 else
20902 ac_cs_awk_cr=$ac_cr
20905 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20906 _ACEOF
20910 echo "cat >conf$$subs.awk <<_ACEOF" &&
20911 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20912 echo "_ACEOF"
20913 } >conf$$subs.sh ||
20914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20915 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20916 ac_delim='%!_!# '
20917 for ac_last_try in false false false false false :; do
20918 . ./conf$$subs.sh ||
20919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20922 if test $ac_delim_n = $ac_delim_num; then
20923 break
20924 elif $ac_last_try; then
20925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20926 else
20927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20929 done
20930 rm -f conf$$subs.sh
20932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20933 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20934 _ACEOF
20935 sed -n '
20937 s/^/S["/; s/!.*/"]=/
20940 s/^[^!]*!//
20941 :repl
20942 t repl
20943 s/'"$ac_delim"'$//
20944 t delim
20947 s/\(.\{148\}\)..*/\1/
20948 t more1
20949 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20952 b repl
20953 :more1
20954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20957 s/.\{148\}//
20958 t nl
20959 :delim
20961 s/\(.\{148\}\)..*/\1/
20962 t more2
20963 s/["\\]/\\&/g; s/^/"/; s/$/"/
20966 :more2
20967 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20970 s/.\{148\}//
20971 t delim
20972 ' <conf$$subs.awk | sed '
20973 /^[^""]/{
20975 s/\n//
20977 ' >>$CONFIG_STATUS || ac_write_fail=1
20978 rm -f conf$$subs.awk
20979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20980 _ACAWK
20981 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20982 for (key in S) S_is_set[key] = 1
20983 FS = "\a"
20987 line = $ 0
20988 nfields = split(line, field, "@")
20989 substed = 0
20990 len = length(field[1])
20991 for (i = 2; i < nfields; i++) {
20992 key = field[i]
20993 keylen = length(key)
20994 if (S_is_set[key]) {
20995 value = S[key]
20996 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20997 len += length(value) + length(field[++i])
20998 substed = 1
20999 } else
21000 len += 1 + keylen
21003 print line
21006 _ACAWK
21007 _ACEOF
21008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21009 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21010 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21011 else
21013 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21014 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21015 _ACEOF
21017 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21018 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21019 # trailing colons and then remove the whole line if VPATH becomes empty
21020 # (actually we leave an empty line to preserve line numbers).
21021 if test "x$srcdir" = x.; then
21022 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21024 s///
21025 s/^/:/
21026 s/[ ]*$/:/
21027 s/:\$(srcdir):/:/g
21028 s/:\${srcdir}:/:/g
21029 s/:@srcdir@:/:/g
21030 s/^:*//
21031 s/:*$//
21033 s/\(=[ ]*\).*/\1/
21035 s/\n//
21036 s/^[^=]*=[ ]*$//
21040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041 fi # test -n "$CONFIG_FILES"
21043 # Set up the scripts for CONFIG_HEADERS section.
21044 # No need to generate them if there are no CONFIG_HEADERS.
21045 # This happens for instance with `./config.status Makefile'.
21046 if test -n "$CONFIG_HEADERS"; then
21047 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21048 BEGIN {
21049 _ACEOF
21051 # Transform confdefs.h into an awk script `defines.awk', embedded as
21052 # here-document in config.status, that substitutes the proper values into
21053 # config.h.in to produce config.h.
21055 # Create a delimiter string that does not exist in confdefs.h, to ease
21056 # handling of long lines.
21057 ac_delim='%!_!# '
21058 for ac_last_try in false false :; do
21059 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21060 if test -z "$ac_tt"; then
21061 break
21062 elif $ac_last_try; then
21063 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21064 else
21065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21067 done
21069 # For the awk script, D is an array of macro values keyed by name,
21070 # likewise P contains macro parameters if any. Preserve backslash
21071 # newline sequences.
21073 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21074 sed -n '
21075 s/.\{148\}/&'"$ac_delim"'/g
21076 t rset
21077 :rset
21078 s/^[ ]*#[ ]*define[ ][ ]*/ /
21079 t def
21081 :def
21082 s/\\$//
21083 t bsnl
21084 s/["\\]/\\&/g
21085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21086 D["\1"]=" \3"/p
21087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21089 :bsnl
21090 s/["\\]/\\&/g
21091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21092 D["\1"]=" \3\\\\\\n"\\/p
21093 t cont
21094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21095 t cont
21097 :cont
21099 s/.\{148\}/&'"$ac_delim"'/g
21100 t clear
21101 :clear
21102 s/\\$//
21103 t bsnlc
21104 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21106 :bsnlc
21107 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21108 b cont
21109 ' <confdefs.h | sed '
21110 s/'"$ac_delim"'/"\\\
21111 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21114 for (key in D) D_is_set[key] = 1
21115 FS = "\a"
21117 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21118 line = \$ 0
21119 split(line, arg, " ")
21120 if (arg[1] == "#") {
21121 defundef = arg[2]
21122 mac1 = arg[3]
21123 } else {
21124 defundef = substr(arg[1], 2)
21125 mac1 = arg[2]
21127 split(mac1, mac2, "(") #)
21128 macro = mac2[1]
21129 prefix = substr(line, 1, index(line, defundef) - 1)
21130 if (D_is_set[macro]) {
21131 # Preserve the white space surrounding the "#".
21132 print prefix "define", macro P[macro] D[macro]
21133 next
21134 } else {
21135 # Replace #undef with comments. This is necessary, for example,
21136 # in the case of _POSIX_SOURCE, which is predefined and required
21137 # on some systems where configure will not decide to define it.
21138 if (defundef == "undef") {
21139 print "/*", prefix defundef, macro, "*/"
21140 next
21144 { print }
21145 _ACAWK
21146 _ACEOF
21147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21148 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21149 fi # test -n "$CONFIG_HEADERS"
21152 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21153 shift
21154 for ac_tag
21156 case $ac_tag in
21157 :[FHLC]) ac_mode=$ac_tag; continue;;
21158 esac
21159 case $ac_mode$ac_tag in
21160 :[FHL]*:*);;
21161 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21162 :[FH]-) ac_tag=-:-;;
21163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21164 esac
21165 ac_save_IFS=$IFS
21166 IFS=:
21167 set x $ac_tag
21168 IFS=$ac_save_IFS
21169 shift
21170 ac_file=$1
21171 shift
21173 case $ac_mode in
21174 :L) ac_source=$1;;
21175 :[FH])
21176 ac_file_inputs=
21177 for ac_f
21179 case $ac_f in
21180 -) ac_f="$ac_tmp/stdin";;
21181 *) # Look for the file first in the build tree, then in the source tree
21182 # (if the path is not absolute). The absolute path cannot be DOS-style,
21183 # because $ac_f cannot contain `:'.
21184 test -f "$ac_f" ||
21185 case $ac_f in
21186 [\\/$]*) false;;
21187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21188 esac ||
21189 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21190 esac
21191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21192 as_fn_append ac_file_inputs " '$ac_f'"
21193 done
21195 # Let's still pretend it is `configure' which instantiates (i.e., don't
21196 # use $as_me), people would be surprised to read:
21197 # /* config.h. Generated by config.status. */
21198 configure_input='Generated from '`
21199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21200 `' by configure.'
21201 if test x"$ac_file" != x-; then
21202 configure_input="$ac_file. $configure_input"
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21204 $as_echo "$as_me: creating $ac_file" >&6;}
21206 # Neutralize special characters interpreted by sed in replacement strings.
21207 case $configure_input in #(
21208 *\&* | *\|* | *\\* )
21209 ac_sed_conf_input=`$as_echo "$configure_input" |
21210 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21211 *) ac_sed_conf_input=$configure_input;;
21212 esac
21214 case $ac_tag in
21215 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21217 esac
21219 esac
21221 ac_dir=`$as_dirname -- "$ac_file" ||
21222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21223 X"$ac_file" : 'X\(//\)[^/]' \| \
21224 X"$ac_file" : 'X\(//\)$' \| \
21225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21226 $as_echo X"$ac_file" |
21227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21228 s//\1/
21231 /^X\(\/\/\)[^/].*/{
21232 s//\1/
21235 /^X\(\/\/\)$/{
21236 s//\1/
21239 /^X\(\/\).*/{
21240 s//\1/
21243 s/.*/./; q'`
21244 as_dir="$ac_dir"; as_fn_mkdir_p
21245 ac_builddir=.
21247 case "$ac_dir" in
21248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21250 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21251 # A ".." for each directory in $ac_dir_suffix.
21252 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21253 case $ac_top_builddir_sub in
21254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21256 esac ;;
21257 esac
21258 ac_abs_top_builddir=$ac_pwd
21259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21260 # for backward compatibility:
21261 ac_top_builddir=$ac_top_build_prefix
21263 case $srcdir in
21264 .) # We are building in place.
21265 ac_srcdir=.
21266 ac_top_srcdir=$ac_top_builddir_sub
21267 ac_abs_top_srcdir=$ac_pwd ;;
21268 [\\/]* | ?:[\\/]* ) # Absolute name.
21269 ac_srcdir=$srcdir$ac_dir_suffix;
21270 ac_top_srcdir=$srcdir
21271 ac_abs_top_srcdir=$srcdir ;;
21272 *) # Relative name.
21273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21274 ac_top_srcdir=$ac_top_build_prefix$srcdir
21275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21276 esac
21277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21280 case $ac_mode in
21283 # CONFIG_FILE
21286 case $INSTALL in
21287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21289 esac
21290 ac_MKDIR_P=$MKDIR_P
21291 case $MKDIR_P in
21292 [\\/$]* | ?:[\\/]* ) ;;
21293 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21294 esac
21295 _ACEOF
21297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21298 # If the template does not know about datarootdir, expand it.
21299 # FIXME: This hack should be removed a few years after 2.60.
21300 ac_datarootdir_hack=; ac_datarootdir_seen=
21301 ac_sed_dataroot='
21302 /datarootdir/ {
21306 /@datadir@/p
21307 /@docdir@/p
21308 /@infodir@/p
21309 /@localedir@/p
21310 /@mandir@/p'
21311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21312 *datarootdir*) ac_datarootdir_seen=yes;;
21313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21316 _ACEOF
21317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21318 ac_datarootdir_hack='
21319 s&@datadir@&$datadir&g
21320 s&@docdir@&$docdir&g
21321 s&@infodir@&$infodir&g
21322 s&@localedir@&$localedir&g
21323 s&@mandir@&$mandir&g
21324 s&\\\${datarootdir}&$datarootdir&g' ;;
21325 esac
21326 _ACEOF
21328 # Neutralize VPATH when `$srcdir' = `.'.
21329 # Shell code in configure.ac might set extrasub.
21330 # FIXME: do we really want to maintain this feature?
21331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21332 ac_sed_extra="$ac_vpsub
21333 $extrasub
21334 _ACEOF
21335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21338 s|@configure_input@|$ac_sed_conf_input|;t t
21339 s&@top_builddir@&$ac_top_builddir_sub&;t t
21340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21341 s&@srcdir@&$ac_srcdir&;t t
21342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21343 s&@top_srcdir@&$ac_top_srcdir&;t t
21344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21345 s&@builddir@&$ac_builddir&;t t
21346 s&@abs_builddir@&$ac_abs_builddir&;t t
21347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21348 s&@INSTALL@&$ac_INSTALL&;t t
21349 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21350 $ac_datarootdir_hack
21352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21360 which seems to be undefined. Please make sure it is defined" >&5
21361 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21362 which seems to be undefined. Please make sure it is defined" >&2;}
21364 rm -f "$ac_tmp/stdin"
21365 case $ac_file in
21366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21368 esac \
21369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21373 # CONFIG_HEADER
21375 if test x"$ac_file" != x-; then
21377 $as_echo "/* $configure_input */" \
21378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21379 } >"$ac_tmp/config.h" \
21380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21384 else
21385 rm -f "$ac_file"
21386 mv "$ac_tmp/config.h" "$ac_file" \
21387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21389 else
21390 $as_echo "/* $configure_input */" \
21391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21392 || as_fn_error $? "could not create -" "$LINENO" 5
21394 # Compute "$ac_file"'s index in $config_headers.
21395 _am_arg="$ac_file"
21396 _am_stamp_count=1
21397 for _am_header in $config_headers :; do
21398 case $_am_header in
21399 $_am_arg | $_am_arg:* )
21400 break ;;
21402 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21403 esac
21404 done
21405 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21406 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21407 X"$_am_arg" : 'X\(//\)[^/]' \| \
21408 X"$_am_arg" : 'X\(//\)$' \| \
21409 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21410 $as_echo X"$_am_arg" |
21411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21412 s//\1/
21415 /^X\(\/\/\)[^/].*/{
21416 s//\1/
21419 /^X\(\/\/\)$/{
21420 s//\1/
21423 /^X\(\/\).*/{
21424 s//\1/
21427 s/.*/./; q'`/stamp-h$_am_stamp_count
21430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21431 $as_echo "$as_me: executing $ac_file commands" >&6;}
21433 esac
21436 case $ac_file$ac_mode in
21437 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21438 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21439 # are listed without --file. Let's play safe and only enable the eval
21440 # if we detect the quoting.
21441 case $CONFIG_FILES in
21442 *\'*) eval set x "$CONFIG_FILES" ;;
21443 *) set x $CONFIG_FILES ;;
21444 esac
21445 shift
21446 for mf
21448 # Strip MF so we end up with the name of the file.
21449 mf=`echo "$mf" | sed -e 's/:.*$//'`
21450 # Check whether this is an Automake generated Makefile or not.
21451 # We used to match only the files named `Makefile.in', but
21452 # some people rename them; so instead we look at the file content.
21453 # Grep'ing the first line is not enough: some people post-process
21454 # each Makefile.in and add a new line on top of each file to say so.
21455 # Grep'ing the whole file is not good either: AIX grep has a line
21456 # limit of 2048, but all sed's we know have understand at least 4000.
21457 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21458 dirpart=`$as_dirname -- "$mf" ||
21459 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21460 X"$mf" : 'X\(//\)[^/]' \| \
21461 X"$mf" : 'X\(//\)$' \| \
21462 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21463 $as_echo X"$mf" |
21464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21465 s//\1/
21468 /^X\(\/\/\)[^/].*/{
21469 s//\1/
21472 /^X\(\/\/\)$/{
21473 s//\1/
21476 /^X\(\/\).*/{
21477 s//\1/
21480 s/.*/./; q'`
21481 else
21482 continue
21484 # Extract the definition of DEPDIR, am__include, and am__quote
21485 # from the Makefile without running `make'.
21486 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21487 test -z "$DEPDIR" && continue
21488 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21489 test -z "am__include" && continue
21490 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21491 # When using ansi2knr, U may be empty or an underscore; expand it
21492 U=`sed -n 's/^U = //p' < "$mf"`
21493 # Find all dependency output files, they are included files with
21494 # $(DEPDIR) in their names. We invoke sed twice because it is the
21495 # simplest approach to changing $(DEPDIR) to its actual value in the
21496 # expansion.
21497 for file in `sed -n "
21498 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21499 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21500 # Make sure the directory exists.
21501 test -f "$dirpart/$file" && continue
21502 fdir=`$as_dirname -- "$file" ||
21503 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21504 X"$file" : 'X\(//\)[^/]' \| \
21505 X"$file" : 'X\(//\)$' \| \
21506 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21507 $as_echo X"$file" |
21508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21509 s//\1/
21512 /^X\(\/\/\)[^/].*/{
21513 s//\1/
21516 /^X\(\/\/\)$/{
21517 s//\1/
21520 /^X\(\/\).*/{
21521 s//\1/
21524 s/.*/./; q'`
21525 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21526 # echo "creating $dirpart/$file"
21527 echo '# dummy' > "$dirpart/$file"
21528 done
21529 done
21532 "libtool":C)
21534 # See if we are running on zsh, and set the options which allow our
21535 # commands through without removal of \ escapes.
21536 if test -n "${ZSH_VERSION+set}" ; then
21537 setopt NO_GLOB_SUBST
21540 cfgfile="${ofile}T"
21541 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21542 $RM "$cfgfile"
21544 cat <<_LT_EOF >> "$cfgfile"
21545 #! $SHELL
21547 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21548 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21551 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21552 # 2006, 2007, 2008 Free Software Foundation, Inc.
21553 # Written by Gordon Matzigkeit, 1996
21555 # This file is part of GNU Libtool.
21557 # GNU Libtool is free software; you can redistribute it and/or
21558 # modify it under the terms of the GNU General Public License as
21559 # published by the Free Software Foundation; either version 2 of
21560 # the License, or (at your option) any later version.
21562 # As a special exception to the GNU General Public License,
21563 # if you distribute this file as part of a program or library that
21564 # is built using GNU Libtool, you may include this file under the
21565 # same distribution terms that you use for the rest of that program.
21567 # GNU Libtool is distributed in the hope that it will be useful,
21568 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21569 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21570 # GNU General Public License for more details.
21572 # You should have received a copy of the GNU General Public License
21573 # along with GNU Libtool; see the file COPYING. If not, a copy
21574 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21575 # obtained by writing to the Free Software Foundation, Inc.,
21576 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21579 # The names of the tagged configurations supported by this script.
21580 available_tags=""
21582 # ### BEGIN LIBTOOL CONFIG
21584 # Which release of libtool.m4 was used?
21585 macro_version=$macro_version
21586 macro_revision=$macro_revision
21588 # Whether or not to build shared libraries.
21589 build_libtool_libs=$enable_shared
21591 # Whether or not to build static libraries.
21592 build_old_libs=$enable_static
21594 # What type of objects to build.
21595 pic_mode=$pic_mode
21597 # Whether or not to optimize for fast installation.
21598 fast_install=$enable_fast_install
21600 # The host system.
21601 host_alias=$host_alias
21602 host=$host
21603 host_os=$host_os
21605 # The build system.
21606 build_alias=$build_alias
21607 build=$build
21608 build_os=$build_os
21610 # A sed program that does not truncate output.
21611 SED=$lt_SED
21613 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21614 Xsed="\$SED -e 1s/^X//"
21616 # A grep program that handles long lines.
21617 GREP=$lt_GREP
21619 # An ERE matcher.
21620 EGREP=$lt_EGREP
21622 # A literal string matcher.
21623 FGREP=$lt_FGREP
21625 # A BSD- or MS-compatible name lister.
21626 NM=$lt_NM
21628 # Whether we need soft or hard links.
21629 LN_S=$lt_LN_S
21631 # What is the maximum length of a command?
21632 max_cmd_len=$max_cmd_len
21634 # Object file suffix (normally "o").
21635 objext=$ac_objext
21637 # Executable file suffix (normally "").
21638 exeext=$exeext
21640 # whether the shell understands "unset".
21641 lt_unset=$lt_unset
21643 # turn spaces into newlines.
21644 SP2NL=$lt_lt_SP2NL
21646 # turn newlines into spaces.
21647 NL2SP=$lt_lt_NL2SP
21649 # How to create reloadable object files.
21650 reload_flag=$lt_reload_flag
21651 reload_cmds=$lt_reload_cmds
21653 # An object symbol dumper.
21654 OBJDUMP=$lt_OBJDUMP
21656 # Method to check whether dependent libraries are shared objects.
21657 deplibs_check_method=$lt_deplibs_check_method
21659 # Command to use when deplibs_check_method == "file_magic".
21660 file_magic_cmd=$lt_file_magic_cmd
21662 # The archiver.
21663 AR=$lt_AR
21664 AR_FLAGS=$lt_AR_FLAGS
21666 # A symbol stripping program.
21667 STRIP=$lt_STRIP
21669 # Commands used to install an old-style archive.
21670 RANLIB=$lt_RANLIB
21671 old_postinstall_cmds=$lt_old_postinstall_cmds
21672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21674 # A C compiler.
21675 LTCC=$lt_CC
21677 # LTCC compiler flags.
21678 LTCFLAGS=$lt_CFLAGS
21680 # Take the output of nm and produce a listing of raw symbols and C names.
21681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21683 # Transform the output of nm in a proper C declaration.
21684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21686 # Transform the output of nm in a C name address pair.
21687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21689 # Transform the output of nm in a C name address pair when lib prefix is needed.
21690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21692 # The name of the directory that contains temporary libtool files.
21693 objdir=$objdir
21695 # Shell to use when invoking shell scripts.
21696 SHELL=$lt_SHELL
21698 # An echo program that does not interpret backslashes.
21699 ECHO=$lt_ECHO
21701 # Used to examine libraries when file_magic_cmd begins with "file".
21702 MAGIC_CMD=$MAGIC_CMD
21704 # Must we lock files when doing compilation?
21705 need_locks=$lt_need_locks
21707 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21708 DSYMUTIL=$lt_DSYMUTIL
21710 # Tool to change global to local symbols on Mac OS X.
21711 NMEDIT=$lt_NMEDIT
21713 # Tool to manipulate fat objects and archives on Mac OS X.
21714 LIPO=$lt_LIPO
21716 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21717 OTOOL=$lt_OTOOL
21719 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21720 OTOOL64=$lt_OTOOL64
21722 # Old archive suffix (normally "a").
21723 libext=$libext
21725 # Shared library suffix (normally ".so").
21726 shrext_cmds=$lt_shrext_cmds
21728 # The commands to extract the exported symbol list from a shared archive.
21729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21731 # Variables whose values should be saved in libtool wrapper scripts and
21732 # restored at link time.
21733 variables_saved_for_relink=$lt_variables_saved_for_relink
21735 # Do we need the "lib" prefix for modules?
21736 need_lib_prefix=$need_lib_prefix
21738 # Do we need a version for libraries?
21739 need_version=$need_version
21741 # Library versioning type.
21742 version_type=$version_type
21744 # Shared library runtime path variable.
21745 runpath_var=$runpath_var
21747 # Shared library path variable.
21748 shlibpath_var=$shlibpath_var
21750 # Is shlibpath searched before the hard-coded library search path?
21751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21753 # Format of library name prefix.
21754 libname_spec=$lt_libname_spec
21756 # List of archive names. First name is the real one, the rest are links.
21757 # The last name is the one that the linker finds with -lNAME
21758 library_names_spec=$lt_library_names_spec
21760 # The coded name of the library, if different from the real name.
21761 soname_spec=$lt_soname_spec
21763 # Command to use after installation of a shared archive.
21764 postinstall_cmds=$lt_postinstall_cmds
21766 # Command to use after uninstallation of a shared archive.
21767 postuninstall_cmds=$lt_postuninstall_cmds
21769 # Commands used to finish a libtool library installation in a directory.
21770 finish_cmds=$lt_finish_cmds
21772 # As "finish_cmds", except a single script fragment to be evaled but
21773 # not shown.
21774 finish_eval=$lt_finish_eval
21776 # Whether we should hardcode library paths into libraries.
21777 hardcode_into_libs=$hardcode_into_libs
21779 # Compile-time system search path for libraries.
21780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21782 # Run-time system search path for libraries.
21783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21785 # Whether dlopen is supported.
21786 dlopen_support=$enable_dlopen
21788 # Whether dlopen of programs is supported.
21789 dlopen_self=$enable_dlopen_self
21791 # Whether dlopen of statically linked programs is supported.
21792 dlopen_self_static=$enable_dlopen_self_static
21794 # Commands to strip libraries.
21795 old_striplib=$lt_old_striplib
21796 striplib=$lt_striplib
21799 # The linker used to build libraries.
21800 LD=$lt_LD
21802 # Commands used to build an old-style archive.
21803 old_archive_cmds=$lt_old_archive_cmds
21805 # A language specific compiler.
21806 CC=$lt_compiler
21808 # Is the compiler the GNU compiler?
21809 with_gcc=$GCC
21811 # Compiler flag to turn off builtin functions.
21812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21814 # How to pass a linker flag through the compiler.
21815 wl=$lt_lt_prog_compiler_wl
21817 # Additional compiler flags for building library objects.
21818 pic_flag=$lt_lt_prog_compiler_pic
21820 # Compiler flag to prevent dynamic linking.
21821 link_static_flag=$lt_lt_prog_compiler_static
21823 # Does compiler simultaneously support -c and -o options?
21824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21826 # Whether or not to add -lc for building shared libraries.
21827 build_libtool_need_lc=$archive_cmds_need_lc
21829 # Whether or not to disallow shared libs when runtime libs are static.
21830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21832 # Compiler flag to allow reflexive dlopens.
21833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21835 # Compiler flag to generate shared objects directly from archives.
21836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21838 # Whether the compiler copes with passing no objects directly.
21839 compiler_needs_object=$lt_compiler_needs_object
21841 # Create an old-style archive from a shared archive.
21842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21844 # Create a temporary old-style archive to link instead of a shared archive.
21845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21847 # Commands used to build a shared archive.
21848 archive_cmds=$lt_archive_cmds
21849 archive_expsym_cmds=$lt_archive_expsym_cmds
21851 # Commands used to build a loadable module if different from building
21852 # a shared archive.
21853 module_cmds=$lt_module_cmds
21854 module_expsym_cmds=$lt_module_expsym_cmds
21856 # Whether we are building with GNU ld or not.
21857 with_gnu_ld=$lt_with_gnu_ld
21859 # Flag that allows shared libraries with undefined symbols to be built.
21860 allow_undefined_flag=$lt_allow_undefined_flag
21862 # Flag that enforces no undefined symbols.
21863 no_undefined_flag=$lt_no_undefined_flag
21865 # Flag to hardcode \$libdir into a binary during linking.
21866 # This must work even if \$libdir does not exist
21867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21869 # If ld is used when linking, flag to hardcode \$libdir into a binary
21870 # during linking. This must work even if \$libdir does not exist.
21871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21873 # Whether we need a single "-rpath" flag with a separated argument.
21874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21877 # DIR into the resulting binary.
21878 hardcode_direct=$hardcode_direct
21880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21881 # DIR into the resulting binary and the resulting library dependency is
21882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21883 # library is relocated.
21884 hardcode_direct_absolute=$hardcode_direct_absolute
21886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21887 # into the resulting binary.
21888 hardcode_minus_L=$hardcode_minus_L
21890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21891 # into the resulting binary.
21892 hardcode_shlibpath_var=$hardcode_shlibpath_var
21894 # Set to "yes" if building a shared library automatically hardcodes DIR
21895 # into the library and all subsequent libraries and executables linked
21896 # against it.
21897 hardcode_automatic=$hardcode_automatic
21899 # Set to yes if linker adds runtime paths of dependent libraries
21900 # to runtime path list.
21901 inherit_rpath=$inherit_rpath
21903 # Whether libtool must link a program against all its dependency libraries.
21904 link_all_deplibs=$link_all_deplibs
21906 # Fix the shell variable \$srcfile for the compiler.
21907 fix_srcfile_path=$lt_fix_srcfile_path
21909 # Set to "yes" if exported symbols are required.
21910 always_export_symbols=$always_export_symbols
21912 # The commands to list exported symbols.
21913 export_symbols_cmds=$lt_export_symbols_cmds
21915 # Symbols that should not be listed in the preloaded symbols.
21916 exclude_expsyms=$lt_exclude_expsyms
21918 # Symbols that must always be exported.
21919 include_expsyms=$lt_include_expsyms
21921 # Commands necessary for linking programs (against libraries) with templates.
21922 prelink_cmds=$lt_prelink_cmds
21924 # Specify filename containing input files.
21925 file_list_spec=$lt_file_list_spec
21927 # How to hardcode a shared library path into an executable.
21928 hardcode_action=$hardcode_action
21930 # ### END LIBTOOL CONFIG
21932 _LT_EOF
21934 case $host_os in
21935 aix3*)
21936 cat <<\_LT_EOF >> "$cfgfile"
21937 # AIX sometimes has problems with the GCC collect2 program. For some
21938 # reason, if we set the COLLECT_NAMES environment variable, the problems
21939 # vanish in a puff of smoke.
21940 if test "X${COLLECT_NAMES+set}" != Xset; then
21941 COLLECT_NAMES=
21942 export COLLECT_NAMES
21944 _LT_EOF
21946 esac
21949 ltmain="$ac_aux_dir/ltmain.sh"
21952 # We use sed instead of cat because bash on DJGPP gets confused if
21953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21954 # text mode, it properly converts lines to CR/LF. This bash problem
21955 # is reportedly fixed, but why not run on old versions too?
21956 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21957 || (rm -f "$cfgfile"; exit 1)
21959 case $xsi_shell in
21960 yes)
21961 cat << \_LT_EOF >> "$cfgfile"
21963 # func_dirname file append nondir_replacement
21964 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21965 # otherwise set result to NONDIR_REPLACEMENT.
21966 func_dirname ()
21968 case ${1} in
21969 */*) func_dirname_result="${1%/*}${2}" ;;
21970 * ) func_dirname_result="${3}" ;;
21971 esac
21974 # func_basename file
21975 func_basename ()
21977 func_basename_result="${1##*/}"
21980 # func_dirname_and_basename file append nondir_replacement
21981 # perform func_basename and func_dirname in a single function
21982 # call:
21983 # dirname: Compute the dirname of FILE. If nonempty,
21984 # add APPEND to the result, otherwise set result
21985 # to NONDIR_REPLACEMENT.
21986 # value returned in "$func_dirname_result"
21987 # basename: Compute filename of FILE.
21988 # value retuned in "$func_basename_result"
21989 # Implementation must be kept synchronized with func_dirname
21990 # and func_basename. For efficiency, we do not delegate to
21991 # those functions but instead duplicate the functionality here.
21992 func_dirname_and_basename ()
21994 case ${1} in
21995 */*) func_dirname_result="${1%/*}${2}" ;;
21996 * ) func_dirname_result="${3}" ;;
21997 esac
21998 func_basename_result="${1##*/}"
22001 # func_stripname prefix suffix name
22002 # strip PREFIX and SUFFIX off of NAME.
22003 # PREFIX and SUFFIX must not contain globbing or regex special
22004 # characters, hashes, percent signs, but SUFFIX may contain a leading
22005 # dot (in which case that matches only a dot).
22006 func_stripname ()
22008 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22009 # positional parameters, so assign one to ordinary parameter first.
22010 func_stripname_result=${3}
22011 func_stripname_result=${func_stripname_result#"${1}"}
22012 func_stripname_result=${func_stripname_result%"${2}"}
22015 # func_opt_split
22016 func_opt_split ()
22018 func_opt_split_opt=${1%%=*}
22019 func_opt_split_arg=${1#*=}
22022 # func_lo2o object
22023 func_lo2o ()
22025 case ${1} in
22026 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22027 *) func_lo2o_result=${1} ;;
22028 esac
22031 # func_xform libobj-or-source
22032 func_xform ()
22034 func_xform_result=${1%.*}.lo
22037 # func_arith arithmetic-term...
22038 func_arith ()
22040 func_arith_result=$(( $* ))
22043 # func_len string
22044 # STRING may not start with a hyphen.
22045 func_len ()
22047 func_len_result=${#1}
22050 _LT_EOF
22052 *) # Bourne compatible functions.
22053 cat << \_LT_EOF >> "$cfgfile"
22055 # func_dirname file append nondir_replacement
22056 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22057 # otherwise set result to NONDIR_REPLACEMENT.
22058 func_dirname ()
22060 # Extract subdirectory from the argument.
22061 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22062 if test "X$func_dirname_result" = "X${1}"; then
22063 func_dirname_result="${3}"
22064 else
22065 func_dirname_result="$func_dirname_result${2}"
22069 # func_basename file
22070 func_basename ()
22072 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22076 # func_stripname prefix suffix name
22077 # strip PREFIX and SUFFIX off of NAME.
22078 # PREFIX and SUFFIX must not contain globbing or regex special
22079 # characters, hashes, percent signs, but SUFFIX may contain a leading
22080 # dot (in which case that matches only a dot).
22081 # func_strip_suffix prefix name
22082 func_stripname ()
22084 case ${2} in
22085 .*) func_stripname_result=`$ECHO "X${3}" \
22086 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22087 *) func_stripname_result=`$ECHO "X${3}" \
22088 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22089 esac
22092 # sed scripts:
22093 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22094 my_sed_long_arg='1s/^-[^=]*=//'
22096 # func_opt_split
22097 func_opt_split ()
22099 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22100 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22103 # func_lo2o object
22104 func_lo2o ()
22106 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22109 # func_xform libobj-or-source
22110 func_xform ()
22112 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22115 # func_arith arithmetic-term...
22116 func_arith ()
22118 func_arith_result=`expr "$@"`
22121 # func_len string
22122 # STRING may not start with a hyphen.
22123 func_len ()
22125 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22128 _LT_EOF
22129 esac
22131 case $lt_shell_append in
22132 yes)
22133 cat << \_LT_EOF >> "$cfgfile"
22135 # func_append var value
22136 # Append VALUE to the end of shell variable VAR.
22137 func_append ()
22139 eval "$1+=\$2"
22141 _LT_EOF
22144 cat << \_LT_EOF >> "$cfgfile"
22146 # func_append var value
22147 # Append VALUE to the end of shell variable VAR.
22148 func_append ()
22150 eval "$1=\$$1\$2"
22153 _LT_EOF
22155 esac
22158 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22159 || (rm -f "$cfgfile"; exit 1)
22161 mv -f "$cfgfile" "$ofile" ||
22162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22163 chmod +x "$ofile"
22166 "po-directories":C)
22167 for ac_file in $CONFIG_FILES; do
22168 # Support "outfile[:infile[:infile...]]"
22169 case "$ac_file" in
22170 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22171 esac
22172 # PO directories have a Makefile.in generated from Makefile.in.in.
22173 case "$ac_file" in */Makefile.in)
22174 # Adjust a relative srcdir.
22175 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22176 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22177 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22178 # In autoconf-2.13 it is called $ac_given_srcdir.
22179 # In autoconf-2.50 it is called $srcdir.
22180 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22181 case "$ac_given_srcdir" in
22182 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22183 /*) top_srcdir="$ac_given_srcdir" ;;
22184 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22185 esac
22186 # Treat a directory as a PO directory if and only if it has a
22187 # POTFILES.in file. This allows packages to have multiple PO
22188 # directories under different names or in different locations.
22189 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22190 rm -f "$ac_dir/POTFILES"
22191 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22192 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22193 POMAKEFILEDEPS="POTFILES.in"
22194 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22195 # on $ac_dir but don't depend on user-specified configuration
22196 # parameters.
22197 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22198 # The LINGUAS file contains the set of available languages.
22199 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22200 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22202 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22203 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22204 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22205 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22206 else
22207 # The set of available languages was given in configure.in.
22208 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22209 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22211 # Compute POFILES
22212 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22213 # Compute UPDATEPOFILES
22214 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22215 # Compute DUMMYPOFILES
22216 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22217 # Compute GMOFILES
22218 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22219 case "$ac_given_srcdir" in
22220 .) srcdirpre= ;;
22221 *) srcdirpre='$(srcdir)/' ;;
22222 esac
22223 POFILES=
22224 UPDATEPOFILES=
22225 DUMMYPOFILES=
22226 GMOFILES=
22227 for lang in $ALL_LINGUAS; do
22228 POFILES="$POFILES $srcdirpre$lang.po"
22229 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22230 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22231 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22232 done
22233 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22234 # environment variable.
22235 INST_LINGUAS=
22236 if test -n "$ALL_LINGUAS"; then
22237 for presentlang in $ALL_LINGUAS; do
22238 useit=no
22239 if test "%UNSET%" != "$LINGUAS"; then
22240 desiredlanguages="$LINGUAS"
22241 else
22242 desiredlanguages="$ALL_LINGUAS"
22244 for desiredlang in $desiredlanguages; do
22245 # Use the presentlang catalog if desiredlang is
22246 # a. equal to presentlang, or
22247 # b. a variant of presentlang (because in this case,
22248 # presentlang can be used as a fallback for messages
22249 # which are not translated in the desiredlang catalog).
22250 case "$desiredlang" in
22251 "$presentlang"*) useit=yes;;
22252 esac
22253 done
22254 if test $useit = yes; then
22255 INST_LINGUAS="$INST_LINGUAS $presentlang"
22257 done
22259 CATALOGS=
22260 if test -n "$INST_LINGUAS"; then
22261 for lang in $INST_LINGUAS; do
22262 CATALOGS="$CATALOGS $lang.gmo"
22263 done
22265 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22266 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"
22267 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22268 if test -f "$f"; then
22269 case "$f" in
22270 *.orig | *.bak | *~) ;;
22271 *) cat "$f" >> "$ac_dir/Makefile" ;;
22272 esac
22274 done
22277 esac
22278 done ;;
22280 esac
22281 done # for ac_tag
22284 as_fn_exit 0
22285 _ACEOF
22286 ac_clean_files=$ac_clean_files_save
22288 test $ac_write_fail = 0 ||
22289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22292 # configure is writing to config.log, and then calls config.status.
22293 # config.status does its own redirection, appending to config.log.
22294 # Unfortunately, on DOS this fails, as config.log is still kept open
22295 # by configure, so config.status won't be able to write to it; its
22296 # output is simply discarded. So we exec the FD to /dev/null,
22297 # effectively closing config.log, so it can be properly (re)opened and
22298 # appended to by config.status. When coming back to configure, we
22299 # need to make the FD available again.
22300 if test "$no_create" != yes; then
22301 ac_cs_success=:
22302 ac_config_status_args=
22303 test "$silent" = yes &&
22304 ac_config_status_args="$ac_config_status_args --quiet"
22305 exec 5>/dev/null
22306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22307 exec 5>>config.log
22308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22309 # would make configure fail if this is the last instruction.
22310 $ac_cs_success || as_fn_exit 1
22312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}