* Tune for help formatting in pine.hlp
[alpine.git] / configure
blobd4dfbe1f9c67a3d5c8d518a7172d79db5e8d6b61
1 #! /bin/sh
2 # From configure.ac Rev:2 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.11.2.
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.11.2'
734 PACKAGE_STRING='alpine 2.11.2'
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
824 LIBTOOL_DEPS
826 OTOOL64
827 OTOOL
828 LIPO
829 NMEDIT
830 DSYMUTIL
831 lt_ECHO
833 OBJDUMP
835 ac_ct_DUMPBIN
836 DUMPBIN
838 FGREP
839 EGREP
840 GREP
842 LIBTOOL
843 RANLIB
844 LN_S
845 am__fastdepCC_FALSE
846 am__fastdepCC_TRUE
847 CCDEPMODE
848 AMDEPBACKSLASH
849 AMDEP_FALSE
850 AMDEP_TRUE
851 am__quote
852 am__include
853 DEPDIR
854 OBJEXT
855 EXEEXT
856 ac_ct_CC
857 CPPFLAGS
858 LDFLAGS
859 CFLAGS
861 host_os
862 host_vendor
863 host_cpu
864 host
865 build_os
866 build_vendor
867 build_cpu
868 build
869 MAINT
870 MAINTAINER_MODE_FALSE
871 MAINTAINER_MODE_TRUE
872 am__untar
873 am__tar
874 AMTAR
875 am__leading_dot
876 SET_MAKE
878 mkdir_p
879 MKDIR_P
880 INSTALL_STRIP_PROGRAM
881 STRIP
882 install_sh
883 MAKEINFO
884 AUTOHEADER
885 AUTOMAKE
886 AUTOCONF
887 ACLOCAL
888 VERSION
889 PACKAGE
890 CYGPATH_W
891 am__isrc
892 INSTALL_DATA
893 INSTALL_SCRIPT
894 INSTALL_PROGRAM
895 target_alias
896 host_alias
897 build_alias
898 LIBS
899 ECHO_T
900 ECHO_N
901 ECHO_C
902 DEFS
903 mandir
904 localedir
905 libdir
906 psdir
907 pdfdir
908 dvidir
909 htmldir
910 infodir
911 docdir
912 oldIncludedir
913 Includedir
914 localstatedir
915 sharedstatedir
916 sysconfdir
917 datadir
918 datarootdir
919 libexecdir
920 sbindir
921 bindir
922 program_transform_name
923 prefix
924 exec_prefix
925 PACKAGE_URL
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files=''
934 ac_user_opts='
935 enable_option_checking
936 enable_maintainer_mode
937 enable_dependency_tracking
938 enable_shared
939 enable_static
940 with_pic
941 enable_fast_install
942 with_gnu_ld
943 enable_libtool_lock
944 enable_nls
945 enable_rpath
946 with_libiconv_prefix
947 with_libintl_prefix
948 enable_dmalloc
949 with_dmalloc_dir
950 with_localedir
951 enable_osx_universal_binaries
952 with_include_path
953 with_lib_path
954 with_pubcookie
955 with_web_bin
956 enable_debug
957 enable_optimization
958 enable_mouse
959 enable_quotas
960 enable_from_changing
961 enable_background_post
962 enable_keyboard_lock
963 enable_from_encoding
964 with_smtp_msa
965 with_smtp_msa_flags
966 with_npa
967 with_npa_flags
968 with_password_prog
969 with_simple_spellcheck
970 with_interactive_spellcheck
971 with_system_pinerc
972 with_system_fixed_pinerc
973 with_local_support_info
974 with_mailcheck_interval
975 with_checkpoint_interval
976 with_checkpoint_frequency
977 with_display_rows
978 with_display_columns
979 with_max_display_rows
980 with_max_display_columns
981 with_fill_column
982 with_max_fill_column
983 with_debug_level
984 with_debug_files
985 with_debug_file
986 with_forwarded_keyword
987 with_display_overlap
988 with_display_margin
989 with_default_fcc
990 with_default_save_folder
991 with_default_legacy_postponed_folder
992 with_default_postponed_folder
993 with_default_trash_folder
994 with_default_interrupted_mail
995 with_default_dead_letter_folder
996 with_default_mail_directory
997 with_default_inbox_name
998 with_default_signature_file
999 with_default_elm_style_save
1000 with_default_header_in_reply
1001 with_default_old_style_reply
1002 with_default_use_only_domain_name
1003 with_default_save_by_sender
1004 with_default_sort_key
1005 with_default_addressbook_sort_rule
1006 with_default_folder_sort_rule
1007 with_default_saved_message_name_rule
1008 with_default_fcc_rule
1009 with_default_standard_printer
1010 with_default_ansi_printer
1011 with_default_addressbook
1012 with_default_local_fullname
1013 with_default_local_address
1014 with_default_keyboard_lock_count
1015 with_default_remote_addressbook_history
1016 with_smime_public_cert_directory
1017 with_smime_private_key_directory
1018 with_smime_cacert_directory
1019 with_default_printer
1020 with_passfile
1021 with_local_password_cache
1022 with_local_password_cache_method
1023 with_default_sshpath
1024 with_default_sshcmd
1025 with_ssl
1026 with_ssl_dir
1027 with_ssl_certs_dir
1028 with_ssl_include_dir
1029 with_ssl_lib_dir
1030 with_krb5
1031 with_krb5_dir
1032 with_krb5_include_dir
1033 with_krb5_lib_dir
1034 with_ldap
1035 with_ldap_dir
1036 with_ldap_include_dir
1037 with_ldap_lib_dir
1038 with_smime
1039 with_tcl
1040 with_tcl_lib
1041 with_tcl_include
1042 with_supplied_regex
1043 with_pthread
1044 with_system_mail_directory
1045 with_c_client_target
1046 with_ipv6
1048 ac_precious_vars='build_alias
1049 host_alias
1050 target_alias
1052 CFLAGS
1053 LDFLAGS
1054 LIBS
1055 CPPFLAGS
1056 CPP'
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 ac_unrecognized_opts=
1063 ac_unrecognized_sep=
1064 # The variables have the same names as the options, with
1065 # dashes changed to underlines.
1066 cache_file=/dev/null
1067 exec_prefix=NONE
1068 no_create=
1069 no_recursion=
1070 prefix=NONE
1071 program_prefix=NONE
1072 program_suffix=NONE
1073 program_transform_name=s,x,x,
1074 silent=
1075 site=
1076 srcdir=
1077 verbose=
1078 x_includes=NONE
1079 x_libraries=NONE
1081 # Installation directory options.
1082 # These are left unexpanded so users can "make install exec_prefix=/foo"
1083 # and all the variables that are supposed to be based on exec_prefix
1084 # by default will actually change.
1085 # Use braces instead of parens because sh, perl, etc. also accept them.
1086 # (The list follows the same order as the GNU Coding Standards.)
1087 bindir='${exec_prefix}/bin'
1088 sbindir='${exec_prefix}/sbin'
1089 libexecdir='${exec_prefix}/libexec'
1090 datarootdir='${prefix}/share'
1091 datadir='${datarootdir}'
1092 sysconfdir='${prefix}/etc'
1093 sharedstatedir='${prefix}/com'
1094 localstatedir='${prefix}/var'
1095 Includedir='${prefix}/include'
1096 oldIncludedir='/usr/include'
1097 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1098 infodir='${datarootdir}/info'
1099 htmldir='${docdir}'
1100 dvidir='${docdir}'
1101 pdfdir='${docdir}'
1102 psdir='${docdir}'
1103 libdir='${exec_prefix}/lib'
1104 localedir='${datarootdir}/locale'
1105 mandir='${datarootdir}/man'
1107 ac_prev=
1108 ac_dashdash=
1109 for ac_option
1111 # If the previous option needs an argument, assign it.
1112 if test -n "$ac_prev"; then
1113 eval $ac_prev=\$ac_option
1114 ac_prev=
1115 continue
1118 case $ac_option in
1119 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 *=) ac_optarg= ;;
1121 *) ac_optarg=yes ;;
1122 esac
1124 # Accept the important Cygnus configure options, so we can diagnose typos.
1126 case $ac_dashdash$ac_option in
1128 ac_dashdash=yes ;;
1130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1131 ac_prev=bindir ;;
1132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1133 bindir=$ac_optarg ;;
1135 -build | --build | --buil | --bui | --bu)
1136 ac_prev=build_alias ;;
1137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1138 build_alias=$ac_optarg ;;
1140 -cache-file | --cache-file | --cache-fil | --cache-fi \
1141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1142 ac_prev=cache_file ;;
1143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1145 cache_file=$ac_optarg ;;
1147 --config-cache | -C)
1148 cache_file=config.cache ;;
1150 -datadir | --datadir | --datadi | --datad)
1151 ac_prev=datadir ;;
1152 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1153 datadir=$ac_optarg ;;
1155 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1156 | --dataroo | --dataro | --datar)
1157 ac_prev=datarootdir ;;
1158 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1159 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1160 datarootdir=$ac_optarg ;;
1162 -disable-* | --disable-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid feature name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "enable_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval enable_$ac_useropt=no ;;
1178 -docdir | --docdir | --docdi | --doc | --do)
1179 ac_prev=docdir ;;
1180 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1181 docdir=$ac_optarg ;;
1183 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1184 ac_prev=dvidir ;;
1185 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1186 dvidir=$ac_optarg ;;
1188 -enable-* | --enable-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid feature name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "enable_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval enable_$ac_useropt=\$ac_optarg ;;
1204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206 | --exec | --exe | --ex)
1207 ac_prev=exec_prefix ;;
1208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210 | --exec=* | --exe=* | --ex=*)
1211 exec_prefix=$ac_optarg ;;
1213 -gas | --gas | --ga | --g)
1214 # Obsolete; use --with-gas.
1215 with_gas=yes ;;
1217 -help | --help | --hel | --he | -h)
1218 ac_init_help=long ;;
1219 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220 ac_init_help=recursive ;;
1221 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222 ac_init_help=short ;;
1224 -host | --host | --hos | --ho)
1225 ac_prev=host_alias ;;
1226 -host=* | --host=* | --hos=* | --ho=*)
1227 host_alias=$ac_optarg ;;
1229 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1230 ac_prev=htmldir ;;
1231 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1232 | --ht=*)
1233 htmldir=$ac_optarg ;;
1235 -Includedir | --includedir | --includedi | --included | --include \
1236 | --includ | --inclu | --incl | --inc)
1237 ac_prev=Includedir ;;
1238 -Includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239 | --includ=* | --inclu=* | --incl=* | --inc=*)
1240 Includedir=$ac_optarg ;;
1242 -infodir | --infodir | --infodi | --infod | --info | --inf)
1243 ac_prev=infodir ;;
1244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245 infodir=$ac_optarg ;;
1247 -libdir | --libdir | --libdi | --libd)
1248 ac_prev=libdir ;;
1249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250 libdir=$ac_optarg ;;
1252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253 | --libexe | --libex | --libe)
1254 ac_prev=libexecdir ;;
1255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256 | --libexe=* | --libex=* | --libe=*)
1257 libexecdir=$ac_optarg ;;
1259 -localedir | --localedir | --localedi | --localed | --locale)
1260 ac_prev=localedir ;;
1261 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262 localedir=$ac_optarg ;;
1264 -localstatedir | --localstatedir | --localstatedi | --localstated \
1265 | --localstate | --localstat | --localsta | --localst | --locals)
1266 ac_prev=localstatedir ;;
1267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269 localstatedir=$ac_optarg ;;
1271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1272 ac_prev=mandir ;;
1273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274 mandir=$ac_optarg ;;
1276 -nfp | --nfp | --nf)
1277 # Obsolete; use --without-fp.
1278 with_fp=no ;;
1280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281 | --no-cr | --no-c | -n)
1282 no_create=yes ;;
1284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1286 no_recursion=yes ;;
1288 -oldIncludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290 | --oldin | --oldi | --old | --ol | --o)
1291 ac_prev=oldIncludedir ;;
1292 -oldIncludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295 oldIncludedir=$ac_optarg ;;
1297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1298 ac_prev=prefix ;;
1299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300 prefix=$ac_optarg ;;
1302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303 | --program-pre | --program-pr | --program-p)
1304 ac_prev=program_prefix ;;
1305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307 program_prefix=$ac_optarg ;;
1309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310 | --program-suf | --program-su | --program-s)
1311 ac_prev=program_suffix ;;
1312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314 program_suffix=$ac_optarg ;;
1316 -program-transform-name | --program-transform-name \
1317 | --program-transform-nam | --program-transform-na \
1318 | --program-transform-n | --program-transform- \
1319 | --program-transform | --program-transfor \
1320 | --program-transfo | --program-transf \
1321 | --program-trans | --program-tran \
1322 | --progr-tra | --program-tr | --program-t)
1323 ac_prev=program_transform_name ;;
1324 -program-transform-name=* | --program-transform-name=* \
1325 | --program-transform-nam=* | --program-transform-na=* \
1326 | --program-transform-n=* | --program-transform-=* \
1327 | --program-transform=* | --program-transfor=* \
1328 | --program-transfo=* | --program-transf=* \
1329 | --program-trans=* | --program-tran=* \
1330 | --progr-tra=* | --program-tr=* | --program-t=*)
1331 program_transform_name=$ac_optarg ;;
1333 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1334 ac_prev=pdfdir ;;
1335 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336 pdfdir=$ac_optarg ;;
1338 -psdir | --psdir | --psdi | --psd | --ps)
1339 ac_prev=psdir ;;
1340 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1341 psdir=$ac_optarg ;;
1343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344 | -silent | --silent | --silen | --sile | --sil)
1345 silent=yes ;;
1347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1348 ac_prev=sbindir ;;
1349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1350 | --sbi=* | --sb=*)
1351 sbindir=$ac_optarg ;;
1353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355 | --sharedst | --shareds | --shared | --share | --shar \
1356 | --sha | --sh)
1357 ac_prev=sharedstatedir ;;
1358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1361 | --sha=* | --sh=*)
1362 sharedstatedir=$ac_optarg ;;
1364 -site | --site | --sit)
1365 ac_prev=site ;;
1366 -site=* | --site=* | --sit=*)
1367 site=$ac_optarg ;;
1369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1370 ac_prev=srcdir ;;
1371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372 srcdir=$ac_optarg ;;
1374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375 | --syscon | --sysco | --sysc | --sys | --sy)
1376 ac_prev=sysconfdir ;;
1377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379 sysconfdir=$ac_optarg ;;
1381 -target | --target | --targe | --targ | --tar | --ta | --t)
1382 ac_prev=target_alias ;;
1383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384 target_alias=$ac_optarg ;;
1386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1387 verbose=yes ;;
1389 -version | --version | --versio | --versi | --vers | -V)
1390 ac_init_version=: ;;
1392 -with-* | --with-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396 as_fn_error $? "invalid package name: $ac_useropt"
1397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1401 "with_$ac_useropt"
1402 "*) ;;
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1405 esac
1406 eval with_$ac_useropt=\$ac_optarg ;;
1408 -without-* | --without-*)
1409 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1410 # Reject names that are not valid shell variable names.
1411 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1412 as_fn_error $? "invalid package name: $ac_useropt"
1413 ac_useropt_orig=$ac_useropt
1414 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1415 case $ac_user_opts in
1417 "with_$ac_useropt"
1418 "*) ;;
1419 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1420 ac_unrecognized_sep=', ';;
1421 esac
1422 eval with_$ac_useropt=no ;;
1424 --x)
1425 # Obsolete; use --with-x.
1426 with_x=yes ;;
1428 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1429 | --x-incl | --x-inc | --x-in | --x-i)
1430 ac_prev=x_includes ;;
1431 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1432 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1433 x_includes=$ac_optarg ;;
1435 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1436 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1437 ac_prev=x_libraries ;;
1438 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1439 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1440 x_libraries=$ac_optarg ;;
1442 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1443 Try \`$0 --help' for more information"
1446 *=*)
1447 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1448 # Reject names that are not valid shell variable names.
1449 case $ac_envvar in #(
1450 '' | [0-9]* | *[!_$as_cr_alnum]* )
1451 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1452 esac
1453 eval $ac_envvar=\$ac_optarg
1454 export $ac_envvar ;;
1457 # FIXME: should be removed in autoconf 3.0.
1458 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1459 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1460 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1461 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1464 esac
1465 done
1467 if test -n "$ac_prev"; then
1468 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1469 as_fn_error $? "missing argument to $ac_option"
1472 if test -n "$ac_unrecognized_opts"; then
1473 case $enable_option_checking in
1474 no) ;;
1475 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1476 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1477 esac
1480 # Check all directory arguments for consistency.
1481 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1482 datadir sysconfdir sharedstatedir localstatedir Includedir \
1483 oldIncludedir docdir infodir htmldir dvidir pdfdir psdir \
1484 libdir localedir mandir
1486 eval ac_val=\$$ac_var
1487 # Remove trailing slashes.
1488 case $ac_val in
1489 */ )
1490 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1491 eval $ac_var=\$ac_val;;
1492 esac
1493 # Be sure to have absolute directory names.
1494 case $ac_val in
1495 [\\/$]* | ?:[\\/]* ) continue;;
1496 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1497 esac
1498 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1499 done
1501 # There might be people who depend on the old broken behavior: `$host'
1502 # used to hold the argument of --host etc.
1503 # FIXME: To remove some day.
1504 build=$build_alias
1505 host=$host_alias
1506 target=$target_alias
1508 # FIXME: To remove some day.
1509 if test "x$host_alias" != x; then
1510 if test "x$build_alias" = x; then
1511 cross_compiling=maybe
1512 elif test "x$build_alias" != "x$host_alias"; then
1513 cross_compiling=yes
1517 ac_tool_prefix=
1518 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520 test "$silent" = yes && exec 6>/dev/null
1523 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1524 ac_ls_di=`ls -di .` &&
1525 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1526 as_fn_error $? "working directory cannot be determined"
1527 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1528 as_fn_error $? "pwd does not report name of working directory"
1531 # Find the source files, if location was not specified.
1532 if test -z "$srcdir"; then
1533 ac_srcdir_defaulted=yes
1534 # Try the directory containing this script, then the parent directory.
1535 ac_confdir=`$as_dirname -- "$as_myself" ||
1536 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537 X"$as_myself" : 'X\(//\)[^/]' \| \
1538 X"$as_myself" : 'X\(//\)$' \| \
1539 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1540 $as_echo X"$as_myself" |
1541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542 s//\1/
1545 /^X\(\/\/\)[^/].*/{
1546 s//\1/
1549 /^X\(\/\/\)$/{
1550 s//\1/
1553 /^X\(\/\).*/{
1554 s//\1/
1557 s/.*/./; q'`
1558 srcdir=$ac_confdir
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560 srcdir=..
1562 else
1563 ac_srcdir_defaulted=no
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1569 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1570 ac_abs_confdir=`(
1571 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1572 pwd)`
1573 # When building in place, set srcdir=.
1574 if test "$ac_abs_confdir" = "$ac_pwd"; then
1575 srcdir=.
1577 # Remove unnecessary trailing slashes from srcdir.
1578 # Double slashes in file names in object file debugging info
1579 # mess up M-x gdb in Emacs.
1580 case $srcdir in
1581 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1582 esac
1583 for ac_var in $ac_precious_vars; do
1584 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1585 eval ac_env_${ac_var}_value=\$${ac_var}
1586 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1588 done
1591 # Report the --help message.
1593 if test "$ac_init_help" = "long"; then
1594 # Omit some internal or obsolete options to make the list less imposing.
1595 # This message is too long to be a string in the A/UX 3.1 sh.
1596 cat <<_ACEOF
1597 \`configure' configures alpine 2.11.2 to adapt to many kinds of systems.
1599 Usage: $0 [OPTION]... [VAR=VALUE]...
1601 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1602 VAR=VALUE. See below for descriptions of some of the useful variables.
1604 Defaults for the options are specified in brackets.
1606 Configuration:
1607 -h, --help display this help and exit
1608 --help=short display options specific to this package
1609 --help=recursive display the short help of all the Included packages
1610 -V, --version display version information and exit
1611 -q, --quiet, --silent do not print \`checking ...' messages
1612 --cache-file=FILE cache test results in FILE [disabled]
1613 -C, --config-cache alias for \`--cache-file=config.cache'
1614 -n, --no-create do not create output files
1615 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1617 Installation directories:
1618 --prefix=PREFIX install architecture-independent files in PREFIX
1619 [$ac_default_prefix]
1620 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1621 [PREFIX]
1623 By default, \`make install' will install all the files in
1624 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1625 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1626 for instance \`--prefix=\$HOME'.
1628 For better control, use the options below.
1630 Fine tuning of the installation directories:
1631 --bindir=DIR user executables [EPREFIX/bin]
1632 --sbindir=DIR system admin executables [EPREFIX/sbin]
1633 --libexecdir=DIR program executables [EPREFIX/libexec]
1634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1636 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1637 --libdir=DIR object code libraries [EPREFIX/lib]
1638 --Includedir=DIR C header files [PREFIX/include]
1639 --oldIncludedir=DIR C header files for non-gcc [/usr/include]
1640 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1641 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1642 --infodir=DIR info documentation [DATAROOTDIR/info]
1643 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1644 --mandir=DIR man documentation [DATAROOTDIR/man]
1645 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1646 --htmldir=DIR html documentation [DOCDIR]
1647 --dvidir=DIR dvi documentation [DOCDIR]
1648 --pdfdir=DIR pdf documentation [DOCDIR]
1649 --psdir=DIR ps documentation [DOCDIR]
1650 _ACEOF
1652 cat <<\_ACEOF
1654 Program names:
1655 --program-prefix=PREFIX prepend PREFIX to installed program names
1656 --program-suffix=SUFFIX append SUFFIX to installed program names
1657 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1659 System types:
1660 --build=BUILD configure for building on BUILD [guessed]
1661 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1662 _ACEOF
1665 if test -n "$ac_init_help"; then
1666 case $ac_init_help in
1667 short | recursive ) echo "Configuration of alpine 2.11.2:";;
1668 esac
1669 cat <<\_ACEOF
1671 Optional Features:
1672 --disable-option-checking ignore unrecognized --enable/--with options
1673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1675 --enable-maintainer-mode enable make rules and dependencies not useful
1676 (and sometimes confusing) to the casual installer
1677 --disable-dependency-tracking speeds up one-time build
1678 --enable-dependency-tracking do not reject slow dependency extractors
1679 --enable-shared[=PKGS] build shared libraries [default=yes]
1680 --enable-static[=PKGS] build static libraries [default=yes]
1681 --enable-fast-install[=PKGS]
1682 optimize for fast installation [default=yes]
1683 --disable-libtool-lock avoid locking (might break parallel builds)
1684 --disable-nls do not use Native Language Support
1685 --disable-rpath do not hardcode runtime library paths
1686 --enable-dmalloc Enable dmalloc debugging
1687 --enable-osx-universal-binaries
1688 Produce universal binaries under OS X [[default=no]]
1689 --disable-debug Exclude debug messages from source
1690 --disable-optimization Exclude optimizing compiler flags
1691 --disable-mouse Disable mouse support
1692 --enable-quotas Enable disk quota checking on startup
1693 --disable-from-changing Disallow users changing From addresss
1694 --disable-background-post
1695 Disable background posting
1696 --disable-keyboard-lock Disable keyboard locking
1697 --enable-from-encoding Enable From encoding in sent messages
1699 Optional Packages:
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-pic try to use only PIC/non-PIC objects [default=use
1703 both]
1704 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1705 --with-gnu-ld assume the C compiler uses GNU ld default=no
1706 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1707 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1708 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1709 --without-libintl-prefix don't search for libintl in includedir and libdir
1710 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1711 --with-localedir=DIR Name of gettext locale directory
1712 --with-include-path=PATHS
1713 Colon-separated list of directories used for include
1714 file search
1715 --with-lib-path=PATHS Colon-separated list of directories used for library
1716 search
1717 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1718 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1719 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1720 --with-smtp-msa-flags=FLAGS
1721 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1722 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1723 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1724 --with-password-prog=PATH
1725 Password change program (/bin/passwd)
1726 --with-simple-spellcheck=PROG
1727 Spellcheck program reads stdin, emits misspellings
1728 on stdout
1729 --with-interactive-spellcheck=PROG
1730 Interactive, filewise spell checker
1731 --with-system-pinerc=VALUE
1732 System pinerc (/usr/local/lib/pine.conf)
1733 --with-system-fixed-pinerc=VALUE
1734 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1735 --with-local-support-info=VALUE
1736 Local Support Info File (/usr/local/lib/pine.info)
1737 --with-mailcheck-interval=VALUE
1738 Specify default mail-check-interval (150)
1739 --with-checkpoint-interval=VALUE
1740 Specify default checkpoint-interval (420)
1741 --with-checkpoint-frequency=VALUE
1742 State change count before checkpoint (12)
1743 --with-display-rows=VALUE
1744 Initial rows on display (24)
1745 --with-display-columns=VALUE
1746 Initial columns on display (80)
1747 --with-max-display-rows=VALUE
1748 Maximum display rows (200)
1749 --with-max-display-columns=VALUE
1750 Maximum display columns (500)
1751 --with-fill-column=VALUE
1752 Default fill column (74)
1753 --with-max_fill-column=VALUE
1754 Maximum fill column (80)
1755 --with-debug-level=VALUE
1756 Specify default debug verbosity level (2)
1757 --with-debug-files=VALUE
1758 Specify number of debug files (4)
1759 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1760 --with-forwarded-keyword=VALUE
1761 IMAP (c-client) keyword to store forwarded status
1762 ("\$Forwarded")
1763 --with-display-overlap=VALUE
1764 Lines preserved while paging (2)
1765 --with-display-margin=VALUE
1766 Lines visible while scrolling (0)
1767 --with-default-fcc=VALUE
1768 Default sent mail folder (sent-mail)
1769 --with-default-save-folder=VALUE
1770 Default save folder (saved-messages)
1771 --with-default-legacy-postponed-folder=VALUE
1772 Pre Pine 3.90 postponed folder (postponed-mail)
1773 --with-default-postponed-folder=VALUE
1774 Default postponed folder (postponed-msgs)
1775 --with-default-trash-folder=VALUE
1776 Default Trash folder for Web Alpine (Trash)
1777 --with-default-interrupted-mail=VALUE
1778 Default folder for interrupted mail
1779 (.pine-interrupted-mail)
1780 --with-default-dead-letter-folder=VALUE
1781 Default dead letter folder (dead.letter)
1782 --with-default-mail-directory=VALUE
1783 Default mail directory (mail)
1784 --with-default-inbox-name=VALUE
1785 Default inbox name (INBOX)
1786 --with-default-signature-file=VALUE
1787 Default signature file (.signature)
1788 --with-default-elm-style-save=VALUE
1789 Default to Elm style save (no)
1790 --with-default-header-in-reply=VALUE
1791 Include header in reply (no)
1792 --with-default-old-style-reply=VALUE
1793 Default to old style reply (no)
1794 --with-default-use-only-domain-name=VALUE
1795 Default to using only the domain name (no)
1796 --with-default-save-by-sender=VALUE
1797 Default to save by sender (no)
1798 --with-default-sort-key=VALUE
1799 Default sort key (arrival)
1800 --with-default-addressbook-sort-rule=VALUE
1801 Default addressbook sort rule
1802 (fullname-with-lists-last)
1803 --with-default-folder-sort-rule=VALUE
1804 Default folder sort rule (alphabetical)
1805 --with-default-saved-message-name-rule=VALUE
1806 Default saved message name rule (default-folder)
1807 --with-default-fcc-rule=VALUE
1808 Default fcc rule (default-fcc)
1809 --with-default-standard-printer=VALUE
1810 Default standard printern (lpr)
1811 --with-default-ansi-printer=VALUE
1812 ANSI printer definition (attached-to-ansi)
1813 --with-default-addressbook=VALUE
1814 Default addressbook name (.addressbook)
1815 --with-default-local-fullname=VALUE
1816 Default local support fullname ("Local Support")
1817 --with-default-local-address=VALUE
1818 Default local support address (postmaster)
1819 --with-default-keyboard-lock-count=VALUE
1820 Default keyboard lock count (1)
1821 --with-default-remote-addressbook-history=VALUE
1822 Default address book history count (3)
1823 --with-smime-public-cert-directory=VALUE
1824 Default Public Cert Directory (.alpine-smime/public)
1825 --with-smime-private-key-directory=VALUE
1826 Default Private Key Directory
1827 (.alpine-smime/private)
1828 --with-smime-cacert-directory=VALUE
1829 Default Cert Authority Directory (.alpine-smime/ca)
1830 --with-default-printer=VALUE
1831 Default printer (ANSI_PRINTER)
1832 --with-passfile=FILENAME
1833 Password cache file (NOT secure, NOT recommended)
1834 --without-local-password-cache
1835 Disable OS-specific password cache, if supported
1836 --with-local-password-cache-method
1837 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1838 Windows=WINCRED)
1839 --with-default-sshpath=FILENAME
1840 set default value of ssh command path (defining
1841 should cause ssh to be preferred to rsh)
1842 --with-default-sshcmd=PERCENT_S_STRING
1843 set default value of ssh command string (usually "%s
1844 %s -l %s exec /etc/r%sd")
1845 --without-ssl Disable SSL support (OpenSSL)
1846 --with-ssl-dir=DIR Root of SSL lib/include path
1847 --with-ssl-certs-dir=DIR
1848 Path to SSL certificate directory
1849 --with-ssl-include-dir=DIR
1850 SSL include file path
1851 --with-ssl-lib-dir=DIR SSL library path
1852 --without-krb5 Disable Kerberos support
1853 --with-krb5-dir=DIR Root of Kerberos lib/include path
1854 --with-krb5-include-dir=DIR
1855 Kerberos include file path
1856 --with-krb5-lib-dir=DIR Kerberos library path
1857 --without-ldap Disable LDAP query support
1858 --with-ldap-dir=DIR Root of LDAP lib/include path
1859 --with-ldap-include-dir=DIR
1860 Directory containing LDAP include files
1861 --with-ldap-lib-dir=DIR LDAP library path
1862 --without-smime Disable S/MIME
1863 --without-tcl Disable TCL, thus Web Alpine support
1864 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1865 --with-tcl-include=DIR Directory containing TCL include files
1866 --with-supplied-regex Use regex library supplied with alpine
1867 --without-pthread Do NOT test for nor build with POSIX thread support
1868 --with-system-mail-directory=DIR
1869 Directory where local mail is delivered
1870 --with-c-client-target=TARGET
1871 IMAP build target (see imap/Makefile)
1872 --without-ipv6 Disable IPv6, primarily to work around resolver
1873 problems
1875 Some influential environment variables:
1876 CC C compiler command
1877 CFLAGS C compiler flags
1878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1879 nonstandard directory <lib dir>
1880 LIBS libraries to pass to the linker, e.g. -l<library>
1881 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1882 you have headers in a nonstandard directory <include dir>
1883 CPP C preprocessor
1885 Use these variables to override the choices made by `configure' or to help
1886 it to find libraries and programs with nonstandard names/locations.
1888 Report bugs to <chappa@washington.edu>.
1889 _ACEOF
1890 ac_status=$?
1893 if test "$ac_init_help" = "recursive"; then
1894 # If there are subdirs, report their specific --help.
1895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1896 test -d "$ac_dir" ||
1897 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1898 continue
1899 ac_builddir=.
1901 case "$ac_dir" in
1902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1905 # A ".." for each directory in $ac_dir_suffix.
1906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1907 case $ac_top_builddir_sub in
1908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1910 esac ;;
1911 esac
1912 ac_abs_top_builddir=$ac_pwd
1913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1914 # for backward compatibility:
1915 ac_top_builddir=$ac_top_build_prefix
1917 case $srcdir in
1918 .) # We are building in place.
1919 ac_srcdir=.
1920 ac_top_srcdir=$ac_top_builddir_sub
1921 ac_abs_top_srcdir=$ac_pwd ;;
1922 [\\/]* | ?:[\\/]* ) # Absolute name.
1923 ac_srcdir=$srcdir$ac_dir_suffix;
1924 ac_top_srcdir=$srcdir
1925 ac_abs_top_srcdir=$srcdir ;;
1926 *) # Relative name.
1927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1928 ac_top_srcdir=$ac_top_build_prefix$srcdir
1929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1930 esac
1931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1933 cd "$ac_dir" || { ac_status=$?; continue; }
1934 # Check for guested configure.
1935 if test -f "$ac_srcdir/configure.gnu"; then
1936 echo &&
1937 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938 elif test -f "$ac_srcdir/configure"; then
1939 echo &&
1940 $SHELL "$ac_srcdir/configure" --help=recursive
1941 else
1942 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943 fi || ac_status=$?
1944 cd "$ac_pwd" || { ac_status=$?; break; }
1945 done
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1950 cat <<\_ACEOF
1951 alpine configure 2.11.2
1952 generated by GNU Autoconf 2.69
1954 Copyright (C) 2012 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1957 _ACEOF
1958 exit
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext
1972 if { { ac_try="$ac_compile"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_compile") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest.$ac_objext; then :
1991 ac_retval=0
1992 else
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=1
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2001 } # ac_fn_c_try_compile
2003 # ac_fn_c_try_link LINENO
2004 # -----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_c_try_link ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_c_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
2030 test -x conftest$ac_exeext
2031 }; then :
2032 ac_retval=0
2033 else
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 ac_retval=1
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2047 } # ac_fn_c_try_link
2049 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2050 # -------------------------------------------------------
2051 # Tests whether HEADER exists and can be compiled using the include files in
2052 # INCLUDES, setting the cache variable VAR accordingly.
2053 ac_fn_c_check_header_compile ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_header_compile
2080 # ac_fn_c_try_cpp LINENO
2081 # ----------------------
2082 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_c_try_cpp ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if { { ac_try="$ac_cpp conftest.$ac_ext"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } > conftest.i && {
2102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 }; then :
2105 ac_retval=0
2106 else
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2110 ac_retval=1
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 as_fn_set_status $ac_retval
2115 } # ac_fn_c_try_cpp
2117 # ac_fn_c_try_run LINENO
2118 # ----------------------
2119 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2120 # that executables *can* be run.
2121 ac_fn_c_try_run ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if { { ac_try="$ac_link"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_link") 2>&5
2132 ac_status=$?
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2135 { { case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_try") 2>&5
2142 ac_status=$?
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; }; }; then :
2145 ac_retval=0
2146 else
2147 $as_echo "$as_me: program exited with status $ac_status" >&5
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 ac_retval=$ac_status
2153 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 as_fn_set_status $ac_retval
2157 } # ac_fn_c_try_run
2159 # ac_fn_c_check_func LINENO FUNC VAR
2160 # ----------------------------------
2161 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2162 ac_fn_c_check_func ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166 $as_echo_n "checking for $2... " >&6; }
2167 if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2174 #define $2 innocuous_$2
2176 /* System header to define __stub macros and hopefully few prototypes,
2177 which can conflict with char $2 (); below.
2178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2179 <limits.h> exists even on freestanding compilers. */
2181 #ifdef __STDC__
2182 # include <limits.h>
2183 #else
2184 # include <assert.h>
2185 #endif
2187 #undef $2
2189 /* Override any GCC internal prototype to avoid an error.
2190 Use char because int might match the return type of a GCC
2191 builtin and then its argument prototype would still apply. */
2192 #ifdef __cplusplus
2193 extern "C"
2194 #endif
2195 char $2 ();
2196 /* The GNU C library defines this for functions which it implements
2197 to always fail with ENOSYS. Some functions are actually named
2198 something starting with __ and the normal name is an alias. */
2199 #if defined __stub_$2 || defined __stub___$2
2200 choke me
2201 #endif
2204 main ()
2206 return $2 ();
2208 return 0;
2210 _ACEOF
2211 if ac_fn_c_try_link "$LINENO"; then :
2212 eval "$3=yes"
2213 else
2214 eval "$3=no"
2216 rm -f core conftest.err conftest.$ac_objext \
2217 conftest$ac_exeext conftest.$ac_ext
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_c_check_func
2226 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2227 # -------------------------------------------------------
2228 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2229 # the include files in INCLUDES and setting the cache variable VAR
2230 # accordingly.
2231 ac_fn_c_check_header_mongrel ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if eval \${$3+:} false; then :
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 else
2244 # Is the header compilable?
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2246 $as_echo_n "checking $2 usability... " >&6; }
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 #include <$2>
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 ac_header_compiler=yes
2254 else
2255 ac_header_compiler=no
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2259 $as_echo "$ac_header_compiler" >&6; }
2261 # Is the header present?
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2263 $as_echo_n "checking $2 presence... " >&6; }
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 #include <$2>
2267 _ACEOF
2268 if ac_fn_c_try_cpp "$LINENO"; then :
2269 ac_header_preproc=yes
2270 else
2271 ac_header_preproc=no
2273 rm -f conftest.err conftest.i conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2275 $as_echo "$ac_header_preproc" >&6; }
2277 # So? What about this header?
2278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2279 yes:no: )
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2281 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 no:yes:* )
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2287 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2289 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2291 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2293 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2295 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2296 ( $as_echo "## ------------------------------------ ##
2297 ## Report this to chappa@washington.edu ##
2298 ## ------------------------------------ ##"
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2301 esac
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 eval "$3=\$ac_header_compiler"
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 } # ac_fn_c_check_header_mongrel
2317 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2318 # -------------------------------------------
2319 # Tests whether TYPE exists after having Included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_c_check_type ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if eval \${$3+:} false; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 if (sizeof ($2))
2337 return 0;
2339 return 0;
2341 _ACEOF
2342 if ac_fn_c_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2347 main ()
2349 if (sizeof (($2)))
2350 return 0;
2352 return 0;
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"; then :
2357 else
2358 eval "$3=yes"
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369 } # ac_fn_c_check_type
2371 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2372 # --------------------------------------------
2373 # Tries to find the compile-time value of EXPR in a program that includes
2374 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2375 # computed
2376 ac_fn_c_compute_int ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 if test "$cross_compiling" = yes; then
2380 # Depending upon the size, compute the lo and hi bounds.
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2385 main ()
2387 static int test_array [1 - 2 * !(($2) >= 0)];
2388 test_array [0] = 0;
2389 return test_array [0];
2392 return 0;
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 ac_lo=0 ac_mid=0
2397 while :; do
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2402 main ()
2404 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2405 test_array [0] = 0;
2406 return test_array [0];
2409 return 0;
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_hi=$ac_mid; break
2414 else
2415 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2416 if test $ac_lo -le $ac_mid; then
2417 ac_lo= ac_hi=
2418 break
2420 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 done
2424 else
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2429 main ()
2431 static int test_array [1 - 2 * !(($2) < 0)];
2432 test_array [0] = 0;
2433 return test_array [0];
2436 return 0;
2438 _ACEOF
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440 ac_hi=-1 ac_mid=-1
2441 while :; do
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2446 main ()
2448 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2449 test_array [0] = 0;
2450 return test_array [0];
2453 return 0;
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_lo=$ac_mid; break
2458 else
2459 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2460 if test $ac_mid -le $ac_hi; then
2461 ac_lo= ac_hi=
2462 break
2464 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 done
2468 else
2469 ac_lo= ac_hi=
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 # Binary search between lo and hi bounds.
2475 while test "x$ac_lo" != "x$ac_hi"; do
2476 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2481 main ()
2483 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2484 test_array [0] = 0;
2485 return test_array [0];
2488 return 0;
2490 _ACEOF
2491 if ac_fn_c_try_compile "$LINENO"; then :
2492 ac_hi=$ac_mid
2493 else
2494 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 done
2498 case $ac_lo in #((
2499 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2500 '') ac_retval=1 ;;
2501 esac
2502 else
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2506 static long int longval () { return $2; }
2507 static unsigned long int ulongval () { return $2; }
2508 #include <stdio.h>
2509 #include <stdlib.h>
2511 main ()
2514 FILE *f = fopen ("conftest.val", "w");
2515 if (! f)
2516 return 1;
2517 if (($2) < 0)
2519 long int i = longval ();
2520 if (i != ($2))
2521 return 1;
2522 fprintf (f, "%ld", i);
2524 else
2526 unsigned long int i = ulongval ();
2527 if (i != ($2))
2528 return 1;
2529 fprintf (f, "%lu", i);
2531 /* Do not output a trailing newline, as this causes \r\n confusion
2532 on some platforms. */
2533 return ferror (f) || fclose (f) != 0;
2536 return 0;
2538 _ACEOF
2539 if ac_fn_c_try_run "$LINENO"; then :
2540 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2541 else
2542 ac_retval=1
2544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2545 conftest.$ac_objext conftest.beam conftest.$ac_ext
2546 rm -f conftest.val
2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550 as_fn_set_status $ac_retval
2552 } # ac_fn_c_compute_int
2553 cat >config.log <<_ACEOF
2554 This file contains any messages produced by compilers while
2555 running configure, to aid debugging if configure makes a mistake.
2557 It was created by alpine $as_me 2.11.2, which was
2558 generated by GNU Autoconf 2.69. Invocation command line was
2560 $ $0 $@
2562 _ACEOF
2563 exec 5>>config.log
2565 cat <<_ASUNAME
2566 ## --------- ##
2567 ## Platform. ##
2568 ## --------- ##
2570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2587 _ASUNAME
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 $as_echo "PATH: $as_dir"
2595 done
2596 IFS=$as_save_IFS
2598 } >&5
2600 cat >&5 <<_ACEOF
2603 ## ----------- ##
2604 ## Core tests. ##
2605 ## ----------- ##
2607 _ACEOF
2610 # Keep a trace of the command line.
2611 # Strip out --no-create and --no-recursion so they do not pile up.
2612 # Strip out --silent because we don't want to record it for future runs.
2613 # Also quote any args containing shell meta-characters.
2614 # Make two passes to allow for proper duplicate-argument suppression.
2615 ac_configure_args=
2616 ac_configure_args0=
2617 ac_configure_args1=
2618 ac_must_keep_next=false
2619 for ac_pass in 1 2
2621 for ac_arg
2623 case $ac_arg in
2624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2626 | -silent | --silent | --silen | --sile | --sil)
2627 continue ;;
2628 *\'*)
2629 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 esac
2631 case $ac_pass in
2632 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2634 as_fn_append ac_configure_args1 " '$ac_arg'"
2635 if test $ac_must_keep_next = true; then
2636 ac_must_keep_next=false # Got value, back to normal.
2637 else
2638 case $ac_arg in
2639 *=* | --config-cache | -C | -disable-* | --disable-* \
2640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2642 | -with-* | --with-* | -without-* | --without-* | --x)
2643 case "$ac_configure_args0 " in
2644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2645 esac
2647 -* ) ac_must_keep_next=true ;;
2648 esac
2650 as_fn_append ac_configure_args " '$ac_arg'"
2652 esac
2653 done
2654 done
2655 { ac_configure_args0=; unset ac_configure_args0;}
2656 { ac_configure_args1=; unset ac_configure_args1;}
2658 # When interrupted or exit'd, cleanup temporary files, and complete
2659 # config.log. We remove comments because anyway the quotes in there
2660 # would cause problems or look ugly.
2661 # WARNING: Use '\'' to represent an apostrophe within the trap.
2662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2663 trap 'exit_status=$?
2664 # Save into config.log some information that might help in debugging.
2666 echo
2668 $as_echo "## ---------------- ##
2669 ## Cache variables. ##
2670 ## ---------------- ##"
2671 echo
2672 # The following way of writing the cache mishandles newlines in values,
2674 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2675 eval ac_val=\$$ac_var
2676 case $ac_val in #(
2677 *${as_nl}*)
2678 case $ac_var in #(
2679 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2680 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2681 esac
2682 case $ac_var in #(
2683 _ | IFS | as_nl) ;; #(
2684 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2685 *) { eval $ac_var=; unset $ac_var;} ;;
2686 esac ;;
2687 esac
2688 done
2689 (set) 2>&1 |
2690 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2691 *${as_nl}ac_space=\ *)
2692 sed -n \
2693 "s/'\''/'\''\\\\'\'''\''/g;
2694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2695 ;; #(
2697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2699 esac |
2700 sort
2702 echo
2704 $as_echo "## ----------------- ##
2705 ## Output variables. ##
2706 ## ----------------- ##"
2707 echo
2708 for ac_var in $ac_subst_vars
2710 eval ac_val=\$$ac_var
2711 case $ac_val in
2712 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2713 esac
2714 $as_echo "$ac_var='\''$ac_val'\''"
2715 done | sort
2716 echo
2718 if test -n "$ac_subst_files"; then
2719 $as_echo "## ------------------- ##
2720 ## File substitutions. ##
2721 ## ------------------- ##"
2722 echo
2723 for ac_var in $ac_subst_files
2725 eval ac_val=\$$ac_var
2726 case $ac_val in
2727 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2728 esac
2729 $as_echo "$ac_var='\''$ac_val'\''"
2730 done | sort
2731 echo
2734 if test -s confdefs.h; then
2735 $as_echo "## ----------- ##
2736 ## confdefs.h. ##
2737 ## ----------- ##"
2738 echo
2739 cat confdefs.h
2740 echo
2742 test "$ac_signal" != 0 &&
2743 $as_echo "$as_me: caught signal $ac_signal"
2744 $as_echo "$as_me: exit $exit_status"
2745 } >&5
2746 rm -f core *.core core.conftest.* &&
2747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2748 exit $exit_status
2750 for ac_signal in 1 2 13 15; do
2751 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2752 done
2753 ac_signal=0
2755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2756 rm -f -r conftest* confdefs.h
2758 $as_echo "/* confdefs.h */" > confdefs.h
2760 # Predefined preprocessor variables.
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE_NAME "$PACKAGE_NAME"
2764 _ACEOF
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2768 _ACEOF
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2772 _ACEOF
2774 cat >>confdefs.h <<_ACEOF
2775 #define PACKAGE_STRING "$PACKAGE_STRING"
2776 _ACEOF
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2780 _ACEOF
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE_URL "$PACKAGE_URL"
2784 _ACEOF
2787 # Let the site file select an alternate cache file if it wants to.
2788 # Prefer an explicitly selected file to automatically selected ones.
2789 ac_site_file1=NONE
2790 ac_site_file2=NONE
2791 if test -n "$CONFIG_SITE"; then
2792 # We do not want a PATH search for config.site.
2793 case $CONFIG_SITE in #((
2794 -*) ac_site_file1=./$CONFIG_SITE;;
2795 */*) ac_site_file1=$CONFIG_SITE;;
2796 *) ac_site_file1=./$CONFIG_SITE;;
2797 esac
2798 elif test "x$prefix" != xNONE; then
2799 ac_site_file1=$prefix/share/config.site
2800 ac_site_file2=$prefix/etc/config.site
2801 else
2802 ac_site_file1=$ac_default_prefix/share/config.site
2803 ac_site_file2=$ac_default_prefix/etc/config.site
2805 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2807 test "x$ac_site_file" = xNONE && continue
2808 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2810 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2811 sed 's/^/| /' "$ac_site_file" >&5
2812 . "$ac_site_file" \
2813 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 as_fn_error $? "failed to load site script $ac_site_file
2816 See \`config.log' for more details" "$LINENO" 5; }
2818 done
2820 if test -r "$cache_file"; then
2821 # Some versions of bash will fail to source /dev/null (special files
2822 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2823 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2825 $as_echo "$as_me: loading cache $cache_file" >&6;}
2826 case $cache_file in
2827 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2828 *) . "./$cache_file";;
2829 esac
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2833 $as_echo "$as_me: creating cache $cache_file" >&6;}
2834 >$cache_file
2837 gt_needs="$gt_needs "
2838 # Check that the precious variables saved in the cache have kept the same
2839 # value.
2840 ac_cache_corrupted=false
2841 for ac_var in $ac_precious_vars; do
2842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2843 eval ac_new_set=\$ac_env_${ac_var}_set
2844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2845 eval ac_new_val=\$ac_env_${ac_var}_value
2846 case $ac_old_set,$ac_new_set in
2847 set,)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2849 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2850 ac_cache_corrupted=: ;;
2851 ,set)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2855 ,);;
2857 if test "x$ac_old_val" != "x$ac_new_val"; then
2858 # differences in whitespace do not lead to failure.
2859 ac_old_val_w=`echo x $ac_old_val`
2860 ac_new_val_w=`echo x $ac_new_val`
2861 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2863 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2864 ac_cache_corrupted=:
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2867 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2868 eval $ac_var=\$ac_old_val
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2871 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2873 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2874 fi;;
2875 esac
2876 # Pass precious variables to config.status.
2877 if test "$ac_new_set" = set; then
2878 case $ac_new_val in
2879 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2880 *) ac_arg=$ac_var=$ac_new_val ;;
2881 esac
2882 case " $ac_configure_args " in
2883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2884 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2885 esac
2887 done
2888 if $ac_cache_corrupted; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2892 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2893 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2895 ## -------------------- ##
2896 ## Main body of script. ##
2897 ## -------------------- ##
2899 ac_ext=c
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 ac_config_headers="$ac_config_headers include/config.h"
2911 am__api_version='1.11'
2913 ac_aux_dir=
2914 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2915 if test -f "$ac_dir/install-sh"; then
2916 ac_aux_dir=$ac_dir
2917 ac_install_sh="$ac_aux_dir/install-sh -c"
2918 break
2919 elif test -f "$ac_dir/install.sh"; then
2920 ac_aux_dir=$ac_dir
2921 ac_install_sh="$ac_aux_dir/install.sh -c"
2922 break
2923 elif test -f "$ac_dir/shtool"; then
2924 ac_aux_dir=$ac_dir
2925 ac_install_sh="$ac_aux_dir/shtool install -c"
2926 break
2928 done
2929 if test -z "$ac_aux_dir"; then
2930 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2933 # These three variables are undocumented and unsupported,
2934 # and are intended to be withdrawn in a future Autoconf release.
2935 # They can cause serious problems if a builder's source tree is in a directory
2936 # whose full name contains unusual characters.
2937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2942 # Find a good install program. We prefer a C program (faster),
2943 # so one script is as good as another. But avoid the broken or
2944 # incompatible versions:
2945 # SysV /etc/install, /usr/sbin/install
2946 # SunOS /usr/etc/install
2947 # IRIX /sbin/install
2948 # AIX /bin/install
2949 # AmigaOS /C/install, which installs bootblocks on floppy discs
2950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2953 # OS/2's system install, which has a completely different semantic
2954 # ./install, which can be erroneously created by make from ./install.sh.
2955 # Reject install programs that cannot install multiple files.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2957 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2958 if test -z "$INSTALL"; then
2959 if ${ac_cv_path_install+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 # Account for people who put trailing slashes in PATH elements.
2968 case $as_dir/ in #((
2969 ./ | .// | /[cC]/* | \
2970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2971 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2972 /usr/ucb/* ) ;;
2974 # OSF1 and SCO ODT 3.0 have their own names for install.
2975 # Don't use installbsd from OSF since it installs stuff as root
2976 # by default.
2977 for ac_prog in ginstall scoinst install; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2980 if test $ac_prog = install &&
2981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # AIX install. It has an incompatible calling convention.
2984 elif test $ac_prog = install &&
2985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # program-specific install script used by HP pwplus--don't use.
2988 else
2989 rm -rf conftest.one conftest.two conftest.dir
2990 echo one > conftest.one
2991 echo two > conftest.two
2992 mkdir conftest.dir
2993 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2994 test -s conftest.one && test -s conftest.two &&
2995 test -s conftest.dir/conftest.one &&
2996 test -s conftest.dir/conftest.two
2997 then
2998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2999 break 3
3003 done
3004 done
3006 esac
3008 done
3009 IFS=$as_save_IFS
3011 rm -rf conftest.one conftest.two conftest.dir
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3016 else
3017 # As a last resort, use the slow shell script. Don't cache a
3018 # value for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the value is a relative name.
3021 INSTALL=$ac_install_sh
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3025 $as_echo "$INSTALL" >&6; }
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3036 $as_echo_n "checking whether build environment is sane... " >&6; }
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Reject unsafe characters in $srcdir or the absolute working directory
3041 # name. Accept space and tab only in the latter.
3042 am_lf='
3044 case `pwd` in
3045 *[\\\"\#\$\&\'\`$am_lf]*)
3046 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3047 esac
3048 case $srcdir in
3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3050 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3051 esac
3053 # Do `set' in a subshell so we don't clobber the current shell's
3054 # arguments. Must try -L first in case configure is actually a
3055 # symlink; some systems play weird games with the mod time of symlinks
3056 # (eg FreeBSD returns the mod time of the symlink's containing
3057 # directory).
3058 if (
3059 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3060 if test "$*" = "X"; then
3061 # -L didn't work.
3062 set X `ls -t "$srcdir/configure" conftest.file`
3064 rm -f conftest.file
3065 if test "$*" != "X $srcdir/configure conftest.file" \
3066 && test "$*" != "X conftest.file $srcdir/configure"; then
3068 # If neither matched, then we have a broken ls. This can happen
3069 # if, for instance, CONFIG_SHELL is bash and it inherits a
3070 # broken ls alias from the environment. This has actually
3071 # happened. Such a system could not be considered "sane".
3072 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3073 alias in your environment" "$LINENO" 5
3076 test "$2" = conftest.file
3078 then
3079 # Ok.
3081 else
3082 as_fn_error $? "newly created file is older than distributed files!
3083 Check your system clock" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 test "$program_prefix" != NONE &&
3088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3089 # Use a double $ so make ignores it.
3090 test "$program_suffix" != NONE &&
3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3092 # Double any \ or $.
3093 # By default was `s,x,x', remove it if useless.
3094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3097 # expand $ac_aux_dir to an absolute path
3098 am_aux_dir=`cd $ac_aux_dir && pwd`
3100 if test x"${MISSING+set}" != xset; then
3101 case $am_aux_dir in
3102 *\ * | *\ *)
3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3106 esac
3108 # Use eval to expand $SHELL
3109 if eval "$MISSING --run true"; then
3110 am_missing_run="$MISSING --run "
3111 else
3112 am_missing_run=
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3114 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3117 if test x"${install_sh}" != xset; then
3118 case $am_aux_dir in
3119 *\ * | *\ *)
3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3122 install_sh="\${SHELL} $am_aux_dir/install-sh"
3123 esac
3126 # Installed binaries are usually stripped using `strip' when the user
3127 # run `make install-strip'. However `strip' might not be the right
3128 # tool to use in cross-compilation environments, therefore Automake
3129 # will honor the `STRIP' environment variable to overrule this program.
3130 if test "$cross_compiling" != no; then
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}strip; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_STRIP+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 $as_echo "$STRIP" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_STRIP="strip"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3200 if test -n "$ac_ct_STRIP"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3202 $as_echo "$ac_ct_STRIP" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3208 if test "x$ac_ct_STRIP" = x; then
3209 STRIP=":"
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 STRIP=$ac_ct_STRIP
3219 else
3220 STRIP="$ac_cv_prog_STRIP"
3224 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3227 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3228 if test -z "$MKDIR_P"; then
3229 if ${ac_cv_path_mkdir+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_prog in mkdir gmkdir; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3241 'mkdir (GNU coreutils) '* | \
3242 'mkdir (coreutils) '* | \
3243 'mkdir (fileutils) '4.1*)
3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3245 break 3;;
3246 esac
3247 done
3248 done
3249 done
3250 IFS=$as_save_IFS
3254 test -d ./--version && rmdir ./--version
3255 if test "${ac_cv_path_mkdir+set}" = set; then
3256 MKDIR_P="$ac_cv_path_mkdir -p"
3257 else
3258 # As a last resort, use the slow shell script. Don't cache a
3259 # value for MKDIR_P within a source directory, because that will
3260 # break other packages using the cache if that directory is
3261 # removed, or if the value is a relative name.
3262 MKDIR_P="$ac_install_sh -d"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3266 $as_echo "$MKDIR_P" >&6; }
3268 mkdir_p="$MKDIR_P"
3269 case $mkdir_p in
3270 [\\/$]* | ?:[\\/]*) ;;
3271 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3272 esac
3274 for ac_prog in gawk mawk nawk awk
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_AWK+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$AWK"; then
3284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AWK="$ac_prog"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 AWK=$ac_cv_prog_AWK
3304 if test -n "$AWK"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3306 $as_echo "$AWK" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$AWK" && break
3314 done
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3318 set x ${MAKE-make}
3319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3320 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 cat >conftest.make <<\_ACEOF
3324 SHELL = /bin/sh
3325 all:
3326 @echo '@@@%%%=$(MAKE)=@@@%%%'
3327 _ACEOF
3328 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3330 *@@@%%%=?*=@@@%%%*)
3331 eval ac_cv_prog_make_${ac_make}_set=yes;;
3333 eval ac_cv_prog_make_${ac_make}_set=no;;
3334 esac
3335 rm -f conftest.make
3337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 SET_MAKE=
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 SET_MAKE="MAKE=${MAKE-make}"
3347 rm -rf .tst 2>/dev/null
3348 mkdir .tst 2>/dev/null
3349 if test -d .tst; then
3350 am__leading_dot=.
3351 else
3352 am__leading_dot=_
3354 rmdir .tst 2>/dev/null
3356 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3358 # is not polluted with repeated "-I."
3359 am__isrc=' -I$(srcdir)'
3360 # test to see if srcdir already configured
3361 if test -f $srcdir/config.status; then
3362 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3366 # test whether we have cygpath
3367 if test -z "$CYGPATH_W"; then
3368 if (cygpath --version) >/dev/null 2>/dev/null; then
3369 CYGPATH_W='cygpath -w'
3370 else
3371 CYGPATH_W=echo
3376 # Define the identity of the package.
3377 PACKAGE='alpine'
3378 VERSION='2.11.2'
3381 cat >>confdefs.h <<_ACEOF
3382 #define PACKAGE "$PACKAGE"
3383 _ACEOF
3386 cat >>confdefs.h <<_ACEOF
3387 #define VERSION "$VERSION"
3388 _ACEOF
3390 # Some tools Automake needs.
3392 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3395 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3398 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3401 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3404 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3406 # We need awk for the "check" target. The system "awk" is bad on
3407 # some platforms.
3408 # Always define AMTAR for backward compatibility.
3410 AMTAR=${AMTAR-"${am_missing_run}tar"}
3412 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3421 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3422 # Check whether --enable-maintainer-mode was given.
3423 if test "${enable_maintainer_mode+set}" = set; then :
3424 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3425 else
3426 USE_MAINTAINER_MODE=no
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3430 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3431 if test $USE_MAINTAINER_MODE = yes; then
3432 MAINTAINER_MODE_TRUE=
3433 MAINTAINER_MODE_FALSE='#'
3434 else
3435 MAINTAINER_MODE_TRUE='#'
3436 MAINTAINER_MODE_FALSE=
3439 MAINT=$MAINTAINER_MODE_TRUE
3443 # Make sure we can run config.sub.
3444 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3445 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3448 $as_echo_n "checking build system type... " >&6; }
3449 if ${ac_cv_build+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 ac_build_alias=$build_alias
3453 test "x$ac_build_alias" = x &&
3454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3455 test "x$ac_build_alias" = x &&
3456 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3457 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3462 $as_echo "$ac_cv_build" >&6; }
3463 case $ac_cv_build in
3464 *-*-*) ;;
3465 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3466 esac
3467 build=$ac_cv_build
3468 ac_save_IFS=$IFS; IFS='-'
3469 set x $ac_cv_build
3470 shift
3471 build_cpu=$1
3472 build_vendor=$2
3473 shift; shift
3474 # Remember, the first character of IFS is used to create $*,
3475 # except with old shells:
3476 build_os=$*
3477 IFS=$ac_save_IFS
3478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3482 $as_echo_n "checking host system type... " >&6; }
3483 if ${ac_cv_host+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test "x$host_alias" = x; then
3487 ac_cv_host=$ac_cv_build
3488 else
3489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3495 $as_echo "$ac_cv_host" >&6; }
3496 case $ac_cv_host in
3497 *-*-*) ;;
3498 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3499 esac
3500 host=$ac_cv_host
3501 ac_save_IFS=$IFS; IFS='-'
3502 set x $ac_cv_host
3503 shift
3504 host_cpu=$1
3505 host_vendor=$2
3506 shift; shift
3507 # Remember, the first character of IFS is used to create $*,
3508 # except with old shells:
3509 host_os=$*
3510 IFS=$ac_save_IFS
3511 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3523 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3525 # start out with intent to build Web Alpine
3526 WEB_BUILD=web/src/alpined.d
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3622 else
3623 CC="$ac_cv_prog_CC"
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3649 done
3650 done
3651 IFS=$as_save_IFS
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3765 done
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3809 done
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details" "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3852 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 $as_echo_n "checking whether the C compiler works... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933 else
3934 ac_file=''
3936 if test -z "$ac_file"; then :
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error 77 "C compiler cannot create executables
3945 See \`config.log' for more details" "$LINENO" 5; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3951 $as_echo_n "checking for C compiler default output file name... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3953 $as_echo "$ac_file" >&6; }
3954 ac_exeext=$ac_cv_exeext
3956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3957 ac_clean_files=$ac_clean_files_save
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 # `rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 break;;
3981 * ) break;;
3982 esac
3983 done
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details" "$LINENO" 5; }
3990 rm -f conftest conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3996 ac_exeext=$EXEEXT
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <stdio.h>
4001 main ()
4003 FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
4007 return 0;
4009 _ACEOF
4010 ac_clean_files="$ac_clean_files conftest.out"
4011 # Check that the compiler produces executables we can run. If not, either
4012 # the compiler is broken, or we cross compile.
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4014 $as_echo_n "checking whether we are cross compiling... " >&6; }
4015 if test "$cross_compiling" != yes; then
4016 { { ac_try="$ac_link"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027 if { ac_try='./conftest$ac_cv_exeext'
4028 { { case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_try") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4038 cross_compiling=no
4039 else
4040 if test "$cross_compiling" = maybe; then
4041 cross_compiling=yes
4042 else
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot run C compiled programs.
4046 If you meant to cross compile, use \`--host'.
4047 See \`config.log' for more details" "$LINENO" 5; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052 $as_echo "$cross_compiling" >&6; }
4054 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4055 ac_clean_files=$ac_clean_files_save
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057 $as_echo_n "checking for suffix of object files... " >&6; }
4058 if ${ac_cv_objext+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 main ()
4069 return 0;
4071 _ACEOF
4072 rm -f conftest.o conftest.obj
4073 if { { ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_compile") 2>&5
4081 ac_status=$?
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 for ac_file in conftest.o conftest.obj conftest.*; do
4085 test -f "$ac_file" || continue;
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4089 break;;
4090 esac
4091 done
4092 else
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "cannot compute suffix of object files: cannot compile
4099 See \`config.log' for more details" "$LINENO" 5; }
4101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4104 $as_echo "$ac_cv_objext" >&6; }
4105 OBJEXT=$ac_cv_objext
4106 ac_objext=$OBJEXT
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109 if ${ac_cv_c_compiler_gnu+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4116 main ()
4118 #ifndef __GNUC__
4119 choke me
4120 #endif
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
4128 else
4129 ac_compiler_gnu=no
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137 if test $ac_compiler_gnu = yes; then
4138 GCC=yes
4139 else
4140 GCC=
4142 ac_test_CFLAGS=${CFLAGS+set}
4143 ac_save_CFLAGS=$CFLAGS
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4146 if ${ac_cv_prog_cc_g+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 main ()
4161 return 0;
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
4166 else
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 main ()
4176 return 0;
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4181 else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 main ()
4192 return 0;
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 $as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224 if ${ac_cv_prog_cc_c89+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_cv_prog_cc_c89=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 struct stat;
4234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235 struct buf { int x; };
4236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237 static char *e (p, i)
4238 char **p;
4239 int i;
4241 return p[i];
4243 static char *f (char * (*g) (char **, int), char **p, ...)
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264 #define FOO(x) 'x'
4265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267 int test (int i, double x);
4268 struct s1 {int (*f) (int a);};
4269 struct s2 {int (*f) (double a);};
4270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271 int argc;
4272 char **argv;
4274 main ()
4276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4278 return 0;
4280 _ACEOF
4281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 done
4291 rm -f conftest.$ac_ext
4292 CC=$ac_save_CC
4295 # AC_CACHE_VAL
4296 case "x$ac_cv_prog_cc_c89" in
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307 esac
4308 if test "x$ac_cv_prog_cc_c89" != xno; then :
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 DEPDIR="${am__leading_dot}deps"
4319 ac_config_commands="$ac_config_commands depfiles"
4322 am_make=${MAKE-make}
4323 cat > confinc << 'END'
4324 am__doit:
4325 @echo this is the am__doit target
4326 .PHONY: am__doit
4328 # If we don't find an include directive, just comment out the code.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4330 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4331 am__include="#"
4332 am__quote=
4333 _am_result=none
4334 # First try GNU make style include.
4335 echo "include confinc" > confmf
4336 # Ignore all kinds of additional output from `make'.
4337 case `$am_make -s -f confmf 2> /dev/null` in #(
4338 *the\ am__doit\ target*)
4339 am__include=include
4340 am__quote=
4341 _am_result=GNU
4343 esac
4344 # Now try BSD make style include.
4345 if test "$am__include" = "#"; then
4346 echo '.include "confinc"' > confmf
4347 case `$am_make -s -f confmf 2> /dev/null` in #(
4348 *the\ am__doit\ target*)
4349 am__include=.include
4350 am__quote="\""
4351 _am_result=BSD
4353 esac
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4358 $as_echo "$_am_result" >&6; }
4359 rm -f confinc confmf
4361 # Check whether --enable-dependency-tracking was given.
4362 if test "${enable_dependency_tracking+set}" = set; then :
4363 enableval=$enable_dependency_tracking;
4366 if test "x$enable_dependency_tracking" != xno; then
4367 am_depcomp="$ac_aux_dir/depcomp"
4368 AMDEPBACKSLASH='\'
4370 if test "x$enable_dependency_tracking" != xno; then
4371 AMDEP_TRUE=
4372 AMDEP_FALSE='#'
4373 else
4374 AMDEP_TRUE='#'
4375 AMDEP_FALSE=
4380 depcc="$CC" am_compiler_list=
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383 $as_echo_n "checking dependency style of $depcc... " >&6; }
4384 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388 # We make a subdir and do the tests there. Otherwise we can end up
4389 # making bogus files that we don't know about and never remove. For
4390 # instance it was reported that on HP-UX the gcc test will end up
4391 # making a dummy file named `D' -- because `-MD' means `put the output
4392 # in D'.
4393 mkdir conftest.dir
4394 # Copy depcomp to subdir because otherwise we won't find it if we're
4395 # using a relative directory.
4396 cp "$am_depcomp" conftest.dir
4397 cd conftest.dir
4398 # We will build objects and dependencies in a subdirectory because
4399 # it helps to detect inapplicable dependency modes. For instance
4400 # both Tru64's cc and ICC support -MD to output dependencies as a
4401 # side effect of compilation, but ICC will put the dependencies in
4402 # the current directory while Tru64 will put them in the object
4403 # directory.
4404 mkdir sub
4406 am_cv_CC_dependencies_compiler_type=none
4407 if test "$am_compiler_list" = ""; then
4408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4410 am__universal=false
4411 case " $depcc " in #(
4412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4413 esac
4415 for depmode in $am_compiler_list; do
4416 # Setup a source with many dependencies, because some compilers
4417 # like to wrap large dependency lists on column 80 (with \), and
4418 # we should not choose a depcomp mode which is confused by this.
4420 # We need to recreate these files for each test, as the compiler may
4421 # overwrite some of them when testing with obscure command lines.
4422 # This happens at least with the AIX C compiler.
4423 : > sub/conftest.c
4424 for i in 1 2 3 4 5 6; do
4425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4426 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4427 # Solaris 8's {/usr,}/bin/sh.
4428 touch sub/conftst$i.h
4429 done
4430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4433 # mode. It turns out that the SunPro C++ compiler does not properly
4434 # handle `-M -o', and we need to detect this. Also, some Intel
4435 # versions had trouble with output in subdirs
4436 am__obj=sub/conftest.${OBJEXT-o}
4437 am__minus_obj="-o $am__obj"
4438 case $depmode in
4439 gcc)
4440 # This depmode causes a compiler race in universal mode.
4441 test "$am__universal" = false || continue
4443 nosideeffect)
4444 # after this tag, mechanisms are not by side-effect, so they'll
4445 # only be used when explicitly requested
4446 if test "x$enable_dependency_tracking" = xyes; then
4447 continue
4448 else
4449 break
4452 msvisualcpp | msvcmsys)
4453 # This compiler won't grok `-c -o', but also, the minuso test has
4454 # not run yet. These depmodes are late enough in the game, and
4455 # so weak that their functioning should not be impacted.
4456 am__obj=conftest.${OBJEXT-o}
4457 am__minus_obj=
4459 none) break ;;
4460 esac
4461 if depmode=$depmode \
4462 source=sub/conftest.c object=$am__obj \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4465 >/dev/null 2>conftest.err &&
4466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CC_dependencies_compiler_type=$depmode
4480 break
4483 done
4485 cd ..
4486 rm -rf conftest.dir
4487 else
4488 am_cv_CC_dependencies_compiler_type=none
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4493 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4494 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4497 test "x$enable_dependency_tracking" != xno \
4498 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCC_TRUE=
4500 am__fastdepCC_FALSE='#'
4501 else
4502 am__fastdepCC_TRUE='#'
4503 am__fastdepCC_FALSE=
4507 case $ac_cv_prog_cc_stdc in #(
4508 no) :
4509 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4510 *) :
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4512 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4513 if ${ac_cv_prog_cc_c99+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 ac_cv_prog_cc_c99=no
4517 ac_save_CC=$CC
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <stdarg.h>
4521 #include <stdbool.h>
4522 #include <stdlib.h>
4523 #include <wchar.h>
4524 #include <stdio.h>
4526 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4527 #define debug(...) fprintf (stderr, __VA_ARGS__)
4528 #define showlist(...) puts (#__VA_ARGS__)
4529 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4530 static void
4531 test_varargs_macros (void)
4533 int x = 1234;
4534 int y = 5678;
4535 debug ("Flag");
4536 debug ("X = %d\n", x);
4537 showlist (The first, second, and third items.);
4538 report (x>y, "x is %d but y is %d", x, y);
4541 // Check long long types.
4542 #define BIG64 18446744073709551615ull
4543 #define BIG32 4294967295ul
4544 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4545 #if !BIG_OK
4546 your preprocessor is broken;
4547 #endif
4548 #if BIG_OK
4549 #else
4550 your preprocessor is broken;
4551 #endif
4552 static long long int bignum = -9223372036854775807LL;
4553 static unsigned long long int ubignum = BIG64;
4555 struct incomplete_array
4557 int datasize;
4558 double data[];
4561 struct named_init {
4562 int number;
4563 const wchar_t *name;
4564 double average;
4567 typedef const char *ccp;
4569 static inline int
4570 test_restrict (ccp restrict text)
4572 // See if C++-style comments work.
4573 // Iterate through items via the restricted pointer.
4574 // Also check for declarations in for loops.
4575 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4576 continue;
4577 return 0;
4580 // Check varargs and va_copy.
4581 static void
4582 test_varargs (const char *format, ...)
4584 va_list args;
4585 va_start (args, format);
4586 va_list args_copy;
4587 va_copy (args_copy, args);
4589 const char *str;
4590 int number;
4591 float fnumber;
4593 while (*format)
4595 switch (*format++)
4597 case 's': // string
4598 str = va_arg (args_copy, const char *);
4599 break;
4600 case 'd': // int
4601 number = va_arg (args_copy, int);
4602 break;
4603 case 'f': // float
4604 fnumber = va_arg (args_copy, double);
4605 break;
4606 default:
4607 break;
4610 va_end (args_copy);
4611 va_end (args);
4615 main ()
4618 // Check bool.
4619 _Bool success = false;
4621 // Check restrict.
4622 if (test_restrict ("String literal") == 0)
4623 success = true;
4624 char *restrict newvar = "Another string";
4626 // Check varargs.
4627 test_varargs ("s, d' f .", "string", 65, 34.234);
4628 test_varargs_macros ();
4630 // Check flexible array members.
4631 struct incomplete_array *ia =
4632 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4633 ia->datasize = 10;
4634 for (int i = 0; i < ia->datasize; ++i)
4635 ia->data[i] = i * 1.234;
4637 // Check named initializers.
4638 struct named_init ni = {
4639 .number = 34,
4640 .name = L"Test wide string",
4641 .average = 543.34343,
4644 ni.number = 58;
4646 int dynamic_array[ni.number];
4647 dynamic_array[ni.number - 1] = 543;
4649 // work around unused variable warnings
4650 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4651 || dynamic_array[ni.number - 1] != 543);
4654 return 0;
4656 _ACEOF
4657 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4659 CC="$ac_save_CC $ac_arg"
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_prog_cc_c99=$ac_arg
4663 rm -f core conftest.err conftest.$ac_objext
4664 test "x$ac_cv_prog_cc_c99" != "xno" && break
4665 done
4666 rm -f conftest.$ac_ext
4667 CC=$ac_save_CC
4670 # AC_CACHE_VAL
4671 case "x$ac_cv_prog_cc_c99" in
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4674 $as_echo "none needed" >&6; } ;;
4675 xno)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4677 $as_echo "unsupported" >&6; } ;;
4679 CC="$CC $ac_cv_prog_cc_c99"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4681 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4682 esac
4683 if test "x$ac_cv_prog_cc_c99" != xno; then :
4684 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4687 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4688 if ${ac_cv_prog_cc_c89+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_cv_prog_cc_c89=no
4692 ac_save_CC=$CC
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <stdarg.h>
4696 #include <stdio.h>
4697 struct stat;
4698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4699 struct buf { int x; };
4700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4701 static char *e (p, i)
4702 char **p;
4703 int i;
4705 return p[i];
4707 static char *f (char * (*g) (char **, int), char **p, ...)
4709 char *s;
4710 va_list v;
4711 va_start (v,p);
4712 s = g (p, va_arg (v,int));
4713 va_end (v);
4714 return s;
4717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4718 function prototypes and stuff, but not '\xHH' hex character constants.
4719 These don't provoke an error unfortunately, instead are silently treated
4720 as 'x'. The following induces an error, until -std is added to get
4721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4722 array size at least. It's necessary to write '\x00'==0 to get something
4723 that's true only with -std. */
4724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4727 inside strings and character constants. */
4728 #define FOO(x) 'x'
4729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4731 int test (int i, double x);
4732 struct s1 {int (*f) (int a);};
4733 struct s2 {int (*f) (double a);};
4734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4735 int argc;
4736 char **argv;
4738 main ()
4740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4742 return 0;
4744 _ACEOF
4745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4748 CC="$ac_save_CC $ac_arg"
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_prog_cc_c89=$ac_arg
4752 rm -f core conftest.err conftest.$ac_objext
4753 test "x$ac_cv_prog_cc_c89" != "xno" && break
4754 done
4755 rm -f conftest.$ac_ext
4756 CC=$ac_save_CC
4759 # AC_CACHE_VAL
4760 case "x$ac_cv_prog_cc_c89" in
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4763 $as_echo "none needed" >&6; } ;;
4764 xno)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4766 $as_echo "unsupported" >&6; } ;;
4768 CC="$CC $ac_cv_prog_cc_c89"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4771 esac
4772 if test "x$ac_cv_prog_cc_c89" != xno; then :
4773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4774 else
4775 ac_cv_prog_cc_stdc=no
4780 esac
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4782 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4783 if ${ac_cv_prog_cc_stdc+:} false; then :
4784 $as_echo_n "(cached) " >&6
4787 case $ac_cv_prog_cc_stdc in #(
4788 no) :
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 $as_echo "unsupported" >&6; } ;; #(
4791 '') :
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4793 $as_echo "none needed" >&6; } ;; #(
4794 *) :
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4796 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4797 esac
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4802 set x ${MAKE-make}
4803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat >conftest.make <<\_ACEOF
4808 SHELL = /bin/sh
4809 all:
4810 @echo '@@@%%%=$(MAKE)=@@@%%%'
4811 _ACEOF
4812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4814 *@@@%%%=?*=@@@%%%*)
4815 eval ac_cv_prog_make_${ac_make}_set=yes;;
4817 eval ac_cv_prog_make_${ac_make}_set=no;;
4818 esac
4819 rm -f conftest.make
4821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823 $as_echo "yes" >&6; }
4824 SET_MAKE=
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 SET_MAKE="MAKE=${MAKE-make}"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4832 $as_echo_n "checking whether ln -s works... " >&6; }
4833 LN_S=$as_ln_s
4834 if test "$LN_S" = "ln -s"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4839 $as_echo "no, using $LN_S" >&6; }
4842 for ac_prog in gawk mawk nawk awk
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_AWK+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$AWK"; then
4852 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_AWK="$ac_prog"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4867 IFS=$as_save_IFS
4871 AWK=$ac_cv_prog_AWK
4872 if test -n "$AWK"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4874 $as_echo "$AWK" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4881 test -n "$AWK" && break
4882 done
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_RANLIB+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$RANLIB"; then
4893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4906 done
4907 done
4908 IFS=$as_save_IFS
4912 RANLIB=$ac_cv_prog_RANLIB
4913 if test -n "$RANLIB"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4915 $as_echo "$RANLIB" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4923 if test -z "$ac_cv_prog_RANLIB"; then
4924 ac_ct_RANLIB=$RANLIB
4925 # Extract the first word of "ranlib", so it can be a program name with args.
4926 set dummy ranlib; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$ac_ct_RANLIB"; then
4933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_RANLIB="ranlib"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4953 if test -n "$ac_ct_RANLIB"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4955 $as_echo "$ac_ct_RANLIB" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4961 if test "x$ac_ct_RANLIB" = x; then
4962 RANLIB=":"
4963 else
4964 case $cross_compiling:$ac_tool_warned in
4965 yes:)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968 ac_tool_warned=yes ;;
4969 esac
4970 RANLIB=$ac_ct_RANLIB
4972 else
4973 RANLIB="$ac_cv_prog_RANLIB"
4976 case `pwd` in
4977 *\ * | *\ *)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4979 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4980 esac
4984 macro_version='2.2.6b'
4985 macro_revision='1.3018'
4999 ltmain="$ac_aux_dir/ltmain.sh"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003 if ${ac_cv_path_SED+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007 for ac_i in 1 2 3 4 5 6 7; do
5008 ac_script="$ac_script$as_nl$ac_script"
5009 done
5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011 { ac_script=; unset ac_script;}
5012 if test -z "$SED"; then
5013 ac_path_SED_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_prog in sed gsed; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023 as_fn_executable_p "$ac_path_SED" || continue
5024 # Check for GNU ac_path_SED and select it if it is found.
5025 # Check for GNU $ac_path_SED
5026 case `"$ac_path_SED" --version 2>&1` in
5027 *GNU*)
5028 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo '' >> "conftest.nl"
5038 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_SED_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_SED="$ac_path_SED"
5044 ac_path_SED_max=$ac_count
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 esac
5052 $ac_path_SED_found && break 3
5053 done
5054 done
5055 done
5056 IFS=$as_save_IFS
5057 if test -z "$ac_cv_path_SED"; then
5058 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5060 else
5061 ac_cv_path_SED=$SED
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066 $as_echo "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5068 rm -f conftest.sed
5070 test -z "$SED" && SED=sed
5071 Xsed="$SED -e 1s/^X//"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5085 if ${ac_cv_path_GREP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -z "$GREP"; then
5089 ac_path_GREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in grep ggrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5099 as_fn_executable_p "$ac_path_GREP" || continue
5100 # Check for GNU ac_path_GREP and select it if it is found.
5101 # Check for GNU $ac_path_GREP
5102 case `"$ac_path_GREP" --version 2>&1` in
5103 *GNU*)
5104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5106 ac_count=0
5107 $as_echo_n 0123456789 >"conftest.in"
5108 while :
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 $as_echo 'GREP' >> "conftest.nl"
5114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_GREP="$ac_path_GREP"
5120 ac_path_GREP_max=$ac_count
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5128 $ac_path_GREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_GREP"; then
5134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 else
5137 ac_cv_path_GREP=$GREP
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5142 $as_echo "$ac_cv_path_GREP" >&6; }
5143 GREP="$ac_cv_path_GREP"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5147 $as_echo_n "checking for egrep... " >&6; }
5148 if ${ac_cv_path_EGREP+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5152 then ac_cv_path_EGREP="$GREP -E"
5153 else
5154 if test -z "$EGREP"; then
5155 ac_path_EGREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in egrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5165 as_fn_executable_p "$ac_path_EGREP" || continue
5166 # Check for GNU ac_path_EGREP and select it if it is found.
5167 # Check for GNU $ac_path_EGREP
5168 case `"$ac_path_EGREP" --version 2>&1` in
5169 *GNU*)
5170 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5172 ac_count=0
5173 $as_echo_n 0123456789 >"conftest.in"
5174 while :
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 $as_echo 'EGREP' >> "conftest.nl"
5180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 as_fn_arith $ac_count + 1 && ac_count=$as_val
5183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_EGREP="$ac_path_EGREP"
5186 ac_path_EGREP_max=$ac_count
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5190 done
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 esac
5194 $ac_path_EGREP_found && break 3
5195 done
5196 done
5197 done
5198 IFS=$as_save_IFS
5199 if test -z "$ac_cv_path_EGREP"; then
5200 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5202 else
5203 ac_cv_path_EGREP=$EGREP
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5209 $as_echo "$ac_cv_path_EGREP" >&6; }
5210 EGREP="$ac_cv_path_EGREP"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5214 $as_echo_n "checking for fgrep... " >&6; }
5215 if ${ac_cv_path_FGREP+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5219 then ac_cv_path_FGREP="$GREP -F"
5220 else
5221 if test -z "$FGREP"; then
5222 ac_path_FGREP_found=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_prog in fgrep; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5232 as_fn_executable_p "$ac_path_FGREP" || continue
5233 # Check for GNU ac_path_FGREP and select it if it is found.
5234 # Check for GNU $ac_path_FGREP
5235 case `"$ac_path_FGREP" --version 2>&1` in
5236 *GNU*)
5237 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5239 ac_count=0
5240 $as_echo_n 0123456789 >"conftest.in"
5241 while :
5243 cat "conftest.in" "conftest.in" >"conftest.tmp"
5244 mv "conftest.tmp" "conftest.in"
5245 cp "conftest.in" "conftest.nl"
5246 $as_echo 'FGREP' >> "conftest.nl"
5247 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249 as_fn_arith $ac_count + 1 && ac_count=$as_val
5250 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_FGREP="$ac_path_FGREP"
5253 ac_path_FGREP_max=$ac_count
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5257 done
5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5259 esac
5261 $ac_path_FGREP_found && break 3
5262 done
5263 done
5264 done
5265 IFS=$as_save_IFS
5266 if test -z "$ac_cv_path_FGREP"; then
5267 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269 else
5270 ac_cv_path_FGREP=$FGREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5276 $as_echo "$ac_cv_path_FGREP" >&6; }
5277 FGREP="$ac_cv_path_FGREP"
5280 test -z "$GREP" && GREP=grep
5300 # Check whether --with-gnu-ld was given.
5301 if test "${with_gnu_ld+set}" = set; then :
5302 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5303 else
5304 with_gnu_ld=no
5307 ac_prog=ld
5308 if test "$GCC" = yes; then
5309 # Check if gcc -print-prog-name=ld gives a path.
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5311 $as_echo_n "checking for ld used by $CC... " >&6; }
5312 case $host in
5313 *-*-mingw*)
5314 # gcc leaves a trailing carriage return which upsets mingw
5315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5318 esac
5319 case $ac_prog in
5320 # Accept absolute paths.
5321 [\\/]* | ?:[\\/]*)
5322 re_direlt='/[^/][^/]*/\.\./'
5323 # Canonicalize the pathname of ld
5324 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5325 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5326 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5327 done
5328 test -z "$LD" && LD="$ac_prog"
5331 # If it fails, then pretend we aren't using GCC.
5332 ac_prog=ld
5335 # If it is relative, then search for the first ld in PATH.
5336 with_gnu_ld=unknown
5338 esac
5339 elif test "$with_gnu_ld" = yes; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5341 $as_echo_n "checking for GNU ld... " >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5344 $as_echo_n "checking for non-GNU ld... " >&6; }
5346 if ${lt_cv_path_LD+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -z "$LD"; then
5350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5351 for ac_dir in $PATH; do
5352 IFS="$lt_save_ifs"
5353 test -z "$ac_dir" && ac_dir=.
5354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5355 lt_cv_path_LD="$ac_dir/$ac_prog"
5356 # Check to see if the program is GNU ld. I'd rather use --version,
5357 # but apparently some variants of GNU ld only accept -v.
5358 # Break only if it was the GNU/non-GNU ld that we prefer.
5359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5360 *GNU* | *'with BFD'*)
5361 test "$with_gnu_ld" != no && break
5364 test "$with_gnu_ld" != yes && break
5366 esac
5368 done
5369 IFS="$lt_save_ifs"
5370 else
5371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5375 LD="$lt_cv_path_LD"
5376 if test -n "$LD"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5378 $as_echo "$LD" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5383 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5385 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5386 if ${lt_cv_prog_gnu_ld+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5390 case `$LD -v 2>&1 </dev/null` in
5391 *GNU* | *'with BFD'*)
5392 lt_cv_prog_gnu_ld=yes
5395 lt_cv_prog_gnu_ld=no
5397 esac
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5400 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5401 with_gnu_ld=$lt_cv_prog_gnu_ld
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5412 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5413 if ${lt_cv_path_NM+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$NM"; then
5417 # Let the user override the test.
5418 lt_cv_path_NM="$NM"
5419 else
5420 lt_nm_to_check="${ac_tool_prefix}nm"
5421 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5422 lt_nm_to_check="$lt_nm_to_check nm"
5424 for lt_tmp_nm in $lt_nm_to_check; do
5425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5426 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5427 IFS="$lt_save_ifs"
5428 test -z "$ac_dir" && ac_dir=.
5429 tmp_nm="$ac_dir/$lt_tmp_nm"
5430 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5431 # Check to see if the nm accepts a BSD-compat flag.
5432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5433 # nm: unknown option "B" ignored
5434 # Tru64's nm complains that /dev/null is an invalid object file
5435 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5436 */dev/null* | *'Invalid file or object type'*)
5437 lt_cv_path_NM="$tmp_nm -B"
5438 break
5441 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5442 */dev/null*)
5443 lt_cv_path_NM="$tmp_nm -p"
5444 break
5447 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5448 continue # so that we can try to find one that supports BSD flags
5450 esac
5452 esac
5454 done
5455 IFS="$lt_save_ifs"
5456 done
5457 : ${lt_cv_path_NM=no}
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5461 $as_echo "$lt_cv_path_NM" >&6; }
5462 if test "$lt_cv_path_NM" != "no"; then
5463 NM="$lt_cv_path_NM"
5464 else
5465 # Didn't find any BSD compatible name lister, look for dumpbin.
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_DUMPBIN+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$DUMPBIN"; then
5477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 DUMPBIN=$ac_cv_prog_DUMPBIN
5497 if test -n "$DUMPBIN"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5499 $as_echo "$DUMPBIN" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 test -n "$DUMPBIN" && break
5507 done
5509 if test -z "$DUMPBIN"; then
5510 ac_ct_DUMPBIN=$DUMPBIN
5511 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_DUMPBIN"; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5534 done
5535 done
5536 IFS=$as_save_IFS
5540 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5543 $as_echo "$ac_ct_DUMPBIN" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5550 test -n "$ac_ct_DUMPBIN" && break
5551 done
5553 if test "x$ac_ct_DUMPBIN" = x; then
5554 DUMPBIN=":"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 DUMPBIN=$ac_ct_DUMPBIN
5567 if test "$DUMPBIN" != ":"; then
5568 NM="$DUMPBIN"
5571 test -z "$NM" && NM=nm
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5579 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5580 if ${lt_cv_nm_interface+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 lt_cv_nm_interface="BSD nm"
5584 echo "int some_variable = 0;" > conftest.$ac_ext
5585 (eval echo "\"\$as_me:5585: $ac_compile\"" >&5)
5586 (eval "$ac_compile" 2>conftest.err)
5587 cat conftest.err >&5
5588 (eval echo "\"\$as_me:5588: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5589 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5590 cat conftest.err >&5
5591 (eval echo "\"\$as_me:5591: output\"" >&5)
5592 cat conftest.out >&5
5593 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5594 lt_cv_nm_interface="MS dumpbin"
5596 rm -f conftest*
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5599 $as_echo "$lt_cv_nm_interface" >&6; }
5601 # find the maximum length of command line arguments
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5603 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5604 if ${lt_cv_sys_max_cmd_len+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5608 teststring="ABCD"
5610 case $build_os in
5611 msdosdjgpp*)
5612 # On DJGPP, this test can blow up pretty badly due to problems in libc
5613 # (any single argument exceeding 2000 bytes causes a buffer overrun
5614 # during glob expansion). Even if it were fixed, the result of this
5615 # check would be larger than it should be.
5616 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5619 gnu*)
5620 # Under GNU Hurd, this test is not required because there is
5621 # no limit to the length of command line arguments.
5622 # Libtool will interpret -1 as no limit whatsoever
5623 lt_cv_sys_max_cmd_len=-1;
5626 cygwin* | mingw* | cegcc*)
5627 # On Win9x/ME, this test blows up -- it succeeds, but takes
5628 # about 5 minutes as the teststring grows exponentially.
5629 # Worse, since 9x/ME are not pre-emptively multitasking,
5630 # you end up with a "frozen" computer, even though with patience
5631 # the test eventually succeeds (with a max line length of 256k).
5632 # Instead, let's just punt: use the minimum linelength reported by
5633 # all of the supported platforms: 8192 (on NT/2K/XP).
5634 lt_cv_sys_max_cmd_len=8192;
5637 amigaos*)
5638 # On AmigaOS with pdksh, this test takes hours, literally.
5639 # So we just punt and use a minimum line length of 8192.
5640 lt_cv_sys_max_cmd_len=8192;
5643 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5644 # This has been around since 386BSD, at least. Likely further.
5645 if test -x /sbin/sysctl; then
5646 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5647 elif test -x /usr/sbin/sysctl; then
5648 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5649 else
5650 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5652 # And add a safety zone
5653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5657 interix*)
5658 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5659 lt_cv_sys_max_cmd_len=196608
5662 osf*)
5663 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5664 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5665 # nice to cause kernel panics so lets avoid the loop below.
5666 # First set a reasonable default.
5667 lt_cv_sys_max_cmd_len=16384
5669 if test -x /sbin/sysconfig; then
5670 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5671 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5672 esac
5675 sco3.2v5*)
5676 lt_cv_sys_max_cmd_len=102400
5678 sysv5* | sco5v6* | sysv4.2uw2*)
5679 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5680 if test -n "$kargmax"; then
5681 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5682 else
5683 lt_cv_sys_max_cmd_len=32768
5687 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5688 if test -n "$lt_cv_sys_max_cmd_len"; then
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5691 else
5692 # Make teststring a little bigger before we do anything with it.
5693 # a 1K string should be a reasonable start.
5694 for i in 1 2 3 4 5 6 7 8 ; do
5695 teststring=$teststring$teststring
5696 done
5697 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5698 # If test is not a shell built-in, we'll probably end up computing a
5699 # maximum length that is only half of the actual maximum length, but
5700 # we can't tell.
5701 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5702 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5703 test $i != 17 # 1/2 MB should be enough
5705 i=`expr $i + 1`
5706 teststring=$teststring$teststring
5707 done
5708 # Only check the string length outside the loop.
5709 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5710 teststring=
5711 # Add a significant safety factor because C++ compilers can tack on
5712 # massive amounts of additional arguments before passing them to the
5713 # linker. It appears as though 1/2 is a usable value.
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5717 esac
5721 if test -n $lt_cv_sys_max_cmd_len ; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5723 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5726 $as_echo "none" >&6; }
5728 max_cmd_len=$lt_cv_sys_max_cmd_len
5735 : ${CP="cp -f"}
5736 : ${MV="mv -f"}
5737 : ${RM="rm -f"}
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5740 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5741 # Try some XSI features
5742 xsi_shell=no
5743 ( _lt_dummy="a/b/c"
5744 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5745 = c,a/b,, \
5746 && eval 'test $(( 1 + 1 )) -eq 2 \
5747 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5748 && xsi_shell=yes
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5750 $as_echo "$xsi_shell" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5754 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5755 lt_shell_append=no
5756 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5757 >/dev/null 2>&1 \
5758 && lt_shell_append=yes
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5760 $as_echo "$lt_shell_append" >&6; }
5763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5764 lt_unset=unset
5765 else
5766 lt_unset=false
5773 # test EBCDIC or ASCII
5774 case `echo X|tr X '\101'` in
5775 A) # ASCII based system
5776 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5777 lt_SP2NL='tr \040 \012'
5778 lt_NL2SP='tr \015\012 \040\040'
5780 *) # EBCDIC based system
5781 lt_SP2NL='tr \100 \n'
5782 lt_NL2SP='tr \r\n \100\100'
5784 esac
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5795 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5796 if ${lt_cv_ld_reload_flag+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 lt_cv_ld_reload_flag='-r'
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5802 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5803 reload_flag=$lt_cv_ld_reload_flag
5804 case $reload_flag in
5805 "" | " "*) ;;
5806 *) reload_flag=" $reload_flag" ;;
5807 esac
5808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5809 case $host_os in
5810 darwin*)
5811 if test "$GCC" = yes; then
5812 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5813 else
5814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5817 esac
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if ${ac_cv_prog_OBJDUMP+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$OBJDUMP"; then
5836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5851 IFS=$as_save_IFS
5855 OBJDUMP=$ac_cv_prog_OBJDUMP
5856 if test -n "$OBJDUMP"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5858 $as_echo "$OBJDUMP" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5866 if test -z "$ac_cv_prog_OBJDUMP"; then
5867 ac_ct_OBJDUMP=$OBJDUMP
5868 # Extract the first word of "objdump", so it can be a program name with args.
5869 set dummy objdump; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$ac_ct_OBJDUMP"; then
5876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5896 if test -n "$ac_ct_OBJDUMP"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5898 $as_echo "$ac_ct_OBJDUMP" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5904 if test "x$ac_ct_OBJDUMP" = x; then
5905 OBJDUMP="false"
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908 yes:)
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911 ac_tool_warned=yes ;;
5912 esac
5913 OBJDUMP=$ac_ct_OBJDUMP
5915 else
5916 OBJDUMP="$ac_cv_prog_OBJDUMP"
5919 test -z "$OBJDUMP" && OBJDUMP=objdump
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5930 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5931 if ${lt_cv_deplibs_check_method+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 lt_cv_file_magic_cmd='$MAGIC_CMD'
5935 lt_cv_file_magic_test_file=
5936 lt_cv_deplibs_check_method='unknown'
5937 # Need to set the preceding variable on all platforms that support
5938 # interlibrary dependencies.
5939 # 'none' -- dependencies not supported.
5940 # `unknown' -- same as none, but documents that we really don't know.
5941 # 'pass_all' -- all dependencies passed with no checks.
5942 # 'test_compile' -- check by making test program.
5943 # 'file_magic [[regex]]' -- check by looking for files in library path
5944 # which responds to the $file_magic_cmd with a given extended regex.
5945 # If you have `file' or equivalent on your system and you're not sure
5946 # whether `pass_all' will *always* work, you probably want this one.
5948 case $host_os in
5949 aix[4-9]*)
5950 lt_cv_deplibs_check_method=pass_all
5953 beos*)
5954 lt_cv_deplibs_check_method=pass_all
5957 bsdi[45]*)
5958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5959 lt_cv_file_magic_cmd='/usr/bin/file -L'
5960 lt_cv_file_magic_test_file=/shlib/libc.so
5963 cygwin*)
5964 # func_win32_libid is a shell function defined in ltmain.sh
5965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5966 lt_cv_file_magic_cmd='func_win32_libid'
5969 mingw* | pw32*)
5970 # Base MSYS/MinGW do not provide the 'file' command needed by
5971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5972 # unless we find 'file', for example because we are cross-compiling.
5973 if ( file / ) >/dev/null 2>&1; then
5974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5975 lt_cv_file_magic_cmd='func_win32_libid'
5976 else
5977 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5978 lt_cv_file_magic_cmd='$OBJDUMP -f'
5982 cegcc)
5983 # use the weaker test based on 'objdump'. See mingw*.
5984 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5985 lt_cv_file_magic_cmd='$OBJDUMP -f'
5988 darwin* | rhapsody*)
5989 lt_cv_deplibs_check_method=pass_all
5992 freebsd* | dragonfly*)
5993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5994 case $host_cpu in
5995 i*86 )
5996 # Not sure whether the presence of OpenBSD here was a mistake.
5997 # Let's accept both of them until this is cleared up.
5998 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6002 esac
6003 else
6004 lt_cv_deplibs_check_method=pass_all
6008 gnu*)
6009 lt_cv_deplibs_check_method=pass_all
6012 hpux10.20* | hpux11*)
6013 lt_cv_file_magic_cmd=/usr/bin/file
6014 case $host_cpu in
6015 ia64*)
6016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6019 hppa*64*)
6020 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]'
6021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6027 esac
6030 interix[3-9]*)
6031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6035 irix5* | irix6* | nonstopux*)
6036 case $LD in
6037 *-32|*"-32 ") libmagic=32-bit;;
6038 *-n32|*"-n32 ") libmagic=N32;;
6039 *-64|*"-64 ") libmagic=64-bit;;
6040 *) libmagic=never-match;;
6041 esac
6042 lt_cv_deplibs_check_method=pass_all
6045 # This must be Linux ELF.
6046 linux* | k*bsd*-gnu)
6047 lt_cv_deplibs_check_method=pass_all
6050 netbsd*)
6051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6053 else
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6058 newos6*)
6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6060 lt_cv_file_magic_cmd=/usr/bin/file
6061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6064 *nto* | *qnx*)
6065 lt_cv_deplibs_check_method=pass_all
6068 openbsd*)
6069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6071 else
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 osf3* | osf4* | osf5*)
6077 lt_cv_deplibs_check_method=pass_all
6080 rdos*)
6081 lt_cv_deplibs_check_method=pass_all
6084 solaris*)
6085 lt_cv_deplibs_check_method=pass_all
6088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6089 lt_cv_deplibs_check_method=pass_all
6092 sysv4 | sysv4.3*)
6093 case $host_vendor in
6094 motorola)
6095 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]'
6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6098 ncr)
6099 lt_cv_deplibs_check_method=pass_all
6101 sequent)
6102 lt_cv_file_magic_cmd='/bin/file'
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6105 sni)
6106 lt_cv_file_magic_cmd='/bin/file'
6107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6108 lt_cv_file_magic_test_file=/lib/libc.so
6110 siemens)
6111 lt_cv_deplibs_check_method=pass_all
6114 lt_cv_deplibs_check_method=pass_all
6116 esac
6119 tpf*)
6120 lt_cv_deplibs_check_method=pass_all
6122 esac
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6127 file_magic_cmd=$lt_cv_file_magic_cmd
6128 deplibs_check_method=$lt_cv_deplibs_check_method
6129 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ar; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_AR+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$AR"; then
6151 ac_cv_prog_AR="$AR" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_AR="${ac_tool_prefix}ar"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6170 AR=$ac_cv_prog_AR
6171 if test -n "$AR"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6173 $as_echo "$AR" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6181 if test -z "$ac_cv_prog_AR"; then
6182 ac_ct_AR=$AR
6183 # Extract the first word of "ar", so it can be a program name with args.
6184 set dummy ar; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_AR"; then
6191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_ac_ct_AR="ar"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6211 if test -n "$ac_ct_AR"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6213 $as_echo "$ac_ct_AR" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6219 if test "x$ac_ct_AR" = x; then
6220 AR="false"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 AR=$ac_ct_AR
6230 else
6231 AR="$ac_cv_prog_AR"
6234 test -z "$AR" && AR=ar
6235 test -z "$AR_FLAGS" && AR_FLAGS=cru
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}strip; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_STRIP+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$STRIP"; then
6256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6269 done
6270 done
6271 IFS=$as_save_IFS
6275 STRIP=$ac_cv_prog_STRIP
6276 if test -n "$STRIP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6278 $as_echo "$STRIP" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6286 if test -z "$ac_cv_prog_STRIP"; then
6287 ac_ct_STRIP=$STRIP
6288 # Extract the first word of "strip", so it can be a program name with args.
6289 set dummy strip; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_STRIP"; then
6296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_ac_ct_STRIP="strip"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6316 if test -n "$ac_ct_STRIP"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6318 $as_echo "$ac_ct_STRIP" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6324 if test "x$ac_ct_STRIP" = x; then
6325 STRIP=":"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 STRIP=$ac_ct_STRIP
6335 else
6336 STRIP="$ac_cv_prog_STRIP"
6339 test -z "$STRIP" && STRIP=:
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_RANLIB+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$RANLIB"; then
6355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 RANLIB=$ac_cv_prog_RANLIB
6375 if test -n "$RANLIB"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6377 $as_echo "$RANLIB" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_RANLIB"; then
6386 ac_ct_RANLIB=$RANLIB
6387 # Extract the first word of "ranlib", so it can be a program name with args.
6388 set dummy ranlib; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$ac_ct_RANLIB"; then
6395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ac_ct_RANLIB="ranlib"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6415 if test -n "$ac_ct_RANLIB"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6417 $as_echo "$ac_ct_RANLIB" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_RANLIB" = x; then
6424 RANLIB=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 RANLIB=$ac_ct_RANLIB
6434 else
6435 RANLIB="$ac_cv_prog_RANLIB"
6438 test -z "$RANLIB" && RANLIB=:
6445 # Determine commands to create old-style static archives.
6446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6447 old_postinstall_cmds='chmod 644 $oldlib'
6448 old_postuninstall_cmds=
6450 if test -n "$RANLIB"; then
6451 case $host_os in
6452 openbsd*)
6453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6458 esac
6459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6495 # If no C compiler was specified, use CC.
6496 LTCC=${LTCC-"$CC"}
6498 # If no C compiler flags were specified, use CFLAGS.
6499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6501 # Allow CC to be a program name with arguments.
6502 compiler=$CC
6505 # Check for command to grab the raw symbol name followed by C symbol from nm.
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6507 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6508 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6512 # These are sane defaults that work on at least a few old systems.
6513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6515 # Character class describing NM global symbol codes.
6516 symcode='[BCDEGRST]'
6518 # Regexp to match symbols that can be accessed directly from C.
6519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6521 # Define system-specific variables.
6522 case $host_os in
6523 aix*)
6524 symcode='[BCDT]'
6526 cygwin* | mingw* | pw32* | cegcc*)
6527 symcode='[ABCDGISTW]'
6529 hpux*)
6530 if test "$host_cpu" = ia64; then
6531 symcode='[ABCDEGRST]'
6534 irix* | nonstopux*)
6535 symcode='[BCDEGRST]'
6537 osf*)
6538 symcode='[BCDEGQRST]'
6540 solaris*)
6541 symcode='[BDRT]'
6543 sco3.2v5*)
6544 symcode='[DT]'
6546 sysv4.2uw2*)
6547 symcode='[DT]'
6549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6550 symcode='[ABDT]'
6552 sysv4)
6553 symcode='[DFNSTU]'
6555 esac
6557 # If we're using GNU nm, then use its standard symbol codes.
6558 case `$NM -V 2>&1` in
6559 *GNU* | *'with BFD'*)
6560 symcode='[ABCDGIRSTW]' ;;
6561 esac
6563 # Transform an extracted symbol line into a proper C declaration.
6564 # Some systems (esp. on ia64) link data and code symbols differently,
6565 # so use this general approach.
6566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6568 # Transform an extracted symbol line into symbol name and symbol address
6569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6570 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'"
6572 # Handle CRLF in mingw tool chain
6573 opt_cr=
6574 case $build_os in
6575 mingw*)
6576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6578 esac
6580 # Try without a prefix underscore, then with it.
6581 for ac_symprfx in "" "_"; do
6583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6584 symxfrm="\\1 $ac_symprfx\\2 \\2"
6586 # Write the raw and C identifiers.
6587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6588 # Fake it for dumpbin and say T for any non-static function
6589 # and D for any global variable.
6590 # Also find C++ and __fastcall symbols from MSVC++,
6591 # which start with @ or ?.
6592 lt_cv_sys_global_symbol_pipe="$AWK '"\
6593 " {last_section=section; section=\$ 3};"\
6594 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6595 " \$ 0!~/External *\|/{next};"\
6596 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6597 " {if(hide[section]) next};"\
6598 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6599 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6600 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6601 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6602 " ' prfx=^$ac_symprfx"
6603 else
6604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607 # Check to see that the pipe works correctly.
6608 pipe_works=no
6610 rm -f conftest*
6611 cat > conftest.$ac_ext <<_LT_EOF
6612 #ifdef __cplusplus
6613 extern "C" {
6614 #endif
6615 char nm_test_var;
6616 void nm_test_func(void);
6617 void nm_test_func(void){}
6618 #ifdef __cplusplus
6620 #endif
6621 int main(){nm_test_var='a';nm_test_func();return(0);}
6622 _LT_EOF
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 # Now try to grab the symbols.
6630 nlist=conftest.nm
6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6633 ac_status=$?
6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635 test $ac_status = 0; } && test -s "$nlist"; then
6636 # Try sorting and uniquifying the output.
6637 if sort "$nlist" | uniq > "$nlist"T; then
6638 mv -f "$nlist"T "$nlist"
6639 else
6640 rm -f "$nlist"T
6643 # Make sure that we snagged all the symbols we need.
6644 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6645 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6646 cat <<_LT_EOF > conftest.$ac_ext
6647 #ifdef __cplusplus
6648 extern "C" {
6649 #endif
6651 _LT_EOF
6652 # Now generate the symbol file.
6653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6655 cat <<_LT_EOF >> conftest.$ac_ext
6657 /* The mapping between symbol names and symbols. */
6658 const struct {
6659 const char *name;
6660 void *address;
6662 lt__PROGRAM__LTX_preloaded_symbols[] =
6664 { "@PROGRAM@", (void *) 0 },
6665 _LT_EOF
6666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6667 cat <<\_LT_EOF >> conftest.$ac_ext
6668 {0, (void *) 0}
6671 /* This works around a problem in FreeBSD linker */
6672 #ifdef FREEBSD_WORKAROUND
6673 static const void *lt_preloaded_setup() {
6674 return lt__PROGRAM__LTX_preloaded_symbols;
6676 #endif
6678 #ifdef __cplusplus
6680 #endif
6681 _LT_EOF
6682 # Now try linking the two files.
6683 mv conftest.$ac_objext conftstm.$ac_objext
6684 lt_save_LIBS="$LIBS"
6685 lt_save_CFLAGS="$CFLAGS"
6686 LIBS="conftstm.$ac_objext"
6687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6689 (eval $ac_link) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6693 pipe_works=yes
6695 LIBS="$lt_save_LIBS"
6696 CFLAGS="$lt_save_CFLAGS"
6697 else
6698 echo "cannot find nm_test_func in $nlist" >&5
6700 else
6701 echo "cannot find nm_test_var in $nlist" >&5
6703 else
6704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706 else
6707 echo "$progname: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 rm -rf conftest* conftst*
6712 # Do not use the global_symbol_pipe unless it works.
6713 if test "$pipe_works" = yes; then
6714 break
6715 else
6716 lt_cv_sys_global_symbol_pipe=
6718 done
6722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6723 lt_cv_sys_global_symbol_to_cdecl=
6725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6727 $as_echo "failed" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6730 $as_echo "ok" >&6; }
6755 # Check whether --enable-libtool-lock was given.
6756 if test "${enable_libtool_lock+set}" = set; then :
6757 enableval=$enable_libtool_lock;
6760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762 # Some flags need to be propagated to the compiler or linker for good
6763 # libtool support.
6764 case $host in
6765 ia64-*-hpux*)
6766 # Find out which ABI we are using.
6767 echo 'int i;' > conftest.$ac_ext
6768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769 (eval $ac_compile) 2>&5
6770 ac_status=$?
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; }; then
6773 case `/usr/bin/file conftest.$ac_objext` in
6774 *ELF-32*)
6775 HPUX_IA64_MODE="32"
6777 *ELF-64*)
6778 HPUX_IA64_MODE="64"
6780 esac
6782 rm -rf conftest*
6784 *-*-irix6*)
6785 # Find out which ABI we are using.
6786 echo '#line 6786 "configure"' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 if test "$lt_cv_prog_gnu_ld" = yes; then
6793 case `/usr/bin/file conftest.$ac_objext` in
6794 *32-bit*)
6795 LD="${LD-ld} -melf32bsmip"
6797 *N32*)
6798 LD="${LD-ld} -melf32bmipn32"
6800 *64-bit*)
6801 LD="${LD-ld} -melf64bmip"
6803 esac
6804 else
6805 case `/usr/bin/file conftest.$ac_objext` in
6806 *32-bit*)
6807 LD="${LD-ld} -32"
6809 *N32*)
6810 LD="${LD-ld} -n32"
6812 *64-bit*)
6813 LD="${LD-ld} -64"
6815 esac
6818 rm -rf conftest*
6821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6823 # Find out which ABI we are using.
6824 echo 'int i;' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 case `/usr/bin/file conftest.o` in
6831 *32-bit*)
6832 case $host in
6833 x86_64-*kfreebsd*-gnu)
6834 LD="${LD-ld} -m elf_i386_fbsd"
6836 x86_64-*linux*)
6837 LD="${LD-ld} -m elf_i386"
6839 ppc64-*linux*|powerpc64-*linux*)
6840 LD="${LD-ld} -m elf32ppclinux"
6842 s390x-*linux*)
6843 LD="${LD-ld} -m elf_s390"
6845 sparc64-*linux*)
6846 LD="${LD-ld} -m elf32_sparc"
6848 esac
6850 *64-bit*)
6851 case $host in
6852 x86_64-*kfreebsd*-gnu)
6853 LD="${LD-ld} -m elf_x86_64_fbsd"
6855 x86_64-*linux*)
6856 LD="${LD-ld} -m elf_x86_64"
6858 ppc*-*linux*|powerpc*-*linux*)
6859 LD="${LD-ld} -m elf64ppc"
6861 s390*-*linux*|s390*-*tpf*)
6862 LD="${LD-ld} -m elf64_s390"
6864 sparc*-*linux*)
6865 LD="${LD-ld} -m elf64_sparc"
6867 esac
6869 esac
6871 rm -rf conftest*
6874 *-*-sco3.2v5*)
6875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6876 SAVE_CFLAGS="$CFLAGS"
6877 CFLAGS="$CFLAGS -belf"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6879 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6880 if ${lt_cv_cc_needs_belf+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 ac_ext=c
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 lt_cv_cc_needs_belf=yes
6902 else
6903 lt_cv_cc_needs_belf=no
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 ac_ext=c
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6915 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6918 CFLAGS="$SAVE_CFLAGS"
6921 sparc*-*solaris*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
6929 case `/usr/bin/file conftest.o` in
6930 *64-bit*)
6931 case $lt_cv_prog_gnu_ld in
6932 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6935 LD="${LD-ld} -64"
6938 esac
6940 esac
6942 rm -rf conftest*
6944 esac
6946 need_locks="$enable_libtool_lock"
6949 case $host_os in
6950 rhapsody* | darwin*)
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$DSYMUTIL"; then
6960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6980 if test -n "$DSYMUTIL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6982 $as_echo "$DSYMUTIL" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6990 if test -z "$ac_cv_prog_DSYMUTIL"; then
6991 ac_ct_DSYMUTIL=$DSYMUTIL
6992 # Extract the first word of "dsymutil", so it can be a program name with args.
6993 set dummy dsymutil; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$ac_ct_DSYMUTIL"; then
7000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7013 done
7014 done
7015 IFS=$as_save_IFS
7019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7020 if test -n "$ac_ct_DSYMUTIL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7028 if test "x$ac_ct_DSYMUTIL" = x; then
7029 DSYMUTIL=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037 DSYMUTIL=$ac_ct_DSYMUTIL
7039 else
7040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_NMEDIT+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$NMEDIT"; then
7052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 NMEDIT=$ac_cv_prog_NMEDIT
7072 if test -n "$NMEDIT"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7074 $as_echo "$NMEDIT" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7082 if test -z "$ac_cv_prog_NMEDIT"; then
7083 ac_ct_NMEDIT=$NMEDIT
7084 # Extract the first word of "nmedit", so it can be a program name with args.
7085 set dummy nmedit; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$ac_ct_NMEDIT"; then
7092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7105 done
7106 done
7107 IFS=$as_save_IFS
7111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7112 if test -n "$ac_ct_NMEDIT"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7114 $as_echo "$ac_ct_NMEDIT" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7120 if test "x$ac_ct_NMEDIT" = x; then
7121 NMEDIT=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124 yes:)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127 ac_tool_warned=yes ;;
7128 esac
7129 NMEDIT=$ac_ct_NMEDIT
7131 else
7132 NMEDIT="$ac_cv_prog_NMEDIT"
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_LIPO+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$LIPO"; then
7144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7157 done
7158 done
7159 IFS=$as_save_IFS
7163 LIPO=$ac_cv_prog_LIPO
7164 if test -n "$LIPO"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7166 $as_echo "$LIPO" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7174 if test -z "$ac_cv_prog_LIPO"; then
7175 ac_ct_LIPO=$LIPO
7176 # Extract the first word of "lipo", so it can be a program name with args.
7177 set dummy lipo; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$ac_ct_LIPO"; then
7184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_ac_ct_LIPO="lipo"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7197 done
7198 done
7199 IFS=$as_save_IFS
7203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7204 if test -n "$ac_ct_LIPO"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7206 $as_echo "$ac_ct_LIPO" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7212 if test "x$ac_ct_LIPO" = x; then
7213 LIPO=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 LIPO=$ac_ct_LIPO
7223 else
7224 LIPO="$ac_cv_prog_LIPO"
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}otool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_OTOOL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$OTOOL"; then
7236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7249 done
7250 done
7251 IFS=$as_save_IFS
7255 OTOOL=$ac_cv_prog_OTOOL
7256 if test -n "$OTOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7258 $as_echo "$OTOOL" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7266 if test -z "$ac_cv_prog_OTOOL"; then
7267 ac_ct_OTOOL=$OTOOL
7268 # Extract the first word of "otool", so it can be a program name with args.
7269 set dummy otool; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_OTOOL"; then
7276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_OTOOL="otool"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7289 done
7290 done
7291 IFS=$as_save_IFS
7295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7296 if test -n "$ac_ct_OTOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7298 $as_echo "$ac_ct_OTOOL" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$ac_ct_OTOOL" = x; then
7305 OTOOL=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 OTOOL=$ac_ct_OTOOL
7315 else
7316 OTOOL="$ac_cv_prog_OTOOL"
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_OTOOL64+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$OTOOL64"; then
7328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7343 IFS=$as_save_IFS
7347 OTOOL64=$ac_cv_prog_OTOOL64
7348 if test -n "$OTOOL64"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7350 $as_echo "$OTOOL64" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7358 if test -z "$ac_cv_prog_OTOOL64"; then
7359 ac_ct_OTOOL64=$OTOOL64
7360 # Extract the first word of "otool64", so it can be a program name with args.
7361 set dummy otool64; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_OTOOL64"; then
7368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_OTOOL64="otool64"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7388 if test -n "$ac_ct_OTOOL64"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7390 $as_echo "$ac_ct_OTOOL64" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 if test "x$ac_ct_OTOOL64" = x; then
7397 OTOOL64=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 OTOOL64=$ac_ct_OTOOL64
7407 else
7408 OTOOL64="$ac_cv_prog_OTOOL64"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7438 $as_echo_n "checking for -single_module linker flag... " >&6; }
7439 if ${lt_cv_apple_cc_single_mod+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 lt_cv_apple_cc_single_mod=no
7443 if test -z "${LT_MULTI_MODULE}"; then
7444 # By default we will add the -single_module flag. You can override
7445 # by either setting the environment variable LT_MULTI_MODULE
7446 # non-empty at configure time, or by adding -multi_module to the
7447 # link flags.
7448 rm -rf libconftest.dylib*
7449 echo "int foo(void){return 1;}" > conftest.c
7450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7451 -dynamiclib -Wl,-single_module conftest.c" >&5
7452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7454 _lt_result=$?
7455 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7456 lt_cv_apple_cc_single_mod=yes
7457 else
7458 cat conftest.err >&5
7460 rm -rf libconftest.dylib*
7461 rm -f conftest.*
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7465 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7468 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 lt_cv_ld_exported_symbols_list=no
7472 save_LDFLAGS=$LDFLAGS
7473 echo "_main" > conftest.sym
7474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7479 main ()
7483 return 0;
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 lt_cv_ld_exported_symbols_list=yes
7488 else
7489 lt_cv_ld_exported_symbols_list=no
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 LDFLAGS="$save_LDFLAGS"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7498 case $host_os in
7499 rhapsody* | darwin1.[012])
7500 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7501 darwin1.*)
7502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7503 darwin*) # darwin 5.x on
7504 # if running on 10.5 or later, the deployment target defaults
7505 # to the OS version, if on x86, and 10.4, the deployment
7506 # target defaults to 10.4. Don't you love it?
7507 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7508 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7510 10.[012]*)
7511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7512 10.*)
7513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7514 esac
7516 esac
7517 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7518 _lt_dar_single_mod='$single_module'
7520 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7521 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7522 else
7523 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7525 if test "$DSYMUTIL" != ":"; then
7526 _lt_dsymutil='~$DSYMUTIL $lib || :'
7527 else
7528 _lt_dsymutil=
7531 esac
7533 ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7539 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7540 # On Suns, sometimes $CPP names a directory.
7541 if test -n "$CPP" && test -d "$CPP"; then
7542 CPP=
7544 if test -z "$CPP"; then
7545 if ${ac_cv_prog_CPP+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 # Double quotes because CPP needs to be expanded
7549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7551 ac_preproc_ok=false
7552 for ac_c_preproc_warn_flag in '' yes
7554 # Use a header file that comes with gcc, so configuring glibc
7555 # with a fresh cross-compiler works.
7556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7557 # <limits.h> exists even on freestanding compilers.
7558 # On the NeXT, cc -E runs the code through the compiler's parser,
7559 # not just through cpp. "Syntax error" is here to catch this case.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #ifdef __STDC__
7563 # include <limits.h>
7564 #else
7565 # include <assert.h>
7566 #endif
7567 Syntax error
7568 _ACEOF
7569 if ac_fn_c_try_cpp "$LINENO"; then :
7571 else
7572 # Broken: fails on valid input.
7573 continue
7575 rm -f conftest.err conftest.i conftest.$ac_ext
7577 # OK, works on sane cases. Now check whether nonexistent headers
7578 # can be detected and how.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <ac_nonexistent.h>
7582 _ACEOF
7583 if ac_fn_c_try_cpp "$LINENO"; then :
7584 # Broken: success on invalid input.
7585 continue
7586 else
7587 # Passes both tests.
7588 ac_preproc_ok=:
7589 break
7591 rm -f conftest.err conftest.i conftest.$ac_ext
7593 done
7594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7595 rm -f conftest.i conftest.err conftest.$ac_ext
7596 if $ac_preproc_ok; then :
7597 break
7600 done
7601 ac_cv_prog_CPP=$CPP
7604 CPP=$ac_cv_prog_CPP
7605 else
7606 ac_cv_prog_CPP=$CPP
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7609 $as_echo "$CPP" >&6; }
7610 ac_preproc_ok=false
7611 for ac_c_preproc_warn_flag in '' yes
7613 # Use a header file that comes with gcc, so configuring glibc
7614 # with a fresh cross-compiler works.
7615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 # <limits.h> exists even on freestanding compilers.
7617 # On the NeXT, cc -E runs the code through the compiler's parser,
7618 # not just through cpp. "Syntax error" is here to catch this case.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #ifdef __STDC__
7622 # include <limits.h>
7623 #else
7624 # include <assert.h>
7625 #endif
7626 Syntax error
7627 _ACEOF
7628 if ac_fn_c_try_cpp "$LINENO"; then :
7630 else
7631 # Broken: fails on valid input.
7632 continue
7634 rm -f conftest.err conftest.i conftest.$ac_ext
7636 # OK, works on sane cases. Now check whether nonexistent headers
7637 # can be detected and how.
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <ac_nonexistent.h>
7641 _ACEOF
7642 if ac_fn_c_try_cpp "$LINENO"; then :
7643 # Broken: success on invalid input.
7644 continue
7645 else
7646 # Passes both tests.
7647 ac_preproc_ok=:
7648 break
7650 rm -f conftest.err conftest.i conftest.$ac_ext
7652 done
7653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7654 rm -f conftest.i conftest.err conftest.$ac_ext
7655 if $ac_preproc_ok; then :
7657 else
7658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7660 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7661 See \`config.log' for more details" "$LINENO" 5; }
7664 ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7672 $as_echo_n "checking for ANSI C header files... " >&6; }
7673 if ${ac_cv_header_stdc+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 #include <stdlib.h>
7679 #include <stdarg.h>
7680 #include <string.h>
7681 #include <float.h>
7684 main ()
7688 return 0;
7690 _ACEOF
7691 if ac_fn_c_try_compile "$LINENO"; then :
7692 ac_cv_header_stdc=yes
7693 else
7694 ac_cv_header_stdc=no
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 if test $ac_cv_header_stdc = yes; then
7699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #include <string.h>
7704 _ACEOF
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "memchr" >/dev/null 2>&1; then :
7708 else
7709 ac_cv_header_stdc=no
7711 rm -f conftest*
7715 if test $ac_cv_header_stdc = yes; then
7716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 #include <stdlib.h>
7721 _ACEOF
7722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7723 $EGREP "free" >/dev/null 2>&1; then :
7725 else
7726 ac_cv_header_stdc=no
7728 rm -f conftest*
7732 if test $ac_cv_header_stdc = yes; then
7733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7734 if test "$cross_compiling" = yes; then :
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <ctype.h>
7740 #include <stdlib.h>
7741 #if ((' ' & 0x0FF) == 0x020)
7742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7744 #else
7745 # define ISLOWER(c) \
7746 (('a' <= (c) && (c) <= 'i') \
7747 || ('j' <= (c) && (c) <= 'r') \
7748 || ('s' <= (c) && (c) <= 'z'))
7749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7750 #endif
7752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7754 main ()
7756 int i;
7757 for (i = 0; i < 256; i++)
7758 if (XOR (islower (i), ISLOWER (i))
7759 || toupper (i) != TOUPPER (i))
7760 return 2;
7761 return 0;
7763 _ACEOF
7764 if ac_fn_c_try_run "$LINENO"; then :
7766 else
7767 ac_cv_header_stdc=no
7769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7770 conftest.$ac_objext conftest.beam conftest.$ac_ext
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7776 $as_echo "$ac_cv_header_stdc" >&6; }
7777 if test $ac_cv_header_stdc = yes; then
7779 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7783 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7785 inttypes.h stdint.h unistd.h
7786 do :
7787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7791 cat >>confdefs.h <<_ACEOF
7792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7793 _ACEOF
7797 done
7800 for ac_header in dlfcn.h
7801 do :
7802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7804 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7805 cat >>confdefs.h <<_ACEOF
7806 #define HAVE_DLFCN_H 1
7807 _ACEOF
7811 done
7815 # Set options
7819 enable_dlopen=no
7822 enable_win32_dll=no
7825 # Check whether --enable-shared was given.
7826 if test "${enable_shared+set}" = set; then :
7827 enableval=$enable_shared; p=${PACKAGE-default}
7828 case $enableval in
7829 yes) enable_shared=yes ;;
7830 no) enable_shared=no ;;
7832 enable_shared=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835 for pkg in $enableval; do
7836 IFS="$lt_save_ifs"
7837 if test "X$pkg" = "X$p"; then
7838 enable_shared=yes
7840 done
7841 IFS="$lt_save_ifs"
7843 esac
7844 else
7845 enable_shared=yes
7856 # Check whether --enable-static was given.
7857 if test "${enable_static+set}" = set; then :
7858 enableval=$enable_static; p=${PACKAGE-default}
7859 case $enableval in
7860 yes) enable_static=yes ;;
7861 no) enable_static=no ;;
7863 enable_static=no
7864 # Look at the argument we got. We use all the common list separators.
7865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866 for pkg in $enableval; do
7867 IFS="$lt_save_ifs"
7868 if test "X$pkg" = "X$p"; then
7869 enable_static=yes
7871 done
7872 IFS="$lt_save_ifs"
7874 esac
7875 else
7876 enable_static=yes
7888 # Check whether --with-pic was given.
7889 if test "${with_pic+set}" = set; then :
7890 withval=$with_pic; pic_mode="$withval"
7891 else
7892 pic_mode=default
7896 test -z "$pic_mode" && pic_mode=default
7904 # Check whether --enable-fast-install was given.
7905 if test "${enable_fast_install+set}" = set; then :
7906 enableval=$enable_fast_install; p=${PACKAGE-default}
7907 case $enableval in
7908 yes) enable_fast_install=yes ;;
7909 no) enable_fast_install=no ;;
7911 enable_fast_install=no
7912 # Look at the argument we got. We use all the common list separators.
7913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7914 for pkg in $enableval; do
7915 IFS="$lt_save_ifs"
7916 if test "X$pkg" = "X$p"; then
7917 enable_fast_install=yes
7919 done
7920 IFS="$lt_save_ifs"
7922 esac
7923 else
7924 enable_fast_install=yes
7937 # This can be used to rebuild libtool when needed
7938 LIBTOOL_DEPS="$ltmain"
7940 # Always use our own libtool.
7941 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7967 test -z "$LN_S" && LN_S="ln -s"
7982 if test -n "${ZSH_VERSION+set}" ; then
7983 setopt NO_GLOB_SUBST
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7987 $as_echo_n "checking for objdir... " >&6; }
7988 if ${lt_cv_objdir+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 rm -f .libs 2>/dev/null
7992 mkdir .libs 2>/dev/null
7993 if test -d .libs; then
7994 lt_cv_objdir=.libs
7995 else
7996 # MS-DOS does not allow filenames that begin with a dot.
7997 lt_cv_objdir=_libs
7999 rmdir .libs 2>/dev/null
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8002 $as_echo "$lt_cv_objdir" >&6; }
8003 objdir=$lt_cv_objdir
8009 cat >>confdefs.h <<_ACEOF
8010 #define LT_OBJDIR "$lt_cv_objdir/"
8011 _ACEOF
8029 case $host_os in
8030 aix3*)
8031 # AIX sometimes has problems with the GCC collect2 program. For some
8032 # reason, if we set the COLLECT_NAMES environment variable, the problems
8033 # vanish in a puff of smoke.
8034 if test "X${COLLECT_NAMES+set}" != Xset; then
8035 COLLECT_NAMES=
8036 export COLLECT_NAMES
8039 esac
8041 # Sed substitution that helps us do robust quoting. It backslashifies
8042 # metacharacters that are still active within double-quoted strings.
8043 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8045 # Same as above, but do not quote variable references.
8046 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8048 # Sed substitution to delay expansion of an escaped shell variable in a
8049 # double_quote_subst'ed string.
8050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8052 # Sed substitution to delay expansion of an escaped single quote.
8053 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8055 # Sed substitution to avoid accidental globbing in evaled expressions
8056 no_glob_subst='s/\*/\\\*/g'
8058 # Global variables:
8059 ofile=libtool
8060 can_build_shared=yes
8062 # All known linkers require a `.a' archive for static linking (except MSVC,
8063 # which needs '.lib').
8064 libext=a
8066 with_gnu_ld="$lt_cv_prog_gnu_ld"
8068 old_CC="$CC"
8069 old_CFLAGS="$CFLAGS"
8071 # Set sane defaults for various variables
8072 test -z "$CC" && CC=cc
8073 test -z "$LTCC" && LTCC=$CC
8074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8075 test -z "$LD" && LD=ld
8076 test -z "$ac_objext" && ac_objext=o
8078 for cc_temp in $compiler""; do
8079 case $cc_temp in
8080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8082 \-*) ;;
8083 *) break;;
8084 esac
8085 done
8086 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8089 # Only perform the check for file, if the check method requires it
8090 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8091 case $deplibs_check_method in
8092 file_magic*)
8093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8095 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8096 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 case $MAGIC_CMD in
8100 [\\/*] | ?:[\\/]*)
8101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8104 lt_save_MAGIC_CMD="$MAGIC_CMD"
8105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8107 for ac_dir in $ac_dummy; do
8108 IFS="$lt_save_ifs"
8109 test -z "$ac_dir" && ac_dir=.
8110 if test -f $ac_dir/${ac_tool_prefix}file; then
8111 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8112 if test -n "$file_magic_test_file"; then
8113 case $deplibs_check_method in
8114 "file_magic "*)
8115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8118 $EGREP "$file_magic_regex" > /dev/null; then
8120 else
8121 cat <<_LT_EOF 1>&2
8123 *** Warning: the command libtool uses to detect shared libraries,
8124 *** $file_magic_cmd, produces output that libtool cannot recognize.
8125 *** The result is that libtool may fail to recognize shared libraries
8126 *** as such. This will affect the creation of libtool libraries that
8127 *** depend on shared libraries, but programs linked with such libtool
8128 *** libraries will work regardless of this problem. Nevertheless, you
8129 *** may want to report the problem to your system manager and/or to
8130 *** bug-libtool@gnu.org
8132 _LT_EOF
8133 fi ;;
8134 esac
8136 break
8138 done
8139 IFS="$lt_save_ifs"
8140 MAGIC_CMD="$lt_save_MAGIC_CMD"
8142 esac
8145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146 if test -n "$MAGIC_CMD"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8148 $as_echo "$MAGIC_CMD" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8158 if test -z "$lt_cv_path_MAGIC_CMD"; then
8159 if test -n "$ac_tool_prefix"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8161 $as_echo_n "checking for file... " >&6; }
8162 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 case $MAGIC_CMD in
8166 [\\/*] | ?:[\\/]*)
8167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8170 lt_save_MAGIC_CMD="$MAGIC_CMD"
8171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173 for ac_dir in $ac_dummy; do
8174 IFS="$lt_save_ifs"
8175 test -z "$ac_dir" && ac_dir=.
8176 if test -f $ac_dir/file; then
8177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8178 if test -n "$file_magic_test_file"; then
8179 case $deplibs_check_method in
8180 "file_magic "*)
8181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184 $EGREP "$file_magic_regex" > /dev/null; then
8186 else
8187 cat <<_LT_EOF 1>&2
8189 *** Warning: the command libtool uses to detect shared libraries,
8190 *** $file_magic_cmd, produces output that libtool cannot recognize.
8191 *** The result is that libtool may fail to recognize shared libraries
8192 *** as such. This will affect the creation of libtool libraries that
8193 *** depend on shared libraries, but programs linked with such libtool
8194 *** libraries will work regardless of this problem. Nevertheless, you
8195 *** may want to report the problem to your system manager and/or to
8196 *** bug-libtool@gnu.org
8198 _LT_EOF
8199 fi ;;
8200 esac
8202 break
8204 done
8205 IFS="$lt_save_ifs"
8206 MAGIC_CMD="$lt_save_MAGIC_CMD"
8208 esac
8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212 if test -n "$MAGIC_CMD"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214 $as_echo "$MAGIC_CMD" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8221 else
8222 MAGIC_CMD=:
8228 esac
8230 # Use C for the default configuration in the libtool script
8232 lt_save_CC="$CC"
8233 ac_ext=c
8234 ac_cpp='$CPP $CPPFLAGS'
8235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8240 # Source file extension for C test sources.
8241 ac_ext=c
8243 # Object file extension for compiled C test sources.
8244 objext=o
8245 objext=$objext
8247 # Code to be used in simple compile tests
8248 lt_simple_compile_test_code="int some_variable = 0;"
8250 # Code to be used in simple link tests
8251 lt_simple_link_test_code='int main(){return(0);}'
8259 # If no C compiler was specified, use CC.
8260 LTCC=${LTCC-"$CC"}
8262 # If no C compiler flags were specified, use CFLAGS.
8263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8265 # Allow CC to be a program name with arguments.
8266 compiler=$CC
8268 # Save the default compiler, since it gets overwritten when the other
8269 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8270 compiler_DEFAULT=$CC
8272 # save warnings/boilerplate of simple test code
8273 ac_outfile=conftest.$ac_objext
8274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8276 _lt_compiler_boilerplate=`cat conftest.err`
8277 $RM conftest*
8279 ac_outfile=conftest.$ac_objext
8280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282 _lt_linker_boilerplate=`cat conftest.err`
8283 $RM -r conftest*
8286 ## CAVEAT EMPTOR:
8287 ## There is no encapsulation within the following macros, do not change
8288 ## the running order or otherwise move them around unless you know exactly
8289 ## what you are doing...
8290 if test -n "$compiler"; then
8292 lt_prog_compiler_no_builtin_flag=
8294 if test "$GCC" = yes; then
8295 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8298 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8299 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_rtti_exceptions=no
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305 lt_compiler_flag="-fno-rtti -fno-exceptions"
8306 # Insert the option either (1) after the last *FLAGS variable, or
8307 # (2) before a word containing "conftest.", or (3) at the end.
8308 # Note that $ac_compile itself does not contain backslashes and begins
8309 # with a dollar sign (not a hyphen), so the echo should work correctly.
8310 # The option is referenced via a variable to avoid confusing sed.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
8315 (eval echo "\"\$as_me:8315: $lt_compile\"" >&5)
8316 (eval "$lt_compile" 2>conftest.err)
8317 ac_status=$?
8318 cat conftest.err >&5
8319 echo "$as_me:8319: \$? = $ac_status" >&5
8320 if (exit $ac_status) && test -s "$ac_outfile"; then
8321 # The compiler can only warn and ignore the option if not recognized
8322 # So say no if there are warnings other than the usual output.
8323 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8326 lt_cv_prog_compiler_rtti_exceptions=yes
8329 $RM conftest*
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8333 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8337 else
8348 lt_prog_compiler_wl=
8349 lt_prog_compiler_pic=
8350 lt_prog_compiler_static=
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8355 if test "$GCC" = yes; then
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_static='-static'
8359 case $host_os in
8360 aix*)
8361 # All AIX code is PIC.
8362 if test "$host_cpu" = ia64; then
8363 # AIX 5 now supports IA64 processor
8364 lt_prog_compiler_static='-Bstatic'
8368 amigaos*)
8369 case $host_cpu in
8370 powerpc)
8371 # see comment about AmigaOS4 .so support
8372 lt_prog_compiler_pic='-fPIC'
8374 m68k)
8375 # FIXME: we need at least 68020 code to build shared libraries, but
8376 # adding the `-m68020' flag to GCC prevents building anything better,
8377 # like `-m68040'.
8378 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8380 esac
8383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8384 # PIC is the default for these OSes.
8387 mingw* | cygwin* | pw32* | os2* | cegcc*)
8388 # This hack is so that the source file can tell whether it is being
8389 # built for inclusion in a dll (and should export symbols for example).
8390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8391 # (--disable-auto-import) libraries
8392 lt_prog_compiler_pic='-DDLL_EXPORT'
8395 darwin* | rhapsody*)
8396 # PIC is the default on this platform
8397 # Common symbols not allowed in MH_DYLIB files
8398 lt_prog_compiler_pic='-fno-common'
8401 hpux*)
8402 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8403 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8404 # sets the default TLS model and affects inlining.
8405 case $host_cpu in
8406 hppa*64*)
8407 # +Z the default
8410 lt_prog_compiler_pic='-fPIC'
8412 esac
8415 interix[3-9]*)
8416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8417 # Instead, we relocate shared libraries at runtime.
8420 msdosdjgpp*)
8421 # Just because we use GCC doesn't mean we suddenly get shared libraries
8422 # on systems that don't support them.
8423 lt_prog_compiler_can_build_shared=no
8424 enable_shared=no
8427 *nto* | *qnx*)
8428 # QNX uses GNU C++, but need to define -shared option too, otherwise
8429 # it will coredump.
8430 lt_prog_compiler_pic='-fPIC -shared'
8433 sysv4*MP*)
8434 if test -d /usr/nec; then
8435 lt_prog_compiler_pic=-Kconform_pic
8440 lt_prog_compiler_pic='-fPIC'
8442 esac
8443 else
8444 # PORTME Check for flag to pass linker flags through the system compiler.
8445 case $host_os in
8446 aix*)
8447 lt_prog_compiler_wl='-Wl,'
8448 if test "$host_cpu" = ia64; then
8449 # AIX 5 now supports IA64 processor
8450 lt_prog_compiler_static='-Bstatic'
8451 else
8452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8456 mingw* | cygwin* | pw32* | os2* | cegcc*)
8457 # This hack is so that the source file can tell whether it is being
8458 # built for inclusion in a dll (and should export symbols for example).
8459 lt_prog_compiler_pic='-DDLL_EXPORT'
8462 hpux9* | hpux10* | hpux11*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8465 # not for PA HP-UX.
8466 case $host_cpu in
8467 hppa*64*|ia64*)
8468 # +Z the default
8471 lt_prog_compiler_pic='+Z'
8473 esac
8474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8475 lt_prog_compiler_static='${wl}-a ${wl}archive'
8478 irix5* | irix6* | nonstopux*)
8479 lt_prog_compiler_wl='-Wl,'
8480 # PIC (with -KPIC) is the default.
8481 lt_prog_compiler_static='-non_shared'
8484 linux* | k*bsd*-gnu)
8485 case $cc_basename in
8486 # old Intel for x86_64 which still supported -KPIC.
8487 ecc*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-static'
8492 # icc used to be incompatible with GCC.
8493 # ICC 10 doesn't accept -KPIC any more.
8494 icc* | ifort*)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-fPIC'
8497 lt_prog_compiler_static='-static'
8499 # Lahey Fortran 8.1.
8500 lf95*)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='--shared'
8503 lt_prog_compiler_static='--static'
8505 pgcc* | pgf77* | pgf90* | pgf95*)
8506 # Portland Group compilers (*not* the Pentium gcc compiler,
8507 # which looks to be a dead project)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='-fpic'
8510 lt_prog_compiler_static='-Bstatic'
8512 ccc*)
8513 lt_prog_compiler_wl='-Wl,'
8514 # All Alpha code is PIC.
8515 lt_prog_compiler_static='-non_shared'
8517 xl*)
8518 # IBM XL C 8.0/Fortran 10.1 on PPC
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-qpic'
8521 lt_prog_compiler_static='-qstaticlink'
8524 case `$CC -V 2>&1 | sed 5q` in
8525 *Sun\ C*)
8526 # Sun C 5.9
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 lt_prog_compiler_wl='-Wl,'
8531 *Sun\ F*)
8532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-Bstatic'
8535 lt_prog_compiler_wl=''
8537 esac
8539 esac
8542 newsos6)
8543 lt_prog_compiler_pic='-KPIC'
8544 lt_prog_compiler_static='-Bstatic'
8547 *nto* | *qnx*)
8548 # QNX uses GNU C++, but need to define -shared option too, otherwise
8549 # it will coredump.
8550 lt_prog_compiler_pic='-fPIC -shared'
8553 osf3* | osf4* | osf5*)
8554 lt_prog_compiler_wl='-Wl,'
8555 # All OSF/1 code is PIC.
8556 lt_prog_compiler_static='-non_shared'
8559 rdos*)
8560 lt_prog_compiler_static='-non_shared'
8563 solaris*)
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 case $cc_basename in
8567 f77* | f90* | f95*)
8568 lt_prog_compiler_wl='-Qoption ld ';;
8570 lt_prog_compiler_wl='-Wl,';;
8571 esac
8574 sunos4*)
8575 lt_prog_compiler_wl='-Qoption ld '
8576 lt_prog_compiler_pic='-PIC'
8577 lt_prog_compiler_static='-Bstatic'
8580 sysv4 | sysv4.2uw2* | sysv4.3*)
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-Bstatic'
8586 sysv4*MP*)
8587 if test -d /usr/nec ;then
8588 lt_prog_compiler_pic='-Kconform_pic'
8589 lt_prog_compiler_static='-Bstatic'
8593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-Bstatic'
8599 unicos*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_can_build_shared=no
8604 uts4*)
8605 lt_prog_compiler_pic='-pic'
8606 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_can_build_shared=no
8612 esac
8615 case $host_os in
8616 # For platforms which do not support PIC, -DPIC is meaningless:
8617 *djgpp*)
8618 lt_prog_compiler_pic=
8621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8623 esac
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8625 $as_echo "$lt_prog_compiler_pic" >&6; }
8633 # Check to make sure the PIC flag actually works.
8635 if test -n "$lt_prog_compiler_pic"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8638 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 lt_cv_prog_compiler_pic_works=no
8642 ac_outfile=conftest.$ac_objext
8643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8644 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8645 # Insert the option either (1) after the last *FLAGS variable, or
8646 # (2) before a word containing "conftest.", or (3) at the end.
8647 # Note that $ac_compile itself does not contain backslashes and begins
8648 # with a dollar sign (not a hyphen), so the echo should work correctly.
8649 # The option is referenced via a variable to avoid confusing sed.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:8654: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>conftest.err)
8656 ac_status=$?
8657 cat conftest.err >&5
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s "$ac_outfile"; then
8660 # The compiler can only warn and ignore the option if not recognized
8661 # So say no if there are warnings other than the usual output.
8662 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8665 lt_cv_prog_compiler_pic_works=yes
8668 $RM conftest*
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8672 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8674 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8675 case $lt_prog_compiler_pic in
8676 "" | " "*) ;;
8677 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8678 esac
8679 else
8680 lt_prog_compiler_pic=
8681 lt_prog_compiler_can_build_shared=no
8692 # Check to make sure the static flag actually works.
8694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8697 if ${lt_cv_prog_compiler_static_works+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 lt_cv_prog_compiler_static_works=no
8701 save_LDFLAGS="$LDFLAGS"
8702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8705 # The linker can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
8707 if test -s conftest.err; then
8708 # Append any errors to the config.log.
8709 cat conftest.err 1>&5
8710 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler_static_works=yes
8715 else
8716 lt_cv_prog_compiler_static_works=yes
8719 $RM -r conftest*
8720 LDFLAGS="$save_LDFLAGS"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8724 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8726 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8728 else
8729 lt_prog_compiler_static=
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8740 if ${lt_cv_prog_compiler_c_o+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 lt_cv_prog_compiler_c_o=no
8744 $RM -r conftest 2>/dev/null
8745 mkdir conftest
8746 cd conftest
8747 mkdir out
8748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8750 lt_compiler_flag="-o out/conftest2.$ac_objext"
8751 # Insert the option either (1) after the last *FLAGS variable, or
8752 # (2) before a word containing "conftest.", or (3) at the end.
8753 # Note that $ac_compile itself does not contain backslashes and begins
8754 # with a dollar sign (not a hyphen), so the echo should work correctly.
8755 lt_compile=`echo "$ac_compile" | $SED \
8756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8758 -e 's:$: $lt_compiler_flag:'`
8759 (eval echo "\"\$as_me:8759: $lt_compile\"" >&5)
8760 (eval "$lt_compile" 2>out/conftest.err)
8761 ac_status=$?
8762 cat out/conftest.err >&5
8763 echo "$as_me:8763: \$? = $ac_status" >&5
8764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8765 then
8766 # The compiler can only warn and ignore the option if not recognized
8767 # So say no if there are warnings
8768 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8771 lt_cv_prog_compiler_c_o=yes
8774 chmod u+w . 2>&5
8775 $RM conftest*
8776 # SGI C++ compiler will create directory out/ii_files/ for
8777 # template instantiation
8778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8779 $RM out/* && rmdir out
8780 cd ..
8781 $RM -r conftest
8782 $RM conftest*
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8795 if ${lt_cv_prog_compiler_c_o+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_c_o=no
8799 $RM -r conftest 2>/dev/null
8800 mkdir conftest
8801 cd conftest
8802 mkdir out
8803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805 lt_compiler_flag="-o out/conftest2.$ac_objext"
8806 # Insert the option either (1) after the last *FLAGS variable, or
8807 # (2) before a word containing "conftest.", or (3) at the end.
8808 # Note that $ac_compile itself does not contain backslashes and begins
8809 # with a dollar sign (not a hyphen), so the echo should work correctly.
8810 lt_compile=`echo "$ac_compile" | $SED \
8811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8813 -e 's:$: $lt_compiler_flag:'`
8814 (eval echo "\"\$as_me:8814: $lt_compile\"" >&5)
8815 (eval "$lt_compile" 2>out/conftest.err)
8816 ac_status=$?
8817 cat out/conftest.err >&5
8818 echo "$as_me:8818: \$? = $ac_status" >&5
8819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8820 then
8821 # The compiler can only warn and ignore the option if not recognized
8822 # So say no if there are warnings
8823 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8826 lt_cv_prog_compiler_c_o=yes
8829 chmod u+w . 2>&5
8830 $RM conftest*
8831 # SGI C++ compiler will create directory out/ii_files/ for
8832 # template instantiation
8833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8834 $RM out/* && rmdir out
8835 cd ..
8836 $RM -r conftest
8837 $RM conftest*
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8841 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8846 hard_links="nottested"
8847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8848 # do not overwrite the value of need_locks provided by the user
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8850 $as_echo_n "checking if we can lock with hard links... " >&6; }
8851 hard_links=yes
8852 $RM conftest*
8853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8854 touch conftest.a
8855 ln conftest.a conftest.b 2>&5 || hard_links=no
8856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8858 $as_echo "$hard_links" >&6; }
8859 if test "$hard_links" = no; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8862 need_locks=warn
8864 else
8865 need_locks=no
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8876 runpath_var=
8877 allow_undefined_flag=
8878 always_export_symbols=no
8879 archive_cmds=
8880 archive_expsym_cmds=
8881 compiler_needs_object=no
8882 enable_shared_with_static_runtimes=no
8883 export_dynamic_flag_spec=
8884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8885 hardcode_automatic=no
8886 hardcode_direct=no
8887 hardcode_direct_absolute=no
8888 hardcode_libdir_flag_spec=
8889 hardcode_libdir_flag_spec_ld=
8890 hardcode_libdir_separator=
8891 hardcode_minus_L=no
8892 hardcode_shlibpath_var=unsupported
8893 inherit_rpath=no
8894 link_all_deplibs=unknown
8895 module_cmds=
8896 module_expsym_cmds=
8897 old_archive_from_new_cmds=
8898 old_archive_from_expsyms_cmds=
8899 thread_safe_flag_spec=
8900 whole_archive_flag_spec=
8901 # include_expsyms should be a list of space-separated symbols to be *always*
8902 # included in the symbol list
8903 include_expsyms=
8904 # exclude_expsyms can be an extended regexp of symbols to exclude
8905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8907 # as well as any symbol that contains `d'.
8908 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8910 # platforms (ab)use it in PIC code, but their linkers get confused if
8911 # the symbol is explicitly referenced. Since portable code cannot
8912 # rely on this symbol name, it's probably fine to never include it in
8913 # preloaded symbol tables.
8914 # Exclude shared library initialization/finalization symbols.
8915 extract_expsyms_cmds=
8917 case $host_os in
8918 cygwin* | mingw* | pw32* | cegcc*)
8919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8920 # When not using gcc, we currently assume that we are using
8921 # Microsoft Visual C++.
8922 if test "$GCC" != yes; then
8923 with_gnu_ld=no
8926 interix*)
8927 # we just hope/assume this is gcc and not c89 (= MSVC++)
8928 with_gnu_ld=yes
8930 openbsd*)
8931 with_gnu_ld=no
8933 esac
8935 ld_shlibs=yes
8936 if test "$with_gnu_ld" = yes; then
8937 # If archive_cmds runs LD, not CC, wlarc should be empty
8938 wlarc='${wl}'
8940 # Set some defaults for GNU ld with shared library support. These
8941 # are reset later if shared libraries are not supported. Putting them
8942 # here allows them to be overridden if necessary.
8943 runpath_var=LD_RUN_PATH
8944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945 export_dynamic_flag_spec='${wl}--export-dynamic'
8946 # ancient GNU ld didn't support --whole-archive et. al.
8947 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8948 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8949 else
8950 whole_archive_flag_spec=
8952 supports_anon_versioning=no
8953 case `$LD -v 2>&1` in
8954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8957 *\ 2.11.*) ;; # other 2.11 versions
8958 *) supports_anon_versioning=yes ;;
8959 esac
8961 # See if GNU ld supports shared libraries.
8962 case $host_os in
8963 aix[3-9]*)
8964 # On AIX/PPC, the GNU linker is very broken
8965 if test "$host_cpu" != ia64; then
8966 ld_shlibs=no
8967 cat <<_LT_EOF 1>&2
8969 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8970 *** to be unable to reliably create shared libraries on AIX.
8971 *** Therefore, libtool is disabling shared libraries support. If you
8972 *** really care for shared libraries, you may want to modify your PATH
8973 *** so that a non-GNU linker is found, and then restart.
8975 _LT_EOF
8979 amigaos*)
8980 case $host_cpu in
8981 powerpc)
8982 # see comment about AmigaOS4 .so support
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds=''
8986 m68k)
8987 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)'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_minus_L=yes
8991 esac
8994 beos*)
8995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 allow_undefined_flag=unsupported
8997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8998 # support --undefined. This deserves some investigation. FIXME
8999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 else
9001 ld_shlibs=no
9005 cygwin* | mingw* | pw32* | cegcc*)
9006 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9007 # as there is no search path for DLLs.
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 allow_undefined_flag=unsupported
9010 always_export_symbols=no
9011 enable_shared_with_static_runtimes=yes
9012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9014 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9016 # If the export-symbols file already is a .def file (1st line
9017 # is EXPORTS), use it as is; otherwise, prepend...
9018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9019 cp $export_symbols $output_objdir/$soname.def;
9020 else
9021 echo EXPORTS > $output_objdir/$soname.def;
9022 cat $export_symbols >> $output_objdir/$soname.def;
9024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9025 else
9026 ld_shlibs=no
9030 interix[3-9]*)
9031 hardcode_direct=no
9032 hardcode_shlibpath_var=no
9033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9034 export_dynamic_flag_spec='${wl}-E'
9035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9036 # Instead, shared libraries are loaded at an image base (0x10000000 by
9037 # default) and relocated if they conflict, which is a slow very memory
9038 # consuming and fragmenting process. To avoid this, we pick a random,
9039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9042 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'
9045 gnu* | linux* | tpf* | k*bsd*-gnu)
9046 tmp_diet=no
9047 if test "$host_os" = linux-dietlibc; then
9048 case $cc_basename in
9049 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9050 esac
9052 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9053 && test "$tmp_diet" = no
9054 then
9055 tmp_addflag=
9056 tmp_sharedflag='-shared'
9057 case $cc_basename,$host_cpu in
9058 pgcc*) # Portland Group C compiler
9059 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'
9060 tmp_addflag=' $pic_flag'
9062 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9063 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'
9064 tmp_addflag=' $pic_flag -Mnomain' ;;
9065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9066 tmp_addflag=' -i_dynamic' ;;
9067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9068 tmp_addflag=' -i_dynamic -nofor_main' ;;
9069 ifc* | ifort*) # Intel Fortran compiler
9070 tmp_addflag=' -nofor_main' ;;
9071 lf95*) # Lahey Fortran 8.1
9072 whole_archive_flag_spec=
9073 tmp_sharedflag='--shared' ;;
9074 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9075 tmp_sharedflag='-qmkshrobj'
9076 tmp_addflag= ;;
9077 esac
9078 case `$CC -V 2>&1 | sed 5q` in
9079 *Sun\ C*) # Sun C 5.9
9080 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'
9081 compiler_needs_object=yes
9082 tmp_sharedflag='-G' ;;
9083 *Sun\ F*) # Sun Fortran 8.3
9084 tmp_sharedflag='-G' ;;
9085 esac
9086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 if test "x$supports_anon_versioning" = xyes; then
9089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091 echo "local: *; };" >> $output_objdir/$libname.ver~
9092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095 case $cc_basename in
9096 xlf*)
9097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9098 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9099 hardcode_libdir_flag_spec=
9100 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9101 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9102 if test "x$supports_anon_versioning" = xyes; then
9103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9105 echo "local: *; };" >> $output_objdir/$libname.ver~
9106 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9109 esac
9110 else
9111 ld_shlibs=no
9115 netbsd*)
9116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9118 wlarc=
9119 else
9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125 solaris*)
9126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9127 ld_shlibs=no
9128 cat <<_LT_EOF 1>&2
9130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9131 *** create shared libraries on Solaris systems. Therefore, libtool
9132 *** is disabling shared libraries support. We urge you to upgrade GNU
9133 *** binutils to release 2.9.1 or newer. Another option is to modify
9134 *** your PATH or compiler configuration so that the native linker is
9135 *** used, and then restart.
9137 _LT_EOF
9138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141 else
9142 ld_shlibs=no
9146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9147 case `$LD -v 2>&1` in
9148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9149 ld_shlibs=no
9150 cat <<_LT_EOF 1>&2
9152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9153 *** reliably create shared libraries on SCO systems. Therefore, libtool
9154 *** is disabling shared libraries support. We urge you to upgrade GNU
9155 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9156 *** your PATH or compiler configuration so that the native linker is
9157 *** used, and then restart.
9159 _LT_EOF
9162 # For security reasons, it is highly recommended that you always
9163 # use absolute paths for naming shared libraries, and exclude the
9164 # DT_RUNPATH tag from executables and libraries. But doing so
9165 # requires that you compile everything twice, which is a pain.
9166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170 else
9171 ld_shlibs=no
9174 esac
9177 sunos4*)
9178 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9179 wlarc=
9180 hardcode_direct=yes
9181 hardcode_shlibpath_var=no
9185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188 else
9189 ld_shlibs=no
9192 esac
9194 if test "$ld_shlibs" = no; then
9195 runpath_var=
9196 hardcode_libdir_flag_spec=
9197 export_dynamic_flag_spec=
9198 whole_archive_flag_spec=
9200 else
9201 # PORTME fill in a description of your system's linker (not GNU ld)
9202 case $host_os in
9203 aix3*)
9204 allow_undefined_flag=unsupported
9205 always_export_symbols=yes
9206 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'
9207 # Note: this linker hardcodes the directories in LIBPATH if there
9208 # are no directories specified by -L.
9209 hardcode_minus_L=yes
9210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9211 # Neither direct hardcoding nor static linking is supported with a
9212 # broken collect2.
9213 hardcode_direct=unsupported
9217 aix[4-9]*)
9218 if test "$host_cpu" = ia64; then
9219 # On IA64, the linker does run time linking by default, so we don't
9220 # have to do anything special.
9221 aix_use_runtimelinking=no
9222 exp_sym_flag='-Bexport'
9223 no_entry_flag=""
9224 else
9225 # If we're using GNU nm, then we don't want the "-C" option.
9226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9227 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9228 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'
9229 else
9230 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'
9232 aix_use_runtimelinking=no
9234 # Test if we are trying to use run time linking or normal
9235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9236 # need to do runtime linking.
9237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9238 for ld_flag in $LDFLAGS; do
9239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9240 aix_use_runtimelinking=yes
9241 break
9243 done
9245 esac
9247 exp_sym_flag='-bexport'
9248 no_entry_flag='-bnoentry'
9251 # When large executables or shared objects are built, AIX ld can
9252 # have problems creating the table of contents. If linking a library
9253 # or program results in "error TOC overflow" add -mminimal-toc to
9254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9257 archive_cmds=''
9258 hardcode_direct=yes
9259 hardcode_direct_absolute=yes
9260 hardcode_libdir_separator=':'
9261 link_all_deplibs=yes
9262 file_list_spec='${wl}-f,'
9264 if test "$GCC" = yes; then
9265 case $host_os in aix4.[012]|aix4.[012].*)
9266 # We only want to do this on AIX 4.2 and lower, the check
9267 # below for broken collect2 doesn't work under 4.3+
9268 collect2name=`${CC} -print-prog-name=collect2`
9269 if test -f "$collect2name" &&
9270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9271 then
9272 # We have reworked collect2
9274 else
9275 # We have old collect2
9276 hardcode_direct=unsupported
9277 # It fails to find uninstalled libraries when the uninstalled
9278 # path is not listed in the libpath. Setting hardcode_minus_L
9279 # to unsupported forces relinking
9280 hardcode_minus_L=yes
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_libdir_separator=
9285 esac
9286 shared_flag='-shared'
9287 if test "$aix_use_runtimelinking" = yes; then
9288 shared_flag="$shared_flag "'${wl}-G'
9290 else
9291 # not using gcc
9292 if test "$host_cpu" = ia64; then
9293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9294 # chokes on -Wl,-G. The following line is correct:
9295 shared_flag='-G'
9296 else
9297 if test "$aix_use_runtimelinking" = yes; then
9298 shared_flag='${wl}-G'
9299 else
9300 shared_flag='${wl}-bM:SRE'
9305 export_dynamic_flag_spec='${wl}-bexpall'
9306 # It seems that -bexpall does not export symbols beginning with
9307 # underscore (_), so it is better to generate a list of symbols to export.
9308 always_export_symbols=yes
9309 if test "$aix_use_runtimelinking" = yes; then
9310 # Warning - without using the other runtime loading flags (-brtl),
9311 # -berok will link without error, but may produce a broken library.
9312 allow_undefined_flag='-berok'
9313 # Determine the default libpath from the value encoded in an
9314 # empty executable.
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9319 main ()
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9328 lt_aix_libpath_sed='
9329 /Import File Strings/,/^$/ {
9330 /^0/ {
9331 s/^0 *\(.*\)$/\1/
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9336 # Check for a 64-bit object if we didn't find anything.
9337 if test -z "$aix_libpath"; then
9338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346 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"
9347 else
9348 if test "$host_cpu" = ia64; then
9349 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9350 allow_undefined_flag="-z nodefs"
9351 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"
9352 else
9353 # Determine the default libpath from the value encoded in an
9354 # empty executable.
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9359 main ()
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9368 lt_aix_libpath_sed='
9369 /Import File Strings/,/^$/ {
9370 /^0/ {
9371 s/^0 *\(.*\)$/\1/
9375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9376 # Check for a 64-bit object if we didn't find anything.
9377 if test -z "$aix_libpath"; then
9378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9386 # Warning - without using the other run time loading flags,
9387 # -berok will link without error, but may produce a broken library.
9388 no_undefined_flag=' ${wl}-bernotok'
9389 allow_undefined_flag=' ${wl}-berok'
9390 # Exported symbols can be pulled into shared objects from archives
9391 whole_archive_flag_spec='$convenience'
9392 archive_cmds_need_lc=yes
9393 # This is similar to how AIX traditionally builds its shared libraries.
9394 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'
9399 amigaos*)
9400 case $host_cpu in
9401 powerpc)
9402 # see comment about AmigaOS4 .so support
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds=''
9406 m68k)
9407 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)'
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_minus_L=yes
9411 esac
9414 bsdi[45]*)
9415 export_dynamic_flag_spec=-rdynamic
9418 cygwin* | mingw* | pw32* | cegcc*)
9419 # When not using gcc, we currently assume that we are using
9420 # Microsoft Visual C++.
9421 # hardcode_libdir_flag_spec is actually meaningless, as there is
9422 # no search path for DLLs.
9423 hardcode_libdir_flag_spec=' '
9424 allow_undefined_flag=unsupported
9425 # Tell ltmain to make .lib files, not .a files.
9426 libext=lib
9427 # Tell ltmain to make .dll files, not .so files.
9428 shrext_cmds=".dll"
9429 # FIXME: Setting linknames here is a bad hack.
9430 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9431 # The linker will automatically build a .lib file if we build a DLL.
9432 old_archive_from_new_cmds='true'
9433 # FIXME: Should let the user specify the lib program.
9434 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9435 fix_srcfile_path='`cygpath -w "$srcfile"`'
9436 enable_shared_with_static_runtimes=yes
9439 darwin* | rhapsody*)
9442 archive_cmds_need_lc=no
9443 hardcode_direct=no
9444 hardcode_automatic=yes
9445 hardcode_shlibpath_var=unsupported
9446 whole_archive_flag_spec=''
9447 link_all_deplibs=yes
9448 allow_undefined_flag="$_lt_dar_allow_undefined"
9449 case $cc_basename in
9450 ifort*) _lt_dar_can_shared=yes ;;
9451 *) _lt_dar_can_shared=$GCC ;;
9452 esac
9453 if test "$_lt_dar_can_shared" = "yes"; then
9454 output_verbose_link_cmd=echo
9455 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9456 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9457 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}"
9458 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}"
9460 else
9461 ld_shlibs=no
9466 dgux*)
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_shlibpath_var=no
9472 freebsd1*)
9473 ld_shlibs=no
9476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9477 # support. Future versions do this automatically, but an explicit c++rt0.o
9478 # does not break anything, and helps significantly (at the cost of a little
9479 # extra space).
9480 freebsd2.2*)
9481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
9487 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9488 freebsd2*)
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_direct=yes
9491 hardcode_minus_L=yes
9492 hardcode_shlibpath_var=no
9495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9496 freebsd* | dragonfly*)
9497 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9498 hardcode_libdir_flag_spec='-R$libdir'
9499 hardcode_direct=yes
9500 hardcode_shlibpath_var=no
9503 hpux9*)
9504 if test "$GCC" = yes; then
9505 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'
9506 else
9507 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'
9509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9510 hardcode_libdir_separator=:
9511 hardcode_direct=yes
9513 # hardcode_minus_L: Not really in the search PATH,
9514 # but as the default location of the library.
9515 hardcode_minus_L=yes
9516 export_dynamic_flag_spec='${wl}-E'
9519 hpux10*)
9520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9521 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9522 else
9523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9525 if test "$with_gnu_ld" = no; then
9526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9527 hardcode_libdir_flag_spec_ld='+b $libdir'
9528 hardcode_libdir_separator=:
9529 hardcode_direct=yes
9530 hardcode_direct_absolute=yes
9531 export_dynamic_flag_spec='${wl}-E'
9532 # hardcode_minus_L: Not really in the search PATH,
9533 # but as the default location of the library.
9534 hardcode_minus_L=yes
9538 hpux11*)
9539 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9540 case $host_cpu in
9541 hppa*64*)
9542 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544 ia64*)
9545 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550 esac
9551 else
9552 case $host_cpu in
9553 hppa*64*)
9554 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 ia64*)
9557 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9562 esac
9564 if test "$with_gnu_ld" = no; then
9565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9566 hardcode_libdir_separator=:
9568 case $host_cpu in
9569 hppa*64*|ia64*)
9570 hardcode_direct=no
9571 hardcode_shlibpath_var=no
9574 hardcode_direct=yes
9575 hardcode_direct_absolute=yes
9576 export_dynamic_flag_spec='${wl}-E'
9578 # hardcode_minus_L: Not really in the search PATH,
9579 # but as the default location of the library.
9580 hardcode_minus_L=yes
9582 esac
9586 irix5* | irix6* | nonstopux*)
9587 if test "$GCC" = yes; then
9588 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'
9589 # Try to use the -exported_symbol ld option, if it does not
9590 # work, assume that -exports_file does not work either and
9591 # implicitly export all symbols.
9592 save_LDFLAGS="$LDFLAGS"
9593 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 int foo (void) { return 0; }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9600 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'
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LDFLAGS="$save_LDFLAGS"
9606 else
9607 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'
9608 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'
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 inherit_rpath=yes
9614 link_all_deplibs=yes
9617 netbsd*)
9618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9620 else
9621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9623 hardcode_libdir_flag_spec='-R$libdir'
9624 hardcode_direct=yes
9625 hardcode_shlibpath_var=no
9628 newsos6)
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=yes
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9633 hardcode_shlibpath_var=no
9636 *nto* | *qnx*)
9639 openbsd*)
9640 if test -f /usr/libexec/ld.so; then
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
9643 hardcode_direct_absolute=yes
9644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648 export_dynamic_flag_spec='${wl}-E'
9649 else
9650 case $host_os in
9651 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_libdir_flag_spec='-R$libdir'
9656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659 esac
9661 else
9662 ld_shlibs=no
9666 os2*)
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_minus_L=yes
9669 allow_undefined_flag=unsupported
9670 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'
9671 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9674 osf3*)
9675 if test "$GCC" = yes; then
9676 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9677 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'
9678 else
9679 allow_undefined_flag=' -expect_unresolved \*'
9680 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'
9682 archive_cmds_need_lc='no'
9683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684 hardcode_libdir_separator=:
9687 osf4* | osf5*) # as osf3* with the addition of -msym flag
9688 if test "$GCC" = yes; then
9689 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9690 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'
9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692 else
9693 allow_undefined_flag=' -expect_unresolved \*'
9694 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'
9695 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~
9696 $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'
9698 # Both c and cxx compiler support -rpath directly
9699 hardcode_libdir_flag_spec='-rpath $libdir'
9701 archive_cmds_need_lc='no'
9702 hardcode_libdir_separator=:
9705 solaris*)
9706 no_undefined_flag=' -z defs'
9707 if test "$GCC" = yes; then
9708 wlarc='${wl}'
9709 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9711 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9712 else
9713 case `$CC -V 2>&1` in
9714 *"Compilers 5.0"*)
9715 wlarc=''
9716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9721 wlarc='${wl}'
9722 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9726 esac
9728 hardcode_libdir_flag_spec='-R$libdir'
9729 hardcode_shlibpath_var=no
9730 case $host_os in
9731 solaris2.[0-5] | solaris2.[0-5].*) ;;
9733 # The compiler driver will combine and reorder linker options,
9734 # but understands `-z linker_flag'. GCC discards it without `$wl',
9735 # but is careful enough not to reorder.
9736 # Supported since Solaris 2.6 (maybe 2.5.1?)
9737 if test "$GCC" = yes; then
9738 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9739 else
9740 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9743 esac
9744 link_all_deplibs=yes
9747 sunos4*)
9748 if test "x$host_vendor" = xsequent; then
9749 # Use $CC to link under sequent, because it throws in some extra .o
9750 # files that make .init and .fini sections work.
9751 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_direct=yes
9757 hardcode_minus_L=yes
9758 hardcode_shlibpath_var=no
9761 sysv4)
9762 case $host_vendor in
9763 sni)
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=yes # is this really true???
9767 siemens)
9768 ## LD is ld it makes a PLAMLIB
9769 ## CC just makes a GrossModule.
9770 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9771 reload_cmds='$CC -r -o $output$reload_objs'
9772 hardcode_direct=no
9774 motorola)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9778 esac
9779 runpath_var='LD_RUN_PATH'
9780 hardcode_shlibpath_var=no
9783 sysv4.3*)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_shlibpath_var=no
9786 export_dynamic_flag_spec='-Bexport'
9789 sysv4*MP*)
9790 if test -d /usr/nec; then
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_shlibpath_var=no
9793 runpath_var=LD_RUN_PATH
9794 hardcode_runpath_var=yes
9795 ld_shlibs=yes
9799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9800 no_undefined_flag='${wl}-z,text'
9801 archive_cmds_need_lc=no
9802 hardcode_shlibpath_var=no
9803 runpath_var='LD_RUN_PATH'
9805 if test "$GCC" = yes; then
9806 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 else
9809 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 sysv5* | sco3.2v5* | sco5v6*)
9815 # Note: We can NOT use -z defs as we might desire, because we do not
9816 # link with -lc, and that would cause any symbols used from libc to
9817 # always be unresolved, which means just about no library would
9818 # ever link correctly. If we're not using GNU ld we use -z text
9819 # though, which does catch some bad symbols but isn't as heavy-handed
9820 # as -z defs.
9821 no_undefined_flag='${wl}-z,text'
9822 allow_undefined_flag='${wl}-z,nodefs'
9823 archive_cmds_need_lc=no
9824 hardcode_shlibpath_var=no
9825 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9826 hardcode_libdir_separator=':'
9827 link_all_deplibs=yes
9828 export_dynamic_flag_spec='${wl}-Bexport'
9829 runpath_var='LD_RUN_PATH'
9831 if test "$GCC" = yes; then
9832 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 else
9835 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 uts4*)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_shlibpath_var=no
9847 ld_shlibs=no
9849 esac
9851 if test x$host_vendor = xsni; then
9852 case $host in
9853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9854 export_dynamic_flag_spec='${wl}-Blargedynsym'
9856 esac
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9861 $as_echo "$ld_shlibs" >&6; }
9862 test "$ld_shlibs" = no && can_build_shared=no
9864 with_gnu_ld=$with_gnu_ld
9881 # Do we need to explicitly link libc?
9883 case "x$archive_cmds_need_lc" in
9884 x|xyes)
9885 # Assume -lc should be added
9886 archive_cmds_need_lc=yes
9888 if test "$enable_shared" = yes && test "$GCC" = yes; then
9889 case $archive_cmds in
9890 *'~'*)
9891 # FIXME: we may have to deal with multi-command sequences.
9893 '$CC '*)
9894 # Test whether the compiler implicitly links with -lc since on some
9895 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9896 # to ld, don't add -lc before -lgcc.
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9898 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9899 $RM conftest*
9900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9903 (eval $ac_compile) 2>&5
9904 ac_status=$?
9905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906 test $ac_status = 0; } 2>conftest.err; then
9907 soname=conftest
9908 lib=conftest
9909 libobjs=conftest.$ac_objext
9910 deplibs=
9911 wl=$lt_prog_compiler_wl
9912 pic_flag=$lt_prog_compiler_pic
9913 compiler_flags=-v
9914 linker_flags=-v
9915 verstring=
9916 output_objdir=.
9917 libname=conftest
9918 lt_save_allow_undefined_flag=$allow_undefined_flag
9919 allow_undefined_flag=
9920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9922 ac_status=$?
9923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924 test $ac_status = 0; }
9925 then
9926 archive_cmds_need_lc=no
9927 else
9928 archive_cmds_need_lc=yes
9930 allow_undefined_flag=$lt_save_allow_undefined_flag
9931 else
9932 cat conftest.err 1>&5
9934 $RM conftest*
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9936 $as_echo "$archive_cmds_need_lc" >&6; }
9938 esac
9941 esac
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10102 if test "$GCC" = yes; then
10103 case $host_os in
10104 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10105 *) lt_awk_arg="/^libraries:/" ;;
10106 esac
10107 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10108 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10109 # if the path contains ";" then we assume it to be the separator
10110 # otherwise default to the standard path separator (i.e. ":") - it is
10111 # assumed that no part of a normal pathname contains ";" but that should
10112 # okay in the real world where ";" in dirpaths is itself problematic.
10113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10114 else
10115 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10117 # Ok, now we have the path, separated by spaces, we can step through it
10118 # and add multilib dir if necessary.
10119 lt_tmp_lt_search_path_spec=
10120 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10121 for lt_sys_path in $lt_search_path_spec; do
10122 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10124 else
10125 test -d "$lt_sys_path" && \
10126 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10128 done
10129 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10130 BEGIN {RS=" "; FS="/|\n";} {
10131 lt_foo="";
10132 lt_count=0;
10133 for (lt_i = NF; lt_i > 0; lt_i--) {
10134 if ($lt_i != "" && $lt_i != ".") {
10135 if ($lt_i == "..") {
10136 lt_count++;
10137 } else {
10138 if (lt_count == 0) {
10139 lt_foo="/" $lt_i lt_foo;
10140 } else {
10141 lt_count--;
10146 if (lt_foo != "") { lt_freq[lt_foo]++; }
10147 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10149 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10150 else
10151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10153 library_names_spec=
10154 libname_spec='lib$name'
10155 soname_spec=
10156 shrext_cmds=".so"
10157 postinstall_cmds=
10158 postuninstall_cmds=
10159 finish_cmds=
10160 finish_eval=
10161 shlibpath_var=
10162 shlibpath_overrides_runpath=unknown
10163 version_type=none
10164 dynamic_linker="$host_os ld.so"
10165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10166 need_lib_prefix=unknown
10167 hardcode_into_libs=no
10169 # when you set need_version to no, make sure it does not cause -set_version
10170 # flags to be left without arguments
10171 need_version=unknown
10173 case $host_os in
10174 aix3*)
10175 version_type=linux
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10177 shlibpath_var=LIBPATH
10179 # AIX 3 has no versioning support, so we append a major version to the name.
10180 soname_spec='${libname}${release}${shared_ext}$major'
10183 aix[4-9]*)
10184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 hardcode_into_libs=yes
10188 if test "$host_cpu" = ia64; then
10189 # AIX 5 supports IA64
10190 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 else
10193 # With GCC up to 2.95.x, collect2 would create an import file
10194 # for dependence libraries. The import file would start with
10195 # the line `#! .'. This would cause the generated library to
10196 # depend on `.', always an invalid library. This was fixed in
10197 # development snapshots of GCC prior to 3.0.
10198 case $host_os in
10199 aix4 | aix4.[01] | aix4.[01].*)
10200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10201 echo ' yes '
10202 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10204 else
10205 can_build_shared=no
10208 esac
10209 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10210 # soname into executable. Probably we can add versioning support to
10211 # collect2, so additional links can be useful in future.
10212 if test "$aix_use_runtimelinking" = yes; then
10213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10214 # instead of lib<name>.a to let people know that these are not
10215 # typical AIX shared libraries.
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 else
10218 # We preserve .a as extension for shared libraries through AIX4.2
10219 # and later when we are not doing run time linking.
10220 library_names_spec='${libname}${release}.a $libname.a'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LIBPATH
10227 amigaos*)
10228 case $host_cpu in
10229 powerpc)
10230 # Since July 2007 AmigaOS4 officially supports .so libraries.
10231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 m68k)
10235 library_names_spec='$libname.ixlibrary $libname.a'
10236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10237 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'
10239 esac
10242 beos*)
10243 library_names_spec='${libname}${shared_ext}'
10244 dynamic_linker="$host_os ld.so"
10245 shlibpath_var=LIBRARY_PATH
10248 bsdi[45]*)
10249 version_type=linux
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10257 # the default ld.so.conf also contains /usr/contrib/lib and
10258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10259 # libtool to hard-code these into programs
10262 cygwin* | mingw* | pw32* | cegcc*)
10263 version_type=windows
10264 shrext_cmds=".dll"
10265 need_version=no
10266 need_lib_prefix=no
10268 case $GCC,$host_os in
10269 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10270 library_names_spec='$libname.dll.a'
10271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10272 postinstall_cmds='base_file=`basename \${file}`~
10273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10274 dldir=$destdir/`dirname \$dlpath`~
10275 test -d \$dldir || mkdir -p \$dldir~
10276 $install_prog $dir/$dlname \$dldir/$dlname~
10277 chmod a+x \$dldir/$dlname~
10278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10282 dlpath=$dir/\$dldll~
10283 $RM \$dlpath'
10284 shlibpath_overrides_runpath=yes
10286 case $host_os in
10287 cygwin*)
10288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10290 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10292 mingw* | cegcc*)
10293 # MinGW DLLs use traditional 'lib' prefix
10294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10297 # It is most probably a Windows format PATH printed by
10298 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10299 # path with ; separators, and with drive letters. We can handle the
10300 # drive letters (cygwin fileutils understands them), so leave them,
10301 # especially as we might pass files found there to a mingw objdump,
10302 # which wouldn't understand a cygwinified path. Ahh.
10303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10304 else
10305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10308 pw32*)
10309 # pw32 DLLs use 'pw' prefix rather than 'lib'
10310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10312 esac
10316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10318 esac
10319 dynamic_linker='Win32 ld.exe'
10320 # FIXME: first we should search . and the directory the executable is in
10321 shlibpath_var=PATH
10324 darwin* | rhapsody*)
10325 dynamic_linker="$host_os dyld"
10326 version_type=darwin
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10330 soname_spec='${libname}${release}${major}$shared_ext'
10331 shlibpath_overrides_runpath=yes
10332 shlibpath_var=DYLD_LIBRARY_PATH
10333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10339 dgux*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 shlibpath_var=LD_LIBRARY_PATH
10348 freebsd1*)
10349 dynamic_linker=no
10352 freebsd* | dragonfly*)
10353 # DragonFly does not have aout. When/if they implement a new
10354 # versioning mechanism, adjust this.
10355 if test -x /usr/bin/objformat; then
10356 objformat=`/usr/bin/objformat`
10357 else
10358 case $host_os in
10359 freebsd[123]*) objformat=aout ;;
10360 *) objformat=elf ;;
10361 esac
10363 version_type=freebsd-$objformat
10364 case $version_type in
10365 freebsd-elf*)
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10367 need_version=no
10368 need_lib_prefix=no
10370 freebsd-*)
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10372 need_version=yes
10374 esac
10375 shlibpath_var=LD_LIBRARY_PATH
10376 case $host_os in
10377 freebsd2*)
10378 shlibpath_overrides_runpath=yes
10380 freebsd3.[01]* | freebsdelf3.[01]*)
10381 shlibpath_overrides_runpath=yes
10382 hardcode_into_libs=yes
10384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10386 shlibpath_overrides_runpath=no
10387 hardcode_into_libs=yes
10389 *) # from 4.6 on, and DragonFly
10390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10393 esac
10396 gnu*)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 hardcode_into_libs=yes
10406 hpux9* | hpux10* | hpux11*)
10407 # Give a soname corresponding to the major version so that dld.sl refuses to
10408 # link against other versions.
10409 version_type=sunos
10410 need_lib_prefix=no
10411 need_version=no
10412 case $host_cpu in
10413 ia64*)
10414 shrext_cmds='.so'
10415 hardcode_into_libs=yes
10416 dynamic_linker="$host_os dld.so"
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 if test "X$HPUX_IA64_MODE" = X32; then
10422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10423 else
10424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10428 hppa*64*)
10429 shrext_cmds='.sl'
10430 hardcode_into_libs=yes
10431 dynamic_linker="$host_os dld.sl"
10432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10440 shrext_cmds='.sl'
10441 dynamic_linker="$host_os dld.sl"
10442 shlibpath_var=SHLIB_PATH
10443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10447 esac
10448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10449 postinstall_cmds='chmod 555 $lib'
10452 interix[3-9]*)
10453 version_type=linux
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=no
10461 hardcode_into_libs=yes
10464 irix5* | irix6* | nonstopux*)
10465 case $host_os in
10466 nonstopux*) version_type=nonstopux ;;
10468 if test "$lt_cv_prog_gnu_ld" = yes; then
10469 version_type=linux
10470 else
10471 version_type=irix
10472 fi ;;
10473 esac
10474 need_lib_prefix=no
10475 need_version=no
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10478 case $host_os in
10479 irix5* | nonstopux*)
10480 libsuff= shlibsuff=
10483 case $LD in # libtool.m4 will add one of these switches to LD
10484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10485 libsuff= shlibsuff= libmagic=32-bit;;
10486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10487 libsuff=32 shlibsuff=N32 libmagic=N32;;
10488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10490 *) libsuff= shlibsuff= libmagic=never-match;;
10491 esac
10493 esac
10494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10495 shlibpath_overrides_runpath=no
10496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10498 hardcode_into_libs=yes
10501 # No shared lib support for Linux oldld, aout, or coff.
10502 linux*oldld* | linux*aout* | linux*coff*)
10503 dynamic_linker=no
10506 # This must be Linux ELF.
10507 linux* | k*bsd*-gnu)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 # Some binutils ld are patched to set DT_RUNPATH
10517 save_LDFLAGS=$LDFLAGS
10518 save_libdir=$libdir
10519 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10520 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10525 main ()
10529 return 0;
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10534 shlibpath_overrides_runpath=yes
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LDFLAGS=$save_LDFLAGS
10540 libdir=$save_libdir
10542 # This implies no fast_install, which is unacceptable.
10543 # Some rework will be needed to allow for fast_install
10544 # before this can be enabled.
10545 hardcode_into_libs=yes
10547 # Append ld.so.conf contents to the search path
10548 if test -f /etc/ld.so.conf; then
10549 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' ' '`
10550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10553 # We used to test for /lib/ld.so.1 and disable shared libraries on
10554 # powerpc, because MkLinux only supported shared libraries with the
10555 # GNU dynamic linker. Since this was broken with cross compilers,
10556 # most powerpc-linux boxes support dynamic linking these days and
10557 # people can always --disable-shared, the test was removed, and we
10558 # assume the GNU/Linux dynamic linker is in use.
10559 dynamic_linker='GNU/Linux ld.so'
10562 netbsd*)
10563 version_type=sunos
10564 need_lib_prefix=no
10565 need_version=no
10566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10569 dynamic_linker='NetBSD (a.out) ld.so'
10570 else
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 dynamic_linker='NetBSD ld.elf_so'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10580 newsos6)
10581 version_type=linux
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10587 *nto* | *qnx*)
10588 version_type=qnx
10589 need_lib_prefix=no
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=no
10595 hardcode_into_libs=yes
10596 dynamic_linker='ldqnx.so'
10599 openbsd*)
10600 version_type=sunos
10601 sys_lib_dlsearch_path_spec="/usr/lib"
10602 need_lib_prefix=no
10603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10604 case $host_os in
10605 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10606 *) need_version=no ;;
10607 esac
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10612 case $host_os in
10613 openbsd2.[89] | openbsd2.[89].*)
10614 shlibpath_overrides_runpath=no
10617 shlibpath_overrides_runpath=yes
10619 esac
10620 else
10621 shlibpath_overrides_runpath=yes
10625 os2*)
10626 libname_spec='$name'
10627 shrext_cmds=".dll"
10628 need_lib_prefix=no
10629 library_names_spec='$libname${shared_ext} $libname.a'
10630 dynamic_linker='OS/2 ld.exe'
10631 shlibpath_var=LIBPATH
10634 osf3* | osf4* | osf5*)
10635 version_type=osf
10636 need_lib_prefix=no
10637 need_version=no
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10642 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10645 rdos*)
10646 dynamic_linker=no
10649 solaris*)
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 # ldd complains unless libraries are executable
10659 postinstall_cmds='chmod +x $lib'
10662 sunos4*)
10663 version_type=sunos
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath=yes
10668 if test "$with_gnu_ld" = yes; then
10669 need_lib_prefix=no
10671 need_version=yes
10674 sysv4 | sysv4.3*)
10675 version_type=linux
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 case $host_vendor in
10680 sni)
10681 shlibpath_overrides_runpath=no
10682 need_lib_prefix=no
10683 runpath_var=LD_RUN_PATH
10685 siemens)
10686 need_lib_prefix=no
10688 motorola)
10689 need_lib_prefix=no
10690 need_version=no
10691 shlibpath_overrides_runpath=no
10692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10694 esac
10697 sysv4*MP*)
10698 if test -d /usr/nec ;then
10699 version_type=linux
10700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10701 soname_spec='$libname${shared_ext}.$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707 version_type=freebsd-elf
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=yes
10714 hardcode_into_libs=yes
10715 if test "$with_gnu_ld" = yes; then
10716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10717 else
10718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10719 case $host_os in
10720 sco3.2v5*)
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10723 esac
10725 sys_lib_dlsearch_path_spec='/usr/lib'
10728 tpf*)
10729 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10730 version_type=linux
10731 need_lib_prefix=no
10732 need_version=no
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=no
10736 hardcode_into_libs=yes
10739 uts4*)
10740 version_type=linux
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 shlibpath_var=LD_LIBRARY_PATH
10747 dynamic_linker=no
10749 esac
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10751 $as_echo "$dynamic_linker" >&6; }
10752 test "$dynamic_linker" = no && can_build_shared=no
10754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10755 if test "$GCC" = yes; then
10756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10759 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10760 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10762 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10763 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10854 hardcode_action=
10855 if test -n "$hardcode_libdir_flag_spec" ||
10856 test -n "$runpath_var" ||
10857 test "X$hardcode_automatic" = "Xyes" ; then
10859 # We can hardcode non-existent directories.
10860 if test "$hardcode_direct" != no &&
10861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10862 # have to relink, otherwise we might link with an installed library
10863 # when we should be linking with a yet-to-be-installed one
10864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10865 test "$hardcode_minus_L" != no; then
10866 # Linking always hardcodes the temporary library directory.
10867 hardcode_action=relink
10868 else
10869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10870 hardcode_action=immediate
10872 else
10873 # We cannot hardcode anything, or else we can only hardcode existing
10874 # directories.
10875 hardcode_action=unsupported
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10878 $as_echo "$hardcode_action" >&6; }
10880 if test "$hardcode_action" = relink ||
10881 test "$inherit_rpath" = yes; then
10882 # Fast installation is not supported
10883 enable_fast_install=no
10884 elif test "$shlibpath_overrides_runpath" = yes ||
10885 test "$enable_shared" = no; then
10886 # Fast installation is not necessary
10887 enable_fast_install=needless
10895 if test "x$enable_dlopen" != xyes; then
10896 enable_dlopen=unknown
10897 enable_dlopen_self=unknown
10898 enable_dlopen_self_static=unknown
10899 else
10900 lt_cv_dlopen=no
10901 lt_cv_dlopen_libs=
10903 case $host_os in
10904 beos*)
10905 lt_cv_dlopen="load_add_on"
10906 lt_cv_dlopen_libs=
10907 lt_cv_dlopen_self=yes
10910 mingw* | pw32* | cegcc*)
10911 lt_cv_dlopen="LoadLibrary"
10912 lt_cv_dlopen_libs=
10915 cygwin*)
10916 lt_cv_dlopen="dlopen"
10917 lt_cv_dlopen_libs=
10920 darwin*)
10921 # if libdl is installed we need to link against it
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10924 if ${ac_cv_lib_dl_dlopen+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldl $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dlopen ();
10940 main ()
10942 return dlopen ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dl_dlopen=yes
10949 else
10950 ac_cv_lib_dl_dlopen=no
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10962 lt_cv_dlopen="dyld"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10971 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10972 if test "x$ac_cv_func_shl_load" = xyes; then :
10973 lt_cv_dlopen="shl_load"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10976 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10977 if ${ac_cv_lib_dld_shl_load+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldld $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char shl_load ();
10993 main ()
10995 return shl_load ();
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dld_shl_load=yes
11002 else
11003 ac_cv_lib_dld_shl_load=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11010 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11011 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11013 else
11014 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11015 if test "x$ac_cv_func_dlopen" = xyes; then :
11016 lt_cv_dlopen="dlopen"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11020 if ${ac_cv_lib_dl_dlopen+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldl $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dlopen ();
11036 main ()
11038 return dlopen ();
11040 return 0;
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dl_dlopen=yes
11045 else
11046 ac_cv_lib_dl_dlopen=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11058 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11059 if ${ac_cv_lib_svld_dlopen+:} false; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lsvld $LIBS"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char dlopen ();
11075 main ()
11077 return dlopen ();
11079 return 0;
11081 _ACEOF
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 ac_cv_lib_svld_dlopen=yes
11084 else
11085 ac_cv_lib_svld_dlopen=no
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_lib_save_LIBS
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11092 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11093 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11097 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11098 if ${ac_cv_lib_dld_dld_link+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 ac_check_lib_save_LIBS=$LIBS
11102 LIBS="-ldld $LIBS"
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char dld_link ();
11114 main ()
11116 return dld_link ();
11118 return 0;
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122 ac_cv_lib_dld_dld_link=yes
11123 else
11124 ac_cv_lib_dld_dld_link=no
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11131 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11132 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11152 esac
11154 if test "x$lt_cv_dlopen" != xno; then
11155 enable_dlopen=yes
11156 else
11157 enable_dlopen=no
11160 case $lt_cv_dlopen in
11161 dlopen)
11162 save_CPPFLAGS="$CPPFLAGS"
11163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165 save_LDFLAGS="$LDFLAGS"
11166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11168 save_LIBS="$LIBS"
11169 LIBS="$lt_cv_dlopen_libs $LIBS"
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11172 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11173 if ${lt_cv_dlopen_self+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 if test "$cross_compiling" = yes; then :
11177 lt_cv_dlopen_self=cross
11178 else
11179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11180 lt_status=$lt_dlunknown
11181 cat > conftest.$ac_ext <<_LT_EOF
11182 #line 11182 "configure"
11183 #include "confdefs.h"
11185 #if HAVE_DLFCN_H
11186 #include <dlfcn.h>
11187 #endif
11189 #include <stdio.h>
11191 #ifdef RTLD_GLOBAL
11192 # define LT_DLGLOBAL RTLD_GLOBAL
11193 #else
11194 # ifdef DL_GLOBAL
11195 # define LT_DLGLOBAL DL_GLOBAL
11196 # else
11197 # define LT_DLGLOBAL 0
11198 # endif
11199 #endif
11201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11202 find out it does not work in some platform. */
11203 #ifndef LT_DLLAZY_OR_NOW
11204 # ifdef RTLD_LAZY
11205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11206 # else
11207 # ifdef DL_LAZY
11208 # define LT_DLLAZY_OR_NOW DL_LAZY
11209 # else
11210 # ifdef RTLD_NOW
11211 # define LT_DLLAZY_OR_NOW RTLD_NOW
11212 # else
11213 # ifdef DL_NOW
11214 # define LT_DLLAZY_OR_NOW DL_NOW
11215 # else
11216 # define LT_DLLAZY_OR_NOW 0
11217 # endif
11218 # endif
11219 # endif
11220 # endif
11221 #endif
11223 void fnord() { int i=42;}
11224 int main ()
11226 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11227 int status = $lt_dlunknown;
11229 if (self)
11231 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11232 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11233 /* dlclose (self); */
11235 else
11236 puts (dlerror ());
11238 return status;
11240 _LT_EOF
11241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11242 (eval $ac_link) 2>&5
11243 ac_status=$?
11244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11245 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11246 (./conftest; exit; ) >&5 2>/dev/null
11247 lt_status=$?
11248 case x$lt_status in
11249 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11250 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11251 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11252 esac
11253 else :
11254 # compilation failed
11255 lt_cv_dlopen_self=no
11258 rm -fr conftest*
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11263 $as_echo "$lt_cv_dlopen_self" >&6; }
11265 if test "x$lt_cv_dlopen_self" = xyes; then
11266 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11268 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11269 if ${lt_cv_dlopen_self_static+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 if test "$cross_compiling" = yes; then :
11273 lt_cv_dlopen_self_static=cross
11274 else
11275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276 lt_status=$lt_dlunknown
11277 cat > conftest.$ac_ext <<_LT_EOF
11278 #line 11278 "configure"
11279 #include "confdefs.h"
11281 #if HAVE_DLFCN_H
11282 #include <dlfcn.h>
11283 #endif
11285 #include <stdio.h>
11287 #ifdef RTLD_GLOBAL
11288 # define LT_DLGLOBAL RTLD_GLOBAL
11289 #else
11290 # ifdef DL_GLOBAL
11291 # define LT_DLGLOBAL DL_GLOBAL
11292 # else
11293 # define LT_DLGLOBAL 0
11294 # endif
11295 #endif
11297 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298 find out it does not work in some platform. */
11299 #ifndef LT_DLLAZY_OR_NOW
11300 # ifdef RTLD_LAZY
11301 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11302 # else
11303 # ifdef DL_LAZY
11304 # define LT_DLLAZY_OR_NOW DL_LAZY
11305 # else
11306 # ifdef RTLD_NOW
11307 # define LT_DLLAZY_OR_NOW RTLD_NOW
11308 # else
11309 # ifdef DL_NOW
11310 # define LT_DLLAZY_OR_NOW DL_NOW
11311 # else
11312 # define LT_DLLAZY_OR_NOW 0
11313 # endif
11314 # endif
11315 # endif
11316 # endif
11317 #endif
11319 void fnord() { int i=42;}
11320 int main ()
11322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11323 int status = $lt_dlunknown;
11325 if (self)
11327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11328 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11329 /* dlclose (self); */
11331 else
11332 puts (dlerror ());
11334 return status;
11336 _LT_EOF
11337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11338 (eval $ac_link) 2>&5
11339 ac_status=$?
11340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11342 (./conftest; exit; ) >&5 2>/dev/null
11343 lt_status=$?
11344 case x$lt_status in
11345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11348 esac
11349 else :
11350 # compilation failed
11351 lt_cv_dlopen_self_static=no
11354 rm -fr conftest*
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11362 CPPFLAGS="$save_CPPFLAGS"
11363 LDFLAGS="$save_LDFLAGS"
11364 LIBS="$save_LIBS"
11366 esac
11368 case $lt_cv_dlopen_self in
11369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11370 *) enable_dlopen_self=unknown ;;
11371 esac
11373 case $lt_cv_dlopen_self_static in
11374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11375 *) enable_dlopen_self_static=unknown ;;
11376 esac
11395 striplib=
11396 old_striplib=
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11399 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403 $as_echo "yes" >&6; }
11404 else
11405 # FIXME - insert some real tests, host_os isn't really good enough
11406 case $host_os in
11407 darwin*)
11408 if test -n "$STRIP" ; then
11409 striplib="$STRIP -x"
11410 old_striplib="$STRIP -S"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412 $as_echo "yes" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11422 esac
11436 # Report which library types will actually be built
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11440 $as_echo "$can_build_shared" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11443 $as_echo_n "checking whether to build shared libraries... " >&6; }
11444 test "$can_build_shared" = "no" && enable_shared=no
11446 # On AIX, shared libraries and static libraries use the same namespace, and
11447 # are all built from PIC.
11448 case $host_os in
11449 aix3*)
11450 test "$enable_shared" = yes && enable_static=no
11451 if test -n "$RANLIB"; then
11452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11453 postinstall_cmds='$RANLIB $lib'
11457 aix[4-9]*)
11458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11459 test "$enable_shared" = yes && enable_static=no
11462 esac
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11464 $as_echo "$enable_shared" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11467 $as_echo_n "checking whether to build static libraries... " >&6; }
11468 # Make sure either enable_shared or enable_static is yes.
11469 test "$enable_shared" = yes || enable_static=yes
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11471 $as_echo "$enable_static" >&6; }
11477 ac_ext=c
11478 ac_cpp='$CPP $CPPFLAGS'
11479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483 CC="$lt_save_CC"
11497 ac_config_commands="$ac_config_commands libtool"
11502 # Only expand once:
11507 # Extract the first word of "ar", so it can be a program name with args.
11508 set dummy ar; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_path_AR+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 case $AR in
11515 [\\/]* | ?:[\\/]*)
11516 ac_cv_path_AR="$AR" # Let the user override the test with a path.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11530 done
11531 done
11532 IFS=$as_save_IFS
11534 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
11536 esac
11538 AR=$ac_cv_path_AR
11539 if test -n "$AR"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11541 $as_echo "$AR" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11548 # Extract the first word of "rm", so it can be a program name with args.
11549 set dummy rm; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if ${ac_cv_path_RM+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 case $RM in
11556 [\\/]* | ?:[\\/]*)
11557 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11573 IFS=$as_save_IFS
11575 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11577 esac
11579 RM=$ac_cv_path_RM
11580 if test -n "$RM"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11582 $as_echo "$RM" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11589 # Extract the first word of "cp", so it can be a program name with args.
11590 set dummy cp; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if ${ac_cv_path_CP+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 case $CP in
11597 [\\/]* | ?:[\\/]*)
11598 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11612 done
11613 done
11614 IFS=$as_save_IFS
11616 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11618 esac
11620 CP=$ac_cv_path_CP
11621 if test -n "$CP"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11623 $as_echo "$CP" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11630 # Extract the first word of "ln", so it can be a program name with args.
11631 set dummy ln; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_LN+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $LN in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11657 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11659 esac
11661 LN=$ac_cv_path_LN
11662 if test -n "$LN"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11664 $as_echo "$LN" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11671 # Extract the first word of "sed", so it can be a program name with args.
11672 set dummy sed; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_SED+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 case $SED in
11679 [\\/]* | ?:[\\/]*)
11680 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692 break 2
11694 done
11695 done
11696 IFS=$as_save_IFS
11698 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11700 esac
11702 SED=$ac_cv_path_SED
11703 if test -n "$SED"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11705 $as_echo "$SED" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11712 # Extract the first word of "make", so it can be a program name with args.
11713 set dummy make; ac_word=$2
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715 $as_echo_n "checking for $ac_word... " >&6; }
11716 if ${ac_cv_path_MAKE+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 case $MAKE in
11720 [\\/]* | ?:[\\/]*)
11721 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11737 IFS=$as_save_IFS
11740 esac
11742 MAKE=$ac_cv_path_MAKE
11743 if test -n "$MAKE"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11745 $as_echo "$MAKE" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11757 $as_echo_n "checking whether NLS is requested... " >&6; }
11758 # Check whether --enable-nls was given.
11759 if test "${enable_nls+set}" = set; then :
11760 enableval=$enable_nls; USE_NLS=$enableval
11761 else
11762 USE_NLS=yes
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11766 $as_echo "$USE_NLS" >&6; }
11773 # Prepare PATH_SEPARATOR.
11774 # The user is always right.
11775 if test "${PATH_SEPARATOR+set}" != set; then
11776 echo "#! /bin/sh" >conf$$.sh
11777 echo "exit 0" >>conf$$.sh
11778 chmod +x conf$$.sh
11779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11780 PATH_SEPARATOR=';'
11781 else
11782 PATH_SEPARATOR=:
11784 rm -f conf$$.sh
11787 # Find out how to test for executable files. Don't use a zero-byte file,
11788 # as systems may use methods other than mode bits to determine executability.
11789 cat >conf$$.file <<_ASEOF
11790 #! /bin/sh
11791 exit 0
11792 _ASEOF
11793 chmod +x conf$$.file
11794 if test -x conf$$.file >/dev/null 2>&1; then
11795 ac_executable_p="test -x"
11796 else
11797 ac_executable_p="test -f"
11799 rm -f conf$$.file
11801 # Extract the first word of "msgfmt", so it can be a program name with args.
11802 set dummy msgfmt; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_path_MSGFMT+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 case "$MSGFMT" in
11809 [\\/]* | ?:[\\/]*)
11810 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11813 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11814 for ac_dir in $PATH; do
11815 IFS="$ac_save_IFS"
11816 test -z "$ac_dir" && ac_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11819 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11820 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11821 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11822 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11823 break 2
11826 done
11827 done
11828 IFS="$ac_save_IFS"
11829 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11831 esac
11833 MSGFMT="$ac_cv_path_MSGFMT"
11834 if test "$MSGFMT" != ":"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11836 $as_echo "$MSGFMT" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11842 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11843 set dummy gmsgfmt; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_GMSGFMT+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $GMSGFMT in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11865 done
11866 done
11867 IFS=$as_save_IFS
11869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11871 esac
11873 GMSGFMT=$ac_cv_path_GMSGFMT
11874 if test -n "$GMSGFMT"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11876 $as_echo "$GMSGFMT" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11884 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11885 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11886 *) MSGFMT_015=$MSGFMT ;;
11887 esac
11889 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11890 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11891 *) GMSGFMT_015=$GMSGFMT ;;
11892 esac
11896 # Prepare PATH_SEPARATOR.
11897 # The user is always right.
11898 if test "${PATH_SEPARATOR+set}" != set; then
11899 echo "#! /bin/sh" >conf$$.sh
11900 echo "exit 0" >>conf$$.sh
11901 chmod +x conf$$.sh
11902 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11903 PATH_SEPARATOR=';'
11904 else
11905 PATH_SEPARATOR=:
11907 rm -f conf$$.sh
11910 # Find out how to test for executable files. Don't use a zero-byte file,
11911 # as systems may use methods other than mode bits to determine executability.
11912 cat >conf$$.file <<_ASEOF
11913 #! /bin/sh
11914 exit 0
11915 _ASEOF
11916 chmod +x conf$$.file
11917 if test -x conf$$.file >/dev/null 2>&1; then
11918 ac_executable_p="test -x"
11919 else
11920 ac_executable_p="test -f"
11922 rm -f conf$$.file
11924 # Extract the first word of "xgettext", so it can be a program name with args.
11925 set dummy xgettext; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_path_XGETTEXT+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 case "$XGETTEXT" in
11932 [\\/]* | ?:[\\/]*)
11933 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11936 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11937 for ac_dir in $PATH; do
11938 IFS="$ac_save_IFS"
11939 test -z "$ac_dir" && ac_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11942 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11943 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11944 (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
11945 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11946 break 2
11949 done
11950 done
11951 IFS="$ac_save_IFS"
11952 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11954 esac
11956 XGETTEXT="$ac_cv_path_XGETTEXT"
11957 if test "$XGETTEXT" != ":"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11959 $as_echo "$XGETTEXT" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11965 rm -f messages.po
11967 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11968 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11969 *) XGETTEXT_015=$XGETTEXT ;;
11970 esac
11974 # Prepare PATH_SEPARATOR.
11975 # The user is always right.
11976 if test "${PATH_SEPARATOR+set}" != set; then
11977 echo "#! /bin/sh" >conf$$.sh
11978 echo "exit 0" >>conf$$.sh
11979 chmod +x conf$$.sh
11980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11981 PATH_SEPARATOR=';'
11982 else
11983 PATH_SEPARATOR=:
11985 rm -f conf$$.sh
11988 # Find out how to test for executable files. Don't use a zero-byte file,
11989 # as systems may use methods other than mode bits to determine executability.
11990 cat >conf$$.file <<_ASEOF
11991 #! /bin/sh
11992 exit 0
11993 _ASEOF
11994 chmod +x conf$$.file
11995 if test -x conf$$.file >/dev/null 2>&1; then
11996 ac_executable_p="test -x"
11997 else
11998 ac_executable_p="test -f"
12000 rm -f conf$$.file
12002 # Extract the first word of "msgmerge", so it can be a program name with args.
12003 set dummy msgmerge; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_path_MSGMERGE+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 case "$MSGMERGE" in
12010 [\\/]* | ?:[\\/]*)
12011 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12014 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12015 for ac_dir in $PATH; do
12016 IFS="$ac_save_IFS"
12017 test -z "$ac_dir" && ac_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12020 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12021 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12022 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12023 break 2
12026 done
12027 done
12028 IFS="$ac_save_IFS"
12029 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12031 esac
12033 MSGMERGE="$ac_cv_path_MSGMERGE"
12034 if test "$MSGMERGE" != ":"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12036 $as_echo "$MSGMERGE" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12043 test -n "$localedir" || localedir='${datadir}/locale'
12046 ac_config_commands="$ac_config_commands po-directories"
12050 if test "X$prefix" = "XNONE"; then
12051 acl_final_prefix="$ac_default_prefix"
12052 else
12053 acl_final_prefix="$prefix"
12055 if test "X$exec_prefix" = "XNONE"; then
12056 acl_final_exec_prefix='${prefix}'
12057 else
12058 acl_final_exec_prefix="$exec_prefix"
12060 acl_save_prefix="$prefix"
12061 prefix="$acl_final_prefix"
12062 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12063 prefix="$acl_save_prefix"
12066 # Check whether --with-gnu-ld was given.
12067 if test "${with_gnu_ld+set}" = set; then :
12068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12069 else
12070 with_gnu_ld=no
12073 # Prepare PATH_SEPARATOR.
12074 # The user is always right.
12075 if test "${PATH_SEPARATOR+set}" != set; then
12076 echo "#! /bin/sh" >conf$$.sh
12077 echo "exit 0" >>conf$$.sh
12078 chmod +x conf$$.sh
12079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12080 PATH_SEPARATOR=';'
12081 else
12082 PATH_SEPARATOR=:
12084 rm -f conf$$.sh
12086 ac_prog=ld
12087 if test "$GCC" = yes; then
12088 # Check if gcc -print-prog-name=ld gives a path.
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12090 $as_echo_n "checking for ld used by GCC... " >&6; }
12091 case $host in
12092 *-*-mingw*)
12093 # gcc leaves a trailing carriage return which upsets mingw
12094 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12096 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12097 esac
12098 case $ac_prog in
12099 # Accept absolute paths.
12100 [\\/]* | [A-Za-z]:[\\/]*)
12101 re_direlt='/[^/][^/]*/\.\./'
12102 # Canonicalize the path of ld
12103 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12104 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12105 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12106 done
12107 test -z "$LD" && LD="$ac_prog"
12110 # If it fails, then pretend we aren't using GCC.
12111 ac_prog=ld
12114 # If it is relative, then search for the first ld in PATH.
12115 with_gnu_ld=unknown
12117 esac
12118 elif test "$with_gnu_ld" = yes; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12120 $as_echo_n "checking for GNU ld... " >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12123 $as_echo_n "checking for non-GNU ld... " >&6; }
12125 if ${acl_cv_path_LD+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -z "$LD"; then
12129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12130 for ac_dir in $PATH; do
12131 test -z "$ac_dir" && ac_dir=.
12132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12133 acl_cv_path_LD="$ac_dir/$ac_prog"
12134 # Check to see if the program is GNU ld. I'd rather use --version,
12135 # but apparently some GNU ld's only accept -v.
12136 # Break only if it was the GNU/non-GNU ld that we prefer.
12137 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12138 *GNU* | *'with BFD'*)
12139 test "$with_gnu_ld" != no && break ;;
12141 test "$with_gnu_ld" != yes && break ;;
12142 esac
12144 done
12145 IFS="$ac_save_ifs"
12146 else
12147 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12151 LD="$acl_cv_path_LD"
12152 if test -n "$LD"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12154 $as_echo "$LD" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12159 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12161 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12162 if ${acl_cv_prog_gnu_ld+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12166 case `$LD -v 2>&1 </dev/null` in
12167 *GNU* | *'with BFD'*)
12168 acl_cv_prog_gnu_ld=yes ;;
12170 acl_cv_prog_gnu_ld=no ;;
12171 esac
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12174 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12175 with_gnu_ld=$acl_cv_prog_gnu_ld
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12181 $as_echo_n "checking for shared library run path origin... " >&6; }
12182 if ${acl_cv_rpath+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12186 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12187 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12188 . ./conftest.sh
12189 rm -f ./conftest.sh
12190 acl_cv_rpath=done
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12194 $as_echo "$acl_cv_rpath" >&6; }
12195 wl="$acl_cv_wl"
12196 libext="$acl_cv_libext"
12197 shlibext="$acl_cv_shlibext"
12198 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12199 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12200 hardcode_direct="$acl_cv_hardcode_direct"
12201 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12202 # Check whether --enable-rpath was given.
12203 if test "${enable_rpath+set}" = set; then :
12204 enableval=$enable_rpath; :
12205 else
12206 enable_rpath=yes
12211 acl_libdirstem=lib
12212 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12213 if test -n "$searchpath"; then
12214 acl_save_IFS="${IFS= }"; IFS=":"
12215 for searchdir in $searchpath; do
12216 if test -d "$searchdir"; then
12217 case "$searchdir" in
12218 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12219 *) searchdir=`cd "$searchdir" && pwd`
12220 case "$searchdir" in
12221 */lib64 ) acl_libdirstem=lib64 ;;
12222 esac ;;
12223 esac
12225 done
12226 IFS="$acl_save_IFS"
12236 use_additional=yes
12238 acl_save_prefix="$prefix"
12239 prefix="$acl_final_prefix"
12240 acl_save_exec_prefix="$exec_prefix"
12241 exec_prefix="$acl_final_exec_prefix"
12243 eval additional_includedir=\"$includedir\"
12244 eval additional_libdir=\"$libdir\"
12246 exec_prefix="$acl_save_exec_prefix"
12247 prefix="$acl_save_prefix"
12250 # Check whether --with-libiconv-prefix was given.
12251 if test "${with_libiconv_prefix+set}" = set; then :
12252 withval=$with_libiconv_prefix;
12253 if test "X$withval" = "Xno"; then
12254 use_additional=no
12255 else
12256 if test "X$withval" = "X"; then
12258 acl_save_prefix="$prefix"
12259 prefix="$acl_final_prefix"
12260 acl_save_exec_prefix="$exec_prefix"
12261 exec_prefix="$acl_final_exec_prefix"
12263 eval additional_includedir=\"$includedir\"
12264 eval additional_libdir=\"$libdir\"
12266 exec_prefix="$acl_save_exec_prefix"
12267 prefix="$acl_save_prefix"
12269 else
12270 additional_includedir="$withval/include"
12271 additional_libdir="$withval/$acl_libdirstem"
12277 LIBICONV=
12278 LTLIBICONV=
12279 INCICONV=
12280 rpathdirs=
12281 ltrpathdirs=
12282 names_already_handled=
12283 names_next_round='iconv '
12284 while test -n "$names_next_round"; do
12285 names_this_round="$names_next_round"
12286 names_next_round=
12287 for name in $names_this_round; do
12288 already_handled=
12289 for n in $names_already_handled; do
12290 if test "$n" = "$name"; then
12291 already_handled=yes
12292 break
12294 done
12295 if test -z "$already_handled"; then
12296 names_already_handled="$names_already_handled $name"
12297 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12298 eval value=\"\$HAVE_LIB$uppername\"
12299 if test -n "$value"; then
12300 if test "$value" = yes; then
12301 eval value=\"\$LIB$uppername\"
12302 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12303 eval value=\"\$LTLIB$uppername\"
12304 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12305 else
12308 else
12309 found_dir=
12310 found_la=
12311 found_so=
12312 found_a=
12313 if test $use_additional = yes; then
12314 if test -n "$shlibext" \
12315 && { test -f "$additional_libdir/lib$name.$shlibext" \
12316 || { test "$shlibext" = dll \
12317 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12318 found_dir="$additional_libdir"
12319 if test -f "$additional_libdir/lib$name.$shlibext"; then
12320 found_so="$additional_libdir/lib$name.$shlibext"
12321 else
12322 found_so="$additional_libdir/lib$name.dll.a"
12324 if test -f "$additional_libdir/lib$name.la"; then
12325 found_la="$additional_libdir/lib$name.la"
12327 else
12328 if test -f "$additional_libdir/lib$name.$libext"; then
12329 found_dir="$additional_libdir"
12330 found_a="$additional_libdir/lib$name.$libext"
12331 if test -f "$additional_libdir/lib$name.la"; then
12332 found_la="$additional_libdir/lib$name.la"
12337 if test "X$found_dir" = "X"; then
12338 for x in $LDFLAGS $LTLIBICONV; do
12340 acl_save_prefix="$prefix"
12341 prefix="$acl_final_prefix"
12342 acl_save_exec_prefix="$exec_prefix"
12343 exec_prefix="$acl_final_exec_prefix"
12344 eval x=\"$x\"
12345 exec_prefix="$acl_save_exec_prefix"
12346 prefix="$acl_save_prefix"
12348 case "$x" in
12349 -L*)
12350 dir=`echo "X$x" | sed -e 's/^X-L//'`
12351 if test -n "$shlibext" \
12352 && { test -f "$dir/lib$name.$shlibext" \
12353 || { test "$shlibext" = dll \
12354 && test -f "$dir/lib$name.dll.a"; }; }; then
12355 found_dir="$dir"
12356 if test -f "$dir/lib$name.$shlibext"; then
12357 found_so="$dir/lib$name.$shlibext"
12358 else
12359 found_so="$dir/lib$name.dll.a"
12361 if test -f "$dir/lib$name.la"; then
12362 found_la="$dir/lib$name.la"
12364 else
12365 if test -f "$dir/lib$name.$libext"; then
12366 found_dir="$dir"
12367 found_a="$dir/lib$name.$libext"
12368 if test -f "$dir/lib$name.la"; then
12369 found_la="$dir/lib$name.la"
12374 esac
12375 if test "X$found_dir" != "X"; then
12376 break
12378 done
12380 if test "X$found_dir" != "X"; then
12381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12382 if test "X$found_so" != "X"; then
12383 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12384 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12385 else
12386 haveit=
12387 for x in $ltrpathdirs; do
12388 if test "X$x" = "X$found_dir"; then
12389 haveit=yes
12390 break
12392 done
12393 if test -z "$haveit"; then
12394 ltrpathdirs="$ltrpathdirs $found_dir"
12396 if test "$hardcode_direct" = yes; then
12397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12398 else
12399 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12401 haveit=
12402 for x in $rpathdirs; do
12403 if test "X$x" = "X$found_dir"; then
12404 haveit=yes
12405 break
12407 done
12408 if test -z "$haveit"; then
12409 rpathdirs="$rpathdirs $found_dir"
12411 else
12412 haveit=
12413 for x in $LDFLAGS $LIBICONV; do
12415 acl_save_prefix="$prefix"
12416 prefix="$acl_final_prefix"
12417 acl_save_exec_prefix="$exec_prefix"
12418 exec_prefix="$acl_final_exec_prefix"
12419 eval x=\"$x\"
12420 exec_prefix="$acl_save_exec_prefix"
12421 prefix="$acl_save_prefix"
12423 if test "X$x" = "X-L$found_dir"; then
12424 haveit=yes
12425 break
12427 done
12428 if test -z "$haveit"; then
12429 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12431 if test "$hardcode_minus_L" != no; then
12432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12433 else
12434 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12439 else
12440 if test "X$found_a" != "X"; then
12441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12442 else
12443 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12446 additional_includedir=
12447 case "$found_dir" in
12448 */$acl_libdirstem | */$acl_libdirstem/)
12449 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12450 additional_includedir="$basedir/include"
12452 esac
12453 if test "X$additional_includedir" != "X"; then
12454 if test "X$additional_includedir" != "X/usr/include"; then
12455 haveit=
12456 if test "X$additional_includedir" = "X/usr/local/include"; then
12457 if test -n "$GCC"; then
12458 case $host_os in
12459 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12460 esac
12463 if test -z "$haveit"; then
12464 for x in $CPPFLAGS $INCICONV; do
12466 acl_save_prefix="$prefix"
12467 prefix="$acl_final_prefix"
12468 acl_save_exec_prefix="$exec_prefix"
12469 exec_prefix="$acl_final_exec_prefix"
12470 eval x=\"$x\"
12471 exec_prefix="$acl_save_exec_prefix"
12472 prefix="$acl_save_prefix"
12474 if test "X$x" = "X-I$additional_includedir"; then
12475 haveit=yes
12476 break
12478 done
12479 if test -z "$haveit"; then
12480 if test -d "$additional_includedir"; then
12481 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12487 if test -n "$found_la"; then
12488 save_libdir="$libdir"
12489 case "$found_la" in
12490 */* | *\\*) . "$found_la" ;;
12491 *) . "./$found_la" ;;
12492 esac
12493 libdir="$save_libdir"
12494 for dep in $dependency_libs; do
12495 case "$dep" in
12496 -L*)
12497 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12498 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12499 haveit=
12500 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12501 if test -n "$GCC"; then
12502 case $host_os in
12503 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12504 esac
12507 if test -z "$haveit"; then
12508 haveit=
12509 for x in $LDFLAGS $LIBICONV; do
12511 acl_save_prefix="$prefix"
12512 prefix="$acl_final_prefix"
12513 acl_save_exec_prefix="$exec_prefix"
12514 exec_prefix="$acl_final_exec_prefix"
12515 eval x=\"$x\"
12516 exec_prefix="$acl_save_exec_prefix"
12517 prefix="$acl_save_prefix"
12519 if test "X$x" = "X-L$additional_libdir"; then
12520 haveit=yes
12521 break
12523 done
12524 if test -z "$haveit"; then
12525 if test -d "$additional_libdir"; then
12526 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12529 haveit=
12530 for x in $LDFLAGS $LTLIBICONV; do
12532 acl_save_prefix="$prefix"
12533 prefix="$acl_final_prefix"
12534 acl_save_exec_prefix="$exec_prefix"
12535 exec_prefix="$acl_final_exec_prefix"
12536 eval x=\"$x\"
12537 exec_prefix="$acl_save_exec_prefix"
12538 prefix="$acl_save_prefix"
12540 if test "X$x" = "X-L$additional_libdir"; then
12541 haveit=yes
12542 break
12544 done
12545 if test -z "$haveit"; then
12546 if test -d "$additional_libdir"; then
12547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12553 -R*)
12554 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12555 if test "$enable_rpath" != no; then
12556 haveit=
12557 for x in $rpathdirs; do
12558 if test "X$x" = "X$dir"; then
12559 haveit=yes
12560 break
12562 done
12563 if test -z "$haveit"; then
12564 rpathdirs="$rpathdirs $dir"
12566 haveit=
12567 for x in $ltrpathdirs; do
12568 if test "X$x" = "X$dir"; then
12569 haveit=yes
12570 break
12572 done
12573 if test -z "$haveit"; then
12574 ltrpathdirs="$ltrpathdirs $dir"
12578 -l*)
12579 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12581 *.la)
12582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12585 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12588 esac
12589 done
12591 else
12592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12597 done
12598 done
12599 if test "X$rpathdirs" != "X"; then
12600 if test -n "$hardcode_libdir_separator"; then
12601 alldirs=
12602 for found_dir in $rpathdirs; do
12603 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12604 done
12605 acl_save_libdir="$libdir"
12606 libdir="$alldirs"
12607 eval flag=\"$hardcode_libdir_flag_spec\"
12608 libdir="$acl_save_libdir"
12609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12610 else
12611 for found_dir in $rpathdirs; do
12612 acl_save_libdir="$libdir"
12613 libdir="$found_dir"
12614 eval flag=\"$hardcode_libdir_flag_spec\"
12615 libdir="$acl_save_libdir"
12616 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12617 done
12620 if test "X$ltrpathdirs" != "X"; then
12621 for found_dir in $ltrpathdirs; do
12622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12623 done
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12651 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12652 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 gt_save_LIBS="$LIBS"
12656 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <CoreFoundation/CFPreferences.h>
12661 main ()
12663 CFPreferencesCopyAppValue(NULL, NULL)
12665 return 0;
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 gt_cv_func_CFPreferencesCopyAppValue=yes
12670 else
12671 gt_cv_func_CFPreferencesCopyAppValue=no
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LIBS="$gt_save_LIBS"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12678 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12679 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12681 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12685 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12686 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 gt_save_LIBS="$LIBS"
12690 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #include <CoreFoundation/CFLocale.h>
12695 main ()
12697 CFLocaleCopyCurrent();
12699 return 0;
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 gt_cv_func_CFLocaleCopyCurrent=yes
12704 else
12705 gt_cv_func_CFLocaleCopyCurrent=no
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS="$gt_save_LIBS"
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12712 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12713 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12715 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12718 INTL_MACOSX_LIBS=
12719 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12720 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12728 LIBINTL=
12729 LTLIBINTL=
12730 POSUB=
12732 case " $gt_needs " in
12733 *" need-formatstring-macros "*) gt_api_version=3 ;;
12734 *" need-ngettext "*) gt_api_version=2 ;;
12735 *) gt_api_version=1 ;;
12736 esac
12737 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12738 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12740 if test "$USE_NLS" = "yes"; then
12741 gt_use_preinstalled_gnugettext=no
12744 if test $gt_api_version -ge 3; then
12745 gt_revision_test_code='
12746 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12747 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12748 #endif
12749 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12751 else
12752 gt_revision_test_code=
12754 if test $gt_api_version -ge 2; then
12755 gt_expression_test_code=' + * ngettext ("", "", 0)'
12756 else
12757 gt_expression_test_code=
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12761 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12762 if eval \${$gt_func_gnugettext_libc+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <libintl.h>
12768 $gt_revision_test_code
12769 extern int _nl_msg_cat_cntr;
12770 extern int *_nl_domain_bindings;
12772 main ()
12774 bindtextdomain ("", "");
12775 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12777 return 0;
12779 _ACEOF
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 eval "$gt_func_gnugettext_libc=yes"
12782 else
12783 eval "$gt_func_gnugettext_libc=no"
12785 rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12788 eval ac_res=\$$gt_func_gnugettext_libc
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12792 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12798 am_save_CPPFLAGS="$CPPFLAGS"
12800 for element in $INCICONV; do
12801 haveit=
12802 for x in $CPPFLAGS; do
12804 acl_save_prefix="$prefix"
12805 prefix="$acl_final_prefix"
12806 acl_save_exec_prefix="$exec_prefix"
12807 exec_prefix="$acl_final_exec_prefix"
12808 eval x=\"$x\"
12809 exec_prefix="$acl_save_exec_prefix"
12810 prefix="$acl_save_prefix"
12812 if test "X$x" = "X$element"; then
12813 haveit=yes
12814 break
12816 done
12817 if test -z "$haveit"; then
12818 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12820 done
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12824 $as_echo_n "checking for iconv... " >&6; }
12825 if ${am_cv_func_iconv+:} false; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12829 am_cv_func_iconv="no, consider installing GNU libiconv"
12830 am_cv_lib_iconv=no
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 #include <stdlib.h>
12834 #include <iconv.h>
12836 main ()
12838 iconv_t cd = iconv_open("","");
12839 iconv(cd,NULL,NULL,NULL,NULL);
12840 iconv_close(cd);
12842 return 0;
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846 am_cv_func_iconv=yes
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 if test "$am_cv_func_iconv" != yes; then
12851 am_save_LIBS="$LIBS"
12852 LIBS="$LIBS $LIBICONV"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 #include <stdlib.h>
12856 #include <iconv.h>
12858 main ()
12860 iconv_t cd = iconv_open("","");
12861 iconv(cd,NULL,NULL,NULL,NULL);
12862 iconv_close(cd);
12864 return 0;
12866 _ACEOF
12867 if ac_fn_c_try_link "$LINENO"; then :
12868 am_cv_lib_iconv=yes
12869 am_cv_func_iconv=yes
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS="$am_save_LIBS"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12878 $as_echo "$am_cv_func_iconv" >&6; }
12879 if test "$am_cv_func_iconv" = yes; then
12881 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12884 if test "$am_cv_lib_iconv" = yes; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12886 $as_echo_n "checking how to link with libiconv... " >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12888 $as_echo "$LIBICONV" >&6; }
12889 else
12890 CPPFLAGS="$am_save_CPPFLAGS"
12891 LIBICONV=
12892 LTLIBICONV=
12901 use_additional=yes
12903 acl_save_prefix="$prefix"
12904 prefix="$acl_final_prefix"
12905 acl_save_exec_prefix="$exec_prefix"
12906 exec_prefix="$acl_final_exec_prefix"
12908 eval additional_includedir=\"$includedir\"
12909 eval additional_libdir=\"$libdir\"
12911 exec_prefix="$acl_save_exec_prefix"
12912 prefix="$acl_save_prefix"
12915 # Check whether --with-libintl-prefix was given.
12916 if test "${with_libintl_prefix+set}" = set; then :
12917 withval=$with_libintl_prefix;
12918 if test "X$withval" = "Xno"; then
12919 use_additional=no
12920 else
12921 if test "X$withval" = "X"; then
12923 acl_save_prefix="$prefix"
12924 prefix="$acl_final_prefix"
12925 acl_save_exec_prefix="$exec_prefix"
12926 exec_prefix="$acl_final_exec_prefix"
12928 eval additional_includedir=\"$includedir\"
12929 eval additional_libdir=\"$libdir\"
12931 exec_prefix="$acl_save_exec_prefix"
12932 prefix="$acl_save_prefix"
12934 else
12935 additional_includedir="$withval/include"
12936 additional_libdir="$withval/$acl_libdirstem"
12942 LIBINTL=
12943 LTLIBINTL=
12944 INCINTL=
12945 rpathdirs=
12946 ltrpathdirs=
12947 names_already_handled=
12948 names_next_round='intl '
12949 while test -n "$names_next_round"; do
12950 names_this_round="$names_next_round"
12951 names_next_round=
12952 for name in $names_this_round; do
12953 already_handled=
12954 for n in $names_already_handled; do
12955 if test "$n" = "$name"; then
12956 already_handled=yes
12957 break
12959 done
12960 if test -z "$already_handled"; then
12961 names_already_handled="$names_already_handled $name"
12962 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12963 eval value=\"\$HAVE_LIB$uppername\"
12964 if test -n "$value"; then
12965 if test "$value" = yes; then
12966 eval value=\"\$LIB$uppername\"
12967 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12968 eval value=\"\$LTLIB$uppername\"
12969 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12970 else
12973 else
12974 found_dir=
12975 found_la=
12976 found_so=
12977 found_a=
12978 if test $use_additional = yes; then
12979 if test -n "$shlibext" \
12980 && { test -f "$additional_libdir/lib$name.$shlibext" \
12981 || { test "$shlibext" = dll \
12982 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12983 found_dir="$additional_libdir"
12984 if test -f "$additional_libdir/lib$name.$shlibext"; then
12985 found_so="$additional_libdir/lib$name.$shlibext"
12986 else
12987 found_so="$additional_libdir/lib$name.dll.a"
12989 if test -f "$additional_libdir/lib$name.la"; then
12990 found_la="$additional_libdir/lib$name.la"
12992 else
12993 if test -f "$additional_libdir/lib$name.$libext"; then
12994 found_dir="$additional_libdir"
12995 found_a="$additional_libdir/lib$name.$libext"
12996 if test -f "$additional_libdir/lib$name.la"; then
12997 found_la="$additional_libdir/lib$name.la"
13002 if test "X$found_dir" = "X"; then
13003 for x in $LDFLAGS $LTLIBINTL; do
13005 acl_save_prefix="$prefix"
13006 prefix="$acl_final_prefix"
13007 acl_save_exec_prefix="$exec_prefix"
13008 exec_prefix="$acl_final_exec_prefix"
13009 eval x=\"$x\"
13010 exec_prefix="$acl_save_exec_prefix"
13011 prefix="$acl_save_prefix"
13013 case "$x" in
13014 -L*)
13015 dir=`echo "X$x" | sed -e 's/^X-L//'`
13016 if test -n "$shlibext" \
13017 && { test -f "$dir/lib$name.$shlibext" \
13018 || { test "$shlibext" = dll \
13019 && test -f "$dir/lib$name.dll.a"; }; }; then
13020 found_dir="$dir"
13021 if test -f "$dir/lib$name.$shlibext"; then
13022 found_so="$dir/lib$name.$shlibext"
13023 else
13024 found_so="$dir/lib$name.dll.a"
13026 if test -f "$dir/lib$name.la"; then
13027 found_la="$dir/lib$name.la"
13029 else
13030 if test -f "$dir/lib$name.$libext"; then
13031 found_dir="$dir"
13032 found_a="$dir/lib$name.$libext"
13033 if test -f "$dir/lib$name.la"; then
13034 found_la="$dir/lib$name.la"
13039 esac
13040 if test "X$found_dir" != "X"; then
13041 break
13043 done
13045 if test "X$found_dir" != "X"; then
13046 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13047 if test "X$found_so" != "X"; then
13048 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13050 else
13051 haveit=
13052 for x in $ltrpathdirs; do
13053 if test "X$x" = "X$found_dir"; then
13054 haveit=yes
13055 break
13057 done
13058 if test -z "$haveit"; then
13059 ltrpathdirs="$ltrpathdirs $found_dir"
13061 if test "$hardcode_direct" = yes; then
13062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13063 else
13064 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13065 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13066 haveit=
13067 for x in $rpathdirs; do
13068 if test "X$x" = "X$found_dir"; then
13069 haveit=yes
13070 break
13072 done
13073 if test -z "$haveit"; then
13074 rpathdirs="$rpathdirs $found_dir"
13076 else
13077 haveit=
13078 for x in $LDFLAGS $LIBINTL; do
13080 acl_save_prefix="$prefix"
13081 prefix="$acl_final_prefix"
13082 acl_save_exec_prefix="$exec_prefix"
13083 exec_prefix="$acl_final_exec_prefix"
13084 eval x=\"$x\"
13085 exec_prefix="$acl_save_exec_prefix"
13086 prefix="$acl_save_prefix"
13088 if test "X$x" = "X-L$found_dir"; then
13089 haveit=yes
13090 break
13092 done
13093 if test -z "$haveit"; then
13094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13096 if test "$hardcode_minus_L" != no; then
13097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13098 else
13099 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13104 else
13105 if test "X$found_a" != "X"; then
13106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13107 else
13108 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13111 additional_includedir=
13112 case "$found_dir" in
13113 */$acl_libdirstem | */$acl_libdirstem/)
13114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13115 additional_includedir="$basedir/include"
13117 esac
13118 if test "X$additional_includedir" != "X"; then
13119 if test "X$additional_includedir" != "X/usr/include"; then
13120 haveit=
13121 if test "X$additional_includedir" = "X/usr/local/include"; then
13122 if test -n "$GCC"; then
13123 case $host_os in
13124 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13125 esac
13128 if test -z "$haveit"; then
13129 for x in $CPPFLAGS $INCINTL; do
13131 acl_save_prefix="$prefix"
13132 prefix="$acl_final_prefix"
13133 acl_save_exec_prefix="$exec_prefix"
13134 exec_prefix="$acl_final_exec_prefix"
13135 eval x=\"$x\"
13136 exec_prefix="$acl_save_exec_prefix"
13137 prefix="$acl_save_prefix"
13139 if test "X$x" = "X-I$additional_includedir"; then
13140 haveit=yes
13141 break
13143 done
13144 if test -z "$haveit"; then
13145 if test -d "$additional_includedir"; then
13146 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13152 if test -n "$found_la"; then
13153 save_libdir="$libdir"
13154 case "$found_la" in
13155 */* | *\\*) . "$found_la" ;;
13156 *) . "./$found_la" ;;
13157 esac
13158 libdir="$save_libdir"
13159 for dep in $dependency_libs; do
13160 case "$dep" in
13161 -L*)
13162 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13163 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13164 haveit=
13165 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13166 if test -n "$GCC"; then
13167 case $host_os in
13168 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13169 esac
13172 if test -z "$haveit"; then
13173 haveit=
13174 for x in $LDFLAGS $LIBINTL; do
13176 acl_save_prefix="$prefix"
13177 prefix="$acl_final_prefix"
13178 acl_save_exec_prefix="$exec_prefix"
13179 exec_prefix="$acl_final_exec_prefix"
13180 eval x=\"$x\"
13181 exec_prefix="$acl_save_exec_prefix"
13182 prefix="$acl_save_prefix"
13184 if test "X$x" = "X-L$additional_libdir"; then
13185 haveit=yes
13186 break
13188 done
13189 if test -z "$haveit"; then
13190 if test -d "$additional_libdir"; then
13191 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13194 haveit=
13195 for x in $LDFLAGS $LTLIBINTL; do
13197 acl_save_prefix="$prefix"
13198 prefix="$acl_final_prefix"
13199 acl_save_exec_prefix="$exec_prefix"
13200 exec_prefix="$acl_final_exec_prefix"
13201 eval x=\"$x\"
13202 exec_prefix="$acl_save_exec_prefix"
13203 prefix="$acl_save_prefix"
13205 if test "X$x" = "X-L$additional_libdir"; then
13206 haveit=yes
13207 break
13209 done
13210 if test -z "$haveit"; then
13211 if test -d "$additional_libdir"; then
13212 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13218 -R*)
13219 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13220 if test "$enable_rpath" != no; then
13221 haveit=
13222 for x in $rpathdirs; do
13223 if test "X$x" = "X$dir"; then
13224 haveit=yes
13225 break
13227 done
13228 if test -z "$haveit"; then
13229 rpathdirs="$rpathdirs $dir"
13231 haveit=
13232 for x in $ltrpathdirs; do
13233 if test "X$x" = "X$dir"; then
13234 haveit=yes
13235 break
13237 done
13238 if test -z "$haveit"; then
13239 ltrpathdirs="$ltrpathdirs $dir"
13243 -l*)
13244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13246 *.la)
13247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13250 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13253 esac
13254 done
13256 else
13257 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13262 done
13263 done
13264 if test "X$rpathdirs" != "X"; then
13265 if test -n "$hardcode_libdir_separator"; then
13266 alldirs=
13267 for found_dir in $rpathdirs; do
13268 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13269 done
13270 acl_save_libdir="$libdir"
13271 libdir="$alldirs"
13272 eval flag=\"$hardcode_libdir_flag_spec\"
13273 libdir="$acl_save_libdir"
13274 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13275 else
13276 for found_dir in $rpathdirs; do
13277 acl_save_libdir="$libdir"
13278 libdir="$found_dir"
13279 eval flag=\"$hardcode_libdir_flag_spec\"
13280 libdir="$acl_save_libdir"
13281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13282 done
13285 if test "X$ltrpathdirs" != "X"; then
13286 for found_dir in $ltrpathdirs; do
13287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13288 done
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13292 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13293 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 gt_save_CPPFLAGS="$CPPFLAGS"
13297 CPPFLAGS="$CPPFLAGS $INCINTL"
13298 gt_save_LIBS="$LIBS"
13299 LIBS="$LIBS $LIBINTL"
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #include <libintl.h>
13303 $gt_revision_test_code
13304 extern int _nl_msg_cat_cntr;
13305 extern
13306 #ifdef __cplusplus
13308 #endif
13309 const char *_nl_expand_alias (const char *);
13311 main ()
13313 bindtextdomain ("", "");
13314 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13316 return 0;
13318 _ACEOF
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 eval "$gt_func_gnugettext_libintl=yes"
13321 else
13322 eval "$gt_func_gnugettext_libintl=no"
13324 rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13327 LIBS="$LIBS $LIBICONV"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 #include <libintl.h>
13331 $gt_revision_test_code
13332 extern int _nl_msg_cat_cntr;
13333 extern
13334 #ifdef __cplusplus
13336 #endif
13337 const char *_nl_expand_alias (const char *);
13339 main ()
13341 bindtextdomain ("", "");
13342 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13344 return 0;
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348 LIBINTL="$LIBINTL $LIBICONV"
13349 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13350 eval "$gt_func_gnugettext_libintl=yes"
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13356 CPPFLAGS="$gt_save_CPPFLAGS"
13357 LIBS="$gt_save_LIBS"
13359 eval ac_res=\$$gt_func_gnugettext_libintl
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13361 $as_echo "$ac_res" >&6; }
13364 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13365 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13366 && test "$PACKAGE" != gettext-runtime \
13367 && test "$PACKAGE" != gettext-tools; }; then
13368 gt_use_preinstalled_gnugettext=yes
13369 else
13370 LIBINTL=
13371 LTLIBINTL=
13372 INCINTL=
13377 if test -n "$INTL_MACOSX_LIBS"; then
13378 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13379 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13380 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13381 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13385 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13386 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13388 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13390 else
13391 USE_NLS=no
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13396 $as_echo_n "checking whether to use NLS... " >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13398 $as_echo "$USE_NLS" >&6; }
13399 if test "$USE_NLS" = "yes"; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13401 $as_echo_n "checking where the gettext function comes from... " >&6; }
13402 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13403 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13404 gt_source="external libintl"
13405 else
13406 gt_source="libc"
13408 else
13409 gt_source="included intl directory"
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13412 $as_echo "$gt_source" >&6; }
13415 if test "$USE_NLS" = "yes"; then
13417 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13418 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13420 $as_echo_n "checking how to link with libintl... " >&6; }
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13422 $as_echo "$LIBINTL" >&6; }
13424 for element in $INCINTL; do
13425 haveit=
13426 for x in $CPPFLAGS; do
13428 acl_save_prefix="$prefix"
13429 prefix="$acl_final_prefix"
13430 acl_save_exec_prefix="$exec_prefix"
13431 exec_prefix="$acl_final_exec_prefix"
13432 eval x=\"$x\"
13433 exec_prefix="$acl_save_exec_prefix"
13434 prefix="$acl_save_prefix"
13436 if test "X$x" = "X$element"; then
13437 haveit=yes
13438 break
13440 done
13441 if test -z "$haveit"; then
13442 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13444 done
13449 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13452 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13456 POSUB=po
13461 INTLLIBS="$LIBINTL"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
13470 $as_echo_n "checking option: dmalloc enabled... " >&6; }
13471 # Check whether --enable-dmalloc was given.
13472 if test "${enable_dmalloc+set}" = set; then :
13473 enableval=$enable_dmalloc;
13476 if test x$enable_dmalloc = "xyes" ; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13478 $as_echo "yes" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13485 # Check whether --with-dmalloc-dir was given.
13486 if test "${with_dmalloc_dir+set}" = set; then :
13487 withval=$with_dmalloc_dir;
13488 if test "x$withval" != "xno" ; then
13489 enable_dmalloc = "yes"
13490 CPPFLAGS="$CPPFLAGS -I${withval}"
13491 LDFLAGS="$LDFLAGS -L${withval}"
13497 if test x$enable_dmalloc = "xyes" ; then
13499 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
13503 localedir="\${datadir}/locale"
13505 # Check whether --with-localedir was given.
13506 if test "${with_localedir+set}" = set; then :
13507 withval=$with_localedir;
13508 case $withval in
13509 yes)
13514 localedir=$withval
13516 esac
13520 localedir="$localedir"
13523 # Setup OS-Specific features
13524 case "$host" in
13525 *darwin*)
13526 # Check whether --enable-osx-universal-binaries was given.
13527 if test "${enable_osx_universal_binaries+set}" = set; then :
13528 enableval=$enable_osx_universal_binaries;
13531 if test "x$enable_osx_universal_binaries" = "xyes" ; then
13532 if test "x$enable_dependency_tracking" != xno ; then
13533 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
13534 Please re-run configure with these options:
13535 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
13537 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
13538 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
13539 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
13540 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
13541 else
13542 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
13544 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
13545 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
13546 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
13547 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
13548 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
13549 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
13552 esac
13555 # Check whether --with-include-path was given.
13556 if test "${with_include_path+set}" = set; then :
13557 withval=$with_include_path;
13558 case $withval in
13561 yes)
13564 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
13565 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
13566 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
13568 esac
13574 # Check whether --with-lib-path was given.
13575 if test "${with_lib_path+set}" = set; then :
13576 withval=$with_lib_path;
13577 case $withval in
13580 yes)
13583 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
13584 LDFLAGS="$LDFLAGS $new_ldflags"
13585 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
13587 esac
13593 # Check whether --with-pubcookie was given.
13594 if test "${with_pubcookie+set}" = set; then :
13595 withval=$with_pubcookie;
13596 if test "x$withval" != "xno" ; then
13597 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
13605 # Check whether --with-web-bin was given.
13606 if test "${with_web_bin+set}" = set; then :
13607 withval=$with_web_bin;
13608 case "$withval" in
13611 yes)
13614 WEB_BINDIR=$withval
13616 esac
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
13622 $as_echo_n "checking option: debugging is enabled... " >&6; }
13623 # Check whether --enable-debug was given.
13624 if test "${enable_debug+set}" = set; then :
13625 enableval=$enable_debug;
13628 if test x$enable_debug != "xno" ; then
13629 AM_CFLAGS="$AM_CFLAGS -g"
13631 $as_echo "#define DEBUG 1" >>confdefs.h
13634 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13637 $as_echo "yes" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
13644 $as_echo_n "checking option: optimization is enabled... " >&6; }
13645 # Check whether --enable-optimization was given.
13646 if test "${enable_optimization+set}" = set; then :
13647 enableval=$enable_optimization;
13650 if test x$enable_optimization != "xno" ; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13652 $as_echo "yes" >&6; }
13653 else
13654 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
13655 alpine_c_client_gccoptlevel="-O0"
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
13661 $as_echo_n "checking option: mouse support enabled... " >&6; }
13662 # Check whether --enable-mouse was given.
13663 if test "${enable_mouse+set}" = set; then :
13664 enableval=$enable_mouse;
13667 if test x$enable_mouse != "xno" ; then
13669 $as_echo "#define MOUSE /**/" >>confdefs.h
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 $as_echo "yes" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
13679 $as_echo_n "checking option: quotas enabled... " >&6; }
13680 # Check whether --enable-quotas was given.
13681 if test "${enable_quotas+set}" = set; then :
13682 enableval=$enable_quotas;
13685 if test x$enable_quotas = "xyes" ; then
13687 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13690 $as_echo "yes" >&6; }
13691 else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
13697 $as_echo_n "checking option: From changing enabled... " >&6; }
13698 # Check whether --enable-from_changing was given.
13699 if test "${enable_from_changing+set}" = set; then :
13700 enableval=$enable_from_changing;
13703 if test x$enable_from_changing != "xno" ; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706 else
13708 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
13715 $as_echo_n "checking option: background post enabled... " >&6; }
13716 # Check whether --enable-background-post was given.
13717 if test "${enable_background_post+set}" = set; then :
13718 enableval=$enable_background_post;
13721 if test x$enable_background_post != "xno" ; then
13723 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
13733 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
13734 # Check whether --enable-keyboard-lock was given.
13735 if test "${enable_keyboard_lock+set}" = set; then :
13736 enableval=$enable_keyboard_lock;
13739 if test x$enable_keyboard_lock != "xno" ; then
13741 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13744 $as_echo "yes" >&6; }
13745 else
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
13751 $as_echo_n "checking option: from encoding enabled... " >&6; }
13752 # Check whether --enable-from-encoding was given.
13753 if test "${enable_from_encoding+set}" = set; then :
13754 enableval=$enable_from_encoding;
13757 if test x$enable_from_encoding = "xyes" ; then
13759 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13762 $as_echo "yes" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13769 # Check whether --with-smtp-msa was given.
13770 if test "${with_smtp_msa+set}" = set; then :
13771 withval=$with_smtp_msa;
13772 case "$withval" in
13775 yes)
13776 # Extract the first word of "sendmail", so it can be a program name with args.
13777 set dummy sendmail; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_path_SENDMAIL+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 case $SENDMAIL in
13784 [\\/]* | ?:[\\/]*)
13785 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 as_dummy="$PATH:/usr/sbin:/usr/lib"
13790 for as_dir in $as_dummy
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13800 done
13801 done
13802 IFS=$as_save_IFS
13804 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13806 esac
13808 SENDMAIL=$ac_cv_path_SENDMAIL
13809 if test -n "$SENDMAIL"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13811 $as_echo "$SENDMAIL" >&6; }
13812 else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13820 SENDMAIL=$withval
13822 esac
13824 else
13826 # Extract the first word of "sendmail", so it can be a program name with args.
13827 set dummy sendmail; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if ${ac_cv_path_SENDMAIL+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 case $SENDMAIL in
13834 [\\/]* | ?:[\\/]*)
13835 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 as_dummy="$PATH:/usr/sbin:/usr/lib"
13840 for as_dir in $as_dummy
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13850 done
13851 done
13852 IFS=$as_save_IFS
13854 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13856 esac
13858 SENDMAIL=$ac_cv_path_SENDMAIL
13859 if test -n "$SENDMAIL"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13861 $as_echo "$SENDMAIL" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13871 if test -n "$SENDMAIL" ; then
13873 cat >>confdefs.h <<_ACEOF
13874 #define SENDMAIL "$SENDMAIL"
13875 _ACEOF
13879 smtp_msa_flags="-bs -odb -oem"
13881 # Check whether --with-smtp-msa-flags was given.
13882 if test "${with_smtp_msa_flags+set}" = set; then :
13883 withval=$with_smtp_msa_flags;
13884 if test "x$withval" != "xno" ; then
13885 smtp_msa_flags=$withval
13891 cat >>confdefs.h <<_ACEOF
13892 #define SENDMAILFLAGS "$smtp_msa_flags"
13893 _ACEOF
13896 npa="inews"
13898 # Check whether --with-npa was given.
13899 if test "${with_npa+set}" = set; then :
13900 withval=$with_npa;
13901 case "$withval" in
13904 yes)
13905 # Extract the first word of "inews", so it can be a program name with args.
13906 set dummy inews; ac_word=$2
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13908 $as_echo_n "checking for $ac_word... " >&6; }
13909 if ${ac_cv_path_NPA_PROG+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 case $NPA_PROG in
13913 [\\/]* | ?:[\\/]*)
13914 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
13917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918 as_dummy="$PATH:/usr/sbin:/usr/lib"
13919 for as_dir in $as_dummy
13921 IFS=$as_save_IFS
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13925 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13927 break 2
13929 done
13930 done
13931 IFS=$as_save_IFS
13933 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
13935 esac
13937 NPA_PROG=$ac_cv_path_NPA_PROG
13938 if test -n "$NPA_PROG"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
13940 $as_echo "$NPA_PROG" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13949 NPA_PROG=$withval
13951 esac
13953 else
13955 # Extract the first word of "inews", so it can be a program name with args.
13956 set dummy inews; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958 $as_echo_n "checking for $ac_word... " >&6; }
13959 if ${ac_cv_path_NPA_PROG+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 case $NPA_PROG in
13963 [\\/]* | ?:[\\/]*)
13964 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 as_dummy="$PATH:/usr/sbin:/usr/lib"
13969 for as_dir in $as_dummy
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13975 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 break 2
13979 done
13980 done
13981 IFS=$as_save_IFS
13983 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
13985 esac
13987 NPA_PROG=$ac_cv_path_NPA_PROG
13988 if test -n "$NPA_PROG"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
13990 $as_echo "$NPA_PROG" >&6; }
13991 else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
14001 npa_flags="-h"
14003 # Check whether --with-npa-flags was given.
14004 if test "${with_npa_flags+set}" = set; then :
14005 withval=$with_npa_flags;
14006 if test "x$withval" != "xno" ; then
14007 npa_flags=$withval
14012 if test -n "$NPA_PROG" ; then
14014 cat >>confdefs.h <<_ACEOF
14015 #define SENDNEWS "$NPA_PROG $npa_flags"
14016 _ACEOF
14021 # Check whether --with-password-prog was given.
14022 if test "${with_password_prog+set}" = set; then :
14023 withval=$with_password_prog;
14024 case "$withval" in
14027 yes)
14028 # Extract the first word of "passwd", so it can be a program name with args.
14029 set dummy passwd; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if ${ac_cv_path_PWPROG+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 case $PWPROG in
14036 [\\/]* | ?:[\\/]*)
14037 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 as_dummy="$PATH:/usr/sbin:/usr/lib"
14042 for as_dir in $as_dummy
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14052 done
14053 done
14054 IFS=$as_save_IFS
14056 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14058 esac
14060 PWPROG=$ac_cv_path_PWPROG
14061 if test -n "$PWPROG"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14063 $as_echo "$PWPROG" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14072 # Extract the first word of "$withval", so it can be a program name with args.
14073 set dummy $withval; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if ${ac_cv_path_PWPROG+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 case $PWPROG in
14080 [\\/]* | ?:[\\/]*)
14081 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 as_dummy="$PATH:/usr/sbin:/usr/lib"
14086 for as_dir in $as_dummy
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14092 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14096 done
14097 done
14098 IFS=$as_save_IFS
14100 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14102 esac
14104 PWPROG=$ac_cv_path_PWPROG
14105 if test -n "$PWPROG"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14107 $as_echo "$PWPROG" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14115 esac
14117 else
14119 # Extract the first word of "passwd", so it can be a program name with args.
14120 set dummy passwd; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122 $as_echo_n "checking for $ac_word... " >&6; }
14123 if ${ac_cv_path_PWPROG+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 case $PWPROG in
14127 [\\/]* | ?:[\\/]*)
14128 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 as_dummy="$PATH:/usr/sbin:/usr/lib"
14133 for as_dir in $as_dummy
14135 IFS=$as_save_IFS
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14141 break 2
14143 done
14144 done
14145 IFS=$as_save_IFS
14147 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14149 esac
14151 PWPROG=$ac_cv_path_PWPROG
14152 if test -n "$PWPROG"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14154 $as_echo "$PWPROG" >&6; }
14155 else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
14164 if test -n "$PWPROG" ; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define PASSWD_PROG "$PWPROG"
14168 _ACEOF
14173 # Check whether --with-simple-spellcheck was given.
14174 if test "${with_simple_spellcheck+set}" = set; then :
14175 withval=$with_simple_spellcheck;
14176 if test "x$withval" != "xno" ; then
14177 SPELLPROG=$withval
14180 else
14182 # Extract the first word of "hunspell", so it can be a program name with args.
14183 set dummy hunspell; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if ${ac_cv_prog_SPELLPROG+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 if test -n "$SPELLPROG"; then
14190 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14199 ac_cv_prog_SPELLPROG="hunspell"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14203 done
14204 done
14205 IFS=$as_save_IFS
14209 SPELLPROG=$ac_cv_prog_SPELLPROG
14210 if test -n "$SPELLPROG"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14212 $as_echo "$SPELLPROG" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14219 if test -z "$SPELLPROG" ; then
14220 # Extract the first word of "aspell", so it can be a program name with args.
14221 set dummy aspell; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_prog_SPELLPROG+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test -n "$SPELLPROG"; then
14228 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_SPELLPROG="aspell"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14241 done
14242 done
14243 IFS=$as_save_IFS
14247 SPELLPROG=$ac_cv_prog_SPELLPROG
14248 if test -n "$SPELLPROG"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14250 $as_echo "$SPELLPROG" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14257 if test -z "$SPELLPROG" ; then
14258 # Extract the first word of "ispell", so it can be a program name with args.
14259 set dummy ispell; ac_word=$2
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14261 $as_echo_n "checking for $ac_word... " >&6; }
14262 if ${ac_cv_prog_SPELLPROG+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 if test -n "$SPELLPROG"; then
14266 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14267 else
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275 ac_cv_prog_SPELLPROG="ispell"
14276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14279 done
14280 done
14281 IFS=$as_save_IFS
14285 SPELLPROG=$ac_cv_prog_SPELLPROG
14286 if test -n "$SPELLPROG"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14288 $as_echo "$SPELLPROG" >&6; }
14289 else
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14295 if test -z "$SPELLPROG" ; then
14296 SPELLPROG="spell"
14304 if test "x$SPELLPROG" != "xno" ; then
14305 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
14306 set dummy $SPELLPROG; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 case $alpine_simple_spellcheck in
14313 [\\/]* | ?:[\\/]*)
14314 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $PATH
14320 IFS=$as_save_IFS
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14324 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 break 2
14328 done
14329 done
14330 IFS=$as_save_IFS
14333 esac
14335 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
14336 if test -n "$alpine_simple_spellcheck"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
14338 $as_echo "$alpine_simple_spellcheck" >&6; }
14339 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14345 if test -n "$alpine_simple_spellcheck" ; then
14346 case "$SPELLPROG" in
14347 hunspell)
14348 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14350 aspell)
14351 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
14353 ispell)
14354 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14358 esac
14363 # Check whether --with-interactive-spellcheck was given.
14364 if test "${with_interactive_spellcheck+set}" = set; then :
14365 withval=$with_interactive_spellcheck;
14366 if test "x$withval" != "xno" ; then
14367 ISPELLPROG=$withval
14370 else
14372 # Extract the first word of "hunspell", so it can be a program name with args.
14373 set dummy hunspell; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$ISPELLPROG"; then
14380 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_ISPELLPROG="hunspell"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14393 done
14394 done
14395 IFS=$as_save_IFS
14399 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14400 if test -n "$ISPELLPROG"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14402 $as_echo "$ISPELLPROG" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14409 if test -z "$ISPELLPROG" ; then
14410 # Extract the first word of "aspell", so it can be a program name with args.
14411 set dummy aspell; ac_word=$2
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14413 $as_echo_n "checking for $ac_word... " >&6; }
14414 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 if test -n "$ISPELLPROG"; then
14418 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_prog_ISPELLPROG="aspell"
14428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 break 2
14431 done
14432 done
14433 IFS=$as_save_IFS
14437 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14438 if test -n "$ISPELLPROG"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14440 $as_echo "$ISPELLPROG" >&6; }
14441 else
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443 $as_echo "no" >&6; }
14447 if test -z "$SPELLPROG" ; then
14448 ISPELLPROG="ispell"
14455 if test "x$ISPELLPROG" != "xno" ; then
14456 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
14457 set dummy $ISPELLPROG; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 case $alpine_interactive_spellcheck in
14464 [\\/]* | ?:[\\/]*)
14465 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
14468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14469 for as_dir in $PATH
14471 IFS=$as_save_IFS
14472 test -z "$as_dir" && as_dir=.
14473 for ac_exec_ext in '' $ac_executable_extensions; do
14474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14475 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 break 2
14479 done
14480 done
14481 IFS=$as_save_IFS
14484 esac
14486 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
14487 if test -n "$alpine_interactive_spellcheck"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
14489 $as_echo "$alpine_interactive_spellcheck" >&6; }
14490 else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492 $as_echo "no" >&6; }
14496 if test -n "$alpine_interactive_spellcheck" ; then
14497 case "$ISPELLPROG" in
14498 aspell)
14499 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
14503 esac
14507 if test -n "$alpine_interactive_spellcheck" ; then
14509 cat >>confdefs.h <<_ACEOF
14510 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
14511 _ACEOF
14515 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
14516 alpine_simple_spellcheck=test
14519 cat >>confdefs.h <<_ACEOF
14520 #define SPELLER "$alpine_simple_spellcheck"
14521 _ACEOF
14524 case "$prefix" in
14525 NONE) dpv=/usr/local/lib/pine.conf ;;
14526 *) dpv=${prefix}/lib/pine.conf ;;
14527 esac
14529 # Check whether --with-system-pinerc was given.
14530 if test "${with_system_pinerc+set}" = set; then :
14531 withval=$with_system_pinerc;
14532 case "$withval" in
14535 yes)
14538 dpv=$withval
14540 esac
14545 cat >>confdefs.h <<_ACEOF
14546 #define SYSTEM_PINERC "$dpv"
14547 _ACEOF
14550 case "$prefix" in
14551 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
14552 *) dpv=${prefix}/lib/pine.conf.fixed ;;
14553 esac
14555 # Check whether --with-system-fixed-pinerc was given.
14556 if test "${with_system_fixed_pinerc+set}" = set; then :
14557 withval=$with_system_fixed_pinerc;
14558 case "$withval" in
14561 yes)
14564 dpv=$withval
14566 esac
14571 cat >>confdefs.h <<_ACEOF
14572 #define SYSTEM_PINERC_FIXED "$dpv"
14573 _ACEOF
14576 case "$prefix" in
14577 NONE) dpv=/usr/local/lib/pine.info ;;
14578 *) dpv=${prefix}/lib/pine.info ;;
14579 esac
14581 # Check whether --with-local-support-info was given.
14582 if test "${with_local_support_info+set}" = set; then :
14583 withval=$with_local_support_info;
14584 case "$withval" in
14587 yes)
14590 dpv=$withval
14592 esac
14597 cat >>confdefs.h <<_ACEOF
14598 #define SYSTEM_PINE_INFO_PATH "$dpv"
14599 _ACEOF
14607 dpv=150
14609 # Check whether --with-mailcheck-interval was given.
14610 if test "${with_mailcheck_interval+set}" = set; then :
14611 withval=$with_mailcheck_interval;
14612 if test "x$withval" != "xno" ; then
14613 dpv=$withval
14619 cat >>confdefs.h <<_ACEOF
14620 #define DF_MAILCHECK "$dpv"
14621 _ACEOF
14625 dpv=420
14627 # Check whether --with-checkpoint-interval was given.
14628 if test "${with_checkpoint_interval+set}" = set; then :
14629 withval=$with_checkpoint_interval;
14630 if test "x$withval" != "xno" ; then
14631 dpv=$withval
14637 cat >>confdefs.h <<_ACEOF
14638 #define CHECK_POINT_TIME $dpv
14639 _ACEOF
14643 dpv=12
14645 # Check whether --with-checkpoint-frequency was given.
14646 if test "${with_checkpoint_frequency+set}" = set; then :
14647 withval=$with_checkpoint_frequency;
14648 if test "x$withval" != "xno" ; then
14649 dpv=$withval
14655 cat >>confdefs.h <<_ACEOF
14656 #define CHECK_POINT_FREQ $dpv
14657 _ACEOF
14661 dpv=24
14663 # Check whether --with-display-rows was given.
14664 if test "${with_display_rows+set}" = set; then :
14665 withval=$with_display_rows;
14666 if test "x$withval" != "xno" ; then
14667 dpv=$withval
14673 cat >>confdefs.h <<_ACEOF
14674 #define DEFAULT_LINES_ON_TERMINAL $dpv
14675 _ACEOF
14679 dpv=80
14681 # Check whether --with-display-columns was given.
14682 if test "${with_display_columns+set}" = set; then :
14683 withval=$with_display_columns;
14684 if test "x$withval" != "xno" ; then
14685 dpv=$withval
14691 cat >>confdefs.h <<_ACEOF
14692 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
14693 _ACEOF
14697 dpv=200
14699 # Check whether --with-max-display-rows was given.
14700 if test "${with_max_display_rows+set}" = set; then :
14701 withval=$with_max_display_rows;
14702 if test "x$withval" != "xno" ; then
14703 dpv=$withval
14709 cat >>confdefs.h <<_ACEOF
14710 #define MAX_SCREEN_ROWS $dpv
14711 _ACEOF
14715 dpv=500
14717 # Check whether --with-max-display-columns was given.
14718 if test "${with_max_display_columns+set}" = set; then :
14719 withval=$with_max_display_columns;
14720 if test "x$withval" != "xno" ; then
14721 dpv=$withval
14727 cat >>confdefs.h <<_ACEOF
14728 #define MAX_SCREEN_COLS $dpv
14729 _ACEOF
14733 dpv=74
14735 # Check whether --with-fill-column was given.
14736 if test "${with_fill_column+set}" = set; then :
14737 withval=$with_fill_column;
14738 if test "x$withval" != "xno" ; then
14739 dpv=$withval
14745 cat >>confdefs.h <<_ACEOF
14746 #define DF_FILLCOL "$dpv"
14747 _ACEOF
14751 dpv=80
14753 # Check whether --with-max_fill-column was given.
14754 if test "${with_max_fill_column+set}" = set; then :
14755 withval=$with_max_fill_column;
14756 if test "x$withval" != "xno" ; then
14757 dpv=$withval
14763 cat >>confdefs.h <<_ACEOF
14764 #define MAX_FILLCOL $dpv
14765 _ACEOF
14769 dpv=2
14771 # Check whether --with-debug-level was given.
14772 if test "${with_debug_level+set}" = set; then :
14773 withval=$with_debug_level;
14774 if test "x$withval" != "xno" ; then
14775 dpv=$withval
14781 cat >>confdefs.h <<_ACEOF
14782 #define DEFAULT_DEBUG $dpv
14783 _ACEOF
14787 dpv=4
14789 # Check whether --with-debug-files was given.
14790 if test "${with_debug_files+set}" = set; then :
14791 withval=$with_debug_files;
14792 if test "x$withval" != "xno" ; then
14793 dpv=$withval
14799 cat >>confdefs.h <<_ACEOF
14800 #define NUMDEBUGFILES $dpv
14801 _ACEOF
14805 dpv=.pine-debug
14807 # Check whether --with-debug-file was given.
14808 if test "${with_debug_file+set}" = set; then :
14809 withval=$with_debug_file;
14810 if test "x$withval" != "xno" ; then
14811 dpv=$withval
14817 cat >>confdefs.h <<_ACEOF
14818 #define DEBUGFILE "$dpv"
14819 _ACEOF
14823 dpv="\$Forwarded"
14825 # Check whether --with-forwarded-keyword was given.
14826 if test "${with_forwarded_keyword+set}" = set; then :
14827 withval=$with_forwarded_keyword;
14828 if test "x$withval" != "xno" ; then
14829 dpv=$withval
14835 cat >>confdefs.h <<_ACEOF
14836 #define FORWARDED_FLAG "$dpv"
14837 _ACEOF
14841 dpv=2
14843 # Check whether --with-display-overlap was given.
14844 if test "${with_display_overlap+set}" = set; then :
14845 withval=$with_display_overlap;
14846 if test "x$withval" != "xno" ; then
14847 dpv=$withval
14853 cat >>confdefs.h <<_ACEOF
14854 #define DF_OVERLAP "$dpv"
14855 _ACEOF
14859 dpv=0
14861 # Check whether --with-display-margin was given.
14862 if test "${with_display_margin+set}" = set; then :
14863 withval=$with_display_margin;
14864 if test "x$withval" != "xno" ; then
14865 dpv=$withval
14871 cat >>confdefs.h <<_ACEOF
14872 #define DF_MARGIN "$dpv"
14873 _ACEOF
14877 dpv=sent-mail
14879 # Check whether --with-default-fcc was given.
14880 if test "${with_default_fcc+set}" = set; then :
14881 withval=$with_default_fcc;
14882 if test "x$withval" != "xno" ; then
14883 dpv=$withval
14889 cat >>confdefs.h <<_ACEOF
14890 #define DF_DEFAULT_FCC "$dpv"
14891 _ACEOF
14895 dpv=saved-messages
14897 # Check whether --with-default-save-folder was given.
14898 if test "${with_default_save_folder+set}" = set; then :
14899 withval=$with_default_save_folder;
14900 if test "x$withval" != "xno" ; then
14901 dpv=$withval
14907 cat >>confdefs.h <<_ACEOF
14908 #define DEFAULT_SAVE "$dpv"
14909 _ACEOF
14913 dpv=postponed-mail
14915 # Check whether --with-default-legacy-postponed-folder was given.
14916 if test "${with_default_legacy_postponed_folder+set}" = set; then :
14917 withval=$with_default_legacy_postponed_folder;
14918 if test "x$withval" != "xno" ; then
14919 dpv=$withval
14925 cat >>confdefs.h <<_ACEOF
14926 #define POSTPONED_MAIL "$dpv"
14927 _ACEOF
14931 dpv=postponed-msgs
14933 # Check whether --with-default-postponed-folder was given.
14934 if test "${with_default_postponed_folder+set}" = set; then :
14935 withval=$with_default_postponed_folder;
14936 if test "x$withval" != "xno" ; then
14937 dpv=$withval
14943 cat >>confdefs.h <<_ACEOF
14944 #define POSTPONED_MSGS "$dpv"
14945 _ACEOF
14949 dpv=Trash
14951 # Check whether --with-default-trash-folder was given.
14952 if test "${with_default_trash_folder+set}" = set; then :
14953 withval=$with_default_trash_folder;
14954 if test "x$withval" != "xno" ; then
14955 dpv=$withval
14961 cat >>confdefs.h <<_ACEOF
14962 #define TRASH_FOLDER "$dpv"
14963 _ACEOF
14967 dpv=.pine-interrupted-mail
14969 # Check whether --with-default-interrupted-mail was given.
14970 if test "${with_default_interrupted_mail+set}" = set; then :
14971 withval=$with_default_interrupted_mail;
14972 if test "x$withval" != "xno" ; then
14973 dpv=$withval
14979 cat >>confdefs.h <<_ACEOF
14980 #define INTERRUPTED_MAIL "$dpv"
14981 _ACEOF
14985 dpv=dead.letter
14987 # Check whether --with-default-dead-letter-folder was given.
14988 if test "${with_default_dead_letter_folder+set}" = set; then :
14989 withval=$with_default_dead_letter_folder;
14990 if test "x$withval" != "xno" ; then
14991 dpv=$withval
14997 cat >>confdefs.h <<_ACEOF
14998 #define DEADLETTER "$dpv"
14999 _ACEOF
15003 dpv=mail
15005 # Check whether --with-default-mail-directory was given.
15006 if test "${with_default_mail_directory+set}" = set; then :
15007 withval=$with_default_mail_directory;
15008 if test "x$withval" != "xno" ; then
15009 dpv=$withval
15015 cat >>confdefs.h <<_ACEOF
15016 #define DF_MAIL_DIRECTORY "$dpv"
15017 _ACEOF
15021 dpv=INBOX
15023 # Check whether --with-default-inbox-name was given.
15024 if test "${with_default_inbox_name+set}" = set; then :
15025 withval=$with_default_inbox_name;
15026 if test "x$withval" != "xno" ; then
15027 dpv=$withval
15033 cat >>confdefs.h <<_ACEOF
15034 #define INBOX_NAME "$dpv"
15035 _ACEOF
15039 dpv=.signature
15041 # Check whether --with-default-signature-file was given.
15042 if test "${with_default_signature_file+set}" = set; then :
15043 withval=$with_default_signature_file;
15044 if test "x$withval" != "xno" ; then
15045 dpv=$withval
15051 cat >>confdefs.h <<_ACEOF
15052 #define DF_SIGNATURE_FILE "$dpv"
15053 _ACEOF
15057 dpv=no
15059 # Check whether --with-default-elm-style-save was given.
15060 if test "${with_default_elm_style_save+set}" = set; then :
15061 withval=$with_default_elm_style_save;
15062 if test "x$withval" != "xno" ; then
15063 dpv=$withval
15069 cat >>confdefs.h <<_ACEOF
15070 #define DF_ELM_STYLE_SAVE "$dpv"
15071 _ACEOF
15075 dpv=no
15077 # Check whether --with-default-header-in-reply was given.
15078 if test "${with_default_header_in_reply+set}" = set; then :
15079 withval=$with_default_header_in_reply;
15080 if test "x$withval" != "xno" ; then
15081 dpv=$withval
15087 cat >>confdefs.h <<_ACEOF
15088 #define DF_HEADER_IN_REPLY "$dpv"
15089 _ACEOF
15093 dpv=no
15095 # Check whether --with-default-old-style-reply was given.
15096 if test "${with_default_old_style_reply+set}" = set; then :
15097 withval=$with_default_old_style_reply;
15098 if test "x$withval" != "xno" ; then
15099 dpv=$withval
15105 cat >>confdefs.h <<_ACEOF
15106 #define DF_OLD_STYLE_REPLY "$dpv"
15107 _ACEOF
15111 dpv=no
15113 # Check whether --with-default-use-only-domain-name was given.
15114 if test "${with_default_use_only_domain_name+set}" = set; then :
15115 withval=$with_default_use_only_domain_name;
15116 if test "x$withval" != "xno" ; then
15117 dpv=$withval
15123 cat >>confdefs.h <<_ACEOF
15124 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
15125 _ACEOF
15129 dpv=no
15131 # Check whether --with-default-save-by-sender was given.
15132 if test "${with_default_save_by_sender+set}" = set; then :
15133 withval=$with_default_save_by_sender;
15134 if test "x$withval" != "xno" ; then
15135 dpv=$withval
15141 cat >>confdefs.h <<_ACEOF
15142 #define DF_SAVE_BY_SENDER "$dpv"
15143 _ACEOF
15147 dpv=arrival
15149 # Check whether --with-default-sort-key was given.
15150 if test "${with_default_sort_key+set}" = set; then :
15151 withval=$with_default_sort_key;
15152 if test "x$withval" != "xno" ; then
15153 dpv=$withval
15159 cat >>confdefs.h <<_ACEOF
15160 #define DF_SORT_KEY "$dpv"
15161 _ACEOF
15165 dpv=fullname-with-lists-last
15167 # Check whether --with-default-addressbook-sort-rule was given.
15168 if test "${with_default_addressbook_sort_rule+set}" = set; then :
15169 withval=$with_default_addressbook_sort_rule;
15170 if test "x$withval" != "xno" ; then
15171 dpv=$withval
15177 cat >>confdefs.h <<_ACEOF
15178 #define DF_AB_SORT_RULE "$dpv"
15179 _ACEOF
15183 dpv=alphabetical
15185 # Check whether --with-default-folder-sort-rule was given.
15186 if test "${with_default_folder_sort_rule+set}" = set; then :
15187 withval=$with_default_folder_sort_rule;
15188 if test "x$withval" != "xno" ; then
15189 dpv=$withval
15195 cat >>confdefs.h <<_ACEOF
15196 #define DF_FLD_SORT_RULE "$dpv"
15197 _ACEOF
15201 dpv=default-folder
15203 # Check whether --with-default-saved-message-name-rule was given.
15204 if test "${with_default_saved_message_name_rule+set}" = set; then :
15205 withval=$with_default_saved_message_name_rule;
15206 if test "x$withval" != "xno" ; then
15207 dpv=$withval
15213 cat >>confdefs.h <<_ACEOF
15214 #define DF_SAVED_MSG_NAME_RULE "$dpv"
15215 _ACEOF
15219 dpv=default-fcc
15221 # Check whether --with-default-fcc-rule was given.
15222 if test "${with_default_fcc_rule+set}" = set; then :
15223 withval=$with_default_fcc_rule;
15224 if test "x$withval" != "xno" ; then
15225 dpv=$withval
15231 cat >>confdefs.h <<_ACEOF
15232 #define DF_FCC_RULE "$dpv"
15233 _ACEOF
15237 dpv=lpr
15239 # Check whether --with-default-standard-printer was given.
15240 if test "${with_default_standard_printer+set}" = set; then :
15241 withval=$with_default_standard_printer;
15242 if test "x$withval" != "xno" ; then
15243 dpv=$withval
15249 cat >>confdefs.h <<_ACEOF
15250 #define DF_STANDARD_PRINTER "$dpv"
15251 _ACEOF
15255 dpv=attached-to-ansi
15257 # Check whether --with-default-ansi-printer was given.
15258 if test "${with_default_ansi_printer+set}" = set; then :
15259 withval=$with_default_ansi_printer;
15260 if test "x$withval" != "xno" ; then
15261 dpv=$withval
15267 cat >>confdefs.h <<_ACEOF
15268 #define ANSI_PRINTER "$dpv"
15269 _ACEOF
15273 dpv=.addressbook
15275 # Check whether --with-default-addressbook was given.
15276 if test "${with_default_addressbook+set}" = set; then :
15277 withval=$with_default_addressbook;
15278 if test "x$withval" != "xno" ; then
15279 dpv=$withval
15285 cat >>confdefs.h <<_ACEOF
15286 #define DF_ADDRESSBOOK "$dpv"
15287 _ACEOF
15291 dpv="Local Support"
15293 # Check whether --with-default-local-fullname was given.
15294 if test "${with_default_local_fullname+set}" = set; then :
15295 withval=$with_default_local_fullname;
15296 if test "x$withval" != "xno" ; then
15297 dpv=$withval
15303 cat >>confdefs.h <<_ACEOF
15304 #define DF_LOCAL_FULLNAME "$dpv"
15305 _ACEOF
15309 dpv=postmaster
15311 # Check whether --with-default-local-address was given.
15312 if test "${with_default_local_address+set}" = set; then :
15313 withval=$with_default_local_address;
15314 if test "x$withval" != "xno" ; then
15315 dpv=$withval
15321 cat >>confdefs.h <<_ACEOF
15322 #define DF_LOCAL_ADDRESS "$dpv"
15323 _ACEOF
15327 dpv=1
15329 # Check whether --with-default-keyboard-lock-count was given.
15330 if test "${with_default_keyboard_lock_count+set}" = set; then :
15331 withval=$with_default_keyboard_lock_count;
15332 if test "x$withval" != "xno" ; then
15333 dpv=$withval
15339 cat >>confdefs.h <<_ACEOF
15340 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
15341 _ACEOF
15345 dpv=3
15347 # Check whether --with-default-remote-addressbook-history was given.
15348 if test "${with_default_remote_addressbook_history+set}" = set; then :
15349 withval=$with_default_remote_addressbook_history;
15350 if test "x$withval" != "xno" ; then
15351 dpv=$withval
15357 cat >>confdefs.h <<_ACEOF
15358 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
15359 _ACEOF
15363 dpv=.alpine-smime/public
15365 # Check whether --with-smime-public-cert-directory was given.
15366 if test "${with_smime_public_cert_directory+set}" = set; then :
15367 withval=$with_smime_public_cert_directory;
15368 if test "x$withval" != "xno" ; then
15369 dpv=$withval
15375 cat >>confdefs.h <<_ACEOF
15376 #define DF_PUBLICCERT_DIR "$dpv"
15377 _ACEOF
15381 dpv=.alpine-smime/private
15383 # Check whether --with-smime-private-key-directory was given.
15384 if test "${with_smime_private_key_directory+set}" = set; then :
15385 withval=$with_smime_private_key_directory;
15386 if test "x$withval" != "xno" ; then
15387 dpv=$withval
15393 cat >>confdefs.h <<_ACEOF
15394 #define DF_PRIVATEKEY_DIR "$dpv"
15395 _ACEOF
15399 dpv=.alpine-smime/ca
15401 # Check whether --with-smime-cacert-directory was given.
15402 if test "${with_smime_cacert_directory+set}" = set; then :
15403 withval=$with_smime_cacert_directory;
15404 if test "x$withval" != "xno" ; then
15405 dpv=$withval
15411 cat >>confdefs.h <<_ACEOF
15412 #define DF_CACERT_DIR "$dpv"
15413 _ACEOF
15417 dpv=ANSI_PRINTER
15419 # Check whether --with-default-printer was given.
15420 if test "${with_default_printer+set}" = set; then :
15421 withval=$with_default_printer;
15422 if test "x$withval" != "xno" ; then
15423 dpv=$withval
15429 cat >>confdefs.h <<_ACEOF
15430 #define DF_DEFAULT_PRINTER $dpv
15431 _ACEOF
15436 # Check whether --with-passfile was given.
15437 if test "${with_passfile+set}" = set; then :
15438 withval=$with_passfile;
15439 case "$withval" in
15442 yes)
15445 alpine_PASSFILE=$withval
15447 esac
15453 # Check whether --with-local-password-cache was given.
15454 if test "${with_local_password_cache+set}" = set; then :
15455 withval=$with_local_password_cache;
15456 alpine_os_credential_cache=$withval
15462 # Check whether --with-local-password-cache-method was given.
15463 if test "${with_local_password_cache_method+set}" = set; then :
15464 withval=$with_local_password_cache_method;
15465 alpine_os_credential_cache_method=$withval
15470 if test -n "$alpine_PASSFILE" ; then
15471 case $alpine_os_credential_cache in
15475 alpine_os_credential_cache="no"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
15477 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
15479 esac
15481 cat >>confdefs.h <<_ACEOF
15482 #define PASSFILE "$alpine_PASSFILE"
15483 _ACEOF
15488 # Check whether --with-default-sshpath was given.
15489 if test "${with_default_sshpath+set}" = set; then :
15490 withval=$with_default_sshpath;
15491 case "$withval" in
15494 yes)
15498 cat >>confdefs.h <<_ACEOF
15499 #define DF_SSHPATH "$withval"
15500 _ACEOF
15503 esac
15509 # Check whether --with-default-sshcmd was given.
15510 if test "${with_default_sshcmd+set}" = set; then :
15511 withval=$with_default_sshcmd;
15512 case "$withval" in
15515 yes)
15519 cat >>confdefs.h <<_ACEOF
15520 #define DF_SSHCMD "$withval"
15521 _ACEOF
15524 esac
15530 # Check whether --with-ssl was given.
15531 if test "${with_ssl+set}" = set; then :
15532 withval=$with_ssl; with_ssl=$withval
15536 if test "x$with_ssl" = "xno" ; then
15537 alpine_SSLTYPE="none"
15538 else
15539 case $host in
15540 *-linux-gnu*)
15541 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
15542 alpine_SSLTYPE="nopwd"
15543 if test -d /etc/pki/tls ; then
15544 alpine_SSLDIR="/etc/pki/tls"
15545 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15546 alpine_SSLKEYS="$alpine_SSLDIR/private"
15547 alpine_SSLINCLUDE="/usr/include/openssl"
15548 alpine_SSLLIB="/usr/lib"
15549 else
15550 alpine_SSLDIR="/usr/share/ssl"
15552 elif test -f /etc/SuSE-release ; then
15553 alpine_SSLTYPE="nopwd"
15554 alpine_SSLDIR="/etc/ssl"
15555 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15556 alpine_SSLKEYS="$alpine_SSLDIR/private"
15557 alpine_SSLINCLUDE="/usr/include/openssl"
15558 alpine_SSLLIB="/usr/lib"
15559 elif test -d /etc/osso-af-init ; then
15560 alpine_SSLTYPE="nopwd"
15561 alpine_SSLDIR="/usr"
15562 alpine_SSLCERTS="/usr/share/certs"
15563 alpine_SSLINCLUDE="/usr/include/openssl"
15564 alpine_SSLLIB="/usr/lib"
15565 else
15566 alpine_SSLTYPE="nopwd"
15567 alpine_SSLDIR="/usr"
15568 alpine_SSLCERTS="/etc/ssl/certs"
15571 *-apple-darwin*)
15572 alpine_SSLTYPE="nopwd"
15573 if test -d /opt/local/etc/openssl ; then
15574 alpine_SSLDIR="/opt/local/etc/openssl"
15575 alpine_SSLCERTS="$alpine_SSLDIR"
15576 alpine_SSLKEYS="$alpine_SSLDIR"
15577 alpine_SSLLIB="/usr/lib"
15578 alpine_SSLINCLUDE="/usr/include/openssl"
15579 elif test -d /System/Library/OpenSSL ; then
15580 alpine_SSLDIR="/System/Library/OpenSSL"
15581 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15582 alpine_SSLKEYS="$alpine_SSLDIR/private"
15583 alpine_SSLLIB="/usr/lib"
15584 alpine_SSLINCLUDE="/usr/include/openssl"
15587 *-openbsd*)
15588 alpine_SSLTYPE="nopwd"
15589 alpine_SSLDIR="/usr"
15590 alpine_SSLCERTS="/etc/ssl/certs"
15592 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
15593 alpine_SSLTYPE="sco.nopwd"
15594 alpine_SSLDIR="/usr/local/ssl"
15596 *-*-solaris*)
15597 if test -d /usr/sfw/include/openssl ; then
15598 alpine_SSLDIR="/usr/sfw"
15599 elif test -d /opt/csw/include/openssl ; then
15600 alpine_SSLDIR="/opt/csw"
15601 if test -d /opt/csw/ssl/certs ; then
15602 alpine_SSLCERTS="/opt/csw/ssl/certs"
15605 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
15606 alpine_SSLCERTS="/etc/certs"
15610 alpine_SSLTYPE="nopwd"
15611 alpine_SSLDIR="/usr/local/ssl"
15613 esac
15616 # Check whether --with-ssl-dir was given.
15617 if test "${with_ssl_dir+set}" = set; then :
15618 withval=$with_ssl_dir;
15619 if test "x$withval" != "xno" ; then
15620 alpine_SSLDIR=$withval
15627 # Check whether --with-ssl-certs-dir was given.
15628 if test "${with_ssl_certs_dir+set}" = set; then :
15629 withval=$with_ssl_certs_dir;
15630 if test "x$withval" != "xno" ; then
15631 alpine_SSLCERTS=$withval
15638 # Check whether --with-ssl-include-dir was given.
15639 if test "${with_ssl_include_dir+set}" = set; then :
15640 withval=$with_ssl_include_dir;
15641 if test "x$withval" != "xno" ; then
15642 alpine_SSLINCLUDE=$withval
15649 # Check whether --with-ssl-lib-dir was given.
15650 if test "${with_ssl_lib_dir+set}" = set; then :
15651 withval=$with_ssl_lib_dir;
15652 if test "x$withval" != "xno" ; then
15653 alpine_SSLLIB=$withval
15658 if test -n "$alpine_SSLINCLUDE" ; then
15659 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
15660 elif test -n "$alpine_SSLDIR" ; then
15661 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
15663 if test -n "$alpine_SSLLIB" ; then
15664 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
15665 elif test -n "$alpine_SSLDIR" ; then
15666 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
15671 # Check whether --with-krb5 was given.
15672 if test "${with_krb5+set}" = set; then :
15673 withval=$with_krb5; with_krb5=$withval
15677 if test "x$with_krb5" = "xno" ; then
15678 alpine_GSSTYPE="none"
15679 else
15680 alpine_GSSTYPE=
15683 # Check whether --with-krb5-dir was given.
15684 if test "${with_krb5_dir+set}" = set; then :
15685 withval=$with_krb5_dir;
15686 if test "x$withval" != "xno" ; then
15687 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15688 LDFLAGS="$LDFLAGS -L${withval}/lib"
15695 # Check whether --with-krb5-include-dir was given.
15696 if test "${with_krb5_include_dir+set}" = set; then :
15697 withval=$with_krb5_include_dir;
15698 if test "x$withval" != "xno" ; then
15699 CPPFLAGS="$CPPFLAGS -I$withval"
15706 # Check whether --with-krb5-lib-dir was given.
15707 if test "${with_krb5_lib_dir+set}" = set; then :
15708 withval=$with_krb5_lib_dir;
15709 if test "x$withval" != "xno" ; then
15710 LDFLAGS="$LDFLAGS -L$withval"
15718 # Check whether --with-ldap was given.
15719 if test "${with_ldap+set}" = set; then :
15720 withval=$with_ldap; with_ldap=$withval
15724 if test "x$with_ldap" = "xno" ; then
15725 alpine_with_ldap=
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
15727 $as_echo "$as_me: Excluding LDAP Support" >&6;}
15728 else
15730 alpine_with_ldap=yes
15732 # Check whether --with-ldap-dir was given.
15733 if test "${with_ldap_dir+set}" = set; then :
15734 withval=$with_ldap_dir;
15735 if test "x$withval" != "xno" ; then
15736 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15737 LDFLAGS="$LDFLAGS -L${withval}/lib"
15744 # Check whether --with-ldap-include-dir was given.
15745 if test "${with_ldap_include_dir+set}" = set; then :
15746 withval=$with_ldap_include_dir;
15747 if test "x$withval" != "xno" ; then
15748 CPPFLAGS="$CPPFLAGS -I$withval"
15755 # Check whether --with-ldap-lib-dir was given.
15756 if test "${with_ldap_lib_dir+set}" = set; then :
15757 withval=$with_ldap_lib_dir;
15758 if test "x$withval" != "xno" ; then
15759 LDFLAGS="$LDFLAGS -L$withval"
15767 # Check whether --with-smime was given.
15768 if test "${with_smime+set}" = set; then :
15769 withval=$with_smime; with_smime=$withval
15774 # Check whether --with-tcl was given.
15775 if test "${with_tcl+set}" = set; then :
15776 withval=$with_tcl; with_tcl=$withval
15780 if test "x$with_tcl" = "xno" ; then
15781 WEB_BUILD=
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
15783 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
15784 else
15786 # Check whether --with-tcl-lib was given.
15787 if test "${with_tcl_lib+set}" = set; then :
15788 withval=$with_tcl_lib;
15789 if test "x$withval" != "xno" ; then
15790 alpine_TCLLIB=$withval
15796 # Check whether --with-tcl-include was given.
15797 if test "${with_tcl_include+set}" = set; then :
15798 withval=$with_tcl_include;
15799 if test "x$withval" != "xno" ; then
15800 CPPFLAGS="$CPPFLAGS -I$withval"
15801 alpine_TCLINC=$withval
15809 # Check whether --with-supplied-regex was given.
15810 if test "${with_supplied_regex+set}" = set; then :
15811 withval=$with_supplied_regex; alpine_REGEX=$withval
15816 # Check whether --with-pthread was given.
15817 if test "${with_pthread+set}" = set; then :
15818 withval=$with_pthread; with_pthread=$withval
15823 # Check whether --with-system-mail-directory was given.
15824 if test "${with_system_mail_directory+set}" = set; then :
15825 withval=$with_system_mail_directory;
15826 if test "x$withval" != "xno" ; then
15827 alpine_with_local_maildir="$withval"
15834 # Check whether --with-c-client-target was given.
15835 if test "${with_c_client_target+set}" = set; then :
15836 withval=$with_c_client_target;
15837 if test "x$withval" != "xno" ;then
15838 alpine_with_c_client_target="$withval"
15845 alpine_PAM="none"
15847 case "$host" in
15848 *-linux-gnu*|*-k*bsd*-gnu*)
15849 alpine_path_delim="/"
15850 alpine_mode_readonly="(0600)"
15851 if test -f /etc/fedora-release ; then
15852 systype="LFD"
15853 alpine_PAM="yes"
15854 if test -d /etc/pki/tls ; then
15855 alpine_c_client_target="lfd"
15856 else
15857 alpine_c_client_target="lrh"
15859 elif test -f /etc/mandrake-release ; then
15860 systype="LMD"
15861 alpine_c_client_target="lmd"
15862 alpine_PAM="yes"
15863 alpine_SSLDIR="/usr/lib/ssl"
15864 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15865 alpine_SSLKEYS="$alpine_SSLDIR/private"
15866 alpine_SSLINCLUDE="/usr/include/openssl"
15867 alpine_SSLLIB="/usr/lib"
15868 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
15869 systype="LRH"
15870 alpine_PAM="yes"
15871 if test -d /etc/pki/tls ; then
15872 alpine_c_client_target="lr5"
15873 else
15874 alpine_c_client_target="lrh"
15875 alpine_SSLDIR="/usr/share/ssl"
15876 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15877 alpine_SSLKEYS="$alpine_SSLDIR/private"
15878 alpine_SSLINCLUDE="/usr/include/openssl"
15879 alpine_SSLLIB="/usr/lib"
15881 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
15882 if test -d /etc/osso-af-init ; then
15883 systype="LN8"
15884 alpine_c_client_target="ln8"
15885 else
15886 systype="DEB"
15887 alpine_c_client_target="ldb"
15888 alpine_PAM="yes"
15889 alpine_SSLDIR="/etc/ssl"
15890 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15891 alpine_SSLKEYS="$alpine_SSLDIR/private"
15892 alpine_SSLINCLUDE="/usr/include/openssl"
15893 alpine_SSLLIB="/usr/lib"
15895 elif test -f /etc/SuSE-release ; then
15896 systype="LSU"
15897 alpine_c_client_target="lsu"
15898 alpine_PAM="yes"
15899 else
15900 systype="LNX"
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15902 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15903 if ${ac_cv_lib_pam_pam_start+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905 else
15906 ac_check_lib_save_LIBS=$LIBS
15907 LIBS="-lpam $LIBS"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15914 #ifdef __cplusplus
15915 extern "C"
15916 #endif
15917 char pam_start ();
15919 main ()
15921 return pam_start ();
15923 return 0;
15925 _ACEOF
15926 if ac_fn_c_try_link "$LINENO"; then :
15927 ac_cv_lib_pam_pam_start=yes
15928 else
15929 ac_cv_lib_pam_pam_start=no
15931 rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933 LIBS=$ac_check_lib_save_LIBS
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15936 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15937 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15939 alpine_c_client_target="lnp"
15940 alpine_PAM="yes"
15942 else
15944 if test -f /etc/shadow ; then
15945 alpine_c_client_target="slx"
15946 else
15947 alpine_c_client_target="lnx"
15954 *-apple-darwin*)
15955 systype="OSX"
15956 alpine_path_delim="/"
15957 alpine_mode_readonly="(0600)"
15958 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
15959 AM_CFLAGS="$AM_CFLAGS -Dbsd"
15961 $as_echo "#define OSX_TARGET 1" >>confdefs.h
15963 case "$alpine_os_credential_cache" in
15968 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
15971 esac
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15973 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15974 if ${ac_cv_lib_pam_pam_start+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 ac_check_lib_save_LIBS=$LIBS
15978 LIBS="-lpam $LIBS"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15985 #ifdef __cplusplus
15986 extern "C"
15987 #endif
15988 char pam_start ();
15990 main ()
15992 return pam_start ();
15994 return 0;
15996 _ACEOF
15997 if ac_fn_c_try_link "$LINENO"; then :
15998 ac_cv_lib_pam_pam_start=yes
15999 else
16000 ac_cv_lib_pam_pam_start=no
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16007 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16008 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16010 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16011 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16013 alpine_PAM="yes"
16014 alpine_c_client_target="oxs"
16016 else
16017 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16018 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16020 alpine_PAM="yes"
16021 alpine_c_client_target="oxp"
16023 else
16025 alpine_PAM="none"
16026 alpine_pam_none_reason="header files not found"
16036 else
16038 alpine_c_client_target="osx"
16043 *-*-solaris*)
16044 if test x$GCC = "xyes" ; then
16045 systype="GSO"
16046 alpine_c_client_target="gso"
16047 else
16048 systype="SOC"
16049 alpine_c_client_target="soc"
16051 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16054 alpine_path_delim="/"
16055 alpine_mode_readonly="(0600)"
16057 *-*-sunos4*)
16058 systype="SUN"
16059 alpine_path_delim="/"
16060 alpine_mode_readonly="(0600)"
16061 alpine_c_client_target="s40"
16063 *-*-sco3.2v5*)
16064 if test x$GCC = "xyes" ; then
16065 systype="GO5"
16066 alpine_c_client_target="go5"
16067 else
16068 systype="SC5"
16069 alpine_c_client_target="sc5"
16071 alpine_path_delim="/"
16072 alpine_mode_readonly="(0600)"
16074 *-next-*)
16075 systype="NXT"
16076 alpine_path_delim="/"
16077 alpine_mode_readonly="(0600)"
16078 alpine_c_client_target="nx3"
16080 *-*-netbsd*)
16081 systype="NEB"
16082 alpine_path_delim="/"
16083 alpine_mode_readonly="(0600)"
16084 alpine_c_client_target="neb"
16085 alpine_SSLDIR="/etc/openssl"
16086 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16087 alpine_SSLKEYS="$alpine_SSLDIR/private"
16088 alpine_SSLINCLUDE="/usr/include/openssl"
16089 alpine_SSLLIB="/usr/lib"
16091 *-*-dragonfly*)
16092 systype="DFB"
16093 alpine_path_delim="/"
16094 alpine_mode_readonly="(0600)"
16095 alpine_c_client_target="neb"
16096 alpine_SSLDIR="/etc/openssl"
16097 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16098 alpine_SSLKEYS="$alpine_SSLDIR/private"
16099 alpine_SSLINCLUDE="/usr/include/openssl"
16100 alpine_SSLLIB="/usr/lib"
16102 *-*-bsdi*)
16103 systype="BSI"
16104 alpine_path_delim="/"
16105 alpine_mode_readonly="(0600)"
16106 alpine_c_client_target="bsi"
16108 *-*-freebsd*)
16109 systype="BSF"
16110 alpine_path_delim="/"
16111 alpine_mode_readonly="(0600)"
16112 alpine_c_client_target="bsf"
16113 alpine_SSLDIR="/etc/ssl"
16114 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16115 alpine_SSLKEYS="$alpine_SSLDIR/private"
16116 alpine_SSLINCLUDE="/usr/include/openssl"
16117 alpine_SSLLIB="/usr/lib"
16118 LIBS="$LIBS $LIBINTL"
16120 *-*-openbsd*)
16121 systype="BSO"
16122 alpine_path_delim="/"
16123 alpine_mode_readonly="(0600)"
16124 alpine_c_client_target="bso"
16125 alpine_SSLDIR="/etc/ssl"
16126 alpine_SSLINCLUDE="/usr/include/openssl"
16127 alpine_SSLLIB="/usr/lib"
16128 alpine_SSLCERTS="/etc/ssl"
16129 alpine_SSLKEYS="/etc/ssl/private"
16130 LIBS="$LIBS $LIBINTL"
16132 *-*-aix5*)
16133 systype="A52"
16134 alpine_path_delim="/"
16135 alpine_mode_readonly="(0600)"
16136 alpine_c_client_target="a52"
16138 *-*-aix4*)
16139 systype="A41"
16140 alpine_path_delim="/"
16141 alpine_mode_readonly="(0600)"
16142 alpine_c_client_target="a41"
16144 *-*-aix3*)
16145 systype="A32"
16146 alpine_path_delim="/"
16147 alpine_mode_readonly="(0600)"
16148 alpine_c_client_target="a32"
16150 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
16151 systype="UW2"
16152 alpine_path_delim="/"
16153 alpine_mode_readonly="(0600)"
16154 alpine_c_client_target="uw2"
16156 *-*-osf5*)
16157 systype="OSF"
16158 alpine_path_delim="/"
16159 alpine_mode_readonly="(0600)"
16160 alpine_c_client_target="osf"
16162 *-*-cygwin)
16163 systype="CYG"
16164 alpine_path_delim="/"
16165 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16166 alpine_c_client_target="cyg"
16167 alpine_SSLDIR="/usr/ssl"
16168 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16169 alpine_SSLKEYS="$alpine_SSLDIR/certs"
16170 alpine_SSLINCLUDE="/usr/include/openssl"
16171 alpine_SSLLIB="/usr/lib"
16172 LIBS="$LIBS $LIBINTL"
16174 windows* | *-*-pw32*)
16175 systype="WNT"
16176 alpine_path_delim="\\"
16177 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16178 alpine_c_client_target="wnt"
16180 $as_echo "#define _WINDOWS 1" >>confdefs.h
16184 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
16186 esac
16189 # Check whether --with-ipv6 was given.
16190 if test "${with_ipv6+set}" = set; then :
16191 withval=$with_ipv6; with_ipv6=$withval
16195 if test "x$with_ipv6" = "xno" ; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
16197 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
16198 c_client_specials="${c_client_specials}IP6=4 "
16199 c_client_ip6="true"
16200 else
16201 c_client_ip6="touch imap/ip6"
16206 if test x$enable_dmalloc = "xyes" ; then
16207 if test "x$with_pthread" = "xyes" ; then
16208 dmalloc_lib=dmallocth
16209 else
16210 dmalloc_lib=dmalloc
16213 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
16215 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
16216 if eval \${$as_ac_Lib+:} false; then :
16217 $as_echo_n "(cached) " >&6
16218 else
16219 ac_check_lib_save_LIBS=$LIBS
16220 LIBS="-l$dmalloc_lib $LIBS"
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16224 /* Override any GCC internal prototype to avoid an error.
16225 Use char because int might match the return type of a GCC
16226 builtin and then its argument prototype would still apply. */
16227 #ifdef __cplusplus
16228 extern "C"
16229 #endif
16230 char dmalloc_shutdown ();
16232 main ()
16234 return dmalloc_shutdown ();
16236 return 0;
16238 _ACEOF
16239 if ac_fn_c_try_link "$LINENO"; then :
16240 eval "$as_ac_Lib=yes"
16241 else
16242 eval "$as_ac_Lib=no"
16244 rm -f core conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16248 eval ac_res=\$$as_ac_Lib
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16250 $as_echo "$ac_res" >&6; }
16251 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16252 cat >>confdefs.h <<_ACEOF
16253 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
16254 _ACEOF
16256 LIBS="-l$dmalloc_lib $LIBS"
16258 else
16260 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
16267 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
16268 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
16269 $as_echo_n "(cached) " >&6
16270 else
16271 ac_check_lib_save_LIBS=$LIBS
16272 LIBS="-ltinfo $LIBS"
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 char setupterm ();
16284 main ()
16286 return setupterm ();
16288 return 0;
16290 _ACEOF
16291 if ac_fn_c_try_link "$LINENO"; then :
16292 ac_cv_lib_tinfo_setupterm=yes
16293 else
16294 ac_cv_lib_tinfo_setupterm=no
16296 rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
16301 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
16302 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
16304 alpine_termdata=info
16305 LIBS="$LIBS -ltinfo"
16307 else
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
16310 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
16311 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 ac_check_lib_save_LIBS=$LIBS
16315 LIBS="-lncurses $LIBS"
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16319 /* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 char setupterm ();
16327 main ()
16329 return setupterm ();
16331 return 0;
16333 _ACEOF
16334 if ac_fn_c_try_link "$LINENO"; then :
16335 ac_cv_lib_ncurses_setupterm=yes
16336 else
16337 ac_cv_lib_ncurses_setupterm=no
16339 rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16341 LIBS=$ac_check_lib_save_LIBS
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
16344 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
16345 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
16347 alpine_termdata=info
16348 LIBS="$LIBS -lncurses"
16350 else
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
16353 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
16354 if ${ac_cv_lib_curses_setupterm+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-lcurses $LIBS"
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16365 #ifdef __cplusplus
16366 extern "C"
16367 #endif
16368 char setupterm ();
16370 main ()
16372 return setupterm ();
16374 return 0;
16376 _ACEOF
16377 if ac_fn_c_try_link "$LINENO"; then :
16378 ac_cv_lib_curses_setupterm=yes
16379 else
16380 ac_cv_lib_curses_setupterm=no
16382 rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384 LIBS=$ac_check_lib_save_LIBS
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
16387 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
16388 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
16390 alpine_termdata=info
16391 LIBS="$LIBS -lcurses"
16393 else
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
16396 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
16397 if ${ac_cv_lib_termlib_tgetent+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 ac_check_lib_save_LIBS=$LIBS
16401 LIBS="-ltermlib $LIBS"
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 char tgetent ();
16413 main ()
16415 return tgetent ();
16417 return 0;
16419 _ACEOF
16420 if ac_fn_c_try_link "$LINENO"; then :
16421 ac_cv_lib_termlib_tgetent=yes
16422 else
16423 ac_cv_lib_termlib_tgetent=no
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
16430 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
16431 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
16433 alpine_termdata=cap
16434 LIBS="$LIBS -ltermlib"
16436 else
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
16439 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
16440 if ${ac_cv_lib_termcap_tgetent+:} false; then :
16441 $as_echo_n "(cached) " >&6
16442 else
16443 ac_check_lib_save_LIBS=$LIBS
16444 LIBS="-ltermcap $LIBS"
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char tgetent ();
16456 main ()
16458 return tgetent ();
16460 return 0;
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"; then :
16464 ac_cv_lib_termcap_tgetent=yes
16465 else
16466 ac_cv_lib_termcap_tgetent=no
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
16473 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16474 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
16476 alpine_termdata=cap
16477 LIBS="$LIBS -ltermcap"
16479 else
16481 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
16497 case $alpine_termdata in
16498 info)
16500 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
16503 cap)
16505 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
16508 esac
16510 if test "$alpine_with_ldap" = "yes" ; then
16511 alpine_has_ldap=
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
16513 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
16514 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
16515 $as_echo_n "(cached) " >&6
16516 else
16517 ac_check_lib_save_LIBS=$LIBS
16518 LIBS="-llber $LIBS"
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16522 /* Override any GCC internal prototype to avoid an error.
16523 Use char because int might match the return type of a GCC
16524 builtin and then its argument prototype would still apply. */
16525 #ifdef __cplusplus
16526 extern "C"
16527 #endif
16528 char ber_alloc ();
16530 main ()
16532 return ber_alloc ();
16534 return 0;
16536 _ACEOF
16537 if ac_fn_c_try_link "$LINENO"; then :
16538 ac_cv_lib_lber_ber_alloc=yes
16539 else
16540 ac_cv_lib_lber_ber_alloc=no
16542 rm -f core conftest.err conftest.$ac_objext \
16543 conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
16547 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
16548 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
16550 LIBS="$LIBS -llber"
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
16555 $as_echo_n "checking for library containing ldap_init... " >&6; }
16556 if ${ac_cv_search_ldap_init+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 ac_func_search_save_LIBS=$LIBS
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16563 /* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
16566 #ifdef __cplusplus
16567 extern "C"
16568 #endif
16569 char ldap_init ();
16571 main ()
16573 return ldap_init ();
16575 return 0;
16577 _ACEOF
16578 for ac_lib in '' ldap; do
16579 if test -z "$ac_lib"; then
16580 ac_res="none required"
16581 else
16582 ac_res=-l$ac_lib
16583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16585 if ac_fn_c_try_link "$LINENO"; then :
16586 ac_cv_search_ldap_init=$ac_res
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext
16590 if ${ac_cv_search_ldap_init+:} false; then :
16591 break
16593 done
16594 if ${ac_cv_search_ldap_init+:} false; then :
16596 else
16597 ac_cv_search_ldap_init=no
16599 rm conftest.$ac_ext
16600 LIBS=$ac_func_search_save_LIBS
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
16603 $as_echo "$ac_cv_search_ldap_init" >&6; }
16604 ac_res=$ac_cv_search_ldap_init
16605 if test "$ac_res" != no; then :
16606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16608 alpine_has_ldap=yes
16610 else
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
16613 $as_echo_n "checking for library containing ldap_open... " >&6; }
16614 if ${ac_cv_search_ldap_open+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 ac_func_search_save_LIBS=$LIBS
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16621 /* Override any GCC internal prototype to avoid an error.
16622 Use char because int might match the return type of a GCC
16623 builtin and then its argument prototype would still apply. */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 char ldap_open ();
16629 main ()
16631 return ldap_open ();
16633 return 0;
16635 _ACEOF
16636 for ac_lib in '' ldap; do
16637 if test -z "$ac_lib"; then
16638 ac_res="none required"
16639 else
16640 ac_res=-l$ac_lib
16641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 ac_cv_search_ldap_open=$ac_res
16646 rm -f core conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext
16648 if ${ac_cv_search_ldap_open+:} false; then :
16649 break
16651 done
16652 if ${ac_cv_search_ldap_open+:} false; then :
16654 else
16655 ac_cv_search_ldap_open=no
16657 rm conftest.$ac_ext
16658 LIBS=$ac_func_search_save_LIBS
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
16661 $as_echo "$ac_cv_search_ldap_open" >&6; }
16662 ac_res=$ac_cv_search_ldap_open
16663 if test "$ac_res" != no; then :
16664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16666 alpine_has_ldap=yes
16674 if test "$alpine_has_ldap" = "yes" ; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: Including LDAP Support" >&5
16676 $as_echo "$as_me: Including LDAP Support" >&6;}
16678 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
16682 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
16683 if test "$cross_compiling" = yes; then :
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
16686 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16689 else
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16693 #include <stdio.h>
16694 #include <string.h>
16695 #include <ldap.h>
16696 int main(void) {
16698 if (LDAP_VENDOR_VERSION >= 20300)
16699 exit(0);
16701 exit(2);
16704 _ACEOF
16705 if ac_fn_c_try_run "$LINENO"; then :
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16708 $as_echo "yes" >&6; }
16710 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
16714 else
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717 $as_echo "no" >&6; }
16720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16721 conftest.$ac_objext conftest.beam conftest.$ac_ext
16725 else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
16727 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
16731 if test "x$alpine_SSLTYPE" != "xnone" ; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
16733 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
16734 if ${ac_cv_search_SSL_library_init+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 ac_func_search_save_LIBS=$LIBS
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16741 /* Override any GCC internal prototype to avoid an error.
16742 Use char because int might match the return type of a GCC
16743 builtin and then its argument prototype would still apply. */
16744 #ifdef __cplusplus
16745 extern "C"
16746 #endif
16747 char SSL_library_init ();
16749 main ()
16751 return SSL_library_init ();
16753 return 0;
16755 _ACEOF
16756 for ac_lib in '' ssl; do
16757 if test -z "$ac_lib"; then
16758 ac_res="none required"
16759 else
16760 ac_res=-l$ac_lib
16761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16763 if ac_fn_c_try_link "$LINENO"; then :
16764 ac_cv_search_SSL_library_init=$ac_res
16766 rm -f core conftest.err conftest.$ac_objext \
16767 conftest$ac_exeext
16768 if ${ac_cv_search_SSL_library_init+:} false; then :
16769 break
16771 done
16772 if ${ac_cv_search_SSL_library_init+:} false; then :
16774 else
16775 ac_cv_search_SSL_library_init=no
16777 rm conftest.$ac_ext
16778 LIBS=$ac_func_search_save_LIBS
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
16781 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
16782 ac_res=$ac_cv_search_SSL_library_init
16783 if test "$ac_res" != no; then :
16784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16786 LIBS="$LIBS -lssl"
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
16789 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
16790 if test "$cross_compiling" = yes; then :
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
16793 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16796 else
16797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16800 #include <stdio.h>
16801 #include <openssl/ssl.h>
16802 int main(void) {
16804 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
16805 exit(0);
16807 exit(2);
16810 _ACEOF
16811 if ac_fn_c_try_run "$LINENO"; then :
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 $as_echo "yes" >&6; }
16816 else
16818 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
16819 exit 1
16822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16823 conftest.$ac_objext conftest.beam conftest.$ac_ext
16827 else
16828 alpine_SSLTYPE="none"
16831 if test "x$alpine_SSLTYPE" = "xnone" ; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL libraries NOT found" >&5
16833 $as_echo "$as_me: OpenSSL libraries NOT found" >&6;}
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL libraries FOUND" >&5
16836 $as_echo "$as_me: OpenSSL libraries FOUND" >&6;}
16840 if test "x$alpine_SSLTYPE" != "xnone" ; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
16842 $as_echo_n "checking for library containing SSLeay... " >&6; }
16843 if ${ac_cv_search_SSLeay+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 ac_func_search_save_LIBS=$LIBS
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char SSLeay ();
16858 main ()
16860 return SSLeay ();
16862 return 0;
16864 _ACEOF
16865 for ac_lib in '' crypto; do
16866 if test -z "$ac_lib"; then
16867 ac_res="none required"
16868 else
16869 ac_res=-l$ac_lib
16870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16872 if ac_fn_c_try_link "$LINENO"; then :
16873 ac_cv_search_SSLeay=$ac_res
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext
16877 if ${ac_cv_search_SSLeay+:} false; then :
16878 break
16880 done
16881 if ${ac_cv_search_SSLeay+:} false; then :
16883 else
16884 ac_cv_search_SSLeay=no
16886 rm conftest.$ac_ext
16887 LIBS=$ac_func_search_save_LIBS
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
16890 $as_echo "$ac_cv_search_SSLeay" >&6; }
16891 ac_res=$ac_cv_search_SSLeay
16892 if test "$ac_res" != no; then :
16893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16895 LIBS="$LIBS -lcrypto"
16897 else
16899 alpine_CRYPTO = "none"
16903 if test "x$alpine_CRYPTO" = "xnone" ; then
16904 as_fn_error $? "crypto library NOT found" "$LINENO" 5
16905 else
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: crypto library found" >&5
16907 $as_echo "$as_me: crypto library found" >&6;}
16911 if test "x$alpine_PAM" != "xnone" ; then
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
16913 $as_echo_n "checking for library containing pam_start... " >&6; }
16914 if ${ac_cv_search_pam_start+:} false; then :
16915 $as_echo_n "(cached) " >&6
16916 else
16917 ac_func_search_save_LIBS=$LIBS
16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h. */
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924 #ifdef __cplusplus
16925 extern "C"
16926 #endif
16927 char pam_start ();
16929 main ()
16931 return pam_start ();
16933 return 0;
16935 _ACEOF
16936 for ac_lib in '' pam; do
16937 if test -z "$ac_lib"; then
16938 ac_res="none required"
16939 else
16940 ac_res=-l$ac_lib
16941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16943 if ac_fn_c_try_link "$LINENO"; then :
16944 ac_cv_search_pam_start=$ac_res
16946 rm -f core conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext
16948 if ${ac_cv_search_pam_start+:} false; then :
16949 break
16951 done
16952 if ${ac_cv_search_pam_start+:} false; then :
16954 else
16955 ac_cv_search_pam_start=no
16957 rm conftest.$ac_ext
16958 LIBS=$ac_func_search_save_LIBS
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
16961 $as_echo "$ac_cv_search_pam_start" >&6; }
16962 ac_res=$ac_cv_search_pam_start
16963 if test "$ac_res" != no; then :
16964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16966 LIBS="$LIBS -lpam"
16967 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16968 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16970 alpine_PAM="yes"
16972 else
16973 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16974 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16976 alpine_PAM="yes"
16977 if test "x$alpine_c_client_target" != "xoxp" ; then
16978 alpine_PAM="none"
16979 alpine_pam_none_reason="header files not in security/ directory"
16982 else
16984 alpine_PAM="none"
16985 alpine_pam_none_reason="header files not found"
16995 else
16997 alpine_PAM="none"
16998 alpine_pam_none_reason="library files not found"
17002 if test -n "$alpine_pam_none_reason" ; then
17003 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
17008 if test "x$alpine_GSSTYPE" != "xnone" ; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
17010 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
17011 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 ac_func_search_save_LIBS=$LIBS
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char gss_init_sec_context ();
17026 main ()
17028 return gss_init_sec_context ();
17030 return 0;
17032 _ACEOF
17033 for ac_lib in '' gss gssapi gssapi_krb5; do
17034 if test -z "$ac_lib"; then
17035 ac_res="none required"
17036 else
17037 ac_res=-l$ac_lib
17038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17040 if ac_fn_c_try_link "$LINENO"; then :
17041 ac_cv_search_gss_init_sec_context=$ac_res
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext
17045 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17046 break
17048 done
17049 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17051 else
17052 ac_cv_search_gss_init_sec_context=no
17054 rm conftest.$ac_ext
17055 LIBS=$ac_func_search_save_LIBS
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
17058 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
17059 ac_res=$ac_cv_search_gss_init_sec_context
17060 if test "$ac_res" != no; then :
17061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17063 LIBS="$LIBS -lkrb5"
17064 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
17065 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
17067 else
17069 if test ! -d /usr/kerberos/include ; then
17070 alpine_GSSTYPE="none"
17071 alpine_gss_none_reason="header files not found"
17078 else
17080 alpine_GSSTYPE="none"
17081 alpine_gss_none_reason="libraries not found"
17085 if test -n "$alpine_gss_none_reason" ; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
17087 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
17091 if test -n "$WEB_BUILD" ; then
17092 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
17093 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
17094 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
17096 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
17097 if ${ac_cv_search_Tcl_Eval+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 ac_func_search_save_LIBS=$LIBS
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char Tcl_Eval ();
17112 main ()
17114 return Tcl_Eval ();
17116 return 0;
17118 _ACEOF
17119 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
17120 if test -z "$ac_lib"; then
17121 ac_res="none required"
17122 else
17123 ac_res=-l$ac_lib
17124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17126 if ac_fn_c_try_link "$LINENO"; then :
17127 ac_cv_search_Tcl_Eval=$ac_res
17129 rm -f core conftest.err conftest.$ac_objext \
17130 conftest$ac_exeext
17131 if ${ac_cv_search_Tcl_Eval+:} false; then :
17132 break
17134 done
17135 if ${ac_cv_search_Tcl_Eval+:} false; then :
17137 else
17138 ac_cv_search_Tcl_Eval=no
17140 rm conftest.$ac_ext
17141 LIBS=$ac_func_search_save_LIBS
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
17144 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
17145 ac_res=$ac_cv_search_Tcl_Eval
17146 if test "$ac_res" != no; then :
17147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17149 else
17151 WEB_BUILD=
17156 if test -n "$alpine_TCLINC" ; then
17157 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
17158 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
17159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17161 else
17163 WEB_BUILD=
17168 if test -z "$WEB_BUILD" ; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
17170 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
17172 else
17173 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
17174 if test "x$ac_cv_header_tcl_h" = xyes; then :
17176 else
17178 for base in /usr /usr/local ; do
17179 for dir in ${TCL_VERSIONS} ; do
17180 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
17182 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
17183 if eval \${$as_ac_File+:} false; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 test "$cross_compiling" = yes &&
17187 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17188 if test -r "$base/include/$dir/tcl.h"; then
17189 eval "$as_ac_File=yes"
17190 else
17191 eval "$as_ac_File=no"
17194 eval ac_res=\$$as_ac_File
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17196 $as_echo "$ac_res" >&6; }
17197 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17199 found=yes
17203 if test "$found" = "yes" ; then
17204 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
17205 break
17207 done
17208 if test "$found" = "yes" ; then
17209 break
17211 done
17212 if test "$found" != "yes" ; then
17213 WEB_BUILD=
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
17215 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
17224 if test x$alpine_REGEX != "xyes" ; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
17226 $as_echo_n "checking for library containing regcomp... " >&6; }
17227 if ${ac_cv_search_regcomp+:} false; then :
17228 $as_echo_n "(cached) " >&6
17229 else
17230 ac_func_search_save_LIBS=$LIBS
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 char regcomp ();
17242 main ()
17244 return regcomp ();
17246 return 0;
17248 _ACEOF
17249 for ac_lib in '' posix regexp regex re; do
17250 if test -z "$ac_lib"; then
17251 ac_res="none required"
17252 else
17253 ac_res=-l$ac_lib
17254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 ac_cv_search_regcomp=$ac_res
17259 rm -f core conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext
17261 if ${ac_cv_search_regcomp+:} false; then :
17262 break
17264 done
17265 if ${ac_cv_search_regcomp+:} false; then :
17267 else
17268 ac_cv_search_regcomp=no
17270 rm conftest.$ac_ext
17271 LIBS=$ac_func_search_save_LIBS
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
17274 $as_echo "$ac_cv_search_regcomp" >&6; }
17275 ac_res=$ac_cv_search_regcomp
17276 if test "$ac_res" != no; then :
17277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17279 else
17281 if test x$alpine_REGEX = "xno" ; then
17282 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
17283 else
17284 alpine_REGEX=yes
17290 if test x$alpine_REGEX != "xyes" ; then
17291 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17292 if test "x$ac_cv_header_regex_h" = xyes; then :
17294 else
17296 if test x$alpine_REGEX = "xno" ; then
17297 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
17298 else
17299 alpine_REGEX=yes
17307 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
17309 if test x$alpine_REGEX = "xyes" ; then
17310 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
17311 LDFLAGS="$LDFLAGS -L${top_builddir}/regex -lregex"
17312 REGEX_BUILD=regex
17315 if test "x$with_pthread" != "xno" ; then
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
17317 $as_echo_n "checking for pthread support... " >&6; }
17321 ac_ext=c
17322 ac_cpp='$CPP $CPPFLAGS'
17323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17327 acx_pthread_ok=no
17329 # We used to check for pthread.h first, but this fails if pthread.h
17330 # requires special compiler flags (e.g. on True64 or Sequent).
17331 # It gets checked for in the link test anyway.
17333 # First of all, check if the user has set any of the PTHREAD_LIBS,
17334 # etcetera environment variables, and if threads linking works using
17335 # them:
17336 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17337 save_CFLAGS="$CFLAGS"
17338 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17339 save_LIBS="$LIBS"
17340 LIBS="$PTHREAD_LIBS $LIBS"
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17342 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char pthread_join ();
17354 main ()
17356 return pthread_join ();
17358 return 0;
17360 _ACEOF
17361 if ac_fn_c_try_link "$LINENO"; then :
17362 acx_pthread_ok=yes
17364 rm -f core conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17367 $as_echo "$acx_pthread_ok" >&6; }
17368 if test x"$acx_pthread_ok" = xno; then
17369 PTHREAD_LIBS=""
17370 PTHREAD_CFLAGS=""
17372 LIBS="$save_LIBS"
17373 CFLAGS="$save_CFLAGS"
17376 # We must check for the threads library under a number of different
17377 # names; the ordering is very important because some systems
17378 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17379 # libraries is broken (non-POSIX).
17381 # Create a list of thread flags to try. Items starting with a "-" are
17382 # C compiler flags, and other items are library names, except for "none"
17383 # which indicates that we try without any flags at all, and "pthread-config"
17384 # which is a program returning the flags for the Pth emulation library.
17386 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17388 # The ordering *is* (sometimes) important. Some notes on the
17389 # individual items follow:
17391 # pthreads: AIX (must check this before -lpthread)
17392 # none: in case threads are in libc; should be tried before -Kthread and
17393 # other compiler flags to prevent continual compiler warnings
17394 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17395 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17396 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17397 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17398 # -pthreads: Solaris/gcc
17399 # -mthreads: Mingw32/gcc, Lynx/gcc
17400 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17401 # doesn't hurt to check since this sometimes defines pthreads too;
17402 # also defines -D_REENTRANT)
17403 # ... -mt is also the pthreads flag for HP/aCC
17404 # pthread: Linux, etcetera
17405 # --thread-safe: KAI C++
17406 # pthread-config: use pthread-config program (for GNU Pth library)
17408 case "${host_cpu}-${host_os}" in
17409 *solaris*)
17411 # On Solaris (at least, for some versions), libc contains stubbed
17412 # (non-functional) versions of the pthreads routines, so link-based
17413 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17414 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17415 # a function called by this macro, so we could check for that, but
17416 # who knows whether they'll stub that too in a future libc.) So,
17417 # we'll just look for -pthreads and -lpthread first:
17419 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17421 esac
17423 if test x"$acx_pthread_ok" = xno; then
17424 for flag in $acx_pthread_flags; do
17426 case $flag in
17427 none)
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17429 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17434 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17435 PTHREAD_CFLAGS="$flag"
17438 pthread-config)
17439 # Extract the first word of "pthread-config", so it can be a program name with args.
17440 set dummy pthread-config; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17444 $as_echo_n "(cached) " >&6
17445 else
17446 if test -n "$acx_pthread_config"; then
17447 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17448 else
17449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450 for as_dir in $PATH
17452 IFS=$as_save_IFS
17453 test -z "$as_dir" && as_dir=.
17454 for ac_exec_ext in '' $ac_executable_extensions; do
17455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17456 ac_cv_prog_acx_pthread_config="yes"
17457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458 break 2
17460 done
17461 done
17462 IFS=$as_save_IFS
17464 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17467 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17468 if test -n "$acx_pthread_config"; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17470 $as_echo "$acx_pthread_config" >&6; }
17471 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473 $as_echo "no" >&6; }
17477 if test x"$acx_pthread_config" = xno; then continue; fi
17478 PTHREAD_CFLAGS="`pthread-config --cflags`"
17479 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17484 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17485 PTHREAD_LIBS="-l$flag"
17487 esac
17489 save_LIBS="$LIBS"
17490 save_CFLAGS="$CFLAGS"
17491 LIBS="$PTHREAD_LIBS $LIBS"
17492 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17494 # Check for various functions. We must include pthread.h,
17495 # since some functions may be macros. (On the Sequent, we
17496 # need a special flag -Kthread to make this header compile.)
17497 # We check for pthread_join because it is in -lpthread on IRIX
17498 # while pthread_create is in libc. We check for pthread_attr_init
17499 # due to DEC craziness with -lpthreads. We check for
17500 # pthread_cleanup_push because it is one of the few pthread
17501 # functions on Solaris that doesn't have a non-functional libc stub.
17502 # We try pthread_create on general principles.
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 #include <pthread.h>
17507 main ()
17509 pthread_t th; pthread_join(th, 0);
17510 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17511 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17513 return 0;
17515 _ACEOF
17516 if ac_fn_c_try_link "$LINENO"; then :
17517 acx_pthread_ok=yes
17519 rm -f core conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17522 LIBS="$save_LIBS"
17523 CFLAGS="$save_CFLAGS"
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17526 $as_echo "$acx_pthread_ok" >&6; }
17527 if test "x$acx_pthread_ok" = xyes; then
17528 break;
17531 PTHREAD_LIBS=""
17532 PTHREAD_CFLAGS=""
17533 done
17536 # Various other checks:
17537 if test "x$acx_pthread_ok" = xyes; then
17538 save_LIBS="$LIBS"
17539 LIBS="$PTHREAD_LIBS $LIBS"
17540 save_CFLAGS="$CFLAGS"
17541 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17543 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17545 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17546 attr_name=unknown
17547 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17550 #include <pthread.h>
17552 main ()
17554 int attr=$attr; return attr;
17556 return 0;
17558 _ACEOF
17559 if ac_fn_c_try_link "$LINENO"; then :
17560 attr_name=$attr; break
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17564 done
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17566 $as_echo "$attr_name" >&6; }
17567 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define PTHREAD_CREATE_JOINABLE $attr_name
17571 _ACEOF
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17576 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17577 flag=no
17578 case "${host_cpu}-${host_os}" in
17579 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17580 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17581 esac
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17583 $as_echo "${flag}" >&6; }
17584 if test "x$flag" != xno; then
17585 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17588 LIBS="$save_LIBS"
17589 CFLAGS="$save_CFLAGS"
17591 # More AIX lossage: must compile with xlc_r or cc_r
17592 if test x"$GCC" != xyes; then
17593 for ac_prog in xlc_r cc_r
17595 # Extract the first word of "$ac_prog", so it can be a program name with args.
17596 set dummy $ac_prog; ac_word=$2
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17598 $as_echo_n "checking for $ac_word... " >&6; }
17599 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17600 $as_echo_n "(cached) " >&6
17601 else
17602 if test -n "$PTHREAD_CC"; then
17603 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17604 else
17605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17606 for as_dir in $PATH
17608 IFS=$as_save_IFS
17609 test -z "$as_dir" && as_dir=.
17610 for ac_exec_ext in '' $ac_executable_extensions; do
17611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17612 ac_cv_prog_PTHREAD_CC="$ac_prog"
17613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17614 break 2
17616 done
17617 done
17618 IFS=$as_save_IFS
17622 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17623 if test -n "$PTHREAD_CC"; then
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17625 $as_echo "$PTHREAD_CC" >&6; }
17626 else
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628 $as_echo "no" >&6; }
17632 test -n "$PTHREAD_CC" && break
17633 done
17634 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17636 else
17637 PTHREAD_CC=$CC
17639 else
17640 PTHREAD_CC="$CC"
17647 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17648 if test x"$acx_pthread_ok" = xyes; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651 $as_echo "yes" >&6; }
17652 case "$target" in
17653 *openbsd*)
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
17655 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
17656 AM_CFLAGS="$AM_CFLAGS -pthread"
17658 esac
17659 LIBS="$PTHREAD_LIBS $LIBS"
17660 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
17661 CC="$PTHREAD_CC"
17663 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17667 else
17668 acx_pthread_ok=no
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671 $as_echo "no" >&6; }
17674 ac_ext=c
17675 ac_cpp='$CPP $CPPFLAGS'
17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
17683 $as_echo_n "checking for library containing nanosleep... " >&6; }
17684 if ${ac_cv_search_nanosleep+:} false; then :
17685 $as_echo_n "(cached) " >&6
17686 else
17687 ac_func_search_save_LIBS=$LIBS
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char nanosleep ();
17699 main ()
17701 return nanosleep ();
17703 return 0;
17705 _ACEOF
17706 for ac_lib in '' rt posix4; do
17707 if test -z "$ac_lib"; then
17708 ac_res="none required"
17709 else
17710 ac_res=-l$ac_lib
17711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 ac_cv_search_nanosleep=$ac_res
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext
17718 if ${ac_cv_search_nanosleep+:} false; then :
17719 break
17721 done
17722 if ${ac_cv_search_nanosleep+:} false; then :
17724 else
17725 ac_cv_search_nanosleep=no
17727 rm conftest.$ac_ext
17728 LIBS=$ac_func_search_save_LIBS
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
17731 $as_echo "$ac_cv_search_nanosleep" >&6; }
17732 ac_res=$ac_cv_search_nanosleep
17733 if test "$ac_res" != no; then :
17734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17737 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17748 $as_echo_n "checking for ANSI C header files... " >&6; }
17749 if ${ac_cv_header_stdc+:} false; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754 #include <stdlib.h>
17755 #include <stdarg.h>
17756 #include <string.h>
17757 #include <float.h>
17760 main ()
17764 return 0;
17766 _ACEOF
17767 if ac_fn_c_try_compile "$LINENO"; then :
17768 ac_cv_header_stdc=yes
17769 else
17770 ac_cv_header_stdc=no
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 if test $ac_cv_header_stdc = yes; then
17775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17778 #include <string.h>
17780 _ACEOF
17781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17782 $EGREP "memchr" >/dev/null 2>&1; then :
17784 else
17785 ac_cv_header_stdc=no
17787 rm -f conftest*
17791 if test $ac_cv_header_stdc = yes; then
17792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 #include <stdlib.h>
17797 _ACEOF
17798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17799 $EGREP "free" >/dev/null 2>&1; then :
17801 else
17802 ac_cv_header_stdc=no
17804 rm -f conftest*
17808 if test $ac_cv_header_stdc = yes; then
17809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17810 if test "$cross_compiling" = yes; then :
17812 else
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 #include <ctype.h>
17816 #include <stdlib.h>
17817 #if ((' ' & 0x0FF) == 0x020)
17818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17820 #else
17821 # define ISLOWER(c) \
17822 (('a' <= (c) && (c) <= 'i') \
17823 || ('j' <= (c) && (c) <= 'r') \
17824 || ('s' <= (c) && (c) <= 'z'))
17825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17826 #endif
17828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17830 main ()
17832 int i;
17833 for (i = 0; i < 256; i++)
17834 if (XOR (islower (i), ISLOWER (i))
17835 || toupper (i) != TOUPPER (i))
17836 return 2;
17837 return 0;
17839 _ACEOF
17840 if ac_fn_c_try_run "$LINENO"; then :
17842 else
17843 ac_cv_header_stdc=no
17845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17846 conftest.$ac_objext conftest.beam conftest.$ac_ext
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17852 $as_echo "$ac_cv_header_stdc" >&6; }
17853 if test $ac_cv_header_stdc = yes; then
17855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17859 ac_header_dirent=no
17860 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17861 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17863 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17864 if eval \${$as_ac_Header+:} false; then :
17865 $as_echo_n "(cached) " >&6
17866 else
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869 #include <sys/types.h>
17870 #include <$ac_hdr>
17873 main ()
17875 if ((DIR *) 0)
17876 return 0;
17878 return 0;
17880 _ACEOF
17881 if ac_fn_c_try_compile "$LINENO"; then :
17882 eval "$as_ac_Header=yes"
17883 else
17884 eval "$as_ac_Header=no"
17886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888 eval ac_res=\$$as_ac_Header
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17890 $as_echo "$ac_res" >&6; }
17891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17892 cat >>confdefs.h <<_ACEOF
17893 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17894 _ACEOF
17896 ac_header_dirent=$ac_hdr; break
17899 done
17900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17901 if test $ac_header_dirent = dirent.h; then
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17903 $as_echo_n "checking for library containing opendir... " >&6; }
17904 if ${ac_cv_search_opendir+:} false; then :
17905 $as_echo_n "(cached) " >&6
17906 else
17907 ac_func_search_save_LIBS=$LIBS
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17911 /* Override any GCC internal prototype to avoid an error.
17912 Use char because int might match the return type of a GCC
17913 builtin and then its argument prototype would still apply. */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 char opendir ();
17919 main ()
17921 return opendir ();
17923 return 0;
17925 _ACEOF
17926 for ac_lib in '' dir; do
17927 if test -z "$ac_lib"; then
17928 ac_res="none required"
17929 else
17930 ac_res=-l$ac_lib
17931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17933 if ac_fn_c_try_link "$LINENO"; then :
17934 ac_cv_search_opendir=$ac_res
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext
17938 if ${ac_cv_search_opendir+:} false; then :
17939 break
17941 done
17942 if ${ac_cv_search_opendir+:} false; then :
17944 else
17945 ac_cv_search_opendir=no
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17951 $as_echo "$ac_cv_search_opendir" >&6; }
17952 ac_res=$ac_cv_search_opendir
17953 if test "$ac_res" != no; then :
17954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17958 else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17960 $as_echo_n "checking for library containing opendir... " >&6; }
17961 if ${ac_cv_search_opendir+:} false; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 ac_func_search_save_LIBS=$LIBS
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char opendir ();
17976 main ()
17978 return opendir ();
17980 return 0;
17982 _ACEOF
17983 for ac_lib in '' x; do
17984 if test -z "$ac_lib"; then
17985 ac_res="none required"
17986 else
17987 ac_res=-l$ac_lib
17988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17990 if ac_fn_c_try_link "$LINENO"; then :
17991 ac_cv_search_opendir=$ac_res
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext
17995 if ${ac_cv_search_opendir+:} false; then :
17996 break
17998 done
17999 if ${ac_cv_search_opendir+:} false; then :
18001 else
18002 ac_cv_search_opendir=no
18004 rm conftest.$ac_ext
18005 LIBS=$ac_func_search_save_LIBS
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18008 $as_echo "$ac_cv_search_opendir" >&6; }
18009 ac_res=$ac_cv_search_opendir
18010 if test "$ac_res" != no; then :
18011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18018 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18019 if ${ac_cv_header_stat_broken+:} false; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include <sys/types.h>
18025 #include <sys/stat.h>
18027 #if defined S_ISBLK && defined S_IFDIR
18028 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18029 #endif
18031 #if defined S_ISBLK && defined S_IFCHR
18032 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18033 #endif
18035 #if defined S_ISLNK && defined S_IFREG
18036 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18037 #endif
18039 #if defined S_ISSOCK && defined S_IFREG
18040 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18041 #endif
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 ac_cv_header_stat_broken=no
18046 else
18047 ac_cv_header_stat_broken=yes
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18052 $as_echo "$ac_cv_header_stat_broken" >&6; }
18053 if test $ac_cv_header_stat_broken = yes; then
18055 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18060 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18061 if ${ac_cv_header_sys_wait_h+:} false; then :
18062 $as_echo_n "(cached) " >&6
18063 else
18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18066 #include <sys/types.h>
18067 #include <sys/wait.h>
18068 #ifndef WEXITSTATUS
18069 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18070 #endif
18071 #ifndef WIFEXITED
18072 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18073 #endif
18076 main ()
18078 int s;
18079 wait (&s);
18080 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18082 return 0;
18084 _ACEOF
18085 if ac_fn_c_try_compile "$LINENO"; then :
18086 ac_cv_header_sys_wait_h=yes
18087 else
18088 ac_cv_header_sys_wait_h=no
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18093 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18094 if test $ac_cv_header_sys_wait_h = yes; then
18096 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be Included" >&5
18101 $as_echo_n "checking whether time.h and sys/time.h may both be Included... " >&6; }
18102 if ${ac_cv_header_time+:} false; then :
18103 $as_echo_n "(cached) " >&6
18104 else
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18107 #include <sys/types.h>
18108 #include <sys/time.h>
18109 #include <time.h>
18112 main ()
18114 if ((struct tm *) 0)
18115 return 0;
18117 return 0;
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121 ac_cv_header_time=yes
18122 else
18123 ac_cv_header_time=no
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18128 $as_echo "$ac_cv_header_time" >&6; }
18129 if test $ac_cv_header_time = yes; then
18131 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
18136 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
18137 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 #include <sys/types.h>
18143 #include <termios.h>
18144 #ifdef TIOCGWINSZ
18146 #endif
18148 _ACEOF
18149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18150 $EGREP "yes" >/dev/null 2>&1; then :
18151 ac_cv_sys_tiocgwinsz_in_termios_h=yes
18152 else
18153 ac_cv_sys_tiocgwinsz_in_termios_h=no
18155 rm -f conftest*
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
18159 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
18161 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
18163 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
18164 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18169 #include <sys/types.h>
18170 #include <sys/ioctl.h>
18171 #ifdef TIOCGWINSZ
18173 #endif
18175 _ACEOF
18176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18177 $EGREP "yes" >/dev/null 2>&1; then :
18178 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
18179 else
18180 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
18182 rm -f conftest*
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
18186 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
18188 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
18190 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
18196 for ac_header in unistd.h
18197 do :
18198 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18199 if test "x$ac_cv_header_unistd_h" = xyes; then :
18200 cat >>confdefs.h <<_ACEOF
18201 #define HAVE_UNISTD_H 1
18202 _ACEOF
18206 done
18209 for ac_header in errno.h \
18210 ctype.h \
18211 fcntl.h \
18212 signal.h \
18213 setjmp.h \
18214 memory.h \
18215 sys/param.h \
18216 sys/socket.h \
18217 sys/uio.h \
18218 sys/un.h \
18219 limits.h \
18220 wchar.h \
18221 sys/poll.h \
18222 stropts.h \
18223 netdb.h \
18224 syslog.h \
18225 sys/syslog.h \
18226 locale.h \
18227 langinfo.h \
18228 utime.h \
18229 sys/utime.h \
18230 pthread.h \
18231 pwd.h \
18232 assert.h
18233 do :
18234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18236 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18237 cat >>confdefs.h <<_ACEOF
18238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18239 _ACEOF
18243 done
18246 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18247 if test "x$ac_cv_header_termios_h" = xyes; then :
18249 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
18251 else
18253 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
18254 if test "x$ac_cv_header_termio_h" = xyes; then :
18256 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
18258 else
18260 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
18261 if test "x$ac_cv_header_sgtty_h" = xyes; then :
18263 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
18265 else
18267 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18284 $as_echo_n "checking return type of signal handlers... " >&6; }
18285 if ${ac_cv_type_signal+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 #include <sys/types.h>
18291 #include <signal.h>
18294 main ()
18296 return *(signal (0, 0)) (0) == 1;
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_compile "$LINENO"; then :
18302 ac_cv_type_signal=int
18303 else
18304 ac_cv_type_signal=void
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18309 $as_echo "$ac_cv_type_signal" >&6; }
18311 cat >>confdefs.h <<_ACEOF
18312 #define RETSIGTYPE $ac_cv_type_signal
18313 _ACEOF
18316 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18317 if test "x$ac_cv_type_size_t" = xyes; then :
18319 else
18321 cat >>confdefs.h <<_ACEOF
18322 #define size_t unsigned int
18323 _ACEOF
18327 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18328 if test "x$ac_cv_type_mode_t" = xyes; then :
18330 else
18332 cat >>confdefs.h <<_ACEOF
18333 #define mode_t int
18334 _ACEOF
18338 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18339 if test "x$ac_cv_type_pid_t" = xyes; then :
18341 else
18343 cat >>confdefs.h <<_ACEOF
18344 #define pid_t int
18345 _ACEOF
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18350 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18351 if ${ac_cv_type_uid_t+:} false; then :
18352 $as_echo_n "(cached) " >&6
18353 else
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18356 #include <sys/types.h>
18358 _ACEOF
18359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18360 $EGREP "uid_t" >/dev/null 2>&1; then :
18361 ac_cv_type_uid_t=yes
18362 else
18363 ac_cv_type_uid_t=no
18365 rm -f conftest*
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18369 $as_echo "$ac_cv_type_uid_t" >&6; }
18370 if test $ac_cv_type_uid_t = no; then
18372 $as_echo "#define uid_t int" >>confdefs.h
18375 $as_echo "#define gid_t int" >>confdefs.h
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18380 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18381 if ${ac_cv_struct_tm+:} false; then :
18382 $as_echo_n "(cached) " >&6
18383 else
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <sys/types.h>
18387 #include <time.h>
18390 main ()
18392 struct tm tm;
18393 int *p = &tm.tm_sec;
18394 return !p;
18396 return 0;
18398 _ACEOF
18399 if ac_fn_c_try_compile "$LINENO"; then :
18400 ac_cv_struct_tm=time.h
18401 else
18402 ac_cv_struct_tm=sys/time.h
18404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18407 $as_echo "$ac_cv_struct_tm" >&6; }
18408 if test $ac_cv_struct_tm = sys/time.h; then
18410 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18415 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
18416 if test "x$ac_cv_type_union_wait" = xyes; then :
18418 cat >>confdefs.h <<_ACEOF
18419 #define HAVE_UNION_WAIT 1
18420 _ACEOF
18426 for ac_header in stdint.h
18427 do :
18428 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18429 if test "x$ac_cv_header_stdint_h" = xyes; then :
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_STDINT_H 1
18432 _ACEOF
18433 uint16=uint16_t
18434 else
18436 for ac_header in inttypes.h
18437 do :
18438 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18439 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18440 cat >>confdefs.h <<_ACEOF
18441 #define HAVE_INTTYPES_H 1
18442 _ACEOF
18443 uint16=uint16_t
18444 else
18446 for ac_header in sys/types.h
18447 do :
18448 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18449 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_SYS_TYPES_H 1
18452 _ACEOF
18453 uint16=u_int16_t
18454 else
18456 # The cast to long int works around a bug in the HP C Compiler
18457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18459 # This bug is HP SR number 8606223364.
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18461 $as_echo_n "checking size of unsigned short... " >&6; }
18462 if ${ac_cv_sizeof_unsigned_short+:} false; then :
18463 $as_echo_n "(cached) " >&6
18464 else
18465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
18467 else
18468 if test "$ac_cv_type_unsigned_short" = yes; then
18469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18471 as_fn_error 77 "cannot compute sizeof (unsigned short)
18472 See \`config.log' for more details" "$LINENO" 5; }
18473 else
18474 ac_cv_sizeof_unsigned_short=0
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18480 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
18484 cat >>confdefs.h <<_ACEOF
18485 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
18486 _ACEOF
18489 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
18490 uint16="unsigned short"
18491 else
18492 # The cast to long int works around a bug in the HP C Compiler
18493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18495 # This bug is HP SR number 8606223364.
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18497 $as_echo_n "checking size of unsigned int... " >&6; }
18498 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18499 $as_echo_n "(cached) " >&6
18500 else
18501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18503 else
18504 if test "$ac_cv_type_unsigned_int" = yes; then
18505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18507 as_fn_error 77 "cannot compute sizeof (unsigned int)
18508 See \`config.log' for more details" "$LINENO" 5; }
18509 else
18510 ac_cv_sizeof_unsigned_int=0
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18516 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18520 cat >>confdefs.h <<_ACEOF
18521 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18522 _ACEOF
18525 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
18526 uint16="unsigned int"
18527 else
18528 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
18534 done
18539 done
18544 done
18547 cat >>confdefs.h <<_ACEOF
18548 #define UINT16 $uint16
18549 _ACEOF
18552 for ac_header in stdint.h
18553 do :
18554 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18555 if test "x$ac_cv_header_stdint_h" = xyes; then :
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STDINT_H 1
18558 _ACEOF
18559 uint32=uint32_t
18560 else
18562 for ac_header in inttypes.h
18563 do :
18564 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18565 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18566 cat >>confdefs.h <<_ACEOF
18567 #define HAVE_INTTYPES_H 1
18568 _ACEOF
18569 uint32=uint32_t
18570 else
18572 for ac_header in sys/types.h
18573 do :
18574 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18575 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18576 cat >>confdefs.h <<_ACEOF
18577 #define HAVE_SYS_TYPES_H 1
18578 _ACEOF
18579 uint32=u_int32_t
18580 else
18582 # The cast to long int works around a bug in the HP C Compiler
18583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18585 # This bug is HP SR number 8606223364.
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18587 $as_echo_n "checking size of unsigned int... " >&6; }
18588 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18593 else
18594 if test "$ac_cv_type_unsigned_int" = yes; then
18595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18597 as_fn_error 77 "cannot compute sizeof (unsigned int)
18598 See \`config.log' for more details" "$LINENO" 5; }
18599 else
18600 ac_cv_sizeof_unsigned_int=0
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18606 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18610 cat >>confdefs.h <<_ACEOF
18611 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18612 _ACEOF
18615 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
18616 uint32="unsigned int"
18617 else
18618 # The cast to long int works around a bug in the HP C Compiler
18619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18621 # This bug is HP SR number 8606223364.
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18623 $as_echo_n "checking size of unsigned long... " >&6; }
18624 if ${ac_cv_sizeof_unsigned_long+:} false; then :
18625 $as_echo_n "(cached) " >&6
18626 else
18627 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
18629 else
18630 if test "$ac_cv_type_unsigned_long" = yes; then
18631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18633 as_fn_error 77 "cannot compute sizeof (unsigned long)
18634 See \`config.log' for more details" "$LINENO" 5; }
18635 else
18636 ac_cv_sizeof_unsigned_long=0
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18642 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
18646 cat >>confdefs.h <<_ACEOF
18647 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18648 _ACEOF
18651 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
18652 uint32="unsigned long"
18653 else
18654 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
18660 done
18665 done
18670 done
18673 cat >>confdefs.h <<_ACEOF
18674 #define UINT32 $uint32
18675 _ACEOF
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
18679 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
18680 if ${ac_cv_func_qsort_argtype+:} false; then :
18681 $as_echo_n "(cached) " >&6
18682 else
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18686 #if HAVE_STDLIB_H
18687 #include "stdlib.h"
18688 #endif
18690 extern void *base;
18691 extern sortf(const void *, const void *);
18692 int sortf(a, b)
18693 const void *a;
18694 const void *b; { return 0; }
18697 main ()
18700 qsort(base, 2, sizeof(char *), sortf);
18703 return 0;
18705 _ACEOF
18706 if ac_fn_c_try_compile "$LINENO"; then :
18707 ac_cv_func_qsort_argtype=void
18708 else
18709 ac_cv_func_qsort_argtype=char
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
18715 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
18717 cat >>confdefs.h <<_ACEOF
18718 #define qsort_t $ac_cv_func_qsort_argtype
18719 _ACEOF
18723 for ac_header in sys/select.h sys/socket.h
18724 do :
18725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18728 cat >>confdefs.h <<_ACEOF
18729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18730 _ACEOF
18734 done
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18737 $as_echo_n "checking types of arguments for select... " >&6; }
18738 if ${ac_cv_func_select_args+:} false; then :
18739 $as_echo_n "(cached) " >&6
18740 else
18741 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18742 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18743 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18746 $ac_includes_default
18747 #ifdef HAVE_SYS_SELECT_H
18748 # include <sys/select.h>
18749 #endif
18750 #ifdef HAVE_SYS_SOCKET_H
18751 # include <sys/socket.h>
18752 #endif
18755 main ()
18757 extern int select ($ac_arg1,
18758 $ac_arg234, $ac_arg234, $ac_arg234,
18759 $ac_arg5);
18761 return 0;
18763 _ACEOF
18764 if ac_fn_c_try_compile "$LINENO"; then :
18765 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 done
18769 done
18770 done
18771 # Provide a safe default value.
18772 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
18776 $as_echo "$ac_cv_func_select_args" >&6; }
18777 ac_save_IFS=$IFS; IFS=','
18778 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
18779 IFS=$ac_save_IFS
18780 shift
18782 cat >>confdefs.h <<_ACEOF
18783 #define SELECT_TYPE_ARG1 $1
18784 _ACEOF
18787 cat >>confdefs.h <<_ACEOF
18788 #define SELECT_TYPE_ARG234 ($2)
18789 _ACEOF
18792 cat >>confdefs.h <<_ACEOF
18793 #define SELECT_TYPE_ARG5 ($3)
18794 _ACEOF
18796 rm -f conftest*
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
18800 $as_echo_n "checking for working strcoll... " >&6; }
18801 if ${ac_cv_func_strcoll_works+:} false; then :
18802 $as_echo_n "(cached) " >&6
18803 else
18804 if test "$cross_compiling" = yes; then :
18805 ac_cv_func_strcoll_works=no
18806 else
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809 $ac_includes_default
18811 main ()
18813 return (strcoll ("abc", "def") >= 0 ||
18814 strcoll ("ABC", "DEF") >= 0 ||
18815 strcoll ("123", "456") >= 0)
18817 return 0;
18819 _ACEOF
18820 if ac_fn_c_try_run "$LINENO"; then :
18821 ac_cv_func_strcoll_works=yes
18822 else
18823 ac_cv_func_strcoll_works=no
18825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18826 conftest.$ac_objext conftest.beam conftest.$ac_ext
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
18831 $as_echo "$ac_cv_func_strcoll_works" >&6; }
18832 if test $ac_cv_func_strcoll_works = yes; then
18834 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
18840 for ac_header in vfork.h
18841 do :
18842 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18843 if test "x$ac_cv_header_vfork_h" = xyes; then :
18844 cat >>confdefs.h <<_ACEOF
18845 #define HAVE_VFORK_H 1
18846 _ACEOF
18850 done
18852 for ac_func in fork vfork
18853 do :
18854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18856 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18857 cat >>confdefs.h <<_ACEOF
18858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18859 _ACEOF
18862 done
18864 if test "x$ac_cv_func_fork" = xyes; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18866 $as_echo_n "checking for working fork... " >&6; }
18867 if ${ac_cv_func_fork_works+:} false; then :
18868 $as_echo_n "(cached) " >&6
18869 else
18870 if test "$cross_compiling" = yes; then :
18871 ac_cv_func_fork_works=cross
18872 else
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18875 $ac_includes_default
18877 main ()
18880 /* By Ruediger Kuhlmann. */
18881 return fork () < 0;
18884 return 0;
18886 _ACEOF
18887 if ac_fn_c_try_run "$LINENO"; then :
18888 ac_cv_func_fork_works=yes
18889 else
18890 ac_cv_func_fork_works=no
18892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18893 conftest.$ac_objext conftest.beam conftest.$ac_ext
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18898 $as_echo "$ac_cv_func_fork_works" >&6; }
18900 else
18901 ac_cv_func_fork_works=$ac_cv_func_fork
18903 if test "x$ac_cv_func_fork_works" = xcross; then
18904 case $host in
18905 *-*-amigaos* | *-*-msdosdjgpp*)
18906 # Override, as these systems have only a dummy fork() stub
18907 ac_cv_func_fork_works=no
18910 ac_cv_func_fork_works=yes
18912 esac
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18914 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18916 ac_cv_func_vfork_works=$ac_cv_func_vfork
18917 if test "x$ac_cv_func_vfork" = xyes; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18919 $as_echo_n "checking for working vfork... " >&6; }
18920 if ${ac_cv_func_vfork_works+:} false; then :
18921 $as_echo_n "(cached) " >&6
18922 else
18923 if test "$cross_compiling" = yes; then :
18924 ac_cv_func_vfork_works=cross
18925 else
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18928 /* Thanks to Paul Eggert for this test. */
18929 $ac_includes_default
18930 #include <sys/wait.h>
18931 #ifdef HAVE_VFORK_H
18932 # include <vfork.h>
18933 #endif
18934 /* On some sparc systems, changes by the child to local and incoming
18935 argument registers are propagated back to the parent. The compiler
18936 is told about this with #include <vfork.h>, but some compilers
18937 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18938 static variable whose address is put into a register that is
18939 clobbered by the vfork. */
18940 static void
18941 #ifdef __cplusplus
18942 sparc_address_test (int arg)
18943 # else
18944 sparc_address_test (arg) int arg;
18945 #endif
18947 static pid_t child;
18948 if (!child) {
18949 child = vfork ();
18950 if (child < 0) {
18951 perror ("vfork");
18952 _exit(2);
18954 if (!child) {
18955 arg = getpid();
18956 write(-1, "", 0);
18957 _exit (arg);
18963 main ()
18965 pid_t parent = getpid ();
18966 pid_t child;
18968 sparc_address_test (0);
18970 child = vfork ();
18972 if (child == 0) {
18973 /* Here is another test for sparc vfork register problems. This
18974 test uses lots of local variables, at least as many local
18975 variables as main has allocated so far including compiler
18976 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18977 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18978 reuse the register of parent for one of the local variables,
18979 since it will think that parent can't possibly be used any more
18980 in this routine. Assigning to the local variable will thus
18981 munge parent in the parent process. */
18982 pid_t
18983 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18984 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18985 /* Convince the compiler that p..p7 are live; otherwise, it might
18986 use the same hardware register for all 8 local variables. */
18987 if (p != p1 || p != p2 || p != p3 || p != p4
18988 || p != p5 || p != p6 || p != p7)
18989 _exit(1);
18991 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18992 from child file descriptors. If the child closes a descriptor
18993 before it execs or exits, this munges the parent's descriptor
18994 as well. Test for this by closing stdout in the child. */
18995 _exit(close(fileno(stdout)) != 0);
18996 } else {
18997 int status;
18998 struct stat st;
19000 while (wait(&status) != child)
19002 return (
19003 /* Was there some problem with vforking? */
19004 child < 0
19006 /* Did the child fail? (This shouldn't happen.) */
19007 || status
19009 /* Did the vfork/compiler bug occur? */
19010 || parent != getpid()
19012 /* Did the file descriptor bug occur? */
19013 || fstat(fileno(stdout), &st) != 0
19017 _ACEOF
19018 if ac_fn_c_try_run "$LINENO"; then :
19019 ac_cv_func_vfork_works=yes
19020 else
19021 ac_cv_func_vfork_works=no
19023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19024 conftest.$ac_objext conftest.beam conftest.$ac_ext
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19029 $as_echo "$ac_cv_func_vfork_works" >&6; }
19032 if test "x$ac_cv_func_fork_works" = xcross; then
19033 ac_cv_func_vfork_works=$ac_cv_func_vfork
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19035 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19038 if test "x$ac_cv_func_vfork_works" = xyes; then
19040 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19042 else
19044 $as_echo "#define vfork fork" >>confdefs.h
19047 if test "x$ac_cv_func_fork_works" = xyes; then
19049 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19053 for ac_func in strchr \
19054 memcpy \
19055 strtol \
19056 strtoul \
19057 select \
19058 poll \
19059 qsort \
19060 getuid \
19061 getpwuid \
19062 getpwnam \
19063 gettimeofday \
19064 tmpfile \
19065 uname \
19066 rename \
19067 read \
19068 signal \
19069 setjmp \
19070 chown \
19071 wait4 \
19072 waitpid \
19073 wait \
19074 srandom \
19075 popen \
19076 pclose \
19077 fsync \
19078 truncate \
19079 listen \
19080 wcwidth \
19081 mbstowcs \
19082 wcrtomb \
19083 putenv \
19084 setenv
19085 do :
19086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19089 cat >>confdefs.h <<_ACEOF
19090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19091 _ACEOF
19094 done
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19098 $as_echo_n "checking for library containing gethostname... " >&6; }
19099 if ${ac_cv_search_gethostname+:} false; then :
19100 $as_echo_n "(cached) " >&6
19101 else
19102 ac_func_search_save_LIBS=$LIBS
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char gethostname ();
19114 main ()
19116 return gethostname ();
19118 return 0;
19120 _ACEOF
19121 for ac_lib in '' nsl; do
19122 if test -z "$ac_lib"; then
19123 ac_res="none required"
19124 else
19125 ac_res=-l$ac_lib
19126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19128 if ac_fn_c_try_link "$LINENO"; then :
19129 ac_cv_search_gethostname=$ac_res
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext
19133 if ${ac_cv_search_gethostname+:} false; then :
19134 break
19136 done
19137 if ${ac_cv_search_gethostname+:} false; then :
19139 else
19140 ac_cv_search_gethostname=no
19142 rm conftest.$ac_ext
19143 LIBS=$ac_func_search_save_LIBS
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19146 $as_echo "$ac_cv_search_gethostname" >&6; }
19147 ac_res=$ac_cv_search_gethostname
19148 if test "$ac_res" != no; then :
19149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19155 $as_echo_n "checking for library containing socket... " >&6; }
19156 if ${ac_cv_search_socket+:} false; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159 ac_func_search_save_LIBS=$LIBS
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 char socket ();
19171 main ()
19173 return socket ();
19175 return 0;
19177 _ACEOF
19178 for ac_lib in '' socket; do
19179 if test -z "$ac_lib"; then
19180 ac_res="none required"
19181 else
19182 ac_res=-l$ac_lib
19183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19185 if ac_fn_c_try_link "$LINENO"; then :
19186 ac_cv_search_socket=$ac_res
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext
19190 if ${ac_cv_search_socket+:} false; then :
19191 break
19193 done
19194 if ${ac_cv_search_socket+:} false; then :
19196 else
19197 ac_cv_search_socket=no
19199 rm conftest.$ac_ext
19200 LIBS=$ac_func_search_save_LIBS
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19203 $as_echo "$ac_cv_search_socket" >&6; }
19204 ac_res=$ac_cv_search_socket
19205 if test "$ac_res" != no; then :
19206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19208 else
19210 WEB_BUILD=
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
19216 $as_echo_n "checking for library containing bind... " >&6; }
19217 if ${ac_cv_search_bind+:} false; then :
19218 $as_echo_n "(cached) " >&6
19219 else
19220 ac_func_search_save_LIBS=$LIBS
19221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h. */
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 char bind ();
19232 main ()
19234 return bind ();
19236 return 0;
19238 _ACEOF
19239 for ac_lib in '' bind; do
19240 if test -z "$ac_lib"; then
19241 ac_res="none required"
19242 else
19243 ac_res=-l$ac_lib
19244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19246 if ac_fn_c_try_link "$LINENO"; then :
19247 ac_cv_search_bind=$ac_res
19249 rm -f core conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext
19251 if ${ac_cv_search_bind+:} false; then :
19252 break
19254 done
19255 if ${ac_cv_search_bind+:} false; then :
19257 else
19258 ac_cv_search_bind=no
19260 rm conftest.$ac_ext
19261 LIBS=$ac_func_search_save_LIBS
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
19264 $as_echo "$ac_cv_search_bind" >&6; }
19265 ac_res=$ac_cv_search_bind
19266 if test "$ac_res" != no; then :
19267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19269 else
19271 WEB_BUILD=
19276 for ac_func in sigaction sigemptyset sigaddset sigprocmask
19277 do :
19278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19281 cat >>confdefs.h <<_ACEOF
19282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19283 _ACEOF
19286 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
19289 else
19291 for ac_func in sigset sigrelse
19292 do :
19293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19296 cat >>confdefs.h <<_ACEOF
19297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19298 _ACEOF
19301 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
19305 done
19309 done
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
19313 $as_echo_n "checking for library containing syslog... " >&6; }
19314 if ${ac_cv_search_syslog+:} false; then :
19315 $as_echo_n "(cached) " >&6
19316 else
19317 ac_func_search_save_LIBS=$LIBS
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char syslog ();
19329 main ()
19331 return syslog ();
19333 return 0;
19335 _ACEOF
19336 for ac_lib in '' bsd socket inet; do
19337 if test -z "$ac_lib"; then
19338 ac_res="none required"
19339 else
19340 ac_res=-l$ac_lib
19341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19343 if ac_fn_c_try_link "$LINENO"; then :
19344 ac_cv_search_syslog=$ac_res
19346 rm -f core conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext
19348 if ${ac_cv_search_syslog+:} false; then :
19349 break
19351 done
19352 if ${ac_cv_search_syslog+:} false; then :
19354 else
19355 ac_cv_search_syslog=no
19357 rm conftest.$ac_ext
19358 LIBS=$ac_func_search_save_LIBS
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
19361 $as_echo "$ac_cv_search_syslog" >&6; }
19362 ac_res=$ac_cv_search_syslog
19363 if test "$ac_res" != no; then :
19364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19367 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
19374 if test -n "$alpine_with_local_maildir" ; then
19375 alpine_local_maildir=$alpine_with_local_maildir
19376 elif test -d /var/spool/mail ; then
19377 alpine_local_maildir="/var/spool/mail"
19378 elif test -d /var/mail ; then
19379 alpine_local_maildir="/var/mail"
19380 else
19381 alpine_local_maildir="/usr/spool/mail"
19384 if test -n "$alpine_with_c_client_target" ; then
19385 alpine_c_client_target=$alpine_with_c_client_target
19389 cat >>confdefs.h <<_ACEOF
19390 #define SYSTYPE "$systype"
19391 _ACEOF
19394 cat >>confdefs.h <<_ACEOF
19395 #define C_FILESEP '$alpine_path_delim'
19396 _ACEOF
19399 cat >>confdefs.h <<_ACEOF
19400 #define S_FILESEP "$alpine_path_delim"
19401 _ACEOF
19404 cat >>confdefs.h <<_ACEOF
19405 #define MAILDIR "$alpine_local_maildir"
19406 _ACEOF
19409 cat >>confdefs.h <<_ACEOF
19410 #define MODE_READONLY $alpine_mode_readonly
19411 _ACEOF
19414 C_CLIENT_TARGET=$alpine_c_client_target
19416 C_CLIENT_WITH_IPV6=$c_client_ip6
19418 if test "x$alpine_SSLTYPE" = "xnone" ; then
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
19420 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
19421 c_client_specials="${c_client_specials}SSLTYPE=none "
19422 else
19424 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
19425 certdir="$alpine_SSLCERTS"
19426 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
19427 certdir="${alpine_SSLDIR}/certs"
19428 else
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
19430 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
19433 if test "x$with_smime" != "xno" ; then
19434 if test -n "$certdir" ; then
19436 $as_echo "#define SMIME /**/" >>confdefs.h
19439 cat >>confdefs.h <<_ACEOF
19440 #define SMIME_SSLCERTS "$certdir"
19441 _ACEOF
19446 if test ! -f ${certdir}/factory.pem ; then
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
19448 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19450 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19452 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19454 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19457 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
19459 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19461 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19463 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19465 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19468 if test -n "$alpine_SSLINCLUDE" ; then
19469 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
19472 if test -n "$alpine_SSLLIB" ; then
19473 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
19476 if test -n "$alpine_SSLDIR" ; then
19477 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
19480 if test -n "$alpine_SSLCERTS" ; then
19481 c_client_specials="${c_client_specials}SSLCERTS=$alpine_SSLCERTS "
19484 if test -n "$alpine_SSLKEYS" ; then
19485 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
19489 if test "x$alpine_GSSTYPE" != "xnone" ; then
19490 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
19492 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
19495 if test -n "$CPPFLAGS" ; then
19496 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
19498 if test -n "$CFLAGS" ; then
19499 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
19502 if test -n "$alpine_c_client_cflags" ; then
19503 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
19507 if test -n "$LDFLAGS" ; then
19508 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
19510 if test -n "$LIBS" ; then
19511 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
19514 if test -n "$alpine_c_client_ldflags" ; then
19515 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
19519 if test -n "$alpine_c_client_gccoptlevel" ; then
19520 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
19524 C_CLIENT_SPECIALS=$c_client_specials
19527 if test -z "$WEB_BUILD" ; then
19528 WEB_PUBCOOKIE_BUILD=
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
19530 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
19532 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
19533 else
19534 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
19535 if test "x$alpine_GSSTYPE" = "xnone" ; then
19536 WEB_PUBCOOKIE_BUILD=
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
19538 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
19540 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
19541 elif test -z "$WEB_BINDIR" ; then
19542 WEB_PUBCOOKIE_BUILD=
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
19544 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
19545 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
19546 Please re-run configure with these options:
19547 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
19548 else
19550 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
19552 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
19553 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
19569 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"
19571 cat >confcache <<\_ACEOF
19572 # This file is a shell script that caches the results of configure
19573 # tests run on this system so they can be shared between configure
19574 # scripts and configure runs, see configure's option --config-cache.
19575 # It is not useful on other systems. If it contains results you don't
19576 # want to keep, you may remove or edit it.
19578 # config.status only pays attention to the cache file if you give it
19579 # the --recheck option to rerun configure.
19581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19583 # following values.
19585 _ACEOF
19587 # The following way of writing the cache mishandles newlines in values,
19588 # but we know of no workaround that is simple, portable, and efficient.
19589 # So, we kill variables containing newlines.
19590 # Ultrix sh set writes to stderr and can't be redirected directly,
19591 # and sets the high bit in the cache file unless we assign to the vars.
19593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19594 eval ac_val=\$$ac_var
19595 case $ac_val in #(
19596 *${as_nl}*)
19597 case $ac_var in #(
19598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19600 esac
19601 case $ac_var in #(
19602 _ | IFS | as_nl) ;; #(
19603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19604 *) { eval $ac_var=; unset $ac_var;} ;;
19605 esac ;;
19606 esac
19607 done
19609 (set) 2>&1 |
19610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19611 *${as_nl}ac_space=\ *)
19612 # `set' does not quote correctly, so add quotes: double-quote
19613 # substitution turns \\\\ into \\, and sed turns \\ into \.
19614 sed -n \
19615 "s/'/'\\\\''/g;
19616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19617 ;; #(
19619 # `set' quotes correctly as required by POSIX, so do not add quotes.
19620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19622 esac |
19623 sort
19625 sed '
19626 /^ac_cv_env_/b end
19627 t clear
19628 :clear
19629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19630 t end
19631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19632 :end' >>confcache
19633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19634 if test -w "$cache_file"; then
19635 if test "x$cache_file" != "x/dev/null"; then
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19637 $as_echo "$as_me: updating cache $cache_file" >&6;}
19638 if test ! -f "$cache_file" || test -h "$cache_file"; then
19639 cat confcache >"$cache_file"
19640 else
19641 case $cache_file in #(
19642 */* | ?:*)
19643 mv -f confcache "$cache_file"$$ &&
19644 mv -f "$cache_file"$$ "$cache_file" ;; #(
19646 mv -f confcache "$cache_file" ;;
19647 esac
19650 else
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19655 rm -f confcache
19657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19658 # Let make expand exec_prefix.
19659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19661 DEFS=-DHAVE_CONFIG_H
19663 ac_libobjs=
19664 ac_ltlibobjs=
19666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19667 # 1. Remove the extension, and $U if already installed.
19668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19671 # will be set to the directory where LIBOBJS objects are built.
19672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19674 done
19675 LIBOBJS=$ac_libobjs
19677 LTLIBOBJS=$ac_ltlibobjs
19680 if test -n "$EXEEXT"; then
19681 am__EXEEXT_TRUE=
19682 am__EXEEXT_FALSE='#'
19683 else
19684 am__EXEEXT_TRUE='#'
19685 am__EXEEXT_FALSE=
19688 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19689 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19693 as_fn_error $? "conditional \"AMDEP\" was never defined.
19694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701 : "${CONFIG_STATUS=./config.status}"
19702 ac_write_fail=0
19703 ac_clean_files_save=$ac_clean_files
19704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19707 as_write_fail=0
19708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19709 #! $SHELL
19710 # Generated by $as_me.
19711 # Run this file to recreate the current configuration.
19712 # Compiler output produced by configure, useful for debugging
19713 # configure, is in config.log if it exists.
19715 debug=false
19716 ac_cs_recheck=false
19717 ac_cs_silent=false
19719 SHELL=\${CONFIG_SHELL-$SHELL}
19720 export SHELL
19721 _ASEOF
19722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19723 ## -------------------- ##
19724 ## M4sh Initialization. ##
19725 ## -------------------- ##
19727 # Be more Bourne compatible
19728 DUALCASE=1; export DUALCASE # for MKS sh
19729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19730 emulate sh
19731 NULLCMD=:
19732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19733 # is contrary to our usage. Disable this feature.
19734 alias -g '${1+"$@"}'='"$@"'
19735 setopt NO_GLOB_SUBST
19736 else
19737 case `(set -o) 2>/dev/null` in #(
19738 *posix*) :
19739 set -o posix ;; #(
19740 *) :
19742 esac
19746 as_nl='
19748 export as_nl
19749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19753 # Prefer a ksh shell builtin over an external printf program on Solaris,
19754 # but without wasting forks for bash or zsh.
19755 if test -z "$BASH_VERSION$ZSH_VERSION" \
19756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19757 as_echo='print -r --'
19758 as_echo_n='print -rn --'
19759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19760 as_echo='printf %s\n'
19761 as_echo_n='printf %s'
19762 else
19763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19765 as_echo_n='/usr/ucb/echo -n'
19766 else
19767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19768 as_echo_n_body='eval
19769 arg=$1;
19770 case $arg in #(
19771 *"$as_nl"*)
19772 expr "X$arg" : "X\\(.*\\)$as_nl";
19773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19774 esac;
19775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19777 export as_echo_n_body
19778 as_echo_n='sh -c $as_echo_n_body as_echo'
19780 export as_echo_body
19781 as_echo='sh -c $as_echo_body as_echo'
19784 # The user is always right.
19785 if test "${PATH_SEPARATOR+set}" != set; then
19786 PATH_SEPARATOR=:
19787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19789 PATH_SEPARATOR=';'
19794 # IFS
19795 # We need space, tab and new line, in precisely that order. Quoting is
19796 # there to prevent editors from complaining about space-tab.
19797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19798 # splitting by setting IFS to empty value.)
19799 IFS=" "" $as_nl"
19801 # Find who we are. Look in the path if we contain no directory separator.
19802 as_myself=
19803 case $0 in #((
19804 *[\\/]* ) as_myself=$0 ;;
19805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19806 for as_dir in $PATH
19808 IFS=$as_save_IFS
19809 test -z "$as_dir" && as_dir=.
19810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19811 done
19812 IFS=$as_save_IFS
19815 esac
19816 # We did not find ourselves, most probably we were run as `sh COMMAND'
19817 # in which case we are not to be found in the path.
19818 if test "x$as_myself" = x; then
19819 as_myself=$0
19821 if test ! -f "$as_myself"; then
19822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19823 exit 1
19826 # Unset variables that we do not need and which cause bugs (e.g. in
19827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19828 # suppresses any "Segmentation fault" message there. '((' could
19829 # trigger a bug in pdksh 5.2.14.
19830 for as_var in BASH_ENV ENV MAIL MAILPATH
19831 do eval test x\${$as_var+set} = xset \
19832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19833 done
19834 PS1='$ '
19835 PS2='> '
19836 PS4='+ '
19838 # NLS nuisances.
19839 LC_ALL=C
19840 export LC_ALL
19841 LANGUAGE=C
19842 export LANGUAGE
19844 # CDPATH.
19845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19849 # ----------------------------------------
19850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19852 # script with STATUS, using 1 if that was 0.
19853 as_fn_error ()
19855 as_status=$1; test $as_status -eq 0 && as_status=1
19856 if test "$4"; then
19857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19860 $as_echo "$as_me: error: $2" >&2
19861 as_fn_exit $as_status
19862 } # as_fn_error
19865 # as_fn_set_status STATUS
19866 # -----------------------
19867 # Set $? to STATUS, without forking.
19868 as_fn_set_status ()
19870 return $1
19871 } # as_fn_set_status
19873 # as_fn_exit STATUS
19874 # -----------------
19875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19876 as_fn_exit ()
19878 set +e
19879 as_fn_set_status $1
19880 exit $1
19881 } # as_fn_exit
19883 # as_fn_unset VAR
19884 # ---------------
19885 # Portably unset VAR.
19886 as_fn_unset ()
19888 { eval $1=; unset $1;}
19890 as_unset=as_fn_unset
19891 # as_fn_append VAR VALUE
19892 # ----------------------
19893 # Append the text in VALUE to the end of the definition contained in VAR. Take
19894 # advantage of any shell optimizations that allow amortized linear growth over
19895 # repeated appends, instead of the typical quadratic growth present in naive
19896 # implementations.
19897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19898 eval 'as_fn_append ()
19900 eval $1+=\$2
19902 else
19903 as_fn_append ()
19905 eval $1=\$$1\$2
19907 fi # as_fn_append
19909 # as_fn_arith ARG...
19910 # ------------------
19911 # Perform arithmetic evaluation on the ARGs, and store the result in the
19912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19913 # must be portable across $(()) and expr.
19914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19915 eval 'as_fn_arith ()
19917 as_val=$(( $* ))
19919 else
19920 as_fn_arith ()
19922 as_val=`expr "$@" || test $? -eq 1`
19924 fi # as_fn_arith
19927 if expr a : '\(a\)' >/dev/null 2>&1 &&
19928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19929 as_expr=expr
19930 else
19931 as_expr=false
19934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19935 as_basename=basename
19936 else
19937 as_basename=false
19940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19941 as_dirname=dirname
19942 else
19943 as_dirname=false
19946 as_me=`$as_basename -- "$0" ||
19947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19948 X"$0" : 'X\(//\)$' \| \
19949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19950 $as_echo X/"$0" |
19951 sed '/^.*\/\([^/][^/]*\)\/*$/{
19952 s//\1/
19955 /^X\/\(\/\/\)$/{
19956 s//\1/
19959 /^X\/\(\/\).*/{
19960 s//\1/
19963 s/.*/./; q'`
19965 # Avoid depending upon Character Ranges.
19966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19969 as_cr_digits='0123456789'
19970 as_cr_alnum=$as_cr_Letters$as_cr_digits
19972 ECHO_C= ECHO_N= ECHO_T=
19973 case `echo -n x` in #(((((
19974 -n*)
19975 case `echo 'xy\c'` in
19976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19977 xy) ECHO_C='\c';;
19978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19979 ECHO_T=' ';;
19980 esac;;
19982 ECHO_N='-n';;
19983 esac
19985 rm -f conf$$ conf$$.exe conf$$.file
19986 if test -d conf$$.dir; then
19987 rm -f conf$$.dir/conf$$.file
19988 else
19989 rm -f conf$$.dir
19990 mkdir conf$$.dir 2>/dev/null
19992 if (echo >conf$$.file) 2>/dev/null; then
19993 if ln -s conf$$.file conf$$ 2>/dev/null; then
19994 as_ln_s='ln -s'
19995 # ... but there are two gotchas:
19996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19998 # In both cases, we have to default to `cp -pR'.
19999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20000 as_ln_s='cp -pR'
20001 elif ln conf$$.file conf$$ 2>/dev/null; then
20002 as_ln_s=ln
20003 else
20004 as_ln_s='cp -pR'
20006 else
20007 as_ln_s='cp -pR'
20009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20010 rmdir conf$$.dir 2>/dev/null
20013 # as_fn_mkdir_p
20014 # -------------
20015 # Create "$as_dir" as a directory, including parents if necessary.
20016 as_fn_mkdir_p ()
20019 case $as_dir in #(
20020 -*) as_dir=./$as_dir;;
20021 esac
20022 test -d "$as_dir" || eval $as_mkdir_p || {
20023 as_dirs=
20024 while :; do
20025 case $as_dir in #(
20026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20027 *) as_qdir=$as_dir;;
20028 esac
20029 as_dirs="'$as_qdir' $as_dirs"
20030 as_dir=`$as_dirname -- "$as_dir" ||
20031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20032 X"$as_dir" : 'X\(//\)[^/]' \| \
20033 X"$as_dir" : 'X\(//\)$' \| \
20034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20035 $as_echo X"$as_dir" |
20036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20037 s//\1/
20040 /^X\(\/\/\)[^/].*/{
20041 s//\1/
20044 /^X\(\/\/\)$/{
20045 s//\1/
20048 /^X\(\/\).*/{
20049 s//\1/
20052 s/.*/./; q'`
20053 test -d "$as_dir" && break
20054 done
20055 test -z "$as_dirs" || eval "mkdir $as_dirs"
20056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20059 } # as_fn_mkdir_p
20060 if mkdir -p . 2>/dev/null; then
20061 as_mkdir_p='mkdir -p "$as_dir"'
20062 else
20063 test -d ./-p && rmdir ./-p
20064 as_mkdir_p=false
20068 # as_fn_executable_p FILE
20069 # -----------------------
20070 # Test if FILE is an executable regular file.
20071 as_fn_executable_p ()
20073 test -f "$1" && test -x "$1"
20074 } # as_fn_executable_p
20075 as_test_x='test -x'
20076 as_executable_p=as_fn_executable_p
20078 # Sed expression to map a string onto a valid CPP name.
20079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20081 # Sed expression to map a string onto a valid variable name.
20082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20085 exec 6>&1
20086 ## ----------------------------------- ##
20087 ## Main body of $CONFIG_STATUS script. ##
20088 ## ----------------------------------- ##
20089 _ASEOF
20090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20093 # Save the log message, to keep $0 and so on meaningful, and to
20094 # report actual input values of CONFIG_FILES etc. instead of their
20095 # values after options handling.
20096 ac_log="
20097 This file was extended by alpine $as_me 2.11.2, which was
20098 generated by GNU Autoconf 2.69. Invocation command line was
20100 CONFIG_FILES = $CONFIG_FILES
20101 CONFIG_HEADERS = $CONFIG_HEADERS
20102 CONFIG_LINKS = $CONFIG_LINKS
20103 CONFIG_COMMANDS = $CONFIG_COMMANDS
20104 $ $0 $@
20106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20109 _ACEOF
20111 case $ac_config_files in *"
20112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20113 esac
20115 case $ac_config_headers in *"
20116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20117 esac
20120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121 # Files that config.status was made for.
20122 config_files="$ac_config_files"
20123 config_headers="$ac_config_headers"
20124 config_commands="$ac_config_commands"
20126 _ACEOF
20128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20129 ac_cs_usage="\
20130 \`$as_me' instantiates files and other configuration actions
20131 from templates according to the current configuration. Unless the files
20132 and actions are specified as TAGs, all are instantiated by default.
20134 Usage: $0 [OPTION]... [TAG]...
20136 -h, --help print this help, then exit
20137 -V, --version print version number and configuration settings, then exit
20138 --config print configuration, then exit
20139 -q, --quiet, --silent
20140 do not print progress messages
20141 -d, --debug don't remove temporary files
20142 --recheck update $as_me by reconfiguring in the same conditions
20143 --file=FILE[:TEMPLATE]
20144 instantiate the configuration file FILE
20145 --header=FILE[:TEMPLATE]
20146 instantiate the configuration header FILE
20148 Configuration files:
20149 $config_files
20151 Configuration headers:
20152 $config_headers
20154 Configuration commands:
20155 $config_commands
20157 Report bugs to <chappa@washington.edu>."
20159 _ACEOF
20160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20162 ac_cs_version="\\
20163 alpine config.status 2.11.2
20164 configured by $0, generated by GNU Autoconf 2.69,
20165 with options \\"\$ac_cs_config\\"
20167 Copyright (C) 2012 Free Software Foundation, Inc.
20168 This config.status script is free software; the Free Software Foundation
20169 gives unlimited permission to copy, distribute and modify it."
20171 ac_pwd='$ac_pwd'
20172 srcdir='$srcdir'
20173 INSTALL='$INSTALL'
20174 MKDIR_P='$MKDIR_P'
20175 AWK='$AWK'
20176 test -n "\$AWK" || AWK=awk
20177 _ACEOF
20179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20180 # The default lists apply if the user does not specify any file.
20181 ac_need_defaults=:
20182 while test $# != 0
20184 case $1 in
20185 --*=?*)
20186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20188 ac_shift=:
20190 --*=)
20191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20192 ac_optarg=
20193 ac_shift=:
20196 ac_option=$1
20197 ac_optarg=$2
20198 ac_shift=shift
20200 esac
20202 case $ac_option in
20203 # Handling of the options.
20204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20205 ac_cs_recheck=: ;;
20206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20207 $as_echo "$ac_cs_version"; exit ;;
20208 --config | --confi | --conf | --con | --co | --c )
20209 $as_echo "$ac_cs_config"; exit ;;
20210 --debug | --debu | --deb | --de | --d | -d )
20211 debug=: ;;
20212 --file | --fil | --fi | --f )
20213 $ac_shift
20214 case $ac_optarg in
20215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20216 '') as_fn_error $? "missing file argument" ;;
20217 esac
20218 as_fn_append CONFIG_FILES " '$ac_optarg'"
20219 ac_need_defaults=false;;
20220 --header | --heade | --head | --hea )
20221 $ac_shift
20222 case $ac_optarg in
20223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20224 esac
20225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20226 ac_need_defaults=false;;
20227 --he | --h)
20228 # Conflict between --help and --header
20229 as_fn_error $? "ambiguous option: \`$1'
20230 Try \`$0 --help' for more information.";;
20231 --help | --hel | -h )
20232 $as_echo "$ac_cs_usage"; exit ;;
20233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20235 ac_cs_silent=: ;;
20237 # This is an error.
20238 -*) as_fn_error $? "unrecognized option: \`$1'
20239 Try \`$0 --help' for more information." ;;
20241 *) as_fn_append ac_config_targets " $1"
20242 ac_need_defaults=false ;;
20244 esac
20245 shift
20246 done
20248 ac_configure_extra_args=
20250 if $ac_cs_silent; then
20251 exec 6>/dev/null
20252 ac_configure_extra_args="$ac_configure_extra_args --silent"
20255 _ACEOF
20256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257 if \$ac_cs_recheck; then
20258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20259 shift
20260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20261 CONFIG_SHELL='$SHELL'
20262 export CONFIG_SHELL
20263 exec "\$@"
20266 _ACEOF
20267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20268 exec 5>>config.log
20270 echo
20271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20272 ## Running $as_me. ##
20273 _ASBOX
20274 $as_echo "$ac_log"
20275 } >&5
20277 _ACEOF
20278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20280 # INIT-COMMANDS
20282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20285 # The HP-UX ksh and POSIX shell print the target directory to stdout
20286 # if CDPATH is set.
20287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20289 sed_quote_subst='$sed_quote_subst'
20290 double_quote_subst='$double_quote_subst'
20291 delay_variable_subst='$delay_variable_subst'
20292 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20293 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20294 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20295 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20296 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20297 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20298 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20299 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20300 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20301 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20302 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20303 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20304 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20305 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20306 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20307 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20308 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20309 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20310 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20311 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20312 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20313 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20314 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20315 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20316 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20317 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20318 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20319 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20320 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20321 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20322 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20323 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20324 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20325 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20326 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20327 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20328 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20329 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20330 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20331 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20332 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20333 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20334 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20335 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20336 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"`'
20337 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"`'
20338 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20339 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20340 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20341 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20342 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20343 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20344 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20345 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20346 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20347 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20348 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20349 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20350 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20351 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20352 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20353 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20354 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20355 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20356 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20357 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20358 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20359 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20360 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20361 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20362 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20363 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20364 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20365 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20366 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20367 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20368 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20369 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20370 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20371 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20372 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20373 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20374 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20375 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20376 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20377 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20378 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20379 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20380 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20381 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20382 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20383 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20384 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20385 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20386 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20387 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20388 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20389 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20390 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20391 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20392 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20393 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20394 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20395 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20396 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20397 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20398 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20399 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20400 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20401 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20402 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20403 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20404 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20405 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20406 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20407 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20408 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20409 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20411 LTCC='$LTCC'
20412 LTCFLAGS='$LTCFLAGS'
20413 compiler='$compiler_DEFAULT'
20415 # Quote evaled strings.
20416 for var in SED \
20417 GREP \
20418 EGREP \
20419 FGREP \
20420 LD \
20421 NM \
20422 LN_S \
20423 lt_SP2NL \
20424 lt_NL2SP \
20425 reload_flag \
20426 OBJDUMP \
20427 deplibs_check_method \
20428 file_magic_cmd \
20429 AR \
20430 AR_FLAGS \
20431 STRIP \
20432 RANLIB \
20433 CC \
20434 CFLAGS \
20435 compiler \
20436 lt_cv_sys_global_symbol_pipe \
20437 lt_cv_sys_global_symbol_to_cdecl \
20438 lt_cv_sys_global_symbol_to_c_name_address \
20439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20440 SHELL \
20441 ECHO \
20442 lt_prog_compiler_no_builtin_flag \
20443 lt_prog_compiler_wl \
20444 lt_prog_compiler_pic \
20445 lt_prog_compiler_static \
20446 lt_cv_prog_compiler_c_o \
20447 need_locks \
20448 DSYMUTIL \
20449 NMEDIT \
20450 LIPO \
20451 OTOOL \
20452 OTOOL64 \
20453 shrext_cmds \
20454 export_dynamic_flag_spec \
20455 whole_archive_flag_spec \
20456 compiler_needs_object \
20457 with_gnu_ld \
20458 allow_undefined_flag \
20459 no_undefined_flag \
20460 hardcode_libdir_flag_spec \
20461 hardcode_libdir_flag_spec_ld \
20462 hardcode_libdir_separator \
20463 fix_srcfile_path \
20464 exclude_expsyms \
20465 include_expsyms \
20466 file_list_spec \
20467 variables_saved_for_relink \
20468 libname_spec \
20469 library_names_spec \
20470 soname_spec \
20471 finish_eval \
20472 old_striplib \
20473 striplib; do
20474 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20475 *[\\\\\\\`\\"\\\$]*)
20476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20481 esac
20482 done
20484 # Double-quote double-evaled strings.
20485 for var in reload_cmds \
20486 old_postinstall_cmds \
20487 old_postuninstall_cmds \
20488 old_archive_cmds \
20489 extract_expsyms_cmds \
20490 old_archive_from_new_cmds \
20491 old_archive_from_expsyms_cmds \
20492 archive_cmds \
20493 archive_expsym_cmds \
20494 module_cmds \
20495 module_expsym_cmds \
20496 export_symbols_cmds \
20497 prelink_cmds \
20498 postinstall_cmds \
20499 postuninstall_cmds \
20500 finish_cmds \
20501 sys_lib_search_path_spec \
20502 sys_lib_dlsearch_path_spec; do
20503 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20504 *[\\\\\\\`\\"\\\$]*)
20505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20510 esac
20511 done
20513 # Fix-up fallback echo if it was mangled by the above quoting rules.
20514 case \$lt_ECHO in
20515 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20517 esac
20519 ac_aux_dir='$ac_aux_dir'
20520 xsi_shell='$xsi_shell'
20521 lt_shell_append='$lt_shell_append'
20523 # See if we are running on zsh, and set the options which allow our
20524 # commands through without removal of \ escapes INIT.
20525 if test -n "\${ZSH_VERSION+set}" ; then
20526 setopt NO_GLOB_SUBST
20530 PACKAGE='$PACKAGE'
20531 VERSION='$VERSION'
20532 TIMESTAMP='$TIMESTAMP'
20533 RM='$RM'
20534 ofile='$ofile'
20538 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20539 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20540 # from automake < 1.5.
20541 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20542 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20543 LINGUAS="${LINGUAS-%UNSET%}"
20546 _ACEOF
20548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20550 # Handling of arguments.
20551 for ac_config_target in $ac_config_targets
20553 case $ac_config_target in
20554 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20555 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20556 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20557 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20558 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20559 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20560 "regex/Makefile") CONFIG_FILES="$CONFIG_FILES regex/Makefile" ;;
20561 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
20562 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
20563 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
20564 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
20565 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
20566 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
20567 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
20568 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
20569 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
20570 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
20571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20574 esac
20575 done
20578 # If the user did not use the arguments to specify the items to instantiate,
20579 # then the envvar interface is used. Set only those that are not.
20580 # We use the long form for the default assignment because of an extremely
20581 # bizarre bug on SunOS 4.1.3.
20582 if $ac_need_defaults; then
20583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20588 # Have a temporary directory for convenience. Make it in the build tree
20589 # simply because there is no reason against having it here, and in addition,
20590 # creating and moving files from /tmp can sometimes cause problems.
20591 # Hook for its removal unless debugging.
20592 # Note that there is a small window in which the directory will not be cleaned:
20593 # after its creation but before its name has been assigned to `$tmp'.
20594 $debug ||
20596 tmp= ac_tmp=
20597 trap 'exit_status=$?
20598 : "${ac_tmp:=$tmp}"
20599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20601 trap 'as_fn_exit 1' 1 2 13 15
20603 # Create a (secure) tmp directory for tmp files.
20606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20607 test -d "$tmp"
20608 } ||
20610 tmp=./conf$$-$RANDOM
20611 (umask 077 && mkdir "$tmp")
20612 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20613 ac_tmp=$tmp
20615 # Set up the scripts for CONFIG_FILES section.
20616 # No need to generate them if there are no CONFIG_FILES.
20617 # This happens for instance with `./config.status config.h'.
20618 if test -n "$CONFIG_FILES"; then
20621 ac_cr=`echo X | tr X '\015'`
20622 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20623 # But we know of no other shell where ac_cr would be empty at this
20624 # point, so we can use a bashism as a fallback.
20625 if test "x$ac_cr" = x; then
20626 eval ac_cr=\$\'\\r\'
20628 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20629 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20630 ac_cs_awk_cr='\\r'
20631 else
20632 ac_cs_awk_cr=$ac_cr
20635 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20636 _ACEOF
20640 echo "cat >conf$$subs.awk <<_ACEOF" &&
20641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20642 echo "_ACEOF"
20643 } >conf$$subs.sh ||
20644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20645 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20646 ac_delim='%!_!# '
20647 for ac_last_try in false false false false false :; do
20648 . ./conf$$subs.sh ||
20649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20651 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20652 if test $ac_delim_n = $ac_delim_num; then
20653 break
20654 elif $ac_last_try; then
20655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20656 else
20657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20659 done
20660 rm -f conf$$subs.sh
20662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20663 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20664 _ACEOF
20665 sed -n '
20667 s/^/S["/; s/!.*/"]=/
20670 s/^[^!]*!//
20671 :repl
20672 t repl
20673 s/'"$ac_delim"'$//
20674 t delim
20677 s/\(.\{148\}\)..*/\1/
20678 t more1
20679 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20682 b repl
20683 :more1
20684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20687 s/.\{148\}//
20688 t nl
20689 :delim
20691 s/\(.\{148\}\)..*/\1/
20692 t more2
20693 s/["\\]/\\&/g; s/^/"/; s/$/"/
20696 :more2
20697 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20700 s/.\{148\}//
20701 t delim
20702 ' <conf$$subs.awk | sed '
20703 /^[^""]/{
20705 s/\n//
20707 ' >>$CONFIG_STATUS || ac_write_fail=1
20708 rm -f conf$$subs.awk
20709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20710 _ACAWK
20711 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20712 for (key in S) S_is_set[key] = 1
20713 FS = "\a"
20717 line = $ 0
20718 nfields = split(line, field, "@")
20719 substed = 0
20720 len = length(field[1])
20721 for (i = 2; i < nfields; i++) {
20722 key = field[i]
20723 keylen = length(key)
20724 if (S_is_set[key]) {
20725 value = S[key]
20726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20727 len += length(value) + length(field[++i])
20728 substed = 1
20729 } else
20730 len += 1 + keylen
20733 print line
20736 _ACAWK
20737 _ACEOF
20738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20739 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20740 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20741 else
20743 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20744 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20745 _ACEOF
20747 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20748 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20749 # trailing colons and then remove the whole line if VPATH becomes empty
20750 # (actually we leave an empty line to preserve line numbers).
20751 if test "x$srcdir" = x.; then
20752 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20754 s///
20755 s/^/:/
20756 s/[ ]*$/:/
20757 s/:\$(srcdir):/:/g
20758 s/:\${srcdir}:/:/g
20759 s/:@srcdir@:/:/g
20760 s/^:*//
20761 s/:*$//
20763 s/\(=[ ]*\).*/\1/
20765 s/\n//
20766 s/^[^=]*=[ ]*$//
20770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20771 fi # test -n "$CONFIG_FILES"
20773 # Set up the scripts for CONFIG_HEADERS section.
20774 # No need to generate them if there are no CONFIG_HEADERS.
20775 # This happens for instance with `./config.status Makefile'.
20776 if test -n "$CONFIG_HEADERS"; then
20777 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20778 BEGIN {
20779 _ACEOF
20781 # Transform confdefs.h into an awk script `defines.awk', embedded as
20782 # here-document in config.status, that substitutes the proper values into
20783 # config.h.in to produce config.h.
20785 # Create a delimiter string that does not exist in confdefs.h, to ease
20786 # handling of long lines.
20787 ac_delim='%!_!# '
20788 for ac_last_try in false false :; do
20789 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20790 if test -z "$ac_tt"; then
20791 break
20792 elif $ac_last_try; then
20793 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20794 else
20795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20797 done
20799 # For the awk script, D is an array of macro values keyed by name,
20800 # likewise P contains macro parameters if any. Preserve backslash
20801 # newline sequences.
20803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20804 sed -n '
20805 s/.\{148\}/&'"$ac_delim"'/g
20806 t rset
20807 :rset
20808 s/^[ ]*#[ ]*define[ ][ ]*/ /
20809 t def
20811 :def
20812 s/\\$//
20813 t bsnl
20814 s/["\\]/\\&/g
20815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20816 D["\1"]=" \3"/p
20817 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20819 :bsnl
20820 s/["\\]/\\&/g
20821 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20822 D["\1"]=" \3\\\\\\n"\\/p
20823 t cont
20824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20825 t cont
20827 :cont
20829 s/.\{148\}/&'"$ac_delim"'/g
20830 t clear
20831 :clear
20832 s/\\$//
20833 t bsnlc
20834 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20836 :bsnlc
20837 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20838 b cont
20839 ' <confdefs.h | sed '
20840 s/'"$ac_delim"'/"\\\
20841 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20844 for (key in D) D_is_set[key] = 1
20845 FS = "\a"
20847 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20848 line = \$ 0
20849 split(line, arg, " ")
20850 if (arg[1] == "#") {
20851 defundef = arg[2]
20852 mac1 = arg[3]
20853 } else {
20854 defundef = substr(arg[1], 2)
20855 mac1 = arg[2]
20857 split(mac1, mac2, "(") #)
20858 macro = mac2[1]
20859 prefix = substr(line, 1, index(line, defundef) - 1)
20860 if (D_is_set[macro]) {
20861 # Preserve the white space surrounding the "#".
20862 print prefix "define", macro P[macro] D[macro]
20863 next
20864 } else {
20865 # Replace #undef with comments. This is necessary, for example,
20866 # in the case of _POSIX_SOURCE, which is predefined and required
20867 # on some systems where configure will not decide to define it.
20868 if (defundef == "undef") {
20869 print "/*", prefix defundef, macro, "*/"
20870 next
20874 { print }
20875 _ACAWK
20876 _ACEOF
20877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20878 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20879 fi # test -n "$CONFIG_HEADERS"
20882 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20883 shift
20884 for ac_tag
20886 case $ac_tag in
20887 :[FHLC]) ac_mode=$ac_tag; continue;;
20888 esac
20889 case $ac_mode$ac_tag in
20890 :[FHL]*:*);;
20891 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20892 :[FH]-) ac_tag=-:-;;
20893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20894 esac
20895 ac_save_IFS=$IFS
20896 IFS=:
20897 set x $ac_tag
20898 IFS=$ac_save_IFS
20899 shift
20900 ac_file=$1
20901 shift
20903 case $ac_mode in
20904 :L) ac_source=$1;;
20905 :[FH])
20906 ac_file_inputs=
20907 for ac_f
20909 case $ac_f in
20910 -) ac_f="$ac_tmp/stdin";;
20911 *) # Look for the file first in the build tree, then in the source tree
20912 # (if the path is not absolute). The absolute path cannot be DOS-style,
20913 # because $ac_f cannot contain `:'.
20914 test -f "$ac_f" ||
20915 case $ac_f in
20916 [\\/$]*) false;;
20917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20918 esac ||
20919 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20920 esac
20921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20922 as_fn_append ac_file_inputs " '$ac_f'"
20923 done
20925 # Let's still pretend it is `configure' which instantiates (i.e., don't
20926 # use $as_me), people would be surprised to read:
20927 # /* config.h. Generated by config.status. */
20928 configure_input='Generated from '`
20929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20930 `' by configure.'
20931 if test x"$ac_file" != x-; then
20932 configure_input="$ac_file. $configure_input"
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20934 $as_echo "$as_me: creating $ac_file" >&6;}
20936 # Neutralize special characters interpreted by sed in replacement strings.
20937 case $configure_input in #(
20938 *\&* | *\|* | *\\* )
20939 ac_sed_conf_input=`$as_echo "$configure_input" |
20940 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20941 *) ac_sed_conf_input=$configure_input;;
20942 esac
20944 case $ac_tag in
20945 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20947 esac
20949 esac
20951 ac_dir=`$as_dirname -- "$ac_file" ||
20952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20953 X"$ac_file" : 'X\(//\)[^/]' \| \
20954 X"$ac_file" : 'X\(//\)$' \| \
20955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20956 $as_echo X"$ac_file" |
20957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20958 s//\1/
20961 /^X\(\/\/\)[^/].*/{
20962 s//\1/
20965 /^X\(\/\/\)$/{
20966 s//\1/
20969 /^X\(\/\).*/{
20970 s//\1/
20973 s/.*/./; q'`
20974 as_dir="$ac_dir"; as_fn_mkdir_p
20975 ac_builddir=.
20977 case "$ac_dir" in
20978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20981 # A ".." for each directory in $ac_dir_suffix.
20982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20983 case $ac_top_builddir_sub in
20984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20986 esac ;;
20987 esac
20988 ac_abs_top_builddir=$ac_pwd
20989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20990 # for backward compatibility:
20991 ac_top_builddir=$ac_top_build_prefix
20993 case $srcdir in
20994 .) # We are building in place.
20995 ac_srcdir=.
20996 ac_top_srcdir=$ac_top_builddir_sub
20997 ac_abs_top_srcdir=$ac_pwd ;;
20998 [\\/]* | ?:[\\/]* ) # Absolute name.
20999 ac_srcdir=$srcdir$ac_dir_suffix;
21000 ac_top_srcdir=$srcdir
21001 ac_abs_top_srcdir=$srcdir ;;
21002 *) # Relative name.
21003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21004 ac_top_srcdir=$ac_top_build_prefix$srcdir
21005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21006 esac
21007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21010 case $ac_mode in
21013 # CONFIG_FILE
21016 case $INSTALL in
21017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21018 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21019 esac
21020 ac_MKDIR_P=$MKDIR_P
21021 case $MKDIR_P in
21022 [\\/$]* | ?:[\\/]* ) ;;
21023 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21024 esac
21025 _ACEOF
21027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21028 # If the template does not know about datarootdir, expand it.
21029 # FIXME: This hack should be removed a few years after 2.60.
21030 ac_datarootdir_hack=; ac_datarootdir_seen=
21031 ac_sed_dataroot='
21032 /datarootdir/ {
21036 /@datadir@/p
21037 /@docdir@/p
21038 /@infodir@/p
21039 /@localedir@/p
21040 /@mandir@/p'
21041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21042 *datarootdir*) ac_datarootdir_seen=yes;;
21043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21046 _ACEOF
21047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21048 ac_datarootdir_hack='
21049 s&@datadir@&$datadir&g
21050 s&@docdir@&$docdir&g
21051 s&@infodir@&$infodir&g
21052 s&@localedir@&$localedir&g
21053 s&@mandir@&$mandir&g
21054 s&\\\${datarootdir}&$datarootdir&g' ;;
21055 esac
21056 _ACEOF
21058 # Neutralize VPATH when `$srcdir' = `.'.
21059 # Shell code in configure.ac might set extrasub.
21060 # FIXME: do we really want to maintain this feature?
21061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21062 ac_sed_extra="$ac_vpsub
21063 $extrasub
21064 _ACEOF
21065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21068 s|@configure_input@|$ac_sed_conf_input|;t t
21069 s&@top_builddir@&$ac_top_builddir_sub&;t t
21070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21071 s&@srcdir@&$ac_srcdir&;t t
21072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21073 s&@top_srcdir@&$ac_top_srcdir&;t t
21074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21075 s&@builddir@&$ac_builddir&;t t
21076 s&@abs_builddir@&$ac_abs_builddir&;t t
21077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21078 s&@INSTALL@&$ac_INSTALL&;t t
21079 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21080 $ac_datarootdir_hack
21082 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21083 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21085 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21086 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21087 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21088 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21090 which seems to be undefined. Please make sure it is defined" >&5
21091 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21092 which seems to be undefined. Please make sure it is defined" >&2;}
21094 rm -f "$ac_tmp/stdin"
21095 case $ac_file in
21096 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21097 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21098 esac \
21099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21103 # CONFIG_HEADER
21105 if test x"$ac_file" != x-; then
21107 $as_echo "/* $configure_input */" \
21108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21109 } >"$ac_tmp/config.h" \
21110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21111 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21113 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21114 else
21115 rm -f "$ac_file"
21116 mv "$ac_tmp/config.h" "$ac_file" \
21117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21119 else
21120 $as_echo "/* $configure_input */" \
21121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21122 || as_fn_error $? "could not create -" "$LINENO" 5
21124 # Compute "$ac_file"'s index in $config_headers.
21125 _am_arg="$ac_file"
21126 _am_stamp_count=1
21127 for _am_header in $config_headers :; do
21128 case $_am_header in
21129 $_am_arg | $_am_arg:* )
21130 break ;;
21132 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21133 esac
21134 done
21135 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21136 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21137 X"$_am_arg" : 'X\(//\)[^/]' \| \
21138 X"$_am_arg" : 'X\(//\)$' \| \
21139 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21140 $as_echo X"$_am_arg" |
21141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21142 s//\1/
21145 /^X\(\/\/\)[^/].*/{
21146 s//\1/
21149 /^X\(\/\/\)$/{
21150 s//\1/
21153 /^X\(\/\).*/{
21154 s//\1/
21157 s/.*/./; q'`/stamp-h$_am_stamp_count
21160 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21161 $as_echo "$as_me: executing $ac_file commands" >&6;}
21163 esac
21166 case $ac_file$ac_mode in
21167 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21168 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21169 # are listed without --file. Let's play safe and only enable the eval
21170 # if we detect the quoting.
21171 case $CONFIG_FILES in
21172 *\'*) eval set x "$CONFIG_FILES" ;;
21173 *) set x $CONFIG_FILES ;;
21174 esac
21175 shift
21176 for mf
21178 # Strip MF so we end up with the name of the file.
21179 mf=`echo "$mf" | sed -e 's/:.*$//'`
21180 # Check whether this is an Automake generated Makefile or not.
21181 # We used to match only the files named `Makefile.in', but
21182 # some people rename them; so instead we look at the file content.
21183 # Grep'ing the first line is not enough: some people post-process
21184 # each Makefile.in and add a new line on top of each file to say so.
21185 # Grep'ing the whole file is not good either: AIX grep has a line
21186 # limit of 2048, but all sed's we know have understand at least 4000.
21187 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21188 dirpart=`$as_dirname -- "$mf" ||
21189 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21190 X"$mf" : 'X\(//\)[^/]' \| \
21191 X"$mf" : 'X\(//\)$' \| \
21192 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21193 $as_echo X"$mf" |
21194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21195 s//\1/
21198 /^X\(\/\/\)[^/].*/{
21199 s//\1/
21202 /^X\(\/\/\)$/{
21203 s//\1/
21206 /^X\(\/\).*/{
21207 s//\1/
21210 s/.*/./; q'`
21211 else
21212 continue
21214 # Extract the definition of DEPDIR, am__include, and am__quote
21215 # from the Makefile without running `make'.
21216 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21217 test -z "$DEPDIR" && continue
21218 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21219 test -z "am__include" && continue
21220 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21221 # When using ansi2knr, U may be empty or an underscore; expand it
21222 U=`sed -n 's/^U = //p' < "$mf"`
21223 # Find all dependency output files, they are included files with
21224 # $(DEPDIR) in their names. We invoke sed twice because it is the
21225 # simplest approach to changing $(DEPDIR) to its actual value in the
21226 # expansion.
21227 for file in `sed -n "
21228 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21229 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21230 # Make sure the directory exists.
21231 test -f "$dirpart/$file" && continue
21232 fdir=`$as_dirname -- "$file" ||
21233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21234 X"$file" : 'X\(//\)[^/]' \| \
21235 X"$file" : 'X\(//\)$' \| \
21236 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21237 $as_echo X"$file" |
21238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21239 s//\1/
21242 /^X\(\/\/\)[^/].*/{
21243 s//\1/
21246 /^X\(\/\/\)$/{
21247 s//\1/
21250 /^X\(\/\).*/{
21251 s//\1/
21254 s/.*/./; q'`
21255 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21256 # echo "creating $dirpart/$file"
21257 echo '# dummy' > "$dirpart/$file"
21258 done
21259 done
21262 "libtool":C)
21264 # See if we are running on zsh, and set the options which allow our
21265 # commands through without removal of \ escapes.
21266 if test -n "${ZSH_VERSION+set}" ; then
21267 setopt NO_GLOB_SUBST
21270 cfgfile="${ofile}T"
21271 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21272 $RM "$cfgfile"
21274 cat <<_LT_EOF >> "$cfgfile"
21275 #! $SHELL
21277 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21278 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21282 # 2006, 2007, 2008 Free Software Foundation, Inc.
21283 # Written by Gordon Matzigkeit, 1996
21285 # This file is part of GNU Libtool.
21287 # GNU Libtool is free software; you can redistribute it and/or
21288 # modify it under the terms of the GNU General Public License as
21289 # published by the Free Software Foundation; either version 2 of
21290 # the License, or (at your option) any later version.
21292 # As a special exception to the GNU General Public License,
21293 # if you distribute this file as part of a program or library that
21294 # is built using GNU Libtool, you may include this file under the
21295 # same distribution terms that you use for the rest of that program.
21297 # GNU Libtool is distributed in the hope that it will be useful,
21298 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21300 # GNU General Public License for more details.
21302 # You should have received a copy of the GNU General Public License
21303 # along with GNU Libtool; see the file COPYING. If not, a copy
21304 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21305 # obtained by writing to the Free Software Foundation, Inc.,
21306 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21309 # The names of the tagged configurations supported by this script.
21310 available_tags=""
21312 # ### BEGIN LIBTOOL CONFIG
21314 # Which release of libtool.m4 was used?
21315 macro_version=$macro_version
21316 macro_revision=$macro_revision
21318 # Whether or not to build shared libraries.
21319 build_libtool_libs=$enable_shared
21321 # Whether or not to build static libraries.
21322 build_old_libs=$enable_static
21324 # What type of objects to build.
21325 pic_mode=$pic_mode
21327 # Whether or not to optimize for fast installation.
21328 fast_install=$enable_fast_install
21330 # The host system.
21331 host_alias=$host_alias
21332 host=$host
21333 host_os=$host_os
21335 # The build system.
21336 build_alias=$build_alias
21337 build=$build
21338 build_os=$build_os
21340 # A sed program that does not truncate output.
21341 SED=$lt_SED
21343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21344 Xsed="\$SED -e 1s/^X//"
21346 # A grep program that handles long lines.
21347 GREP=$lt_GREP
21349 # An ERE matcher.
21350 EGREP=$lt_EGREP
21352 # A literal string matcher.
21353 FGREP=$lt_FGREP
21355 # A BSD- or MS-compatible name lister.
21356 NM=$lt_NM
21358 # Whether we need soft or hard links.
21359 LN_S=$lt_LN_S
21361 # What is the maximum length of a command?
21362 max_cmd_len=$max_cmd_len
21364 # Object file suffix (normally "o").
21365 objext=$ac_objext
21367 # Executable file suffix (normally "").
21368 exeext=$exeext
21370 # whether the shell understands "unset".
21371 lt_unset=$lt_unset
21373 # turn spaces into newlines.
21374 SP2NL=$lt_lt_SP2NL
21376 # turn newlines into spaces.
21377 NL2SP=$lt_lt_NL2SP
21379 # How to create reloadable object files.
21380 reload_flag=$lt_reload_flag
21381 reload_cmds=$lt_reload_cmds
21383 # An object symbol dumper.
21384 OBJDUMP=$lt_OBJDUMP
21386 # Method to check whether dependent libraries are shared objects.
21387 deplibs_check_method=$lt_deplibs_check_method
21389 # Command to use when deplibs_check_method == "file_magic".
21390 file_magic_cmd=$lt_file_magic_cmd
21392 # The archiver.
21393 AR=$lt_AR
21394 AR_FLAGS=$lt_AR_FLAGS
21396 # A symbol stripping program.
21397 STRIP=$lt_STRIP
21399 # Commands used to install an old-style archive.
21400 RANLIB=$lt_RANLIB
21401 old_postinstall_cmds=$lt_old_postinstall_cmds
21402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21404 # A C compiler.
21405 LTCC=$lt_CC
21407 # LTCC compiler flags.
21408 LTCFLAGS=$lt_CFLAGS
21410 # Take the output of nm and produce a listing of raw symbols and C names.
21411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21413 # Transform the output of nm in a proper C declaration.
21414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21416 # Transform the output of nm in a C name address pair.
21417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21419 # Transform the output of nm in a C name address pair when lib prefix is needed.
21420 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21422 # The name of the directory that contains temporary libtool files.
21423 objdir=$objdir
21425 # Shell to use when invoking shell scripts.
21426 SHELL=$lt_SHELL
21428 # An echo program that does not interpret backslashes.
21429 ECHO=$lt_ECHO
21431 # Used to examine libraries when file_magic_cmd begins with "file".
21432 MAGIC_CMD=$MAGIC_CMD
21434 # Must we lock files when doing compilation?
21435 need_locks=$lt_need_locks
21437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21438 DSYMUTIL=$lt_DSYMUTIL
21440 # Tool to change global to local symbols on Mac OS X.
21441 NMEDIT=$lt_NMEDIT
21443 # Tool to manipulate fat objects and archives on Mac OS X.
21444 LIPO=$lt_LIPO
21446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21447 OTOOL=$lt_OTOOL
21449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21450 OTOOL64=$lt_OTOOL64
21452 # Old archive suffix (normally "a").
21453 libext=$libext
21455 # Shared library suffix (normally ".so").
21456 shrext_cmds=$lt_shrext_cmds
21458 # The commands to extract the exported symbol list from a shared archive.
21459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21461 # Variables whose values should be saved in libtool wrapper scripts and
21462 # restored at link time.
21463 variables_saved_for_relink=$lt_variables_saved_for_relink
21465 # Do we need the "lib" prefix for modules?
21466 need_lib_prefix=$need_lib_prefix
21468 # Do we need a version for libraries?
21469 need_version=$need_version
21471 # Library versioning type.
21472 version_type=$version_type
21474 # Shared library runtime path variable.
21475 runpath_var=$runpath_var
21477 # Shared library path variable.
21478 shlibpath_var=$shlibpath_var
21480 # Is shlibpath searched before the hard-coded library search path?
21481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21483 # Format of library name prefix.
21484 libname_spec=$lt_libname_spec
21486 # List of archive names. First name is the real one, the rest are links.
21487 # The last name is the one that the linker finds with -lNAME
21488 library_names_spec=$lt_library_names_spec
21490 # The coded name of the library, if different from the real name.
21491 soname_spec=$lt_soname_spec
21493 # Command to use after installation of a shared archive.
21494 postinstall_cmds=$lt_postinstall_cmds
21496 # Command to use after uninstallation of a shared archive.
21497 postuninstall_cmds=$lt_postuninstall_cmds
21499 # Commands used to finish a libtool library installation in a directory.
21500 finish_cmds=$lt_finish_cmds
21502 # As "finish_cmds", except a single script fragment to be evaled but
21503 # not shown.
21504 finish_eval=$lt_finish_eval
21506 # Whether we should hardcode library paths into libraries.
21507 hardcode_into_libs=$hardcode_into_libs
21509 # Compile-time system search path for libraries.
21510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21512 # Run-time system search path for libraries.
21513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21515 # Whether dlopen is supported.
21516 dlopen_support=$enable_dlopen
21518 # Whether dlopen of programs is supported.
21519 dlopen_self=$enable_dlopen_self
21521 # Whether dlopen of statically linked programs is supported.
21522 dlopen_self_static=$enable_dlopen_self_static
21524 # Commands to strip libraries.
21525 old_striplib=$lt_old_striplib
21526 striplib=$lt_striplib
21529 # The linker used to build libraries.
21530 LD=$lt_LD
21532 # Commands used to build an old-style archive.
21533 old_archive_cmds=$lt_old_archive_cmds
21535 # A language specific compiler.
21536 CC=$lt_compiler
21538 # Is the compiler the GNU compiler?
21539 with_gcc=$GCC
21541 # Compiler flag to turn off builtin functions.
21542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21544 # How to pass a linker flag through the compiler.
21545 wl=$lt_lt_prog_compiler_wl
21547 # Additional compiler flags for building library objects.
21548 pic_flag=$lt_lt_prog_compiler_pic
21550 # Compiler flag to prevent dynamic linking.
21551 link_static_flag=$lt_lt_prog_compiler_static
21553 # Does compiler simultaneously support -c and -o options?
21554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21556 # Whether or not to add -lc for building shared libraries.
21557 build_libtool_need_lc=$archive_cmds_need_lc
21559 # Whether or not to disallow shared libs when runtime libs are static.
21560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21562 # Compiler flag to allow reflexive dlopens.
21563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21565 # Compiler flag to generate shared objects directly from archives.
21566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21568 # Whether the compiler copes with passing no objects directly.
21569 compiler_needs_object=$lt_compiler_needs_object
21571 # Create an old-style archive from a shared archive.
21572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21574 # Create a temporary old-style archive to link instead of a shared archive.
21575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21577 # Commands used to build a shared archive.
21578 archive_cmds=$lt_archive_cmds
21579 archive_expsym_cmds=$lt_archive_expsym_cmds
21581 # Commands used to build a loadable module if different from building
21582 # a shared archive.
21583 module_cmds=$lt_module_cmds
21584 module_expsym_cmds=$lt_module_expsym_cmds
21586 # Whether we are building with GNU ld or not.
21587 with_gnu_ld=$lt_with_gnu_ld
21589 # Flag that allows shared libraries with undefined symbols to be built.
21590 allow_undefined_flag=$lt_allow_undefined_flag
21592 # Flag that enforces no undefined symbols.
21593 no_undefined_flag=$lt_no_undefined_flag
21595 # Flag to hardcode \$libdir into a binary during linking.
21596 # This must work even if \$libdir does not exist
21597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21599 # If ld is used when linking, flag to hardcode \$libdir into a binary
21600 # during linking. This must work even if \$libdir does not exist.
21601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21603 # Whether we need a single "-rpath" flag with a separated argument.
21604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21607 # DIR into the resulting binary.
21608 hardcode_direct=$hardcode_direct
21610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21611 # DIR into the resulting binary and the resulting library dependency is
21612 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21613 # library is relocated.
21614 hardcode_direct_absolute=$hardcode_direct_absolute
21616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21617 # into the resulting binary.
21618 hardcode_minus_L=$hardcode_minus_L
21620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21621 # into the resulting binary.
21622 hardcode_shlibpath_var=$hardcode_shlibpath_var
21624 # Set to "yes" if building a shared library automatically hardcodes DIR
21625 # into the library and all subsequent libraries and executables linked
21626 # against it.
21627 hardcode_automatic=$hardcode_automatic
21629 # Set to yes if linker adds runtime paths of dependent libraries
21630 # to runtime path list.
21631 inherit_rpath=$inherit_rpath
21633 # Whether libtool must link a program against all its dependency libraries.
21634 link_all_deplibs=$link_all_deplibs
21636 # Fix the shell variable \$srcfile for the compiler.
21637 fix_srcfile_path=$lt_fix_srcfile_path
21639 # Set to "yes" if exported symbols are required.
21640 always_export_symbols=$always_export_symbols
21642 # The commands to list exported symbols.
21643 export_symbols_cmds=$lt_export_symbols_cmds
21645 # Symbols that should not be listed in the preloaded symbols.
21646 exclude_expsyms=$lt_exclude_expsyms
21648 # Symbols that must always be exported.
21649 include_expsyms=$lt_include_expsyms
21651 # Commands necessary for linking programs (against libraries) with templates.
21652 prelink_cmds=$lt_prelink_cmds
21654 # Specify filename containing input files.
21655 file_list_spec=$lt_file_list_spec
21657 # How to hardcode a shared library path into an executable.
21658 hardcode_action=$hardcode_action
21660 # ### END LIBTOOL CONFIG
21662 _LT_EOF
21664 case $host_os in
21665 aix3*)
21666 cat <<\_LT_EOF >> "$cfgfile"
21667 # AIX sometimes has problems with the GCC collect2 program. For some
21668 # reason, if we set the COLLECT_NAMES environment variable, the problems
21669 # vanish in a puff of smoke.
21670 if test "X${COLLECT_NAMES+set}" != Xset; then
21671 COLLECT_NAMES=
21672 export COLLECT_NAMES
21674 _LT_EOF
21676 esac
21679 ltmain="$ac_aux_dir/ltmain.sh"
21682 # We use sed instead of cat because bash on DJGPP gets confused if
21683 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21684 # text mode, it properly converts lines to CR/LF. This bash problem
21685 # is reportedly fixed, but why not run on old versions too?
21686 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21687 || (rm -f "$cfgfile"; exit 1)
21689 case $xsi_shell in
21690 yes)
21691 cat << \_LT_EOF >> "$cfgfile"
21693 # func_dirname file append nondir_replacement
21694 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21695 # otherwise set result to NONDIR_REPLACEMENT.
21696 func_dirname ()
21698 case ${1} in
21699 */*) func_dirname_result="${1%/*}${2}" ;;
21700 * ) func_dirname_result="${3}" ;;
21701 esac
21704 # func_basename file
21705 func_basename ()
21707 func_basename_result="${1##*/}"
21710 # func_dirname_and_basename file append nondir_replacement
21711 # perform func_basename and func_dirname in a single function
21712 # call:
21713 # dirname: Compute the dirname of FILE. If nonempty,
21714 # add APPEND to the result, otherwise set result
21715 # to NONDIR_REPLACEMENT.
21716 # value returned in "$func_dirname_result"
21717 # basename: Compute filename of FILE.
21718 # value retuned in "$func_basename_result"
21719 # Implementation must be kept synchronized with func_dirname
21720 # and func_basename. For efficiency, we do not delegate to
21721 # those functions but instead duplicate the functionality here.
21722 func_dirname_and_basename ()
21724 case ${1} in
21725 */*) func_dirname_result="${1%/*}${2}" ;;
21726 * ) func_dirname_result="${3}" ;;
21727 esac
21728 func_basename_result="${1##*/}"
21731 # func_stripname prefix suffix name
21732 # strip PREFIX and SUFFIX off of NAME.
21733 # PREFIX and SUFFIX must not contain globbing or regex special
21734 # characters, hashes, percent signs, but SUFFIX may contain a leading
21735 # dot (in which case that matches only a dot).
21736 func_stripname ()
21738 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21739 # positional parameters, so assign one to ordinary parameter first.
21740 func_stripname_result=${3}
21741 func_stripname_result=${func_stripname_result#"${1}"}
21742 func_stripname_result=${func_stripname_result%"${2}"}
21745 # func_opt_split
21746 func_opt_split ()
21748 func_opt_split_opt=${1%%=*}
21749 func_opt_split_arg=${1#*=}
21752 # func_lo2o object
21753 func_lo2o ()
21755 case ${1} in
21756 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21757 *) func_lo2o_result=${1} ;;
21758 esac
21761 # func_xform libobj-or-source
21762 func_xform ()
21764 func_xform_result=${1%.*}.lo
21767 # func_arith arithmetic-term...
21768 func_arith ()
21770 func_arith_result=$(( $* ))
21773 # func_len string
21774 # STRING may not start with a hyphen.
21775 func_len ()
21777 func_len_result=${#1}
21780 _LT_EOF
21782 *) # Bourne compatible functions.
21783 cat << \_LT_EOF >> "$cfgfile"
21785 # func_dirname file append nondir_replacement
21786 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21787 # otherwise set result to NONDIR_REPLACEMENT.
21788 func_dirname ()
21790 # Extract subdirectory from the argument.
21791 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21792 if test "X$func_dirname_result" = "X${1}"; then
21793 func_dirname_result="${3}"
21794 else
21795 func_dirname_result="$func_dirname_result${2}"
21799 # func_basename file
21800 func_basename ()
21802 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21806 # func_stripname prefix suffix name
21807 # strip PREFIX and SUFFIX off of NAME.
21808 # PREFIX and SUFFIX must not contain globbing or regex special
21809 # characters, hashes, percent signs, but SUFFIX may contain a leading
21810 # dot (in which case that matches only a dot).
21811 # func_strip_suffix prefix name
21812 func_stripname ()
21814 case ${2} in
21815 .*) func_stripname_result=`$ECHO "X${3}" \
21816 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21817 *) func_stripname_result=`$ECHO "X${3}" \
21818 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21819 esac
21822 # sed scripts:
21823 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21824 my_sed_long_arg='1s/^-[^=]*=//'
21826 # func_opt_split
21827 func_opt_split ()
21829 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21830 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21833 # func_lo2o object
21834 func_lo2o ()
21836 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21839 # func_xform libobj-or-source
21840 func_xform ()
21842 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21845 # func_arith arithmetic-term...
21846 func_arith ()
21848 func_arith_result=`expr "$@"`
21851 # func_len string
21852 # STRING may not start with a hyphen.
21853 func_len ()
21855 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21858 _LT_EOF
21859 esac
21861 case $lt_shell_append in
21862 yes)
21863 cat << \_LT_EOF >> "$cfgfile"
21865 # func_append var value
21866 # Append VALUE to the end of shell variable VAR.
21867 func_append ()
21869 eval "$1+=\$2"
21871 _LT_EOF
21874 cat << \_LT_EOF >> "$cfgfile"
21876 # func_append var value
21877 # Append VALUE to the end of shell variable VAR.
21878 func_append ()
21880 eval "$1=\$$1\$2"
21883 _LT_EOF
21885 esac
21888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21889 || (rm -f "$cfgfile"; exit 1)
21891 mv -f "$cfgfile" "$ofile" ||
21892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21893 chmod +x "$ofile"
21896 "po-directories":C)
21897 for ac_file in $CONFIG_FILES; do
21898 # Support "outfile[:infile[:infile...]]"
21899 case "$ac_file" in
21900 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21901 esac
21902 # PO directories have a Makefile.in generated from Makefile.in.in.
21903 case "$ac_file" in */Makefile.in)
21904 # Adjust a relative srcdir.
21905 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21906 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21907 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21908 # In autoconf-2.13 it is called $ac_given_srcdir.
21909 # In autoconf-2.50 it is called $srcdir.
21910 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21911 case "$ac_given_srcdir" in
21912 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21913 /*) top_srcdir="$ac_given_srcdir" ;;
21914 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21915 esac
21916 # Treat a directory as a PO directory if and only if it has a
21917 # POTFILES.in file. This allows packages to have multiple PO
21918 # directories under different names or in different locations.
21919 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21920 rm -f "$ac_dir/POTFILES"
21921 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21922 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21923 POMAKEFILEDEPS="POTFILES.in"
21924 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21925 # on $ac_dir but don't depend on user-specified configuration
21926 # parameters.
21927 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21928 # The LINGUAS file contains the set of available languages.
21929 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21930 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21932 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21933 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21934 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21935 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21936 else
21937 # The set of available languages was given in configure.in.
21938 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21939 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21941 # Compute POFILES
21942 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21943 # Compute UPDATEPOFILES
21944 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21945 # Compute DUMMYPOFILES
21946 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21947 # Compute GMOFILES
21948 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21949 case "$ac_given_srcdir" in
21950 .) srcdirpre= ;;
21951 *) srcdirpre='$(srcdir)/' ;;
21952 esac
21953 POFILES=
21954 UPDATEPOFILES=
21955 DUMMYPOFILES=
21956 GMOFILES=
21957 for lang in $ALL_LINGUAS; do
21958 POFILES="$POFILES $srcdirpre$lang.po"
21959 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21960 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21961 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21962 done
21963 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21964 # environment variable.
21965 INST_LINGUAS=
21966 if test -n "$ALL_LINGUAS"; then
21967 for presentlang in $ALL_LINGUAS; do
21968 useit=no
21969 if test "%UNSET%" != "$LINGUAS"; then
21970 desiredlanguages="$LINGUAS"
21971 else
21972 desiredlanguages="$ALL_LINGUAS"
21974 for desiredlang in $desiredlanguages; do
21975 # Use the presentlang catalog if desiredlang is
21976 # a. equal to presentlang, or
21977 # b. a variant of presentlang (because in this case,
21978 # presentlang can be used as a fallback for messages
21979 # which are not translated in the desiredlang catalog).
21980 case "$desiredlang" in
21981 "$presentlang"*) useit=yes;;
21982 esac
21983 done
21984 if test $useit = yes; then
21985 INST_LINGUAS="$INST_LINGUAS $presentlang"
21987 done
21989 CATALOGS=
21990 if test -n "$INST_LINGUAS"; then
21991 for lang in $INST_LINGUAS; do
21992 CATALOGS="$CATALOGS $lang.gmo"
21993 done
21995 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21996 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"
21997 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21998 if test -f "$f"; then
21999 case "$f" in
22000 *.orig | *.bak | *~) ;;
22001 *) cat "$f" >> "$ac_dir/Makefile" ;;
22002 esac
22004 done
22007 esac
22008 done ;;
22010 esac
22011 done # for ac_tag
22014 as_fn_exit 0
22015 _ACEOF
22016 ac_clean_files=$ac_clean_files_save
22018 test $ac_write_fail = 0 ||
22019 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22022 # configure is writing to config.log, and then calls config.status.
22023 # config.status does its own redirection, appending to config.log.
22024 # Unfortunately, on DOS this fails, as config.log is still kept open
22025 # by configure, so config.status won't be able to write to it; its
22026 # output is simply discarded. So we exec the FD to /dev/null,
22027 # effectively closing config.log, so it can be properly (re)opened and
22028 # appended to by config.status. When coming back to configure, we
22029 # need to make the FD available again.
22030 if test "$no_create" != yes; then
22031 ac_cs_success=:
22032 ac_config_status_args=
22033 test "$silent" = yes &&
22034 ac_config_status_args="$ac_config_status_args --quiet"
22035 exec 5>/dev/null
22036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22037 exec 5>>config.log
22038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22039 # would make configure fail if this is the last instruction.
22040 $ac_cs_success || as_fn_exit 1
22042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}