* Fix bug in new code that determines the name of the container if
[alpine.git] / configure
blobdccad1d18405e6f18e6f94b2ec9efa63cc21a11d
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.999.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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.999'
734 PACKAGE_STRING='alpine 2.19.999'
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.999 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.999:";;
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.999
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.999, 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.999'
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 else
15656 case $host in
15657 *-linux-gnu*)
15658 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
15659 alpine_SSLTYPE="nopwd"
15660 if test -d /etc/pki/tls ; then
15661 alpine_SSLDIR="/etc/pki/tls"
15662 else
15663 alpine_SSLDIR="/usr/share/ssl"
15665 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15666 alpine_SSLKEYS="$alpine_SSLDIR/private"
15667 alpine_SSLINCLUDE="/usr/include/openssl"
15668 alpine_SSLLIB="/usr/lib"
15669 elif test -f /etc/mandrake-release ; then
15670 alpine_SSLDIR="/usr/lib/ssl"
15671 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15672 alpine_SSLKEYS="$alpine_SSLDIR/private"
15673 alpine_SSLINCLUDE="/usr/include/openssl"
15674 alpine_SSLLIB="/usr/lib"
15675 elif test -f /etc/SuSE-release ; then
15676 alpine_SSLTYPE="nopwd"
15677 alpine_SSLDIR="/etc/ssl"
15678 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15679 alpine_SSLKEYS="$alpine_SSLDIR/private"
15680 alpine_SSLINCLUDE="/usr/include/openssl"
15681 alpine_SSLLIB="/usr/lib"
15682 elif test -d /etc/osso-af-init ; then
15683 alpine_SSLTYPE="nopwd"
15684 alpine_SSLDIR="/usr"
15685 alpine_SSLCERTS="/usr/share/certs"
15686 alpine_SSLINCLUDE="/usr/include/openssl"
15687 alpine_SSLLIB="/usr/lib"
15688 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
15689 if test ! -d /etc/osso-af-init ; then
15690 alpine_SSLDIR="/etc/ssl"
15691 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15692 alpine_SSLKEYS="$alpine_SSLDIR/private"
15693 alpine_SSLINCLUDE="/usr/include/openssl"
15694 alpine_SSLLIB="/usr/lib"
15696 else
15697 alpine_SSLTYPE="nopwd"
15698 alpine_SSLDIR="/usr"
15699 alpine_SSLCERTS="/etc/ssl/certs"
15702 *-apple-darwin*)
15703 alpine_SSLTYPE="nopwd"
15704 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
15705 if test -d /usr/local/opt/openssl ; then
15706 alpine_SSLDIR="/usr/local/opt/openssl"
15707 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15708 alpine_SSLLIB="$alpine_SSLDIR/lib"
15709 alpine_SSLCERTS="/usr/local/etc/openssl"
15710 alpine_SSLKEYS="$alpine_SSLDIR/private"
15711 elif test -d /opt/local/etc/openssl ; then
15712 alpine_SSLDIR="/opt/local"
15713 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15714 alpine_SSLLIB="$alpine_SSLDIR/lib"
15715 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
15716 alpine_SSLKEYS="/opt/local/etc/openssl/private"
15717 elif test -d /sw/etc/ssl ; then
15718 alpine_SSLDIR="/sw/etc/ssl"
15719 alpine_SSLINCLUDE="/sw/include"
15720 alpine_SSLLIB="/sw/lib"
15721 alpine_SSLCERTS="/sw/etc/ssl/certs"
15722 alpine_SSLKEYS="/sw/etc/ssl/private"
15723 elif test -d /System/Library/OpenSSL ; then
15724 alpine_SSLDIR="/System/Library/OpenSSL"
15725 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15726 alpine_SSLKEYS="$alpine_SSLDIR/private"
15727 alpine_SSLLIB="/usr/lib"
15728 alpine_SSLINCLUDE="/usr/include/openssl"
15731 *-*-netbsd*)
15732 alpine_SSLDIR="/etc/openssl"
15733 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15734 alpine_SSLKEYS="$alpine_SSLDIR/private"
15735 alpine_SSLINCLUDE="/usr/include/openssl"
15736 alpine_SSLLIB="/usr/lib"
15738 *-*-dragonfly*)
15739 alpine_SSLDIR="/etc/openssl"
15740 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15741 alpine_SSLKEYS="$alpine_SSLDIR/private"
15742 alpine_SSLINCLUDE="/usr/include/openssl"
15743 alpine_SSLLIB="/usr/lib"
15745 *-openbsd*)
15746 alpine_SSLTYPE="nopwd"
15747 alpine_SSLDIR="/usr"
15748 alpine_SSLCERTS="/etc/ssl/certs"
15750 *-*-freebsd*)
15751 alpine_SSLDIR="/etc/ssl"
15752 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15753 alpine_SSLKEYS="$alpine_SSLDIR/private"
15754 alpine_SSLINCLUDE="/usr/include/openssl"
15755 alpine_SSLLIB="/usr/lib"
15757 *-*-openbsd*)
15758 alpine_SSLDIR="/etc/ssl"
15759 alpine_SSLINCLUDE="/usr/include/openssl"
15760 alpine_SSLLIB="/usr/lib"
15761 alpine_SSLCERTS="/etc/ssl"
15762 alpine_SSLKEYS="/etc/ssl/private"
15764 *-*-cygwin)
15765 alpine_SSLDIR="/usr/ssl"
15766 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15767 alpine_SSLKEYS="$alpine_SSLDIR/certs"
15768 alpine_SSLINCLUDE="/usr/include/openssl"
15769 alpine_SSLLIB="/usr/lib"
15771 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
15772 alpine_SSLTYPE="sco.nopwd"
15773 alpine_SSLDIR="/usr/local/ssl"
15775 *-*-solaris*)
15776 if test -d /usr/sfw/include/openssl ; then
15777 alpine_SSLDIR="/usr/sfw"
15778 elif test -d /opt/csw/include/openssl ; then
15779 alpine_SSLDIR="/opt/csw"
15780 if test -d /opt/csw/ssl/certs ; then
15781 alpine_SSLCERTS="/opt/csw/ssl/certs"
15784 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
15785 alpine_SSLCERTS="/etc/certs"
15789 alpine_SSLTYPE="nopwd"
15790 alpine_SSLDIR="/usr/local/ssl"
15792 esac
15795 # Check whether --with-ssl-dir was given.
15796 if test "${with_ssl_dir+set}" = set; then :
15797 withval=$with_ssl_dir;
15798 if test "x$withval" != "xno" ; then
15799 alpine_SSLDIR=$withval
15800 alpine_SSLINCLUDE=$alpine_SSLDIR/include
15801 alpine_SSLLIB=$alpine_SSLDIR/lib
15808 # Check whether --with-ssl-certs-dir was given.
15809 if test "${with_ssl_certs_dir+set}" = set; then :
15810 withval=$with_ssl_certs_dir;
15811 if test "x$withval" != "xno" ; then
15812 alpine_SSLCERTS=$withval
15819 # Check whether --with-ssl-include-dir was given.
15820 if test "${with_ssl_include_dir+set}" = set; then :
15821 withval=$with_ssl_include_dir;
15822 if test "x$withval" != "xno" ; then
15823 alpine_SSLINCLUDE=$withval
15830 # Check whether --with-ssl-lib-dir was given.
15831 if test "${with_ssl_lib_dir+set}" = set; then :
15832 withval=$with_ssl_lib_dir;
15833 if test "x$withval" != "xno" ; then
15834 alpine_SSLLIB=$withval
15839 if test -n "$alpine_SSLINCLUDE" ; then
15840 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
15841 elif test -n "$alpine_SSLDIR" ; then
15842 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
15844 if test -n "$alpine_SSLLIB" ; then
15845 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
15846 elif test -n "$alpine_SSLDIR" ; then
15847 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
15852 # Check whether --with-krb5 was given.
15853 if test "${with_krb5+set}" = set; then :
15854 withval=$with_krb5; with_krb5=$withval
15858 if test "x$with_krb5" = "xno" ; then
15859 alpine_GSSTYPE="none"
15860 else
15861 alpine_GSSTYPE=
15864 # Check whether --with-krb5-dir was given.
15865 if test "${with_krb5_dir+set}" = set; then :
15866 withval=$with_krb5_dir;
15867 if test "x$withval" != "xno" ; then
15868 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15869 LDFLAGS="$LDFLAGS -L${withval}/lib"
15876 # Check whether --with-krb5-include-dir was given.
15877 if test "${with_krb5_include_dir+set}" = set; then :
15878 withval=$with_krb5_include_dir;
15879 if test "x$withval" != "xno" ; then
15880 CPPFLAGS="$CPPFLAGS -I$withval"
15887 # Check whether --with-krb5-lib-dir was given.
15888 if test "${with_krb5_lib_dir+set}" = set; then :
15889 withval=$with_krb5_lib_dir;
15890 if test "x$withval" != "xno" ; then
15891 LDFLAGS="$LDFLAGS -L$withval"
15899 # Check whether --with-ldap was given.
15900 if test "${with_ldap+set}" = set; then :
15901 withval=$with_ldap; with_ldap=$withval
15905 if test "x$with_ldap" = "xno" ; then
15906 alpine_with_ldap=
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
15908 $as_echo "$as_me: Excluding LDAP Support" >&6;}
15909 else
15911 alpine_with_ldap=yes
15913 # Check whether --with-ldap-dir was given.
15914 if test "${with_ldap_dir+set}" = set; then :
15915 withval=$with_ldap_dir;
15916 if test "x$withval" != "xno" ; then
15917 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15918 LDFLAGS="$LDFLAGS -L${withval}/lib"
15925 # Check whether --with-ldap-include-dir was given.
15926 if test "${with_ldap_include_dir+set}" = set; then :
15927 withval=$with_ldap_include_dir;
15928 if test "x$withval" != "xno" ; then
15929 CPPFLAGS="$CPPFLAGS -I$withval"
15936 # Check whether --with-ldap-lib-dir was given.
15937 if test "${with_ldap_lib_dir+set}" = set; then :
15938 withval=$with_ldap_lib_dir;
15939 if test "x$withval" != "xno" ; then
15940 LDFLAGS="$LDFLAGS -L$withval"
15948 # Check whether --with-smime was given.
15949 if test "${with_smime+set}" = set; then :
15950 withval=$with_smime; with_smime=$withval
15955 # Check whether --with-tcl was given.
15956 if test "${with_tcl+set}" = set; then :
15957 withval=$with_tcl; with_tcl=$withval
15961 if test "x$with_tcl" = "xno" ; then
15962 WEB_BUILD=
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
15964 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
15965 else
15967 # Check whether --with-tcl-lib was given.
15968 if test "${with_tcl_lib+set}" = set; then :
15969 withval=$with_tcl_lib;
15970 if test "x$withval" != "xno" ; then
15971 alpine_TCLLIB=$withval
15977 # Check whether --with-tcl-include was given.
15978 if test "${with_tcl_include+set}" = set; then :
15979 withval=$with_tcl_include;
15980 if test "x$withval" != "xno" ; then
15981 CPPFLAGS="$CPPFLAGS -I$withval"
15982 alpine_TCLINC=$withval
15990 # Check whether --with-supplied-regex was given.
15991 if test "${with_supplied_regex+set}" = set; then :
15992 withval=$with_supplied_regex; alpine_REGEX=$withval
15997 # Check whether --with-pthread was given.
15998 if test "${with_pthread+set}" = set; then :
15999 withval=$with_pthread; with_pthread=$withval
16004 # Check whether --with-system-mail-directory was given.
16005 if test "${with_system_mail_directory+set}" = set; then :
16006 withval=$with_system_mail_directory;
16007 if test "x$withval" != "xno" ; then
16008 alpine_with_local_maildir="$withval"
16015 # Check whether --with-c-client-target was given.
16016 if test "${with_c_client_target+set}" = set; then :
16017 withval=$with_c_client_target;
16018 if test "x$withval" != "xno" ;then
16019 alpine_with_c_client_target="$withval"
16026 alpine_PAM="none"
16028 case "$host" in
16029 *-linux-gnu*|*-k*bsd*-gnu*)
16030 alpine_path_delim="/"
16031 alpine_mode_readonly="(0600)"
16032 if test -f /etc/fedora-release ; then
16033 systype="LFD"
16034 alpine_PAM="yes"
16035 if test -d /etc/pki/tls ; then
16036 alpine_c_client_target="lfd"
16037 else
16038 alpine_c_client_target="lrh"
16040 elif test -f /etc/mandrake-release ; then
16041 systype="LMD"
16042 alpine_c_client_target="lmd"
16043 alpine_PAM="yes"
16044 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16045 systype="LRH"
16046 alpine_PAM="yes"
16047 if test -d /etc/pki/tls ; then
16048 alpine_c_client_target="lr5"
16049 else
16050 alpine_c_client_target="lrh"
16052 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16053 if test -d /etc/osso-af-init ; then
16054 systype="LN8"
16055 alpine_c_client_target="ln8"
16056 else
16057 systype="DEB"
16058 alpine_c_client_target="ldb"
16059 alpine_PAM="yes"
16061 elif test -f /etc/SuSE-release ; then
16062 systype="LSU"
16063 alpine_c_client_target="lsu"
16064 alpine_PAM="yes"
16065 else
16066 systype="LNX"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16068 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16069 if ${ac_cv_lib_pam_pam_start+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072 ac_check_lib_save_LIBS=$LIBS
16073 LIBS="-lpam $LIBS"
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16077 /* Override any GCC internal prototype to avoid an error.
16078 Use char because int might match the return type of a GCC
16079 builtin and then its argument prototype would still apply. */
16080 #ifdef __cplusplus
16081 extern "C"
16082 #endif
16083 char pam_start ();
16085 main ()
16087 return pam_start ();
16089 return 0;
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_lib_pam_pam_start=yes
16094 else
16095 ac_cv_lib_pam_pam_start=no
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16102 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16103 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16105 alpine_c_client_target="lnp"
16106 alpine_PAM="yes"
16108 else
16110 if test -f /etc/shadow ; then
16111 alpine_c_client_target="slx"
16112 else
16113 alpine_c_client_target="lnx"
16120 *-apple-darwin*)
16121 systype="OSX"
16122 alpine_path_delim="/"
16123 alpine_mode_readonly="(0600)"
16124 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
16125 AM_CFLAGS="$AM_CFLAGS -Dbsd"
16127 $as_echo "#define OSX_TARGET 1" >>confdefs.h
16129 case "$alpine_os_credential_cache" in
16134 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
16137 esac
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16139 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16140 if ${ac_cv_lib_pam_pam_start+:} false; then :
16141 $as_echo_n "(cached) " >&6
16142 else
16143 ac_check_lib_save_LIBS=$LIBS
16144 LIBS="-lpam $LIBS"
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16148 /* Override any GCC internal prototype to avoid an error.
16149 Use char because int might match the return type of a GCC
16150 builtin and then its argument prototype would still apply. */
16151 #ifdef __cplusplus
16152 extern "C"
16153 #endif
16154 char pam_start ();
16156 main ()
16158 return pam_start ();
16160 return 0;
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 ac_cv_lib_pam_pam_start=yes
16165 else
16166 ac_cv_lib_pam_pam_start=no
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16170 LIBS=$ac_check_lib_save_LIBS
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16173 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16174 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16176 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16177 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16179 alpine_PAM="yes"
16180 alpine_c_client_target="oxs"
16182 else
16183 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16184 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16186 alpine_PAM="yes"
16187 alpine_c_client_target="oxp"
16189 else
16191 alpine_PAM="none"
16192 alpine_pam_none_reason="header files not found"
16202 else
16204 alpine_c_client_target="osx"
16209 *-*-solaris*)
16210 if test x$GCC = "xyes" ; then
16211 systype="GSO"
16212 alpine_c_client_target="gso"
16213 else
16214 systype="SOC"
16215 alpine_c_client_target="soc"
16217 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16220 alpine_path_delim="/"
16221 alpine_mode_readonly="(0600)"
16223 *-*-sunos4*)
16224 systype="SUN"
16225 alpine_path_delim="/"
16226 alpine_mode_readonly="(0600)"
16227 alpine_c_client_target="s40"
16229 *-*-sco3.2v5*)
16230 if test x$GCC = "xyes" ; then
16231 systype="GO5"
16232 alpine_c_client_target="go5"
16233 else
16234 systype="SC5"
16235 alpine_c_client_target="sc5"
16237 alpine_path_delim="/"
16238 alpine_mode_readonly="(0600)"
16240 *-next-*)
16241 systype="NXT"
16242 alpine_path_delim="/"
16243 alpine_mode_readonly="(0600)"
16244 alpine_c_client_target="nx3"
16246 *-*-netbsd*)
16247 systype="NEB"
16248 alpine_path_delim="/"
16249 alpine_mode_readonly="(0600)"
16250 alpine_c_client_target="neb"
16252 *-*-dragonfly*)
16253 systype="DFB"
16254 alpine_path_delim="/"
16255 alpine_mode_readonly="(0600)"
16256 alpine_c_client_target="neb"
16258 *-*-bsdi*)
16259 systype="BSI"
16260 alpine_path_delim="/"
16261 alpine_mode_readonly="(0600)"
16262 alpine_c_client_target="bsi"
16264 *-*-freebsd*)
16265 systype="BSF"
16266 alpine_path_delim="/"
16267 alpine_mode_readonly="(0600)"
16268 alpine_c_client_target="bsf"
16269 LIBS="$LIBS $LIBINTL"
16271 *-*-openbsd*)
16272 systype="BSO"
16273 alpine_path_delim="/"
16274 alpine_mode_readonly="(0600)"
16275 alpine_c_client_target="bso"
16276 LIBS="$LIBS $LIBINTL"
16278 *-*-aix5*)
16279 systype="A52"
16280 alpine_path_delim="/"
16281 alpine_mode_readonly="(0600)"
16282 alpine_c_client_target="a52"
16284 *-*-aix4*)
16285 systype="A41"
16286 alpine_path_delim="/"
16287 alpine_mode_readonly="(0600)"
16288 alpine_c_client_target="a41"
16290 *-*-aix3*)
16291 systype="A32"
16292 alpine_path_delim="/"
16293 alpine_mode_readonly="(0600)"
16294 alpine_c_client_target="a32"
16296 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
16297 systype="UW2"
16298 alpine_path_delim="/"
16299 alpine_mode_readonly="(0600)"
16300 alpine_c_client_target="uw2"
16302 *-*-osf5*)
16303 systype="OSF"
16304 alpine_path_delim="/"
16305 alpine_mode_readonly="(0600)"
16306 alpine_c_client_target="osf"
16308 *-*-cygwin)
16309 systype="CYG"
16310 alpine_path_delim="/"
16311 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16312 alpine_c_client_target="cyg"
16313 LIBS="$LIBS $LIBINTL"
16315 windows* | *-*-pw32*)
16316 systype="WNT"
16317 alpine_path_delim="\\"
16318 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16319 alpine_c_client_target="wnt"
16321 $as_echo "#define _WINDOWS 1" >>confdefs.h
16325 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
16327 esac
16330 # Check whether --with-ipv6 was given.
16331 if test "${with_ipv6+set}" = set; then :
16332 withval=$with_ipv6; with_ipv6=$withval
16336 if test "x$with_ipv6" = "xno" ; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
16338 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
16339 c_client_specials="${c_client_specials}IP6=4 "
16340 c_client_ip6="true"
16341 else
16342 c_client_ip6="touch imap/ip6"
16347 if test x$enable_dmalloc = "xyes" ; then
16348 if test "x$with_pthread" = "xyes" ; then
16349 dmalloc_lib=dmallocth
16350 else
16351 dmalloc_lib=dmalloc
16354 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
16356 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
16357 if eval \${$as_ac_Lib+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359 else
16360 ac_check_lib_save_LIBS=$LIBS
16361 LIBS="-l$dmalloc_lib $LIBS"
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16368 #ifdef __cplusplus
16369 extern "C"
16370 #endif
16371 char dmalloc_shutdown ();
16373 main ()
16375 return dmalloc_shutdown ();
16377 return 0;
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"; then :
16381 eval "$as_ac_Lib=yes"
16382 else
16383 eval "$as_ac_Lib=no"
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 LIBS=$ac_check_lib_save_LIBS
16389 eval ac_res=\$$as_ac_Lib
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16391 $as_echo "$ac_res" >&6; }
16392 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
16395 _ACEOF
16397 LIBS="-l$dmalloc_lib $LIBS"
16399 else
16401 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
16408 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
16409 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 ac_check_lib_save_LIBS=$LIBS
16413 LIBS="-ltinfo $LIBS"
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char setupterm ();
16425 main ()
16427 return setupterm ();
16429 return 0;
16431 _ACEOF
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 ac_cv_lib_tinfo_setupterm=yes
16434 else
16435 ac_cv_lib_tinfo_setupterm=no
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LIBS=$ac_check_lib_save_LIBS
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
16442 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
16443 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
16445 alpine_termdata=info
16446 LIBS="$LIBS -ltinfo"
16448 else
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
16451 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
16452 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
16453 $as_echo_n "(cached) " >&6
16454 else
16455 ac_check_lib_save_LIBS=$LIBS
16456 LIBS="-lncurses $LIBS"
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16460 /* Override any GCC internal prototype to avoid an error.
16461 Use char because int might match the return type of a GCC
16462 builtin and then its argument prototype would still apply. */
16463 #ifdef __cplusplus
16464 extern "C"
16465 #endif
16466 char setupterm ();
16468 main ()
16470 return setupterm ();
16472 return 0;
16474 _ACEOF
16475 if ac_fn_c_try_link "$LINENO"; then :
16476 ac_cv_lib_ncurses_setupterm=yes
16477 else
16478 ac_cv_lib_ncurses_setupterm=no
16480 rm -f core conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16482 LIBS=$ac_check_lib_save_LIBS
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
16485 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
16486 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
16488 alpine_termdata=info
16489 LIBS="$LIBS -lncurses"
16491 else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
16494 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
16495 if ${ac_cv_lib_curses_setupterm+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 ac_check_lib_save_LIBS=$LIBS
16499 LIBS="-lcurses $LIBS"
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 char setupterm ();
16511 main ()
16513 return setupterm ();
16515 return 0;
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_lib_curses_setupterm=yes
16520 else
16521 ac_cv_lib_curses_setupterm=no
16523 rm -f core conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 LIBS=$ac_check_lib_save_LIBS
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
16528 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
16529 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
16531 alpine_termdata=info
16532 LIBS="$LIBS -lcurses"
16534 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
16537 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
16538 if ${ac_cv_lib_termlib_tgetent+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540 else
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-ltermlib $LIBS"
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16549 #ifdef __cplusplus
16550 extern "C"
16551 #endif
16552 char tgetent ();
16554 main ()
16556 return tgetent ();
16558 return 0;
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 ac_cv_lib_termlib_tgetent=yes
16563 else
16564 ac_cv_lib_termlib_tgetent=no
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
16571 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
16572 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
16574 alpine_termdata=cap
16575 LIBS="$LIBS -ltermlib"
16577 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
16580 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
16581 if ${ac_cv_lib_termcap_tgetent+:} false; then :
16582 $as_echo_n "(cached) " >&6
16583 else
16584 ac_check_lib_save_LIBS=$LIBS
16585 LIBS="-ltermcap $LIBS"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16589 /* Override any GCC internal prototype to avoid an error.
16590 Use char because int might match the return type of a GCC
16591 builtin and then its argument prototype would still apply. */
16592 #ifdef __cplusplus
16593 extern "C"
16594 #endif
16595 char tgetent ();
16597 main ()
16599 return tgetent ();
16601 return 0;
16603 _ACEOF
16604 if ac_fn_c_try_link "$LINENO"; then :
16605 ac_cv_lib_termcap_tgetent=yes
16606 else
16607 ac_cv_lib_termcap_tgetent=no
16609 rm -f core conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16611 LIBS=$ac_check_lib_save_LIBS
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
16614 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16615 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
16617 alpine_termdata=cap
16618 LIBS="$LIBS -ltermcap"
16620 else
16622 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
16638 case $alpine_termdata in
16639 info)
16641 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
16644 cap)
16646 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
16649 esac
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16652 $as_echo_n "checking for library containing dlopen... " >&6; }
16653 if ${ac_cv_search_dlopen+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 ac_func_search_save_LIBS=$LIBS
16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658 /* end confdefs.h. */
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16663 #ifdef __cplusplus
16664 extern "C"
16665 #endif
16666 char dlopen ();
16668 main ()
16670 return dlopen ();
16672 return 0;
16674 _ACEOF
16675 for ac_lib in '' dl dld; do
16676 if test -z "$ac_lib"; then
16677 ac_res="none required"
16678 else
16679 ac_res=-l$ac_lib
16680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16682 if ac_fn_c_try_link "$LINENO"; then :
16683 ac_cv_search_dlopen=$ac_res
16685 rm -f core conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext
16687 if ${ac_cv_search_dlopen+:} false; then :
16688 break
16690 done
16691 if ${ac_cv_search_dlopen+:} false; then :
16693 else
16694 ac_cv_search_dlopen=no
16696 rm conftest.$ac_ext
16697 LIBS=$ac_func_search_save_LIBS
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16700 $as_echo "$ac_cv_search_dlopen" >&6; }
16701 ac_res=$ac_cv_search_dlopen
16702 if test "$ac_res" != no; then :
16703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16705 else
16706 alpine_DL="none"
16709 if test "x$alpine_DL" = "xnone" ; then
16710 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
16711 exit 1
16714 if test "x$alpine_SSLTYPE" != "xnone" ; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
16716 $as_echo_n "checking for library containing SSLeay... " >&6; }
16717 if ${ac_cv_search_SSLeay+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 ac_func_search_save_LIBS=$LIBS
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 char SSLeay ();
16732 main ()
16734 return SSLeay ();
16736 return 0;
16738 _ACEOF
16739 for ac_lib in '' crypto; do
16740 if test -z "$ac_lib"; then
16741 ac_res="none required"
16742 else
16743 ac_res=-l$ac_lib
16744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16746 if ac_fn_c_try_link "$LINENO"; then :
16747 ac_cv_search_SSLeay=$ac_res
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext
16751 if ${ac_cv_search_SSLeay+:} false; then :
16752 break
16754 done
16755 if ${ac_cv_search_SSLeay+:} false; then :
16757 else
16758 ac_cv_search_SSLeay=no
16760 rm conftest.$ac_ext
16761 LIBS=$ac_func_search_save_LIBS
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
16764 $as_echo "$ac_cv_search_SSLeay" >&6; }
16765 ac_res=$ac_cv_search_SSLeay
16766 if test "$ac_res" != no; then :
16767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16769 else
16770 alpine_CRYPTO="none"
16773 if test "x$alpine_CRYPTO" = "xnone" ; then
16774 as_fn_error $? "crypto library NOT found" "$LINENO" 5
16775 exit 1
16779 if test "x$alpine_SSLTYPE" != "xnone" ; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
16781 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
16782 if ${ac_cv_search_SSL_library_init+:} false; then :
16783 $as_echo_n "(cached) " >&6
16784 else
16785 ac_func_search_save_LIBS=$LIBS
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16789 /* Override any GCC internal prototype to avoid an error.
16790 Use char because int might match the return type of a GCC
16791 builtin and then its argument prototype would still apply. */
16792 #ifdef __cplusplus
16793 extern "C"
16794 #endif
16795 char SSL_library_init ();
16797 main ()
16799 return SSL_library_init ();
16801 return 0;
16803 _ACEOF
16804 for ac_lib in '' ssl; do
16805 if test -z "$ac_lib"; then
16806 ac_res="none required"
16807 else
16808 ac_res=-l$ac_lib
16809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16811 if ac_fn_c_try_link "$LINENO"; then :
16812 ac_cv_search_SSL_library_init=$ac_res
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext
16816 if ${ac_cv_search_SSL_library_init+:} false; then :
16817 break
16819 done
16820 if ${ac_cv_search_SSL_library_init+:} false; then :
16822 else
16823 ac_cv_search_SSL_library_init=no
16825 rm conftest.$ac_ext
16826 LIBS=$ac_func_search_save_LIBS
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
16829 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
16830 ac_res=$ac_cv_search_SSL_library_init
16831 if test "$ac_res" != no; then :
16832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16834 else
16835 alpine_SSLTYPE="none"
16839 if test "x$alpine_SSLTYPE" = "xnone" ; then
16840 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
16841 exit 1
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
16845 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
16846 if test "$cross_compiling" = yes; then :
16847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16849 as_fn_error $? "cannot run test program while cross compiling
16850 See \`config.log' for more details" "$LINENO" 5; }
16851 else
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16855 #include <stdio.h>
16856 #include <stdlib.h>
16857 #include <openssl/ssl.h>
16858 int main(void) {
16860 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
16861 exit(0);
16863 exit(2);
16866 _ACEOF
16867 if ac_fn_c_try_run "$LINENO"; then :
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16869 $as_echo "yes" >&6; }
16870 else
16871 alpine_SSLTYPE="none"
16873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16874 conftest.$ac_objext conftest.beam conftest.$ac_ext
16878 if test "x$alpine_SSLTYPE" = "xnone" ; then
16879 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
16880 exit 1
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
16883 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
16884 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16885 $as_echo_n "(cached) " >&6
16886 else
16887 ac_func_search_save_LIBS=$LIBS
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16891 /* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 char TLSv1_2_client_method ();
16899 main ()
16901 return TLSv1_2_client_method ();
16903 return 0;
16905 _ACEOF
16906 for ac_lib in '' ssl; do
16907 if test -z "$ac_lib"; then
16908 ac_res="none required"
16909 else
16910 ac_res=-l$ac_lib
16911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16913 if ac_fn_c_try_link "$LINENO"; then :
16914 ac_cv_search_TLSv1_2_client_method=$ac_res
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext
16918 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16919 break
16921 done
16922 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16924 else
16925 ac_cv_search_TLSv1_2_client_method=no
16927 rm conftest.$ac_ext
16928 LIBS=$ac_func_search_save_LIBS
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
16931 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
16932 ac_res=$ac_cv_search_TLSv1_2_client_method
16933 if test "$ac_res" != no; then :
16934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16935 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
16937 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
16944 if test "$alpine_with_ldap" = "yes" ; then
16945 alpine_has_ldap=
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
16947 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
16948 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-llber $LIBS"
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 /* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16959 #ifdef __cplusplus
16960 extern "C"
16961 #endif
16962 char ber_alloc ();
16964 main ()
16966 return ber_alloc ();
16968 return 0;
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 ac_cv_lib_lber_ber_alloc=yes
16973 else
16974 ac_cv_lib_lber_ber_alloc=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
16981 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
16982 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
16984 LIBS="$LIBS -llber"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
16989 $as_echo_n "checking for library containing ldap_init... " >&6; }
16990 if ${ac_cv_search_ldap_init+:} false; then :
16991 $as_echo_n "(cached) " >&6
16992 else
16993 ac_func_search_save_LIBS=$LIBS
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char ldap_init ();
17005 main ()
17007 return ldap_init ();
17009 return 0;
17011 _ACEOF
17012 for ac_lib in '' ldap; do
17013 if test -z "$ac_lib"; then
17014 ac_res="none required"
17015 else
17016 ac_res=-l$ac_lib
17017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17019 if ac_fn_c_try_link "$LINENO"; then :
17020 ac_cv_search_ldap_init=$ac_res
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext
17024 if ${ac_cv_search_ldap_init+:} false; then :
17025 break
17027 done
17028 if ${ac_cv_search_ldap_init+:} false; then :
17030 else
17031 ac_cv_search_ldap_init=no
17033 rm conftest.$ac_ext
17034 LIBS=$ac_func_search_save_LIBS
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17037 $as_echo "$ac_cv_search_ldap_init" >&6; }
17038 ac_res=$ac_cv_search_ldap_init
17039 if test "$ac_res" != no; then :
17040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17042 alpine_has_ldap=yes
17044 else
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17047 $as_echo_n "checking for library containing ldap_open... " >&6; }
17048 if ${ac_cv_search_ldap_open+:} false; then :
17049 $as_echo_n "(cached) " >&6
17050 else
17051 ac_func_search_save_LIBS=$LIBS
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17055 /* Override any GCC internal prototype to avoid an error.
17056 Use char because int might match the return type of a GCC
17057 builtin and then its argument prototype would still apply. */
17058 #ifdef __cplusplus
17059 extern "C"
17060 #endif
17061 char ldap_open ();
17063 main ()
17065 return ldap_open ();
17067 return 0;
17069 _ACEOF
17070 for ac_lib in '' ldap; do
17071 if test -z "$ac_lib"; then
17072 ac_res="none required"
17073 else
17074 ac_res=-l$ac_lib
17075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17077 if ac_fn_c_try_link "$LINENO"; then :
17078 ac_cv_search_ldap_open=$ac_res
17080 rm -f core conftest.err conftest.$ac_objext \
17081 conftest$ac_exeext
17082 if ${ac_cv_search_ldap_open+:} false; then :
17083 break
17085 done
17086 if ${ac_cv_search_ldap_open+:} false; then :
17088 else
17089 ac_cv_search_ldap_open=no
17091 rm conftest.$ac_ext
17092 LIBS=$ac_func_search_save_LIBS
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
17095 $as_echo "$ac_cv_search_ldap_open" >&6; }
17096 ac_res=$ac_cv_search_ldap_open
17097 if test "$ac_res" != no; then :
17098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17100 alpine_has_ldap=yes
17108 if test "$alpine_has_ldap" = "yes" ; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
17110 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
17112 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
17116 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
17117 if test "$cross_compiling" = yes; then :
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
17120 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17123 else
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17127 #include <stdio.h>
17128 #include <stdlib.h>
17129 #include <ldap.h>
17130 int main(void) {
17132 if (LDAP_VENDOR_VERSION >= 20300)
17133 exit(0);
17135 exit(2);
17138 _ACEOF
17139 if ac_fn_c_try_run "$LINENO"; then :
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17142 $as_echo "yes" >&6; }
17144 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
17148 else
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17151 $as_echo "no" >&6; }
17154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17155 conftest.$ac_objext conftest.beam conftest.$ac_ext
17159 else
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
17161 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
17165 if test "x$alpine_PAM" != "xnone" ; then
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
17167 $as_echo_n "checking for library containing pam_start... " >&6; }
17168 if ${ac_cv_search_pam_start+:} false; then :
17169 $as_echo_n "(cached) " >&6
17170 else
17171 ac_func_search_save_LIBS=$LIBS
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173 /* end confdefs.h. */
17175 /* Override any GCC internal prototype to avoid an error.
17176 Use char because int might match the return type of a GCC
17177 builtin and then its argument prototype would still apply. */
17178 #ifdef __cplusplus
17179 extern "C"
17180 #endif
17181 char pam_start ();
17183 main ()
17185 return pam_start ();
17187 return 0;
17189 _ACEOF
17190 for ac_lib in '' pam; do
17191 if test -z "$ac_lib"; then
17192 ac_res="none required"
17193 else
17194 ac_res=-l$ac_lib
17195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17197 if ac_fn_c_try_link "$LINENO"; then :
17198 ac_cv_search_pam_start=$ac_res
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext
17202 if ${ac_cv_search_pam_start+:} false; then :
17203 break
17205 done
17206 if ${ac_cv_search_pam_start+:} false; then :
17208 else
17209 ac_cv_search_pam_start=no
17211 rm conftest.$ac_ext
17212 LIBS=$ac_func_search_save_LIBS
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
17215 $as_echo "$ac_cv_search_pam_start" >&6; }
17216 ac_res=$ac_cv_search_pam_start
17217 if test "$ac_res" != no; then :
17218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17220 LIBS="$LIBS -lpam"
17221 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17222 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17224 alpine_PAM="yes"
17226 else
17227 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17228 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17230 alpine_PAM="yes"
17231 if test "x$alpine_c_client_target" != "xoxp" ; then
17232 alpine_PAM="none"
17233 alpine_pam_none_reason="header files not in security/ directory"
17236 else
17238 alpine_PAM="none"
17239 alpine_pam_none_reason="header files not found"
17249 else
17251 alpine_PAM="none"
17252 alpine_pam_none_reason="library files not found"
17256 if test -n "$alpine_pam_none_reason" ; then
17257 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
17262 if test "x$alpine_GSSTYPE" != "xnone" ; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
17264 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
17265 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17266 $as_echo_n "(cached) " >&6
17267 else
17268 ac_func_search_save_LIBS=$LIBS
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17272 /* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
17275 #ifdef __cplusplus
17276 extern "C"
17277 #endif
17278 char gss_init_sec_context ();
17280 main ()
17282 return gss_init_sec_context ();
17284 return 0;
17286 _ACEOF
17287 for ac_lib in '' gss gssapi gssapi_krb5; do
17288 if test -z "$ac_lib"; then
17289 ac_res="none required"
17290 else
17291 ac_res=-l$ac_lib
17292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 if ac_fn_c_try_link "$LINENO"; then :
17295 ac_cv_search_gss_init_sec_context=$ac_res
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext
17299 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17300 break
17302 done
17303 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17305 else
17306 ac_cv_search_gss_init_sec_context=no
17308 rm conftest.$ac_ext
17309 LIBS=$ac_func_search_save_LIBS
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
17312 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
17313 ac_res=$ac_cv_search_gss_init_sec_context
17314 if test "$ac_res" != no; then :
17315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17317 LIBS="$LIBS -lkrb5"
17318 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
17319 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
17321 else
17323 if test ! -d /usr/kerberos/include ; then
17324 alpine_GSSTYPE="none"
17325 alpine_gss_none_reason="header files not found"
17332 else
17334 alpine_GSSTYPE="none"
17335 alpine_gss_none_reason="libraries not found"
17339 if test -n "$alpine_gss_none_reason" ; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
17341 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
17345 if test -n "$WEB_BUILD" ; then
17346 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
17347 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
17348 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
17350 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
17351 if ${ac_cv_search_Tcl_Eval+:} false; then :
17352 $as_echo_n "(cached) " >&6
17353 else
17354 ac_func_search_save_LIBS=$LIBS
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17361 #ifdef __cplusplus
17362 extern "C"
17363 #endif
17364 char Tcl_Eval ();
17366 main ()
17368 return Tcl_Eval ();
17370 return 0;
17372 _ACEOF
17373 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
17374 if test -z "$ac_lib"; then
17375 ac_res="none required"
17376 else
17377 ac_res=-l$ac_lib
17378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17380 if ac_fn_c_try_link "$LINENO"; then :
17381 ac_cv_search_Tcl_Eval=$ac_res
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext
17385 if ${ac_cv_search_Tcl_Eval+:} false; then :
17386 break
17388 done
17389 if ${ac_cv_search_Tcl_Eval+:} false; then :
17391 else
17392 ac_cv_search_Tcl_Eval=no
17394 rm conftest.$ac_ext
17395 LIBS=$ac_func_search_save_LIBS
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
17398 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
17399 ac_res=$ac_cv_search_Tcl_Eval
17400 if test "$ac_res" != no; then :
17401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17403 else
17405 WEB_BUILD=
17410 if test -n "$alpine_TCLINC" ; then
17411 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
17412 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
17413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17415 else
17417 WEB_BUILD=
17422 if test -z "$WEB_BUILD" ; then
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
17424 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
17426 else
17427 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
17428 if test "x$ac_cv_header_tcl_h" = xyes; then :
17430 else
17432 for base in /usr /usr/local ; do
17433 for dir in ${TCL_VERSIONS} ; do
17434 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
17436 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
17437 if eval \${$as_ac_File+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 test "$cross_compiling" = yes &&
17441 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17442 if test -r "$base/include/$dir/tcl.h"; then
17443 eval "$as_ac_File=yes"
17444 else
17445 eval "$as_ac_File=no"
17448 eval ac_res=\$$as_ac_File
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17450 $as_echo "$ac_res" >&6; }
17451 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17453 found=yes
17457 if test "$found" = "yes" ; then
17458 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
17459 break
17461 done
17462 if test "$found" = "yes" ; then
17463 break
17465 done
17466 if test "$found" != "yes" ; then
17467 WEB_BUILD=
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
17469 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
17478 if test "x$alpine_REGEX" != "xyes" ; then
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
17480 $as_echo_n "checking for library containing regcomp... " >&6; }
17481 if ${ac_cv_search_regcomp+:} false; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 ac_func_search_save_LIBS=$LIBS
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char regcomp ();
17496 main ()
17498 return regcomp ();
17500 return 0;
17502 _ACEOF
17503 for ac_lib in '' posix regexp regex re; do
17504 if test -z "$ac_lib"; then
17505 ac_res="none required"
17506 else
17507 ac_res=-l$ac_lib
17508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 ac_cv_search_regcomp=$ac_res
17513 rm -f core conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext
17515 if ${ac_cv_search_regcomp+:} false; then :
17516 break
17518 done
17519 if ${ac_cv_search_regcomp+:} false; then :
17521 else
17522 ac_cv_search_regcomp=no
17524 rm conftest.$ac_ext
17525 LIBS=$ac_func_search_save_LIBS
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
17528 $as_echo "$ac_cv_search_regcomp" >&6; }
17529 ac_res=$ac_cv_search_regcomp
17530 if test "$ac_res" != no; then :
17531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17533 else
17535 if test x$alpine_REGEX = "xno" ; then
17536 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
17537 else
17538 alpine_REGEX=yes
17544 if test "x$alpine_REGEX" != "xyes" ; then
17545 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17546 if test "x$ac_cv_header_regex_h" = xyes; then :
17548 else
17550 if test x$alpine_REGEX = "xno" ; then
17551 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
17552 else
17553 alpine_REGEX=yes
17561 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
17563 if test "x$alpine_REGEX" = "xyes" ; then
17564 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
17565 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
17566 REGEX_BUILD=regex
17567 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
17570 if test "x$with_pthread" != "xno" ; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
17572 $as_echo_n "checking for pthread support... " >&6; }
17576 ac_ext=c
17577 ac_cpp='$CPP $CPPFLAGS'
17578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17582 acx_pthread_ok=no
17584 # We used to check for pthread.h first, but this fails if pthread.h
17585 # requires special compiler flags (e.g. on True64 or Sequent).
17586 # It gets checked for in the link test anyway.
17588 # First of all, check if the user has set any of the PTHREAD_LIBS,
17589 # etcetera environment variables, and if threads linking works using
17590 # them:
17591 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17592 save_CFLAGS="$CFLAGS"
17593 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17594 save_LIBS="$LIBS"
17595 LIBS="$PTHREAD_LIBS $LIBS"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17597 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 char pthread_join ();
17609 main ()
17611 return pthread_join ();
17613 return 0;
17615 _ACEOF
17616 if ac_fn_c_try_link "$LINENO"; then :
17617 acx_pthread_ok=yes
17619 rm -f core conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17622 $as_echo "$acx_pthread_ok" >&6; }
17623 if test x"$acx_pthread_ok" = xno; then
17624 PTHREAD_LIBS=""
17625 PTHREAD_CFLAGS=""
17627 LIBS="$save_LIBS"
17628 CFLAGS="$save_CFLAGS"
17631 # We must check for the threads library under a number of different
17632 # names; the ordering is very important because some systems
17633 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17634 # libraries is broken (non-POSIX).
17636 # Create a list of thread flags to try. Items starting with a "-" are
17637 # C compiler flags, and other items are library names, except for "none"
17638 # which indicates that we try without any flags at all, and "pthread-config"
17639 # which is a program returning the flags for the Pth emulation library.
17641 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17643 # The ordering *is* (sometimes) important. Some notes on the
17644 # individual items follow:
17646 # pthreads: AIX (must check this before -lpthread)
17647 # none: in case threads are in libc; should be tried before -Kthread and
17648 # other compiler flags to prevent continual compiler warnings
17649 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17650 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17651 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17652 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17653 # -pthreads: Solaris/gcc
17654 # -mthreads: Mingw32/gcc, Lynx/gcc
17655 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17656 # doesn't hurt to check since this sometimes defines pthreads too;
17657 # also defines -D_REENTRANT)
17658 # ... -mt is also the pthreads flag for HP/aCC
17659 # pthread: Linux, etcetera
17660 # --thread-safe: KAI C++
17661 # pthread-config: use pthread-config program (for GNU Pth library)
17663 case "${host_cpu}-${host_os}" in
17664 *solaris*)
17666 # On Solaris (at least, for some versions), libc contains stubbed
17667 # (non-functional) versions of the pthreads routines, so link-based
17668 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17669 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17670 # a function called by this macro, so we could check for that, but
17671 # who knows whether they'll stub that too in a future libc.) So,
17672 # we'll just look for -pthreads and -lpthread first:
17674 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17676 esac
17678 if test x"$acx_pthread_ok" = xno; then
17679 for flag in $acx_pthread_flags; do
17681 case $flag in
17682 none)
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17684 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17689 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17690 PTHREAD_CFLAGS="$flag"
17693 pthread-config)
17694 # Extract the first word of "pthread-config", so it can be a program name with args.
17695 set dummy pthread-config; ac_word=$2
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17697 $as_echo_n "checking for $ac_word... " >&6; }
17698 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 if test -n "$acx_pthread_config"; then
17702 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17703 else
17704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17705 for as_dir in $PATH
17707 IFS=$as_save_IFS
17708 test -z "$as_dir" && as_dir=.
17709 for ac_exec_ext in '' $ac_executable_extensions; do
17710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17711 ac_cv_prog_acx_pthread_config="yes"
17712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17713 break 2
17715 done
17716 done
17717 IFS=$as_save_IFS
17719 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17722 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17723 if test -n "$acx_pthread_config"; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17725 $as_echo "$acx_pthread_config" >&6; }
17726 else
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17732 if test x"$acx_pthread_config" = xno; then continue; fi
17733 PTHREAD_CFLAGS="`pthread-config --cflags`"
17734 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17739 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17740 PTHREAD_LIBS="-l$flag"
17742 esac
17744 save_LIBS="$LIBS"
17745 save_CFLAGS="$CFLAGS"
17746 LIBS="$PTHREAD_LIBS $LIBS"
17747 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17749 # Check for various functions. We must include pthread.h,
17750 # since some functions may be macros. (On the Sequent, we
17751 # need a special flag -Kthread to make this header compile.)
17752 # We check for pthread_join because it is in -lpthread on IRIX
17753 # while pthread_create is in libc. We check for pthread_attr_init
17754 # due to DEC craziness with -lpthreads. We check for
17755 # pthread_cleanup_push because it is one of the few pthread
17756 # functions on Solaris that doesn't have a non-functional libc stub.
17757 # We try pthread_create on general principles.
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760 #include <pthread.h>
17762 main ()
17764 pthread_t th; pthread_join(th, 0);
17765 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17766 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17768 return 0;
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 acx_pthread_ok=yes
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17777 LIBS="$save_LIBS"
17778 CFLAGS="$save_CFLAGS"
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17781 $as_echo "$acx_pthread_ok" >&6; }
17782 if test "x$acx_pthread_ok" = xyes; then
17783 break;
17786 PTHREAD_LIBS=""
17787 PTHREAD_CFLAGS=""
17788 done
17791 # Various other checks:
17792 if test "x$acx_pthread_ok" = xyes; then
17793 save_LIBS="$LIBS"
17794 LIBS="$PTHREAD_LIBS $LIBS"
17795 save_CFLAGS="$CFLAGS"
17796 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17798 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17800 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17801 attr_name=unknown
17802 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805 #include <pthread.h>
17807 main ()
17809 int attr=$attr; return attr;
17811 return 0;
17813 _ACEOF
17814 if ac_fn_c_try_link "$LINENO"; then :
17815 attr_name=$attr; break
17817 rm -f core conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 done
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17821 $as_echo "$attr_name" >&6; }
17822 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define PTHREAD_CREATE_JOINABLE $attr_name
17826 _ACEOF
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17831 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17832 flag=no
17833 case "${host_cpu}-${host_os}" in
17834 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17835 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17836 esac
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17838 $as_echo "${flag}" >&6; }
17839 if test "x$flag" != xno; then
17840 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17843 LIBS="$save_LIBS"
17844 CFLAGS="$save_CFLAGS"
17846 # More AIX lossage: must compile with xlc_r or cc_r
17847 if test x"$GCC" != xyes; then
17848 for ac_prog in xlc_r cc_r
17850 # Extract the first word of "$ac_prog", so it can be a program name with args.
17851 set dummy $ac_prog; ac_word=$2
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17853 $as_echo_n "checking for $ac_word... " >&6; }
17854 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 if test -n "$PTHREAD_CC"; then
17858 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17859 else
17860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17861 for as_dir in $PATH
17863 IFS=$as_save_IFS
17864 test -z "$as_dir" && as_dir=.
17865 for ac_exec_ext in '' $ac_executable_extensions; do
17866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17867 ac_cv_prog_PTHREAD_CC="$ac_prog"
17868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869 break 2
17871 done
17872 done
17873 IFS=$as_save_IFS
17877 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17878 if test -n "$PTHREAD_CC"; then
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17880 $as_echo "$PTHREAD_CC" >&6; }
17881 else
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883 $as_echo "no" >&6; }
17887 test -n "$PTHREAD_CC" && break
17888 done
17889 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17891 else
17892 PTHREAD_CC=$CC
17894 else
17895 PTHREAD_CC="$CC"
17902 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17903 if test x"$acx_pthread_ok" = xyes; then
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17906 $as_echo "yes" >&6; }
17907 case "$target" in
17908 *openbsd*)
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
17910 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
17911 AM_CFLAGS="$AM_CFLAGS -pthread"
17913 esac
17914 LIBS="$PTHREAD_LIBS $LIBS"
17915 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
17916 CC="$PTHREAD_CC"
17918 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17922 else
17923 acx_pthread_ok=no
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17929 ac_ext=c
17930 ac_cpp='$CPP $CPPFLAGS'
17931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
17938 $as_echo_n "checking for library containing nanosleep... " >&6; }
17939 if ${ac_cv_search_nanosleep+:} false; then :
17940 $as_echo_n "(cached) " >&6
17941 else
17942 ac_func_search_save_LIBS=$LIBS
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char nanosleep ();
17954 main ()
17956 return nanosleep ();
17958 return 0;
17960 _ACEOF
17961 for ac_lib in '' rt posix4; do
17962 if test -z "$ac_lib"; then
17963 ac_res="none required"
17964 else
17965 ac_res=-l$ac_lib
17966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17968 if ac_fn_c_try_link "$LINENO"; then :
17969 ac_cv_search_nanosleep=$ac_res
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext
17973 if ${ac_cv_search_nanosleep+:} false; then :
17974 break
17976 done
17977 if ${ac_cv_search_nanosleep+:} false; then :
17979 else
17980 ac_cv_search_nanosleep=no
17982 rm conftest.$ac_ext
17983 LIBS=$ac_func_search_save_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
17986 $as_echo "$ac_cv_search_nanosleep" >&6; }
17987 ac_res=$ac_cv_search_nanosleep
17988 if test "$ac_res" != no; then :
17989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17992 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18003 $as_echo_n "checking for ANSI C header files... " >&6; }
18004 if ${ac_cv_header_stdc+:} false; then :
18005 $as_echo_n "(cached) " >&6
18006 else
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18009 #include <stdlib.h>
18010 #include <stdarg.h>
18011 #include <string.h>
18012 #include <float.h>
18015 main ()
18019 return 0;
18021 _ACEOF
18022 if ac_fn_c_try_compile "$LINENO"; then :
18023 ac_cv_header_stdc=yes
18024 else
18025 ac_cv_header_stdc=no
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029 if test $ac_cv_header_stdc = yes; then
18030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18033 #include <string.h>
18035 _ACEOF
18036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18037 $EGREP "memchr" >/dev/null 2>&1; then :
18039 else
18040 ac_cv_header_stdc=no
18042 rm -f conftest*
18046 if test $ac_cv_header_stdc = yes; then
18047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050 #include <stdlib.h>
18052 _ACEOF
18053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18054 $EGREP "free" >/dev/null 2>&1; then :
18056 else
18057 ac_cv_header_stdc=no
18059 rm -f conftest*
18063 if test $ac_cv_header_stdc = yes; then
18064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18065 if test "$cross_compiling" = yes; then :
18067 else
18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h. */
18070 #include <ctype.h>
18071 #include <stdlib.h>
18072 #if ((' ' & 0x0FF) == 0x020)
18073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18075 #else
18076 # define ISLOWER(c) \
18077 (('a' <= (c) && (c) <= 'i') \
18078 || ('j' <= (c) && (c) <= 'r') \
18079 || ('s' <= (c) && (c) <= 'z'))
18080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18081 #endif
18083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18085 main ()
18087 int i;
18088 for (i = 0; i < 256; i++)
18089 if (XOR (islower (i), ISLOWER (i))
18090 || toupper (i) != TOUPPER (i))
18091 return 2;
18092 return 0;
18094 _ACEOF
18095 if ac_fn_c_try_run "$LINENO"; then :
18097 else
18098 ac_cv_header_stdc=no
18100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18101 conftest.$ac_objext conftest.beam conftest.$ac_ext
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18107 $as_echo "$ac_cv_header_stdc" >&6; }
18108 if test $ac_cv_header_stdc = yes; then
18110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18114 ac_header_dirent=no
18115 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18116 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18118 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18119 if eval \${$as_ac_Header+:} false; then :
18120 $as_echo_n "(cached) " >&6
18121 else
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124 #include <sys/types.h>
18125 #include <$ac_hdr>
18128 main ()
18130 if ((DIR *) 0)
18131 return 0;
18133 return 0;
18135 _ACEOF
18136 if ac_fn_c_try_compile "$LINENO"; then :
18137 eval "$as_ac_Header=yes"
18138 else
18139 eval "$as_ac_Header=no"
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 eval ac_res=\$$as_ac_Header
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18145 $as_echo "$ac_res" >&6; }
18146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18147 cat >>confdefs.h <<_ACEOF
18148 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18149 _ACEOF
18151 ac_header_dirent=$ac_hdr; break
18154 done
18155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18156 if test $ac_header_dirent = dirent.h; then
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18158 $as_echo_n "checking for library containing opendir... " >&6; }
18159 if ${ac_cv_search_opendir+:} false; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 ac_func_search_save_LIBS=$LIBS
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18166 /* Override any GCC internal prototype to avoid an error.
18167 Use char because int might match the return type of a GCC
18168 builtin and then its argument prototype would still apply. */
18169 #ifdef __cplusplus
18170 extern "C"
18171 #endif
18172 char opendir ();
18174 main ()
18176 return opendir ();
18178 return 0;
18180 _ACEOF
18181 for ac_lib in '' dir; do
18182 if test -z "$ac_lib"; then
18183 ac_res="none required"
18184 else
18185 ac_res=-l$ac_lib
18186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18188 if ac_fn_c_try_link "$LINENO"; then :
18189 ac_cv_search_opendir=$ac_res
18191 rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext
18193 if ${ac_cv_search_opendir+:} false; then :
18194 break
18196 done
18197 if ${ac_cv_search_opendir+:} false; then :
18199 else
18200 ac_cv_search_opendir=no
18202 rm conftest.$ac_ext
18203 LIBS=$ac_func_search_save_LIBS
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18206 $as_echo "$ac_cv_search_opendir" >&6; }
18207 ac_res=$ac_cv_search_opendir
18208 if test "$ac_res" != no; then :
18209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18213 else
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18215 $as_echo_n "checking for library containing opendir... " >&6; }
18216 if ${ac_cv_search_opendir+:} false; then :
18217 $as_echo_n "(cached) " >&6
18218 else
18219 ac_func_search_save_LIBS=$LIBS
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char opendir ();
18231 main ()
18233 return opendir ();
18235 return 0;
18237 _ACEOF
18238 for ac_lib in '' x; do
18239 if test -z "$ac_lib"; then
18240 ac_res="none required"
18241 else
18242 ac_res=-l$ac_lib
18243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18245 if ac_fn_c_try_link "$LINENO"; then :
18246 ac_cv_search_opendir=$ac_res
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext
18250 if ${ac_cv_search_opendir+:} false; then :
18251 break
18253 done
18254 if ${ac_cv_search_opendir+:} false; then :
18256 else
18257 ac_cv_search_opendir=no
18259 rm conftest.$ac_ext
18260 LIBS=$ac_func_search_save_LIBS
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18263 $as_echo "$ac_cv_search_opendir" >&6; }
18264 ac_res=$ac_cv_search_opendir
18265 if test "$ac_res" != no; then :
18266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18273 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18274 if ${ac_cv_header_stat_broken+:} false; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279 #include <sys/types.h>
18280 #include <sys/stat.h>
18282 #if defined S_ISBLK && defined S_IFDIR
18283 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18284 #endif
18286 #if defined S_ISBLK && defined S_IFCHR
18287 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18288 #endif
18290 #if defined S_ISLNK && defined S_IFREG
18291 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18292 #endif
18294 #if defined S_ISSOCK && defined S_IFREG
18295 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18296 #endif
18298 _ACEOF
18299 if ac_fn_c_try_compile "$LINENO"; then :
18300 ac_cv_header_stat_broken=no
18301 else
18302 ac_cv_header_stat_broken=yes
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18307 $as_echo "$ac_cv_header_stat_broken" >&6; }
18308 if test $ac_cv_header_stat_broken = yes; then
18310 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18315 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18316 if ${ac_cv_header_sys_wait_h+:} false; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #include <sys/types.h>
18322 #include <sys/wait.h>
18323 #ifndef WEXITSTATUS
18324 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18325 #endif
18326 #ifndef WIFEXITED
18327 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18328 #endif
18331 main ()
18333 int s;
18334 wait (&s);
18335 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18337 return 0;
18339 _ACEOF
18340 if ac_fn_c_try_compile "$LINENO"; then :
18341 ac_cv_header_sys_wait_h=yes
18342 else
18343 ac_cv_header_sys_wait_h=no
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18348 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18349 if test $ac_cv_header_sys_wait_h = yes; then
18351 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be Included" >&5
18356 $as_echo_n "checking whether time.h and sys/time.h may both be Included... " >&6; }
18357 if ${ac_cv_header_time+:} false; then :
18358 $as_echo_n "(cached) " >&6
18359 else
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18362 #include <sys/types.h>
18363 #include <sys/time.h>
18364 #include <time.h>
18367 main ()
18369 if ((struct tm *) 0)
18370 return 0;
18372 return 0;
18374 _ACEOF
18375 if ac_fn_c_try_compile "$LINENO"; then :
18376 ac_cv_header_time=yes
18377 else
18378 ac_cv_header_time=no
18380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18383 $as_echo "$ac_cv_header_time" >&6; }
18384 if test $ac_cv_header_time = yes; then
18386 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
18391 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
18392 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18397 #include <sys/types.h>
18398 #include <termios.h>
18399 #ifdef TIOCGWINSZ
18401 #endif
18403 _ACEOF
18404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18405 $EGREP "yes" >/dev/null 2>&1; then :
18406 ac_cv_sys_tiocgwinsz_in_termios_h=yes
18407 else
18408 ac_cv_sys_tiocgwinsz_in_termios_h=no
18410 rm -f conftest*
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
18414 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
18416 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
18418 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
18419 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
18420 $as_echo_n "(cached) " >&6
18421 else
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 #include <sys/types.h>
18425 #include <sys/ioctl.h>
18426 #ifdef TIOCGWINSZ
18428 #endif
18430 _ACEOF
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 $EGREP "yes" >/dev/null 2>&1; then :
18433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
18434 else
18435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
18437 rm -f conftest*
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
18441 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
18443 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
18445 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
18451 for ac_header in unistd.h
18452 do :
18453 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18454 if test "x$ac_cv_header_unistd_h" = xyes; then :
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_UNISTD_H 1
18457 _ACEOF
18461 done
18464 for ac_header in errno.h \
18465 ctype.h \
18466 fcntl.h \
18467 signal.h \
18468 setjmp.h \
18469 memory.h \
18470 sys/param.h \
18471 sys/socket.h \
18472 sys/uio.h \
18473 sys/un.h \
18474 limits.h \
18475 wchar.h \
18476 sys/poll.h \
18477 stropts.h \
18478 netdb.h \
18479 syslog.h \
18480 sys/syslog.h \
18481 locale.h \
18482 langinfo.h \
18483 utime.h \
18484 sys/utime.h \
18485 pthread.h \
18486 pwd.h \
18487 assert.h
18488 do :
18489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18490 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18492 cat >>confdefs.h <<_ACEOF
18493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18494 _ACEOF
18498 done
18501 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18502 if test "x$ac_cv_header_termios_h" = xyes; then :
18504 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
18506 else
18508 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
18509 if test "x$ac_cv_header_termio_h" = xyes; then :
18511 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
18513 else
18515 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
18516 if test "x$ac_cv_header_sgtty_h" = xyes; then :
18518 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
18520 else
18522 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18539 $as_echo_n "checking return type of signal handlers... " >&6; }
18540 if ${ac_cv_type_signal+:} false; then :
18541 $as_echo_n "(cached) " >&6
18542 else
18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18545 #include <sys/types.h>
18546 #include <signal.h>
18549 main ()
18551 return *(signal (0, 0)) (0) == 1;
18553 return 0;
18555 _ACEOF
18556 if ac_fn_c_try_compile "$LINENO"; then :
18557 ac_cv_type_signal=int
18558 else
18559 ac_cv_type_signal=void
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18564 $as_echo "$ac_cv_type_signal" >&6; }
18566 cat >>confdefs.h <<_ACEOF
18567 #define RETSIGTYPE $ac_cv_type_signal
18568 _ACEOF
18571 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18572 if test "x$ac_cv_type_size_t" = xyes; then :
18574 else
18576 cat >>confdefs.h <<_ACEOF
18577 #define size_t unsigned int
18578 _ACEOF
18582 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18583 if test "x$ac_cv_type_mode_t" = xyes; then :
18585 else
18587 cat >>confdefs.h <<_ACEOF
18588 #define mode_t int
18589 _ACEOF
18593 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18594 if test "x$ac_cv_type_pid_t" = xyes; then :
18596 else
18598 cat >>confdefs.h <<_ACEOF
18599 #define pid_t int
18600 _ACEOF
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18605 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18606 if ${ac_cv_type_uid_t+:} false; then :
18607 $as_echo_n "(cached) " >&6
18608 else
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611 #include <sys/types.h>
18613 _ACEOF
18614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18615 $EGREP "uid_t" >/dev/null 2>&1; then :
18616 ac_cv_type_uid_t=yes
18617 else
18618 ac_cv_type_uid_t=no
18620 rm -f conftest*
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18624 $as_echo "$ac_cv_type_uid_t" >&6; }
18625 if test $ac_cv_type_uid_t = no; then
18627 $as_echo "#define uid_t int" >>confdefs.h
18630 $as_echo "#define gid_t int" >>confdefs.h
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18635 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18636 if ${ac_cv_struct_tm+:} false; then :
18637 $as_echo_n "(cached) " >&6
18638 else
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641 #include <sys/types.h>
18642 #include <time.h>
18645 main ()
18647 struct tm tm;
18648 int *p = &tm.tm_sec;
18649 return !p;
18651 return 0;
18653 _ACEOF
18654 if ac_fn_c_try_compile "$LINENO"; then :
18655 ac_cv_struct_tm=time.h
18656 else
18657 ac_cv_struct_tm=sys/time.h
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18662 $as_echo "$ac_cv_struct_tm" >&6; }
18663 if test $ac_cv_struct_tm = sys/time.h; then
18665 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18670 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
18671 if test "x$ac_cv_type_union_wait" = xyes; then :
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_UNION_WAIT 1
18675 _ACEOF
18681 for ac_header in stdint.h
18682 do :
18683 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18684 if test "x$ac_cv_header_stdint_h" = xyes; then :
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_STDINT_H 1
18687 _ACEOF
18688 uint16=uint16_t
18689 else
18691 for ac_header in inttypes.h
18692 do :
18693 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18694 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18695 cat >>confdefs.h <<_ACEOF
18696 #define HAVE_INTTYPES_H 1
18697 _ACEOF
18698 uint16=uint16_t
18699 else
18701 for ac_header in sys/types.h
18702 do :
18703 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18704 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_SYS_TYPES_H 1
18707 _ACEOF
18708 uint16=u_int16_t
18709 else
18711 # The cast to long int works around a bug in the HP C Compiler
18712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18714 # This bug is HP SR number 8606223364.
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18716 $as_echo_n "checking size of unsigned short... " >&6; }
18717 if ${ac_cv_sizeof_unsigned_short+:} false; then :
18718 $as_echo_n "(cached) " >&6
18719 else
18720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
18722 else
18723 if test "$ac_cv_type_unsigned_short" = yes; then
18724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18726 as_fn_error 77 "cannot compute sizeof (unsigned short)
18727 See \`config.log' for more details" "$LINENO" 5; }
18728 else
18729 ac_cv_sizeof_unsigned_short=0
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18735 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
18739 cat >>confdefs.h <<_ACEOF
18740 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
18741 _ACEOF
18744 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
18745 uint16="unsigned short"
18746 else
18747 # The cast to long int works around a bug in the HP C Compiler
18748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18750 # This bug is HP SR number 8606223364.
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18752 $as_echo_n "checking size of unsigned int... " >&6; }
18753 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18754 $as_echo_n "(cached) " >&6
18755 else
18756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18758 else
18759 if test "$ac_cv_type_unsigned_int" = yes; then
18760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18762 as_fn_error 77 "cannot compute sizeof (unsigned int)
18763 See \`config.log' for more details" "$LINENO" 5; }
18764 else
18765 ac_cv_sizeof_unsigned_int=0
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18771 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18775 cat >>confdefs.h <<_ACEOF
18776 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18777 _ACEOF
18780 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
18781 uint16="unsigned int"
18782 else
18783 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
18789 done
18794 done
18799 done
18802 cat >>confdefs.h <<_ACEOF
18803 #define UINT16 $uint16
18804 _ACEOF
18807 for ac_header in stdint.h
18808 do :
18809 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18810 if test "x$ac_cv_header_stdint_h" = xyes; then :
18811 cat >>confdefs.h <<_ACEOF
18812 #define HAVE_STDINT_H 1
18813 _ACEOF
18814 uint32=uint32_t
18815 else
18817 for ac_header in inttypes.h
18818 do :
18819 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18820 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18821 cat >>confdefs.h <<_ACEOF
18822 #define HAVE_INTTYPES_H 1
18823 _ACEOF
18824 uint32=uint32_t
18825 else
18827 for ac_header in sys/types.h
18828 do :
18829 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18830 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18831 cat >>confdefs.h <<_ACEOF
18832 #define HAVE_SYS_TYPES_H 1
18833 _ACEOF
18834 uint32=u_int32_t
18835 else
18837 # The cast to long int works around a bug in the HP C Compiler
18838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18840 # This bug is HP SR number 8606223364.
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18842 $as_echo_n "checking size of unsigned int... " >&6; }
18843 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18844 $as_echo_n "(cached) " >&6
18845 else
18846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18848 else
18849 if test "$ac_cv_type_unsigned_int" = yes; then
18850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18852 as_fn_error 77 "cannot compute sizeof (unsigned int)
18853 See \`config.log' for more details" "$LINENO" 5; }
18854 else
18855 ac_cv_sizeof_unsigned_int=0
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18861 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18865 cat >>confdefs.h <<_ACEOF
18866 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18867 _ACEOF
18870 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
18871 uint32="unsigned int"
18872 else
18873 # The cast to long int works around a bug in the HP C Compiler
18874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18876 # This bug is HP SR number 8606223364.
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18878 $as_echo_n "checking size of unsigned long... " >&6; }
18879 if ${ac_cv_sizeof_unsigned_long+:} false; then :
18880 $as_echo_n "(cached) " >&6
18881 else
18882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
18884 else
18885 if test "$ac_cv_type_unsigned_long" = yes; then
18886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18888 as_fn_error 77 "cannot compute sizeof (unsigned long)
18889 See \`config.log' for more details" "$LINENO" 5; }
18890 else
18891 ac_cv_sizeof_unsigned_long=0
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18897 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
18901 cat >>confdefs.h <<_ACEOF
18902 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18903 _ACEOF
18906 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
18907 uint32="unsigned long"
18908 else
18909 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
18915 done
18920 done
18925 done
18928 cat >>confdefs.h <<_ACEOF
18929 #define UINT32 $uint32
18930 _ACEOF
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
18934 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
18935 if ${ac_cv_func_qsort_argtype+:} false; then :
18936 $as_echo_n "(cached) " >&6
18937 else
18938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18941 #if HAVE_STDLIB_H
18942 #include "stdlib.h"
18943 #endif
18945 extern void *base;
18946 extern sortf(const void *, const void *);
18947 int sortf(a, b)
18948 const void *a;
18949 const void *b; { return 0; }
18952 main ()
18955 qsort(base, 2, sizeof(char *), sortf);
18958 return 0;
18960 _ACEOF
18961 if ac_fn_c_try_compile "$LINENO"; then :
18962 ac_cv_func_qsort_argtype=void
18963 else
18964 ac_cv_func_qsort_argtype=char
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
18970 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
18972 cat >>confdefs.h <<_ACEOF
18973 #define qsort_t $ac_cv_func_qsort_argtype
18974 _ACEOF
18978 for ac_header in sys/select.h sys/socket.h
18979 do :
18980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18983 cat >>confdefs.h <<_ACEOF
18984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18985 _ACEOF
18989 done
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18992 $as_echo_n "checking types of arguments for select... " >&6; }
18993 if ${ac_cv_func_select_args+:} false; then :
18994 $as_echo_n "(cached) " >&6
18995 else
18996 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18997 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18998 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 $ac_includes_default
19002 #ifdef HAVE_SYS_SELECT_H
19003 # include <sys/select.h>
19004 #endif
19005 #ifdef HAVE_SYS_SOCKET_H
19006 # include <sys/socket.h>
19007 #endif
19010 main ()
19012 extern int select ($ac_arg1,
19013 $ac_arg234, $ac_arg234, $ac_arg234,
19014 $ac_arg5);
19016 return 0;
19018 _ACEOF
19019 if ac_fn_c_try_compile "$LINENO"; then :
19020 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 done
19024 done
19025 done
19026 # Provide a safe default value.
19027 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19031 $as_echo "$ac_cv_func_select_args" >&6; }
19032 ac_save_IFS=$IFS; IFS=','
19033 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19034 IFS=$ac_save_IFS
19035 shift
19037 cat >>confdefs.h <<_ACEOF
19038 #define SELECT_TYPE_ARG1 $1
19039 _ACEOF
19042 cat >>confdefs.h <<_ACEOF
19043 #define SELECT_TYPE_ARG234 ($2)
19044 _ACEOF
19047 cat >>confdefs.h <<_ACEOF
19048 #define SELECT_TYPE_ARG5 ($3)
19049 _ACEOF
19051 rm -f conftest*
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19055 $as_echo_n "checking for working strcoll... " >&6; }
19056 if ${ac_cv_func_strcoll_works+:} false; then :
19057 $as_echo_n "(cached) " >&6
19058 else
19059 if test "$cross_compiling" = yes; then :
19060 ac_cv_func_strcoll_works=no
19061 else
19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19064 $ac_includes_default
19066 main ()
19068 return (strcoll ("abc", "def") >= 0 ||
19069 strcoll ("ABC", "DEF") >= 0 ||
19070 strcoll ("123", "456") >= 0)
19072 return 0;
19074 _ACEOF
19075 if ac_fn_c_try_run "$LINENO"; then :
19076 ac_cv_func_strcoll_works=yes
19077 else
19078 ac_cv_func_strcoll_works=no
19080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19081 conftest.$ac_objext conftest.beam conftest.$ac_ext
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
19086 $as_echo "$ac_cv_func_strcoll_works" >&6; }
19087 if test $ac_cv_func_strcoll_works = yes; then
19089 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
19095 for ac_header in vfork.h
19096 do :
19097 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19098 if test "x$ac_cv_header_vfork_h" = xyes; then :
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_VFORK_H 1
19101 _ACEOF
19105 done
19107 for ac_func in fork vfork
19108 do :
19109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19112 cat >>confdefs.h <<_ACEOF
19113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19114 _ACEOF
19117 done
19119 if test "x$ac_cv_func_fork" = xyes; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19121 $as_echo_n "checking for working fork... " >&6; }
19122 if ${ac_cv_func_fork_works+:} false; then :
19123 $as_echo_n "(cached) " >&6
19124 else
19125 if test "$cross_compiling" = yes; then :
19126 ac_cv_func_fork_works=cross
19127 else
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 $ac_includes_default
19132 main ()
19135 /* By Ruediger Kuhlmann. */
19136 return fork () < 0;
19139 return 0;
19141 _ACEOF
19142 if ac_fn_c_try_run "$LINENO"; then :
19143 ac_cv_func_fork_works=yes
19144 else
19145 ac_cv_func_fork_works=no
19147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19148 conftest.$ac_objext conftest.beam conftest.$ac_ext
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19153 $as_echo "$ac_cv_func_fork_works" >&6; }
19155 else
19156 ac_cv_func_fork_works=$ac_cv_func_fork
19158 if test "x$ac_cv_func_fork_works" = xcross; then
19159 case $host in
19160 *-*-amigaos* | *-*-msdosdjgpp*)
19161 # Override, as these systems have only a dummy fork() stub
19162 ac_cv_func_fork_works=no
19165 ac_cv_func_fork_works=yes
19167 esac
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19169 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19171 ac_cv_func_vfork_works=$ac_cv_func_vfork
19172 if test "x$ac_cv_func_vfork" = xyes; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19174 $as_echo_n "checking for working vfork... " >&6; }
19175 if ${ac_cv_func_vfork_works+:} false; then :
19176 $as_echo_n "(cached) " >&6
19177 else
19178 if test "$cross_compiling" = yes; then :
19179 ac_cv_func_vfork_works=cross
19180 else
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183 /* Thanks to Paul Eggert for this test. */
19184 $ac_includes_default
19185 #include <sys/wait.h>
19186 #ifdef HAVE_VFORK_H
19187 # include <vfork.h>
19188 #endif
19189 /* On some sparc systems, changes by the child to local and incoming
19190 argument registers are propagated back to the parent. The compiler
19191 is told about this with #include <vfork.h>, but some compilers
19192 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19193 static variable whose address is put into a register that is
19194 clobbered by the vfork. */
19195 static void
19196 #ifdef __cplusplus
19197 sparc_address_test (int arg)
19198 # else
19199 sparc_address_test (arg) int arg;
19200 #endif
19202 static pid_t child;
19203 if (!child) {
19204 child = vfork ();
19205 if (child < 0) {
19206 perror ("vfork");
19207 _exit(2);
19209 if (!child) {
19210 arg = getpid();
19211 write(-1, "", 0);
19212 _exit (arg);
19218 main ()
19220 pid_t parent = getpid ();
19221 pid_t child;
19223 sparc_address_test (0);
19225 child = vfork ();
19227 if (child == 0) {
19228 /* Here is another test for sparc vfork register problems. This
19229 test uses lots of local variables, at least as many local
19230 variables as main has allocated so far including compiler
19231 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19232 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19233 reuse the register of parent for one of the local variables,
19234 since it will think that parent can't possibly be used any more
19235 in this routine. Assigning to the local variable will thus
19236 munge parent in the parent process. */
19237 pid_t
19238 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19239 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19240 /* Convince the compiler that p..p7 are live; otherwise, it might
19241 use the same hardware register for all 8 local variables. */
19242 if (p != p1 || p != p2 || p != p3 || p != p4
19243 || p != p5 || p != p6 || p != p7)
19244 _exit(1);
19246 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19247 from child file descriptors. If the child closes a descriptor
19248 before it execs or exits, this munges the parent's descriptor
19249 as well. Test for this by closing stdout in the child. */
19250 _exit(close(fileno(stdout)) != 0);
19251 } else {
19252 int status;
19253 struct stat st;
19255 while (wait(&status) != child)
19257 return (
19258 /* Was there some problem with vforking? */
19259 child < 0
19261 /* Did the child fail? (This shouldn't happen.) */
19262 || status
19264 /* Did the vfork/compiler bug occur? */
19265 || parent != getpid()
19267 /* Did the file descriptor bug occur? */
19268 || fstat(fileno(stdout), &st) != 0
19272 _ACEOF
19273 if ac_fn_c_try_run "$LINENO"; then :
19274 ac_cv_func_vfork_works=yes
19275 else
19276 ac_cv_func_vfork_works=no
19278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19279 conftest.$ac_objext conftest.beam conftest.$ac_ext
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19284 $as_echo "$ac_cv_func_vfork_works" >&6; }
19287 if test "x$ac_cv_func_fork_works" = xcross; then
19288 ac_cv_func_vfork_works=$ac_cv_func_vfork
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19290 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19293 if test "x$ac_cv_func_vfork_works" = xyes; then
19295 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19297 else
19299 $as_echo "#define vfork fork" >>confdefs.h
19302 if test "x$ac_cv_func_fork_works" = xyes; then
19304 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19308 for ac_func in strchr \
19309 memcpy \
19310 strtol \
19311 strtoul \
19312 select \
19313 poll \
19314 qsort \
19315 getuid \
19316 getpwuid \
19317 getpwnam \
19318 gettimeofday \
19319 tmpfile \
19320 uname \
19321 rename \
19322 read \
19323 signal \
19324 setjmp \
19325 chown \
19326 wait4 \
19327 waitpid \
19328 wait \
19329 srandom \
19330 popen \
19331 pclose \
19332 fsync \
19333 truncate \
19334 listen \
19335 wcwidth \
19336 mbstowcs \
19337 wcrtomb \
19338 putenv \
19339 setenv
19340 do :
19341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19344 cat >>confdefs.h <<_ACEOF
19345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19346 _ACEOF
19349 done
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19353 $as_echo_n "checking for library containing gethostname... " >&6; }
19354 if ${ac_cv_search_gethostname+:} false; then :
19355 $as_echo_n "(cached) " >&6
19356 else
19357 ac_func_search_save_LIBS=$LIBS
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 char gethostname ();
19369 main ()
19371 return gethostname ();
19373 return 0;
19375 _ACEOF
19376 for ac_lib in '' nsl; do
19377 if test -z "$ac_lib"; then
19378 ac_res="none required"
19379 else
19380 ac_res=-l$ac_lib
19381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19383 if ac_fn_c_try_link "$LINENO"; then :
19384 ac_cv_search_gethostname=$ac_res
19386 rm -f core conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext
19388 if ${ac_cv_search_gethostname+:} false; then :
19389 break
19391 done
19392 if ${ac_cv_search_gethostname+:} false; then :
19394 else
19395 ac_cv_search_gethostname=no
19397 rm conftest.$ac_ext
19398 LIBS=$ac_func_search_save_LIBS
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19401 $as_echo "$ac_cv_search_gethostname" >&6; }
19402 ac_res=$ac_cv_search_gethostname
19403 if test "$ac_res" != no; then :
19404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19410 $as_echo_n "checking for library containing socket... " >&6; }
19411 if ${ac_cv_search_socket+:} false; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414 ac_func_search_save_LIBS=$LIBS
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 #endif
19424 char socket ();
19426 main ()
19428 return socket ();
19430 return 0;
19432 _ACEOF
19433 for ac_lib in '' socket; do
19434 if test -z "$ac_lib"; then
19435 ac_res="none required"
19436 else
19437 ac_res=-l$ac_lib
19438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19440 if ac_fn_c_try_link "$LINENO"; then :
19441 ac_cv_search_socket=$ac_res
19443 rm -f core conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext
19445 if ${ac_cv_search_socket+:} false; then :
19446 break
19448 done
19449 if ${ac_cv_search_socket+:} false; then :
19451 else
19452 ac_cv_search_socket=no
19454 rm conftest.$ac_ext
19455 LIBS=$ac_func_search_save_LIBS
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19458 $as_echo "$ac_cv_search_socket" >&6; }
19459 ac_res=$ac_cv_search_socket
19460 if test "$ac_res" != no; then :
19461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19463 else
19465 WEB_BUILD=
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
19471 $as_echo_n "checking for library containing bind... " >&6; }
19472 if ${ac_cv_search_bind+:} false; then :
19473 $as_echo_n "(cached) " >&6
19474 else
19475 ac_func_search_save_LIBS=$LIBS
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char bind ();
19487 main ()
19489 return bind ();
19491 return 0;
19493 _ACEOF
19494 for ac_lib in '' bind; do
19495 if test -z "$ac_lib"; then
19496 ac_res="none required"
19497 else
19498 ac_res=-l$ac_lib
19499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19501 if ac_fn_c_try_link "$LINENO"; then :
19502 ac_cv_search_bind=$ac_res
19504 rm -f core conftest.err conftest.$ac_objext \
19505 conftest$ac_exeext
19506 if ${ac_cv_search_bind+:} false; then :
19507 break
19509 done
19510 if ${ac_cv_search_bind+:} false; then :
19512 else
19513 ac_cv_search_bind=no
19515 rm conftest.$ac_ext
19516 LIBS=$ac_func_search_save_LIBS
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
19519 $as_echo "$ac_cv_search_bind" >&6; }
19520 ac_res=$ac_cv_search_bind
19521 if test "$ac_res" != no; then :
19522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19524 else
19526 WEB_BUILD=
19531 for ac_func in sigaction sigemptyset sigaddset sigprocmask
19532 do :
19533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19534 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19535 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19536 cat >>confdefs.h <<_ACEOF
19537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19538 _ACEOF
19541 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
19544 else
19546 for ac_func in sigset sigrelse
19547 do :
19548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19551 cat >>confdefs.h <<_ACEOF
19552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19553 _ACEOF
19556 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
19560 done
19564 done
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
19568 $as_echo_n "checking for library containing syslog... " >&6; }
19569 if ${ac_cv_search_syslog+:} false; then :
19570 $as_echo_n "(cached) " >&6
19571 else
19572 ac_func_search_save_LIBS=$LIBS
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 char syslog ();
19584 main ()
19586 return syslog ();
19588 return 0;
19590 _ACEOF
19591 for ac_lib in '' bsd socket inet; do
19592 if test -z "$ac_lib"; then
19593 ac_res="none required"
19594 else
19595 ac_res=-l$ac_lib
19596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19598 if ac_fn_c_try_link "$LINENO"; then :
19599 ac_cv_search_syslog=$ac_res
19601 rm -f core conftest.err conftest.$ac_objext \
19602 conftest$ac_exeext
19603 if ${ac_cv_search_syslog+:} false; then :
19604 break
19606 done
19607 if ${ac_cv_search_syslog+:} false; then :
19609 else
19610 ac_cv_search_syslog=no
19612 rm conftest.$ac_ext
19613 LIBS=$ac_func_search_save_LIBS
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
19616 $as_echo "$ac_cv_search_syslog" >&6; }
19617 ac_res=$ac_cv_search_syslog
19618 if test "$ac_res" != no; then :
19619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19622 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
19629 if test -n "$alpine_with_local_maildir" ; then
19630 alpine_local_maildir=$alpine_with_local_maildir
19631 elif test -d /var/spool/mail ; then
19632 alpine_local_maildir="/var/spool/mail"
19633 elif test -d /var/mail ; then
19634 alpine_local_maildir="/var/mail"
19635 else
19636 alpine_local_maildir="/usr/spool/mail"
19639 if test -n "$alpine_with_c_client_target" ; then
19640 alpine_c_client_target=$alpine_with_c_client_target
19644 cat >>confdefs.h <<_ACEOF
19645 #define SYSTYPE "$systype"
19646 _ACEOF
19649 cat >>confdefs.h <<_ACEOF
19650 #define C_FILESEP '$alpine_path_delim'
19651 _ACEOF
19654 cat >>confdefs.h <<_ACEOF
19655 #define S_FILESEP "$alpine_path_delim"
19656 _ACEOF
19659 cat >>confdefs.h <<_ACEOF
19660 #define MAILDIR "$alpine_local_maildir"
19661 _ACEOF
19664 cat >>confdefs.h <<_ACEOF
19665 #define MODE_READONLY $alpine_mode_readonly
19666 _ACEOF
19669 C_CLIENT_TARGET=$alpine_c_client_target
19671 C_CLIENT_WITH_IPV6=$c_client_ip6
19673 if test "x$alpine_SSLTYPE" = "xnone" ; then
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
19675 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
19676 c_client_specials="${c_client_specials}SSLTYPE=none "
19677 else
19679 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
19680 certdir="$alpine_SSLCERTS"
19681 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
19682 certdir="${alpine_SSLDIR}/certs"
19683 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
19684 certdir="${alpine_SSLDIR}/ssl/certs"
19685 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
19686 certdir="$alpine_SSLCERTS_ORIG"
19687 else
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
19689 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
19692 if test "x$with_smime" != "xno" ; then
19693 if test -n "$certdir" ; then
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
19695 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
19697 $as_echo "#define SMIME /**/" >>confdefs.h
19700 cat >>confdefs.h <<_ACEOF
19701 #define SMIME_SSLCERTS "$certdir"
19702 _ACEOF
19707 if test ! -f ${certdir}/factory.pem ; then
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
19709 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19711 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19713 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19715 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19718 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
19720 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19722 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19724 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19726 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19729 if test -n "$alpine_SSLINCLUDE" ; then
19730 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
19733 if test -n "$alpine_SSLLIB" ; then
19734 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
19737 if test -n "$alpine_SSLDIR" ; then
19738 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
19741 if test -n "$certdir" ; then
19742 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
19745 if test -n "$alpine_SSLKEYS" ; then
19746 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
19750 if test "x$alpine_GSSTYPE" != "xnone" ; then
19751 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
19753 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
19756 if test -n "$CPPFLAGS" ; then
19757 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
19759 if test -n "$CFLAGS" ; then
19760 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
19763 if test -n "$alpine_c_client_cflags" ; then
19764 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
19768 if test -n "$LDFLAGS" ; then
19769 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
19771 if test -n "$LIBS" ; then
19772 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
19775 if test -n "$alpine_c_client_ldflags" ; then
19776 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
19780 if test -n "$alpine_c_client_gccoptlevel" ; then
19781 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
19785 C_CLIENT_SPECIALS=$c_client_specials
19788 if test -z "$WEB_BUILD" ; then
19789 WEB_PUBCOOKIE_BUILD=
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
19791 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
19793 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
19794 else
19795 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
19796 if test "x$alpine_GSSTYPE" = "xnone" ; then
19797 WEB_PUBCOOKIE_BUILD=
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
19799 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
19801 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
19802 elif test -z "$WEB_BINDIR" ; then
19803 WEB_PUBCOOKIE_BUILD=
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
19805 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
19806 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
19807 Please re-run configure with these options:
19808 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
19809 else
19811 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
19813 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
19814 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
19830 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"
19832 cat >confcache <<\_ACEOF
19833 # This file is a shell script that caches the results of configure
19834 # tests run on this system so they can be shared between configure
19835 # scripts and configure runs, see configure's option --config-cache.
19836 # It is not useful on other systems. If it contains results you don't
19837 # want to keep, you may remove or edit it.
19839 # config.status only pays attention to the cache file if you give it
19840 # the --recheck option to rerun configure.
19842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19844 # following values.
19846 _ACEOF
19848 # The following way of writing the cache mishandles newlines in values,
19849 # but we know of no workaround that is simple, portable, and efficient.
19850 # So, we kill variables containing newlines.
19851 # Ultrix sh set writes to stderr and can't be redirected directly,
19852 # and sets the high bit in the cache file unless we assign to the vars.
19854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19855 eval ac_val=\$$ac_var
19856 case $ac_val in #(
19857 *${as_nl}*)
19858 case $ac_var in #(
19859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19861 esac
19862 case $ac_var in #(
19863 _ | IFS | as_nl) ;; #(
19864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19865 *) { eval $ac_var=; unset $ac_var;} ;;
19866 esac ;;
19867 esac
19868 done
19870 (set) 2>&1 |
19871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19872 *${as_nl}ac_space=\ *)
19873 # `set' does not quote correctly, so add quotes: double-quote
19874 # substitution turns \\\\ into \\, and sed turns \\ into \.
19875 sed -n \
19876 "s/'/'\\\\''/g;
19877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19878 ;; #(
19880 # `set' quotes correctly as required by POSIX, so do not add quotes.
19881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19883 esac |
19884 sort
19886 sed '
19887 /^ac_cv_env_/b end
19888 t clear
19889 :clear
19890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19891 t end
19892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19893 :end' >>confcache
19894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19895 if test -w "$cache_file"; then
19896 if test "x$cache_file" != "x/dev/null"; then
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19898 $as_echo "$as_me: updating cache $cache_file" >&6;}
19899 if test ! -f "$cache_file" || test -h "$cache_file"; then
19900 cat confcache >"$cache_file"
19901 else
19902 case $cache_file in #(
19903 */* | ?:*)
19904 mv -f confcache "$cache_file"$$ &&
19905 mv -f "$cache_file"$$ "$cache_file" ;; #(
19907 mv -f confcache "$cache_file" ;;
19908 esac
19911 else
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19916 rm -f confcache
19918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19919 # Let make expand exec_prefix.
19920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19922 DEFS=-DHAVE_CONFIG_H
19924 ac_libobjs=
19925 ac_ltlibobjs=
19927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19928 # 1. Remove the extension, and $U if already installed.
19929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19932 # will be set to the directory where LIBOBJS objects are built.
19933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19935 done
19936 LIBOBJS=$ac_libobjs
19938 LTLIBOBJS=$ac_ltlibobjs
19941 if test -n "$EXEEXT"; then
19942 am__EXEEXT_TRUE=
19943 am__EXEEXT_FALSE='#'
19944 else
19945 am__EXEEXT_TRUE='#'
19946 am__EXEEXT_FALSE=
19949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19954 as_fn_error $? "conditional \"AMDEP\" was never defined.
19955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19958 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19962 : "${CONFIG_STATUS=./config.status}"
19963 ac_write_fail=0
19964 ac_clean_files_save=$ac_clean_files
19965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19967 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19968 as_write_fail=0
19969 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19970 #! $SHELL
19971 # Generated by $as_me.
19972 # Run this file to recreate the current configuration.
19973 # Compiler output produced by configure, useful for debugging
19974 # configure, is in config.log if it exists.
19976 debug=false
19977 ac_cs_recheck=false
19978 ac_cs_silent=false
19980 SHELL=\${CONFIG_SHELL-$SHELL}
19981 export SHELL
19982 _ASEOF
19983 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19984 ## -------------------- ##
19985 ## M4sh Initialization. ##
19986 ## -------------------- ##
19988 # Be more Bourne compatible
19989 DUALCASE=1; export DUALCASE # for MKS sh
19990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19991 emulate sh
19992 NULLCMD=:
19993 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19994 # is contrary to our usage. Disable this feature.
19995 alias -g '${1+"$@"}'='"$@"'
19996 setopt NO_GLOB_SUBST
19997 else
19998 case `(set -o) 2>/dev/null` in #(
19999 *posix*) :
20000 set -o posix ;; #(
20001 *) :
20003 esac
20007 as_nl='
20009 export as_nl
20010 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20011 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20014 # Prefer a ksh shell builtin over an external printf program on Solaris,
20015 # but without wasting forks for bash or zsh.
20016 if test -z "$BASH_VERSION$ZSH_VERSION" \
20017 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20018 as_echo='print -r --'
20019 as_echo_n='print -rn --'
20020 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20021 as_echo='printf %s\n'
20022 as_echo_n='printf %s'
20023 else
20024 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20025 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20026 as_echo_n='/usr/ucb/echo -n'
20027 else
20028 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20029 as_echo_n_body='eval
20030 arg=$1;
20031 case $arg in #(
20032 *"$as_nl"*)
20033 expr "X$arg" : "X\\(.*\\)$as_nl";
20034 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20035 esac;
20036 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20038 export as_echo_n_body
20039 as_echo_n='sh -c $as_echo_n_body as_echo'
20041 export as_echo_body
20042 as_echo='sh -c $as_echo_body as_echo'
20045 # The user is always right.
20046 if test "${PATH_SEPARATOR+set}" != set; then
20047 PATH_SEPARATOR=:
20048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20049 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20050 PATH_SEPARATOR=';'
20055 # IFS
20056 # We need space, tab and new line, in precisely that order. Quoting is
20057 # there to prevent editors from complaining about space-tab.
20058 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20059 # splitting by setting IFS to empty value.)
20060 IFS=" "" $as_nl"
20062 # Find who we are. Look in the path if we contain no directory separator.
20063 as_myself=
20064 case $0 in #((
20065 *[\\/]* ) as_myself=$0 ;;
20066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20067 for as_dir in $PATH
20069 IFS=$as_save_IFS
20070 test -z "$as_dir" && as_dir=.
20071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20072 done
20073 IFS=$as_save_IFS
20076 esac
20077 # We did not find ourselves, most probably we were run as `sh COMMAND'
20078 # in which case we are not to be found in the path.
20079 if test "x$as_myself" = x; then
20080 as_myself=$0
20082 if test ! -f "$as_myself"; then
20083 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20084 exit 1
20087 # Unset variables that we do not need and which cause bugs (e.g. in
20088 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20089 # suppresses any "Segmentation fault" message there. '((' could
20090 # trigger a bug in pdksh 5.2.14.
20091 for as_var in BASH_ENV ENV MAIL MAILPATH
20092 do eval test x\${$as_var+set} = xset \
20093 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20094 done
20095 PS1='$ '
20096 PS2='> '
20097 PS4='+ '
20099 # NLS nuisances.
20100 LC_ALL=C
20101 export LC_ALL
20102 LANGUAGE=C
20103 export LANGUAGE
20105 # CDPATH.
20106 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20109 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20110 # ----------------------------------------
20111 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20112 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20113 # script with STATUS, using 1 if that was 0.
20114 as_fn_error ()
20116 as_status=$1; test $as_status -eq 0 && as_status=1
20117 if test "$4"; then
20118 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20119 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20121 $as_echo "$as_me: error: $2" >&2
20122 as_fn_exit $as_status
20123 } # as_fn_error
20126 # as_fn_set_status STATUS
20127 # -----------------------
20128 # Set $? to STATUS, without forking.
20129 as_fn_set_status ()
20131 return $1
20132 } # as_fn_set_status
20134 # as_fn_exit STATUS
20135 # -----------------
20136 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20137 as_fn_exit ()
20139 set +e
20140 as_fn_set_status $1
20141 exit $1
20142 } # as_fn_exit
20144 # as_fn_unset VAR
20145 # ---------------
20146 # Portably unset VAR.
20147 as_fn_unset ()
20149 { eval $1=; unset $1;}
20151 as_unset=as_fn_unset
20152 # as_fn_append VAR VALUE
20153 # ----------------------
20154 # Append the text in VALUE to the end of the definition contained in VAR. Take
20155 # advantage of any shell optimizations that allow amortized linear growth over
20156 # repeated appends, instead of the typical quadratic growth present in naive
20157 # implementations.
20158 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20159 eval 'as_fn_append ()
20161 eval $1+=\$2
20163 else
20164 as_fn_append ()
20166 eval $1=\$$1\$2
20168 fi # as_fn_append
20170 # as_fn_arith ARG...
20171 # ------------------
20172 # Perform arithmetic evaluation on the ARGs, and store the result in the
20173 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20174 # must be portable across $(()) and expr.
20175 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20176 eval 'as_fn_arith ()
20178 as_val=$(( $* ))
20180 else
20181 as_fn_arith ()
20183 as_val=`expr "$@" || test $? -eq 1`
20185 fi # as_fn_arith
20188 if expr a : '\(a\)' >/dev/null 2>&1 &&
20189 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20190 as_expr=expr
20191 else
20192 as_expr=false
20195 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20196 as_basename=basename
20197 else
20198 as_basename=false
20201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20202 as_dirname=dirname
20203 else
20204 as_dirname=false
20207 as_me=`$as_basename -- "$0" ||
20208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20209 X"$0" : 'X\(//\)$' \| \
20210 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20211 $as_echo X/"$0" |
20212 sed '/^.*\/\([^/][^/]*\)\/*$/{
20213 s//\1/
20216 /^X\/\(\/\/\)$/{
20217 s//\1/
20220 /^X\/\(\/\).*/{
20221 s//\1/
20224 s/.*/./; q'`
20226 # Avoid depending upon Character Ranges.
20227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20230 as_cr_digits='0123456789'
20231 as_cr_alnum=$as_cr_Letters$as_cr_digits
20233 ECHO_C= ECHO_N= ECHO_T=
20234 case `echo -n x` in #(((((
20235 -n*)
20236 case `echo 'xy\c'` in
20237 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20238 xy) ECHO_C='\c';;
20239 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20240 ECHO_T=' ';;
20241 esac;;
20243 ECHO_N='-n';;
20244 esac
20246 rm -f conf$$ conf$$.exe conf$$.file
20247 if test -d conf$$.dir; then
20248 rm -f conf$$.dir/conf$$.file
20249 else
20250 rm -f conf$$.dir
20251 mkdir conf$$.dir 2>/dev/null
20253 if (echo >conf$$.file) 2>/dev/null; then
20254 if ln -s conf$$.file conf$$ 2>/dev/null; then
20255 as_ln_s='ln -s'
20256 # ... but there are two gotchas:
20257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20259 # In both cases, we have to default to `cp -pR'.
20260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20261 as_ln_s='cp -pR'
20262 elif ln conf$$.file conf$$ 2>/dev/null; then
20263 as_ln_s=ln
20264 else
20265 as_ln_s='cp -pR'
20267 else
20268 as_ln_s='cp -pR'
20270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20271 rmdir conf$$.dir 2>/dev/null
20274 # as_fn_mkdir_p
20275 # -------------
20276 # Create "$as_dir" as a directory, including parents if necessary.
20277 as_fn_mkdir_p ()
20280 case $as_dir in #(
20281 -*) as_dir=./$as_dir;;
20282 esac
20283 test -d "$as_dir" || eval $as_mkdir_p || {
20284 as_dirs=
20285 while :; do
20286 case $as_dir in #(
20287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20288 *) as_qdir=$as_dir;;
20289 esac
20290 as_dirs="'$as_qdir' $as_dirs"
20291 as_dir=`$as_dirname -- "$as_dir" ||
20292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20293 X"$as_dir" : 'X\(//\)[^/]' \| \
20294 X"$as_dir" : 'X\(//\)$' \| \
20295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20296 $as_echo X"$as_dir" |
20297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20298 s//\1/
20301 /^X\(\/\/\)[^/].*/{
20302 s//\1/
20305 /^X\(\/\/\)$/{
20306 s//\1/
20309 /^X\(\/\).*/{
20310 s//\1/
20313 s/.*/./; q'`
20314 test -d "$as_dir" && break
20315 done
20316 test -z "$as_dirs" || eval "mkdir $as_dirs"
20317 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20320 } # as_fn_mkdir_p
20321 if mkdir -p . 2>/dev/null; then
20322 as_mkdir_p='mkdir -p "$as_dir"'
20323 else
20324 test -d ./-p && rmdir ./-p
20325 as_mkdir_p=false
20329 # as_fn_executable_p FILE
20330 # -----------------------
20331 # Test if FILE is an executable regular file.
20332 as_fn_executable_p ()
20334 test -f "$1" && test -x "$1"
20335 } # as_fn_executable_p
20336 as_test_x='test -x'
20337 as_executable_p=as_fn_executable_p
20339 # Sed expression to map a string onto a valid CPP name.
20340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20342 # Sed expression to map a string onto a valid variable name.
20343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20346 exec 6>&1
20347 ## ----------------------------------- ##
20348 ## Main body of $CONFIG_STATUS script. ##
20349 ## ----------------------------------- ##
20350 _ASEOF
20351 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20354 # Save the log message, to keep $0 and so on meaningful, and to
20355 # report actual input values of CONFIG_FILES etc. instead of their
20356 # values after options handling.
20357 ac_log="
20358 This file was extended by alpine $as_me 2.19.999, which was
20359 generated by GNU Autoconf 2.69. Invocation command line was
20361 CONFIG_FILES = $CONFIG_FILES
20362 CONFIG_HEADERS = $CONFIG_HEADERS
20363 CONFIG_LINKS = $CONFIG_LINKS
20364 CONFIG_COMMANDS = $CONFIG_COMMANDS
20365 $ $0 $@
20367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20370 _ACEOF
20372 case $ac_config_files in *"
20373 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20374 esac
20376 case $ac_config_headers in *"
20377 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20378 esac
20381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20382 # Files that config.status was made for.
20383 config_files="$ac_config_files"
20384 config_headers="$ac_config_headers"
20385 config_commands="$ac_config_commands"
20387 _ACEOF
20389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20390 ac_cs_usage="\
20391 \`$as_me' instantiates files and other configuration actions
20392 from templates according to the current configuration. Unless the files
20393 and actions are specified as TAGs, all are instantiated by default.
20395 Usage: $0 [OPTION]... [TAG]...
20397 -h, --help print this help, then exit
20398 -V, --version print version number and configuration settings, then exit
20399 --config print configuration, then exit
20400 -q, --quiet, --silent
20401 do not print progress messages
20402 -d, --debug don't remove temporary files
20403 --recheck update $as_me by reconfiguring in the same conditions
20404 --file=FILE[:TEMPLATE]
20405 instantiate the configuration file FILE
20406 --header=FILE[:TEMPLATE]
20407 instantiate the configuration header FILE
20409 Configuration files:
20410 $config_files
20412 Configuration headers:
20413 $config_headers
20415 Configuration commands:
20416 $config_commands
20418 Report bugs to <chappa@washington.edu>."
20420 _ACEOF
20421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20422 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20423 ac_cs_version="\\
20424 alpine config.status 2.19.999
20425 configured by $0, generated by GNU Autoconf 2.69,
20426 with options \\"\$ac_cs_config\\"
20428 Copyright (C) 2012 Free Software Foundation, Inc.
20429 This config.status script is free software; the Free Software Foundation
20430 gives unlimited permission to copy, distribute and modify it."
20432 ac_pwd='$ac_pwd'
20433 srcdir='$srcdir'
20434 INSTALL='$INSTALL'
20435 MKDIR_P='$MKDIR_P'
20436 AWK='$AWK'
20437 test -n "\$AWK" || AWK=awk
20438 _ACEOF
20440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20441 # The default lists apply if the user does not specify any file.
20442 ac_need_defaults=:
20443 while test $# != 0
20445 case $1 in
20446 --*=?*)
20447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20448 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20449 ac_shift=:
20451 --*=)
20452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20453 ac_optarg=
20454 ac_shift=:
20457 ac_option=$1
20458 ac_optarg=$2
20459 ac_shift=shift
20461 esac
20463 case $ac_option in
20464 # Handling of the options.
20465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20466 ac_cs_recheck=: ;;
20467 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20468 $as_echo "$ac_cs_version"; exit ;;
20469 --config | --confi | --conf | --con | --co | --c )
20470 $as_echo "$ac_cs_config"; exit ;;
20471 --debug | --debu | --deb | --de | --d | -d )
20472 debug=: ;;
20473 --file | --fil | --fi | --f )
20474 $ac_shift
20475 case $ac_optarg in
20476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20477 '') as_fn_error $? "missing file argument" ;;
20478 esac
20479 as_fn_append CONFIG_FILES " '$ac_optarg'"
20480 ac_need_defaults=false;;
20481 --header | --heade | --head | --hea )
20482 $ac_shift
20483 case $ac_optarg in
20484 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20485 esac
20486 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20487 ac_need_defaults=false;;
20488 --he | --h)
20489 # Conflict between --help and --header
20490 as_fn_error $? "ambiguous option: \`$1'
20491 Try \`$0 --help' for more information.";;
20492 --help | --hel | -h )
20493 $as_echo "$ac_cs_usage"; exit ;;
20494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20496 ac_cs_silent=: ;;
20498 # This is an error.
20499 -*) as_fn_error $? "unrecognized option: \`$1'
20500 Try \`$0 --help' for more information." ;;
20502 *) as_fn_append ac_config_targets " $1"
20503 ac_need_defaults=false ;;
20505 esac
20506 shift
20507 done
20509 ac_configure_extra_args=
20511 if $ac_cs_silent; then
20512 exec 6>/dev/null
20513 ac_configure_extra_args="$ac_configure_extra_args --silent"
20516 _ACEOF
20517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20518 if \$ac_cs_recheck; then
20519 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20520 shift
20521 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20522 CONFIG_SHELL='$SHELL'
20523 export CONFIG_SHELL
20524 exec "\$@"
20527 _ACEOF
20528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20529 exec 5>>config.log
20531 echo
20532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20533 ## Running $as_me. ##
20534 _ASBOX
20535 $as_echo "$ac_log"
20536 } >&5
20538 _ACEOF
20539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20541 # INIT-COMMANDS
20543 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20546 # The HP-UX ksh and POSIX shell print the target directory to stdout
20547 # if CDPATH is set.
20548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20550 sed_quote_subst='$sed_quote_subst'
20551 double_quote_subst='$double_quote_subst'
20552 delay_variable_subst='$delay_variable_subst'
20553 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20554 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20555 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20556 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20557 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20558 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20559 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20560 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20561 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20562 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20563 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20564 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20565 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20566 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20567 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20568 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20569 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20570 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20571 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20572 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20573 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20574 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20575 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20576 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20577 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20578 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20579 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20580 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20581 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20582 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20583 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20584 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20585 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20586 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20587 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20588 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20589 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20590 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20591 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20592 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20593 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20594 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20595 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20596 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20597 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"`'
20598 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"`'
20599 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20600 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20601 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20602 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20603 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20604 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20605 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20606 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20607 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20608 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20609 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20610 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20611 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20612 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20613 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20614 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20615 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20616 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20617 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20618 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20619 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20620 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20621 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20622 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20623 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20624 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20625 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20626 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20627 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20628 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20629 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20630 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20631 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20632 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20633 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20634 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20635 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20636 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20637 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20638 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20639 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20640 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20641 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20642 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20643 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20644 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20645 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20646 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20647 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20648 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20649 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20650 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20651 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20652 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20653 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20654 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20655 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20656 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20657 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20658 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20659 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20660 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20661 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20662 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20663 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20664 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20665 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20666 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20667 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20668 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20669 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20670 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20672 LTCC='$LTCC'
20673 LTCFLAGS='$LTCFLAGS'
20674 compiler='$compiler_DEFAULT'
20676 # Quote evaled strings.
20677 for var in SED \
20678 GREP \
20679 EGREP \
20680 FGREP \
20681 LD \
20682 NM \
20683 LN_S \
20684 lt_SP2NL \
20685 lt_NL2SP \
20686 reload_flag \
20687 OBJDUMP \
20688 deplibs_check_method \
20689 file_magic_cmd \
20690 AR \
20691 AR_FLAGS \
20692 STRIP \
20693 RANLIB \
20694 CC \
20695 CFLAGS \
20696 compiler \
20697 lt_cv_sys_global_symbol_pipe \
20698 lt_cv_sys_global_symbol_to_cdecl \
20699 lt_cv_sys_global_symbol_to_c_name_address \
20700 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20701 SHELL \
20702 ECHO \
20703 lt_prog_compiler_no_builtin_flag \
20704 lt_prog_compiler_wl \
20705 lt_prog_compiler_pic \
20706 lt_prog_compiler_static \
20707 lt_cv_prog_compiler_c_o \
20708 need_locks \
20709 DSYMUTIL \
20710 NMEDIT \
20711 LIPO \
20712 OTOOL \
20713 OTOOL64 \
20714 shrext_cmds \
20715 export_dynamic_flag_spec \
20716 whole_archive_flag_spec \
20717 compiler_needs_object \
20718 with_gnu_ld \
20719 allow_undefined_flag \
20720 no_undefined_flag \
20721 hardcode_libdir_flag_spec \
20722 hardcode_libdir_flag_spec_ld \
20723 hardcode_libdir_separator \
20724 fix_srcfile_path \
20725 exclude_expsyms \
20726 include_expsyms \
20727 file_list_spec \
20728 variables_saved_for_relink \
20729 libname_spec \
20730 library_names_spec \
20731 soname_spec \
20732 finish_eval \
20733 old_striplib \
20734 striplib; do
20735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20736 *[\\\\\\\`\\"\\\$]*)
20737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20742 esac
20743 done
20745 # Double-quote double-evaled strings.
20746 for var in reload_cmds \
20747 old_postinstall_cmds \
20748 old_postuninstall_cmds \
20749 old_archive_cmds \
20750 extract_expsyms_cmds \
20751 old_archive_from_new_cmds \
20752 old_archive_from_expsyms_cmds \
20753 archive_cmds \
20754 archive_expsym_cmds \
20755 module_cmds \
20756 module_expsym_cmds \
20757 export_symbols_cmds \
20758 prelink_cmds \
20759 postinstall_cmds \
20760 postuninstall_cmds \
20761 finish_cmds \
20762 sys_lib_search_path_spec \
20763 sys_lib_dlsearch_path_spec; do
20764 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20765 *[\\\\\\\`\\"\\\$]*)
20766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20771 esac
20772 done
20774 # Fix-up fallback echo if it was mangled by the above quoting rules.
20775 case \$lt_ECHO in
20776 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20778 esac
20780 ac_aux_dir='$ac_aux_dir'
20781 xsi_shell='$xsi_shell'
20782 lt_shell_append='$lt_shell_append'
20784 # See if we are running on zsh, and set the options which allow our
20785 # commands through without removal of \ escapes INIT.
20786 if test -n "\${ZSH_VERSION+set}" ; then
20787 setopt NO_GLOB_SUBST
20791 PACKAGE='$PACKAGE'
20792 VERSION='$VERSION'
20793 TIMESTAMP='$TIMESTAMP'
20794 RM='$RM'
20795 ofile='$ofile'
20799 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20800 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20801 # from automake < 1.5.
20802 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20803 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20804 LINGUAS="${LINGUAS-%UNSET%}"
20807 _ACEOF
20809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20811 # Handling of arguments.
20812 for ac_config_target in $ac_config_targets
20814 case $ac_config_target in
20815 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20817 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20818 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20819 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20820 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20821 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
20822 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
20823 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
20824 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
20825 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
20826 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
20827 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
20828 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
20829 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
20830 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
20831 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
20832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20834 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20835 esac
20836 done
20839 # If the user did not use the arguments to specify the items to instantiate,
20840 # then the envvar interface is used. Set only those that are not.
20841 # We use the long form for the default assignment because of an extremely
20842 # bizarre bug on SunOS 4.1.3.
20843 if $ac_need_defaults; then
20844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20849 # Have a temporary directory for convenience. Make it in the build tree
20850 # simply because there is no reason against having it here, and in addition,
20851 # creating and moving files from /tmp can sometimes cause problems.
20852 # Hook for its removal unless debugging.
20853 # Note that there is a small window in which the directory will not be cleaned:
20854 # after its creation but before its name has been assigned to `$tmp'.
20855 $debug ||
20857 tmp= ac_tmp=
20858 trap 'exit_status=$?
20859 : "${ac_tmp:=$tmp}"
20860 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20862 trap 'as_fn_exit 1' 1 2 13 15
20864 # Create a (secure) tmp directory for tmp files.
20867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20868 test -d "$tmp"
20869 } ||
20871 tmp=./conf$$-$RANDOM
20872 (umask 077 && mkdir "$tmp")
20873 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20874 ac_tmp=$tmp
20876 # Set up the scripts for CONFIG_FILES section.
20877 # No need to generate them if there are no CONFIG_FILES.
20878 # This happens for instance with `./config.status config.h'.
20879 if test -n "$CONFIG_FILES"; then
20882 ac_cr=`echo X | tr X '\015'`
20883 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20884 # But we know of no other shell where ac_cr would be empty at this
20885 # point, so we can use a bashism as a fallback.
20886 if test "x$ac_cr" = x; then
20887 eval ac_cr=\$\'\\r\'
20889 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20890 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20891 ac_cs_awk_cr='\\r'
20892 else
20893 ac_cs_awk_cr=$ac_cr
20896 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20897 _ACEOF
20901 echo "cat >conf$$subs.awk <<_ACEOF" &&
20902 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20903 echo "_ACEOF"
20904 } >conf$$subs.sh ||
20905 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20906 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20907 ac_delim='%!_!# '
20908 for ac_last_try in false false false false false :; do
20909 . ./conf$$subs.sh ||
20910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20912 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20913 if test $ac_delim_n = $ac_delim_num; then
20914 break
20915 elif $ac_last_try; then
20916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20917 else
20918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20920 done
20921 rm -f conf$$subs.sh
20923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20924 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20925 _ACEOF
20926 sed -n '
20928 s/^/S["/; s/!.*/"]=/
20931 s/^[^!]*!//
20932 :repl
20933 t repl
20934 s/'"$ac_delim"'$//
20935 t delim
20938 s/\(.\{148\}\)..*/\1/
20939 t more1
20940 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20943 b repl
20944 :more1
20945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20948 s/.\{148\}//
20949 t nl
20950 :delim
20952 s/\(.\{148\}\)..*/\1/
20953 t more2
20954 s/["\\]/\\&/g; s/^/"/; s/$/"/
20957 :more2
20958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20961 s/.\{148\}//
20962 t delim
20963 ' <conf$$subs.awk | sed '
20964 /^[^""]/{
20966 s/\n//
20968 ' >>$CONFIG_STATUS || ac_write_fail=1
20969 rm -f conf$$subs.awk
20970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20971 _ACAWK
20972 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20973 for (key in S) S_is_set[key] = 1
20974 FS = "\a"
20978 line = $ 0
20979 nfields = split(line, field, "@")
20980 substed = 0
20981 len = length(field[1])
20982 for (i = 2; i < nfields; i++) {
20983 key = field[i]
20984 keylen = length(key)
20985 if (S_is_set[key]) {
20986 value = S[key]
20987 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20988 len += length(value) + length(field[++i])
20989 substed = 1
20990 } else
20991 len += 1 + keylen
20994 print line
20997 _ACAWK
20998 _ACEOF
20999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21000 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21001 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21002 else
21004 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21005 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21006 _ACEOF
21008 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21009 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21010 # trailing colons and then remove the whole line if VPATH becomes empty
21011 # (actually we leave an empty line to preserve line numbers).
21012 if test "x$srcdir" = x.; then
21013 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21015 s///
21016 s/^/:/
21017 s/[ ]*$/:/
21018 s/:\$(srcdir):/:/g
21019 s/:\${srcdir}:/:/g
21020 s/:@srcdir@:/:/g
21021 s/^:*//
21022 s/:*$//
21024 s/\(=[ ]*\).*/\1/
21026 s/\n//
21027 s/^[^=]*=[ ]*$//
21031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21032 fi # test -n "$CONFIG_FILES"
21034 # Set up the scripts for CONFIG_HEADERS section.
21035 # No need to generate them if there are no CONFIG_HEADERS.
21036 # This happens for instance with `./config.status Makefile'.
21037 if test -n "$CONFIG_HEADERS"; then
21038 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21039 BEGIN {
21040 _ACEOF
21042 # Transform confdefs.h into an awk script `defines.awk', embedded as
21043 # here-document in config.status, that substitutes the proper values into
21044 # config.h.in to produce config.h.
21046 # Create a delimiter string that does not exist in confdefs.h, to ease
21047 # handling of long lines.
21048 ac_delim='%!_!# '
21049 for ac_last_try in false false :; do
21050 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21051 if test -z "$ac_tt"; then
21052 break
21053 elif $ac_last_try; then
21054 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21055 else
21056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21058 done
21060 # For the awk script, D is an array of macro values keyed by name,
21061 # likewise P contains macro parameters if any. Preserve backslash
21062 # newline sequences.
21064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21065 sed -n '
21066 s/.\{148\}/&'"$ac_delim"'/g
21067 t rset
21068 :rset
21069 s/^[ ]*#[ ]*define[ ][ ]*/ /
21070 t def
21072 :def
21073 s/\\$//
21074 t bsnl
21075 s/["\\]/\\&/g
21076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21077 D["\1"]=" \3"/p
21078 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21080 :bsnl
21081 s/["\\]/\\&/g
21082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21083 D["\1"]=" \3\\\\\\n"\\/p
21084 t cont
21085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21086 t cont
21088 :cont
21090 s/.\{148\}/&'"$ac_delim"'/g
21091 t clear
21092 :clear
21093 s/\\$//
21094 t bsnlc
21095 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21097 :bsnlc
21098 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21099 b cont
21100 ' <confdefs.h | sed '
21101 s/'"$ac_delim"'/"\\\
21102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21105 for (key in D) D_is_set[key] = 1
21106 FS = "\a"
21108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21109 line = \$ 0
21110 split(line, arg, " ")
21111 if (arg[1] == "#") {
21112 defundef = arg[2]
21113 mac1 = arg[3]
21114 } else {
21115 defundef = substr(arg[1], 2)
21116 mac1 = arg[2]
21118 split(mac1, mac2, "(") #)
21119 macro = mac2[1]
21120 prefix = substr(line, 1, index(line, defundef) - 1)
21121 if (D_is_set[macro]) {
21122 # Preserve the white space surrounding the "#".
21123 print prefix "define", macro P[macro] D[macro]
21124 next
21125 } else {
21126 # Replace #undef with comments. This is necessary, for example,
21127 # in the case of _POSIX_SOURCE, which is predefined and required
21128 # on some systems where configure will not decide to define it.
21129 if (defundef == "undef") {
21130 print "/*", prefix defundef, macro, "*/"
21131 next
21135 { print }
21136 _ACAWK
21137 _ACEOF
21138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21139 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21140 fi # test -n "$CONFIG_HEADERS"
21143 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21144 shift
21145 for ac_tag
21147 case $ac_tag in
21148 :[FHLC]) ac_mode=$ac_tag; continue;;
21149 esac
21150 case $ac_mode$ac_tag in
21151 :[FHL]*:*);;
21152 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21153 :[FH]-) ac_tag=-:-;;
21154 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21155 esac
21156 ac_save_IFS=$IFS
21157 IFS=:
21158 set x $ac_tag
21159 IFS=$ac_save_IFS
21160 shift
21161 ac_file=$1
21162 shift
21164 case $ac_mode in
21165 :L) ac_source=$1;;
21166 :[FH])
21167 ac_file_inputs=
21168 for ac_f
21170 case $ac_f in
21171 -) ac_f="$ac_tmp/stdin";;
21172 *) # Look for the file first in the build tree, then in the source tree
21173 # (if the path is not absolute). The absolute path cannot be DOS-style,
21174 # because $ac_f cannot contain `:'.
21175 test -f "$ac_f" ||
21176 case $ac_f in
21177 [\\/$]*) false;;
21178 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21179 esac ||
21180 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21181 esac
21182 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21183 as_fn_append ac_file_inputs " '$ac_f'"
21184 done
21186 # Let's still pretend it is `configure' which instantiates (i.e., don't
21187 # use $as_me), people would be surprised to read:
21188 # /* config.h. Generated by config.status. */
21189 configure_input='Generated from '`
21190 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21191 `' by configure.'
21192 if test x"$ac_file" != x-; then
21193 configure_input="$ac_file. $configure_input"
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21195 $as_echo "$as_me: creating $ac_file" >&6;}
21197 # Neutralize special characters interpreted by sed in replacement strings.
21198 case $configure_input in #(
21199 *\&* | *\|* | *\\* )
21200 ac_sed_conf_input=`$as_echo "$configure_input" |
21201 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21202 *) ac_sed_conf_input=$configure_input;;
21203 esac
21205 case $ac_tag in
21206 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21208 esac
21210 esac
21212 ac_dir=`$as_dirname -- "$ac_file" ||
21213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21214 X"$ac_file" : 'X\(//\)[^/]' \| \
21215 X"$ac_file" : 'X\(//\)$' \| \
21216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21217 $as_echo X"$ac_file" |
21218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21219 s//\1/
21222 /^X\(\/\/\)[^/].*/{
21223 s//\1/
21226 /^X\(\/\/\)$/{
21227 s//\1/
21230 /^X\(\/\).*/{
21231 s//\1/
21234 s/.*/./; q'`
21235 as_dir="$ac_dir"; as_fn_mkdir_p
21236 ac_builddir=.
21238 case "$ac_dir" in
21239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21241 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21242 # A ".." for each directory in $ac_dir_suffix.
21243 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21244 case $ac_top_builddir_sub in
21245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21247 esac ;;
21248 esac
21249 ac_abs_top_builddir=$ac_pwd
21250 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21251 # for backward compatibility:
21252 ac_top_builddir=$ac_top_build_prefix
21254 case $srcdir in
21255 .) # We are building in place.
21256 ac_srcdir=.
21257 ac_top_srcdir=$ac_top_builddir_sub
21258 ac_abs_top_srcdir=$ac_pwd ;;
21259 [\\/]* | ?:[\\/]* ) # Absolute name.
21260 ac_srcdir=$srcdir$ac_dir_suffix;
21261 ac_top_srcdir=$srcdir
21262 ac_abs_top_srcdir=$srcdir ;;
21263 *) # Relative name.
21264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21265 ac_top_srcdir=$ac_top_build_prefix$srcdir
21266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21267 esac
21268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21271 case $ac_mode in
21274 # CONFIG_FILE
21277 case $INSTALL in
21278 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21279 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21280 esac
21281 ac_MKDIR_P=$MKDIR_P
21282 case $MKDIR_P in
21283 [\\/$]* | ?:[\\/]* ) ;;
21284 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21285 esac
21286 _ACEOF
21288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21289 # If the template does not know about datarootdir, expand it.
21290 # FIXME: This hack should be removed a few years after 2.60.
21291 ac_datarootdir_hack=; ac_datarootdir_seen=
21292 ac_sed_dataroot='
21293 /datarootdir/ {
21297 /@datadir@/p
21298 /@docdir@/p
21299 /@infodir@/p
21300 /@localedir@/p
21301 /@mandir@/p'
21302 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21303 *datarootdir*) ac_datarootdir_seen=yes;;
21304 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21306 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21307 _ACEOF
21308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21309 ac_datarootdir_hack='
21310 s&@datadir@&$datadir&g
21311 s&@docdir@&$docdir&g
21312 s&@infodir@&$infodir&g
21313 s&@localedir@&$localedir&g
21314 s&@mandir@&$mandir&g
21315 s&\\\${datarootdir}&$datarootdir&g' ;;
21316 esac
21317 _ACEOF
21319 # Neutralize VPATH when `$srcdir' = `.'.
21320 # Shell code in configure.ac might set extrasub.
21321 # FIXME: do we really want to maintain this feature?
21322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21323 ac_sed_extra="$ac_vpsub
21324 $extrasub
21325 _ACEOF
21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21329 s|@configure_input@|$ac_sed_conf_input|;t t
21330 s&@top_builddir@&$ac_top_builddir_sub&;t t
21331 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21332 s&@srcdir@&$ac_srcdir&;t t
21333 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21334 s&@top_srcdir@&$ac_top_srcdir&;t t
21335 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21336 s&@builddir@&$ac_builddir&;t t
21337 s&@abs_builddir@&$ac_abs_builddir&;t t
21338 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21339 s&@INSTALL@&$ac_INSTALL&;t t
21340 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21341 $ac_datarootdir_hack
21343 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21344 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21347 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21349 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21351 which seems to be undefined. Please make sure it is defined" >&5
21352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21353 which seems to be undefined. Please make sure it is defined" >&2;}
21355 rm -f "$ac_tmp/stdin"
21356 case $ac_file in
21357 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21358 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21359 esac \
21360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21364 # CONFIG_HEADER
21366 if test x"$ac_file" != x-; then
21368 $as_echo "/* $configure_input */" \
21369 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21370 } >"$ac_tmp/config.h" \
21371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21372 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21375 else
21376 rm -f "$ac_file"
21377 mv "$ac_tmp/config.h" "$ac_file" \
21378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21380 else
21381 $as_echo "/* $configure_input */" \
21382 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21383 || as_fn_error $? "could not create -" "$LINENO" 5
21385 # Compute "$ac_file"'s index in $config_headers.
21386 _am_arg="$ac_file"
21387 _am_stamp_count=1
21388 for _am_header in $config_headers :; do
21389 case $_am_header in
21390 $_am_arg | $_am_arg:* )
21391 break ;;
21393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21394 esac
21395 done
21396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21398 X"$_am_arg" : 'X\(//\)[^/]' \| \
21399 X"$_am_arg" : 'X\(//\)$' \| \
21400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21401 $as_echo X"$_am_arg" |
21402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21403 s//\1/
21406 /^X\(\/\/\)[^/].*/{
21407 s//\1/
21410 /^X\(\/\/\)$/{
21411 s//\1/
21414 /^X\(\/\).*/{
21415 s//\1/
21418 s/.*/./; q'`/stamp-h$_am_stamp_count
21421 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21422 $as_echo "$as_me: executing $ac_file commands" >&6;}
21424 esac
21427 case $ac_file$ac_mode in
21428 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21429 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21430 # are listed without --file. Let's play safe and only enable the eval
21431 # if we detect the quoting.
21432 case $CONFIG_FILES in
21433 *\'*) eval set x "$CONFIG_FILES" ;;
21434 *) set x $CONFIG_FILES ;;
21435 esac
21436 shift
21437 for mf
21439 # Strip MF so we end up with the name of the file.
21440 mf=`echo "$mf" | sed -e 's/:.*$//'`
21441 # Check whether this is an Automake generated Makefile or not.
21442 # We used to match only the files named `Makefile.in', but
21443 # some people rename them; so instead we look at the file content.
21444 # Grep'ing the first line is not enough: some people post-process
21445 # each Makefile.in and add a new line on top of each file to say so.
21446 # Grep'ing the whole file is not good either: AIX grep has a line
21447 # limit of 2048, but all sed's we know have understand at least 4000.
21448 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21449 dirpart=`$as_dirname -- "$mf" ||
21450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21451 X"$mf" : 'X\(//\)[^/]' \| \
21452 X"$mf" : 'X\(//\)$' \| \
21453 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21454 $as_echo X"$mf" |
21455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21456 s//\1/
21459 /^X\(\/\/\)[^/].*/{
21460 s//\1/
21463 /^X\(\/\/\)$/{
21464 s//\1/
21467 /^X\(\/\).*/{
21468 s//\1/
21471 s/.*/./; q'`
21472 else
21473 continue
21475 # Extract the definition of DEPDIR, am__include, and am__quote
21476 # from the Makefile without running `make'.
21477 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21478 test -z "$DEPDIR" && continue
21479 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21480 test -z "am__include" && continue
21481 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21482 # When using ansi2knr, U may be empty or an underscore; expand it
21483 U=`sed -n 's/^U = //p' < "$mf"`
21484 # Find all dependency output files, they are included files with
21485 # $(DEPDIR) in their names. We invoke sed twice because it is the
21486 # simplest approach to changing $(DEPDIR) to its actual value in the
21487 # expansion.
21488 for file in `sed -n "
21489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21491 # Make sure the directory exists.
21492 test -f "$dirpart/$file" && continue
21493 fdir=`$as_dirname -- "$file" ||
21494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495 X"$file" : 'X\(//\)[^/]' \| \
21496 X"$file" : 'X\(//\)$' \| \
21497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21498 $as_echo X"$file" |
21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21500 s//\1/
21503 /^X\(\/\/\)[^/].*/{
21504 s//\1/
21507 /^X\(\/\/\)$/{
21508 s//\1/
21511 /^X\(\/\).*/{
21512 s//\1/
21515 s/.*/./; q'`
21516 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21517 # echo "creating $dirpart/$file"
21518 echo '# dummy' > "$dirpart/$file"
21519 done
21520 done
21523 "libtool":C)
21525 # See if we are running on zsh, and set the options which allow our
21526 # commands through without removal of \ escapes.
21527 if test -n "${ZSH_VERSION+set}" ; then
21528 setopt NO_GLOB_SUBST
21531 cfgfile="${ofile}T"
21532 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21533 $RM "$cfgfile"
21535 cat <<_LT_EOF >> "$cfgfile"
21536 #! $SHELL
21538 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21539 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21543 # 2006, 2007, 2008 Free Software Foundation, Inc.
21544 # Written by Gordon Matzigkeit, 1996
21546 # This file is part of GNU Libtool.
21548 # GNU Libtool is free software; you can redistribute it and/or
21549 # modify it under the terms of the GNU General Public License as
21550 # published by the Free Software Foundation; either version 2 of
21551 # the License, or (at your option) any later version.
21553 # As a special exception to the GNU General Public License,
21554 # if you distribute this file as part of a program or library that
21555 # is built using GNU Libtool, you may include this file under the
21556 # same distribution terms that you use for the rest of that program.
21558 # GNU Libtool is distributed in the hope that it will be useful,
21559 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21561 # GNU General Public License for more details.
21563 # You should have received a copy of the GNU General Public License
21564 # along with GNU Libtool; see the file COPYING. If not, a copy
21565 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21566 # obtained by writing to the Free Software Foundation, Inc.,
21567 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21570 # The names of the tagged configurations supported by this script.
21571 available_tags=""
21573 # ### BEGIN LIBTOOL CONFIG
21575 # Which release of libtool.m4 was used?
21576 macro_version=$macro_version
21577 macro_revision=$macro_revision
21579 # Whether or not to build shared libraries.
21580 build_libtool_libs=$enable_shared
21582 # Whether or not to build static libraries.
21583 build_old_libs=$enable_static
21585 # What type of objects to build.
21586 pic_mode=$pic_mode
21588 # Whether or not to optimize for fast installation.
21589 fast_install=$enable_fast_install
21591 # The host system.
21592 host_alias=$host_alias
21593 host=$host
21594 host_os=$host_os
21596 # The build system.
21597 build_alias=$build_alias
21598 build=$build
21599 build_os=$build_os
21601 # A sed program that does not truncate output.
21602 SED=$lt_SED
21604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21605 Xsed="\$SED -e 1s/^X//"
21607 # A grep program that handles long lines.
21608 GREP=$lt_GREP
21610 # An ERE matcher.
21611 EGREP=$lt_EGREP
21613 # A literal string matcher.
21614 FGREP=$lt_FGREP
21616 # A BSD- or MS-compatible name lister.
21617 NM=$lt_NM
21619 # Whether we need soft or hard links.
21620 LN_S=$lt_LN_S
21622 # What is the maximum length of a command?
21623 max_cmd_len=$max_cmd_len
21625 # Object file suffix (normally "o").
21626 objext=$ac_objext
21628 # Executable file suffix (normally "").
21629 exeext=$exeext
21631 # whether the shell understands "unset".
21632 lt_unset=$lt_unset
21634 # turn spaces into newlines.
21635 SP2NL=$lt_lt_SP2NL
21637 # turn newlines into spaces.
21638 NL2SP=$lt_lt_NL2SP
21640 # How to create reloadable object files.
21641 reload_flag=$lt_reload_flag
21642 reload_cmds=$lt_reload_cmds
21644 # An object symbol dumper.
21645 OBJDUMP=$lt_OBJDUMP
21647 # Method to check whether dependent libraries are shared objects.
21648 deplibs_check_method=$lt_deplibs_check_method
21650 # Command to use when deplibs_check_method == "file_magic".
21651 file_magic_cmd=$lt_file_magic_cmd
21653 # The archiver.
21654 AR=$lt_AR
21655 AR_FLAGS=$lt_AR_FLAGS
21657 # A symbol stripping program.
21658 STRIP=$lt_STRIP
21660 # Commands used to install an old-style archive.
21661 RANLIB=$lt_RANLIB
21662 old_postinstall_cmds=$lt_old_postinstall_cmds
21663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21665 # A C compiler.
21666 LTCC=$lt_CC
21668 # LTCC compiler flags.
21669 LTCFLAGS=$lt_CFLAGS
21671 # Take the output of nm and produce a listing of raw symbols and C names.
21672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21674 # Transform the output of nm in a proper C declaration.
21675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21677 # Transform the output of nm in a C name address pair.
21678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21680 # Transform the output of nm in a C name address pair when lib prefix is needed.
21681 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21683 # The name of the directory that contains temporary libtool files.
21684 objdir=$objdir
21686 # Shell to use when invoking shell scripts.
21687 SHELL=$lt_SHELL
21689 # An echo program that does not interpret backslashes.
21690 ECHO=$lt_ECHO
21692 # Used to examine libraries when file_magic_cmd begins with "file".
21693 MAGIC_CMD=$MAGIC_CMD
21695 # Must we lock files when doing compilation?
21696 need_locks=$lt_need_locks
21698 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21699 DSYMUTIL=$lt_DSYMUTIL
21701 # Tool to change global to local symbols on Mac OS X.
21702 NMEDIT=$lt_NMEDIT
21704 # Tool to manipulate fat objects and archives on Mac OS X.
21705 LIPO=$lt_LIPO
21707 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21708 OTOOL=$lt_OTOOL
21710 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21711 OTOOL64=$lt_OTOOL64
21713 # Old archive suffix (normally "a").
21714 libext=$libext
21716 # Shared library suffix (normally ".so").
21717 shrext_cmds=$lt_shrext_cmds
21719 # The commands to extract the exported symbol list from a shared archive.
21720 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21722 # Variables whose values should be saved in libtool wrapper scripts and
21723 # restored at link time.
21724 variables_saved_for_relink=$lt_variables_saved_for_relink
21726 # Do we need the "lib" prefix for modules?
21727 need_lib_prefix=$need_lib_prefix
21729 # Do we need a version for libraries?
21730 need_version=$need_version
21732 # Library versioning type.
21733 version_type=$version_type
21735 # Shared library runtime path variable.
21736 runpath_var=$runpath_var
21738 # Shared library path variable.
21739 shlibpath_var=$shlibpath_var
21741 # Is shlibpath searched before the hard-coded library search path?
21742 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21744 # Format of library name prefix.
21745 libname_spec=$lt_libname_spec
21747 # List of archive names. First name is the real one, the rest are links.
21748 # The last name is the one that the linker finds with -lNAME
21749 library_names_spec=$lt_library_names_spec
21751 # The coded name of the library, if different from the real name.
21752 soname_spec=$lt_soname_spec
21754 # Command to use after installation of a shared archive.
21755 postinstall_cmds=$lt_postinstall_cmds
21757 # Command to use after uninstallation of a shared archive.
21758 postuninstall_cmds=$lt_postuninstall_cmds
21760 # Commands used to finish a libtool library installation in a directory.
21761 finish_cmds=$lt_finish_cmds
21763 # As "finish_cmds", except a single script fragment to be evaled but
21764 # not shown.
21765 finish_eval=$lt_finish_eval
21767 # Whether we should hardcode library paths into libraries.
21768 hardcode_into_libs=$hardcode_into_libs
21770 # Compile-time system search path for libraries.
21771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21773 # Run-time system search path for libraries.
21774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21776 # Whether dlopen is supported.
21777 dlopen_support=$enable_dlopen
21779 # Whether dlopen of programs is supported.
21780 dlopen_self=$enable_dlopen_self
21782 # Whether dlopen of statically linked programs is supported.
21783 dlopen_self_static=$enable_dlopen_self_static
21785 # Commands to strip libraries.
21786 old_striplib=$lt_old_striplib
21787 striplib=$lt_striplib
21790 # The linker used to build libraries.
21791 LD=$lt_LD
21793 # Commands used to build an old-style archive.
21794 old_archive_cmds=$lt_old_archive_cmds
21796 # A language specific compiler.
21797 CC=$lt_compiler
21799 # Is the compiler the GNU compiler?
21800 with_gcc=$GCC
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21805 # How to pass a linker flag through the compiler.
21806 wl=$lt_lt_prog_compiler_wl
21808 # Additional compiler flags for building library objects.
21809 pic_flag=$lt_lt_prog_compiler_pic
21811 # Compiler flag to prevent dynamic linking.
21812 link_static_flag=$lt_lt_prog_compiler_static
21814 # Does compiler simultaneously support -c and -o options?
21815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21817 # Whether or not to add -lc for building shared libraries.
21818 build_libtool_need_lc=$archive_cmds_need_lc
21820 # Whether or not to disallow shared libs when runtime libs are static.
21821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21823 # Compiler flag to allow reflexive dlopens.
21824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21826 # Compiler flag to generate shared objects directly from archives.
21827 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21829 # Whether the compiler copes with passing no objects directly.
21830 compiler_needs_object=$lt_compiler_needs_object
21832 # Create an old-style archive from a shared archive.
21833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21835 # Create a temporary old-style archive to link instead of a shared archive.
21836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21838 # Commands used to build a shared archive.
21839 archive_cmds=$lt_archive_cmds
21840 archive_expsym_cmds=$lt_archive_expsym_cmds
21842 # Commands used to build a loadable module if different from building
21843 # a shared archive.
21844 module_cmds=$lt_module_cmds
21845 module_expsym_cmds=$lt_module_expsym_cmds
21847 # Whether we are building with GNU ld or not.
21848 with_gnu_ld=$lt_with_gnu_ld
21850 # Flag that allows shared libraries with undefined symbols to be built.
21851 allow_undefined_flag=$lt_allow_undefined_flag
21853 # Flag that enforces no undefined symbols.
21854 no_undefined_flag=$lt_no_undefined_flag
21856 # Flag to hardcode \$libdir into a binary during linking.
21857 # This must work even if \$libdir does not exist
21858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21860 # If ld is used when linking, flag to hardcode \$libdir into a binary
21861 # during linking. This must work even if \$libdir does not exist.
21862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21864 # Whether we need a single "-rpath" flag with a separated argument.
21865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21868 # DIR into the resulting binary.
21869 hardcode_direct=$hardcode_direct
21871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872 # DIR into the resulting binary and the resulting library dependency is
21873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21874 # library is relocated.
21875 hardcode_direct_absolute=$hardcode_direct_absolute
21877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21878 # into the resulting binary.
21879 hardcode_minus_L=$hardcode_minus_L
21881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21882 # into the resulting binary.
21883 hardcode_shlibpath_var=$hardcode_shlibpath_var
21885 # Set to "yes" if building a shared library automatically hardcodes DIR
21886 # into the library and all subsequent libraries and executables linked
21887 # against it.
21888 hardcode_automatic=$hardcode_automatic
21890 # Set to yes if linker adds runtime paths of dependent libraries
21891 # to runtime path list.
21892 inherit_rpath=$inherit_rpath
21894 # Whether libtool must link a program against all its dependency libraries.
21895 link_all_deplibs=$link_all_deplibs
21897 # Fix the shell variable \$srcfile for the compiler.
21898 fix_srcfile_path=$lt_fix_srcfile_path
21900 # Set to "yes" if exported symbols are required.
21901 always_export_symbols=$always_export_symbols
21903 # The commands to list exported symbols.
21904 export_symbols_cmds=$lt_export_symbols_cmds
21906 # Symbols that should not be listed in the preloaded symbols.
21907 exclude_expsyms=$lt_exclude_expsyms
21909 # Symbols that must always be exported.
21910 include_expsyms=$lt_include_expsyms
21912 # Commands necessary for linking programs (against libraries) with templates.
21913 prelink_cmds=$lt_prelink_cmds
21915 # Specify filename containing input files.
21916 file_list_spec=$lt_file_list_spec
21918 # How to hardcode a shared library path into an executable.
21919 hardcode_action=$hardcode_action
21921 # ### END LIBTOOL CONFIG
21923 _LT_EOF
21925 case $host_os in
21926 aix3*)
21927 cat <<\_LT_EOF >> "$cfgfile"
21928 # AIX sometimes has problems with the GCC collect2 program. For some
21929 # reason, if we set the COLLECT_NAMES environment variable, the problems
21930 # vanish in a puff of smoke.
21931 if test "X${COLLECT_NAMES+set}" != Xset; then
21932 COLLECT_NAMES=
21933 export COLLECT_NAMES
21935 _LT_EOF
21937 esac
21940 ltmain="$ac_aux_dir/ltmain.sh"
21943 # We use sed instead of cat because bash on DJGPP gets confused if
21944 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21945 # text mode, it properly converts lines to CR/LF. This bash problem
21946 # is reportedly fixed, but why not run on old versions too?
21947 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21948 || (rm -f "$cfgfile"; exit 1)
21950 case $xsi_shell in
21951 yes)
21952 cat << \_LT_EOF >> "$cfgfile"
21954 # func_dirname file append nondir_replacement
21955 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21956 # otherwise set result to NONDIR_REPLACEMENT.
21957 func_dirname ()
21959 case ${1} in
21960 */*) func_dirname_result="${1%/*}${2}" ;;
21961 * ) func_dirname_result="${3}" ;;
21962 esac
21965 # func_basename file
21966 func_basename ()
21968 func_basename_result="${1##*/}"
21971 # func_dirname_and_basename file append nondir_replacement
21972 # perform func_basename and func_dirname in a single function
21973 # call:
21974 # dirname: Compute the dirname of FILE. If nonempty,
21975 # add APPEND to the result, otherwise set result
21976 # to NONDIR_REPLACEMENT.
21977 # value returned in "$func_dirname_result"
21978 # basename: Compute filename of FILE.
21979 # value retuned in "$func_basename_result"
21980 # Implementation must be kept synchronized with func_dirname
21981 # and func_basename. For efficiency, we do not delegate to
21982 # those functions but instead duplicate the functionality here.
21983 func_dirname_and_basename ()
21985 case ${1} in
21986 */*) func_dirname_result="${1%/*}${2}" ;;
21987 * ) func_dirname_result="${3}" ;;
21988 esac
21989 func_basename_result="${1##*/}"
21992 # func_stripname prefix suffix name
21993 # strip PREFIX and SUFFIX off of NAME.
21994 # PREFIX and SUFFIX must not contain globbing or regex special
21995 # characters, hashes, percent signs, but SUFFIX may contain a leading
21996 # dot (in which case that matches only a dot).
21997 func_stripname ()
21999 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22000 # positional parameters, so assign one to ordinary parameter first.
22001 func_stripname_result=${3}
22002 func_stripname_result=${func_stripname_result#"${1}"}
22003 func_stripname_result=${func_stripname_result%"${2}"}
22006 # func_opt_split
22007 func_opt_split ()
22009 func_opt_split_opt=${1%%=*}
22010 func_opt_split_arg=${1#*=}
22013 # func_lo2o object
22014 func_lo2o ()
22016 case ${1} in
22017 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22018 *) func_lo2o_result=${1} ;;
22019 esac
22022 # func_xform libobj-or-source
22023 func_xform ()
22025 func_xform_result=${1%.*}.lo
22028 # func_arith arithmetic-term...
22029 func_arith ()
22031 func_arith_result=$(( $* ))
22034 # func_len string
22035 # STRING may not start with a hyphen.
22036 func_len ()
22038 func_len_result=${#1}
22041 _LT_EOF
22043 *) # Bourne compatible functions.
22044 cat << \_LT_EOF >> "$cfgfile"
22046 # func_dirname file append nondir_replacement
22047 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22048 # otherwise set result to NONDIR_REPLACEMENT.
22049 func_dirname ()
22051 # Extract subdirectory from the argument.
22052 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22053 if test "X$func_dirname_result" = "X${1}"; then
22054 func_dirname_result="${3}"
22055 else
22056 func_dirname_result="$func_dirname_result${2}"
22060 # func_basename file
22061 func_basename ()
22063 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22067 # func_stripname prefix suffix name
22068 # strip PREFIX and SUFFIX off of NAME.
22069 # PREFIX and SUFFIX must not contain globbing or regex special
22070 # characters, hashes, percent signs, but SUFFIX may contain a leading
22071 # dot (in which case that matches only a dot).
22072 # func_strip_suffix prefix name
22073 func_stripname ()
22075 case ${2} in
22076 .*) func_stripname_result=`$ECHO "X${3}" \
22077 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22078 *) func_stripname_result=`$ECHO "X${3}" \
22079 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22080 esac
22083 # sed scripts:
22084 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22085 my_sed_long_arg='1s/^-[^=]*=//'
22087 # func_opt_split
22088 func_opt_split ()
22090 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22091 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22094 # func_lo2o object
22095 func_lo2o ()
22097 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22100 # func_xform libobj-or-source
22101 func_xform ()
22103 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22106 # func_arith arithmetic-term...
22107 func_arith ()
22109 func_arith_result=`expr "$@"`
22112 # func_len string
22113 # STRING may not start with a hyphen.
22114 func_len ()
22116 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22119 _LT_EOF
22120 esac
22122 case $lt_shell_append in
22123 yes)
22124 cat << \_LT_EOF >> "$cfgfile"
22126 # func_append var value
22127 # Append VALUE to the end of shell variable VAR.
22128 func_append ()
22130 eval "$1+=\$2"
22132 _LT_EOF
22135 cat << \_LT_EOF >> "$cfgfile"
22137 # func_append var value
22138 # Append VALUE to the end of shell variable VAR.
22139 func_append ()
22141 eval "$1=\$$1\$2"
22144 _LT_EOF
22146 esac
22149 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22150 || (rm -f "$cfgfile"; exit 1)
22152 mv -f "$cfgfile" "$ofile" ||
22153 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22154 chmod +x "$ofile"
22157 "po-directories":C)
22158 for ac_file in $CONFIG_FILES; do
22159 # Support "outfile[:infile[:infile...]]"
22160 case "$ac_file" in
22161 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22162 esac
22163 # PO directories have a Makefile.in generated from Makefile.in.in.
22164 case "$ac_file" in */Makefile.in)
22165 # Adjust a relative srcdir.
22166 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22167 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22168 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22169 # In autoconf-2.13 it is called $ac_given_srcdir.
22170 # In autoconf-2.50 it is called $srcdir.
22171 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22172 case "$ac_given_srcdir" in
22173 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22174 /*) top_srcdir="$ac_given_srcdir" ;;
22175 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22176 esac
22177 # Treat a directory as a PO directory if and only if it has a
22178 # POTFILES.in file. This allows packages to have multiple PO
22179 # directories under different names or in different locations.
22180 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22181 rm -f "$ac_dir/POTFILES"
22182 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22183 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22184 POMAKEFILEDEPS="POTFILES.in"
22185 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22186 # on $ac_dir but don't depend on user-specified configuration
22187 # parameters.
22188 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22189 # The LINGUAS file contains the set of available languages.
22190 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22191 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22193 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22194 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22195 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22196 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22197 else
22198 # The set of available languages was given in configure.in.
22199 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22200 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22202 # Compute POFILES
22203 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22204 # Compute UPDATEPOFILES
22205 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22206 # Compute DUMMYPOFILES
22207 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22208 # Compute GMOFILES
22209 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22210 case "$ac_given_srcdir" in
22211 .) srcdirpre= ;;
22212 *) srcdirpre='$(srcdir)/' ;;
22213 esac
22214 POFILES=
22215 UPDATEPOFILES=
22216 DUMMYPOFILES=
22217 GMOFILES=
22218 for lang in $ALL_LINGUAS; do
22219 POFILES="$POFILES $srcdirpre$lang.po"
22220 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22221 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22222 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22223 done
22224 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22225 # environment variable.
22226 INST_LINGUAS=
22227 if test -n "$ALL_LINGUAS"; then
22228 for presentlang in $ALL_LINGUAS; do
22229 useit=no
22230 if test "%UNSET%" != "$LINGUAS"; then
22231 desiredlanguages="$LINGUAS"
22232 else
22233 desiredlanguages="$ALL_LINGUAS"
22235 for desiredlang in $desiredlanguages; do
22236 # Use the presentlang catalog if desiredlang is
22237 # a. equal to presentlang, or
22238 # b. a variant of presentlang (because in this case,
22239 # presentlang can be used as a fallback for messages
22240 # which are not translated in the desiredlang catalog).
22241 case "$desiredlang" in
22242 "$presentlang"*) useit=yes;;
22243 esac
22244 done
22245 if test $useit = yes; then
22246 INST_LINGUAS="$INST_LINGUAS $presentlang"
22248 done
22250 CATALOGS=
22251 if test -n "$INST_LINGUAS"; then
22252 for lang in $INST_LINGUAS; do
22253 CATALOGS="$CATALOGS $lang.gmo"
22254 done
22256 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22257 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"
22258 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22259 if test -f "$f"; then
22260 case "$f" in
22261 *.orig | *.bak | *~) ;;
22262 *) cat "$f" >> "$ac_dir/Makefile" ;;
22263 esac
22265 done
22268 esac
22269 done ;;
22271 esac
22272 done # for ac_tag
22275 as_fn_exit 0
22276 _ACEOF
22277 ac_clean_files=$ac_clean_files_save
22279 test $ac_write_fail = 0 ||
22280 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22283 # configure is writing to config.log, and then calls config.status.
22284 # config.status does its own redirection, appending to config.log.
22285 # Unfortunately, on DOS this fails, as config.log is still kept open
22286 # by configure, so config.status won't be able to write to it; its
22287 # output is simply discarded. So we exec the FD to /dev/null,
22288 # effectively closing config.log, so it can be properly (re)opened and
22289 # appended to by config.status. When coming back to configure, we
22290 # need to make the FD available again.
22291 if test "$no_create" != yes; then
22292 ac_cs_success=:
22293 ac_config_status_args=
22294 test "$silent" = yes &&
22295 ac_config_status_args="$ac_config_status_args --quiet"
22296 exec 5>/dev/null
22297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22298 exec 5>>config.log
22299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22300 # would make configure fail if this is the last instruction.
22301 $ac_cs_success || as_fn_exit 1
22303 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22305 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}